@omnitron-dev/omnitron 0.3.1 → 0.3.2

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 (1687) hide show
  1. package/README.md +575 -0
  2. package/data/operations/managed-kernel.mjs +302 -0
  3. package/data/operations/stage-kernel.mjs +125 -0
  4. package/dist/BUILD.json +4 -3
  5. package/dist/cli/exit-after-output.d.ts +3 -0
  6. package/dist/cli/exit-after-output.d.ts.map +1 -0
  7. package/dist/cli/exit-after-output.js +11 -0
  8. package/dist/cli/exit-after-output.js.map +1 -0
  9. package/dist/cli/installed.d.ts +3 -0
  10. package/dist/cli/installed.d.ts.map +1 -0
  11. package/dist/cli/installed.js +17 -0
  12. package/dist/cli/installed.js.map +1 -0
  13. package/dist/cli/omnitron.js +432 -100
  14. package/dist/cli/omnitron.js.map +1 -1
  15. package/dist/cli/output-command.d.ts +13 -0
  16. package/dist/cli/output-command.d.ts.map +1 -0
  17. package/dist/cli/output-command.js +48 -0
  18. package/dist/cli/output-command.js.map +1 -0
  19. package/dist/cluster/cluster.rpc-service.d.ts +9 -77
  20. package/dist/cluster/cluster.rpc-service.d.ts.map +1 -1
  21. package/dist/cluster/cluster.rpc-service.js +20 -107
  22. package/dist/cluster/cluster.rpc-service.js.map +1 -1
  23. package/dist/cluster/enrollment.d.ts +9 -0
  24. package/dist/cluster/enrollment.d.ts.map +1 -0
  25. package/dist/cluster/enrollment.js +49 -0
  26. package/dist/cluster/enrollment.js.map +1 -0
  27. package/dist/cluster/index.d.ts +1 -1
  28. package/dist/cluster/index.d.ts.map +1 -1
  29. package/dist/cluster/leader-election.d.ts +39 -211
  30. package/dist/cluster/leader-election.d.ts.map +1 -1
  31. package/dist/cluster/leader-election.js +235 -512
  32. package/dist/cluster/leader-election.js.map +1 -1
  33. package/dist/cluster/mesh-link.d.ts +18 -51
  34. package/dist/cluster/mesh-link.d.ts.map +1 -1
  35. package/dist/cluster/mesh-link.js +65 -77
  36. package/dist/cluster/mesh-link.js.map +1 -1
  37. package/dist/cluster/mesh.d.ts +3 -1
  38. package/dist/cluster/mesh.d.ts.map +1 -1
  39. package/dist/cluster/mesh.js +76 -60
  40. package/dist/cluster/mesh.js.map +1 -1
  41. package/dist/cluster/slave-connector.d.ts +40 -4
  42. package/dist/cluster/slave-connector.d.ts.map +1 -1
  43. package/dist/cluster/slave-connector.js +348 -195
  44. package/dist/cluster/slave-connector.js.map +1 -1
  45. package/dist/cluster/standalone-infrastructure.d.ts +3 -0
  46. package/dist/cluster/standalone-infrastructure.d.ts.map +1 -0
  47. package/dist/cluster/standalone-infrastructure.js +25 -0
  48. package/dist/cluster/standalone-infrastructure.js.map +1 -0
  49. package/dist/cluster/stop-authority.d.ts +45 -0
  50. package/dist/cluster/stop-authority.d.ts.map +1 -0
  51. package/dist/cluster/stop-authority.js +112 -0
  52. package/dist/cluster/stop-authority.js.map +1 -0
  53. package/dist/commands/access.d.ts +9 -0
  54. package/dist/commands/access.d.ts.map +1 -0
  55. package/dist/commands/access.js +45 -0
  56. package/dist/commands/access.js.map +1 -0
  57. package/dist/commands/audit.d.ts +2 -0
  58. package/dist/commands/audit.d.ts.map +1 -1
  59. package/dist/commands/audit.js +9 -4
  60. package/dist/commands/audit.js.map +1 -1
  61. package/dist/commands/backend.d.ts +17 -0
  62. package/dist/commands/backend.d.ts.map +1 -0
  63. package/dist/commands/backend.js +264 -0
  64. package/dist/commands/backend.js.map +1 -0
  65. package/dist/commands/backup.d.ts +5 -0
  66. package/dist/commands/backup.d.ts.map +1 -1
  67. package/dist/commands/backup.js +17 -2
  68. package/dist/commands/backup.js.map +1 -1
  69. package/dist/commands/cluster.d.ts.map +1 -1
  70. package/dist/commands/cluster.js +33 -42
  71. package/dist/commands/cluster.js.map +1 -1
  72. package/dist/commands/daemon-cmd.d.ts.map +1 -1
  73. package/dist/commands/daemon-cmd.js +14 -3
  74. package/dist/commands/daemon-cmd.js.map +1 -1
  75. package/dist/commands/doctor.d.ts +11 -29
  76. package/dist/commands/doctor.d.ts.map +1 -1
  77. package/dist/commands/doctor.js +47 -45
  78. package/dist/commands/doctor.js.map +1 -1
  79. package/dist/commands/files.d.ts +19 -0
  80. package/dist/commands/files.d.ts.map +1 -0
  81. package/dist/commands/files.js +226 -0
  82. package/dist/commands/files.js.map +1 -0
  83. package/dist/commands/fleet-rollout.d.ts +25 -0
  84. package/dist/commands/fleet-rollout.d.ts.map +1 -0
  85. package/dist/commands/fleet-rollout.js +155 -0
  86. package/dist/commands/fleet-rollout.js.map +1 -0
  87. package/dist/commands/fleet.d.ts.map +1 -1
  88. package/dist/commands/fleet.js +1 -0
  89. package/dist/commands/fleet.js.map +1 -1
  90. package/dist/commands/health-check.d.ts.map +1 -1
  91. package/dist/commands/health-check.js +13 -6
  92. package/dist/commands/health-check.js.map +1 -1
  93. package/dist/commands/infra.d.ts +5 -2
  94. package/dist/commands/infra.d.ts.map +1 -1
  95. package/dist/commands/infra.js +145 -53
  96. package/dist/commands/infra.js.map +1 -1
  97. package/dist/commands/logs.d.ts +6 -23
  98. package/dist/commands/logs.d.ts.map +1 -1
  99. package/dist/commands/logs.js +114 -38
  100. package/dist/commands/logs.js.map +1 -1
  101. package/dist/commands/metrics.d.ts.map +1 -1
  102. package/dist/commands/metrics.js +7 -1
  103. package/dist/commands/metrics.js.map +1 -1
  104. package/dist/commands/migrate.d.ts +8 -0
  105. package/dist/commands/migrate.d.ts.map +1 -0
  106. package/dist/commands/migrate.js +64 -0
  107. package/dist/commands/migrate.js.map +1 -0
  108. package/dist/commands/node-reconcile.d.ts +8 -0
  109. package/dist/commands/node-reconcile.d.ts.map +1 -0
  110. package/dist/commands/node-reconcile.js +49 -0
  111. package/dist/commands/node-reconcile.js.map +1 -0
  112. package/dist/commands/node.d.ts +0 -8
  113. package/dist/commands/node.d.ts.map +1 -1
  114. package/dist/commands/node.js +32 -35
  115. package/dist/commands/node.js.map +1 -1
  116. package/dist/commands/output.d.ts +3 -9
  117. package/dist/commands/output.d.ts.map +1 -1
  118. package/dist/commands/output.js +34 -25
  119. package/dist/commands/output.js.map +1 -1
  120. package/dist/commands/pipeline.d.ts +11 -2
  121. package/dist/commands/pipeline.d.ts.map +1 -1
  122. package/dist/commands/pipeline.js +75 -15
  123. package/dist/commands/pipeline.js.map +1 -1
  124. package/dist/commands/project.d.ts +8 -0
  125. package/dist/commands/project.d.ts.map +1 -1
  126. package/dist/commands/project.js +67 -1
  127. package/dist/commands/project.js.map +1 -1
  128. package/dist/commands/release-store.js +1 -1
  129. package/dist/commands/release-store.js.map +1 -1
  130. package/dist/commands/release.d.ts +5 -12
  131. package/dist/commands/release.d.ts.map +1 -1
  132. package/dist/commands/release.js +141 -33
  133. package/dist/commands/release.js.map +1 -1
  134. package/dist/commands/scale.d.ts +1 -4
  135. package/dist/commands/scale.d.ts.map +1 -1
  136. package/dist/commands/scale.js +39 -19
  137. package/dist/commands/scale.js.map +1 -1
  138. package/dist/commands/secret-input.d.ts +3 -0
  139. package/dist/commands/secret-input.d.ts.map +1 -0
  140. package/dist/commands/secret-input.js +36 -0
  141. package/dist/commands/secret-input.js.map +1 -0
  142. package/dist/commands/secret.d.ts +4 -2
  143. package/dist/commands/secret.d.ts.map +1 -1
  144. package/dist/commands/secret.js +12 -2
  145. package/dist/commands/secret.js.map +1 -1
  146. package/dist/commands/service-resident.d.ts +25 -0
  147. package/dist/commands/service-resident.d.ts.map +1 -0
  148. package/dist/commands/service-resident.js +236 -0
  149. package/dist/commands/service-resident.js.map +1 -0
  150. package/dist/commands/service-units.d.ts +13 -1
  151. package/dist/commands/service-units.d.ts.map +1 -1
  152. package/dist/commands/service-units.js +38 -16
  153. package/dist/commands/service-units.js.map +1 -1
  154. package/dist/commands/service.d.ts +2 -24
  155. package/dist/commands/service.d.ts.map +1 -1
  156. package/dist/commands/service.js +89 -7
  157. package/dist/commands/service.js.map +1 -1
  158. package/dist/commands/stack.d.ts +11 -6
  159. package/dist/commands/stack.d.ts.map +1 -1
  160. package/dist/commands/stack.js +212 -38
  161. package/dist/commands/stack.js.map +1 -1
  162. package/dist/commands/start.d.ts +0 -21
  163. package/dist/commands/start.d.ts.map +1 -1
  164. package/dist/commands/start.js +33 -43
  165. package/dist/commands/start.js.map +1 -1
  166. package/dist/commands/status.d.ts +1 -5
  167. package/dist/commands/status.d.ts.map +1 -1
  168. package/dist/commands/status.js +5 -1
  169. package/dist/commands/status.js.map +1 -1
  170. package/dist/commands/stop.d.ts +0 -22
  171. package/dist/commands/stop.d.ts.map +1 -1
  172. package/dist/commands/stop.js +26 -86
  173. package/dist/commands/stop.js.map +1 -1
  174. package/dist/commands/system.d.ts +4 -0
  175. package/dist/commands/system.d.ts.map +1 -0
  176. package/dist/commands/system.js +41 -0
  177. package/dist/commands/system.js.map +1 -0
  178. package/dist/commands/terminal.d.ts +7 -0
  179. package/dist/commands/terminal.d.ts.map +1 -0
  180. package/dist/commands/terminal.js +184 -0
  181. package/dist/commands/terminal.js.map +1 -0
  182. package/dist/commands/topology.d.ts +3 -0
  183. package/dist/commands/topology.d.ts.map +1 -0
  184. package/dist/commands/topology.js +107 -0
  185. package/dist/commands/topology.js.map +1 -0
  186. package/dist/commands/up.d.ts +4 -54
  187. package/dist/commands/up.d.ts.map +1 -1
  188. package/dist/commands/up.js +41 -98
  189. package/dist/commands/up.js.map +1 -1
  190. package/dist/commands/webapp.d.ts +0 -9
  191. package/dist/commands/webapp.d.ts.map +1 -1
  192. package/dist/commands/webapp.js +116 -69
  193. package/dist/commands/webapp.js.map +1 -1
  194. package/dist/config/app-path.d.ts +4 -0
  195. package/dist/config/app-path.d.ts.map +1 -0
  196. package/dist/config/app-path.js +6 -0
  197. package/dist/config/app-path.js.map +1 -0
  198. package/dist/config/defaults.d.ts.map +1 -1
  199. package/dist/config/defaults.js +9 -3
  200. package/dist/config/defaults.js.map +1 -1
  201. package/dist/config/define-ecosystem.d.ts.map +1 -1
  202. package/dist/config/define-ecosystem.js +12 -0
  203. package/dist/config/define-ecosystem.js.map +1 -1
  204. package/dist/config/index.d.ts +3 -1
  205. package/dist/config/index.d.ts.map +1 -1
  206. package/dist/config/index.js +1 -1
  207. package/dist/config/index.js.map +1 -1
  208. package/dist/config/loader-child.d.ts +2 -0
  209. package/dist/config/loader-child.d.ts.map +1 -0
  210. package/dist/config/loader-child.js +56 -0
  211. package/dist/config/loader-child.js.map +1 -0
  212. package/dist/config/loader.d.ts +7 -2
  213. package/dist/config/loader.d.ts.map +1 -1
  214. package/dist/config/loader.js +14 -27
  215. package/dist/config/loader.js.map +1 -1
  216. package/dist/config/saved.d.ts +67 -0
  217. package/dist/config/saved.d.ts.map +1 -0
  218. package/dist/config/saved.js +81 -0
  219. package/dist/config/saved.js.map +1 -0
  220. package/dist/config/types.d.ts +96 -52
  221. package/dist/config/types.d.ts.map +1 -1
  222. package/dist/daemon/backend-candidate.d.ts +32 -0
  223. package/dist/daemon/backend-candidate.d.ts.map +1 -0
  224. package/dist/daemon/backend-candidate.js +129 -0
  225. package/dist/daemon/backend-candidate.js.map +1 -0
  226. package/dist/daemon/backend-child.d.ts +5 -0
  227. package/dist/daemon/backend-child.d.ts.map +1 -0
  228. package/dist/daemon/backend-child.js +13 -0
  229. package/dist/daemon/backend-child.js.map +1 -0
  230. package/dist/daemon/backend-control.d.ts +43 -0
  231. package/dist/daemon/backend-control.d.ts.map +1 -0
  232. package/dist/daemon/backend-control.js +155 -0
  233. package/dist/daemon/backend-control.js.map +1 -0
  234. package/dist/daemon/backend-crash-recovery.d.ts +4 -0
  235. package/dist/daemon/backend-crash-recovery.d.ts.map +1 -0
  236. package/dist/daemon/backend-crash-recovery.js +136 -0
  237. package/dist/daemon/backend-crash-recovery.js.map +1 -0
  238. package/dist/daemon/backend-handoff-types.d.ts +27 -0
  239. package/dist/daemon/backend-handoff-types.d.ts.map +1 -0
  240. package/dist/daemon/backend-handoff-types.js +33 -0
  241. package/dist/daemon/backend-handoff-types.js.map +1 -0
  242. package/dist/daemon/backend-recovery-journal.d.ts +30 -0
  243. package/dist/daemon/backend-recovery-journal.d.ts.map +1 -0
  244. package/dist/daemon/backend-recovery-journal.js +67 -0
  245. package/dist/daemon/backend-recovery-journal.js.map +1 -0
  246. package/dist/daemon/backend-recovery-monitor.d.ts +35 -0
  247. package/dist/daemon/backend-recovery-monitor.d.ts.map +1 -0
  248. package/dist/daemon/backend-recovery-monitor.js +113 -0
  249. package/dist/daemon/backend-recovery-monitor.js.map +1 -0
  250. package/dist/daemon/backend-supervisor-entry.d.ts +2 -0
  251. package/dist/daemon/backend-supervisor-entry.d.ts.map +1 -0
  252. package/dist/daemon/backend-supervisor-entry.js +3 -0
  253. package/dist/daemon/backend-supervisor-entry.js.map +1 -0
  254. package/dist/daemon/backend-supervisor-main.d.ts +2 -0
  255. package/dist/daemon/backend-supervisor-main.d.ts.map +1 -0
  256. package/dist/daemon/backend-supervisor-main.js +45 -0
  257. package/dist/daemon/backend-supervisor-main.js.map +1 -0
  258. package/dist/daemon/backend-supervisor.d.ts +61 -0
  259. package/dist/daemon/backend-supervisor.d.ts.map +1 -0
  260. package/dist/daemon/backend-supervisor.js +339 -0
  261. package/dist/daemon/backend-supervisor.js.map +1 -0
  262. package/dist/daemon/backend-upgrade.d.ts +41 -0
  263. package/dist/daemon/backend-upgrade.d.ts.map +1 -0
  264. package/dist/daemon/backend-upgrade.js +444 -0
  265. package/dist/daemon/backend-upgrade.js.map +1 -0
  266. package/dist/daemon/backend.rpc-service.d.ts +11 -0
  267. package/dist/daemon/backend.rpc-service.d.ts.map +1 -0
  268. package/dist/daemon/backend.rpc-service.js +44 -0
  269. package/dist/daemon/backend.rpc-service.js.map +1 -0
  270. package/dist/daemon/daemon-client.d.ts +12 -79
  271. package/dist/daemon/daemon-client.d.ts.map +1 -1
  272. package/dist/daemon/daemon-client.js +28 -270
  273. package/dist/daemon/daemon-client.js.map +1 -1
  274. package/dist/daemon/daemon-entry.d.ts +0 -7
  275. package/dist/daemon/daemon-entry.d.ts.map +1 -1
  276. package/dist/daemon/daemon-entry.js +2 -115
  277. package/dist/daemon/daemon-entry.js.map +1 -1
  278. package/dist/daemon/daemon-main.d.ts +9 -0
  279. package/dist/daemon/daemon-main.d.ts.map +1 -0
  280. package/dist/daemon/daemon-main.js +105 -0
  281. package/dist/daemon/daemon-main.js.map +1 -0
  282. package/dist/daemon/daemon-scheduler.d.ts +8 -5
  283. package/dist/daemon/daemon-scheduler.d.ts.map +1 -1
  284. package/dist/daemon/daemon-scheduler.js +45 -73
  285. package/dist/daemon/daemon-scheduler.js.map +1 -1
  286. package/dist/daemon/daemon-state-store.service.d.ts +5 -39
  287. package/dist/daemon/daemon-state-store.service.d.ts.map +1 -1
  288. package/dist/daemon/daemon-state-store.service.js +30 -17
  289. package/dist/daemon/daemon-state-store.service.js.map +1 -1
  290. package/dist/daemon/daemon.d.ts +45 -60
  291. package/dist/daemon/daemon.d.ts.map +1 -1
  292. package/dist/daemon/daemon.js +720 -396
  293. package/dist/daemon/daemon.js.map +1 -1
  294. package/dist/daemon/daemon.module.d.ts +13 -11
  295. package/dist/daemon/daemon.module.d.ts.map +1 -1
  296. package/dist/daemon/daemon.module.js +136 -101
  297. package/dist/daemon/daemon.module.js.map +1 -1
  298. package/dist/daemon/daemon.rpc-service.d.ts +9 -17
  299. package/dist/daemon/daemon.rpc-service.d.ts.map +1 -1
  300. package/dist/daemon/daemon.rpc-service.js +83 -22
  301. package/dist/daemon/daemon.rpc-service.js.map +1 -1
  302. package/dist/daemon/darwin-owner-evidence.d.ts +57 -0
  303. package/dist/daemon/darwin-owner-evidence.d.ts.map +1 -0
  304. package/dist/daemon/darwin-owner-evidence.js +131 -0
  305. package/dist/daemon/darwin-owner-evidence.js.map +1 -0
  306. package/dist/daemon/database-startup.d.ts +7 -0
  307. package/dist/daemon/database-startup.d.ts.map +1 -0
  308. package/dist/daemon/database-startup.js +40 -0
  309. package/dist/daemon/database-startup.js.map +1 -0
  310. package/dist/daemon/entry-guard.d.ts +2 -0
  311. package/dist/daemon/entry-guard.d.ts.map +1 -0
  312. package/dist/daemon/entry-guard.js +34 -0
  313. package/dist/daemon/entry-guard.js.map +1 -0
  314. package/dist/daemon/execution-capabilities.d.ts +7 -0
  315. package/dist/daemon/execution-capabilities.d.ts.map +1 -0
  316. package/dist/daemon/execution-capabilities.js +23 -0
  317. package/dist/daemon/execution-capabilities.js.map +1 -0
  318. package/dist/daemon/execution-client.d.ts +88 -0
  319. package/dist/daemon/execution-client.d.ts.map +1 -0
  320. package/dist/daemon/execution-client.js +433 -0
  321. package/dist/daemon/execution-client.js.map +1 -0
  322. package/dist/daemon/execution-config.d.ts +7 -0
  323. package/dist/daemon/execution-config.d.ts.map +1 -0
  324. package/dist/daemon/execution-config.js +61 -0
  325. package/dist/daemon/execution-config.js.map +1 -0
  326. package/dist/daemon/execution-entry.d.ts +2 -0
  327. package/dist/daemon/execution-entry.d.ts.map +1 -0
  328. package/dist/daemon/execution-entry.js +3 -0
  329. package/dist/daemon/execution-entry.js.map +1 -0
  330. package/dist/daemon/execution-host.d.ts +133 -0
  331. package/dist/daemon/execution-host.d.ts.map +1 -0
  332. package/dist/daemon/execution-host.js +308 -0
  333. package/dist/daemon/execution-host.js.map +1 -0
  334. package/dist/daemon/execution-journal.d.ts +17 -0
  335. package/dist/daemon/execution-journal.d.ts.map +1 -0
  336. package/dist/daemon/execution-journal.js +75 -0
  337. package/dist/daemon/execution-journal.js.map +1 -0
  338. package/dist/daemon/execution-launcher.d.ts +12 -0
  339. package/dist/daemon/execution-launcher.d.ts.map +1 -0
  340. package/dist/daemon/execution-launcher.js +110 -0
  341. package/dist/daemon/execution-launcher.js.map +1 -0
  342. package/dist/daemon/execution-main.d.ts +2 -0
  343. package/dist/daemon/execution-main.d.ts.map +1 -0
  344. package/dist/daemon/execution-main.js +48 -0
  345. package/dist/daemon/execution-main.js.map +1 -0
  346. package/dist/daemon/execution-owner.d.ts +16 -0
  347. package/dist/daemon/execution-owner.d.ts.map +1 -0
  348. package/dist/daemon/execution-owner.js +97 -0
  349. package/dist/daemon/execution-owner.js.map +1 -0
  350. package/dist/daemon/execution-platform.d.ts +3 -0
  351. package/dist/daemon/execution-platform.d.ts.map +1 -0
  352. package/dist/daemon/execution-platform.js +23 -0
  353. package/dist/daemon/execution-platform.js.map +1 -0
  354. package/dist/daemon/execution-shutdown.d.ts +13 -0
  355. package/dist/daemon/execution-shutdown.d.ts.map +1 -0
  356. package/dist/daemon/execution-shutdown.js +30 -0
  357. package/dist/daemon/execution-shutdown.js.map +1 -0
  358. package/dist/daemon/managed-entry.d.ts +2 -0
  359. package/dist/daemon/managed-entry.d.ts.map +1 -0
  360. package/dist/daemon/managed-entry.js +3 -0
  361. package/dist/daemon/managed-entry.js.map +1 -0
  362. package/dist/daemon/managed-main.d.ts +2 -0
  363. package/dist/daemon/managed-main.d.ts.map +1 -0
  364. package/dist/daemon/managed-main.js +29 -0
  365. package/dist/daemon/managed-main.js.map +1 -0
  366. package/dist/daemon/managed-owner-build.d.ts +17 -0
  367. package/dist/daemon/managed-owner-build.d.ts.map +1 -0
  368. package/dist/daemon/managed-owner-build.js +108 -0
  369. package/dist/daemon/managed-owner-build.js.map +1 -0
  370. package/dist/daemon/managed-owner-entry.d.ts +2 -0
  371. package/dist/daemon/managed-owner-entry.d.ts.map +1 -0
  372. package/dist/daemon/managed-owner-entry.js +3 -0
  373. package/dist/daemon/managed-owner-entry.js.map +1 -0
  374. package/dist/daemon/managed-owner-main.d.ts +2 -0
  375. package/dist/daemon/managed-owner-main.d.ts.map +1 -0
  376. package/dist/daemon/managed-owner-main.js +53 -0
  377. package/dist/daemon/managed-owner-main.js.map +1 -0
  378. package/dist/daemon/managed-runtime.d.ts +39 -0
  379. package/dist/daemon/managed-runtime.d.ts.map +1 -0
  380. package/dist/daemon/managed-runtime.js +137 -0
  381. package/dist/daemon/managed-runtime.js.map +1 -0
  382. package/dist/daemon/network-publication.d.ts +5 -0
  383. package/dist/daemon/network-publication.d.ts.map +1 -0
  384. package/dist/daemon/network-publication.js +25 -0
  385. package/dist/daemon/network-publication.js.map +1 -0
  386. package/dist/daemon/owner-reconciliation.d.ts +58 -0
  387. package/dist/daemon/owner-reconciliation.d.ts.map +1 -0
  388. package/dist/daemon/owner-reconciliation.js +265 -0
  389. package/dist/daemon/owner-reconciliation.js.map +1 -0
  390. package/dist/daemon/pid-manager.d.ts +2 -0
  391. package/dist/daemon/pid-manager.d.ts.map +1 -1
  392. package/dist/daemon/pid-manager.js +5 -0
  393. package/dist/daemon/pid-manager.js.map +1 -1
  394. package/dist/daemon/private-control-client.d.ts +8 -0
  395. package/dist/daemon/private-control-client.d.ts.map +1 -0
  396. package/dist/daemon/private-control-client.js +41 -0
  397. package/dist/daemon/private-control-client.js.map +1 -0
  398. package/dist/daemon/recovery-state.d.ts +20 -0
  399. package/dist/daemon/recovery-state.d.ts.map +1 -0
  400. package/dist/daemon/recovery-state.js +53 -0
  401. package/dist/daemon/recovery-state.js.map +1 -0
  402. package/dist/daemon/rpc-connection.d.ts +29 -0
  403. package/dist/daemon/rpc-connection.d.ts.map +1 -0
  404. package/dist/daemon/rpc-connection.js +137 -0
  405. package/dist/daemon/rpc-connection.js.map +1 -0
  406. package/dist/daemon/runtime-installation.d.ts +58 -0
  407. package/dist/daemon/runtime-installation.d.ts.map +1 -0
  408. package/dist/daemon/runtime-installation.js +346 -0
  409. package/dist/daemon/runtime-installation.js.map +1 -0
  410. package/dist/daemon/runtime-launcher.d.ts +6 -0
  411. package/dist/daemon/runtime-launcher.d.ts.map +1 -0
  412. package/dist/daemon/runtime-launcher.js +45 -0
  413. package/dist/daemon/runtime-launcher.js.map +1 -0
  414. package/dist/daemon/schema-transition.d.ts +43 -0
  415. package/dist/daemon/schema-transition.d.ts.map +1 -0
  416. package/dist/daemon/schema-transition.js +239 -0
  417. package/dist/daemon/schema-transition.js.map +1 -0
  418. package/dist/daemon/spawn-daemon.d.ts +2 -0
  419. package/dist/daemon/spawn-daemon.d.ts.map +1 -1
  420. package/dist/daemon/spawn-daemon.js +4 -0
  421. package/dist/daemon/spawn-daemon.js.map +1 -1
  422. package/dist/daemon/startup-config.d.ts +77 -0
  423. package/dist/daemon/startup-config.d.ts.map +1 -0
  424. package/dist/daemon/startup-config.js +31 -0
  425. package/dist/daemon/startup-config.js.map +1 -0
  426. package/dist/daemon/startup-failure-journal.d.ts +3 -0
  427. package/dist/daemon/startup-failure-journal.d.ts.map +1 -0
  428. package/dist/daemon/startup-failure-journal.js +29 -0
  429. package/dist/daemon/startup-failure-journal.js.map +1 -0
  430. package/dist/daemon/state-store.d.ts +16 -24
  431. package/dist/daemon/state-store.d.ts.map +1 -1
  432. package/dist/daemon/state-store.js +51 -9
  433. package/dist/daemon/state-store.js.map +1 -1
  434. package/dist/daemon/supervisor-transition.d.ts +101 -0
  435. package/dist/daemon/supervisor-transition.d.ts.map +1 -0
  436. package/dist/daemon/supervisor-transition.js +503 -0
  437. package/dist/daemon/supervisor-transition.js.map +1 -0
  438. package/dist/daemon/system-guardian-cgroup.d.ts +16 -0
  439. package/dist/daemon/system-guardian-cgroup.d.ts.map +1 -0
  440. package/dist/daemon/system-guardian-cgroup.js +202 -0
  441. package/dist/daemon/system-guardian-cgroup.js.map +1 -0
  442. package/dist/daemon/system-guardian-unit.d.ts +9 -0
  443. package/dist/daemon/system-guardian-unit.d.ts.map +1 -0
  444. package/dist/daemon/system-guardian-unit.js +41 -0
  445. package/dist/daemon/system-guardian-unit.js.map +1 -0
  446. package/dist/database/connection.d.ts.map +1 -1
  447. package/dist/database/connection.js +2 -6
  448. package/dist/database/connection.js.map +1 -1
  449. package/dist/database/log-durability.d.ts +5 -0
  450. package/dist/database/log-durability.d.ts.map +1 -0
  451. package/dist/database/log-durability.js +28 -0
  452. package/dist/database/log-durability.js.map +1 -0
  453. package/dist/database/migrate.js +2 -15
  454. package/dist/database/migrate.js.map +1 -1
  455. package/dist/database/migration-registry-compatibility.d.ts +13 -0
  456. package/dist/database/migration-registry-compatibility.d.ts.map +1 -0
  457. package/dist/database/migration-registry-compatibility.js +108 -0
  458. package/dist/database/migration-registry-compatibility.js.map +1 -0
  459. package/dist/database/migration-runner.d.ts +8 -42
  460. package/dist/database/migration-runner.d.ts.map +1 -1
  461. package/dist/database/migration-runner.js +114 -123
  462. package/dist/database/migration-runner.js.map +1 -1
  463. package/dist/database/migrations/014_replication_receipts.d.ts +5 -0
  464. package/dist/database/migrations/014_replication_receipts.d.ts.map +1 -0
  465. package/dist/database/migrations/014_replication_receipts.js +6 -0
  466. package/dist/database/migrations/014_replication_receipts.js.map +1 -0
  467. package/dist/database/migrations/015_persistent_metrics.d.ts +5 -0
  468. package/dist/database/migrations/015_persistent_metrics.d.ts.map +1 -0
  469. package/dist/database/migrations/015_persistent_metrics.js +7 -0
  470. package/dist/database/migrations/015_persistent_metrics.js.map +1 -0
  471. package/dist/database/migrations/016_cluster_lease.d.ts +4 -0
  472. package/dist/database/migrations/016_cluster_lease.d.ts.map +1 -0
  473. package/dist/database/migrations/016_cluster_lease.js +6 -0
  474. package/dist/database/migrations/016_cluster_lease.js.map +1 -0
  475. package/dist/database/migrations/index.d.ts +1 -1
  476. package/dist/database/migrations/index.d.ts.map +1 -1
  477. package/dist/database/migrations/index.js +22 -13
  478. package/dist/database/migrations/index.js.map +1 -1
  479. package/dist/database/schema-compatibility.d.ts +34 -0
  480. package/dist/database/schema-compatibility.d.ts.map +1 -0
  481. package/dist/database/schema-compatibility.js +109 -0
  482. package/dist/database/schema-compatibility.js.map +1 -0
  483. package/dist/database/schema-expansion-policy.d.ts +10 -0
  484. package/dist/database/schema-expansion-policy.d.ts.map +1 -0
  485. package/dist/database/schema-expansion-policy.js +21 -0
  486. package/dist/database/schema-expansion-policy.js.map +1 -0
  487. package/dist/database/schema-transition-plan.d.ts +53 -0
  488. package/dist/database/schema-transition-plan.d.ts.map +1 -0
  489. package/dist/database/schema-transition-plan.js +102 -0
  490. package/dist/database/schema-transition-plan.js.map +1 -0
  491. package/dist/database/schema-worker.d.ts +2 -0
  492. package/dist/database/schema-worker.d.ts.map +1 -0
  493. package/dist/database/schema-worker.js +55 -0
  494. package/dist/database/schema-worker.js.map +1 -0
  495. package/dist/database/schema.d.ts +6 -1
  496. package/dist/database/schema.d.ts.map +1 -1
  497. package/dist/database/slave-migrations/001_replication_evidence.d.ts +4 -0
  498. package/dist/database/slave-migrations/001_replication_evidence.d.ts.map +1 -0
  499. package/dist/database/slave-migrations/001_replication_evidence.js +89 -0
  500. package/dist/database/slave-migrations/001_replication_evidence.js.map +1 -0
  501. package/dist/database/slave-migrations/index.d.ts +6 -0
  502. package/dist/database/slave-migrations/index.d.ts.map +1 -0
  503. package/dist/database/slave-migrations/index.js +10 -0
  504. package/dist/database/slave-migrations/index.js.map +1 -0
  505. package/dist/diagnostics/index.d.ts +16 -0
  506. package/dist/diagnostics/index.d.ts.map +1 -0
  507. package/dist/diagnostics/index.js +22 -0
  508. package/dist/diagnostics/index.js.map +1 -0
  509. package/dist/execution/command-failure.d.ts +7 -0
  510. package/dist/execution/command-failure.d.ts.map +1 -0
  511. package/dist/execution/command-failure.js +29 -0
  512. package/dist/execution/command-failure.js.map +1 -0
  513. package/dist/execution/execution.service.d.ts +6 -1
  514. package/dist/execution/execution.service.d.ts.map +1 -1
  515. package/dist/execution/execution.service.js +32 -30
  516. package/dist/execution/execution.service.js.map +1 -1
  517. package/dist/files/archive-codec.d.ts +57 -0
  518. package/dist/files/archive-codec.d.ts.map +1 -0
  519. package/dist/files/archive-codec.js +454 -0
  520. package/dist/files/archive-codec.js.map +1 -0
  521. package/dist/files/archive-node.d.ts +27 -0
  522. package/dist/files/archive-node.d.ts.map +1 -0
  523. package/dist/files/archive-node.js +379 -0
  524. package/dist/files/archive-node.js.map +1 -0
  525. package/dist/files/archive-publication.d.ts +26 -0
  526. package/dist/files/archive-publication.d.ts.map +1 -0
  527. package/dist/files/archive-publication.js +224 -0
  528. package/dist/files/archive-publication.js.map +1 -0
  529. package/dist/files/file-config.d.ts +7 -0
  530. package/dist/files/file-config.d.ts.map +1 -0
  531. package/dist/files/file-config.js +11 -0
  532. package/dist/files/file-config.js.map +1 -0
  533. package/dist/files/file-node.d.ts +65 -0
  534. package/dist/files/file-node.d.ts.map +1 -0
  535. package/dist/files/file-node.js +863 -0
  536. package/dist/files/file-node.js.map +1 -0
  537. package/dist/files/file-node.rpc-service.d.ts +12 -0
  538. package/dist/files/file-node.rpc-service.d.ts.map +1 -0
  539. package/dist/files/file-node.rpc-service.js +42 -0
  540. package/dist/files/file-node.rpc-service.js.map +1 -0
  541. package/dist/files/files.rpc-service.d.ts +107 -0
  542. package/dist/files/files.rpc-service.d.ts.map +1 -0
  543. package/dist/files/files.rpc-service.js +769 -0
  544. package/dist/files/files.rpc-service.js.map +1 -0
  545. package/dist/files/structural-policy.d.ts +3 -0
  546. package/dist/files/structural-policy.d.ts.map +1 -0
  547. package/dist/files/structural-policy.js +27 -0
  548. package/dist/files/structural-policy.js.map +1 -0
  549. package/dist/health/contracts.d.ts +30 -0
  550. package/dist/health/contracts.d.ts.map +1 -0
  551. package/dist/health/contracts.js +58 -0
  552. package/dist/health/contracts.js.map +1 -0
  553. package/dist/health/heartbeat.d.ts +11 -0
  554. package/dist/health/heartbeat.d.ts.map +1 -0
  555. package/dist/health/heartbeat.js +32 -0
  556. package/dist/health/heartbeat.js.map +1 -0
  557. package/dist/health/index.d.ts +4 -0
  558. package/dist/health/index.d.ts.map +1 -0
  559. package/dist/health/index.js +2 -0
  560. package/dist/health/index.js.map +1 -0
  561. package/dist/health/readiness.d.ts +15 -0
  562. package/dist/health/readiness.d.ts.map +1 -0
  563. package/dist/health/readiness.js +170 -0
  564. package/dist/health/readiness.js.map +1 -0
  565. package/dist/index.d.ts +1 -0
  566. package/dist/index.d.ts.map +1 -1
  567. package/dist/infrastructure/apt-packages.d.ts +34 -0
  568. package/dist/infrastructure/apt-packages.d.ts.map +1 -0
  569. package/dist/infrastructure/apt-packages.js +232 -0
  570. package/dist/infrastructure/apt-packages.js.map +1 -0
  571. package/dist/infrastructure/bare-metal-plan.d.ts +10 -1
  572. package/dist/infrastructure/bare-metal-plan.d.ts.map +1 -1
  573. package/dist/infrastructure/bare-metal-plan.js +21 -0
  574. package/dist/infrastructure/bare-metal-plan.js.map +1 -1
  575. package/dist/infrastructure/bare-metal-runner.d.ts.map +1 -1
  576. package/dist/infrastructure/bare-metal-runner.js +13 -2
  577. package/dist/infrastructure/bare-metal-runner.js.map +1 -1
  578. package/dist/infrastructure/config-normalizer.d.ts +4 -3
  579. package/dist/infrastructure/config-normalizer.d.ts.map +1 -1
  580. package/dist/infrastructure/config-normalizer.js +11 -3
  581. package/dist/infrastructure/config-normalizer.js.map +1 -1
  582. package/dist/infrastructure/container-runtime.d.ts +37 -3
  583. package/dist/infrastructure/container-runtime.d.ts.map +1 -1
  584. package/dist/infrastructure/container-runtime.js +235 -64
  585. package/dist/infrastructure/container-runtime.js.map +1 -1
  586. package/dist/infrastructure/health-recovery.d.ts +19 -0
  587. package/dist/infrastructure/health-recovery.d.ts.map +1 -0
  588. package/dist/infrastructure/health-recovery.js +39 -0
  589. package/dist/infrastructure/health-recovery.js.map +1 -0
  590. package/dist/infrastructure/host-ingress-config.d.ts.map +1 -1
  591. package/dist/infrastructure/host-ingress-config.js +11 -8
  592. package/dist/infrastructure/host-ingress-config.js.map +1 -1
  593. package/dist/infrastructure/host-ingress-lock.d.ts +2 -3
  594. package/dist/infrastructure/host-ingress-lock.d.ts.map +1 -1
  595. package/dist/infrastructure/host-ingress-lock.js +1 -35
  596. package/dist/infrastructure/host-ingress-lock.js.map +1 -1
  597. package/dist/infrastructure/host-ingress-takeover.js +3 -3
  598. package/dist/infrastructure/host-ingress-takeover.js.map +1 -1
  599. package/dist/infrastructure/host-ingress-types.d.ts +4 -2
  600. package/dist/infrastructure/host-ingress-types.d.ts.map +1 -1
  601. package/dist/infrastructure/host-ingress.service.d.ts.map +1 -1
  602. package/dist/infrastructure/host-ingress.service.js +6 -6
  603. package/dist/infrastructure/host-ingress.service.js.map +1 -1
  604. package/dist/infrastructure/host-inspection.d.ts +1 -0
  605. package/dist/infrastructure/host-inspection.d.ts.map +1 -1
  606. package/dist/infrastructure/host-inspection.js +3 -2
  607. package/dist/infrastructure/host-inspection.js.map +1 -1
  608. package/dist/infrastructure/infrastructure.service.d.ts +80 -29
  609. package/dist/infrastructure/infrastructure.service.d.ts.map +1 -1
  610. package/dist/infrastructure/infrastructure.service.js +561 -216
  611. package/dist/infrastructure/infrastructure.service.js.map +1 -1
  612. package/dist/infrastructure/merge-config.d.ts +10 -0
  613. package/dist/infrastructure/merge-config.d.ts.map +1 -0
  614. package/dist/infrastructure/merge-config.js +27 -0
  615. package/dist/infrastructure/merge-config.js.map +1 -0
  616. package/dist/infrastructure/orphan-containers.d.ts +1 -0
  617. package/dist/infrastructure/orphan-containers.d.ts.map +1 -1
  618. package/dist/infrastructure/orphan-containers.js +1 -1
  619. package/dist/infrastructure/orphan-containers.js.map +1 -1
  620. package/dist/infrastructure/owned-container.d.ts +4 -0
  621. package/dist/infrastructure/owned-container.d.ts.map +1 -0
  622. package/dist/infrastructure/owned-container.js +13 -0
  623. package/dist/infrastructure/owned-container.js.map +1 -0
  624. package/dist/infrastructure/phantom-endpoint-janitor.d.ts +4 -1
  625. package/dist/infrastructure/phantom-endpoint-janitor.d.ts.map +1 -1
  626. package/dist/infrastructure/phantom-endpoint-janitor.js +11 -2
  627. package/dist/infrastructure/phantom-endpoint-janitor.js.map +1 -1
  628. package/dist/infrastructure/presets/minio.d.ts.map +1 -1
  629. package/dist/infrastructure/presets/minio.js +15 -25
  630. package/dist/infrastructure/presets/minio.js.map +1 -1
  631. package/dist/infrastructure/presets/postgres.d.ts.map +1 -1
  632. package/dist/infrastructure/presets/postgres.js +35 -31
  633. package/dist/infrastructure/presets/postgres.js.map +1 -1
  634. package/dist/infrastructure/presets/tor.d.ts +1 -2
  635. package/dist/infrastructure/presets/tor.d.ts.map +1 -1
  636. package/dist/infrastructure/presets/tor.js +7 -13
  637. package/dist/infrastructure/presets/tor.js.map +1 -1
  638. package/dist/infrastructure/provisioning-outcome.d.ts +7 -0
  639. package/dist/infrastructure/provisioning-outcome.d.ts.map +1 -1
  640. package/dist/infrastructure/provisioning-outcome.js +41 -8
  641. package/dist/infrastructure/provisioning-outcome.js.map +1 -1
  642. package/dist/infrastructure/service-resolver.d.ts +1 -1
  643. package/dist/infrastructure/service-resolver.d.ts.map +1 -1
  644. package/dist/infrastructure/service-resolver.js +22 -10
  645. package/dist/infrastructure/service-resolver.js.map +1 -1
  646. package/dist/infrastructure/stack-infra-manager.d.ts +25 -4
  647. package/dist/infrastructure/stack-infra-manager.d.ts.map +1 -1
  648. package/dist/infrastructure/stack-infra-manager.js +181 -21
  649. package/dist/infrastructure/stack-infra-manager.js.map +1 -1
  650. package/dist/infrastructure/types.d.ts +60 -3
  651. package/dist/infrastructure/types.d.ts.map +1 -1
  652. package/dist/mcp/mcp-bridge.js +1 -1
  653. package/dist/mcp/mcp-bridge.js.map +1 -1
  654. package/dist/mcp/monitoring-reading.d.ts +18 -0
  655. package/dist/mcp/monitoring-reading.d.ts.map +1 -0
  656. package/dist/mcp/monitoring-reading.js +84 -0
  657. package/dist/mcp/monitoring-reading.js.map +1 -0
  658. package/dist/mcp/tool-groups/apps.tools.d.ts.map +1 -1
  659. package/dist/mcp/tool-groups/apps.tools.js +6 -4
  660. package/dist/mcp/tool-groups/apps.tools.js.map +1 -1
  661. package/dist/mcp/tool-groups/management.tools.d.ts +2 -0
  662. package/dist/mcp/tool-groups/management.tools.d.ts.map +1 -1
  663. package/dist/mcp/tool-groups/management.tools.js +17 -38
  664. package/dist/mcp/tool-groups/management.tools.js.map +1 -1
  665. package/dist/mcp/tool-groups/monitoring.tools.d.ts.map +1 -1
  666. package/dist/mcp/tool-groups/monitoring.tools.js +45 -2
  667. package/dist/mcp/tool-groups/monitoring.tools.js.map +1 -1
  668. package/dist/mcp/unavailable-tools.js +2 -2
  669. package/dist/mcp/unavailable-tools.js.map +1 -1
  670. package/dist/migration/configuration.d.ts +8 -0
  671. package/dist/migration/configuration.d.ts.map +1 -0
  672. package/dist/migration/configuration.js +16 -0
  673. package/dist/migration/configuration.js.map +1 -0
  674. package/dist/migration/index.d.ts +25 -0
  675. package/dist/migration/index.d.ts.map +1 -0
  676. package/dist/migration/index.js +27 -0
  677. package/dist/migration/index.js.map +1 -0
  678. package/dist/migration/operation.d.ts +31 -0
  679. package/dist/migration/operation.d.ts.map +1 -0
  680. package/dist/migration/operation.js +67 -0
  681. package/dist/migration/operation.js.map +1 -0
  682. package/dist/migration/workspace.d.ts +28 -0
  683. package/dist/migration/workspace.d.ts.map +1 -0
  684. package/dist/migration/workspace.js +91 -0
  685. package/dist/migration/workspace.js.map +1 -0
  686. package/dist/monitoring/app-health.indicator.d.ts +1 -1
  687. package/dist/monitoring/app-health.indicator.d.ts.map +1 -1
  688. package/dist/monitoring/docker-health.indicator.d.ts +4 -2
  689. package/dist/monitoring/docker-health.indicator.d.ts.map +1 -1
  690. package/dist/monitoring/docker-health.indicator.js +66 -5
  691. package/dist/monitoring/docker-health.indicator.js.map +1 -1
  692. package/dist/monitoring/event-loop-watch.d.ts.map +1 -1
  693. package/dist/monitoring/event-loop-watch.js.map +1 -1
  694. package/dist/monitoring/infrastructure-health.d.ts +15 -0
  695. package/dist/monitoring/infrastructure-health.d.ts.map +1 -0
  696. package/dist/monitoring/infrastructure-health.js +2 -0
  697. package/dist/monitoring/infrastructure-health.js.map +1 -0
  698. package/dist/monitoring/log-entry.d.ts +7 -0
  699. package/dist/monitoring/log-entry.d.ts.map +1 -0
  700. package/dist/monitoring/log-entry.js +16 -0
  701. package/dist/monitoring/log-entry.js.map +1 -0
  702. package/dist/monitoring/log-journal.d.ts +40 -0
  703. package/dist/monitoring/log-journal.d.ts.map +1 -0
  704. package/dist/monitoring/log-journal.js +158 -0
  705. package/dist/monitoring/log-journal.js.map +1 -0
  706. package/dist/monitoring/log-line.d.ts +19 -14
  707. package/dist/monitoring/log-line.d.ts.map +1 -1
  708. package/dist/monitoring/log-line.js +70 -59
  709. package/dist/monitoring/log-line.js.map +1 -1
  710. package/dist/monitoring/log-manager.d.ts +34 -37
  711. package/dist/monitoring/log-manager.d.ts.map +1 -1
  712. package/dist/monitoring/log-manager.js +164 -63
  713. package/dist/monitoring/log-manager.js.map +1 -1
  714. package/dist/monitoring/log-sink-health.indicator.d.ts +10 -0
  715. package/dist/monitoring/log-sink-health.indicator.d.ts.map +1 -0
  716. package/dist/monitoring/log-sink-health.indicator.js +21 -0
  717. package/dist/monitoring/log-sink-health.indicator.js.map +1 -0
  718. package/dist/monitoring/metrics-storage.indicator.d.ts +9 -0
  719. package/dist/monitoring/metrics-storage.indicator.d.ts.map +1 -0
  720. package/dist/monitoring/metrics-storage.indicator.js +18 -0
  721. package/dist/monitoring/metrics-storage.indicator.js.map +1 -0
  722. package/dist/monitoring/process-lifetime.d.ts +11 -0
  723. package/dist/monitoring/process-lifetime.d.ts.map +1 -0
  724. package/dist/monitoring/process-lifetime.js +45 -0
  725. package/dist/monitoring/process-lifetime.js.map +1 -0
  726. package/dist/monitoring/runtime-diagnostics.d.ts +47 -0
  727. package/dist/monitoring/runtime-diagnostics.d.ts.map +1 -0
  728. package/dist/monitoring/runtime-diagnostics.js +88 -0
  729. package/dist/monitoring/runtime-diagnostics.js.map +1 -0
  730. package/dist/observability/metrics-bridge.d.ts +5 -1
  731. package/dist/observability/metrics-bridge.d.ts.map +1 -1
  732. package/dist/observability/metrics-bridge.js +11 -0
  733. package/dist/observability/metrics-bridge.js.map +1 -1
  734. package/dist/operations.d.ts +1 -0
  735. package/dist/operations.d.ts.map +1 -1
  736. package/dist/operations.js.map +1 -1
  737. package/dist/orchestrator/app-handle.d.ts +24 -6
  738. package/dist/orchestrator/app-handle.d.ts.map +1 -1
  739. package/dist/orchestrator/app-handle.js +39 -8
  740. package/dist/orchestrator/app-handle.js.map +1 -1
  741. package/dist/orchestrator/application-runtime-child.d.ts +2 -0
  742. package/dist/orchestrator/application-runtime-child.d.ts.map +1 -0
  743. package/dist/orchestrator/application-runtime-child.js +15 -0
  744. package/dist/orchestrator/application-runtime-child.js.map +1 -0
  745. package/dist/orchestrator/application-runtime-resolution.d.ts +4 -0
  746. package/dist/orchestrator/application-runtime-resolution.d.ts.map +1 -0
  747. package/dist/orchestrator/application-runtime-resolution.js +62 -0
  748. package/dist/orchestrator/application-runtime-resolution.js.map +1 -0
  749. package/dist/orchestrator/application-runtime.d.ts +3 -0
  750. package/dist/orchestrator/application-runtime.d.ts.map +1 -0
  751. package/dist/orchestrator/application-runtime.js +20 -0
  752. package/dist/orchestrator/application-runtime.js.map +1 -0
  753. package/dist/orchestrator/application-topology.d.ts +20 -0
  754. package/dist/orchestrator/application-topology.d.ts.map +1 -0
  755. package/dist/orchestrator/application-topology.js +90 -0
  756. package/dist/orchestrator/application-topology.js.map +1 -0
  757. package/dist/orchestrator/bootstrap-loader-child.d.ts +1 -1
  758. package/dist/orchestrator/bootstrap-loader-child.js +7 -16
  759. package/dist/orchestrator/bootstrap-loader-child.js.map +1 -1
  760. package/dist/orchestrator/bootstrap-loader.d.ts +8 -18
  761. package/dist/orchestrator/bootstrap-loader.d.ts.map +1 -1
  762. package/dist/orchestrator/bootstrap-loader.js +21 -204
  763. package/dist/orchestrator/bootstrap-loader.js.map +1 -1
  764. package/dist/orchestrator/bootstrap-process.d.ts +5 -5
  765. package/dist/orchestrator/bootstrap-process.d.ts.map +1 -1
  766. package/dist/orchestrator/bootstrap-process.js +37 -38
  767. package/dist/orchestrator/bootstrap-process.js.map +1 -1
  768. package/dist/orchestrator/build-service.d.ts +3 -3
  769. package/dist/orchestrator/build-service.d.ts.map +1 -1
  770. package/dist/orchestrator/build-service.js +29 -80
  771. package/dist/orchestrator/build-service.js.map +1 -1
  772. package/dist/orchestrator/call-exposed-service.d.ts +8 -0
  773. package/dist/orchestrator/call-exposed-service.d.ts.map +1 -1
  774. package/dist/orchestrator/classic-launcher.d.ts +3 -2
  775. package/dist/orchestrator/classic-launcher.d.ts.map +1 -1
  776. package/dist/orchestrator/classic-launcher.js +26 -22
  777. package/dist/orchestrator/classic-launcher.js.map +1 -1
  778. package/dist/orchestrator/dependency-resolver.d.ts.map +1 -1
  779. package/dist/orchestrator/dependency-resolver.js +7 -38
  780. package/dist/orchestrator/dependency-resolver.js.map +1 -1
  781. package/dist/orchestrator/execution-contract.d.ts +67 -0
  782. package/dist/orchestrator/execution-contract.d.ts.map +1 -0
  783. package/dist/orchestrator/execution-contract.js +2 -0
  784. package/dist/orchestrator/execution-contract.js.map +1 -0
  785. package/dist/orchestrator/file-watcher.d.ts +1 -1
  786. package/dist/orchestrator/file-watcher.d.ts.map +1 -1
  787. package/dist/orchestrator/file-watcher.js +10 -3
  788. package/dist/orchestrator/file-watcher.js.map +1 -1
  789. package/dist/orchestrator/installed-execution.d.ts +7 -0
  790. package/dist/orchestrator/installed-execution.d.ts.map +1 -0
  791. package/dist/orchestrator/installed-execution.js +25 -0
  792. package/dist/orchestrator/installed-execution.js.map +1 -0
  793. package/dist/orchestrator/module-worker-process.d.ts.map +1 -1
  794. package/dist/orchestrator/module-worker-process.js +2 -1
  795. package/dist/orchestrator/module-worker-process.js.map +1 -1
  796. package/dist/orchestrator/orchestrator.service.d.ts +87 -76
  797. package/dist/orchestrator/orchestrator.service.d.ts.map +1 -1
  798. package/dist/orchestrator/orchestrator.service.js +941 -469
  799. package/dist/orchestrator/orchestrator.service.js.map +1 -1
  800. package/dist/orchestrator/process-janitor.d.ts +3 -0
  801. package/dist/orchestrator/process-janitor.d.ts.map +1 -1
  802. package/dist/orchestrator/process-janitor.js +5 -1
  803. package/dist/orchestrator/process-janitor.js.map +1 -1
  804. package/dist/orchestrator/runtime-package-resolution.d.ts +8 -0
  805. package/dist/orchestrator/runtime-package-resolution.d.ts.map +1 -0
  806. package/dist/orchestrator/runtime-package-resolution.js +56 -0
  807. package/dist/orchestrator/runtime-package-resolution.js.map +1 -0
  808. package/dist/orchestrator/service-router.d.ts +4 -108
  809. package/dist/orchestrator/service-router.d.ts.map +1 -1
  810. package/dist/orchestrator/service-router.js +51 -237
  811. package/dist/orchestrator/service-router.js.map +1 -1
  812. package/dist/orchestrator/ts-compiler.d.ts.map +1 -1
  813. package/dist/orchestrator/ts-compiler.js +9 -17
  814. package/dist/orchestrator/ts-compiler.js.map +1 -1
  815. package/dist/project/artifact-builder.d.ts +17 -7
  816. package/dist/project/artifact-builder.d.ts.map +1 -1
  817. package/dist/project/artifact-builder.js +89 -56
  818. package/dist/project/artifact-builder.js.map +1 -1
  819. package/dist/project/bootstrap-metadata.d.ts +42 -0
  820. package/dist/project/bootstrap-metadata.d.ts.map +1 -0
  821. package/dist/project/bootstrap-metadata.js +76 -0
  822. package/dist/project/bootstrap-metadata.js.map +1 -0
  823. package/dist/project/config-resolver.js +3 -3
  824. package/dist/project/config-resolver.js.map +1 -1
  825. package/dist/project/configuration-catalog.d.ts +8 -0
  826. package/dist/project/configuration-catalog.d.ts.map +1 -0
  827. package/dist/project/configuration-catalog.js +29 -0
  828. package/dist/project/configuration-catalog.js.map +1 -0
  829. package/dist/project/declared-config.d.ts +2 -0
  830. package/dist/project/declared-config.d.ts.map +1 -1
  831. package/dist/project/declared-config.js +8 -5
  832. package/dist/project/declared-config.js.map +1 -1
  833. package/dist/project/dependency-topology.d.ts +10 -0
  834. package/dist/project/dependency-topology.d.ts.map +1 -0
  835. package/dist/project/dependency-topology.js +55 -0
  836. package/dist/project/dependency-topology.js.map +1 -0
  837. package/dist/project/infrastructure-ownership.d.ts +5 -0
  838. package/dist/project/infrastructure-ownership.d.ts.map +1 -0
  839. package/dist/project/infrastructure-ownership.js +26 -0
  840. package/dist/project/infrastructure-ownership.js.map +1 -0
  841. package/dist/project/installed-stack-resume.d.ts +62 -0
  842. package/dist/project/installed-stack-resume.d.ts.map +1 -0
  843. package/dist/project/installed-stack-resume.js +261 -0
  844. package/dist/project/installed-stack-resume.js.map +1 -0
  845. package/dist/project/launch-failure.d.ts +3 -0
  846. package/dist/project/launch-failure.d.ts.map +1 -0
  847. package/dist/project/launch-failure.js +32 -0
  848. package/dist/project/launch-failure.js.map +1 -0
  849. package/dist/project/local-release-selection.d.ts +18 -0
  850. package/dist/project/local-release-selection.d.ts.map +1 -0
  851. package/dist/project/local-release-selection.js +36 -0
  852. package/dist/project/local-release-selection.js.map +1 -0
  853. package/dist/project/node-app-config.d.ts +8 -1
  854. package/dist/project/node-app-config.d.ts.map +1 -1
  855. package/dist/project/node-app-config.js +20 -28
  856. package/dist/project/node-app-config.js.map +1 -1
  857. package/dist/project/node-stack-stop.d.ts +83 -0
  858. package/dist/project/node-stack-stop.d.ts.map +1 -0
  859. package/dist/project/node-stack-stop.js +219 -0
  860. package/dist/project/node-stack-stop.js.map +1 -0
  861. package/dist/project/public-stack.d.ts +4 -0
  862. package/dist/project/public-stack.d.ts.map +1 -0
  863. package/dist/project/public-stack.js +29 -0
  864. package/dist/project/public-stack.js.map +1 -0
  865. package/dist/project/registry.d.ts +18 -27
  866. package/dist/project/registry.d.ts.map +1 -1
  867. package/dist/project/registry.js +244 -55
  868. package/dist/project/registry.js.map +1 -1
  869. package/dist/project/requirements-scanner.d.ts +4 -8
  870. package/dist/project/requirements-scanner.d.ts.map +1 -1
  871. package/dist/project/requirements-scanner.js +39 -146
  872. package/dist/project/requirements-scanner.js.map +1 -1
  873. package/dist/project/stack-diagnosis.d.ts +18 -0
  874. package/dist/project/stack-diagnosis.d.ts.map +1 -0
  875. package/dist/project/stack-diagnosis.js +94 -0
  876. package/dist/project/stack-diagnosis.js.map +1 -0
  877. package/dist/project/stack-health.d.ts +12 -0
  878. package/dist/project/stack-health.d.ts.map +1 -0
  879. package/dist/project/stack-health.js +27 -0
  880. package/dist/project/stack-health.js.map +1 -0
  881. package/dist/project/stack-observation.d.ts +8 -0
  882. package/dist/project/stack-observation.d.ts.map +1 -0
  883. package/dist/project/stack-observation.js +126 -0
  884. package/dist/project/stack-observation.js.map +1 -0
  885. package/dist/project/stack-placement.d.ts +11 -0
  886. package/dist/project/stack-placement.d.ts.map +1 -0
  887. package/dist/project/stack-placement.js +57 -0
  888. package/dist/project/stack-placement.js.map +1 -0
  889. package/dist/project/stack-stop-review.d.ts +14 -0
  890. package/dist/project/stack-stop-review.d.ts.map +1 -0
  891. package/dist/project/stack-stop-review.js +22 -0
  892. package/dist/project/stack-stop-review.js.map +1 -0
  893. package/dist/project/stack-targets.d.ts +24 -0
  894. package/dist/project/stack-targets.d.ts.map +1 -0
  895. package/dist/project/stack-targets.js +67 -0
  896. package/dist/project/stack-targets.js.map +1 -0
  897. package/dist/project/topology-control.d.ts +41 -0
  898. package/dist/project/topology-control.d.ts.map +1 -0
  899. package/dist/project/topology-control.js +133 -0
  900. package/dist/project/topology-control.js.map +1 -0
  901. package/dist/project/topology-plan.d.ts +11 -0
  902. package/dist/project/topology-plan.d.ts.map +1 -0
  903. package/dist/project/topology-plan.js +154 -0
  904. package/dist/project/topology-plan.js.map +1 -0
  905. package/dist/project/topology-services.d.ts +7 -0
  906. package/dist/project/topology-services.d.ts.map +1 -0
  907. package/dist/project/topology-services.js +36 -0
  908. package/dist/project/topology-services.js.map +1 -0
  909. package/dist/project/topology-state.d.ts +27 -0
  910. package/dist/project/topology-state.d.ts.map +1 -0
  911. package/dist/project/topology-state.js +71 -0
  912. package/dist/project/topology-state.js.map +1 -0
  913. package/dist/project/workspace-kind.d.ts +3 -0
  914. package/dist/project/workspace-kind.d.ts.map +1 -0
  915. package/dist/project/workspace-kind.js +13 -0
  916. package/dist/project/workspace-kind.js.map +1 -0
  917. package/dist/readiness.d.ts +4 -0
  918. package/dist/readiness.d.ts.map +1 -0
  919. package/dist/readiness.js +3 -0
  920. package/dist/readiness.js.map +1 -0
  921. package/dist/release/application-closure.d.ts +4 -0
  922. package/dist/release/application-closure.d.ts.map +1 -0
  923. package/dist/release/application-closure.js +61 -0
  924. package/dist/release/application-closure.js.map +1 -0
  925. package/dist/release/archive.d.ts +3 -0
  926. package/dist/release/archive.d.ts.map +1 -0
  927. package/dist/release/archive.js +3 -0
  928. package/dist/release/archive.js.map +1 -0
  929. package/dist/release/artifact-inspection.d.ts +50 -0
  930. package/dist/release/artifact-inspection.d.ts.map +1 -0
  931. package/dist/release/artifact-inspection.js +169 -0
  932. package/dist/release/artifact-inspection.js.map +1 -0
  933. package/dist/release/artifact-volumes.d.ts +10 -0
  934. package/dist/release/artifact-volumes.d.ts.map +1 -0
  935. package/dist/release/artifact-volumes.js +112 -0
  936. package/dist/release/artifact-volumes.js.map +1 -0
  937. package/dist/release/build-run.d.ts +12 -15
  938. package/dist/release/build-run.d.ts.map +1 -1
  939. package/dist/release/build-run.js +260 -73
  940. package/dist/release/build-run.js.map +1 -1
  941. package/dist/release/builder.d.ts +8 -2
  942. package/dist/release/builder.d.ts.map +1 -1
  943. package/dist/release/builder.js +18 -4
  944. package/dist/release/builder.js.map +1 -1
  945. package/dist/release/closure-library-path.d.ts +26 -0
  946. package/dist/release/closure-library-path.d.ts.map +1 -0
  947. package/dist/release/closure-library-path.js +160 -0
  948. package/dist/release/closure-library-path.js.map +1 -0
  949. package/dist/release/definition-inputs.d.ts +6 -3
  950. package/dist/release/definition-inputs.d.ts.map +1 -1
  951. package/dist/release/definition-inputs.js +145 -14
  952. package/dist/release/definition-inputs.js.map +1 -1
  953. package/dist/release/framework-source.d.ts +22 -0
  954. package/dist/release/framework-source.d.ts.map +1 -0
  955. package/dist/release/framework-source.js +54 -0
  956. package/dist/release/framework-source.js.map +1 -0
  957. package/dist/release/frozen-installation.d.ts +23 -0
  958. package/dist/release/frozen-installation.d.ts.map +1 -0
  959. package/dist/release/frozen-installation.js +159 -0
  960. package/dist/release/frozen-installation.js.map +1 -0
  961. package/dist/release/import-artifacts.d.ts +9 -0
  962. package/dist/release/import-artifacts.d.ts.map +1 -0
  963. package/dist/release/import-artifacts.js +60 -0
  964. package/dist/release/import-artifacts.js.map +1 -0
  965. package/dist/release/infrastructure.d.ts +6 -0
  966. package/dist/release/infrastructure.d.ts.map +1 -0
  967. package/dist/release/infrastructure.js +74 -0
  968. package/dist/release/infrastructure.js.map +1 -0
  969. package/dist/release/installed-artifacts.d.ts +12 -0
  970. package/dist/release/installed-artifacts.d.ts.map +1 -0
  971. package/dist/release/installed-artifacts.js +199 -0
  972. package/dist/release/installed-artifacts.js.map +1 -0
  973. package/dist/release/installed-graph.d.ts +28 -0
  974. package/dist/release/installed-graph.d.ts.map +1 -0
  975. package/dist/release/installed-graph.js +138 -0
  976. package/dist/release/installed-graph.js.map +1 -0
  977. package/dist/release/installed-origin.d.ts +42 -0
  978. package/dist/release/installed-origin.d.ts.map +1 -0
  979. package/dist/release/installed-origin.js +130 -0
  980. package/dist/release/installed-origin.js.map +1 -0
  981. package/dist/release/installed-release.d.ts +23 -0
  982. package/dist/release/installed-release.d.ts.map +1 -0
  983. package/dist/release/installed-release.js +141 -0
  984. package/dist/release/installed-release.js.map +1 -0
  985. package/dist/release/layout.d.ts +27 -32
  986. package/dist/release/layout.d.ts.map +1 -1
  987. package/dist/release/layout.js +162 -51
  988. package/dist/release/layout.js.map +1 -1
  989. package/dist/release/load.d.ts +3 -0
  990. package/dist/release/load.d.ts.map +1 -1
  991. package/dist/release/load.js +50 -8
  992. package/dist/release/load.js.map +1 -1
  993. package/dist/release/local-installation.d.ts +20 -0
  994. package/dist/release/local-installation.d.ts.map +1 -0
  995. package/dist/release/local-installation.js +298 -0
  996. package/dist/release/local-installation.js.map +1 -0
  997. package/dist/release/manifest.d.ts +87 -12
  998. package/dist/release/manifest.d.ts.map +1 -1
  999. package/dist/release/manifest.js +31 -7
  1000. package/dist/release/manifest.js.map +1 -1
  1001. package/dist/release/migration-programs.d.ts +12 -0
  1002. package/dist/release/migration-programs.d.ts.map +1 -0
  1003. package/dist/release/migration-programs.js +45 -0
  1004. package/dist/release/migration-programs.js.map +1 -0
  1005. package/dist/release/migrations.d.ts +12 -1
  1006. package/dist/release/migrations.d.ts.map +1 -1
  1007. package/dist/release/migrations.js +124 -9
  1008. package/dist/release/migrations.js.map +1 -1
  1009. package/dist/release/origin.d.ts +33 -0
  1010. package/dist/release/origin.d.ts.map +1 -0
  1011. package/dist/release/origin.js +253 -0
  1012. package/dist/release/origin.js.map +1 -0
  1013. package/dist/release/owner-admission.d.ts +15 -0
  1014. package/dist/release/owner-admission.d.ts.map +1 -0
  1015. package/dist/release/owner-admission.js +37 -0
  1016. package/dist/release/owner-admission.js.map +1 -0
  1017. package/dist/release/owner-executable.d.ts +3 -0
  1018. package/dist/release/owner-executable.d.ts.map +1 -0
  1019. package/dist/release/owner-executable.js +40 -0
  1020. package/dist/release/owner-executable.js.map +1 -0
  1021. package/dist/release/package-gates.d.ts +9 -0
  1022. package/dist/release/package-gates.d.ts.map +1 -0
  1023. package/dist/release/package-gates.js +42 -0
  1024. package/dist/release/package-gates.js.map +1 -0
  1025. package/dist/release/package-resolution.d.ts +4 -0
  1026. package/dist/release/package-resolution.d.ts.map +1 -0
  1027. package/dist/release/package-resolution.js +28 -0
  1028. package/dist/release/package-resolution.js.map +1 -0
  1029. package/dist/release/portable-archive.d.ts +12 -0
  1030. package/dist/release/portable-archive.d.ts.map +1 -0
  1031. package/dist/release/portable-archive.js +96 -0
  1032. package/dist/release/portable-archive.js.map +1 -0
  1033. package/dist/release/registry-download.d.ts +2 -0
  1034. package/dist/release/registry-download.d.ts.map +1 -0
  1035. package/dist/release/registry-download.js +157 -0
  1036. package/dist/release/registry-download.js.map +1 -0
  1037. package/dist/release/registry-framework.d.ts +39 -0
  1038. package/dist/release/registry-framework.d.ts.map +1 -0
  1039. package/dist/release/registry-framework.js +279 -0
  1040. package/dist/release/registry-framework.js.map +1 -0
  1041. package/dist/release/registry-transport.d.ts +27 -0
  1042. package/dist/release/registry-transport.d.ts.map +1 -0
  1043. package/dist/release/registry-transport.js +96 -0
  1044. package/dist/release/registry-transport.js.map +1 -0
  1045. package/dist/release/repository-identity.d.ts +12 -0
  1046. package/dist/release/repository-identity.d.ts.map +1 -0
  1047. package/dist/release/repository-identity.js +62 -0
  1048. package/dist/release/repository-identity.js.map +1 -0
  1049. package/dist/release/runtime-extractor.d.ts +4 -0
  1050. package/dist/release/runtime-extractor.d.ts.map +1 -0
  1051. package/dist/release/runtime-extractor.js +15 -0
  1052. package/dist/release/runtime-extractor.js.map +1 -0
  1053. package/dist/release/runtime-provenance.d.ts +40 -0
  1054. package/dist/release/runtime-provenance.d.ts.map +1 -0
  1055. package/dist/release/runtime-provenance.js +229 -0
  1056. package/dist/release/runtime-provenance.js.map +1 -0
  1057. package/dist/release/source.d.ts +12 -0
  1058. package/dist/release/source.d.ts.map +1 -0
  1059. package/dist/release/source.js +168 -0
  1060. package/dist/release/source.js.map +1 -0
  1061. package/dist/release/store.d.ts +13 -4
  1062. package/dist/release/store.d.ts.map +1 -1
  1063. package/dist/release/store.js +70 -14
  1064. package/dist/release/store.js.map +1 -1
  1065. package/dist/release/target-runtime.d.ts +19 -0
  1066. package/dist/release/target-runtime.d.ts.map +1 -0
  1067. package/dist/release/target-runtime.js +41 -0
  1068. package/dist/release/target-runtime.js.map +1 -0
  1069. package/dist/release/vendored-framework.d.ts +28 -0
  1070. package/dist/release/vendored-framework.d.ts.map +1 -0
  1071. package/dist/release/vendored-framework.js +98 -0
  1072. package/dist/release/vendored-framework.js.map +1 -0
  1073. package/dist/release/workspace-source.d.ts +3 -0
  1074. package/dist/release/workspace-source.d.ts.map +1 -0
  1075. package/dist/release/workspace-source.js +33 -0
  1076. package/dist/release/workspace-source.js.map +1 -0
  1077. package/dist/runtime/context.d.ts +29 -0
  1078. package/dist/runtime/context.d.ts.map +1 -0
  1079. package/dist/runtime/context.js +111 -0
  1080. package/dist/runtime/context.js.map +1 -0
  1081. package/dist/runtime/identity.d.ts +15 -0
  1082. package/dist/runtime/identity.d.ts.map +1 -0
  1083. package/dist/runtime/identity.js +33 -0
  1084. package/dist/runtime/identity.js.map +1 -0
  1085. package/dist/runtime/index.d.ts +3 -0
  1086. package/dist/runtime/index.d.ts.map +1 -0
  1087. package/dist/runtime/index.js +3 -0
  1088. package/dist/runtime/index.js.map +1 -0
  1089. package/dist/services/access.rpc-service.d.ts +41 -0
  1090. package/dist/services/access.rpc-service.d.ts.map +1 -0
  1091. package/dist/services/access.rpc-service.js +248 -0
  1092. package/dist/services/access.rpc-service.js.map +1 -0
  1093. package/dist/services/alert.service.d.ts +1 -1
  1094. package/dist/services/alert.service.d.ts.map +1 -1
  1095. package/dist/services/alert.service.js +1 -1
  1096. package/dist/services/anonymous-input.d.ts +0 -21
  1097. package/dist/services/anonymous-input.d.ts.map +1 -1
  1098. package/dist/services/anonymous-input.js +1 -27
  1099. package/dist/services/anonymous-input.js.map +1 -1
  1100. package/dist/services/audit.service.d.ts +10 -30
  1101. package/dist/services/audit.service.d.ts.map +1 -1
  1102. package/dist/services/audit.service.js +72 -18
  1103. package/dist/services/audit.service.js.map +1 -1
  1104. package/dist/services/auth-context.d.ts +2 -0
  1105. package/dist/services/auth-context.d.ts.map +1 -1
  1106. package/dist/services/auth-context.js +4 -1
  1107. package/dist/services/auth-context.js.map +1 -1
  1108. package/dist/services/auth.rpc-service.d.ts +3 -1
  1109. package/dist/services/auth.rpc-service.d.ts.map +1 -1
  1110. package/dist/services/auth.rpc-service.js +13 -3
  1111. package/dist/services/auth.rpc-service.js.map +1 -1
  1112. package/dist/services/auth.service.d.ts +11 -21
  1113. package/dist/services/auth.service.d.ts.map +1 -1
  1114. package/dist/services/auth.service.js +125 -139
  1115. package/dist/services/auth.service.js.map +1 -1
  1116. package/dist/services/backup-storage.d.ts +14 -0
  1117. package/dist/services/backup-storage.d.ts.map +1 -0
  1118. package/dist/services/backup-storage.js +195 -0
  1119. package/dist/services/backup-storage.js.map +1 -0
  1120. package/dist/services/backup.rpc-service.d.ts +2 -0
  1121. package/dist/services/backup.rpc-service.d.ts.map +1 -1
  1122. package/dist/services/backup.rpc-service.js +9 -0
  1123. package/dist/services/backup.rpc-service.js.map +1 -1
  1124. package/dist/services/backup.service.d.ts +33 -126
  1125. package/dist/services/backup.service.d.ts.map +1 -1
  1126. package/dist/services/backup.service.js +174 -153
  1127. package/dist/services/backup.service.js.map +1 -1
  1128. package/dist/services/bundle-builder.d.ts +12 -0
  1129. package/dist/services/bundle-builder.d.ts.map +1 -1
  1130. package/dist/services/bundle-builder.js +77 -62
  1131. package/dist/services/bundle-builder.js.map +1 -1
  1132. package/dist/services/bundle-overrides.d.ts +25 -0
  1133. package/dist/services/bundle-overrides.d.ts.map +1 -0
  1134. package/dist/services/bundle-overrides.js +96 -0
  1135. package/dist/services/bundle-overrides.js.map +1 -0
  1136. package/dist/services/daemon-authority.d.ts +16 -0
  1137. package/dist/services/daemon-authority.d.ts.map +1 -0
  1138. package/dist/services/daemon-authority.js +54 -0
  1139. package/dist/services/daemon-authority.js.map +1 -0
  1140. package/dist/services/daemon-principal.d.ts +31 -0
  1141. package/dist/services/daemon-principal.d.ts.map +1 -0
  1142. package/dist/services/daemon-principal.js +37 -0
  1143. package/dist/services/daemon-principal.js.map +1 -0
  1144. package/dist/services/deploy.service.d.ts +13 -57
  1145. package/dist/services/deploy.service.d.ts.map +1 -1
  1146. package/dist/services/deploy.service.js +15 -263
  1147. package/dist/services/deploy.service.js.map +1 -1
  1148. package/dist/services/event-broadcaster.rpc-service.d.ts +7 -1
  1149. package/dist/services/event-broadcaster.rpc-service.d.ts.map +1 -1
  1150. package/dist/services/event-broadcaster.rpc-service.js +89 -11
  1151. package/dist/services/event-broadcaster.rpc-service.js.map +1 -1
  1152. package/dist/services/fleet.rpc-service.d.ts +0 -6
  1153. package/dist/services/fleet.rpc-service.d.ts.map +1 -1
  1154. package/dist/services/fleet.rpc-service.js +0 -13
  1155. package/dist/services/fleet.rpc-service.js.map +1 -1
  1156. package/dist/services/health-check.service.d.ts +1 -1
  1157. package/dist/services/health-check.service.d.ts.map +1 -1
  1158. package/dist/services/health-check.service.js +30 -5
  1159. package/dist/services/health-check.service.js.map +1 -1
  1160. package/dist/services/host-upgrade.d.ts +55 -3
  1161. package/dist/services/host-upgrade.d.ts.map +1 -1
  1162. package/dist/services/host-upgrade.js +167 -16
  1163. package/dist/services/host-upgrade.js.map +1 -1
  1164. package/dist/services/infrastructure.rpc-service.d.ts +9 -2
  1165. package/dist/services/infrastructure.rpc-service.d.ts.map +1 -1
  1166. package/dist/services/infrastructure.rpc-service.js +117 -36
  1167. package/dist/services/infrastructure.rpc-service.js.map +1 -1
  1168. package/dist/services/kernel-catalog.d.ts +14 -0
  1169. package/dist/services/kernel-catalog.d.ts.map +1 -0
  1170. package/dist/services/kernel-catalog.js +172 -0
  1171. package/dist/services/kernel-catalog.js.map +1 -0
  1172. package/dist/services/kernel-distribution.d.ts +5 -0
  1173. package/dist/services/kernel-distribution.d.ts.map +1 -0
  1174. package/dist/services/kernel-distribution.js +49 -0
  1175. package/dist/services/kernel-distribution.js.map +1 -0
  1176. package/dist/services/kernel-rollout.service.d.ts +55 -0
  1177. package/dist/services/kernel-rollout.service.d.ts.map +1 -0
  1178. package/dist/services/kernel-rollout.service.js +394 -0
  1179. package/dist/services/kernel-rollout.service.js.map +1 -0
  1180. package/dist/services/local-bundle.d.ts.map +1 -1
  1181. package/dist/services/local-bundle.js +3 -1
  1182. package/dist/services/local-bundle.js.map +1 -1
  1183. package/dist/services/log-collector.rpc-service.d.ts +5 -11
  1184. package/dist/services/log-collector.rpc-service.d.ts.map +1 -1
  1185. package/dist/services/log-collector.rpc-service.js +6 -6
  1186. package/dist/services/log-collector.rpc-service.js.map +1 -1
  1187. package/dist/services/log-collector.service.d.ts +39 -109
  1188. package/dist/services/log-collector.service.d.ts.map +1 -1
  1189. package/dist/services/log-collector.service.js +286 -261
  1190. package/dist/services/log-collector.service.js.map +1 -1
  1191. package/dist/services/log-query.d.ts +6 -0
  1192. package/dist/services/log-query.d.ts.map +1 -0
  1193. package/dist/services/log-query.js +46 -0
  1194. package/dist/services/log-query.js.map +1 -0
  1195. package/dist/services/managed-rollout.d.ts +54 -0
  1196. package/dist/services/managed-rollout.d.ts.map +1 -0
  1197. package/dist/services/managed-rollout.js +124 -0
  1198. package/dist/services/managed-rollout.js.map +1 -0
  1199. package/dist/services/metrics.rpc-service.d.ts +23 -0
  1200. package/dist/services/metrics.rpc-service.d.ts.map +1 -0
  1201. package/dist/services/metrics.rpc-service.js +73 -0
  1202. package/dist/services/metrics.rpc-service.js.map +1 -0
  1203. package/dist/services/migration-process.d.ts +32 -0
  1204. package/dist/services/migration-process.d.ts.map +1 -0
  1205. package/dist/services/migration-process.js +71 -0
  1206. package/dist/services/migration-process.js.map +1 -0
  1207. package/dist/services/migration-target.d.ts +57 -0
  1208. package/dist/services/migration-target.d.ts.map +1 -0
  1209. package/dist/services/migration-target.js +221 -0
  1210. package/dist/services/migration-target.js.map +1 -0
  1211. package/dist/services/node-health.repository.d.ts +2 -59
  1212. package/dist/services/node-health.repository.d.ts.map +1 -1
  1213. package/dist/services/node-health.repository.js.map +1 -1
  1214. package/dist/services/node-host-key.d.ts +9 -0
  1215. package/dist/services/node-host-key.d.ts.map +1 -0
  1216. package/dist/services/node-host-key.js +17 -0
  1217. package/dist/services/node-host-key.js.map +1 -0
  1218. package/dist/services/node-manager.rpc-service.d.ts +44 -37
  1219. package/dist/services/node-manager.rpc-service.d.ts.map +1 -1
  1220. package/dist/services/node-manager.rpc-service.js +208 -37
  1221. package/dist/services/node-manager.rpc-service.js.map +1 -1
  1222. package/dist/services/node-manager.service.d.ts +3 -0
  1223. package/dist/services/node-manager.service.d.ts.map +1 -1
  1224. package/dist/services/node-manager.service.js +78 -27
  1225. package/dist/services/node-manager.service.js.map +1 -1
  1226. package/dist/services/node-registration.d.ts +17 -0
  1227. package/dist/services/node-registration.d.ts.map +1 -0
  1228. package/dist/services/node-registration.js +73 -0
  1229. package/dist/services/node-registration.js.map +1 -0
  1230. package/dist/services/node-upgrade.service.d.ts +2 -28
  1231. package/dist/services/node-upgrade.service.d.ts.map +1 -1
  1232. package/dist/services/node-upgrade.service.js +2 -3
  1233. package/dist/services/node-upgrade.service.js.map +1 -1
  1234. package/dist/services/pipeline-definition.d.ts +14 -0
  1235. package/dist/services/pipeline-definition.d.ts.map +1 -0
  1236. package/dist/services/pipeline-definition.js +77 -0
  1237. package/dist/services/pipeline-definition.js.map +1 -0
  1238. package/dist/services/pipeline.rpc-service.d.ts +10 -3
  1239. package/dist/services/pipeline.rpc-service.d.ts.map +1 -1
  1240. package/dist/services/pipeline.rpc-service.js +38 -14
  1241. package/dist/services/pipeline.rpc-service.js.map +1 -1
  1242. package/dist/services/pipeline.service.d.ts +30 -46
  1243. package/dist/services/pipeline.service.d.ts.map +1 -1
  1244. package/dist/services/pipeline.service.js +401 -344
  1245. package/dist/services/pipeline.service.js.map +1 -1
  1246. package/dist/services/project.rpc-service.d.ts +212 -14
  1247. package/dist/services/project.rpc-service.d.ts.map +1 -1
  1248. package/dist/services/project.rpc-service.js +303 -31
  1249. package/dist/services/project.rpc-service.js.map +1 -1
  1250. package/dist/services/project.service.d.ts +174 -56
  1251. package/dist/services/project.service.d.ts.map +1 -1
  1252. package/dist/services/project.service.js +1962 -653
  1253. package/dist/services/project.service.js.map +1 -1
  1254. package/dist/services/release.rpc-service.d.ts +5 -18
  1255. package/dist/services/release.rpc-service.d.ts.map +1 -1
  1256. package/dist/services/release.rpc-service.js +34 -11
  1257. package/dist/services/release.rpc-service.js.map +1 -1
  1258. package/dist/services/release.service.d.ts +2 -47
  1259. package/dist/services/release.service.d.ts.map +1 -1
  1260. package/dist/services/release.service.js +26 -2
  1261. package/dist/services/release.service.js.map +1 -1
  1262. package/dist/services/remote-deployer.service.d.ts +41 -113
  1263. package/dist/services/remote-deployer.service.d.ts.map +1 -1
  1264. package/dist/services/remote-deployer.service.js +415 -378
  1265. package/dist/services/remote-deployer.service.js.map +1 -1
  1266. package/dist/services/remote-provisioner.d.ts +1 -1
  1267. package/dist/services/remote-provisioner.js +1 -1
  1268. package/dist/services/replication-evidence.d.ts +24 -0
  1269. package/dist/services/replication-evidence.d.ts.map +1 -0
  1270. package/dist/services/replication-evidence.js +61 -0
  1271. package/dist/services/replication-evidence.js.map +1 -0
  1272. package/dist/services/replication-history.d.ts +80 -0
  1273. package/dist/services/replication-history.d.ts.map +1 -0
  1274. package/dist/services/replication-history.js +279 -0
  1275. package/dist/services/replication-history.js.map +1 -0
  1276. package/dist/services/replication-reconciliation.d.ts +74 -0
  1277. package/dist/services/replication-reconciliation.d.ts.map +1 -0
  1278. package/dist/services/replication-reconciliation.js +351 -0
  1279. package/dist/services/replication-reconciliation.js.map +1 -0
  1280. package/dist/services/slave-storage.service.d.ts +2 -19
  1281. package/dist/services/slave-storage.service.d.ts.map +1 -1
  1282. package/dist/services/slave-storage.service.js +19 -6
  1283. package/dist/services/slave-storage.service.js.map +1 -1
  1284. package/dist/services/static-carry-forward.d.ts +2 -2
  1285. package/dist/services/static-carry-forward.d.ts.map +1 -1
  1286. package/dist/services/static-carry-forward.js +10 -3
  1287. package/dist/services/static-carry-forward.js.map +1 -1
  1288. package/dist/services/sync-summary.d.ts.map +1 -1
  1289. package/dist/services/sync-summary.js +1 -18
  1290. package/dist/services/sync-summary.js.map +1 -1
  1291. package/dist/services/sync.rpc-service.d.ts +17 -20
  1292. package/dist/services/sync.rpc-service.d.ts.map +1 -1
  1293. package/dist/services/sync.rpc-service.js +23 -37
  1294. package/dist/services/sync.rpc-service.js.map +1 -1
  1295. package/dist/services/sync.service.d.ts +53 -157
  1296. package/dist/services/sync.service.d.ts.map +1 -1
  1297. package/dist/services/sync.service.js +239 -337
  1298. package/dist/services/sync.service.js.map +1 -1
  1299. package/dist/services/system-info.rpc-service.d.ts +3 -1
  1300. package/dist/services/system-info.rpc-service.d.ts.map +1 -1
  1301. package/dist/services/system-info.rpc-service.js +5 -5
  1302. package/dist/services/system-info.rpc-service.js.map +1 -1
  1303. package/dist/services/system-info.service.d.ts +3 -1
  1304. package/dist/services/system-info.service.d.ts.map +1 -1
  1305. package/dist/services/system-info.service.js +17 -9
  1306. package/dist/services/system-info.service.js.map +1 -1
  1307. package/dist/services/telemetry.rpc-service.d.ts +4 -23
  1308. package/dist/services/telemetry.rpc-service.d.ts.map +1 -1
  1309. package/dist/services/telemetry.rpc-service.js +4 -32
  1310. package/dist/services/telemetry.rpc-service.js.map +1 -1
  1311. package/dist/services/telemetry.service.d.ts +2 -30
  1312. package/dist/services/telemetry.service.d.ts.map +1 -1
  1313. package/dist/services/telemetry.service.js +25 -131
  1314. package/dist/services/telemetry.service.js.map +1 -1
  1315. package/dist/services/terminal-ssh.d.ts +16 -0
  1316. package/dist/services/terminal-ssh.d.ts.map +1 -0
  1317. package/dist/services/terminal-ssh.js +101 -0
  1318. package/dist/services/terminal-ssh.js.map +1 -0
  1319. package/dist/services/terminal.rpc-service.d.ts +84 -0
  1320. package/dist/services/terminal.rpc-service.d.ts.map +1 -0
  1321. package/dist/services/terminal.rpc-service.js +508 -0
  1322. package/dist/services/terminal.rpc-service.js.map +1 -0
  1323. package/dist/services/trace-collector.rpc-service.js +3 -3
  1324. package/dist/services/trace-collector.rpc-service.js.map +1 -1
  1325. package/dist/services/wait-for-postgres.d.ts +1 -1
  1326. package/dist/services/wait-for-postgres.d.ts.map +1 -1
  1327. package/dist/services/wait-for-postgres.js +13 -28
  1328. package/dist/services/wait-for-postgres.js.map +1 -1
  1329. package/dist/shared/build-stamp.d.ts +4 -1
  1330. package/dist/shared/build-stamp.d.ts.map +1 -1
  1331. package/dist/shared/build-stamp.js +14 -6
  1332. package/dist/shared/build-stamp.js.map +1 -1
  1333. package/dist/shared/describe-error.d.ts +1 -21
  1334. package/dist/shared/describe-error.d.ts.map +1 -1
  1335. package/dist/shared/describe-error.js +1 -38
  1336. package/dist/shared/describe-error.js.map +1 -1
  1337. package/dist/shared/dto/access.d.ts +55 -0
  1338. package/dist/shared/dto/access.d.ts.map +1 -0
  1339. package/dist/shared/dto/access.js +2 -0
  1340. package/dist/shared/dto/access.js.map +1 -0
  1341. package/dist/shared/dto/audit.d.ts +32 -0
  1342. package/dist/shared/dto/audit.d.ts.map +1 -0
  1343. package/dist/shared/dto/audit.js +3 -0
  1344. package/dist/shared/dto/audit.js.map +1 -0
  1345. package/dist/shared/dto/auth.d.ts +2 -0
  1346. package/dist/shared/dto/auth.d.ts.map +1 -1
  1347. package/dist/shared/dto/auth.js +5 -1
  1348. package/dist/shared/dto/auth.js.map +1 -1
  1349. package/dist/shared/dto/backend.d.ts +50 -0
  1350. package/dist/shared/dto/backend.d.ts.map +1 -0
  1351. package/dist/shared/dto/backend.js +3 -0
  1352. package/dist/shared/dto/backend.js.map +1 -0
  1353. package/dist/shared/dto/backups.d.ts +99 -0
  1354. package/dist/shared/dto/backups.d.ts.map +1 -1
  1355. package/dist/shared/dto/cluster.d.ts +44 -0
  1356. package/dist/shared/dto/cluster.d.ts.map +1 -0
  1357. package/dist/shared/dto/cluster.js +3 -0
  1358. package/dist/shared/dto/cluster.js.map +1 -0
  1359. package/dist/shared/dto/files.d.ts +328 -0
  1360. package/dist/shared/dto/files.d.ts.map +1 -0
  1361. package/dist/shared/dto/files.js +2 -0
  1362. package/dist/shared/dto/files.js.map +1 -0
  1363. package/dist/shared/dto/health.d.ts +59 -0
  1364. package/dist/shared/dto/health.d.ts.map +1 -1
  1365. package/dist/shared/dto/installed-release.d.ts +40 -0
  1366. package/dist/shared/dto/installed-release.d.ts.map +1 -0
  1367. package/dist/shared/dto/installed-release.js +2 -0
  1368. package/dist/shared/dto/installed-release.js.map +1 -0
  1369. package/dist/shared/dto/kernel-catalog.d.ts +11 -0
  1370. package/dist/shared/dto/kernel-catalog.d.ts.map +1 -0
  1371. package/dist/shared/dto/kernel-catalog.js +2 -0
  1372. package/dist/shared/dto/kernel-catalog.js.map +1 -0
  1373. package/dist/shared/dto/logs.d.ts +21 -0
  1374. package/dist/shared/dto/logs.d.ts.map +1 -1
  1375. package/dist/shared/dto/metrics.d.ts +4 -64
  1376. package/dist/shared/dto/metrics.d.ts.map +1 -1
  1377. package/dist/shared/dto/metrics.js +0 -15
  1378. package/dist/shared/dto/metrics.js.map +1 -1
  1379. package/dist/shared/dto/nodes.d.ts +96 -22
  1380. package/dist/shared/dto/nodes.d.ts.map +1 -1
  1381. package/dist/shared/dto/pipelines.d.ts +22 -1
  1382. package/dist/shared/dto/pipelines.d.ts.map +1 -1
  1383. package/dist/shared/dto/project.d.ts +289 -30
  1384. package/dist/shared/dto/project.d.ts.map +1 -1
  1385. package/dist/shared/dto/releases.d.ts +59 -0
  1386. package/dist/shared/dto/releases.d.ts.map +1 -0
  1387. package/dist/shared/dto/releases.js +2 -0
  1388. package/dist/shared/dto/releases.js.map +1 -0
  1389. package/dist/shared/dto/services.d.ts +174 -37
  1390. package/dist/shared/dto/services.d.ts.map +1 -1
  1391. package/dist/shared/dto/services.js +15 -6
  1392. package/dist/shared/dto/services.js.map +1 -1
  1393. package/dist/shared/dto/stack-diagnosis.d.ts +20 -0
  1394. package/dist/shared/dto/stack-diagnosis.d.ts.map +1 -0
  1395. package/dist/shared/dto/stack-diagnosis.js +8 -0
  1396. package/dist/shared/dto/stack-diagnosis.js.map +1 -0
  1397. package/dist/shared/dto/stack-execution.d.ts +65 -0
  1398. package/dist/shared/dto/stack-execution.d.ts.map +1 -0
  1399. package/dist/shared/dto/stack-execution.js +33 -0
  1400. package/dist/shared/dto/stack-execution.js.map +1 -0
  1401. package/dist/shared/dto/system-info.d.ts +11 -0
  1402. package/dist/shared/dto/system-info.d.ts.map +1 -1
  1403. package/dist/shared/dto/system-info.js +7 -1
  1404. package/dist/shared/dto/system-info.js.map +1 -1
  1405. package/dist/shared/dto/terminal.d.ts +40 -0
  1406. package/dist/shared/dto/terminal.d.ts.map +1 -0
  1407. package/dist/shared/dto/terminal.js +2 -0
  1408. package/dist/shared/dto/terminal.js.map +1 -0
  1409. package/dist/shared/dto/topology.d.ts +96 -0
  1410. package/dist/shared/dto/topology.d.ts.map +1 -0
  1411. package/dist/shared/dto/topology.js +2 -0
  1412. package/dist/shared/dto/topology.js.map +1 -0
  1413. package/dist/shared/emergency-output.d.ts +3 -0
  1414. package/dist/shared/emergency-output.d.ts.map +1 -0
  1415. package/dist/shared/emergency-output.js +22 -0
  1416. package/dist/shared/emergency-output.js.map +1 -0
  1417. package/dist/shared/env-config.d.ts +2 -0
  1418. package/dist/shared/env-config.d.ts.map +1 -1
  1419. package/dist/shared/env-config.js +1 -0
  1420. package/dist/shared/env-config.js.map +1 -1
  1421. package/dist/shared/events.d.ts +2 -0
  1422. package/dist/shared/events.d.ts.map +1 -1
  1423. package/dist/shared/events.js.map +1 -1
  1424. package/dist/shared/execution-identity.d.ts +39 -0
  1425. package/dist/shared/execution-identity.d.ts.map +1 -0
  1426. package/dist/shared/execution-identity.js +160 -0
  1427. package/dist/shared/execution-identity.js.map +1 -0
  1428. package/dist/shared/file-policy.d.ts +5 -0
  1429. package/dist/shared/file-policy.d.ts.map +1 -0
  1430. package/dist/shared/file-policy.js +18 -0
  1431. package/dist/shared/file-policy.js.map +1 -0
  1432. package/dist/shared/framework-source.d.ts +11 -0
  1433. package/dist/shared/framework-source.d.ts.map +1 -0
  1434. package/dist/shared/framework-source.js +31 -0
  1435. package/dist/shared/framework-source.js.map +1 -0
  1436. package/dist/shared/fresh-module-reader.d.ts +40 -0
  1437. package/dist/shared/fresh-module-reader.d.ts.map +1 -0
  1438. package/dist/shared/fresh-module-reader.js +257 -0
  1439. package/dist/shared/fresh-module-reader.js.map +1 -0
  1440. package/dist/shared/host-boot-identity.d.ts +12 -0
  1441. package/dist/shared/host-boot-identity.d.ts.map +1 -0
  1442. package/dist/shared/host-boot-identity.js +89 -0
  1443. package/dist/shared/host-boot-identity.js.map +1 -0
  1444. package/dist/shared/kernel-file-lock.d.ts +3 -0
  1445. package/dist/shared/kernel-file-lock.d.ts.map +1 -0
  1446. package/dist/shared/kernel-file-lock.js +53 -0
  1447. package/dist/shared/kernel-file-lock.js.map +1 -0
  1448. package/dist/shared/linux-file-lock.d.ts +4 -0
  1449. package/dist/shared/linux-file-lock.d.ts.map +1 -0
  1450. package/dist/shared/linux-file-lock.js +36 -0
  1451. package/dist/shared/linux-file-lock.js.map +1 -0
  1452. package/dist/shared/log-ingestion-reading.d.ts +9 -0
  1453. package/dist/shared/log-ingestion-reading.d.ts.map +1 -0
  1454. package/dist/shared/log-ingestion-reading.js +32 -0
  1455. package/dist/shared/log-ingestion-reading.js.map +1 -0
  1456. package/dist/shared/log-levels.d.ts +19 -0
  1457. package/dist/shared/log-levels.d.ts.map +1 -0
  1458. package/dist/shared/log-levels.js +23 -0
  1459. package/dist/shared/log-levels.js.map +1 -0
  1460. package/dist/shared/metrics-storage-reading.d.ts +8 -0
  1461. package/dist/shared/metrics-storage-reading.d.ts.map +1 -0
  1462. package/dist/shared/metrics-storage-reading.js +27 -0
  1463. package/dist/shared/metrics-storage-reading.js.map +1 -0
  1464. package/dist/shared/pnpm.d.ts.map +1 -1
  1465. package/dist/shared/pnpm.js +7 -0
  1466. package/dist/shared/pnpm.js.map +1 -1
  1467. package/dist/shared/pool-scale.d.ts +10 -0
  1468. package/dist/shared/pool-scale.d.ts.map +1 -0
  1469. package/dist/shared/pool-scale.js +25 -0
  1470. package/dist/shared/pool-scale.js.map +1 -0
  1471. package/dist/shared/private-files.d.ts +10 -22
  1472. package/dist/shared/private-files.d.ts.map +1 -1
  1473. package/dist/shared/private-files.js +95 -82
  1474. package/dist/shared/private-files.js.map +1 -1
  1475. package/dist/shared/relay-reading.d.ts +19 -0
  1476. package/dist/shared/relay-reading.d.ts.map +1 -0
  1477. package/dist/shared/relay-reading.js +22 -0
  1478. package/dist/shared/relay-reading.js.map +1 -0
  1479. package/dist/shared/release-reading.d.ts +124 -32
  1480. package/dist/shared/release-reading.d.ts.map +1 -1
  1481. package/dist/shared/release-reading.js +208 -28
  1482. package/dist/shared/release-reading.js.map +1 -1
  1483. package/dist/shared/roles.d.ts +19 -18
  1484. package/dist/shared/roles.d.ts.map +1 -1
  1485. package/dist/shared/roles.js +21 -26
  1486. package/dist/shared/roles.js.map +1 -1
  1487. package/dist/shared/runtime-artifact.d.ts +20 -0
  1488. package/dist/shared/runtime-artifact.d.ts.map +1 -0
  1489. package/dist/shared/runtime-artifact.js +83 -0
  1490. package/dist/shared/runtime-artifact.js.map +1 -0
  1491. package/dist/shared/stack-reading.d.ts +18 -0
  1492. package/dist/shared/stack-reading.d.ts.map +1 -0
  1493. package/dist/shared/stack-reading.js +15 -0
  1494. package/dist/shared/stack-reading.js.map +1 -0
  1495. package/dist/shared/sync-reading.d.ts +30 -38
  1496. package/dist/shared/sync-reading.d.ts.map +1 -1
  1497. package/dist/shared/sync-reading.js +90 -29
  1498. package/dist/shared/sync-reading.js.map +1 -1
  1499. package/dist/shared/tokens.d.ts +3 -1
  1500. package/dist/shared/tokens.d.ts.map +1 -1
  1501. package/dist/shared/tokens.js +1 -0
  1502. package/dist/shared/tokens.js.map +1 -1
  1503. package/dist/supervisor/restart-policy.d.ts.map +1 -1
  1504. package/dist/supervisor/restart-policy.js +7 -5
  1505. package/dist/supervisor/restart-policy.js.map +1 -1
  1506. package/dist/webapp/console-container.d.ts +7 -0
  1507. package/dist/webapp/console-container.d.ts.map +1 -0
  1508. package/dist/webapp/console-container.js +23 -0
  1509. package/dist/webapp/console-container.js.map +1 -0
  1510. package/dist/webapp/webapp.service.d.ts.map +1 -1
  1511. package/dist/webapp/webapp.service.js +71 -24
  1512. package/dist/webapp/webapp.service.js.map +1 -1
  1513. package/dist/workers/health-monitor.service.d.ts.map +1 -1
  1514. package/dist/workers/health-monitor.service.js +8 -1
  1515. package/dist/workers/health-monitor.service.js.map +1 -1
  1516. package/dist/workers/types.d.ts +2 -0
  1517. package/dist/workers/types.d.ts.map +1 -1
  1518. package/package.json +106 -44
  1519. package/webapp/dist/BUILD.json +4 -3
  1520. package/webapp/dist/assets/access-48hkC2-P.js +1 -0
  1521. package/webapp/dist/assets/access-jWkHxGc7.js +1 -0
  1522. package/webapp/dist/assets/admin-data-table-BKSDI8sU.js +1 -0
  1523. package/webapp/dist/assets/alert-expression-CSblScoa.js +1 -0
  1524. package/webapp/dist/assets/alert-notify-settings-C_CHZrFm.js +1 -0
  1525. package/webapp/dist/assets/alert-uBG6r9NW.js +1 -0
  1526. package/webapp/dist/assets/alerts-CuPQ9YQJ.js +1 -0
  1527. package/webapp/dist/assets/app-address-BCXfN59F.js +1 -0
  1528. package/webapp/dist/assets/apps-Drio028B.js +1 -0
  1529. package/webapp/dist/assets/audit-npSFJECe.js +1 -0
  1530. package/webapp/dist/assets/auth-CcgjP7hR.js +1 -0
  1531. package/webapp/dist/assets/card-DkH32gMY.js +1 -0
  1532. package/webapp/dist/assets/chart-BpGXlCJc.js +2 -0
  1533. package/webapp/dist/assets/charts-BY7qI6s2.js +41 -0
  1534. package/webapp/dist/assets/charts-CpBdHU_A.js +56 -0
  1535. package/webapp/dist/assets/client-DFnuv2z3.js +3 -0
  1536. package/webapp/dist/assets/code-editor-DK6Tmmxv.js +4 -0
  1537. package/webapp/dist/assets/comparison-bars-BtC0dHjF.js +1 -0
  1538. package/webapp/dist/assets/confirm-dialog-BbGsAz7_.js +1 -0
  1539. package/webapp/dist/assets/console-keyboard-D3YCA0yU.js +1 -0
  1540. package/webapp/dist/assets/constants-CyhngVXh.js +1 -0
  1541. package/webapp/dist/assets/containers-Bl8gAyZX.js +3 -0
  1542. package/webapp/dist/assets/context-FIuwpd9_.js +1 -0
  1543. package/webapp/dist/assets/controls-C5W8gHU4.js +1 -0
  1544. package/webapp/dist/assets/daemon-memory-BiEtr9jr.js +1 -0
  1545. package/webapp/dist/assets/dashboard-UHlet3H9.js +1 -0
  1546. package/webapp/dist/assets/dashboard-builder-67PZFqhE.js +1 -0
  1547. package/webapp/dist/assets/dayjs.min-DHwAvH5f.js +1 -0
  1548. package/webapp/dist/assets/deploy-release-dialog-BOXcD5Wo.js +1 -0
  1549. package/webapp/dist/assets/deployments-qV20Ak0P.js +1 -0
  1550. package/webapp/dist/assets/detail-B4TiBfxU.js +8 -0
  1551. package/webapp/dist/assets/detail-B85-Wees.js +2 -0
  1552. package/webapp/dist/assets/detail-CYS81K6Y.js +1 -0
  1553. package/webapp/dist/assets/dist-BUDn8hLh.js +11 -0
  1554. package/webapp/dist/assets/dist-Ci5pYRbx.js +1 -0
  1555. package/webapp/dist/assets/dist-DQmjHv4-.js +1 -0
  1556. package/webapp/dist/assets/dist-De9Fty7a.js +1 -0
  1557. package/webapp/dist/assets/dist-DsGmKwmk.js +23 -0
  1558. package/webapp/dist/assets/empty-content-7jOFhG4C.js +1 -0
  1559. package/webapp/dist/assets/error-boundary-CLLI8PWw.js +3 -0
  1560. package/webapp/dist/assets/event-fields-CiyqrRO8.js +1 -0
  1561. package/webapp/dist/assets/files-DigwXndm.js +2 -0
  1562. package/webapp/dist/assets/formatters-RnRy4bXm.js +1 -0
  1563. package/webapp/dist/assets/icons-OboZgWSt.js +1 -0
  1564. package/webapp/dist/assets/index-uq8Dkk4c.js +1 -0
  1565. package/webapp/dist/assets/label-B1SF0RTL.js +1 -0
  1566. package/webapp/dist/assets/log-level-filter-Bcn31D1F.js +1 -0
  1567. package/webapp/dist/assets/log-location-DuBjh6HQ.js +1 -0
  1568. package/webapp/dist/assets/logs-BqHOufk8.js +4 -0
  1569. package/webapp/dist/assets/metric-chart-M-kI-XOt.js +1 -0
  1570. package/webapp/dist/assets/metric-series-WxePniyw.js +1 -0
  1571. package/webapp/dist/assets/metrics-QIQaF7iS.js +1 -0
  1572. package/webapp/dist/assets/model-ZEXEHm0l.js +2 -0
  1573. package/webapp/dist/assets/mui-6ssfcZcz.js +1 -0
  1574. package/webapp/dist/assets/mui-AnEgAVjz.js +52 -0
  1575. package/webapp/dist/assets/mui-B1jrje6Z.js +1 -0
  1576. package/webapp/dist/assets/mui-BIz4LSVs.js +1 -0
  1577. package/webapp/dist/assets/mui-BTN91yBK.js +28 -0
  1578. package/webapp/dist/assets/mui-BXSXx9c9.js +124 -0
  1579. package/webapp/dist/assets/mui-BwsIrivo.js +37 -0
  1580. package/webapp/dist/assets/mui-C_hromOc.js +1 -0
  1581. package/webapp/dist/assets/mui-Cd711nOk.js +4 -0
  1582. package/webapp/dist/assets/mui-CdB_p2lt.js +10 -0
  1583. package/webapp/dist/assets/mui-DyT2n1lx.js +1 -0
  1584. package/webapp/dist/assets/mui-agG5dued.js +1 -0
  1585. package/webapp/dist/assets/mui-y44PQOfG.js +1 -0
  1586. package/webapp/dist/assets/nodes-BJPk02vv.js +7 -0
  1587. package/webapp/dist/assets/omnitron-logo-koMCbsCv.js +1 -0
  1588. package/webapp/dist/assets/operation-status-Bm1x1wTz.js +1 -0
  1589. package/webapp/dist/assets/page-breadcrumbs-fR7Jmpp4.js +1 -0
  1590. package/webapp/dist/assets/pipelines-T6Ch9LTw.js +3 -0
  1591. package/webapp/dist/assets/popper-m_9b0JRf.js +1 -0
  1592. package/webapp/dist/assets/preload-helper-DzCYNvzR.js +1 -0
  1593. package/webapp/dist/assets/project.store--G5pIF-J.js +1 -0
  1594. package/webapp/dist/assets/projects-YoBzcQ24.js +1 -0
  1595. package/webapp/dist/assets/react-BN8qLIAi.js +9 -0
  1596. package/webapp/dist/assets/react-CEuifcaQ.js +1 -0
  1597. package/webapp/dist/assets/react-apexcharts.esm-DoOt-pu4.js +1 -0
  1598. package/webapp/dist/assets/realtime.store-CBDO4Abj.js +1 -0
  1599. package/webapp/dist/assets/release-bits-B2a_wbft.js +1 -0
  1600. package/webapp/dist/assets/release-build-panel-BQmIdKW9.js +1 -0
  1601. package/webapp/dist/assets/release-deployment-state-DRrEI2pP.js +1 -0
  1602. package/webapp/dist/assets/release-wire-f2VuBoBF.js +1 -0
  1603. package/webapp/dist/assets/releases-Bp3CDgmo.js +2 -0
  1604. package/webapp/dist/assets/rolldown-runtime-CNOWq4Kh.js +1 -0
  1605. package/webapp/dist/assets/search-input-C0MHI8vO.js +1 -0
  1606. package/webapp/dist/assets/services-BddvcFi8.js +1 -0
  1607. package/webapp/dist/assets/settings-B3egRvbI.js +1 -0
  1608. package/webapp/dist/assets/settled-pair-B-wgSZl6.js +1 -0
  1609. package/webapp/dist/assets/shared-styles-C0vN3I7_.js +1 -0
  1610. package/webapp/dist/assets/shell-command-C3pXf1vi.js +1 -0
  1611. package/webapp/dist/assets/sign-in-9q-Nfy83.js +1 -0
  1612. package/webapp/dist/assets/skeleton-BmWDJWF9.js +1 -0
  1613. package/webapp/dist/assets/snackbar-DSPmjMyi.js +1 -0
  1614. package/webapp/dist/assets/stack-health-status-BIv2C10x.js +1 -0
  1615. package/webapp/dist/assets/stack-start-notice-BVnMOwRQ.js +1 -0
  1616. package/webapp/dist/assets/stacks-IZ1mfizi.js +1 -0
  1617. package/webapp/dist/assets/storage-CKXnhqkt.js +1 -0
  1618. package/webapp/dist/assets/store-bqUBn2A4.js +1 -0
  1619. package/webapp/dist/assets/sync-reading-CN0jPKAg.js +1 -0
  1620. package/webapp/dist/assets/system-info-BFKNM-hf.js +1 -0
  1621. package/webapp/dist/assets/table-BOWT6Y9d.js +1 -0
  1622. package/webapp/dist/assets/table-viewport-Bp4pq-c_.js +1 -0
  1623. package/webapp/dist/assets/tabs-k5NPGLnJ.js +1 -0
  1624. package/webapp/dist/assets/terminal-BrP-ENHg.css +1 -0
  1625. package/webapp/dist/assets/terminal-QWBau-Us.js +62 -0
  1626. package/webapp/dist/assets/terminal-input-b7f2VoE_.js +2 -0
  1627. package/webapp/dist/assets/topology-CPey5dP6.js +8 -0
  1628. package/webapp/dist/assets/topology-metadata-dialog-BivuU2y6.js +2 -0
  1629. package/webapp/dist/assets/topology-routes.worker-BoYrIzAH.js +1 -0
  1630. package/webapp/dist/assets/traces-By0rdfDC.js +1 -0
  1631. package/webapp/dist/assets/use-copy-to-clipboard-BWYpToS3.js +1 -0
  1632. package/webapp/dist/assets/use-polled-resource-B22hhr5L.js +1 -0
  1633. package/webapp/dist/assets/use-stack-context-UkBsF-l7.js +1 -0
  1634. package/webapp/dist/assets/webapp-BnxOVfrc.css +1 -0
  1635. package/webapp/dist/assets/webapp-D-UhjFhS.js +35 -0
  1636. package/webapp/dist/console-version.json +1 -0
  1637. package/webapp/dist/index.html +54 -7
  1638. package/dist/release/daemon-omni.d.ts +0 -41
  1639. package/dist/release/daemon-omni.d.ts.map +0 -1
  1640. package/dist/release/daemon-omni.js +0 -59
  1641. package/dist/release/daemon-omni.js.map +0 -1
  1642. package/dist/services/netron-telemetry-transport.d.ts +0 -42
  1643. package/dist/services/netron-telemetry-transport.d.ts.map +0 -1
  1644. package/dist/services/netron-telemetry-transport.js +0 -93
  1645. package/dist/services/netron-telemetry-transport.js.map +0 -1
  1646. package/webapp/dist/assets/FormControlLabel-BbSxpQwN.js +0 -1
  1647. package/webapp/dist/assets/Grid-DizFZYue.js +0 -1
  1648. package/webapp/dist/assets/Switch-Bfiqzx8l.js +0 -1
  1649. package/webapp/dist/assets/alerts-DH_RVRS3.js +0 -1
  1650. package/webapp/dist/assets/apps-B96355sz.js +0 -1
  1651. package/webapp/dist/assets/audit-CYGtbi4k.js +0 -1
  1652. package/webapp/dist/assets/client-BmqFExWT.js +0 -1
  1653. package/webapp/dist/assets/constants-veKGFkC6.js +0 -1
  1654. package/webapp/dist/assets/containers-B_TpThln.js +0 -2
  1655. package/webapp/dist/assets/daemon-memory-CCPZ4cV_.js +0 -1
  1656. package/webapp/dist/assets/dashboard-DHf2_65N.js +0 -1
  1657. package/webapp/dist/assets/dashboard-builder-CWY2pjeG.js +0 -1
  1658. package/webapp/dist/assets/deploy-release-dialog-Dp-zpSAd.js +0 -1
  1659. package/webapp/dist/assets/deployments-tJI6O3fK.js +0 -1
  1660. package/webapp/dist/assets/detail-B2zP1Hto.js +0 -8
  1661. package/webapp/dist/assets/detail-CoIrwmsy.js +0 -1
  1662. package/webapp/dist/assets/detail-DWaGaOtL.js +0 -2
  1663. package/webapp/dist/assets/formatters-BqjL73N3.js +0 -1
  1664. package/webapp/dist/assets/fs-Ccl3sAcp.js +0 -1
  1665. package/webapp/dist/assets/index-Dvo0iprx.css +0 -1
  1666. package/webapp/dist/assets/index-vMnY_4jR.js +0 -412
  1667. package/webapp/dist/assets/logs-DTRjOfX8.js +0 -12
  1668. package/webapp/dist/assets/maplibre-gl-DowHoZAx.js +0 -814
  1669. package/webapp/dist/assets/metrics-UCajtdox.js +0 -2
  1670. package/webapp/dist/assets/nodes-DuTVU0f6.js +0 -7
  1671. package/webapp/dist/assets/pipelines-C8BeDcAl.js +0 -4
  1672. package/webapp/dist/assets/projects-Dp_zFfLY.js +0 -1
  1673. package/webapp/dist/assets/react-DlmbjZJV.js +0 -1
  1674. package/webapp/dist/assets/react-apexcharts.esm-C8pn45ml.js +0 -97
  1675. package/webapp/dist/assets/release-bits-BzTKz5fM.js +0 -1
  1676. package/webapp/dist/assets/release-build-panel-DcW9YcXQ.js +0 -1
  1677. package/webapp/dist/assets/releases-B4hcr1bE.js +0 -2
  1678. package/webapp/dist/assets/rolldown-runtime-XKyaHtl9.js +0 -1
  1679. package/webapp/dist/assets/settings-DIteZTbe.js +0 -1
  1680. package/webapp/dist/assets/settled-pair-C7SjZuns.js +0 -1
  1681. package/webapp/dist/assets/sign-in-D4kMBOHp.js +0 -1
  1682. package/webapp/dist/assets/stacks-Brnf-EB7.js +0 -1
  1683. package/webapp/dist/assets/sync-reading-C3PnJ7AX.js +0 -1
  1684. package/webapp/dist/assets/system-info-CFDNVKkU.js +0 -1
  1685. package/webapp/dist/assets/topology-7WeTUsDN.js +0 -12
  1686. package/webapp/dist/assets/traces-9c3gwCN-.js +0 -1
  1687. package/webapp/dist/assets/use-stack-context-CnA5FTHu.js +0 -1
@@ -1,412 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-apexcharts.esm-C8pn45ml.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-DlmbjZJV.js","assets/maplibre-gl-DowHoZAx.js","assets/sign-in-D4kMBOHp.js","assets/dashboard-DHf2_65N.js","assets/Grid-DizFZYue.js","assets/client-BmqFExWT.js","assets/formatters-BqjL73N3.js","assets/use-stack-context-CnA5FTHu.js","assets/apps-B96355sz.js","assets/constants-veKGFkC6.js","assets/detail-B2zP1Hto.js","assets/logs-DTRjOfX8.js","assets/topology-7WeTUsDN.js","assets/topology-DLioOiRN.css","assets/alerts-DH_RVRS3.js","assets/FormControlLabel-BbSxpQwN.js","assets/Switch-Bfiqzx8l.js","assets/settled-pair-C7SjZuns.js","assets/containers-B_TpThln.js","assets/deployments-tJI6O3fK.js","assets/metrics-UCajtdox.js","assets/settings-DIteZTbe.js","assets/pipelines-C8BeDcAl.js","assets/traces-9c3gwCN-.js","assets/dashboard-builder-CWY2pjeG.js","assets/daemon-memory-CCPZ4cV_.js","assets/stacks-Brnf-EB7.js","assets/deploy-release-dialog-Dp-zpSAd.js","assets/release-bits-BzTKz5fM.js","assets/sync-reading-C3PnJ7AX.js","assets/detail-CoIrwmsy.js","assets/system-info-CFDNVKkU.js","assets/nodes-DuTVU0f6.js","assets/projects-Dp_zFfLY.js","assets/audit-CYGtbi4k.js","assets/releases-B4hcr1bE.js","assets/release-build-panel-DcW9YcXQ.js","assets/detail-DWaGaOtL.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{t as r}from"./react-DlmbjZJV.js";import{t as i}from"./maplibre-gl-DowHoZAx.js";import{S as a,_ as o,a as s,c,d as l,h as u,i as d,s as f,t as p,u as m,y as h}from"./client-BmqFExWT.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var g=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),_=n(((e,t)=>{t.exports=g()})),v=n((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),y=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=n((e=>{var t=_(),n=r(),i=y();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function c(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 l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}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 u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function m(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function h(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function g(e){var t=[null,null],n=m(e);return n===null||v(t,e,n.child,{foundSelf:!1}),t}function v(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&v(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(a(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.for(`react.view_transition`),le=Symbol.for(`react.recoverable`),ue=Symbol.iterator;function de(e){return typeof e!=`object`||!e?null:(e=ue&&e[ue]||e[`@@iterator`],typeof e==`function`?e:null)}var fe=Symbol.for(`react.client.reference`);function pe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case ae:return`Activity`;case ce:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?pe(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var me=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},_e=[],ve=-1;function ye(e){return{current:e}}function be(e){0>ve||(e.current=_e[ve],_e[ve]=null,ve--)}function xe(e,t){ve++,_e[ve]=e.current,e.current=t}var Se=ye(null),Ce=ye(null),we=ye(null),Te=ye(null);function Ee(e,t){switch(xe(we,t),xe(Ce,e),xe(Se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}be(Se),xe(Se,e)}function De(){be(Se),be(Ce),be(we)}function Oe(e){var t=e.memoizedState;t!==null&&(fh._currentValue=t.memoizedState,xe(Te,e)),t=Se.current;var n=gp(t,e.type);t!==n&&(xe(Ce,e),xe(Se,n))}function ke(e){Ce.current===e&&(be(Se),be(Ce)),Te.current===e&&(be(Te),fh._currentValue=ge)}var Ae,je;function Me(e){if(Ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||``,je=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+Ae+e+je}var Ne=!1;function Pe(e,t){if(!e||Ne)return``;Ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
- `),l=s.split(`
6
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ne=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Me(n):``}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me(`Lazy`);case 13:return e.child!==t&&t!==null?Me(`Suspense Fallback`):Me(`Suspense`);case 19:return Me(`SuspenseList`);case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return Me(`Activity`);case 30:return Me(`ViewTransition`);default:return``}}function Ie(e){try{var t=``,n=null;do t+=Fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var Le=Object.prototype.hasOwnProperty,Re=t.unstable_scheduleCallback,ze=t.unstable_cancelCallback,Be=t.unstable_shouldYield,Ve=t.unstable_requestPaint,He=t.unstable_now,Ue=t.unstable_getCurrentPriorityLevel,We=t.unstable_ImmediatePriority,Ge=t.unstable_UserBlockingPriority,Ke=t.unstable_NormalPriority,qe=t.unstable_LowPriority,Je=t.unstable_IdlePriority,Ye=t.log,Xe=t.unstable_setDisableYieldValue,Ze=null,Qe=null;function $e(e){if(typeof Ye==`function`&&Xe(e),Qe&&typeof Qe.setStrictMode==`function`)try{Qe.setStrictMode(Ze,e)}catch{}}var et=Math.clz32?Math.clz32:rt,tt=Math.log,nt=Math.LN2;function rt(e){return e>>>=0,e===0?32:31-(tt(e)/nt|0)|0}var it=256,at=262144,ot=4194304;function st(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ct(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=st(n))):i=st(o):i=st(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=st(n))):i=st(o)):i=st(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function lt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ut(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-et(n),i=1<<r;t|=e[r],n&=~i}return t}function dt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ft(){var e=ot;return ot<<=1,!(ot&62914560)&&(ot=4194304),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ht(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-et(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&gt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function gt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-et(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function vt(e,t){var n=t&-t;return n=n&42?1:yt(n),(n&(e.suspendedLanes|t))===0?n:0}function yt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xt(){var e=he.p;return e===0?(e=window.event,e===void 0?32:Oh(e.type)):e}function St(e,t){var n=he.p;try{return he.p=e,t()}finally{he.p=n}}var Ct=Math.random().toString(36).slice(2),wt=`__reactFiber$`+Ct,Tt=`__reactProps$`+Ct,Et=`__reactContainer$`+Ct,Dt=`__reactEvents$`+Ct,Ot=`__reactListeners$`+Ct,kt=`__reactHandles$`+Ct,At=`__reactResources$`+Ct,jt=`__reactMarker$`+Ct,Mt=`__reactLoad$`+Ct;function Nt(e){delete e[wt],delete e[Tt],delete e[Ot],delete e[kt]}function Pt(e){var t;if(t=e[wt])return t;for(var n=e.parentNode;n;){if(t=n[Et]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[wt])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function Ft(e){if(e=e[wt]||e[Et]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function It(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Lt(e){var t=e[At];return t||=e[At]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Rt(e){e[jt]=!0}function zt(e){e[Mt]=void 0}var Bt=new Set,Vt={};function Ht(e,t){Ut(e,t),Ut(e+`Capture`,t)}function Ut(e,t){for(Vt[e]=t,e=0;e<t.length;e++)Bt.add(t[e])}var Wt=RegExp(`^[: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]*$`),Gt={},Kt={};function qt(e){return Le.call(Kt,e)?!0:Le.call(Gt,e)?!1:Wt.test(e)?Kt[e]=!0:(Gt[e]=!0,!1)}var Jt=!1;function Yt(){var e=Jt;return Jt=!1,e}function Xt(e,t,n){if(qt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Qt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function $t(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function en(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function tn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){if(!e._valueTracker){var t=en(e)?`checked`:`value`;e._valueTracker=tn(e,t,``+e[t])}}function rn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=en(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var an=/[\n"\\]/g;function on(e){return e.replace(an,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function sn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+$t(t)):e.value!==``+$t(t)&&(e.value=``+$t(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):ln(e,$t(n)):o===`number`&&e.value==t?ln(e,$t(e.value)):ln(e,$t(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+$t(s):e.removeAttribute(`name`)}function cn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){nn(e);return}n=n==null?``:``+$t(n),t=t==null?n:``+$t(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),nn(e)}function ln(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function un(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=``+$t(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 dn(e,t,n){t!=null&&(t=``+$t(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+$t(n)}function fn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(me(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=$t(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),nn(e)}function pn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function hn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||mn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function gn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Jt=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(hn(e,i,r),Jt=!0)}else for(var o in t)t.hasOwnProperty(o)&&hn(e,o,t[o])}function _n(e){if(e.indexOf(`-`)===-1)return!1;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}}var vn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),yn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bn(e){return yn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function xn(){}var Sn=null;function Cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,Tn=null;function En(e){var t=Ft(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(sn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+on(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Tt]||null;if(!i)throw Error(a(90));sn(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&rn(r)}break a;case`textarea`:dn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}}}var Dn=!1;function On(e,t,n){if(Dn)return e(t,n);Dn=!0;try{return e(t)}finally{if(Dn=!1,(wn!==null||Tn!==null)&&(Ud(),wn&&(t=wn,e=Tn,Tn=wn=null,En(t),e)))for(t=0;t<e.length;t++)En(e[t])}}function kn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Tt]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var An=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,jn=!1;if(An)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){jn=!0}}),window.addEventListener(`test`,Mn,Mn),window.removeEventListener(`test`,Mn,Mn)}catch{jn=!1}var Nn=null,Pn=null,Fn=null;function In(){if(Fn)return Fn;var e,t=Pn,n=t.length,r,i=`value`in Nn?Nn.value:Nn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Fn=i.slice(e,1<r?1-r:void 0)}function Ln(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 Rn(){return!0}function zn(){return!1}function Bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Rn:zn,this.isPropagationStopped=zn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Rn)},persist:function(){},isPersistent:Rn}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hn=Bn(Vn),Un=D({},Vn,{view:0,detail:0}),Wn=Bn(Un),Gn,Kn,qn,Jn=D({},Un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,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!==qn&&(qn&&e.type===`mousemove`?(Gn=e.screenX-qn.screenX,Kn=e.screenY-qn.screenY):Kn=Gn=0,qn=e),Gn)},movementY:function(e){return`movementY`in e?e.movementY:Kn}}),Yn=Bn(Jn),Xn=Bn(D({},Jn,{dataTransfer:0})),Zn=Bn(D({},Un,{relatedTarget:0})),Qn=Bn(D({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0})),$n=Bn(D({},Vn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),er=Bn(D({},Vn,{data:0})),tr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},nr={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`},rr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rr[e])?!!t[e]:!1}function ar(){return ir}var or=Bn(D({},Un,{key:function(e){if(e.key){var t=tr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Ln(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?nr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return e.type===`keypress`?Ln(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Ln(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),sr=Bn(D({},Jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),cr=Bn(D({},Vn,{submitter:0})),lr=Bn(D({},Un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar})),ur=Bn(D({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),dr=Bn(D({},Jn,{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})),fr=Bn(D({},Vn,{newState:0,oldState:0,source:0})),pr=[9,13,27,32],mr=An&&`CompositionEvent`in window,hr=null;An&&`documentMode`in document&&(hr=document.documentMode);var gr=An&&`TextEvent`in window&&!hr,_r=An&&(!mr||hr&&8<hr&&11>=hr),vr=` `,yr=!1;function br(e,t){switch(e){case`keyup`:return pr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function xr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Sr=!1;function Cr(e,t){switch(e){case`compositionend`:return xr(t);case`keypress`:return t.which===32?(yr=!0,vr):null;case`textInput`:return e=t.data,e===vr&&yr?null:e;default:return null}}function wr(e,t){if(Sr)return e===`compositionend`||!mr&&br(e,t)?(e=In(),Fn=Pn=Nn=null,Sr=!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 _r&&t.locale!==`ko`?null:t.data;default:return null}}var Tr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Tr[e.type]:t===`textarea`}function Dr(e,t,n,r){wn?Tn?Tn.push(r):Tn=[r]:wn=r,t=Qf(t,`onChange`),0<t.length&&(n=new Hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Or=null,kr=null;function Ar(e){Wf(e,0)}function jr(e){if(rn(It(e)))return e}function Mr(e,t){if(e===`change`)return t}var Nr=!1;if(An){var Pr;if(An){var Fr=`oninput`in document;if(!Fr){var Ir=document.createElement(`div`);Ir.setAttribute(`oninput`,`return;`),Fr=typeof Ir.oninput==`function`}Pr=Fr}else Pr=!1;Nr=Pr&&(!document.documentMode||9<document.documentMode)}function Lr(){Or&&(Or.detachEvent(`onpropertychange`,Rr),kr=Or=null)}function Rr(e){if(e.propertyName===`value`&&jr(kr)){var t=[];Dr(t,kr,e,Cn(e)),On(Ar,t)}}function zr(e,t,n){e===`focusin`?(Lr(),Or=t,kr=n,Or.attachEvent(`onpropertychange`,Rr)):e===`focusout`&&Lr()}function Br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return jr(kr)}function Vr(e,t){if(e===`click`)return jr(t)}function Hr(e,t){if(e===`input`||e===`change`)return jr(t)}function Ur(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Wr=typeof Object.is==`function`?Object.is:Ur;function Gr(e,t){if(Wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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++){var i=n[r];if(!Le.call(t,i)||!Wr(e[i],t[i]))return!1}return!0}function Kr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var n=qr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=qr(n)}}function Yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Zr(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 Qr=An&&`documentMode`in document&&11>=document.documentMode,$r=null,ei=null,ti=null,ni=!1;function ri(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ni||$r==null||$r!==Kr(r)||(r=$r,`selectionStart`in r&&Zr(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}),ti&&Gr(ti,r)||(ti=r,r=Qf(ei,`onSelect`),0<r.length&&(t=new Hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function ii(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ai={animationend:ii(`Animation`,`AnimationEnd`),animationiteration:ii(`Animation`,`AnimationIteration`),animationstart:ii(`Animation`,`AnimationStart`),transitionrun:ii(`Transition`,`TransitionRun`),transitionstart:ii(`Transition`,`TransitionStart`),transitioncancel:ii(`Transition`,`TransitionCancel`),transitionend:ii(`Transition`,`TransitionEnd`)},oi={},si={};An&&(si=document.createElement(`div`).style,`AnimationEvent`in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),`TransitionEvent`in window||delete ai.transitionend.transition);function ci(e){if(oi[e])return oi[e];if(!ai[e])return e;var t=ai[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in si)return oi[e]=t[n];return e}var li=ci(`animationend`),ui=ci(`animationiteration`),di=ci(`animationstart`),fi=ci(`transitionrun`),pi=ci(`transitionstart`),mi=ci(`transitioncancel`),hi=ci(`transitionend`),gi=new Map,_i=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);_i.push(`scrollEnd`);function vi(e,t){gi.set(e,t),Ht(t,[e])}var yi=0;function bi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=yi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function xi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Si(e,t){return e=xi(e),t=xi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ci=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},wi=[],Ti=0,Ei=0;function Di(){for(var e=Ti,t=Ei=Ti=0;t<e;){var n=wi[t];wi[t++]=null;var r=wi[t];wi[t++]=null;var i=wi[t];wi[t++]=null;var a=wi[t];if(wi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ji(n,i,a)}}function Oi(e,t,n,r){wi[Ti++]=e,wi[Ti++]=t,wi[Ti++]=n,wi[Ti++]=r,Ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ki(e,t,n,r){return Oi(e,t,n,r),Mi(e)}function Ai(e,t){return Oi(e,null,null,t),Mi(e)}function ji(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-et(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Mi(e){if(50<Nd)throw Nd=0,Pd=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ni={};function Pi(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.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fi(e,t,n,r){return new Pi(e,t,n,r)}function Ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Li(e,t){var n=e.alternate;return n===null?(n=Fi(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.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,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.refCleanup=e.refCleanup,n}function Ri(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,n,r,i,o){var s=0;if(r=e,typeof r==`function`)Ii(r)&&(s=1);else if(typeof r==`string`)s=Qm(e,n,Se.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ae:return e=Fi(31,n,t,i),e.elementType=ae,e.lanes=o,e;case j:return Bi(n.children,i,o,t);case M:s=8,i|=24;break;case N:return e=Fi(12,n,t,i|2),e.elementType=N,e.lanes=o,e;case te:return e=Fi(13,n,t,i),e.elementType=te,e.lanes=o,e;case ne:return e=Fi(19,n,t,i),e.elementType=ne,e.lanes=o,e;case oe:case ce:return e=i|32,e=Fi(30,n,t,e),e.elementType=ce,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case ee:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=Fi(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Bi(e,t,n,r){return e=Fi(7,e,r,t),e.lanes=n,e}function Vi(e,t,n){return e=Fi(6,e,null,t),e.lanes=n,e}function Hi(e){var t=Fi(18,null,null,0);return t.stateNode=e,t}function Ui(e,t,n){return t=Fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wi=new WeakMap;function Gi(e,t){if(typeof e==`object`&&e){var n=Wi.get(e);return n===void 0?(t={value:e,source:t,stack:Ie(t)},Wi.set(e,t),t):n}return{value:e,source:t,stack:Ie(t)}}var Ki=[],qi=0,Ji=null,Yi=0,Xi=[],Zi=0,Qi=null,$i=1,ea=``;function R(e,t){Ki[qi++]=Yi,Ki[qi++]=Ji,Ji=e,Yi=t}function ta(e,t,n){Xi[Zi++]=$i,Xi[Zi++]=ea,Xi[Zi++]=Qi,Qi=e;var r=$i;e=ea;var i=32-et(r)-1;r&=~(1<<i),n+=1;var a=32-et(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,$i=1<<32-et(t)+i|n<<i|r,ea=a+e}else $i=1<<a|n<<i|r,ea=e}function na(e){e.return!==null&&(R(e,1),ta(e,1,0))}function ra(e){for(;e===Ji;)Ji=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null;for(;e===Qi;)Qi=Xi[--Zi],Xi[Zi]=null,ea=Xi[--Zi],Xi[Zi]=null,$i=Xi[--Zi],Xi[Zi]=null}function ia(e,t){Xi[Zi++]=$i,Xi[Zi++]=ea,Xi[Zi++]=Qi,$i=t.id,ea=t.overflow,Qi=e}var aa=null,oa=null,sa=!1,ca=null,la=!1,ua=Error(a(519));function da(e){throw _a(Gi(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ua}function fa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[wt]=e,t[Tt]=r,n){case`dialog`:Gf(`cancel`,t),Gf(`close`,t);break;case`iframe`:case`object`:case`embed`:Gf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Gf(Hf[n],t);break;case`source`:Gf(`error`,t);break;case`img`:case`image`:case`link`:Gf(`error`,t),Gf(`load`,t);break;case`details`:Gf(`toggle`,t);break;case`input`:Gf(`invalid`,t),cn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Gf(`invalid`,t);break;case`textarea`:Gf(`invalid`,t),fn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ip(t.textContent,n)?(r.popover!=null&&(Gf(`beforetoggle`,t),Gf(`toggle`,t)),r.onScroll!=null&&Gf(`scroll`,t),r.onScrollEnd!=null&&Gf(`scrollend`,t),r.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||da(e,!0)}function pa(e){for(aa=e.return;aa;)switch(aa.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:aa=aa.return}}function ma(e){if(e!==aa)return!1;if(!sa)return pa(e),sa=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||vp(e.type,e.memoizedProps)),n=!n),n&&oa&&da(e),pa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));oa=gm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));oa=gm(e)}else t===27?(t=oa,Dp(e.type)?(e=hm,hm=null,oa=e):oa=t):oa=aa?mm(e.stateNode.nextSibling):null;return!0}function ha(){oa=aa=null,sa=!1}function ga(){var e=ca;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),ca=null),e}function _a(e){ca===null?ca=[e]:ca.push(e)}var va=ye(null),ya=null,ba=null;function xa(e,t,n){xe(va,t._currentValue),t._currentValue=n}function Sa(e){e._currentValue=va.current,be(va)}function Ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function wa(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ca(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ca(s,n,e),s=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ca(i.return,n,e),s=i.child,s=s===null?null:s.sibling):s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Ta(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Wr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===Te.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[fh]:e.push(fh))}i=i.return}return e!==null&&wa(t,e,n,r),t.flags|=262144,e!==null}function Ea(e){for(e=e.firstContext;e!==null;){if(!Wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Da(e){ya=e,ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Oa(e){return Aa(ya,e)}function ka(e,t){return ya===null&&Da(e),Aa(e,t)}function Aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ba===null){if(e===null)throw Error(a(308));ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ba=ba.next=t;return n}var ja=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ma=t.unstable_scheduleCallback,Na=t.unstable_NormalPriority,Pa={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fa(){return{controller:new ja,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&Ma(Na,function(){e.controller.abort()})}function La(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ra=null;function za(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ba=null,Va=0,Ha=0,Ua=null;function Wa(e,t){if(Ba===null){var n=Ba=[];Va=0,Ha=Lf(),Ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Va++,t.then(Ga,Ga),t}function Ga(){if(--Va===0&&(Ra=null,Ba!==null)){Ua!==null&&(Ua.status=`fulfilled`);var e=Ba;Ba=null,Ha=0,Ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ka(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var qa=I.S;I.S=function(e,t){if(yd=He(),typeof t==`object`&&t&&typeof t.then==`function`&&Wa(e,t),Ra!==null)for(var n=X;n!==null;)La(n,Ra),n=n.next;if(n=e.types,n!==null){for(var r=X;r!==null;)La(r,n),r=r.next;if(Ha!==0){r=Ra,r===null&&(r=Ra=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}qa!==null&&qa(e,t)};var Ja=ye(null);function Ya(){var e=Ja.current;return e===null?ed.pooledCache:e}function Xa(e,t){t===null?xe(Ja,Ja.current):xe(Ja,t.pool)}function Za(){var e=Ya();return e===null?null:{parent:Pa._currentValue,pool:e}}var Qa=Error(a(460)),$a=Error(a(474)),eo=Error(a(542)),to={then:function(){}};function no(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ro(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xn,xn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,so(e),e===void 0&&!(`reason`in t)?Error(a(600)):e;default:if(typeof t.status==`string`)t.then(xn,xn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,so(e),e}throw ao=t,Qa}}function io(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ao=e,Qa):e}}var ao=null;function oo(){if(ao===null)throw Error(a(459));var e=ao;return ao=null,e}function so(e){if(e===Qa||e===eo)throw Error(a(483))}var co=null,lo=0;function uo(e){var t=lo;return lo+=1,co===null&&(co=[]),ro(co,e,t)}function fo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function po(e,t){throw t.$$typeof===O?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function mo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Vi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===j?(e=d(e,t,n.props.children,r,n.key),fo(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===ie&&io(a)===t.type)?(t=i(t,n.props),fo(t,n),t.return=e,t):(t=zi(n.type,n.key,n.props,null,e.mode,r),fo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ui(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Bi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=zi(t.type,t.key,t.props,null,e.mode,n),fo(n,t),n.return=e,n;case A:return t=Ui(t,e.mode,n),t.return=e,t;case ie:return t=io(t),f(e,t,n)}if(me(t)||de(t))return t=Bi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,uo(t),n);if(t.$$typeof===F)return f(e,ka(e,t),n);po(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case ie:return n=io(n),p(e,t,n,r)}if(me(n)||de(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,uo(n),r);if(n.$$typeof===F)return p(e,t,ka(e,n),r);po(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ie:return r=io(r),m(e,t,n,r,i)}if(me(r)||de(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,uo(r),i);if(r.$$typeof===F)return m(e,t,n,ka(t,r),i);po(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),sa&&R(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return sa&&R(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),sa&&R(i,h),l}function g(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),sa&&R(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return sa&&R(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),sa&&R(i,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),fo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ie&&io(l)===r.type){n(e,r.sibling),c=i(r,o.props),fo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Bi(o.props.children,e.mode,c,o.key),fo(c,o),c.return=e,e=c):(c=zi(o.type,o.key,o.props,null,e.mode,c),fo(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ui(o,e.mode,c),c.return=e,e=c}return s(e);case ie:return o=io(o),_(e,r,o,c)}if(me(o))return h(e,r,o,c);if(de(o)){if(l=de(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,uo(o),c);if(o.$$typeof===F)return _(e,r,ka(e,o),c);po(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=Vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{lo=0;var i=_(e,t,n,r);return co=null,i}catch(t){if(t===Qa||t===eo)throw t;var a=Fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ho=mo(!0),go=mo(!1),_o=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$u&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Mi(e),ji(e,null,n),t}return Oi(e,r,t,n),Mi(e)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}function Co(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var wo=!1;function To(){if(wo){var e=Ua;if(e!==null)throw e}}function Eo(e,t,n,r){wo=!1;var i=e.updateQueue;_o=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(nd&f)===f:(r&f)===f){f!==0&&f===Ha&&(wo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:_o=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function Do(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Oo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Do(n[e],t)}var ko=ye(null),Ao=ye(0);function jo(e,t){e=cd,xe(Ao,e),xe(ko,t),cd=e|t.baseLanes}function Mo(){xe(Ao,cd),xe(ko,ko.current)}function No(){cd=Ao.current,be(ko),be(Ao)}var Po=ye(null),Fo=null;function Io(e){var t=e.alternate;xe(Vo,Vo.current&1),xe(Po,e),Fo===null&&(t===null||ko.current!==null||t.memoizedState!==null)&&(Fo=e)}function Lo(e){xe(Vo,Vo.current),xe(Po,e),Fo===null&&(Fo=e)}function Ro(e){e.tag===22?(xe(Vo,Vo.current),xe(Po,e),Fo===null&&(Fo=e)):zo()}function zo(){xe(Vo,Vo.current),xe(Po,Po.current)}function Bo(e){be(Po),Fo===e&&(Fo=null),be(Vo)}var Vo=ye(0);function Ho(e,t){xe(Po,Po.current),xe(Vo,t)}function Uo(e){be(Vo),be(Po),Fo===e&&(Fo=null)}function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dm(n)||fm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)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 Go=0,Ko=null,qo=null,Jo=null,Yo=!1,Xo=!1,Zo=!1,Qo=0,$o=0,es=null,ts=0;function ns(){throw Error(a(321))}function rs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function z(e,t,n,r,i,a){return Go=a,Ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?vc:yc,Zo=!1,a=n(r,i),Zo=!1,Xo&&(a=as(t,n,r,i)),is(e),a}function is(e){I.H=_c;var t=qo!==null&&qo.next!==null;if(Go=0,Jo=qo=Ko=null,Yo=!1,$o=0,es=null,t)throw Error(a(300));e===null||Fc||(e=e.dependencies,e!==null&&Ea(e)&&(Fc=!0))}function as(e,t,n,r){Ko=e;var i=0;do{if(Xo&&(es=null),$o=0,Xo=!1,25<=i)throw Error(a(301));if(i+=1,Jo=qo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=bc,o=t(n,r)}while(Xo);return o}function B(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?fs(t):t,e=e.useState()[0],(qo===null?null:qo.memoizedState)!==e&&(Ko.flags|=1024),t}function V(){var e=Qo!==0;return Qo=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(Yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yo=!1}Go=0,Jo=qo=Ko=null,Xo=!1,$o=Qo=0,es=null}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jo===null?Ko.memoizedState=Jo=e:Jo=Jo.next=e,Jo}function us(){if(qo===null){var e=Ko.alternate;e=e===null?null:e.memoizedState}else e=qo.next;var t=Jo===null?Ko.memoizedState:Jo.next;if(t!==null)Jo=t,qo=e;else{if(e===null)throw Ko.alternate===null?Error(a(467)):Error(a(310));qo=e,e={memoizedState:qo.memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},Jo===null?Ko.memoizedState=Jo=e:Jo=Jo.next=e}return Jo}function ds(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(e){var t=$o;return $o+=1,es===null&&(es=[]),e=ro(es,e,t),t=Ko,(Jo===null?t.memoizedState:Jo.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?vc:yc),e}function ps(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return fs(e);if(e.$$typeof===le)return;if(e.$$typeof===F)return Oa(e)}throw Error(a(438,String(e)))}function ms(e){var t=null,n=Ko.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ko.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ds(),Ko.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=se;return t.index++,n}function hs(e,t){return typeof t==`function`?t(e):t}function gs(e){return _s(us(),qo,e)}function _s(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Go&f)===f:(nd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ha&&(d=!0);else if((Go&p)===p){u=u.next,p===Ha&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ko.lanes|=p,ud|=p;f=u.action,Zo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ko.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Wr(o,e.memoizedState)&&(Fc=!0,d&&(n=Ua,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vs(e){var t=us(),n=t.queue;if(n===null)throw Error(a(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);Wr(o,t.memoizedState)||(Fc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ys(e,t,n){var r=Ko,i=us(),o=sa;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Wr((qo||i).memoizedState,n);if(s&&(i.memoizedState=n,Fc=!0),i=i.queue,Us(Ss.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||s||Jo!==null&&!!(Jo.memoizedState.tag&1),Rs(e?9:8,{destroy:void 0},xs.bind(null,r,i,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(a(349));o||Go&127||bs(r,t,n)}return n}function bs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ko.updateQueue,t===null?(t=ds(),Ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xs(e,t,n,r){t.value=n,t.getSnapshot=r,Cs(t)&&ws(e)}function Ss(e,t,n){return n(function(){Cs(t)&&ws(e)})}function Cs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wr(e,n)}catch{return!0}}function ws(e){var t=Ai(e,2);t!==null&&Rd(t,e,2)}function Ts(e){var t=ls();if(typeof e==`function`){var n=e;if(e=n(),Zo){$e(!0);try{n()}finally{$e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function Es(e,t,n,r){return e.baseState=n,_s(e,qo,typeof r==`function`?r:hs)}function Ds(e,t,n,r,i){if(mc(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Os(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Os(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};o.types=a===null?null:a.types,I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),ks(e,t,s)}catch(n){js(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),ks(e,t,a)}catch(n){js(e,t,n)}}function ks(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){As(e,t,n)},function(n){return js(e,t,n)}):As(e,t,n)}function As(e,t,n){t.status=`fulfilled`,t.value=n,Ms(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Os(e,n)))}function js(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ms(t),t=t.next;while(t!==r)}e.action=null}function Ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ns(e,t){return t}function Ps(e,t){if(sa){var n=ed.formState;if(n!==null){a:{var r=Ko;if(sa){if(oa){b:{for(var i=oa,a=la;i.nodeType!==8;)if(!a||(i=mm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){oa=mm(i.nextSibling),r=i.data===`F!`;break a}}da(r)}r=!1}r&&(t=n[0])}}return n=ls(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:t},n.queue=r,n=dc.bind(null,Ko,r),r.dispatch=n,r=Ts(!1),a=pc.bind(null,Ko,!1,r.queue),r=ls(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ds.bind(null,Ko,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Fs(e){return Is(us(),qo,e)}function Is(e,t,n){if(t=_s(e,t,Ns)[0],e=gs(hs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=fs(t)}catch(e){throw e===Qa?eo:e}else r=t;t=us();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ko.flags|=2048,Rs(9,{destroy:void 0},H.bind(null,i,n),null)),[r,a,e]}function H(e,t){e.action=t}function Ls(e){var t=us(),n=qo;if(n!==null)return Is(t,n,e);us(),t=t.memoizedState,n=us();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ko.updateQueue,t===null&&(t=ds(),Ko.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zs(){return us().memoizedState}function Bs(e,t,n,r){var i=ls();Ko.flags|=e,i.memoizedState=Rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Vs(e,t,n,r){var i=us();r=r===void 0?null:r;var a=i.memoizedState.inst;qo!==null&&r!==null&&rs(r,qo.memoizedState.deps)?i.memoizedState=Rs(t,a,n,r):(Ko.flags|=e,i.memoizedState=Rs(1|t,a,n,r))}function Hs(e,t){Bs(8390656,8,e,t)}function Us(e,t){Vs(2048,8,e,t)}function Ws(e){Ko.flags|=4;var t=Ko.updateQueue;if(t===null)t=ds(),Ko.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Gs(e){var t=us().memoizedState;return Ws({ref:t,nextImpl:e}),function(){if($u&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Ks(e,t){return Vs(4,2,e,t)}function qs(e,t){return Vs(4,4,e,t)}function Js(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ys(e,t,n){n=n==null?null:n.concat([e]),Vs(4,4,Js.bind(null,t,e),n)}function Xs(){}function Zs(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&rs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&rs(t,r[1]))return r[0];if(r=e(),Zo){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[r,t],r}function $s(e,t,n){return n===void 0||Go&1073741824&&!(nd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),Ko.lanes|=e,ud|=e,n)}function ec(e,t,n,r){return Wr(n,t)?n:ko.current===null?!(Go&106)||Go&1073741824&&!(nd&261930)?(Fc=!0,e.memoizedState=n):(e=Id(),Ko.lanes|=e,ud|=e,t):(e=$s(e,n,r),Wr(e,t)||(Fc=!0),e)}function tc(e,t,n,r,i){var a=he.p;he.p=a!==0&&8>a?a:8;var o=I.T,s={};s.types=o===null?null:o.types,I.T=s,pc(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?fc(e,t,Ka(c,r),Fd(e)):fc(e,t,r,Fd(e))}catch(n){fc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{he.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function nc(){}function rc(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ic(e).queue;tc(e,i,t,ge,n===null?nc:function(){return ac(e),n(r)})}function ic(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:ge},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ac(e){var t=ic(e);t.next===null&&(t=e.alternate.memoizedState),fc(e,t.next.queue,{},Fd())}function oc(){return Oa(fh)}function sc(){return us().memoizedState}function cc(){return us().memoizedState}function lc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=bo(n);var r=xo(t,e,n);r!==null&&(Rd(r,t,n),So(r,t,n)),t={cache:Fa()},e.payload=t;return}t=t.return}}function uc(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e)?hc(t,n):(n=ki(e,t,n,r),n!==null&&(Rd(n,e,r),gc(n,t,r)))}function dc(e,t,n){fc(e,t,n,Fd())}function fc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))hc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o))return Oi(e,t,i,0),ed===null&&Di(),!1}catch{}if(n=ki(e,t,i,r),n!==null)return Rd(n,e,r),gc(n,t,r),!0}return!1}function pc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},mc(e)){if(t)throw Error(a(479))}else t=ki(e,n,r,2),t!==null&&Rd(t,e,2)}function mc(e){var t=e.alternate;return e===Ko||t!==null&&t===Ko}function hc(e,t){Xo=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}var _c={readContext:Oa,use:ps,useCallback:ns,useContext:ns,useEffect:ns,useImperativeHandle:ns,useLayoutEffect:ns,useInsertionEffect:ns,useMemo:ns,useReducer:ns,useRef:ns,useState:ns,useDebugValue:ns,useDeferredValue:ns,useTransition:ns,useSyncExternalStore:ns,useId:ns,useHostTransitionStatus:ns,useFormState:ns,useActionState:ns,useOptimistic:ns,useMemoCache:ns,useCacheRefresh:ns,useEffectEvent:ns},vc={readContext:Oa,use:ps,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:Oa,useEffect:Hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Bs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){Bs(4,2,e,t)},useMemo:function(e,t){var n=ls();t=t===void 0?null:t;var r=e();if(Zo){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(n!==void 0){var i=n(t);if(Zo){$e(!0);try{n(t)}finally{$e(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=uc.bind(null,Ko,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,n=dc.bind(null,Ko,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xs,useDeferredValue:function(e,t){return $s(ls(),e,t)},useTransition:function(){var e=Ts(!1);return e=tc.bind(null,Ko,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ko,i=ls();if(sa){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),ed===null)throw Error(a(349));nd&127||bs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Hs(Ss.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,{destroy:void 0},xs.bind(null,r,o,n,t),null),n},useId:function(){var e=ls(),t=ed.identifierPrefix;if(sa){var n=ea,r=$i;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ts++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e){var t=ls();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,Ko,!0,n),n.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return ls().memoizedState=lc.bind(null,Ko)},useEffectEvent:function(e){var t=ls(),n={impl:e};return t.memoizedState=n,function(){if($u&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},yc={readContext:Oa,use:ps,useCallback:Zs,useContext:Oa,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:gs,useRef:zs,useState:function(){return gs(hs)},useDebugValue:Xs,useDeferredValue:function(e,t){return ec(us(),qo.memoizedState,e,t)},useTransition:function(){var e=gs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:sc,useHostTransitionStatus:oc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){return Es(us(),qo,e,t)},useMemoCache:ms,useCacheRefresh:cc,useEffectEvent:Gs},bc={readContext:Oa,use:ps,useCallback:Zs,useContext:Oa,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:vs,useRef:zs,useState:function(){return vs(hs)},useDebugValue:Xs,useDeferredValue:function(e,t){var n=us();return qo===null?$s(n,e,t):ec(n,qo.memoizedState,e,t)},useTransition:function(){var e=vs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:sc,useHostTransitionStatus:oc,useFormState:Ls,useActionState:Ls,useOptimistic:function(e,t){var n=us();return qo===null?(n.baseState=e,[e,n.queue.dispatch]):Es(n,qo,e,t)},useMemoCache:ms,useCacheRefresh:cc,useEffectEvent:Gs};function xc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=bo(r);i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&(Rd(t,e,r),So(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=bo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&(Rd(t,e,r),So(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=bo(n);r.tag=2,t!=null&&(r.callback=t),t=xo(e,r,n),t!==null&&(Rd(t,e,n),So(t,e,n))}};function Cc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,a):!0}function wc(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&&Sc.enqueueReplaceState(t,t.state,null)}function Tc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ec(e){Ci(e)}function Dc(e){console.error(e)}function Oc(e){Ci(e)}function kc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ac(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function jc(e,t,n){return n=bo(n),n.tag=3,n.payload={element:null},n.callback=function(){kc(e,t)},n}function Mc(e){return e=bo(e),e.tag=3,e}function Nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ac(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ac(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Pc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ta(t,n,i,!0),n=Po.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Fo===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===to?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,i)),!1;case 22:return n.flags|=65536,r===to?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,i)),!1}throw Error(a(435,n.tag))}return yf(e,r,i),Xd(),!1}if(sa)return t=Po.current,t===null?(r!==ua&&(t=Error(a(423),{cause:r}),_a(Gi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Gi(r,n),i=jc(e.stateNode,r,i),Co(e,i),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ua&&(e=Error(a(422),{cause:r}),_a(Gi(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Gi(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Gi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=jc(n.stateNode,r,e),Co(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Mc(i),Nc(i,e,n,r),Co(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var U=Error(a(461)),Fc=!1;function Ic(e,t,n,r){t.child=e===null?go(t,null,n,r):ho(t,e.child,n,r)}function Lc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Da(t),r=z(e,t,n,o,a,i),s=V(),e!==null&&!Fc?(ss(e,t,i),dl(e,t,i)):(sa&&s&&na(t),t.flags|=1,Ic(e,t,r,i),t.child)}function Rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ii(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zc(e,t,a,r,i)):(e=zi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!fl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Gr:n,n(o,r)&&e.ref===t.ref)return dl(e,t,i)}return t.flags|=1,e=Li(a,r),e.ref=t.ref,e.return=t,t.child=e}function zc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Gr(a,r)&&e.ref===t.ref){if(Fc=!1,t.pendingProps=r=a,fl(e,i))e.flags&131072&&(Fc=!0);else return t.lanes=e.lanes,dl(e,t,i)}}return qc(e,t,n,r,i)}function Bc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Hc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xa(t,a===null?null:a.cachePool),a===null?Mo():jo(t,a),Ro(t);else return r=t.lanes=536870912,Hc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Xa(t,null),Mo(),zo()):(Xa(t,a.cachePool),jo(t,a),zo(),t.memoizedState=null);return Ic(e,t,i,n),t.child}function Vc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hc(e,t,n,r,i){var a=Ya();return a=a===null?null:{parent:Pa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Xa(t,null),Mo(),Ro(t),e!==null&&Ta(e,t,r,!0),t.childLanes=i,null}function Uc(e,t){return t=nl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wc(e,t,n){return ho(t,e.child,null,n),e=Uc(t,t.pendingProps),e.flags|=2,Bo(t),t.memoizedState=null,e}function Gc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(sa){if(r.mode===`hidden`)return e=Uc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Vc(null,e);if(Lo(t),(e=oa)?(e=um(e,la),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi===null?null:{id:$i,overflow:ea},retryLane:536870912,hydrationErrors:null},n=Hi(e),n.return=t,t.child=n,aa=t,oa=null)):e=null,e===null)throw da(t);return t.lanes=536870912,null}return Uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Lo(t),i){if(t.flags&256)t.flags&=-257,t=Wc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558))}else if(Fc||Ta(e,t,n,!1),i=(n&e.childLanes)!==0,Fc||i){if(ko.current===null){if(r=ed,r!==null&&(s=vt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ai(e,s),Rd(r,e,s),U;Xd()}t=Wc(e,t,n)}else e=o.treeContext,oa=mm(s.nextSibling),aa=t,sa=!0,ca=null,la=!1,e!==null&&ia(t,e),t=Uc(t,r),t.flags|=134221824;return t}return e=Li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Kc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function qc(e,t,n,r,i){return Da(t),n=z(e,t,n,r,void 0,i),r=V(),e!==null&&!Fc?(ss(e,t,i),dl(e,t,i)):(sa&&r&&na(t),t.flags|=1,Ic(e,t,n,i),t.child)}function Jc(e,t,n,r,i,a){return Da(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=V(),e!==null&&!Fc?(ss(e,t,a),dl(e,t,a)):(sa&&r&&na(t),t.flags|=1,Ic(e,t,n,a),t.child)}function Yc(e,t,n,r,i){if(Da(t),t.stateNode===null){var a=Ni,o=n.contextType;typeof o==`object`&&o&&(a=Oa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Sc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},vo(t),o=n.contextType,a.context=typeof o==`object`&&o?Oa(o):Ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(xc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Sc.enqueueReplaceState(a,a.state,null),Eo(t,r,a,i),To(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Tc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ni,typeof u==`object`&&u&&(o=Oa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&wc(t,a,r,o),_o=!1;var f=t.memoizedState;a.state=f,Eo(t,r,a,i),To(),l=t.memoizedState,s||f!==l||_o?(typeof d==`function`&&(xc(t,n,d,r),l=t.memoizedState),(c=_o||Cc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yo(e,t),o=t.memoizedProps,u=Tc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ni,typeof l==`object`&&l&&(c=Oa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&wc(t,a,r,c),_o=!1,f=t.memoizedState,a.state=f,Eo(t,r,a,i),To();var p=t.memoizedState;o!==d||f!==p||_o||e!==null&&e.dependencies!==null&&Ea(e.dependencies)?(typeof s==`function`&&(xc(t,n,s,r),p=t.memoizedState),(u=_o||Cc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Kc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ho(t,e.child,null,i),t.child=ho(t,null,n,i)):Ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=dl(e,t,i),e}function Xc(e,t,n,r){return ha(),t.flags|=256,Ic(e,t,n,r),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:Za()}}function $c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function el(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Vo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(sa){if(i?Io(t):zo(),(e=oa)?(e=um(e,la),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi===null?null:{id:$i,overflow:ea},retryLane:536870912,hydrationErrors:null},n=Hi(e),n.return=t,t.child=n,aa=t,oa=null)):e=null,e===null)throw da(t);return t.lanes=fm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(zo(),i=t.mode,a=nl({mode:`hidden`,children:a},i),r=Bi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Qc(n),r.childLanes=$c(e,o,n),t.memoizedState=Zc,Vc(null,r)):(Io(t),tl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return il(e,t,a,o,r,c,s,n)}return i?(zo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Li(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Bi(i,a,n,null),i.flags|=2):i=Li(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Vc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Qc(n):(a=i.cachePool,a===null?a=Za():(s=Pa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=$c(e,o,n),t.memoizedState=Zc,Vc(e.child,r)):(Io(t),n=e.child,e=n.sibling,n=Li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function tl(e,t){return t=nl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function nl(e,t){return e=Fi(22,e,null,t),e.lanes=0,e}function rl(e,t,n){return ho(t,e.child,null,n),e=tl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function il(e,t,n,r,i,o,s,c){if(n)return t.flags&256?(Io(t),t.flags&=-257,rl(e,t,c)):t.memoizedState===null?(zo(),o=i.fallback,s=t.mode,i=nl({mode:`visible`,children:i.children},s),o=Bi(o,s,c,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,ho(t,e.child,null,c),i=t.child,i.memoizedState=Qc(c),i.childLanes=$c(e,r,c),t.memoizedState=Zc,Vc(null,i)):(zo(),t.child=e.child,t.flags|=128,null);if(Io(t),fm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(a(419)),i.stack=``,i.digest=r,_a({value:i,source:null,stack:null})),rl(e,t,c)}if(Fc||Ta(e,t,c,!1),r=(c&e.childLanes)!==0,Fc||r){if(ko.current!==null)return rl(e,t,c);if(r=ed,r!==null&&(i=vt(r,c),i!==0&&i!==s.retryLane))throw s.retryLane=i,Ai(e,i),Rd(r,e,i),U;return dm(o)||Xd(),rl(e,t,c)}return dm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,oa=mm(o.nextSibling),aa=t,sa=!0,ca=null,la=!1,e!==null&&ia(t,e),t=tl(t,i.children),t.flags|=134221824,t)}function al(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ca(e.return,t,n)}function ol(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Wo(n)===null&&(t=e),e=e.sibling}return t}function sl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function cl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ll(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Vo.current;if(t.flags&128)return Ho(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ho(t,o),i===`backwards`&&e!==null?(cl(e),Ic(e,t,r,n),cl(e)):Ic(e,t,r,n),r=sa?Yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&al(e,n,t);else if(e.tag===19)al(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=ol(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,cl(t)),sl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sl(t,!0,n,null,a,r);break;case`together`:sl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=ol(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sl(t,!1,i,n,a,r)}return t.child}function ul(e,t,n){var r=t.pendingProps;return xa(t,t.type,r.value),Ic(e,t,r.children,n),t.child}function dl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ea(e)))}function pl(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),xa(t,Pa,e.memoizedState.cache),ha();break;case 27:case 5:Oe(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Io(t),t.flags|=128,null;r=Ta(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?el(e,t,n):(Io(t),e=dl(e,t,n),e===null?null:e.sibling)}Io(t);break;case 19:if(t.flags&128)return ll(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Ta(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ll(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ho(t,Vo.current),r)break;return null;case 22:return t.lanes=0,Bc(e,t,n,t.pendingProps);case 24:xa(t,Pa,e.memoizedState.cache)}return dl(e,t,n)}function ml(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Fc=!0;else{if(!fl(e,n)&&!(t.flags&128))return Fc=!1,pl(e,t,n);Fc=!!(e.flags&131072)}}else Fc=!1,sa&&t.flags&1048576&&ta(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=io(t.elementType),t.type=e,typeof e==`function`)Ii(e)?(r=Tc(e,r),t.tag=1,t=Yc(null,t,e,r,n)):(t.tag=0,t=qc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ee){t.tag=11,t=Lc(null,t,e,r,n);break a}if(i===re){t.tag=14,t=Rc(null,t,e,r,n);break a}if(i===F){t.tag=10,t.type=e,t=ul(null,t,n);break a}}throw t=pe(e)||e,Error(a(306,t,``))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Tc(r,t.pendingProps),Yc(e,t,r,i,n);case 3:a:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,yo(e,t),Eo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,xa(t,Pa,r),r!==o.cache&&wa(t,[Pa],n,!0),To(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Xc(e,t,r,n);break a}if(r!==i){i=Gi(Error(a(424)),t),_a(i),t=Xc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(oa=mm(e.firstChild),aa=t,sa=!0,ca=null,la=!0,n=go(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ha(),r===i){t=dl(e,t,n);break a}Ic(e,t,r,n)}t=t.child}return t;case 26:return Kc(e,t),e===null?(n=Rm(t.type,null,t.pendingProps,null))?t.memoizedState=n:sa||(t.stateNode=_p(t.type,t.pendingProps,we.current,t)):t.memoizedState=Rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Oe(t),e===null&&sa&&(r=t.stateNode=bm(t.type,t.pendingProps,we.current),aa=t,la=!0,i=oa,Dp(t.type)?(hm=i,oa=mm(r.firstChild)):oa=i),Ic(e,t,t.pendingProps.children,n),Kc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&sa&&((i=r=oa)&&(r=cm(r,t.type,t.pendingProps,la),r===null?i=!1:(t.stateNode=r,aa=t,oa=mm(r.firstChild),la=!1,i=!0)),i||da(t)),Oe(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,vp(i,o)?r=null:s!==null&&vp(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=z(e,t,B,null,null,n),fh._currentValue=i),Kc(e,t),Ic(e,t,r,n),t.child;case 6:return e===null&&sa&&((e=n=oa)&&(n=lm(n,t.pendingProps,la),n===null?e=!1:(t.stateNode=n,aa=t,oa=null,e=!0)),e||da(t)),null;case 13:return el(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ho(t,null,r,n):Ic(e,t,r,n),t.child;case 11:return Lc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Kc(e,t),Ic(e,t,r,n),t.child;case 8:return Ic(e,t,t.pendingProps.children,n),t.child;case 12:return Ic(e,t,t.pendingProps.children,n),t.child;case 10:return ul(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,Da(t),i=Oa(i),r=r(i),t.flags|=1,Ic(e,t,r,n),t.child;case 14:return Rc(e,t,t.type,t.pendingProps,n);case 15:return zc(e,t,t.type,t.pendingProps,n);case 19:return ll(e,t,n);case 31:return Gc(e,t,n);case 22:return Bc(e,t,n,t.pendingProps);case 24:return Da(t),r=Oa(Pa),e===null?(i=Ya(),i===null&&(i=ed,o=Fa(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},vo(t),xa(t,Pa,i)):((e.lanes&n)!==0&&(yo(e,t),Eo(t,null,null,n),To()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,xa(t,Pa,r),r!==i.cache&&wa(t,[Pa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xa(t,Pa,r))),Ic(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:sa&&na(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Kc(e,t),Ic(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function hl(e){e.flags|=4}function gl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?$m(t,r):$m(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw ao=to,$a}}else e.flags&=-16777217}function _l(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!eh(t)){if(qd())e.flags|=8192;else throw ao=to,$a}}function vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ft(),e.lanes|=t,md|=t)}function yl(e,t){if(!sa)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function bl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xl(e,t,n){var r=t.pendingProps;switch(ra(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bl(t),null;case 1:return bl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Sa(Pa),De(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ma(t)?hl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ga())),bl(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(hl(t),o===null?(bl(t),gl(t,i,null,r,n)):(bl(t),_l(t,o))):o?o===e.memoizedState?(bl(t),t.flags&=-16777217):(hl(t),bl(t),_l(t,o)):(e=e.memoizedProps,e!==r&&hl(t),bl(t),gl(t,i,e,r,n)),null;case 27:if(ke(t),n=we.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return bl(t),t.subtreeFlags&=-33554433,null}e=Se.current,ma(t)?fa(t,e):(e=bm(i,r,n),t.stateNode=e,hl(t))}return bl(t),t.subtreeFlags&=-33554433,null;case 5:if(ke(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return bl(t),t.subtreeFlags&=-33554433,null}if(o=Se.current,ma(t))fa(t,o);else{var s=mp(we.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[wt]=t,o[Tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(sp(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&hl(t)}}return bl(t),t.subtreeFlags&=-33554433,gl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=we.current,ma(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=aa,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ip(e.nodeValue,n)),e||da(t,!0)}else e=mp(e).createTextNode(r),e[wt]=t,t.stateNode=e}return bl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ma(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[wt]=t}else ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bl(t),e=!1}else n=ga(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bo(t),t):(Bo(t),null);if(t.flags&128)throw Error(a(558))}return bl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ma(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[wt]=t}else ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bl(t),i=!1}else i=ga(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Bo(t),t):(Bo(t),null)}return Bo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),vl(t,t.updateQueue),bl(t),null);case 4:return De(),e===null&&Jf(t.stateNode.containerInfo),t.flags|=67108864,bl(t),null;case 10:return Sa(t.type),bl(t),null;case 19:if(Uo(t),r=t.memoizedState,r===null)return bl(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)yl(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wo(e),o!==null){for(t.flags|=128,yl(r,!1),e=o.updateQueue,t.updateQueue=e,vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ri(n,e),n=n.sibling;return Ho(t,Vo.current&1|2),sa&&R(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&He()>bd&&(t.flags|=128,i=!0,yl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Wo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,vl(t,e),yl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!sa)return bl(t),null}else 2*He()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,i=!0,yl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=He(),e.sibling=null,o=Vo.current,o=i?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||sa?Ho(t,o):(n=o,xe(Po,t),xe(Vo,n),Fo===null&&(Fo=t)),sa&&R(t,r.treeForkCount),e}return bl(t),null;case 22:case 23:return Bo(t),No(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(bl(t),t.subtreeFlags&6&&(t.flags|=8192)):bl(t),n=t.updateQueue,n!==null&&vl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&be(Ja),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sa(Pa),bl(t),null;case 25:return null;case 30:return t.flags|=33554432,bl(t),null}throw Error(a(156,t.tag))}function Sl(e,t){switch(ra(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(Pa),De(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ke(t),null;case 31:if(t.memoizedState!==null){if(Bo(t),t.alternate===null)throw Error(a(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Uo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return De(),null;case 10:return Sa(t.type),null;case 22:case 23:return Bo(t),No(),e!==null&&be(Ja),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sa(Pa),null;case 25:return null;default:return null}}function Cl(e,t){switch(ra(t),t.tag){case 3:Sa(Pa),De();break;case 26:case 27:case 5:ke(t);break;case 4:De();break;case 31:t.memoizedState!==null&&Bo(t);break;case 13:Bo(t);break;case 19:Uo(t);break;case 10:Sa(t.type);break;case 22:case 23:Bo(t),No(),e!==null&&be(Ja);break;case 24:Sa(Pa)}}function wl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function Tl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function El(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Oo(t,n)}catch(t){vf(e,e.return,t)}}}function Dl(e,t,n){n.props=Tc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function Ol(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=bi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);p(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function Al(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function jl(e){for(var t=e.return;t!==null&&(Pl(t)&&am(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Ml(e){for(var t=e.return;t!==null&&(Pl(t)&&om(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Nl(e){return e.tag===5||e.tag===3||e.tag===27}function Pl(e){return e&&e.tag===7&&e.stateNode!==null}function Fl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Il(e,t,n){try{var r=e.stateNode;lp(r,e.type,n,t),r[Tt]=t}catch(t){vf(e,e.return,t)}}function Ll(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dp(e.type)||e.tag===4}function Rl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ll(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xn)),Al(e,r),Jt=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Dp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Al(e,r),Jt=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Dp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bl(e,t,n,r),e=e.sibling;e!==null;)Bl(e,t,n,r),e=e.sibling}function Vl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);sp(t,r,n),t[wt]=e,t[Tt]=n}catch(t){vf(e,e.return,t)}}var Hl=!1,Ul=null;function Wl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Hl=!0)}var Gl=null;function Kl(){var e=Gl;return Gl=null,e}var ql=0;function Jl(e,t,n,r,i){return ql=0,Yl(e.child,t,n,r,i)}function Yl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Np(o);r.push(s),s.view&&(a=!0)}else a||Np(o).view&&(a=!0);Hl=!0,Ap(o,ql===0?t:t+`_`+ql,n),ql++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Yl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Xl(e,t){for(;e!==null;)e.tag===5?jp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Xl(e.child,t),e=e.sibling}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Zl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(a(544));var n=t.name;t=Si(t.default,t.share),t!==`none`&&(Jl(e,n,t,null,!1)||Xl(e.child,!1))}e=e.sibling}}function Ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=bi(r,n),a=Si(r.default,n.paired?r.share:r.enter);a===`none`?Zl(e):Jl(e,i,a,null,!1)?(Zl(e),n.paired||t||Ld(e,r.onEnter)):Xl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e,t),e=e.sibling;else Zl(e)}function $l(e){if(Ul!==null&&Ul.size!==0){var t=Ul;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Si(n.default,n.share);if(a!==`none`&&(Jl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):Xl(e.child,!1)),t.delete(r),t.size===0)break}}}$l(e)}e=e.sibling}}}function eu(e){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode),r=Ul===null?void 0:Ul.get(n),i=Si(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Jl(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Ul.delete(n),Ld(e,t.onShare)):Xl(e.child,!1)),Ul!==null&&$l(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else Ul!==null&&$l(e)}function tu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode);t=Si(t.default,t.update),e.flags&=-5,t!==`none`&&Jl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&tu(e);e=e.sibling}}function nu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xl(e.child,!1))}nu(e)}e=e.sibling}}function ru(e){if(e.tag===30)e.stateNode.paired=null,Xl(e.child,!1),nu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ru(e),e=e.sibling;else nu(e)}function iu(e){for(e=e.child;e!==null;)e.tag===30?Xl(e.child,!1):e.subtreeFlags&33554432&&iu(e),e=e.sibling}function au(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&ql<a.length){var l=a[ql],u=Np(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ap(c,ql===0?n:n+`_`+ql,i),s&&e.flags&4||(Gl===null&&(Gl=[]),Gl.push(c,ql===0?r:r+`_`+ql,t.memoizedProps)),ql++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:au(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ou(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=bi(n,r),a=Si(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Pp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;ql=0,i=au(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&ou(e,t);e=e.sibling}}var su=!1,cu=!1,lu=!1,uu=!1,du=typeof WeakSet==`function`?WeakSet:Set,W=null,fu=!1,pu=!1,mu=!1,hu=!1;function gu(e,t,n){if(e=e.containerInfo,fp=xh,e=Xr(e),Zr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(pp={focusedElem:e,selectionRange:r},xh=!1,n=(n&335544064)===n,W=t,t=n?9270:1024;W!==null;){if(e=W,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&eu(r[a]);if(e.alternate===null&&e.flags&2)n&&Wl(e),_u(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&eu(r),_u(n);continue}if(r!==null&&r.memoizedState!==null){n&&Wl(e),_u(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,W=r):(n&&tu(e),_u(n))}}Ul=null}function _u(e){for(;W!==null;){var t=W,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Tc(t.type,i);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=bi(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=Si(i.default,i.update),i!==`none`&&Jl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(a(163))}if(r=t.sibling,r!==null){r.return=t.return,W=r;break}W=t.return}}function vu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ru(e,n),r&4&&wl(5,n);break;case 1:if(Ru(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=Tc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&El(n),r&512&&Ol(n,n.return);break;case 3:if(Ru(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Oo(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Vl(n);case 26:case 5:Ru(e,n),t===null&&r&4&&Fl(n),r&512&&Ol(n,n.return);break;case 12:Ru(e,n);break;case 31:Ru(e,n),r&4&&Du(e,n);break;case 13:Ru(e,n),r&4&&Ou(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xf.bind(null,n),pm(e,n))));break;case 22:if(r=n.memoizedState!==null||su,!r){var a=t!==null&&t.memoizedState!==null||cu;t=su,i=cu,su=r,(cu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Bu(e,n,r)):Ru(e,n),su=t,cu=i}break;case 30:Ru(e,n),r&512&&Ol(n,n.return);break;case 7:r&512&&Ol(n,n.return);default:Ru(e,n)}}function yu(e,t){for(e=e.child;e!==null;)bu(e,t),e=e.sibling}function bu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}xu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Jt=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?kp(s,!0):kp(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&yu(e,t);break;default:yu(e,t)}}function xu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:bu(n,r);break a;case 22:n.memoizedState===null&&xu(n,r);break a;default:xu(n,r)}}e=e.sibling}}function Su(e){var t=e.alternate;t!==null&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Cu=null,wu=!1;function Tu(e,t,n){for(n=n.child;n!==null;)Eu(e,t,n),n=n.sibling}function Eu(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount==`function`)try{Qe.onCommitFiberUnmount(Ze,n)}catch{}switch(n.tag){case 26:cu||kl(n,t),Tu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!cu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:cu||kl(n,t),Ml(n);var r=Cu,i=wu;Dp(n.type)&&(Cu=n.stateNode,wu=!1),Tu(e,t,n),xm(n.stateNode,n.type,n.memoizedProps),Cu=r,wu=i;break;case 5:cu||kl(n,t),Ml(n);case 6:if(n.tag===6&&Ml(n),r=Cu,i=wu,Cu=null,Tu(e,t,n),Cu=r,wu=i,Cu!==null){if(wu)try{(Cu.nodeType===9?Cu.body:Cu.nodeName===`HTML`?Cu.ownerDocument.body:Cu).removeChild(n.stateNode),Jt=!0}catch(e){vf(n,t,e)}else try{Cu.removeChild(n.stateNode),Jt=!0}catch(e){vf(n,t,e)}}break;case 18:Cu!==null&&(wu?(e=Cu,Op(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),qh(e)):Op(Cu,n.stateNode));break;case 4:r=Cu,i=wu,Cu=n.stateNode.containerInfo,wu=!0,Tu(e,t,n),Cu=r,wu=i;break;case 0:case 11:case 14:case 15:Tl(2,n,t),cu||Tl(4,n,t),Tu(e,t,n);break;case 1:cu||(kl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Dl(n,t,r)),Tu(e,t,n);break;case 21:Tu(e,t,n);break;case 22:cu=(r=cu)||n.memoizedState!==null,Tu(e,t,n),cu=r;break;case 30:kl(n,t),Tu(e,t,n);break;case 7:cu||kl(n,t),Tu(e,t,n);break;default:Tu(e,t,n)}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qh(e)}catch(e){vf(t,t.return,e)}}}function Ou(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qh(e)}catch(e){vf(t,t.return,e)}}function ku(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new du),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new du),t;default:throw Error(a(435,e.tag))}}function Au(e,t){var n=ku(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Sf.bind(null,e,t);t.then(r,r)}})}function ju(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Dp(l.type)){Cu=l.stateNode,wu=!1;break a}break;case 5:Cu=l.stateNode,wu=!1;break a;case 3:case 4:Cu=l.stateNode.containerInfo,wu=!0;break a}l=l.return}if(Cu===null)throw Error(a(160));Eu(s,c,o),Cu=null,wu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nu(t,e,n),t=t.sibling}var Mu=null;function Nu(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ju(t,e,n),Pu(e),i&4&&(Tl(3,e,e.return),wl(3,e),Tl(5,e,e.return));break;case 1:ju(t,e,n),Pu(e),i&512&&(cu||r===null||kl(r,r.return)),i&64&&su&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Mu,ju(t,e,n),Pu(e),i&512&&(cu||r===null||kl(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(su)e.stateNode=_p(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=o.ownerDocument||o;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[jt]||r[wt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),sp(r,t,n),r[wt]=e,Rt(r),t=r;break a;case`link`:if(o=Xm(`link`,`href`,i).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=i.createElement(t),sp(r,t,n),i.head.appendChild(r);break;case`meta`:if(o=Xm(`meta`,`content`,i).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=i.createElement(t),sp(r,t,n),i.head.appendChild(r);break;default:throw Error(a(468,t))}r[wt]=e,Rt(r),t=r}e.stateNode=t}}else su||Zm(o,e.type,e.stateNode)}else e.stateNode=Gm(o,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Il(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||cu||t.parentNode.removeChild(t)):i.count--,n===null?su||Zm(o,e.type,e.stateNode):Gm(o,n,e.memoizedProps))}break;case 27:ju(t,e,n),Pu(e),i&512&&(cu||r===null||kl(r,r.return)),r!==null&&i&4&&Il(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=lu,lu=!1,ju(t,e,n),lu=o,Pu(e),i&512&&(cu||r===null||kl(r,r.return)),e.flags&32){t=e.stateNode;try{pn(t,``),Jt=!0}catch(t){vf(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Il(e,t,r===null?t:r.memoizedProps)),i&1024&&(uu=!0);break;case 6:if(ju(t,e,n),Pu(e),i&4){if(e.stateNode===null)throw Error(a(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Jt=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Jt=!1,Ym=null,o=Mu,Mu=Tm(t.containerInfo),ju(t,e,n),Mu=o,Pu(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{qh(t.containerInfo)}catch(t){vf(e,e.return,t)}uu&&(uu=!1,Fu(e)),Jt=!1;break;case 4:i=lu,lu=su,r=Yt(),o=Mu,Mu=Tm(e.stateNode.containerInfo),ju(t,e,n),Pu(e),Mu=o,Jt&&pu&&(mu=!0),Jt=r,lu=i;break;case 12:ju(t,e,n),Pu(e);break;case 31:ju(t,e,n),Pu(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 13:ju(t,e,n),Pu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=He()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=su,l=cu,u=lu;su=c||o,lu=u||o,cu=l||s,ju(t,e,n),cu=l,lu=u,su=c,Pu(e),i&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||su||cu||(t=s||cu,n=su,r=cu,su=o||su,cu=t,zu(e,2),su=n,cu=r),!o&&lu||yu(e,o)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Au(e,n))));break;case 19:ju(t,e,n),Pu(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 30:i&512&&(cu||r===null||kl(r,r.return)),i=Yt(),o=pu,s=(n&335544064)===n,c=e.memoizedProps,pu=s&&Si(c.default,c.update)!==`none`,ju(t,e,n),Pu(e),s&&r!==null&&Jt&&(e.flags|=4),pu=o,Jt=i;break;case 21:break;case 7:i&512&&(cu||r===null||kl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ju(t,e,n),Pu(e)}}function Pu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ll(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Pl(i)){var o=i.stateNode;r===null?r=[o]:r.push(o)}if(Nl(i))break;i=i.return}var s=r;if(n==null)throw Error(a(160));switch(n.tag){case 27:var c=n.stateNode;Bl(e,Rl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(pn(l,``),n.flags&=-33),Bl(e,Rl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;zl(e,Rl(e),u,s);break;default:throw Error(a(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,xh=!0,t.reset(),xh=!1),e=e.sibling}}function Iu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Lu(t,e),t=t.sibling;else ou(t,!1)}function Lu(e,t){var n=e.alternate;if(n===null)Ql(e,!1);else switch(e.tag){case 3:if(hu=fu=!1,Kl(),Iu(t,e),!fu&&!mu){if(e=Gl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];jp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),hu=!0}Gl=null;break;case 5:Iu(t,e);break;case 4:r=fu,fu=!1,Iu(t,e),fu&&(mu=!0),fu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Iu(t,e):Ql(e,!1));break;case 30:r=fu,i=Kl(),fu=!1,Iu(t,e),fu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=bi(a,o),o=bi(n.memoizedProps,o);var s=Si(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,ql=0,t=au(e,n,t,o,s,a,!0),ql!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Gl=i):i!==null&&(i.push.apply(i,Gl),Gl=i),fu=e.flags&32?!0:r;break;default:Iu(t,e)}}function Ru(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vu(e,t.alternate,t),t=t.sibling}function zu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Tl(4,n,n.return),zu(n,r);break;case 1:kl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Dl(n,n.return,i),zu(n,r);break;case 27:r&2&&xm(n.stateNode,n.type,n.memoizedProps);case 5:kl(n,n.return),n.tag!==5&&n.tag!==27||Ml(n),zu(n,r);break;case 6:Ml(n);break;case 26:kl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||cu||i.parentNode.removeChild(i),zu(n,r);break;case 22:n.memoizedState===null&&zu(n,r);break;case 30:kl(n,n.return),zu(n,r);break;case 7:kl(n,n.return);default:zu(n,r)}e=e.sibling}}function Bu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Bu(i,a,n),wl(4,a);break;case 1:if(Bu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Do(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&El(a),Ol(a,a.return);break;case 27:n&2&&Vl(a);case 5:a.tag!==5&&a.tag!==27||jl(a),Bu(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 6:jl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||su||Zm(Tm(c.ownerDocument),a.type,c),Bu(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 12:Bu(i,a,n);break;case 31:Bu(i,a,n),s&&o&4&&Du(i,a);break;case 13:Bu(i,a,n),s&&o&4&&Ou(i,a);break;case 22:a.memoizedState===null&&Bu(i,a,n),Ol(a,a.return);break;case 30:Bu(i,a,n),Ol(a,a.return);break;case 7:Ol(a,a.return);default:Bu(i,a,n)}t=t.sibling}}function Vu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ia(n))}function Hu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function Uu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)G(e,t,n,r),t=t.sibling;else i&&iu(t)}function G(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ru(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Uu(e,t,n,r),a&2048&&wl(9,t);break;case 1:Uu(e,t,n,r);break;case 3:Uu(e,t,n,r),i&&hu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ia(a)));break;case 12:if(a&2048){Uu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else Uu(e,t,n,r);break;case 31:Uu(e,t,n,r);break;case 13:Uu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&ru(t),o._visibility&2?Uu(e,t,n,r):(o._visibility|=2,Wu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&ru(s),o._visibility&2?Uu(e,t,n,r):K(e,t)),a&2048&&Vu(s,t);break;case 24:Uu(e,t,n,r),a&2048&&Hu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Xl(a.child,!0),Xl(t.child,!0))),Uu(e,t,n,r);break;default:Uu(e,t,n,r)}}function Wu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Wu(a,o,s,c,i),wl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wu(a,o,s,c,i)):u._visibility&2?Wu(a,o,s,c,i):K(a,o),i&&l&2048&&Vu(o.alternate,o);break;case 24:Wu(a,o,s,c,i),i&&l&2048&&Hu(o.alternate,o);break;default:Wu(a,o,s,c,i)}t=t.sibling}}function K(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:K(n,r),i&2048&&Vu(r.alternate,r);break;case 24:K(n,r),i&2048&&Hu(r.alternate,r);break;default:K(n,r)}t=t.sibling}}var q=8192;function J(e,t,n){if(e.subtreeFlags&q)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:J(e,t,n),e.flags&q&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&nh(n,e)):rh(n,Mu,e.memoizedState,e.memoizedProps));break;case 5:J(e,t,n),e.flags&q&&(e=e.stateNode,(t&335544128)===t&&nh(n,e));break;case 3:case 4:var r=Mu;Mu=Tm(e.stateNode.containerInfo),J(e,t,n),Mu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=q,q=16777216,J(e,t,n),q=r):J(e,t,n));break;case 30:if((e.flags&q)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Ul===null&&(Ul=new Map),Ul.set(r,i)}J(e,t,n);break;default:J(e,t,n)}}function Ku(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];W=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];W=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;W!==null;){var n=W;switch(n.tag){case 0:case 11:case 15:Tl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,W=r;else a:for(n=e;W!==null;){r=W;var i=r.sibling,a=r.return;if(Su(r),r===n){W=null;break a}if(i!==null){i.return=a,W=i;break a}W=a}}}var Zu={getCacheForType:function(e){var t=Oa(Pa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Oa(Pa).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,$u=0,ed=null,td=null,nd=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return $u&2&&nd!==0?nd&-nd:I.T===null?xt():Lf()}function Id(){if(pd===0){if(!(nd&536870912)||sa){var e=at;at<<=1,!(at&3932160)&&(at=262144),pd=e}else pd=536870912}return e=Po.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=zp(bi(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===ed&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,nd,pd,!1)),mt(e,n),$u&2&&e===ed||(e===ed&&(!($u&2)&&(dd|=n),ld===4&&Hd(e,nd,pd,!1)),kf(e))}function zd(e,t,n){if($u&6)throw Error(a(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||lt(e,t),i=r?$d(e,t):Zd(e,t,!0),o=r;do{if(i===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n))i=Zd(e,t,!1),o=!1;else{if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,i=4;break a}o=gd,gd=i,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=vd+300-He(),10<i)){if(Hd(r,t,pd,!ad),ct(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=xp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),i);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}}while(1);kf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},Ul=null,Gu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=sh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-He():(a&4194048)===a?yd-He():0,m=ah(d,m),m!==null)?(Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l)):sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=ut(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-et(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&gt(e,n,t)}function Ud(){return $u&6?!0:(Af(0,!1),!1)}function Wd(){if(td!==null){if(rd===0)var e=td.return;else e=td,ba=ya=null,cs(e),co=null,lo=0,e=td;for(;e!==null;)Cl(e.alternate,e),e=e.return;td=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Sp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),ed=e,td=n=Li(e.current,null),nd=t,rd=0,id=null,ad=!1,od=lt(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=ut(e,t),Di(),n}function Kd(e,t){Ko=null,I.H=_c,t===Qa||t===eo?(t=oo(),rd=3):t===$a?(t=oo(),rd=4):rd=t===U?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,td===null&&(ld=1,kc(e,Gi(t,e.current)))}function qd(){var e=Po.current;return e===null?!0:(nd&4194048)===nd?Fo===null:(nd&62914560)===nd||nd&536870912?e===Fo:!1}function Jd(){var e=I.H;return I.H=_c,e===null?_c:e}function Yd(){var e=I.A;return I.A=Zu,e}function Xd(){ld=4,ad||(nd&4194048)!==nd&&Po.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||ed===null||Hd(ed,nd,pd,!1)}function Zd(e,t,n){var r=$u;$u|=2;var i=Jd(),a=Yd();(ed!==e||nd!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&td!==null){var s=td,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:Po.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,ba=ya=null,$u=r,I.H=i,I.A=a,td===null&&(ed=null,nd=0,Di()),o}function Qd(){for(;td!==null;)tf(td)}function $d(e,t){var n=$u;$u|=2;var r=Jd(),i=Yd();ed!==e||nd!==t?(xd=null,bd=He()+500,Gd(e,t)):od=lt(e,t);a:do try{if(rd!==0&&td!==null){t=td;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(no(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||ed!==e||(rd=7),kf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:no(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(td.tag){case 26:s=td.memoizedState;case 5:case 27:var c=td;if(s?eh(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)td=l;else{var u=c.return;u===null?td=null:(td=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(a(462))}}ef();break}catch(t){Kd(e,t)}while(1);return ba=ya=null,I.H=r,I.A=i,$u=n,td===null?(ed=null,nd=0,Di(),ld):0}function ef(){for(;td!==null&&!Be();)tf(td)}function tf(e){var t=ml(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Jc(n,t,t.pendingProps,t.type,void 0,nd);break;case 11:t=Jc(n,t,t.pendingProps,t.type.render,t.ref,nd);break;case 5:cs(t);var r=t;r===aa&&(sa?(pa(r),r.tag===5&&r.stateNode!=null&&(oa=r.stateNode)):(pa(r),sa=!0));default:Cl(n,t),t=td=Ri(t,cd),t=ml(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function rf(e,t,n,r){ba=ya=null,cs(t),co=null,lo=0;var i=t.return;try{if(Pc(e,i,t,n,nd)){ld=1,kc(e,Gi(n,e.current)),td=null;return}}catch(t){if(i!==null)throw td=i,t;ld=1,kc(e,Gi(n,e.current)),td=null;return}t.flags&32768?(sa||r===1?e=!0:od||nd&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=Po.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=xl(t.alternate,t,cd);if(n!==null){td=n;return}if(t=t.sibling,t!==null){td=t;return}td=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=Sl(e.alternate,e);if(n!==null){n.flags&=32767,td=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){td=e;return}td=e=n}while(e!==null);ld=6,td=null}function sf(e,t,n,r,i,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if($u&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));e===ed&&(td=ed=null,nd=0),Td=t,wd=e,Ed=n,Od=i,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=Ei,ht(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=za(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Cf(Ke,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Hl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,i=he.p,he.p=2,a=$u,$u|=4;try{gu(e,t,n)}finally{$u=a,he.p=i,I.T=r}}Cd=1,Hl?Ad=Lp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Lu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=I.T,I.T=null;var i=he.p;he.p=2;var a=$u;$u|=4;try{pu=mu=!1,Nu(t,e,n),n=pp;var o=Xr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Yr(s.ownerDocument.documentElement,s)){if(c!==null&&Zr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Jr(s,h),v=Jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}xh=!!fp,pp=fp=null}finally{$u=a,he.p=i,I.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=he.p;he.p=2;var i=$u;$u|=4;try{vu(e,t.alternate,t)}finally{$u=i,he.p=r,I.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,Ve();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),bt(r),n=n.stateNode,Qe&&typeof Qe.onCommitFiberRoot==`function`)try{Qe.onCommitFiberRoot(Ze,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=I.T,a=he.p,he.p=2,I.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{I.T=n,he.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),kf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Af(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=bt(Ed),r=I.T,i=he.p;try{he.p=32>n?32:n,I.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,$u&6)throw Error(a(331));var c=$u;if($u|=4,Ju(o.current),G(o,o.current,s,n),$u=c,Af(0,!1),Qe&&typeof Qe.onPostCommitFiberRoot==`function`)try{Qe.onPostCommitFiberRoot(Ze,o)}catch{}return!0}finally{he.p=i,I.T=r,mf(e,t)}}function _f(e,t,n){t=Gi(n,t),t=jc(e.stateNode,t,2),e=xo(e,t,2),e!==null&&(mt(e,2),kf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Gi(n,e),n=Mc(2),r=xo(t,n,2),r!==null&&(Nc(n,r,t,e),mt(r,2),kf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=Y.bind(null,e,t,n),t.then(e,e))}function Y(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(nd&n)===n&&(ld===4||ld===3&&(nd&62914560)===nd&&300>He()-vd?$u&2?fd|=n:Gd(e,0):fd|=n,md===nd&&(md=0)),kf(e)}function bf(e,t){t===0&&(t=ft()),e=Ai(e,t),e!==null&&(mt(e,t),kf(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),bf(e,n)}function Cf(e,t){return Re(e,t)}var X=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?X=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!0;do for(var n=!1,r=X;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-et(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=nd,a=ct(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||lt(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&bp()&&(e=Of);for(var t=He(),n=null,r=X;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?X=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}Cd!==0&&Cd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-et(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=dt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=nd,n=ct(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ze(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||lt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ze(r),bt(n)){case 2:case 8:n=Ge;break;case 32:n=Ke;break;case 268435456:n=Je;break;default:n=Ke}return r=Pf.bind(null,e),n=Re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ze(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=nd;return r=ct(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Nf(e,He()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(hf())return null;zd(e,t,!0)}function If(){Tp(function(){$u&6?Re(We,jf):Mf()})}function Lf(){if(Of===0){var e=Ha;e===0&&(e=it,it<<=1,!(it&261888)&&(it=256)),Of=e}return Of}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:bn(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[Tt]||null).action),o=r.submitter;o&&(t=(t=o[Tt]||null)?Rf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Of!==0){var e=new FormData(i,o);rc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),rc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<_i.length;Bf++){var Vf=_i[Bf];vi(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.slice(1)))}vi(li,`onAnimationEnd`),vi(ui,`onAnimationIteration`),vi(di,`onAnimationStart`),vi(`dblclick`,`onDoubleClick`),vi(`focusin`,`onFocus`),vi(`focusout`,`onBlur`),vi(fi,`onTransitionRun`),vi(pi,`onTransitionStart`),vi(mi,`onTransitionCancel`),vi(hi,`onTransitionEnd`),Ut(`onMouseEnter`,[`mouseout`,`mouseover`]),Ut(`onMouseLeave`,[`mouseout`,`mouseover`]),Ut(`onPointerEnter`,[`pointerout`,`pointerover`]),Ut(`onPointerLeave`,[`pointerout`,`pointerover`]),Ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}}}}function Gf(e,t){var n=t[Dt];n===void 0&&(n=t[Dt]=new Set);var r=e+`__bubble`;n.has(r)||(Yf(t,e,2,!1),n.add(r))}function Kf(e,t,n){var r=0;t&&(r|=4),Yf(n,e,r,t)}var qf=`_reactListening`+Math.random().toString(36).slice(2);function Jf(e){if(!e[qf]){e[qf]=!0,Bt.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Kf(t,!1,e),Kf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,Kf(`selectionchange`,!1,t))}}function Yf(e,t,n,r){switch(Oh(t)){case 2:var i=Sh;break;case 8:i=Ch;break;default:i=wh}n=i.bind(null,t,n,e),i=void 0,!jn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Xf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=Pt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}On(function(){var r=a,i=Cn(n),o=[];a:{var c=gi.get(e);if(c!==void 0){var l=Hn,u=e;switch(e){case`keypress`:if(Ln(n)===0)break a;case`keydown`:case`keyup`:l=or;break;case`focusin`:u=`focus`,l=Zn;break;case`focusout`:u=`blur`,l=Zn;break;case`beforeblur`:case`afterblur`:l=Zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=lr;break;case li:case ui:case di:l=Qn;break;case hi:l=ur;break;case`scroll`:case`scrollend`:l=Wn;break;case`wheel`:l=dr;break;case`copy`:case`cut`:case`paste`:l=$n;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=sr;break;case`submit`:l=cr;break;case`toggle`:case`beforetoggle`:l=fr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=kn(m,p),g!=null&&d.push(Zf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Sn&&(u=n.relatedTarget||n.fromElement)&&(Pt(u)||u[Et]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Pt(l):null,l!==null&&(f=s(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=sr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:It(c),h=l==null?u:It(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Pt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,$f):null,c!==null&&ep(o,u,c,d,!1),l!==null&&f!==null&&ep(o,f,l,d,!0)))}a:{if(c=r?It(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Mr;else if(Er(c)){if(Nr)_=Hr;else{_=Br;var v=zr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&_n(r.elementType)&&(_=Mr):_=Vr;if(_&&=_(e,r)){Dr(o,_,n,i);break a}v&&v(e,c,r)}switch(v=r?It(r):window,e){case`focusin`:(Er(v)||v.contentEditable===`true`)&&($r=v,ei=r,ti=null);break;case`focusout`:ti=ei=$r=null;break;case`mousedown`:ni=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ni=!1,ri(o,n,i);break;case`selectionchange`:if(Qr)break;case`keydown`:case`keyup`:ri(o,n,i)}var y;if(mr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Sr?br(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(_r&&n.locale!==`ko`&&(Sr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Sr&&(y=In()):(Nn=i,Pn=`value`in Nn?Nn.value:Nn.textContent,Sr=!0)),v=Qf(r,b),0<v.length&&(b=new er(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=xr(n),y!==null&&(b.data=y)))),(y=gr?Cr(e,n):wr(e,n))&&(b=Qf(r,`onBeforeInput`),0<b.length&&(v=new er(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),zf(o,e,r,n,i)}Wf(o,t)})}function Zf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=kn(e,n),i!=null&&r.unshift(Zf(e,i,a)),i=kn(e,t),i!=null&&r.push(Zf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function $f(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=kn(n,a),l!=null&&o.unshift(Zf(n,l,c))):i||(l=kn(n,a),l!=null&&o.push(Zf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tp=/\r\n?/g,np=/\u0000|\uFFFD/g;function rp(e){return(typeof e==`string`?e:``+e).replace(tp,`
10
- `).replace(np,``)}function ip(e,t){return t=rp(t),rp(e)===t}function ap(e,t,n,r,i,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&pn(e,``+r);else return;break;case`className`:Zt(e,`class`,r);break;case`tabIndex`:Zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Zt(e,n,r);break;case`style`:gn(e,r,o);return;case`data`:if(t!==`object`){Zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ap(e,t,`name`,i.name,i,null),ap(e,t,`formEncType`,i.formEncType,i,null),ap(e,t,`formMethod`,i.formMethod,i,null),ap(e,t,`formTarget`,i.formTarget,i,null)):(ap(e,t,`encType`,i.encType,i,null),ap(e,t,`method`,i.method,i,null),ap(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=bn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=xn);return;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=bn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Gf(`beforetoggle`,e),Gf(`toggle`,e),Xt(e,`popover`,r);break;case`xlinkActuate`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Xt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=vn.get(n)||n,Xt(e,n,r);else return}Jt=!0}function op(e,t,n,r,i,o){switch(n){case`style`:gn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)pn(e,r);else if(typeof r==`number`||typeof r==`bigint`)pn(e,``+r);else return;break;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=xn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),o=n.slice(2,i?n.length-7:void 0),t=e[Tt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,i);break a}Jt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Xt(e,n,r)}return}Jt=!0}function sp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Gf(`error`,e),Gf(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:ap(e,t,o,s,n,null)}}i&&ap(e,t,`srcSet`,n.srcSet,n,null),r&&ap(e,t,`src`,n.src,n,null);return;case`input`:Gf(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:ap(e,t,r,d,n,null)}}cn(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Gf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ap(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&un(e,!!r,n,!0):un(e,!!r,t,!1);return;case`textarea`:for(s in Gf(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:ap(e,t,s,c,n,null)}fn(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ap(e,t,l,r,n,null)}return;case`dialog`:Gf(`beforetoggle`,e),Gf(`toggle`,e),Gf(`cancel`,e),Gf(`close`,e);break;case`iframe`:case`object`:Gf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Gf(Hf[r],e);break;case`image`:Gf(`error`,e),Gf(`load`,e);break;case`details`:Gf(`toggle`,e);break;case`embed`:case`source`:case`link`:Gf(`error`,e),Gf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:ap(e,t,u,r,n,null)}return;default:if(_n(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&op(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ap(e,t,c,r,n,null))}var cp={};function lp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ap(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Jt=!0),o=m;break;case`name`:m!==f&&(Jt=!0),i=m;break;case`checked`:m!==f&&(Jt=!0),u=m;break;case`defaultChecked`:m!==f&&(Jt=!0),d=m;break;case`value`:m!==f&&(Jt=!0),s=m;break;case`defaultValue`:m!==f&&(Jt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&ap(e,t,p,m,r,f)}}sn(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ap(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:o!==l&&(Jt=!0),p=o;break;case`defaultValue`:o!==l&&(Jt=!0),c=o;break;case`multiple`:o!==l&&(Jt=!0),s=o;default:o!==l&&ap(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?un(e,!!n,n?[]:``,!1):un(e,!!n,t,!0)):un(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ap(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:i!==o&&(Jt=!0),p=i;break;case`defaultValue`:i!==o&&(Jt=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&ap(e,t,s,i,r,o)}dn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ap(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Jt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ap(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ap(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:ap(e,t,u,p,r,m)}return;default:if(_n(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&op(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||op(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ap(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ap(e,t,f,p,r,m)}function up(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&up(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&up(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var fp=null,pp=null;function mp(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function _p(e,t,n,r){return n=mp(n).createElement(e),n[wt]=r,n[Tt]=t,sp(n,e,t),Rt(n),n}function vp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yp=null;function bp(){var e=window.event;return e&&e.type===`popstate`?e!==yp&&(yp=e,!0):(yp=null,!1)}var xp=typeof setTimeout==`function`?setTimeout:void 0,Sp=typeof clearTimeout==`function`?clearTimeout:void 0,Cp=typeof Promise==`function`?Promise:void 0,wp=typeof requestAnimationFrame==`function`?requestAnimationFrame:xp,Tp=typeof queueMicrotask==`function`?queueMicrotask:Cp===void 0?xp:function(e){return Cp.resolve(null).then(e).catch(Ep)};function Ep(e){setTimeout(function(){throw e})}function Dp(e){return e===`head`}function Op(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),qh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[jt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sm(e.ownerDocument.body)}n=i}while(n);qh(t)}function kp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Ap(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function jp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Mp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Np(e){return Mp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Pp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mp(t,n,e)}function Fp(e){return e.documentElement.clientHeight}function Ip(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Lp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Fp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=th(f),u>ih){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Rp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Rp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Rp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Rp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zp(e){return{name:e,group:new Rp(`group`,e),imagePair:new Rp(`image-pair`,e),old:new Rp(`old`,e),new:new Rp(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),vm(e,t))}Bp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=b(e),e=mp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,ym(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=Pt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(p(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(p(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(a(566));var t=[];p(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),nm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=b(i),nm(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=b(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),Nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[jt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mm(e.nextSibling),e===null)break}return null}function lm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mm(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mm(e.nextSibling),e===null))return null;return e}function dm(e){return e.data===`$?`||e.data===`$~`}function fm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hm=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function ym(e){wp(function(){wp(function(t){return e(t)})})}function bm(e,t,n){switch(t=mp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function xm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ap(e,t,r,null,cp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===xn&&(e.onclick=null),Nt(e)}function Sm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nt(e)}var Cm=new Map,wm=new Set;function Tm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Em=he.d;he.d={f:Dm,r:Om,D:jm,C:Mm,L:Nm,m:Pm,X:Im,S:Fm,M:Lm};function Dm(){var e=Em.f(),t=Ud();return e||t}function Om(e){var t=Ft(e);t!==null&&t.tag===5&&t.type===`form`?ac(t):Em.r(e)}var km=typeof document>`u`?null:document;function Am(e,t,n){var r=km;if(r&&typeof t==`string`&&t){var i=on(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),sp(t,`link`,e),Rt(t),r.head.appendChild(t)))}}function jm(e){Em.D(e),Am(`dns-prefetch`,e,null)}function Mm(e,t){Em.C(e,t),Am(`preconnect`,e,t)}function Nm(e,t,n){Em.L(e,t,n);var r=km;if(r&&e&&t){var i=`link[rel="preload"][as="`+on(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+on(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+on(n.imageSizes)+`"]`)):i+=`[href="`+on(e)+`"]`;var a=i;switch(t){case`style`:a=zm(e);break;case`script`:a=Um(e)}if(!(Cm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bm(a))||t===`script`&&r.querySelector(Wm(a))))){var o=r.createElement(`link`);sp(o,`link`,e),t===`style`&&(o[Mt]=!0,o.onload=o.onerror=function(){zt(o)}),Rt(o),r.head.appendChild(o)}}}function Pm(e,t){Em.m(e,t);var n=km;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+on(r)+`"][href="`+on(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Um(e)}if(!Cm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wm(a)))return}r=n.createElement(`link`),sp(r,`link`,e),Rt(r),n.head.appendChild(r)}}}function Fm(e,t,n){Em.S(e,t,n);var r=km;if(r&&e){var i=Lt(r).hoistableStyles,a=zm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&qm(e,n);var c=o=r.createElement(`link`);Rt(c),sp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Km(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Im(e,t){Em.X(e,t);var n=km;if(n&&e){var r=Lt(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=D({src:e,async:!0},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Rt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t){Em.M(e,t);var n=km;if(n&&e){var r=Lt(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Rt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t,n,r){var i=(i=we.current)?Tm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=zm(n.href),t=Lt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zm(n.href);var o=Lt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Bm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Hm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Um(n),t=Lt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function zm(e){return`href="`+on(e)+`"`}function Bm(e){return`link[rel="stylesheet"][`+e+`]`}function Vm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Hm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Mt]){r.loading=1;return}}else t=e.createElement(`link`),t[Mt]=!0,t.onload=t.onerror=zt.bind(null,t),sp(t,`link`,n),Rt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Um(e){return`[src="`+on(e)+`"]`}function Wm(e){return`script[async]`+e}function Gm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+on(n.href)+`"]`);if(r)return t.instance=r,Rt(r),r;var i=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Rt(r),sp(r,`style`,i),Km(r,n.precedence,e),t.instance=r;case`stylesheet`:i=zm(n.href);var o=e.querySelector(Bm(i));if(o)return t.state.loading|=4,t.instance=o,Rt(o),o;r=Vm(n),(i=Cm.get(i))&&qm(r,i),o=(e.ownerDocument||e).createElement(`link`),Rt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),sp(o,`link`,r),t.state.loading|=4,Km(o,n.precedence,e),t.instance=o;case`script`:return o=Um(n.src),(i=e.querySelector(Wm(o)))?(t.instance=i,Rt(i),i):(r=n,(i=Cm.get(o))&&(r=D({},n),Jm(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Rt(i),sp(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Km(r,n.precedence,e));return t.instance}function Km(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ym=null;function Xm(e,t,n){if(Ym===null){var r=new Map,i=Ym=new Map;i.set(n,r)}else i=Ym,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[jt]||a[wt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Zm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $m(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function eh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function th(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function nh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=th(t),e.suspenseyImages.push(t)),e=ch.bind(e),t.decode().then(e,e))}function rh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zm(r.href),a=t.querySelector(Bm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Rt(a);return}a=t.ownerDocument||t,r=Vm(r),(i=Cm.get(i))&&qm(r,i),a=a.createElement(`link`),Rt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ih=0;function ah(e,t){return e.stylesheets&&e.count===0&&uh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ih===0&&(ih=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ih?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function oh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)uh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function sh(){this.count--,oh(this)}function ch(){this.imgCount--,oh(this)}var lh=null;function uh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lh=new Map,t.forEach(dh,e),lh=null,sh.call(e))}function dh(e,t){if(!(t.state.loading&4)){var n=lh.get(e);if(n)var r=n.get(null);else{n=new Map,lh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=sh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var fh={$$typeof:F,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function ph(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function mh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ph(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Fi(3,null,null,t),e.current=a,a.stateNode=e,t=Fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},vo(a),e}function hh(e){return e?(e=Ni,e):Ni}function gh(e,t,n,r,i,a){i=hh(i),r.context===null?r.context=i:r.pendingContext=i,r=bo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=xo(e,r,t),n!==null&&(Rd(n,e,t),So(n,e,t))}function _h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vh(e,t){_h(e,t),(e=e.alternate)&&_h(e,t)}function yh(e){if(e.tag===13||e.tag===31){var t=Ai(e,67108864);t!==null&&Rd(t,e,67108864),vh(e,67108864)}}function bh(e){if(e.tag===13||e.tag===31){var t=Fd();t=yt(t);var n=Ai(e,t);n!==null&&Rd(n,e,t),vh(e,t)}}var xh=!0;function Sh(e,t,n,r){var i=I.T;I.T=null;var a=he.p;try{he.p=2,wh(e,t,n,r)}finally{he.p=a,I.T=i}}function Ch(e,t,n,r){var i=I.T;I.T=null;var a=he.p;try{he.p=8,wh(e,t,n,r)}finally{he.p=a,I.T=i}}function wh(e,t,n,r){if(xh){var i=Th(r);if(i===null)Xf(e,t,r,Eh,n),Lh(e,r);else if(zh(i,e,t,n,r))r.stopPropagation();else if(Lh(e,r),t&4&&-1<Ih.indexOf(e)){for(;i!==null;){var a=Ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=st(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-et(o);s.entanglements[1]|=c,o&=~c}kf(a),!($u&6)&&(bd=He()+500,Af(0,!1))}}break;case 31:case 13:s=Ai(a,2),s!==null&&Rd(s,a,2),Ud(),vh(a,2)}if(a=Th(r),a===null&&Xf(e,t,r,Eh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Xf(e,t,r,null,n)}}function Th(e){return e=Cn(e),Dh(e)}var Eh=null;function Dh(e){if(Eh=null,e=Pt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eh=e,null}function Oh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ue()){case We:return 2;case Ge:return 8;case Ke:case qe:return 32;case Je:return 268435456;default:return 32}default:return 32}}var kh=!1,Ah=null,jh=null,Mh=null,Nh=new Map,Ph=new Map,Fh=[],Ih=`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`.split(` `);function Lh(e,t){switch(e){case`focusin`:case`focusout`:Ah=null;break;case`dragenter`:case`dragleave`:jh=null;break;case`mouseover`:case`mouseout`:Mh=null;break;case`pointerover`:case`pointerout`:Nh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ph.delete(t.pointerId)}}function Rh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ft(t),t!==null&&yh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zh(e,t,n,r,i){switch(t){case`focusin`:return Ah=Rh(Ah,e,t,n,r,i),!0;case`dragenter`:return jh=Rh(jh,e,t,n,r,i),!0;case`mouseover`:return Mh=Rh(Mh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Nh.set(a,Rh(Nh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ph.set(a,Rh(Ph.get(a)||null,e,t,n,r,i)),!0}return!1}function Bh(e){var t=Pt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,St(e.priority,function(){bh(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,St(e.priority,function(){bh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Th(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sn=r,n.target.dispatchEvent(r),Sn=null}else return t=Ft(n),t!==null&&yh(t),e.blockedOn=n,!1;t.shift()}return!0}function Hh(e,t,n){Vh(e)&&n.delete(t)}function Uh(){kh=!1,Ah!==null&&Vh(Ah)&&(Ah=null),jh!==null&&Vh(jh)&&(jh=null),Mh!==null&&Vh(Mh)&&(Mh=null),Nh.forEach(Hh),Ph.forEach(Hh)}function Wh(e,n){e.blockedOn===n&&(e.blockedOn=null,kh||(kh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Uh)))}var Gh=null;function Kh(e){Gh!==e&&(Gh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gh===e&&(Gh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Dh(r||n)===null)continue;break}var a=Ft(n);a!==null&&(e.splice(t,3),t-=3,rc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qh(e){function t(t){return Wh(t,e)}Ah!==null&&Wh(Ah,e),jh!==null&&Wh(jh,e),Mh!==null&&Wh(Mh,e),Nh.forEach(t),Ph.forEach(t);for(var n=0;n<Fh.length;n++){var r=Fh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Fh.length&&(n=Fh[0],n.blockedOn===null);)Bh(n),n.blockedOn===null&&Fh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Tt]||null;if(typeof a==`function`)o||Kh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Tt]||null)s=o.formAction;else if(Dh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Kh(n)}}}function Jh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Yh(e){this._internalRoot=e}Xh.prototype.render=Yh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;gh(n,Fd(),e,t,null,null)},Xh.prototype.unmount=Yh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gh(e.current,2,null,e,null,null),Ud(),t[Et]=null}};function Xh(e){this._internalRoot=e}Xh.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fh.length&&t!==0&&t<Fh[n].priority;n++);Fh.splice(n,0,e),n===0&&Bh(e)}};var Zh=n.version;if(Zh!==`19.3.1`)throw Error(a(527,Zh,`19.3.1`));he.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var $h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$h.isDisabled&&$h.supportsFiber)try{Ze=$h.inject(Qh),Qe=$h}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=Ec,s=Dc,c=Oc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=mh(e,1,!1,null,null,n,r,null,i,s,c,Jh),e[Et]=t.current,Jf(e),new Yh(t)}})),x=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=b()})),S=t(r(),1),C=x(),w=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,T=/^[\\/]{2}/;function E(e,t){return t+e.replace(/\\/g,`/`)}var D=`popstate`;function O(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function k(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return P(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:F(t)}return te(t,n,null,e)}function A(e,t){if(e===!1||e==null)throw Error(t)}function j(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function M(){return Math.random().toString(36).substring(2,10)}function N(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function P(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ee(t):t,state:n,key:t&&t.key||r||M(),mask:i}}function F({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ee(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function te(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=O(e)?e:P(h.location,e,t);n&&n(r,e),l=u()+1;let d=N(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=O(e)?e:P(h.location,e,t);n&&n(r,e),l=u();let i=N(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ne(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(D,d),c=e,()=>{i.removeEventListener(D,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ne(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),A(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:F(t);return i=i.replace(/ $/,`%20`),!n&&T.test(i)&&(i=r+i),new URL(i,r)}function re(e,t,n=`/`){return ie(e,t,n,!1)}function ie(e,t,n,r,i){let a=we((typeof t==`string`?ee(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ae(e),s=null,c=Ce(a);for(let e=0;s==null&&e<o.length;++e)s=ye(o[e],c,r);return s}function ae(e){let t=oe(e);return ce(t),t}function oe(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;A(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Me([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(A(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),oe(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:_e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Se(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of se(e.path))a(e,t,!0,n)}),t}function se(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=se(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ce(e){e.sort((e,t)=>e.score===t.score?ve(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var le=/^:[\w-]+$/,ue=/^:[\w-]+/,de=3.5,fe=3,pe=2,me=1,I=10,he=-2,ge=e=>e===`*`;function _e(e,t){let n=e.split(`/`),r=n.length;return n.some(ge)&&(r+=he),t&&(r+=pe),n.filter(e=>!ge(e)).reduce((e,t)=>e+(le.test(t)?fe:ue.test(t)?de:t===``?me:I),r)}function ve(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ye(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?xe(u,l,s.matcher,s.compiledParams):be(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=be({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Me([a,d.pathname]),pathnameBase:Pe(Me([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Me([a,d.pathnameBase]))}return o}function be(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Se(e.path,e.caseSensitive,e.end);return xe(e,t,n,r)}function xe(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Ne(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Ne(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Se(e,t=!1,n=!0){j(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,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ce(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return j(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function we(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)||`/`}function Te(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ee(e):e,a;return n?(n=je(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ee(n.substring(1),`/`):Ee(n,t)):a=t,{pathname:a,search:Fe(r),hash:Ie(i)}}function Ee(e,t){let n=Ne(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function De(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 Oe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ke(e){let t=Oe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ae(e,t,n,r=!1){let i;typeof e==`string`?i=ee(e):(i={...e},A(!i.pathname||!i.pathname.includes(`?`),De(`?`,`pathname`,`search`,i)),A(!i.pathname||!i.pathname.includes(`#`),De(`#`,`pathname`,`hash`,i)),A(!i.search||!i.search.includes(`#`),De(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Te(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var je=e=>e.replace(/[\\/]{2,}/g,`/`),Me=e=>je(e.join(`/`));function Ne(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Pe=e=>Ne(e).replace(/^\/*/,`/`),Fe=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ie=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Le=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Re(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ze(e){return Me(e.map(e=>e.route.path).filter(Boolean))||`/`}var Be=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ve(e,t){let n=e;if(typeof n!=`string`||!w.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Be)try{let e=new URL(window.location.href),r=T.test(n)?new URL(E(n,e.protocol)):new URL(n),a=we(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{j(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var He=new URL(`http://localhost`);function Ue(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),He)}catch{return He}}function We(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ge(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Ke(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!We(i,n),s=!We(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ge(e,i)||!We(i,a)))throw Error(`External navigation is not allowed`)}var qe=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(qe);var Je=[`GET`,...qe];new Set(Je);var Ye=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Xe(e){try{return Ye.includes(new URL(e).protocol)}catch{return!1}}var Ze=S.createContext(null);Ze.displayName=`DataRouter`;var Qe=S.createContext(null);Qe.displayName=`DataRouterState`;var $e=S.createContext(null);$e.displayName=`DataRouterData`;var et=S.createContext(null);et.displayName=`DataRouterNavigation`;var tt=S.createContext(!1);function nt(){return S.useContext(tt)}var rt=S.createContext({isTransitioning:!1});rt.displayName=`ViewTransition`;var it=S.createContext(null);it.displayName=`Fetchers`;var at=S.createContext(null);at.displayName=`Await`;var ot=S.createContext(null);ot.displayName=`Navigation`;var st=S.createContext(null);st.displayName=`Location`;var ct=S.createContext({outlet:null,matches:[],isDataRoute:!1});ct.displayName=`Route`;var lt=S.createContext(!1);lt.displayName=`IsDataRoute`;var ut=S.createContext(void 0);ut.displayName=`RouteId`;var dt=S.createContext(null);dt.displayName=`RouteError`;var ft=`REACT_ROUTER_ERROR`,pt=`REDIRECT`,mt=`ROUTE_ERROR_RESPONSE`;function ht(e){if(e.startsWith(`${ft}:${pt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function gt(e){if(e.startsWith(`${ft}:${mt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Le(t.status,t.statusText,t.data)}catch{}}function _t(e,{relative:t}={}){A(vt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(ot),{hash:i,pathname:a,search:o}=Et(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Me([n,a])),r.createHref({pathname:s,search:o,hash:i})}function vt(){return S.useContext(st)!=null}function yt(){return A(vt(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext(st).location}var bt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function xt(){return S.useContext(lt)?Ht():St()}function St(){A(vt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Ze),{basename:t,navigator:n}=S.useContext(ot),{matches:r}=S.useContext(ct),{pathname:i}=yt(),a=JSON.stringify(ke(r)),o=S.useRef(!1);return S.useLayoutEffect(()=>{o.current=!0}),S.useCallback((r,s={})=>{if(j(o.current,bt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ae(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Me([t,c.pathname])),Ke(typeof r==`string`?r:F(r),n.createHref(c),Ue(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Ct=S.createContext(null);function wt(e){let t=S.useContext(ct).outlet;return S.useMemo(()=>t&&S.createElement(Ct.Provider,{value:e},t),[t,e])}function Tt(){let{matches:e}=S.useContext(ct);return e[e.length-1]?.params??{}}function Et(e,{relative:t}={}){let{matches:n}=S.useContext(ct),{pathname:r}=yt(),i=JSON.stringify(ke(n));return S.useMemo(()=>Ae(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Dt(e,t){return Ot(e,t)}function Ot(e,t,n){A(vt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(ot),{matches:i}=S.useContext(ct),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=yt(),l;if(t){let e=typeof t==`string`?ee(t):t;A(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):re(e,{pathname:d});let p=Ft(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Me([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:Me([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?S.createElement(st.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function kt(){let e=Vt(),t=Re(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var At=S.createElement(kt,null),jt=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=tt;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=gt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(ct.Provider,{value:this.props.routeContext},S.createElement(lt.Provider,{value:this.props.routeContext.isDataRoute},S.createElement(ut.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},S.createElement(dt.Provider,{value:e,children:this.props.component}))));return this.context?S.createElement(Nt,{error:e},t):t}},Mt=new WeakMap;function Nt({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(ot);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ht(t.digest);if(e){let i=Mt.get(t);if(i)throw i;let a=Ve(e.location,n),o=a.absoluteURL||a.to;if(Ke(e.location,o,Ue(r),`allow-explicit`),Xe(o))throw Error(`Invalid redirect location`);if(Be&&!Mt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Mt.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Pt({routeContext:e,match:t,children:n}){let r=S.useContext(Ze);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ct.Provider,{value:e},S.createElement(lt.Provider,{value:e.isDataRoute},S.createElement(ut.Provider,{value:t.route.id},n)))}function Ft(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);A(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ze(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||At,o&&(s<0&&c===0?(Wt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Pt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(jt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function It(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lt(e){let t=S.useContext(Ze);return A(t,It(e)),t}function Rt(e){let t=S.useContext(Qe);return A(t,It(e)),t}function zt(e){let t=S.useContext($e);return A(t,It(e)),t}function Bt(e){let t=S.useContext(ut);return A(t,`${e} can only be used on routes that contain a unique "id"`),t}function Vt(){let e=S.useContext(dt),t=zt(`useRouteError`),n=Bt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ht(){let{router:e}=Lt(`useNavigate`),t=Bt(`useNavigate`),n=S.useRef(!1);return S.useLayoutEffect(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{j(n.current,bt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ut={};function Wt(e,t,n){!t&&!Ut[e]&&(Ut[e]=!0,j(!1,n))}function Gt(e,t){if(e===!1||e==null)throw Error(t)}function Kt(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function qt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jt(e){return e!=null&&typeof e.page==`string`}function Yt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Xt(e,t,n){return tn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await qt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Yt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Zt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Qt(e,t,{includeHydrateFallback:n}={}){return $t(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function $t(e){return[...new Set(e)]}function en(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Jt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(en(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var nn=S.createContext(void 0);nn.displayName=`FrameworkContext`;function rn(){let e=S.useContext(nn);return Gt(e,`You must render this element inside a <HydratedRouter> element`),e}function an(e,t){let n=S.useContext(nn),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:on(s,p),onBlur:on(c,m),onMouseEnter:on(l,p),onMouseLeave:on(u,m),onTouchStart:on(d,p)}]:[a,f,{}]:[!1,f,{}]}function on(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sn({page:e,...t}){let n=nt(),{nonce:r}=rn(),{router:i}=Lt(`PrefetchPageLinks`),a=S.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(ln,{page:e,matches:a,...t}):S.createElement(un,{page:e,matches:a,...t})):null}function cn(e){let{manifest:t,routeModules:n}=rn(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return Xt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function ln({page:e,matches:t,...n}){let r=yt(),{unstable_apiServerOrigin:i}=rn(),a=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Kt(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return S.createElement(S.Fragment,null,a.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function un({page:e,matches:t,...n}){let r=yt(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=rn(),{matches:s}=Rt(`PrefetchPageLinks`),{loaderData:c}=zt(`PrefetchPageLinks`),l=S.useMemo(()=>Zt(e,t,s,i,r,`data`),[e,t,s,i,r]),u=S.useMemo(()=>Zt(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=Kt(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=S.useMemo(()=>Qt(u,i),[u,i]),p=cn(u);return S.createElement(S.Fragment,null,d.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function dn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.memo(fn);function fn({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=S.useContext(Ze);A(a,`You must render this element inside a <DataRouterContext.Provider> element`);let o=S.useContext(nn)?.routeDiscoveryRuntime;return S.useEffect(()=>{n.initialized&&o?.markReady()},[n.initialized,o]),Ot(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function pn({to:e,replace:t,state:n,relative:r}){A(vt(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=S.useContext(ot);j(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=S.useContext(ct),{pathname:s}=yt(),c=xt(),l=Ae(e,ke(o),s,r===`path`);Ke(typeof e==`string`?e:F(e),a.createHref(l),Ue(a),`reject`);let u=JSON.stringify(l);return S.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function mn(e){return wt(e.context)}function hn(e){A(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function gn({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){A(!vt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ee(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=we(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return j(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(ot.Provider,{value:c},S.createElement(st.Provider,{children:t,value:h}))}function _n({children:e,location:t}){return Dt(vn(e),t)}S.Component;function vn(e,t=[]){let n=[];return S.Children.forEach(e,(e,r)=>{if(!S.isValidElement(e))return;let i=[...t,r];if(e.type===S.Fragment){n.push.apply(n,vn(e.props.children,i));return}A(e.type===hn,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;A(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=vn(a.children,i)),n.push(o)}),n}var yn=`application/x-www-form-urlencoded`;function bn(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function xn(e){return bn(e)&&e.tagName.toLowerCase()===`button`}function Sn(e){return bn(e)&&e.tagName.toLowerCase()===`form`}function Cn(e){return bn(e)&&e.tagName.toLowerCase()===`input`}function wn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tn(e,t){return e.button===0&&(!t||t===`_self`)&&!wn(e)}function En(e=``){return 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(e=>[n,e]):[[n,r]])},[]))}function Dn(e,t){let n=En(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var On=null;function kn(){if(On===null)try{new FormData(document.createElement(`form`),0),On=!1}catch{On=!0}return On}var An=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function jn(e){return e!=null&&!An.has(e)?(j(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yn}"`),null):e}function Mn(e,t){let n,r,i,a,o;if(Sn(e)){let o=e.getAttribute(`action`);r=o?we(o,t):null,n=e.getAttribute(`method`)||`get`,i=jn(e.getAttribute(`enctype`))||yn,a=new FormData(e)}else if(xn(e)||Cn(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?we(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=jn(e.getAttribute(`formenctype`))||jn(o.getAttribute(`enctype`))||yn,a=new FormData(o,e),!kn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(bn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=yn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Nn&&(window.__reactRouterVersion=`8`)}catch{}function Pn({basename:e,children:t,useTransitions:n,window:r}){let i=S.useRef(null);i.current??=k({window:r,v5Compat:!0});let a=i.current,[o,s]=S.useState({action:a.action,location:a.location}),c=S.useCallback(e=>{n===!1?s(e):S.startTransition(()=>s(e))},[n]);return S.useLayoutEffect(()=>a.listen(c),[a,c]),S.createElement(gn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Fn=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(ot),v=typeof l==`string`&&w.test(l),y=Ve(l,h);l=y.to;let b=_t(l,{relative:r}),x=yt(),C=null;if(o){let e=Ae(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Me([h,e.pathname])),C=g.createHref(e)}let[T,E,D]=an(n,p),O=Rn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(y.isExternal||i),j=S.createElement(`a`,{...p,...D,href:(A?C:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:dn(m,E),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return T&&!v?S.createElement(S.Fragment,null,j,S.createElement(sn,{page:b})):j});Fn.displayName=`Link`;var In=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Et(a,{relative:c.relative}),d=yt(),f=S.useContext(et),{navigator:p,basename:m}=S.useContext(ot),h=f!=null&&Wn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=we(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(Fn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});In.displayName=`NavLink`;var Ln=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(ot),g=Hn(),_=Un(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&w.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ln.displayName=`Form`;function Rn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=xt(),d=yt(),f=Et(e,{relative:o});return S.useCallback(p=>{if(Tn(p,t)){p.preventDefault();let t=n===void 0?F(d)===F(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function zn(e){j(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(En(e)),n=S.useRef(!1),r=yt(),i=S.useMemo(()=>Dn(r.search,n.current?null:t.current),[r.search]),a=xt();return[i,S.useCallback((e,t)=>{let r=En(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Bn=0,Vn=()=>`__${String(++Bn)}__`;function Hn(){let{router:e}=Lt(`useSubmit`),{basename:t}=S.useContext(ot),n=Bt(`useSubmit`),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Mn(e,t);a.navigate===!1?await r(a.fetcherKey||Vn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Un(e,{relative:t}={}){let{basename:n}=S.useContext(ot),r=S.useContext(ct);A(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Et(e||`.`,{relative:t})},o=yt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Me([n,a.pathname])),F(a)}function Wn(e,{relative:t}={}){let n=S.useContext(rt);A(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Lt(`useViewTransitionState`),i=Et(e,{relative:t});if(!n.isTransitioning)return!1;let a=we(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=we(n.nextLocation.pathname,r)||n.nextLocation.pathname;return be(i.pathname,o)!=null||be(i.pathname,a)!=null}function Gn(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Kn=`$$material`;function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(null,arguments)}function Jn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Yn(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Xn=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Yn(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Jn(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Zn=`-ms-`,Qn=`-moz-`,$n=`-webkit-`,er=`comm`,tr=`rule`,nr=`decl`,rr=`@import`,ir=`@keyframes`,ar=`@layer`,or=Math.abs,sr=String.fromCharCode,cr=Object.assign;function lr(e,t){return mr(e,0)^45?(((t<<2^mr(e,0))<<2^mr(e,1))<<2^mr(e,2))<<2^mr(e,3):0}function ur(e){return e.trim()}function dr(e,t){return(e=t.exec(e))?e[0]:e}function fr(e,t,n){return e.replace(t,n)}function pr(e,t){return e.indexOf(t)}function mr(e,t){return e.charCodeAt(t)|0}function hr(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function _r(e){return e.length}function vr(e,t){return t.push(e),e}function yr(e,t){return e.map(t).join(``)}var br=1,xr=1,Sr=0,Cr=0,wr=0,Tr=``;function Er(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:br,column:xr,length:o,return:``}}function Dr(e,t){return cr(Er(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Or(){return wr}function kr(){return wr=Cr>0?mr(Tr,--Cr):0,xr--,wr===10&&(xr=1,br--),wr}function Ar(){return wr=Cr<Sr?mr(Tr,Cr++):0,xr++,wr===10&&(xr=1,br++),wr}function jr(){return mr(Tr,Cr)}function Mr(){return Cr}function Nr(e,t){return hr(Tr,e,t)}function Pr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fr(e){return br=xr=1,Sr=gr(Tr=e),Cr=0,[]}function Ir(e){return Tr=``,e}function Lr(e){return ur(Nr(Cr-1,Br(e===91?e+2:e===40?e+1:e)))}function Rr(e){for(;(wr=jr())&&wr<33;)Ar();return Pr(e)>2||Pr(wr)>3?``:` `}function zr(e,t){for(;--t&&Ar()&&!(wr<48||wr>102||wr>57&&wr<65||wr>70&&wr<97););return Nr(e,Mr()+(t<6&&jr()==32&&Ar()==32))}function Br(e){for(;Ar();)switch(wr){case e:return Cr;case 34:case 39:e!==34&&e!==39&&Br(wr);break;case 40:e===41&&Br(e);break;case 92:Ar()}return Cr}function Vr(e,t){for(;Ar()&&e+wr!==57&&(e+wr!==84||jr()!==47););return`/*`+Nr(t,Cr-1)+`*`+sr(e===47?e:Ar())}function Hr(e){for(;!Pr(jr());)Ar();return Nr(e,Cr)}function Ur(e){return Ir(Wr(``,null,null,null,[``],e=Fr(e),0,[0],e))}function Wr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Ar()){case 40:if(m!=108&&mr(C,d-1)==58){pr(C+=fr(Lr(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Lr(v);break;case 9:case 10:case 13:case 32:C+=Rr(m);break;case 92:C+=zr(Mr()-1,7);continue;case 47:switch(jr()){case 42:case 47:vr(Kr(Vr(Ar(),Mr()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=gr(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=fr(C,/\f/g,``)),p>0&&gr(C)-d&&vr(p>32?qr(C+`;`,r,n,d-1):qr(fr(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(vr(S=Gr(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)Wr(C,t,S,S,b,a,d,s,x);else switch(f===99&&mr(C,3)===110?100:f){case 100:case 108:case 109:case 115:Wr(e,S,S,r&&vr(Gr(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Wr(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+gr(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&kr()==125)continue}switch(C+=sr(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(gr(C)-1)*_,_=1;break;case 64:jr()===45&&(C+=Lr(Ar())),f=jr(),u=d=gr(y=C+=Hr(Mr())),v++;break;case 45:m===45&&gr(C)==2&&(h=0)}}return a}function Gr(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=_r(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=hr(e,d+1,d=or(h=o[m])),y=e;_<p;++_)(y=ur(h>0?f[_]+` `+v:fr(v,/&\f/g,f[_])))&&(c[g++]=y);return Er(e,t,n,i===0?tr:s,c,l,u)}function Kr(e,t,n){return Er(e,t,n,er,sr(Or()),hr(e,2,-2),0)}function qr(e,t,n,r){return Er(e,t,n,nr,hr(e,0,r),hr(e,r+1,-1),r)}function Jr(e,t){for(var n=``,r=_r(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Yr(e,t,n,r){switch(e.type){case ar:if(e.children.length)break;case rr:case nr:return e.return=e.return||e.value;case er:return``;case ir:return e.return=e.value+`{`+Jr(e.children,r)+`}`;case tr:e.value=e.props.join(`,`)}return gr(n=Jr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Xr(e){var t=_r(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Zr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $r=function(e,t,n){for(var r=0,i=0;r=i,i=jr(),r===38&&i===12&&(t[n]=1),!Pr(i);)Ar();return Nr(e,Cr)},ei=function(e,t){var n=-1,r=44;do switch(Pr(r)){case 0:r===38&&jr()===12&&(t[n]=1),e[n]+=$r(Cr-1,t,n);break;case 2:e[n]+=Lr(r);break;case 4:if(r===44){e[++n]=jr()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=sr(r)}while(r=Ar());return e},ti=function(e,t){return Ir(ei(Fr(e),t))},ni=new WeakMap,ri=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||ni.get(n))&&!r){ni.set(e,!0);for(var i=[],a=ti(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ii=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function ai(e,t){switch(lr(e,t)){case 5103:return $n+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $n+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $n+e+Qn+e+Zn+e+e;case 6828:case 4268:return $n+e+Zn+e+e;case 6165:return $n+e+Zn+`flex-`+e+e;case 5187:return $n+e+fr(e,/(\w+).+(:[^]+)/,$n+`box-$1$2`+Zn+`flex-$1$2`)+e;case 5443:return $n+e+Zn+`flex-item-`+fr(e,/flex-|-self/,``)+e;case 4675:return $n+e+Zn+`flex-line-pack`+fr(e,/align-content|flex-|-self/,``)+e;case 5548:return $n+e+Zn+fr(e,`shrink`,`negative`)+e;case 5292:return $n+e+Zn+fr(e,`basis`,`preferred-size`)+e;case 6060:return $n+`box-`+fr(e,`-grow`,``)+$n+e+Zn+fr(e,`grow`,`positive`)+e;case 4554:return $n+fr(e,/([^-])(transform)/g,`$1`+$n+`$2`)+e;case 6187:return fr(fr(fr(e,/(zoom-|grab)/,$n+`$1`),/(image-set)/,$n+`$1`),e,``)+e;case 5495:case 3959:return fr(e,/(image-set\([^]*)/,$n+"$1$`$1");case 4968:return fr(fr(e,/(.+:)(flex-)?(.*)/,$n+`box-pack:$3`+Zn+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+$n+e+e;case 4095:case 3583:case 4068:case 2532:return fr(e,/(.+)-inline(.+)/,$n+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(mr(e,t+1)){case 109:if(mr(e,t+4)!==45)break;case 102:return fr(e,/(.+:)(.+)-([^]+)/,`$1`+$n+`$2-$3$1`+Qn+(mr(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~pr(e,`stretch`)?ai(fr(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(mr(e,t+1)!==115)break;case 6444:switch(mr(e,gr(e)-3-(~pr(e,`!important`)&&10))){case 107:return fr(e,`:`,`:`+$n)+e;case 101:return fr(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+$n+(mr(e,14)===45?`inline-`:``)+`box$3$1`+$n+`$2$3$1`+Zn+`$2box$3`)+e}break;case 5936:switch(mr(e,t+11)){case 114:return $n+e+Zn+fr(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return $n+e+Zn+fr(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return $n+e+Zn+fr(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return $n+e+Zn+e+e}return e}var oi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=ai(e.value,e.length);break;case ir:return Jr([Dr(e,{value:fr(e.value,`@`,`@`+$n)})],r);case tr:if(e.length)return yr(e.props,function(t){switch(dr(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Jr([Dr(e,{props:[fr(t,/:(read-\w+)/,`:`+Qn+`$1`)]})],r);case`::placeholder`:return Jr([Dr(e,{props:[fr(t,/:(plac\w+)/,`:`+$n+`input-$1`)]}),Dr(e,{props:[fr(t,/:(plac\w+)/,`:`+Qn+`$1`)]}),Dr(e,{props:[fr(t,/:(plac\w+)/,Zn+`input-$1`)]})],r)}return``})}}],si=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||oi,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[ri,ii],l,u=[Yr,Zr(function(e){l.insert(e)})],d=Xr(c.concat(r,u)),f=function(e){return Jr(Ur(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Xn({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},ci=n((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),li=n(((e,t)=>{t.exports=ci()})),ui=n(((e,t)=>{var n=li(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function di(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var fi=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},pi=function(e,t,n){fi(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function mi(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var hi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gi=/[A-Z]|^ms/g,_i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vi=function(e){return e.charCodeAt(1)===45},yi=function(e){return e!=null&&typeof e!=`boolean`},bi=Qr(function(e){return vi(e)?e:e.replace(gi,`-$&`).toLowerCase()}),xi=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(_i,function(e,t,n){return Ti={name:t,styles:n,next:Ti},t})}return hi[e]!==1&&!vi(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Si(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Ti={name:i.name,styles:i.styles,next:Ti},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Ti={name:o.name,styles:o.styles,next:Ti},o=o.next;return a.styles+`;`}return Ci(e,t,n);case`function`:if(e!==void 0){var s=Ti,c=n(e);return Ti=s,Si(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Ci(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Si(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:yi(s)&&(r+=bi(a)+`:`+xi(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)yi(o[c])&&(r+=bi(a)+`:`+xi(a,o[c])+`;`);else{var l=Si(e,t,o);switch(a){case`animation`:case`animationName`:r+=bi(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var wi=/label:\s*([^\s;{]+)\s*(;|$)/g,Ti;function Ei(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Ti=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Si(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Si(n,t,e[o]),r&&(i+=a[o]);wi.lastIndex=0;for(var s=``,c;(c=wi.exec(i))!==null;)s+=`-`+c[1];return{name:mi(i)+s,styles:i,next:Ti}}var Di=function(e){return e()},Oi=S.useInsertionEffect?S.useInsertionEffect:!1,ki=Oi||Di,Ai=Oi||S.useLayoutEffect,ji=S.createContext(typeof HTMLElement<`u`?si({key:`css`}):null),Mi=ji.Provider,Ni=function(e){return(0,S.forwardRef)(function(t,n){return e(t,(0,S.useContext)(ji),n)})},Pi=S.createContext({}),Fi={}.hasOwnProperty,Ii=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Li=function(e,t){var n={};for(var r in t)Fi.call(t,r)&&(n[r]=t[r]);return n[Ii]=e,n},Ri=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fi(t,n,r),ki(function(){return pi(t,n,r)}),null},zi=Ni(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ii],a=[r],o=``;typeof e.className==`string`?o=di(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Ei(a,void 0,S.useContext(Pi));o+=t.key+`-`+s.name;var c={};for(var l in e)Fi.call(e,l)&&l!==`css`&&l!==Ii&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),S.createElement(S.Fragment,null,S.createElement(Ri,{cache:t,serialized:s,isStringTag:typeof i==`string`}),S.createElement(i,c))});ui();var Bi=function(e,t){var n=arguments;if(t==null||!Fi.call(t,`css`))return S.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=zi,i[1]=Li(e,t);for(var a=2;a<r;a++)i[a]=n[a];return S.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Bi||={});var Vi=Ni(function(e,t){var n=e.styles,r=Ei([n],void 0,S.useContext(Pi)),i=S.useRef();return Ai(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Ai(function(){var e=i.current,n=e[0];e[1]?e[1]=!1:(r.next!==void 0&&pi(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1))},[t,r.name]),null});function Hi(){return Ei([...arguments])}function Ui(){var e=Hi.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var Wi=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gi=Qr(function(e){return Wi.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ki=function(e){return e!==`theme`},qi=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Gi:Ki},Ji=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Yi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fi(t,n,r),ki(function(){return pi(t,n,r)}),null},Xi=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Ji(t,n,r),c=s||qi(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Ni(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=S.useContext(Pi)}typeof e.className==`string`?a=di(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Ei(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?qi(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement(Yi,{cache:t,serialized:m,isStringTag:typeof r==`string`}),S.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,qn({},n,r,{shouldForwardProp:Ji(h,r,!0)})).apply(void 0,d)},h}},Zi=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),Qi=Xi.bind(null);Zi.forEach(function(e){Qi[e]=Qi(e)});var $i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ea=n(((e,t)=>{t.exports=$i()})),R=ea();function ta(e){return e==null||Object.keys(e).length===0}function na(e){let{styles:t,defaultTheme:n={}}=e;return(0,R.jsx)(Vi,{styles:typeof t==`function`?e=>t(ta(e)?n:e):t})}function ra(e,t){return Qi(e,t)}function ia(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var aa=[];function oa(e){return aa[0]=e,Ei(aa)}var sa=n((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.view_transition`),f=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||e===d||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===f||e.getModuleId!==void 0))}})),ca=n(((e,t)=>{t.exports=sa()}))();function la(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ua(e){if(S.isValidElement(e)||(0,ca.isValidElementType)(e)||!la(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=ua(e[n])}),t}function da(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return la(e)&&la(t)&&Object.keys(t).forEach(i=>{S.isValidElement(t[i])||(0,ca.isValidElementType)(t[i])?r[i]=t[i]:la(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&la(e[i])?r[i]=da(e[i],t[i],n):n.clone?r[i]=la(t[i])?ua(t[i]):t[i]:r[i]=t[i]}),r}var fa=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function pa(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=fa(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var ma=/min-width:\s*([0-9.]+)/;function ha(e,t){if(!e.containerQueries||!ga(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>+(e.match(ma)?.[1]||0)-(t.match(ma)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function ga(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function _a(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function va(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function ya(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var ba={borderRadius:4};function xa(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Sa(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Da(t)?t:Oa(e)?ka(t):n&&r?Ta(e,t):n===r?Aa(e,t):ka(t)}function Ca(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=ka(e[t]);return r}function wa(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=ka(e[n]));return t}function Ta(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=ka(t[r]);return e}function Ea(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function Da(e){return typeof e!=`object`||!e}function Oa(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function ka(e){return Ea(e)?Array.isArray(e)?Ca(e):wa(e):e}function Aa(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?Sa(e[n],t[n]):ka(t[n]));return e}var ja={},Ma={xs:0,sm:600,md:900,lg:1200,xl:1536},Na=pa({values:Ma}),Pa={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Ma[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Fa(e,t,n){let r={};return Ia(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Sa(r,a)})}function Ia(e,t,n,r){if(t??=ja,Array.isArray(n)){let i=t.breakpoints??Na;for(let t=0;t<n.length;t+=1)La(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??Na,a=i.values??Ma;for(let o in n)if(_a(i.keys,o)){let i=va(t.containerQueries?t:Pa,o);i&&La(e,i,n[o],o,r)}else if(o in a)La(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function La(e,t,n,r,i){e[t]??={},i(t,n,r)}function Ra(e=Na){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function za(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];xa(t[r])&&delete t[r]}return t}function Ba(e,...t){return za(e,[Ra(e),...t].reduce((e,t)=>da(e,t),{}))}function Va(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function Ha(e){let{values:t,breakpoints:n,base:r}=e,i=r||Va(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function Ua(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(_a(e.keys,n[t]))return!0}return!1}function Wa(e){if(typeof e!=`string`)throw Error(Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ga(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&Ka(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function Ka(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=qa(e.vars,i,r);if(t!=null)return t}return qa(e,i,r)}function qa(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:Wa(e)}`;return r?.[i]}return i}function Ja(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Ka(o,r)||{};return Fa(e,a,e=>{let r=Ga(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var Ya={internal_cache:{}},Xa={m:`margin`,p:`padding`},Za={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Qa={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},$a={};for(let e in Xa)$a[e]=[Xa[e]];for(let e in Xa)for(let t in Za){let n=Xa[e],r=Za[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];$a[e+t]=i}for(let e in Qa)$a[e]=$a[Qa[e]];var eo=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),to=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...eo,...to];function no(e,t,n,r){let i=Ka(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function ro(e){return no(e,`spacing`,8,`spacing`)}function io(e,t){return typeof t==`string`||t==null?t:e(t)}var ao=[``];function oo(e,t){let n=e.theme??Ya,r=n?.internal_cache?.unarySpacing??ro(n),i={};for(let n in e){if(!t.has(n))continue;let a=$a[n]??(ao[0]=n,ao),o=e[n];Ia(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=io(r,t)})}return i}function so(e){return oo(e,eo)}so.propTypes={},so.filterProps=eo;var co=so;function lo(e){return oo(e,to)}lo.propTypes={},lo.filterProps=to;var uo=lo;function fo(e=8,t=ro({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function po(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Sa(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function mo(e){return typeof e==`number`?`${e}px solid`:e}function ho(e,t){return Ja({prop:e,themeKey:`borders`,transform:t})}var go=ho(`border`,mo),_o=ho(`borderTop`,mo),vo=ho(`borderRight`,mo),yo=ho(`borderBottom`,mo),bo=ho(`borderLeft`,mo),xo=ho(`borderColor`),So=ho(`borderTopColor`),Co=ho(`borderRightColor`),wo=ho(`borderBottomColor`),To=ho(`borderLeftColor`),Eo=ho(`outline`,mo),Do=ho(`outlineColor`),Oo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=no(e.theme,`shape.borderRadius`,4,`borderRadius`);return Fa(e,e.borderRadius,e=>({borderRadius:io(t,e)}))}return null};Oo.propTypes={},Oo.filterProps=[`borderRadius`],po(go,_o,vo,yo,bo,xo,So,Co,wo,To,Oo,Eo,Do);var ko=e=>{if(e.gap!==void 0&&e.gap!==null){let t=no(e.theme,`spacing`,8,`gap`);return Fa(e,e.gap,e=>({gap:io(t,e)}))}return null};ko.propTypes={},ko.filterProps=[`gap`];var Ao=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=no(e.theme,`spacing`,8,`columnGap`);return Fa(e,e.columnGap,e=>({columnGap:io(t,e)}))}return null};Ao.propTypes={},Ao.filterProps=[`columnGap`];var jo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=no(e.theme,`spacing`,8,`rowGap`);return Fa(e,e.rowGap,e=>({rowGap:io(t,e)}))}return null};jo.propTypes={},jo.filterProps=[`rowGap`],po(ko,Ao,jo,Ja({prop:`gridColumn`}),Ja({prop:`gridRow`}),Ja({prop:`gridAutoFlow`}),Ja({prop:`gridAutoColumns`}),Ja({prop:`gridAutoRows`}),Ja({prop:`gridTemplateColumns`}),Ja({prop:`gridTemplateRows`}),Ja({prop:`gridTemplateAreas`}),Ja({prop:`gridArea`}));function Mo(e,t){return t===`grey`?t:e}po(Ja({prop:`color`,themeKey:`palette`,transform:Mo}),Ja({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Mo}),Ja({prop:`backgroundColor`,themeKey:`palette`,transform:Mo}));var No=Ma;function Po(e){return e<=1&&e!==0?`${e*100}%`:e}var Fo=Ja({prop:`width`,transform:Po}),Io=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Fa(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||No[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Po(t)}}):null;Io.filterProps=[`maxWidth`];var Lo=Ja({prop:`minWidth`,transform:Po}),Ro=Ja({prop:`height`,transform:Po}),zo=Ja({prop:`maxHeight`,transform:Po}),Bo=Ja({prop:`minHeight`,transform:Po});Ja({prop:`size`,cssProperty:`width`,transform:Po}),Ja({prop:`size`,cssProperty:`height`,transform:Po}),po(Fo,Io,Lo,Ro,zo,Bo,Ja({prop:`boxSizing`}));var Vo={border:{themeKey:`borders`,transform:mo},borderTop:{themeKey:`borders`,transform:mo},borderRight:{themeKey:`borders`,transform:mo},borderBottom:{themeKey:`borders`,transform:mo},borderLeft:{themeKey:`borders`,transform:mo},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:mo},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Oo},color:{themeKey:`palette`,transform:Mo},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Mo},backgroundColor:{themeKey:`palette`,transform:Mo},p:{style:uo},pt:{style:uo},pr:{style:uo},pb:{style:uo},pl:{style:uo},px:{style:uo},py:{style:uo},padding:{style:uo},paddingTop:{style:uo},paddingRight:{style:uo},paddingBottom:{style:uo},paddingLeft:{style:uo},paddingX:{style:uo},paddingY:{style:uo},paddingInline:{style:uo},paddingInlineStart:{style:uo},paddingInlineEnd:{style:uo},paddingBlock:{style:uo},paddingBlockStart:{style:uo},paddingBlockEnd:{style:uo},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ko},rowGap:{style:jo},columnGap:{style:Ao},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Po},maxWidth:{style:Io},minWidth:{transform:Po},height:{transform:Po},maxHeight:{transform:Po},minHeight:{transform:Po},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},Ho={};function Uo(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Ho,nested:i}=t,a=r.unstable_sxConfig??Vo,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??Na,l=Ra(c);for(let n in s){let i=Ko(s[n],r);i!=null&&(typeof i==`object`?a[n]?Go(l,n,i,r,a):Ua(c,i)?Ia(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o)):Go(l,n,i,r,a))}return!i&&r.modularCssLayers?{"@layer sx":ha(r,za(c,l))}:ha(r,za(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var Wo=Uo();function Go(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Sa(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=Ka(r,o);Ia(e,r,n,(n,r)=>{let i=Ga(u,l,r,t);c===!1?Sa(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Ko(e,t){return typeof e==`function`?e(t):e}function qo(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Jo(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=pa(n),c=fo(i),l=da({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...ba,...a}},o);return l=ya(l),l.applyStyles=qo,l=t.reduce((e,t)=>da(e,t),l),l.unstable_sxConfig={...Vo,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Wo({sx:e,theme:this})},l.internal_cache={},l}function Yo(e){return Object.keys(e).length===0}function Xo(e=null){let t=S.useContext(Pi);return!t||Yo(t)?e:t}var Zo=Jo();function Qo(e=Zo){return Xo(e)}function $o(e){let t=oa(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function es({styles:e,themeId:t,defaultTheme:n={}}){let r=Qo(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>$o(typeof e==`function`?e(i):e)):$o(a)),(0,R.jsx)(na,{styles:a})}var ts=e=>e,ns=(()=>{let e=ts;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ts}}})();function rs(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=rs(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=rs(e))&&(r&&(r+=` `),r+=t);return r}function is(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=ra(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(Wo);return S.forwardRef(function(e,o){let s=Qo(n),{className:c,component:l=`div`,...u}=e;return(0,R.jsx)(a,{as:l,ref:o,className:z(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var as={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function B(e,t,n=`Mui`){let r=as[t];return r?`${n}-${r}`:`${ns.generate(e)}-${t}`}function V(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=B(e,t,n)}),r}function ss(e){let{variants:t,...n}=e,r={variants:t,style:oa(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=oa(e.style))}),r}var cs=Jo();function ls(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function us(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ds(e){return e?(t,n)=>n[e]:null}function fs(e,t,n){e.theme=xa(e.theme)?n:e.theme[t]||e.theme}function ps(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>ps(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?us(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?us(oa(i),n):i}return ms(e,r.variants,[t],n)}return r?.isProcessed?n?us(oa(r.style),n):r.style:n?us(oa(r),n):r}function ms(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?us(oa(o.style(i)),r):o.style(i))):n.push(r?us(oa(o.style),r):o.style)}return n}function hs(e={}){let{themeId:t,defaultTheme:n=cs,rootShouldForwardProp:r=ls,slotShouldForwardProp:i=ls}=e;function a(e){fs(e,t,n)}return(e,t={})=>{ia(e,e=>e.filter(e=>e!==Wo));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=ds(_s(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=ls;o===`Root`||o===`root`?m=r:o?m=i:gs(e)&&(m=void 0);let h=ra(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return ps(t,e,t.theme.modularCssLayers?d:void 0)};if(la(e)){let t=ss(e);return function(e){return t.variants?ps(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?us(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=ps(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?ms(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Wo),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function gs(e){return typeof e==`string`&&e.charCodeAt(0)>96}function _s(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var vs=hs();function ys(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>ys((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=ys(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=z(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function bs(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ys(t.components[n].defaultProps,r)}function xs(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=Qo(r);return i&&(a=a[i]||a),bs({theme:a,name:n,props:t})}var Ss=typeof window<`u`?S.useLayoutEffect:S.useEffect;function Cs(e,t,n,r,i){let[a,o]=S.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ss(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var ws={...S}.useSyncExternalStore;function Ts(e,t,n,r,i){let a=S.useCallback(()=>t,[t]),o=S.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return ws(c,s,o)}function Es(e={}){let{themeId:t}=e;return function(e,n={}){let r=Xo();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=bs({name:`MuiUseMediaQuery`,props:n,theme:r}),l=S.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(ws===void 0?Cs:Ts)(u,a,l,s,c)}}Es();function Ds(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Os(e,t=0,n=1){return Ds(e,t,n)}function ks(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function As(e){if(e.type)return e;if(e.charAt(0)===`#`)return As(ks(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Gn(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Gn(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var js=e=>{let t=As(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Ms=(e,t)=>{try{return js(e)}catch{return e}};function Ns(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Ps(e){e=As(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Ns({type:s,values:c})}function Fs(e){e=As(e);let t=e.type===`hsl`||e.type===`hsla`?As(Ps(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Is(e,t){let n=Fs(e),r=Fs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function H(e,t){return e=As(e),t=Os(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Ns(e)}function Ls(e,t,n){try{return H(e,t)}catch{return e}}function Rs(e,t){if(e=As(e),t=Os(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ns(e)}function zs(e,t,n){try{return Rs(e,t)}catch{return e}}function Bs(e,t){if(e=As(e),t=Os(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ns(e)}function Vs(e,t,n){try{return Bs(e,t)}catch{return e}}function Hs(e,t=.15){return Fs(e)>.5?Rs(e,t):Bs(e,t)}function Us(e,t,n){try{return Hs(e,t)}catch{return e}}var Ws=S.createContext(null);function Gs(){return S.useContext(Ws)}var Ks=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function qs(e,t){return typeof t==`function`?t(e):{...e,...t}}function Js(e){let{children:t,theme:n}=e,r=Gs(),i=S.useMemo(()=>{let e=r===null?{...n}:qs(r,n);return e!=null&&(e[Ks]=r!==null),e},[n,r]);return(0,R.jsx)(Ws.Provider,{value:i,children:t})}var Ys=S.createContext(void 0);function Xs({value:e,...t}){return(0,R.jsx)(Ys.Provider,{value:e??!0,...t})}var Zs=()=>S.useContext(Ys)??!1,Qs=S.createContext(void 0);function $s({value:e,children:t}){return(0,R.jsx)(Qs.Provider,{value:e,children:t})}function ec(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?ys(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ys(i,r,t.components.mergeClassNameAndStyle):r}function tc({props:e,name:t}){return ec({props:e,name:t,theme:{components:S.useContext(Qs)}})}var nc=0;function rc(e){let[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t??(nc+=1,n(`mui-${nc}`))},[t]),r}var ic={...S}.useId;function ac(e){if(ic!==void 0){let t=ic();return e??t}return rc(e)}function oc(e){let t=Xo(),n=ac()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Ss(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,R.jsx)(es,{styles:i}):null}var sc={};function cc(e,t,n,r=!1){return S.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function lc(e){let{children:t,theme:n,themeId:r}=e,i=Xo(sc),a=Gs()||sc,o=cc(r,i,n),s=cc(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=oc(o);return(0,R.jsx)(Js,{theme:s,children:(0,R.jsx)(Pi.Provider,{value:o,children:(0,R.jsx)(Xs,{value:c,children:(0,R.jsxs)($s,{value:r?o[r].components:o.components,children:[l,t]})})})})}var uc={theme:void 0};function dc(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(uc.theme=r.theme,i=ss(e(uc)),t=i,n=r.theme),i}}var fc=`mode`,pc=`color-scheme`,mc=`data-color-scheme`;({...S}).useSyncExternalStore;function hc(e){return JSON.stringify(e).replace(/</g,`\\u003c`).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}function gc(e,t){let n=e.split(`%s`),r=[];for(let e=0;e<n.length;e+=1)e>0&&r.push(t),n[e]&&r.push(hc(n[e]));return r.join(` + `)||`""`}function _c(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=fc,colorSchemeStorageKey:a=pc,attribute:o=mc,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove(${gc(e,`light`)}, ${gc(e,`dark`)});
11
- ${s}.classList.add(${gc(e,`colorScheme`)});`}let d=u.match(/\[([^[\]]+)\]/);if(d){let e=d[1].indexOf(`=`),t=e===-1?d[1]:d[1].slice(0,e),n=e===-1?void 0:d[1].slice(e+1);n||(l+=`${s}.removeAttribute(${gc(t,`light`)});
12
- ${s}.removeAttribute(${gc(t,`dark`)});`);let r=n?gc(n.replace(/^(['"])(.*)\1$/,`$2`),`colorScheme`):`""`;l+=`
13
- ${s}.setAttribute(${gc(t,`colorScheme`)}, ${r});`}else u.startsWith(`.`)||(l+=`${s}.setAttribute(${hc(u)}, colorScheme);`);return(0,R.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
14
- try {
15
- let colorScheme = '';
16
- const mode = localStorage.getItem(${hc(i)}) || ${hc(t)};
17
- const dark = localStorage.getItem(${hc(`${a}-dark`)}) || ${hc(r)};
18
- const light = localStorage.getItem(${hc(`${a}-light`)}) || ${hc(n)};
19
- if (mode === 'system') {
20
- // handle system mode
21
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
22
- if (mql.matches) {
23
- colorScheme = dark
24
- } else {
25
- colorScheme = light
26
- }
27
- }
28
- if (mode === 'light') {
29
- colorScheme = light;
30
- }
31
- if (mode === 'dark') {
32
- colorScheme = dark;
33
- }
34
- if (colorScheme) {
35
- ${l}
36
- }
37
- } catch(e){}})();`}},`mui-color-scheme-init`)}function vc(){}var yc=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return vc;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function bc(){}function xc(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Sc(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Cc(e){return Sc(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function wc(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=fc,colorSchemeStorageKey:o=pc,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=yc,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=S.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=S.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=S.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=S.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:xc(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=S.useState(l||!d);S.useEffect(()=>{v(!0)},[]);let y=Cc(h),b=S.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:xc(r)}})},[f,t]),x=S.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Sc(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=S.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=S.useRef(C);return w.current=C,S.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),S.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||bc,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||bc,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||bc;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var Tc=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Ec(e){let{themeId:t,theme:n={},modeStorageKey:r=fc,colorSchemeStorageKey:i=pc,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=S.createContext(void 0),u=()=>S.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=S.useRef(!1),D=Gs(),O=S.useContext(l),k=!!O&&!b,A=S.useMemo(()=>u||(typeof n==`function`?n():n),[u]),j=A[t],M=j||A,{colorSchemes:N=d,components:P=f,cssVarPrefix:F}=M,ee=Object.keys(N).filter(e=>!!N[e]).join(`,`),te=S.useMemo(()=>ee.split(`,`),[ee]),ne=typeof o==`string`?o:o.light,re=typeof o==`string`?o:o.dark,{mode:ie,setMode:ae,systemMode:oe,lightColorScheme:se,darkColorScheme:ce,colorScheme:le,setColorScheme:ue}=wc({supportedColorSchemes:te,defaultLightColorScheme:ne,defaultDarkColorScheme:re,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:N[ne]&&N[re]?C:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),de=ie,fe=le;k&&(de=O.mode,fe=O.colorScheme);let pe=fe||M.defaultColorScheme;M.vars&&!w&&(pe=M.defaultColorScheme);let me=S.useMemo(()=>{let e=M.generateThemeVars?.()||M.vars,t={...M,components:P,colorSchemes:N,cssVarPrefix:F,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),pe){let e=N[pe];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[M,pe,P,N,F]),I=M.colorSchemeSelector;Ss(()=>{if(fe&&y&&I&&I!==`media`){let e=I,t=I;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...te.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,fe));else{let e=t.replace(`%s`,fe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||te.forEach(e=>{y.removeAttribute(t.replace(fe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,fe)}}},[fe,I,y,te]),S.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Tc)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[fe,h,v]),S.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let he=S.useMemo(()=>({allColorSchemes:te,colorScheme:fe,darkColorScheme:ce,lightColorScheme:se,mode:de,setColorScheme:ue,setMode:ae,systemMode:oe}),[te,fe,ce,se,de,ue,ae,oe,me.colorSchemeSelector]),ge=!0;(x||M.cssVariables===!1||k&&D?.cssVarPrefix===F)&&(ge=!1);let _e=(0,R.jsxs)(S.Fragment,{children:[(0,R.jsx)(lc,{themeId:j?t:void 0,theme:me,children:c}),ge&&(0,R.jsx)(na,{styles:me.generateStyleSheets?.()||[]})]});return k?_e:(0,R.jsx)(l.Provider,{value:he,children:_e})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>_c({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Dc(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Oc=new Set([`__proto__`,`constructor`,`prototype`]),kc=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(Oc.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},Ac=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},jc=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Mc(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Ac(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=jc(e,t);Object.assign(i,{[r]:c}),kc(a,e,`var(${r})`,s),kc(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Nc(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Mc(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Mc(n,t);p=da(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Mc(h,t);p=da(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=da(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Pc(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function U(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}var Fc=Jo(),Ic=vs(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${Wa(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Lc=e=>xs({props:e,name:`MuiContainer`,defaultTheme:Fc}),Rc=(e,t)=>{let n=e=>B(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=e;return U({root:[`root`,o&&`maxWidth${Wa(String(o))}`,i&&`fixed`,a&&`disableGutters`]},n,r)};function zc(e={}){let{createStyledComponent:t=Ic,useThemeProps:n=Lc,componentName:r=`MuiContainer`}=e,i=t(({theme:e,ownerState:t})=>({width:`100%`,marginLeft:`auto`,boxSizing:`border-box`,marginRight:`auto`,...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=n,i=e.breakpoints.values[r];return i!==0&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({...t.maxWidth===`xs`&&{[e.breakpoints.up(`xs`)]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&t.maxWidth!==`xs`&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return S.forwardRef(function(e,t){let a=n(e),{className:o,component:s=`div`,disableGutters:c=!1,fixed:l=!1,maxWidth:u=`lg`,classes:d,...f}=a,p={...a,component:s,disableGutters:c,fixed:l,maxWidth:u},m=Rc(p,r);return(0,R.jsx)(i,{as:s,ownerState:p,className:z(m.root,o),ref:t,...f})})}function Bc(e,t){return S.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Vc=Jo(),Hc=vs(`div`,{name:`MuiStack`,slot:`Root`});function Uc(e){return xs({props:e,name:`MuiStack`,defaultTheme:Vc})}function Wc(e,t){let n=S.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(S.cloneElement(t,{key:`separator-${i}`})),e),[])}var Gc=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],Kc=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Fa({theme:t},Ha({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=ro(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=Ha({values:e.direction,base:i}),o=Ha({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){let r=t>0?a[n[t-1]]:`column`;a[e]=r}}),n=da(n,Fa({theme:t},o,(t,n)=>e.useFlexGap?{gap:io(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Gc(n?a[n]:e.direction)}`]:io(r,t)}}))}return n=Ba(t.breakpoints,n),n};function qc(e={}){let{createStyledComponent:t=Hc,useThemeProps:n=Uc,componentName:r=`MuiStack`}=e,i=()=>U({root:[`root`]},e=>B(r,e),{}),a=t(Kc);return S.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,R.jsx)(a,{as:r,ownerState:p,ref:t,className:z(m.root,u),...f,children:c?Wc(l,c):l})})}var Jc={black:`#000`,white:`#fff`},Yc={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},Xc={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Zc={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Qc={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},$c={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},el={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},tl={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function nl(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:Jc.white,default:Jc.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var rl=nl();function il(){return{text:{primary:Jc.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:Jc.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var al=il();function ol(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Bs(e.main,i):t===`dark`&&(e.dark=Rs(e.main,a)))}function sl(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function cl(e=`light`){return e===`dark`?{main:$c[200],light:$c[50],dark:$c[400]}:{main:$c[700],light:$c[400],dark:$c[800]}}function ll(e=`light`){return e===`dark`?{main:Xc[200],light:Xc[50],dark:Xc[400]}:{main:Xc[500],light:Xc[300],dark:Xc[700]}}function ul(e=`light`){return e===`dark`?{main:Zc[500],light:Zc[300],dark:Zc[700]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function dl(e=`light`){return e===`dark`?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function fl(e=`light`){return e===`dark`?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function pl(e=`light`){return e===`dark`?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:`#ed6c02`,light:Qc[500],dark:Qc[900]}}function ml(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function hl(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||cl(t),s=e.secondary||ll(t),c=e.error||ul(t),l=e.info||dl(t),u=e.success||fl(t),d=e.warning||pl(t);function f(e){return i?ml(e):Is(e,al.text.primary)>=n?al.text.primary:rl.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Gn(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Gn(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(sl(i,e,`light`,a,r),sl(i,e,`dark`,o,r)):(ol(e,`light`,a,r),ol(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=nl():t===`dark`&&(m=il()),da({common:{...Jc},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Yc,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var gl=`--_focusVisible-offset`,_l=`--_focusVisible-behavior`,vl=`--_focusVisible-shadow`,yl=`var(${gl}, 1)`,bl=`var(${_l}, )`,xl={[gl]:1,[_l]:`initial`};function Sl(e){return{[vl]:e}}function Cl(e){return{[gl]:-e,[_l]:`inset`}}function wl(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?da(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Tl(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(gl)}function El(e,t){return Dl({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${vl}, 0 0)`,...e===!0?null:e})}function Dl(e){let t=e.outlineOffset??0;typeof t==`string`&&t.includes(gl)||(e.outlineOffset=`calc(${yl} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow!=`string`||n.has(e.boxShadow.trim().toLowerCase())||/\binset\b/.test(e.boxShadow)||e.boxShadow.includes(_l)||(e.boxShadow=`${bl} ${e.boxShadow}`),e}function Ol(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function kl(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Al(e){return Math.round(e*1e5)/1e5}var jl={textTransform:`uppercase`},Ml=`"Roboto", "Helvetica", "Arial", sans-serif`;function Nl(e,t){let{fontFamily:n=Ml,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Ml?{letterSpacing:`${Al(i/t)}em`}:{},...a,...l});return da({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,jl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,jl),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Pl=.2,Fl=.14,Il=.12;function Ll(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Pl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Il})`].join(`,`)}var Rl=[`none`,Ll(0,2,1,-1,0,1,1,0,0,1,3,0),Ll(0,3,1,-2,0,2,2,0,0,1,5,0),Ll(0,3,3,-2,0,3,4,0,0,1,8,0),Ll(0,2,4,-1,0,4,5,0,0,1,10,0),Ll(0,3,5,-1,0,5,8,0,0,1,14,0),Ll(0,3,5,-1,0,6,10,0,0,1,18,0),Ll(0,4,5,-2,0,7,10,1,0,2,16,1),Ll(0,5,5,-3,0,8,10,1,0,3,14,2),Ll(0,5,6,-3,0,9,12,1,0,3,16,2),Ll(0,6,6,-3,0,10,14,1,0,4,18,3),Ll(0,6,7,-4,0,11,15,1,0,4,20,3),Ll(0,7,8,-4,0,12,17,2,0,5,22,4),Ll(0,7,8,-4,0,13,19,2,0,5,24,4),Ll(0,7,9,-4,0,14,21,2,0,5,26,4),Ll(0,8,9,-5,0,15,22,2,0,6,28,5),Ll(0,8,10,-5,0,16,24,2,0,6,30,5),Ll(0,8,11,-5,0,17,26,2,0,6,32,5),Ll(0,9,11,-5,0,18,28,2,0,7,34,6),Ll(0,9,12,-6,0,19,29,2,0,7,36,6),Ll(0,10,13,-6,0,20,31,3,0,8,38,7),Ll(0,10,13,-6,0,21,33,3,0,8,40,7),Ll(0,10,14,-6,0,22,35,3,0,8,42,7),Ll(0,11,14,-7,0,23,36,3,0,9,44,8),Ll(0,11,15,-7,0,24,38,3,0,9,46,8)],zl=[`all`],Bl={},Vl={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},Hl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ul(e){return`${Math.round(e)}ms`}function Wl(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Gl(e){let t={...e};delete t.reducedMotion;let n={...Vl,...t.easing},r={...Hl,...t.duration};return{getAutoHeightDuration:Wl,create:t.create??((e=zl,t=Bl)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Ul(i)} ${a} ${typeof o==`string`?o:Ul(o)}`).join(`,`)}),...t,easing:n,duration:r}}var Kl={};function ql(e=Kl){return{reducedMotion:`never`,...e}}var Jl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yl(e){return la(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Xl(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Yl(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:la(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
38
-
39
- const theme = ${JSON.stringify(t,null,2)};
40
-
41
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
42
- theme.motion = { reducedMotion: 'never', ...theme.motion };
43
- theme.transitions = createTransitions(theme.transitions || {});
44
-
45
- export default theme;`}function Zl(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Ql=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function $l(e){return e.startsWith(`hsl`)?Ps(e):e}function eu(e,t,n=``){let r=n.trim();if(r&&!r.startsWith(`color(`))try{let e=js($l(r));if(e.split(` `).length===3&&!e.includes(`NaN`))return`var(--${t}Channel, ${e})`}catch{}return`var(--${t}Channel)`}function tu(e){Object.assign(e,{alpha(t,n){let r=this||e;if(r.colorSpace)return`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`;if(r.vars){let e=typeof n==`string`?`calc(${n})`:n;return t.startsWith(`color(`)?t.replace(/\s*(?:\/[^)]*)?\)$/,` / ${e})`):`rgba(${t.includes(`var(`)?t.replace(/var\(--([^,\s)]+)(?:,((?:[^()]|\([^()]*\))+)\)|(?:,[^)]+)?\)+)/g,eu):Ms($l(t))} / ${e})`}return H(t,Ql(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Zl(n)})`:Bs(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Zl(n)})`:Rs(t,n)}})}function nu(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Gn(22));let f=hl({...a,colorSpace:u}),p=Jo(e),m=da(p,{mixins:kl(p.breakpoints,r),palette:f,shadows:Rl.slice(),typography:Nl(f,c),motion:ql(o),transitions:Gl(s),zIndex:{...Jl}});return m=da(m,d),m=t.reduce((e,t)=>da(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=El(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...Vo,...d?.unstable_sxConfig},m.unstable_sx=function(e){return Wo({sx:e,theme:this})},m.toRuntimeSource=Xl,tu(m),m}function ru(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var iu=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ru(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function au(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function ou(e){return e===`dark`?iu:[]}function su(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=hl({...t,colorSpace:i});return{palette:o,opacity:{...au(o.mode),...n},overlays:r||ou(o.mode),...a}}function cu(e){return e[0]===`motion`||e[0]===`focusVisible`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var lu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],uu=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return lu(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function du(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function W(e,t,n){!e[t]&&n&&(e[t]=n)}function fu(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Ps(e)}function pu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ms(fu(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
46
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mu(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var hu=e=>{try{return e()}catch{}},gu=(e=`mui`)=>Dc(e);function _u(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=su({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=nu({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...au(a),...n?.opacity},overlays:n?.overlays||ou(a)},s}function vu(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=cu,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=gu(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Gn(21,f));let b;o&&(b=`oklch`);let x=_u(b,v,y,u,f);h&&!v.light&&_u(b,v,h,void 0,`light`),g&&!v.dark&&_u(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Ol(x.typography),...x.font},spacing:mu(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(W(t.common,`background`,`#fff`),W(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(W(t.common,`background`,`#000`),W(t.common,`onBackground`,`#fff`)),o||pu(t.text,`primary`);function r(e,t,n){if(b){let r;return e===Ls&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===zs&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Vs&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(du(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`Input`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){W(t.Alert,`errorColor`,r(zs,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(zs,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(zs,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(zs,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-main`)),W(t.Alert,`infoFilledBg`,n(`palette-info-main`)),W(t.Alert,`successFilledBg`,n(`palette-success-main`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),W(t.Alert,`errorFilledColor`,hu(()=>t.getContrastText(t.error.main))),W(t.Alert,`infoFilledColor`,hu(()=>t.getContrastText(t.info.main))),W(t.Alert,`successFilledColor`,hu(()=>t.getContrastText(t.success.main))),W(t.Alert,`warningFilledColor`,hu(()=>t.getContrastText(t.warning.main))),W(t.Alert,`errorStandardBg`,r(Vs,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(Vs,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(Vs,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(Vs,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-100`)),W(t.Avatar,`defaultBg`,n(`palette-grey-400`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),W(t.Chip,`defaultBorder`,n(`palette-grey-400`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),W(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),W(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),W(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),W(t.Input,`autofillWebkitBoxShadow`,`none`),W(t.LinearProgress,`primaryBg`,r(Vs,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.LinearProgress,`secondaryBg`,r(Vs,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.LinearProgress,`errorBg`,r(Vs,o?p(`palette-error-main`):t.error.main,.62)),W(t.LinearProgress,`infoBg`,r(Vs,o?p(`palette-info-main`):t.info.main,.62)),W(t.LinearProgress,`successBg`,r(Vs,o?p(`palette-success-main`):t.success.main,.62)),W(t.LinearProgress,`warningBg`,r(Vs,o?p(`palette-warning-light`):t.warning.main,.62)),W(t.Skeleton,`bg`,b?r(Ls,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),W(t.Slider,`primaryTrack`,r(Vs,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Slider,`secondaryTrack`,r(Vs,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Slider,`errorTrack`,r(Vs,o?p(`palette-error-main`):t.error.main,.62)),W(t.Slider,`infoTrack`,r(Vs,o?p(`palette-info-main`):t.info.main,.62)),W(t.Slider,`successTrack`,r(Vs,o?p(`palette-success-main`):t.success.main,.62)),W(t.Slider,`warningTrack`,r(Vs,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(zs,o?p(`palette-background-default`):t.background.default,.6825):Us(t.background.default,.8);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,hu(()=>b?al.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,Us(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-400`)),W(t.StepContent,`border`,n(`palette-grey-400`)),W(t.Switch,`defaultColor`,n(`palette-common-white`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),W(t.Switch,`primaryDisabledColor`,r(Vs,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Switch,`secondaryDisabledColor`,r(Vs,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Switch,`errorDisabledColor`,r(Vs,o?p(`palette-error-main`):t.error.main,.62)),W(t.Switch,`infoDisabledColor`,r(Vs,o?p(`palette-info-main`):t.info.main,.62)),W(t.Switch,`successDisabledColor`,r(Vs,o?p(`palette-success-main`):t.success.main,.62)),W(t.Switch,`warningDisabledColor`,r(Vs,o?p(`palette-warning-main`):t.warning.main,.62)),W(t.TableCell,`border`,r(Vs,Ls(o?p(`palette-divider`):t.divider,1),.88)),W(t.Tooltip,`bg`,r(Ls,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){W(t.Alert,`errorColor`,r(Vs,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(Vs,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(Vs,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(Vs,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),W(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),W(t.Alert,`successFilledBg`,n(`palette-success-dark`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),W(t.Alert,`errorFilledColor`,hu(()=>t.getContrastText(t.error.dark))),W(t.Alert,`infoFilledColor`,hu(()=>t.getContrastText(t.info.dark))),W(t.Alert,`successFilledColor`,hu(()=>t.getContrastText(t.success.dark))),W(t.Alert,`warningFilledColor`,hu(()=>t.getContrastText(t.warning.dark))),W(t.Alert,`errorStandardBg`,r(zs,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(zs,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(zs,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(zs,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-900`)),W(t.AppBar,`darkBg`,n(`palette-background-paper`)),W(t.AppBar,`darkColor`,n(`palette-text-primary`)),W(t.Avatar,`defaultBg`,n(`palette-grey-600`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),W(t.Chip,`defaultBorder`,n(`palette-grey-700`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),W(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),W(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),W(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),W(t.Input,`autofillWebkitBoxShadow`,`0 0 0 100px #266798 inset`),W(t.LinearProgress,`primaryBg`,r(zs,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.LinearProgress,`secondaryBg`,r(zs,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.LinearProgress,`errorBg`,r(zs,o?p(`palette-error-main`):t.error.main,.5)),W(t.LinearProgress,`infoBg`,r(zs,o?p(`palette-info-main`):t.info.main,.5)),W(t.LinearProgress,`successBg`,r(zs,o?p(`palette-success-main`):t.success.main,.5)),W(t.LinearProgress,`warningBg`,r(zs,o?p(`palette-warning-main`):t.warning.main,.5)),W(t.Skeleton,`bg`,b?r(Ls,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),W(t.Slider,`primaryTrack`,r(zs,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.Slider,`secondaryTrack`,r(zs,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.Slider,`errorTrack`,r(zs,o?p(`palette-error-main`):t.error.main,.5)),W(t.Slider,`infoTrack`,r(zs,o?p(`palette-info-main`):t.info.main,.5)),W(t.Slider,`successTrack`,r(zs,o?p(`palette-success-main`):t.success.main,.5)),W(t.Slider,`warningTrack`,r(zs,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Vs,o?p(`palette-background-default`):t.background.default,.985):Us(t.background.default,.98);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,hu(()=>b?rl.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,Us(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-600`)),W(t.StepContent,`border`,n(`palette-grey-600`)),W(t.Switch,`defaultColor`,n(`palette-grey-300`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),W(t.Switch,`primaryDisabledColor`,r(zs,o?p(`palette-primary-main`):t.primary.main,.55)),W(t.Switch,`secondaryDisabledColor`,r(zs,o?p(`palette-secondary-main`):t.secondary.main,.55)),W(t.Switch,`errorDisabledColor`,r(zs,o?p(`palette-error-main`):t.error.main,.55)),W(t.Switch,`infoDisabledColor`,r(zs,o?p(`palette-info-main`):t.info.main,.55)),W(t.Switch,`successDisabledColor`,r(zs,o?p(`palette-success-main`):t.success.main,.55)),W(t.Switch,`warningDisabledColor`,r(zs,o?p(`palette-warning-light`):t.warning.main,.55)),W(t.TableCell,`border`,r(zs,Ls(o?p(`palette-divider`):t.divider,1),.68)),W(t.Tooltip,`bg`,r(Ls,o?p(`palette-grey-700`):t.grey[700],.92))}o||(pu(t.background,`default`),pu(t.background,`paper`),pu(t.common,`background`),pu(t.common,`onBackground`),pu(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&W(t[e],`mainChannel`,Ms(fu(n.main))),n.light&&W(t[e],`lightChannel`,Ms(fu(n.light))),n.dark&&W(t[e],`darkChannel`,Ms(fu(n.dark))),n.contrastText&&W(t[e],`contrastTextChannel`,Ms(fu(n.contrastText))),e===`text`&&(pu(t[e],`primary`),pu(t[e],`secondary`)),e===`action`&&(n.active&&pu(t[e],`active`),n.selected&&pu(t[e],`selected`)))})}),S=t.reduce((e,t)=>da(e,t),S);let C=wl(e.focusVisible,t);C!=null&&C!==!1&&(S.focusVisible=El(C,p(`palette-primary-main`)));let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:uu(S),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=Nc(S,w);return S.vars=T,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=D,S.generateSpacing=function(){return fo(u.spacing,ro(this))},S.getColorSchemeSelector=Pc(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Vo,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Wo({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=Xl,S}function yu(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:hl({...n===!0?{}:n.palette,mode:t})})}function bu(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return nu(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=nu({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},yu(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},yu(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=wl(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Tl(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=El(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),vu({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var xu=V(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`content`,`expandIconWrapper`]),Su=V(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.status.option.groupLabel.groupUl`.split(`.`));function Cu(e){return B(`MuiCheckbox`,e)}var wu=V(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]);function Tu(e){return typeof e==`string`}function Eu(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Du(...e){let t=S.useRef(void 0),n=S.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return S.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function Ou(e){let t=S.useRef(e);return Ss(()=>{t.current=e}),S.useRef((...e)=>(0,t.current)(...e)).current}function ku(e){return e&&e.ownerDocument||document}function Au(e){return ku(e).defaultView||window}function ju(e){return parseInt(e,10)||0}var Mu={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function Nu(e){for(let t in e)return!1;return!0}function Pu(e){return Nu(e)||e.outerHeightStyle===0&&!e.overflowing}var Fu=S.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=S.useRef(o!=null),l=S.useRef(null),u=Du(t,l),d=S.useRef(null),f=S.useRef(null),p=S.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Au(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
47
- `&&(n.value+=` `);let o=a.boxSizing,s=ju(a.paddingBottom)+ju(a.paddingTop),c=ju(a.borderBottomWidth)+ju(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=Ou(()=>{let e=l.current,t=p();if(!e||!t||Pu(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=S.useCallback(()=>{let e=l.current,t=p();if(!e||!t||Pu(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=S.useRef(-1);return Ss(()=>{let e=Eu(h),t=l?.current;if(!t)return;let n=Au(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),Ss(()=>{h()}),(0,R.jsxs)(S.Fragment,{children:[(0,R.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
48
- `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,R.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Mu.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),Iu=S.createContext(void 0);function Lu(){return S.useContext(Iu)}function Ru({props:e,states:t}){let n=S.useContext(Iu),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var zu=bu();function Bu(){let e=Qo(zu);return e.$$material||e}function Vu(e){return(0,R.jsx)(es,{...e,defaultTheme:zu,themeId:Kn})}function Hu(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Uu=e=>Hu(e)&&e!==`classes`,G=hs({themeId:Kn,defaultTheme:zu,rootShouldForwardProp:Uu});function Wu(e){return function(t){return(0,R.jsx)(Vu,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var K=dc;function q(e){return tc(e)}var J=Wa,Gu=Du,Ku=Ss,qu=ku;function Ju(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Yu=Ju;function Xu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zu(e,t=!1){return e&&(Xu(e.value)&&e.value!==``||t&&Xu(e.defaultValue)&&e.defaultValue!==``)}function Qu(e){return e.startAdornment}function $u(e){return B(`MuiInputBase`,e)}var ed=V(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),td={transition:`none`};function nd(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var rd=e=>e.scrollTop,id={offsetX:0,offsetY:0},ad={},od=[`all`],sd={},cd={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function ld(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function ud(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(ld)}:null}function dd(e,t){return t===null?0:e[t]||0}function fd(e){if(!e||e===`none`)return id;let t=ud(e);if(!t)return id;let{type:n,values:r}=t,i=cd[n];return i?{offsetX:dd(r,i[0]),offsetY:dd(r,i[1])}:id}function pd(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function md(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function hd(e,t){let{timeout:n,easing:r,style:i=ad}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function gd(e,t){let n=t??td;return nd(e.motion?.reducedMotion,n)}function _d(e,t=od,n=sd){let r=e.transitions?.create?.(t,n),i=gd(e);if(r===void 0)return i??ad;let a={transition:r};return i?{...a,...i}:a}var vd,yd=`mui-auto-fill`,bd=`mui-auto-fill-cancel`,xd=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${J(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sd=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},Cd=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return U({root:[`root`,`color${J(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${J(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},$u,t)},wd=G(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:xd})(K(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${ed.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Td=G(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Sd})(K(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},..._d(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${ed.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ed.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:bd,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:yd}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),Ed=Wu({[`@keyframes ${yd}`]:{from:{animationName:yd}},[`@keyframes ${bd}`]:{from:{animationName:bd}}}),Dd=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_,inputRef:v,margin:y,maxRows:b,minRows:x,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:k,onKeyUp:A,placeholder:j,readOnly:M,renderSuffix:N,rows:P,size:F,slotProps:ee={},slots:te={},startAdornment:ne,type:re=`text`,value:ie,...ae}=n,oe={..._,...ee.input},se=oe.value==null?ie:oe.value,{current:ce}=S.useRef(se!=null),le=S.useRef(),ue=S.useCallback(e=>{},[]),de=Gu(le,v,oe.ref,ue),[fe,pe]=S.useState(!1),[me,I]=Ru({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});me.focused=I?I.focused:fe,S.useEffect(()=>{!I&&u&&fe&&(pe(!1),T&&T())},[I,u,fe,T]);let he=I&&I.onFilled,ge=I&&I.onEmpty,_e=S.useCallback(e=>{Zu(e)?he&&he():ge&&ge()},[he,ge]);Ku(()=>{ce&&_e({value:se})},[se,_e,ce]),Ku(()=>{if(!o)return;let e=le.current;if(!e)return;let t=qu(e),n=Yu(t),r=n==null||n===t.body||n===t.documentElement;e===n?I&&I.onFocus?I.onFocus():pe(!0):r&&e.focus()},[o]);let ve=e=>{O&&O(e),oe.onFocus&&oe.onFocus(e),I&&I.onFocus?I.onFocus(e):pe(!0)},ye=e=>{T&&T(e),oe.onBlur&&oe.onBlur(e),I&&I.onBlur?I.onBlur(e):pe(!1)},be=(e,...t)=>{if(!ce){let t=e.target||le.current;if(t==null)throw Error(Gn(1));_e({value:t.value})}oe.onChange&&oe.onChange(e,...t),E&&E(e,...t)};S.useEffect(()=>{_e(le.current)},[]);let xe=e=>{le.current&&e.currentTarget===e.target&&le.current.focus(),D&&D(e)},Se=g,Ce=oe;C&&Se===`input`&&(Ce=P?{type:void 0,minRows:P,maxRows:P,...Ce}:{type:void 0,maxRows:b,minRows:x,...Ce},Se=Fu);let we=e=>{_e(e.animationName===bd?le.current:{value:`x`})};S.useEffect(()=>{I&&I.setAdornedStart(!!ne)},[I,ne]);let Te={...n,color:me.color||`primary`,disabled:me.disabled,endAdornment:f,error:me.error,focused:me.focused,formControl:I,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:C,size:me.size,startAdornment:ne,type:re},Ee=Cd(Te),De=te.root||wd,Oe=ee.root||{},ke=te.input||Td;return(0,R.jsxs)(S.Fragment,{children:[!d&&typeof Ed==`function`&&(vd||=(0,R.jsx)(Ed,{})),(0,R.jsxs)(De,{...Oe,ref:t,onClick:xe,...ae,...!Tu(De)&&{ownerState:{...Te,...Oe.ownerState}},className:z(Ee.root,Oe.className,s,M&&`MuiInputBase-readOnly`),children:[ne,(0,R.jsx)(Iu.Provider,{value:null,children:(0,R.jsx)(ke,{"aria-invalid":me.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:me.disabled,id:h,onAnimationStart:we,name:w,placeholder:j,readOnly:M,required:me.required,rows:P,value:se,onKeyDown:k,onKeyUp:A,type:re,...Ce,...!Tu(ke)&&{as:Se,ownerState:{...Te,...Ce.ownerState}},ref:de,className:z(Ee.input,Ce.className,M&&`MuiInputBase-readOnly`),onBlur:ye,onChange:be,onFocus:ve})}),f,N?N({...me,startAdornment:ne}):null]})]})});function Od(e){return B(`MuiFilledInput`,e)}var kd={...ed,...V(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function Ad(e){return B(`MuiFormHelperText`,e)}var jd=V(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function Md(e){return B(`MuiFormLabel`,e)}var Nd=V(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function Pd(e){return B(`MuiInput`,e)}var Fd={...ed,...V(`MuiInput`,[`root`,`underline`,`input`])};function Id(e){return B(`MuiListItemButton`,e)}var Ld=V(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function Rd(e){return B(`MuiMenuItem`,e)}var zd=V(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function Bd(e){return B(`MuiNativeSelect`,e)}var Vd=V(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function Hd(e){return B(`MuiOutlinedInput`,e)}var Ud={...ed,...V(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},Wd=V(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]),Gd=V(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function Kd(e){return String(parseFloat(e)).length===String(e).length}function qd(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function Jd(e){return parseFloat(e)}function Yd(e){return(t,n)=>{let r=qd(t);if(r===n)return t;let i=Jd(t);r!==`px`&&(r===`em`||r===`rem`)&&(i=Jd(t)*Jd(e));let a=i;if(n!==`px`){if(n===`em`)a=i/Jd(e);else if(n===`rem`)a=i/Jd(e);else return t}return parseFloat(a.toFixed(5))+n}}function Xd({size:e,grid:t}){let n=e-e%t,r=n+t;return e-n<r-e?n:r}function Zd({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Qd({cssProperty:e,min:t,max:n,unit:r=`rem`,breakpoints:i=[600,900,1200],transform:a=null}){let o={[e]:`${t}${r}`},s=(n-t)/i[i.length-1];return i.forEach(n=>{let i=t+s*n;a!==null&&(i=a(i)),o[`@media (min-width:${n}px)`]={[e]:`${Math.round(i*1e4)/1e4}${r}`}}),o}function $d(e,t={}){let{breakpoints:n=[`sm`,`md`,`lg`],disableAlign:r=!1,factor:i=2,variants:a=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`caption`,`button`,`overline`]}=t,o={...e};o.typography={...o.typography};let s=o.typography,c=Yd(s.htmlFontSize),l=n.map(e=>o.breakpoints.values[e]);return a.forEach(e=>{let t=s[e];if(!t)return;let n=parseFloat(c(t.fontSize,`rem`));if(n<=1)return;let a=n,o=1+(a-1)/i,{lineHeight:u}=t;if(!Kd(u)&&!r)throw Error(Gn(6));Kd(u)||(u=parseFloat(c(u,`rem`))/parseFloat(n));let d=null;r||(d=e=>Xd({size:e,grid:Zd({pixels:4,lineHeight:u,htmlFontSize:s.htmlFontSize})}));let f=Qd({cssProperty:`fontSize`,min:o,max:a,unit:`rem`,breakpoints:l,transform:d});if(l.length>0){let e=l[l.length-1];f[`@media (min-width:${e}px)`]={fontSize:`${Math.round(a*1e4)/1e4}rem`}}s[e]={...t,...f}}),o}function ef({props:e,name:t}){return xs({props:e,name:t,defaultTheme:zu,themeId:Kn})}function tf({theme:e,...t}){let n=`$$material`in e?e[Kn]:void 0;return(0,R.jsx)(lc,{...t,themeId:n?Kn:void 0,theme:n||e})}var nf={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:rf,useColorScheme:af,getInitColorSchemeScript:of}=Ec({themeId:Kn,theme:()=>bu({cssVariables:!0}),colorSchemeStorageKey:nf.colorSchemeStorageKey,modeStorageKey:nf.modeStorageKey,defaultColorScheme:{light:nf.defaultLightColorScheme,dark:nf.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Nl(e.palette,e.typography)};return t.unstable_sx=function(e){return Wo({sx:e,theme:this})},t}}),sf=rf;function cf({theme:e,...t}){let n=S.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Kn]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,R.jsx)(tf,{theme:n,...t}):(0,R.jsx)(sf,{theme:e,...t})}var lf=e=>!!e&&typeof e==`object`&&!Array.isArray(e),uf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),df=[`primary`,`secondary`,`success`,`info`,`warning`,`error`],ff=[`light`,`dark`,`lighter`,`darker`,`contrastText`],pf=new Set([`main`,...ff,`primary`,`secondary`,`disabled`,`default`,`paper`,`neutral`,`divider`,`active`,`selected`,`hover`,`focus`,`disabledBackground`,`background`,`onBackground`,`black`,`white`]);function mf(e){if(/^(#[\da-f]{3,8}$|rgba?\(|hsla?\()/i.test(e)&&!(/^rgba?\(/i.test(e)&&e.includes(`%`)))try{let t=js(/^hsl/i.test(e)?Ps(e):e),n=t.split(` `);return n.length===3&&n.every(e=>e!==``&&Number.isFinite(Number(e)))?t:void 0}catch{return}}function hf(e){return mf(e)??`from ${e} r g b`}function gf(e,t){let n={...e};for(let[r,i]of Object.entries(t))if(lf(i)&&lf(n[r]))n[r]=gf(n[r],i);else if(typeof i==`string`&&!r.endsWith(`Channel`)&&!uf(t,`${r}Channel`)){let t=mf(i);(t!==void 0||uf(e,`${r}Channel`)||pf.has(r))&&(n[`${r}Channel`]=t??hf(i))}return n}function _f(e,t,{nativeColor:n=!1,cssVarPrefix:r=`prism`}={}){if(!t)return e;let i=gf(e,t);for(let e of df){let a=t[e];if(!lf(a)||typeof a.main!=`string`)continue;let o={...i[e]},s=mf(a.main)!==void 0;for(let e of ff)uf(a,e)||(delete o[e],uf(a,`${e}Channel`)||delete o[`${e}Channel`]);if(!n&&!s&&[`light`,`dark`,`contrastText`].some(e=>typeof o[e]!=`string`||!o[e]))throw Error(`Prism: palette.${e}.main cannot be resolved in JavaScript. Enable overrides.cssVariables.nativeColor or supply light, dark and contrastText explicitly.`);let c=i.mode===`dark`,l=(e,t)=>`color-mix(in oklch, ${a.main}, ${e} ${t*100}%)`;o.lighter??=s&&!n?c?Rs(a.main,.75):Bs(a.main,.9):c?l(`#000`,.75):l(`#fff`,.9),o.darker??=s&&!n?c?Bs(a.main,.85):Rs(a.main,.7):c?l(`#fff`,.85):l(`#000`,.7),s&&!n&&(o.contrastText??=Is(a.main,`#fff`)>=Is(a.main,`#000`)?`#fff`:`#000`);for(let t of ff)if(!uf(a,`${t}Channel`)){if(typeof o[t]==`string`)o[`${t}Channel`]=hf(o[t]);else if(n){let n=r?`${r}-`:``;o[`${t}Channel`]=`from var(--${n}palette-${e}-${t}) r g b`}}i[e]=o}return i}var vf=Object.freeze({}),yf=(0,S.createContext)(vf);function Y(e,t){let n=(0,S.forwardRef)(function(n,r){let i=(0,S.useContext)(yf)[e]??t;return(0,R.jsx)(i,{...n,ref:r,"data-prism-icon":e})});return n.displayName=`PrismIcon(${e})`,n}function bf(e){return B(`MuiSvgIcon`,e)}var xf=V(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]),Sf=e=>{let{color:t,fontSize:n,classes:r}=e;return U({root:[`root`,t!==`inherit`&&`color${J(t)}`,`fontSize${J(n)}`]},bf,r)},Cf=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${J(n.color)}`],t[`fontSize${J(n.fontSize)}`]]}})(K(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,..._d(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),X=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=S.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Sf(m);return(0,R.jsxs)(Cf,{as:o,className:z(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,R.jsx)(`title`,{children:u}):null]})});X.muiName=`SvgIcon`;function wf(e,t){function n(t,n){return(0,R.jsx)(X,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=X.muiName,S.memo(S.forwardRef(n))}var Tf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12`})]}),Ef=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M12 4H19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M8 20L16 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M5 20H12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Df=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3`}),(0,R.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Of=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M4 12H20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12`})]}),kf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15`}),(0,R.jsx)(`path`,{d:`M14.5 4L9.5 20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Af=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 10L17.2265 11.0572C17.7422 11.5016 18 11.7239 18 12C18 12.2761 17.7422 12.4984 17.2265 12.9428L16 14`}),(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 10L6.77346 11.0572C6.25782 11.5016 6 11.7239 6 12C6 12.2761 6.25782 12.4984 6.77346 12.9428L8 14`}),(0,R.jsx)(`path`,{d:`M13 9L11 15`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`})]}),jf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M4 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M14 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M17 19H18.5M20 19H18.5M18.5 19V11L17 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M4 12L14 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Mf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4`}),(0,R.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Nf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13`}),(0,R.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Pf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,d:`M16.5 11V15H20.5M20.5 15V19M20.5 15V11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ff=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,d:`M16.5 16.5V17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17V16.5C20.5 15.1193 19.3807 14 18 14H16.5V11H20.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),If=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C17.3954 15 16.5 15.8954 16.5 17ZM16.5 17V13C16.5 11.8954 17.3954 11 18.5 11C19.6046 11 20.5 11.8954 20.5 13`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Lf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 21.001H9`}),(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215`})]}),Rf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 9H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 21H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),zf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M8 9H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M8 21H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Bf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M13 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Vf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Hf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M11 5.5L21 5.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z`}),(0,R.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M11 18.5L21 18.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Uf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6`}),(0,R.jsx)(`path`,{d:`M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Wf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4`}),(0,R.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15`})]}),Gf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 16C14 14.1144 14 13.1716 14.5858 12.5858C15.1716 12 16.1144 12 18 12C19.8856 12 20.8284 12 21.4142 12.5858C22 13.1716 22 14.1144 22 16C22 17.8856 22 18.8284 21.4142 19.4142C20.8284 20 19.8856 20 18 20C16.1144 20 15.1716 20 14.5858 19.4142C14 18.8284 14 17.8856 14 16Z`}),(0,R.jsx)(`path`,{fill:`none`,d:`M14 16V11.8626C14 8.19569 16.5157 5.08584 20 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 16C2 14.1144 2 13.1716 2.58579 12.5858C3.17157 12 4.11438 12 6 12C7.88562 12 8.82843 12 9.41421 12.5858C10 13.1716 10 14.1144 10 16C10 17.8856 10 18.8284 9.41421 19.4142C8.82843 20 7.88562 20 6 20C4.11438 20 3.17157 20 2.58579 19.4142C2 18.8284 2 17.8856 2 16Z`}),(0,R.jsx)(`path`,{fill:`none`,d:`M2 16V11.8626C2 8.19569 4.51571 5.08584 8 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Kf=e=>(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{d:`M2.5 12L21.5002 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),qf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z`}),(0,R.jsx)(`path`,{d:`M2.5 9L21.5 9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{d:`M2.5 13L21.5 13`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{d:`M2.5 17L21.5 17`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{d:`M12 21.5L12 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Jf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M9.5 14.5L14.5 9.49995`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041`})]}),Yf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94113 21.5147 6.60303 19.4558 4.54416C17.397 2.48528 14.0589 2.48528 12 4.54416L9.39045 7.1537M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.397 2.48528 14.0589 4.54416 12L7.1537 9.39045`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{d:`M22 17H19.9211M17 22L17 19.9211`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M2 7H4.07889M7 2L7 4.07889`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Xf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`circle`,{fill:`none`,cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`})]}),Zf=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{d:`M11 20.001H5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M3 3L21 21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M19 7C19 6.36778 19 5.95381 18.9194 5.6768C18.7518 5.10062 18.3066 4.60428 17.7541 4.37789C17.4886 4.26905 17.1885 4.23819 16.5884 4.17648C15.1695 4.03054 13.3874 4 12 4H8`}),(0,R.jsx)(`path`,{d:`M12 4L11.2 7.20003M8 20.0008L10.4001 10.4001`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Qf=e=>(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{fill:`none`,d:`M3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.79275 3 5.97733 4.67765 4.38341 7.20327M3.29339 3.00076L3.46556 5.05452C3.58958 6.53384 3.65159 7.27349 4.13359 7.68914C4.61559 8.10479 5.32673 8.03185 6.74899 7.88595L8.79339 7.67625`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),$f=e=>(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.2073 3 18.0227 4.67765 19.6166 7.20327M20.7066 3.00076L20.5344 5.05452C20.4104 6.53384 20.3484 7.27349 19.8664 7.68914C19.3844 8.10479 18.6733 8.03185 17.251 7.88595L15.2066 7.67625`})}),ep=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18`})]}),tp=e=>(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3`})}),np=e=>(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 9.5L21 4M15.5 9.5V5M15.5 9.5H20M8.5 14.5L3 20M8.5 14.5V19M8.5 14.5H4`})});Y(`bold`,Tf),Y(`italic`,Ef),Y(`underline`,Df),Y(`strike`,Of),Y(`inlineCode`,kf),Y(`codeBlock`,Af),Y(`h1`,jf),Y(`h2`,Mf),Y(`h3`,Nf),Y(`h4`,Pf),Y(`h5`,Ff),Y(`h6`,If),Y(`paragraph`,Lf),Y(`alignLeft`,Rf),Y(`alignCenter`,zf),Y(`alignRight`,Bf),Y(`alignJustify`,Vf),Y(`bulletList`,Hf),Y(`orderedList`,Uf),Y(`checkList`,Wf),Y(`quote`,Gf),Y(`horizontalRule`,Kf);var rp=Y(`table`,qf);Y(`link`,Jf),Y(`unlink`,Yf),Y(`image`,Xf),Y(`clearMarks`,Zf),Y(`undo`,Qf),Y(`redo`,$f),Y(`hardBreak`,ep),Y(`fullscreen`,tp),Y(`fullscreenExit`,np);var ip=wf((0,R.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`}),`Search`),ap=wf((0,R.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),op=wf((0,R.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),sp=wf((0,R.jsx)(`path`,{d:`m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z`}),`ExpandLess`),cp=wf((0,R.jsx)(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),lp=wf((0,R.jsx)(`path`,{d:`M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`}),`ChevronRight`),up=wf((0,R.jsx)(`path`,{d:`m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z`}),`ArrowUpward`),dp=wf((0,R.jsx)(`path`,{d:`m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z`}),`ArrowDownward`),fp=wf((0,R.jsx)(`path`,{d:`M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z`}),`ArrowBack`),pp=wf((0,R.jsx)(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`),mp=wf((0,R.jsx)(`path`,{d:`M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z`}),`NorthEast`),hp=wf([(0,R.jsx)(`path`,{d:`M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z`},`0`),(0,R.jsx)(`path`,{d:`m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z`},`1`)],`KeyboardDoubleArrowLeft`),gp=wf([(0,R.jsx)(`path`,{d:`M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z`},`0`),(0,R.jsx)(`path`,{d:`m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z`},`1`)],`KeyboardDoubleArrowRight`),_p=wf((0,R.jsx)(`path`,{d:`M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z`}),`Menu`),vp=wf((0,R.jsx)(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z`}),`Add`),yp=wf((0,R.jsx)(`path`,{d:`M19 13H5v-2h14z`}),`Remove`),bp=wf((0,R.jsx)(`path`,{d:`M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`DragIndicator`),xp=wf((0,R.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),Sp=wf((0,R.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),Cp=wf([(0,R.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM12 2 1 21h22z`},`0`),(0,R.jsx)(`path`,{d:`M13 16h-2v2h2zm0-6h-2v5h2z`},`1`)],`WarningAmber`),wp=wf((0,R.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`ErrorOutlined`),Tp=wf((0,R.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z`}),`CheckCircleOutlined`),Ep=wf((0,R.jsx)(`path`,{d:`M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`CheckBoxOutlineBlank`),Dp=wf((0,R.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckBox`),Op=wf((0,R.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10H7v-2h10z`}),`IndeterminateCheckBox`),kp=wf((0,R.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`RadioButtonUnchecked`),Ap=wf((0,R.jsx)(`path`,{d:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`RadioButtonChecked`),jp=wf((0,R.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreHoriz`),Mp=wf((0,R.jsx)(`path`,{d:`M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z`}),`FilterList`),Np=wf((0,R.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5v-3h3.56c.69 1.19 1.97 2 3.45 2s2.75-.81 3.45-2H19zm0-5h-4.99c0 1.1-.9 2-2 2s-2-.9-2-2H5V5h14z`}),`InboxOutlined`),Pp=wf((0,R.jsx)(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z`}),`ContentCopy`),Fp=wf((0,R.jsx)(`path`,{d:`M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z`}),`CalendarMonth`),Ip=wf((0,R.jsx)(`path`,{d:`M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z`}),`Download`),Lp=wf((0,R.jsx)(`path`,{d:`M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z`}),`Upload`),Rp=wf([(0,R.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`},`0`),(0,R.jsx)(`path`,{d:`M12 10h-2v2H9v-2H7V9h2V7h1v2h2z`},`1`)],`ZoomIn`),zp=wf((0,R.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z`}),`ZoomOut`),Bp=wf((0,R.jsx)(`path`,{d:`M17 4h3c1.1 0 2 .9 2 2v2h-2V6h-3zM4 8V6h3V4H4c-1.1 0-2 .9-2 2v2zm16 8v2h-3v2h3c1.1 0 2-.9 2-2v-2zM7 18H4v-2H2v2c0 1.1.9 2 2 2h3zM18 8H6v8h12z`}),`FitScreen`),Vp=wf((0,R.jsx)(`path`,{d:`M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z`}),`Fullscreen`),Hp=wf((0,R.jsx)(`path`,{d:`M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z`}),`FullscreenExit`),Up=wf((0,R.jsx)(`path`,{d:`M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92`}),`Share`),Wp=wf((0,R.jsx)(`path`,{d:`M8 5v14l11-7z`}),`PlayArrow`),Gp=wf((0,R.jsx)(`path`,{d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3`}),`Visibility`),Kp=wf((0,R.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`),qp=wf((0,R.jsx)(`path`,{d:`M20 7v10H4V7zm0-2H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z`}),`KeyboardOutlined`),Jp=wf((0,R.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2`}),`LockOutlined`),Yp=wf((0,R.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2`}),`LockOpenOutlined`),Xp=wf((0,R.jsx)(`path`,{d:`M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z`}),`Star`),Zp=wf((0,R.jsx)(`path`,{d:`m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z`}),`StarBorder`),Qp=wf((0,R.jsx)(`path`,{d:`M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),$p=wf((0,R.jsx)(`path`,{d:`M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`),em=Y(`search`,ip),tm=Y(`close`,ap),nm=Y(`chevronDown`,op);Y(`chevronUp`,sp);var rm=Y(`chevronLeft`,cp),im=Y(`chevronRight`,lp),am=Y(`arrowUp`,up),om=Y(`arrowDown`,dp);Y(`arrowLeft`,fp),Y(`arrowRight`,pp),Y(`arrowUpRight`,mp);var sm=Y(`panelCollapse`,hp),cm=Y(`panelExpand`,gp),lm=Y(`menu`,_p),um=Y(`add`,vp),dm=Y(`remove`,yp);Y(`drag`,bp),Y(`check`,xp);var fm=Y(`info`,Sp),pm=Y(`warning`,Cp),mm=Y(`error`,wp),hm=Y(`success`,Tp);Y(`checkbox`,Ep),Y(`checkboxChecked`,Dp),Y(`checkboxMixed`,Op);var gm=Y(`radio`,kp),_m=Y(`radioChecked`,Ap),vm=Y(`more`,jp),ym=Y(`filter`,Mp),bm=Y(`empty`,Np),xm=Y(`copy`,Pp);Y(`calendar`,Fp);var Sm=Y(`download`,Ip);Y(`upload`,Lp),Y(`zoomIn`,Rp),Y(`zoomOut`,zp),Y(`fitView`,Bp),Y(`fullscreen`,Vp),Y(`fullscreenExit`,Hp),Y(`share`,Up),Y(`play`,Wp),Y(`eye`,Gp),Y(`eyeOff`,Kp),Y(`keyboard`,qp),Y(`lock`,Jp),Y(`unlock`,Yp);var Cm=Y(`star`,Xp),wm=Y(`starEmpty`,Zp),Tm=Y(`firstPage`,Qp),Em=Y(`lastPage`,$p);function Dm(e){return(0,S.forwardRef)(function({color:t,...n},r){let i=t===`action`||t===`disabled`||t===`error`||t===`info`||t===`inherit`||t===`primary`||t===`secondary`||t===`success`||t===`warning`;return(0,R.jsx)(e,{...n,ref:r,color:i?t:`inherit`,htmlColor:i?void 0:t})})}var Om={MoreIcon:Dm(vm),ArrowUpIcon:Dm(am),ArrowDownIcon:Dm(om),FilterIcon:Dm(ym),TableIcon:Dm(rp),DownloadIcon:Dm(Sm),CloseIcon:Dm(tm),SearchIcon:Dm(em),AddIcon:Dm(um),RemoveIcon:Dm(dm)};function km(){return{MuiSelect:{defaultProps:{IconComponent:nm}},MuiNativeSelect:{defaultProps:{IconComponent:nm}},MuiAutocomplete:{defaultProps:{popupIcon:(0,R.jsx)(nm,{}),clearIcon:(0,R.jsx)(tm,{fontSize:`small`})}},MuiRadio:{defaultProps:{icon:(0,R.jsx)(gm,{}),checkedIcon:(0,R.jsx)(_m,{})}},MuiChip:{defaultProps:{deleteIcon:(0,R.jsx)(tm,{})}},MuiAlert:{defaultProps:{iconMapping:{success:(0,R.jsx)(hm,{}),info:(0,R.jsx)(fm,{}),warning:(0,R.jsx)(pm,{}),error:(0,R.jsx)(mm,{})},slots:{closeIcon:tm}}},MuiPaginationItem:{defaultProps:{slots:{previous:rm,next:im,first:Tm,last:Em}}},MuiTablePagination:{defaultProps:{slots:{actions:{firstButtonIcon:Tm,previousButtonIcon:rm,nextButtonIcon:im,lastButtonIcon:Em}}}},MuiTableSortLabel:{defaultProps:{IconComponent:om}},MuiBreadcrumbs:{defaultProps:{separator:(0,R.jsx)(im,{fontSize:`inherit`})}},MuiRating:{defaultProps:{icon:(0,R.jsx)(Cm,{fontSize:`inherit`}),emptyIcon:(0,R.jsx)(wm,{fontSize:`inherit`})}},MuiTabs:{defaultProps:{slots:{startScrollButtonIcon:rm,endScrollButtonIcon:im}}},MuiDataGrid:{defaultProps:{slots:{columnMenuIcon:Om.MoreIcon,columnSortedAscendingIcon:Om.ArrowUpIcon,columnSortedDescendingIcon:Om.ArrowDownIcon,columnFilteredIcon:Om.FilterIcon,columnSelectorIcon:Om.TableIcon,exportIcon:Om.DownloadIcon,openFilterButtonIcon:Om.FilterIcon,quickFilterIcon:Om.SearchIcon,quickFilterClearIcon:Om.CloseIcon,detailPanelExpandIcon:Om.AddIcon,detailPanelCollapseIcon:Om.RemoveIcon}}}}}var Am=e=>{let t;if(typeof Intl<`u`&&Intl.NumberFormat)try{t=new Intl.NumberFormat(e)}catch{}return e=>Number.isFinite(e)&&t?t.format(e):String(e)},jm=Am(`am-ET`),Mm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`መንገድ አሳይ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`,labelRowsPerPage:`ረድፎች በአንድ ገጽ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${jm(e)}-${jm(t)} ከ ${n===-1?`${jm(t)} በላይ`:jm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ኮከ${e===1?`ብ`:`ቦች`}`,emptyLabelText:`ባዶ`}},MuiAutocomplete:{defaultProps:{clearText:`አጽዳ`,closeText:`ዝጋ`,loadingText:`በመጫን ላይ…`,noOptionsText:`አማራጮች የሉም`,openText:`ክፈት`}},MuiAlert:{defaultProps:{closeText:`ዝጋ`}},MuiPagination:{defaultProps:{"aria-label":`የገጽ አሰሳ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ወደ `}ገጽ ${t}${n?``:` ሂድ`}`:e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`}}}},Nm=Am(`ar-EG`),Pm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Nm(e)}–${Nm(t)} من ${n===-1?` أكثر من${Nm(t)}`:Nm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},Fm=Am(`ar-SA`),Im={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال إلى الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Fm(e)}–${Fm(t)} من ${n===-1?` أكثر من${Fm(t)}`:Fm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا توجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`الانتقال إلى `} صفحة ${t}`:e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال الي الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`}}}},Lm=Am(`ar-SD`),Rm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Lm(e)}–${Lm(t)} من ${n===-1?` أكثر من${Lm(t)}`:Lm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل الي الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},zm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göstər`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`,labelRowsPerPage:`Səhifəyə düşən sətrlər:`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Ulduz`,n=e%10;return n>1&&n<5&&(t=`Ulduzlar`),`${e} ${t}`},emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Silmək`,closeText:`Bağlamaq`,loadingText:`Yüklənir…`,noOptionsText:`Seçimlər mövcud deyil`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Bağlamaq`}},MuiPagination:{defaultProps:{"aria-label":`Səhifənin naviqasiyası`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} ${n?`səhifə`:`səhifəyə keç`}`:e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`}}}},Bm=Am(`be-BY`),Vm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Паказаць шлях`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`,labelRowsPerPage:`Радкоў на старонцы:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Bm(e)}–${Bm(t)} з ${n===-1?`больш чым ${Bm(t)}`:Bm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зорак`,n=e%10;return n>1&&n<5&&(e<10||e>20)?t=`Зоркі`:n===1&&e%100!=11&&(t=`Зорка`),`${e} ${t}`},emptyLabelText:`Рэйтынг адсутнічае`}},MuiAutocomplete:{defaultProps:{clearText:`Ачысціць`,closeText:`Закрыць`,loadingText:`Загрузка…`,noOptionsText:`Няма варыянтаў`,openText:`Адкрыць`}},MuiAlert:{defaultProps:{closeText:`Закрыць`}},MuiPagination:{defaultProps:{"aria-label":`Навігацыя па старонкам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} старонка`:`Перайсці на ${t} старонку`:e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`}}}},Hm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показване на пътя`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`,labelRowsPerPage:`Редове на страница:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Звезд${e===1?`а`:`и`}`,emptyLabelText:`Изчисти`}},MuiAutocomplete:{defaultProps:{clearText:`Изчисти`,closeText:`Затвори`,loadingText:`Зареждане…`,noOptionsText:`Няма налични опции`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Пагинация`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Към `}страница ${t}`:e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`}}}},Um=Am(`bn-BD`),Wm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`পথ দেখান`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`,labelRowsPerPage:`প্রতি পৃষ্ঠায় সারি:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Um(e)}–${Um(t)} / ${n===-1?`${Um(t)} থেকে বেশি`:Um(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} স্টার`,emptyLabelText:`খালি`}},MuiAutocomplete:{defaultProps:{clearText:`পরিষ্কার করুন`,closeText:`বন্ধ করুন`,loadingText:`লোড হচ্ছে…`,noOptionsText:`কোন অপশন নেই`,openText:`ওপেন করুন`}},MuiAlert:{defaultProps:{closeText:`বন্ধ করুন`}},MuiPagination:{defaultProps:{"aria-label":`পেজিনেশন নেভিগেশন`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`যান `}পৃষ্ঠা ${t}-এ`:e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`}}}},Gm=Am(`ca-ES`),Km={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostra el camí`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`,labelRowsPerPage:`Files per pàgina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Gm(e)}–${Gm(t)} de ${n===-1?`més de ${Gm(t)}`:Gm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Estrella`:`Estrelles`}`,emptyLabelText:`Buit`}},MuiAutocomplete:{defaultProps:{clearText:`Netejar`,closeText:`Tancar`,loadingText:`Carregant…`,noOptionsText:`Sense opcions`,openText:`Obert`}},MuiAlert:{defaultProps:{closeText:`Tancat`}},MuiPagination:{defaultProps:{"aria-label":`Navegació entre pàgines`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ves a la `}pàgina ${t}`:e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`}}}},qm=Am(`cs-CZ`),Jm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázat cestu`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`,labelRowsPerPage:`Řádků na stránce:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${qm(e)}–${qm(t)} z ${n===-1?`více než ${qm(t)}`:qm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hvězdička`:e>=2&&e<=4?`${e} hvězdičky`:`${e} hvězdiček`,emptyLabelText:`Prázdné`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazat`,closeText:`Zavřít`,loadingText:`Načítání…`,noOptionsText:`Žádné možnosti`,openText:`Otevřít`}},MuiAlert:{defaultProps:{closeText:`Zavřít`}},MuiPagination:{defaultProps:{"aria-label":`Navigace stránkováním`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Jít na `}${t}. stránku`:e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`}}}},Ym=Am(`da-DK`),Xm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`,labelRowsPerPage:`Rækker pr side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Ym(e)}-${Ym(t)} af ${n===-1?`mere end ${Ym(t)}`:Ym(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${e===1?``:`er`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Slet`,closeText:`Luk`,loadingText:`Indlæser…`,noOptionsText:`Ingen muligheder`,openText:`Åben`}},MuiAlert:{defaultProps:{closeText:`Luk`}},MuiPagination:{defaultProps:{"aria-label":`Sideinddelings navigation`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Go to `}page ${t}`:e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`}}}},Zm=Am(`de-DE`),Qm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pfad anzeigen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`,labelRowsPerPage:`Zeilen pro Seite:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Zm(e)}–${Zm(t)} von ${n===-1?`mehr als ${Zm(t)}`:Zm(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stern`:`Sterne`}`,emptyLabelText:`Keine Wertung`}},MuiAutocomplete:{defaultProps:{clearText:`Leeren`,closeText:`Schließen`,loadingText:`Wird geladen…`,noOptionsText:`Keine Optionen`,openText:`Öffnen`}},MuiAlert:{defaultProps:{closeText:`Schließen`}},MuiPagination:{defaultProps:{"aria-label":`Navigation via Seitennummerierung`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gehe zu `}Seite ${t}`:e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`}}}},$m=Am(`el-GR`),eh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Εμφάνιση διαδρομής`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`,labelRowsPerPage:`Γραμμές ανα σελίδα:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${$m(e)}–${$m(t)} από ${n===-1?`πάνω από ${$m(t)}`:$m(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Αστέρι${e===1?``:`α`}`,emptyLabelText:`Χωρίς βαθμολόγηση`}},MuiAutocomplete:{defaultProps:{clearText:`Καθαρισμός`,closeText:`Κλείσιμο`,loadingText:`Φόρτωση…`,noOptionsText:`Δεν υπάρχουν επιλογές`,openText:`Άνοιγμα`}},MuiAlert:{defaultProps:{closeText:`Κλείσιμο`}},MuiPagination:{defaultProps:{"aria-label":`Πλοήγηση σε σελίδες`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Μετάβαση `}σελίδα ${t}`:e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`}}}},th={},nh=Am(`es-ES`),rh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar ruta`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`,labelRowsPerPage:`Filas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${nh(e)}–${nh(t)} de ${n===-1?`más de ${nh(t)}`:nh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${e===1?``:`s`}`,emptyLabelText:`Vacío`}},MuiAutocomplete:{defaultProps:{clearText:`Limpiar`,closeText:`Cerrar`,loadingText:`Cargando…`,noOptionsText:`Sin opciones`,openText:`Abierto`}},MuiAlert:{defaultProps:{closeText:`Cerrar`}},MuiPagination:{defaultProps:{"aria-label":`Paginador`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir a la `}página ${t}`:e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`}}}},ih=Am(`et-EE`),ah={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näita teed`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`,labelRowsPerPage:`Ridu leheküljel:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ih(e)}–${ih(t)} / ${n===-1?`rohkem kui ${ih(t)}`:ih(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Tärn${e===1?``:`i`}`,emptyLabelText:`Tühi`}},MuiAutocomplete:{defaultProps:{clearText:`Tühjenda`,closeText:`Sulge`,loadingText:`Laen…`,noOptionsText:`Valikuid ei ole`,openText:`Ava`}},MuiAlert:{defaultProps:{closeText:`Sulge`}},MuiPagination:{defaultProps:{"aria-label":`Lehekülgede valik`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vali `}lehekülg ${t}`:e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`}}}},oh=Am(`fa-IR`),sh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`نمایش مسیر`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`,labelRowsPerPage:`تعداد سطرهای هر صفحه:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${oh(e)}–${oh(t)} از ${n===-1?`بیشتر از ${oh(t)}`:oh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک‌کردن`,closeText:`بستن`,loadingText:`در حال بارگذاری…`,noOptionsText:`بی‌نتیجه`,openText:`بازکردن`}},MuiAlert:{defaultProps:{closeText:`بستن`}},MuiPagination:{defaultProps:{"aria-label":`ناوبری صفحه`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`رفتن به `}صفحهٔ ${t}`:e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`}}}},ch=Am(`fi-FI`),lh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näytä reitti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`,labelRowsPerPage:`Rivejä per sivu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ch(e)}–${ch(t)} / ${n===-1?`enemmän kuin ${ch(t)}`:ch(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Täht${e===1?`i`:`eä`}`,emptyLabelText:`Tyhjä`}},MuiAutocomplete:{defaultProps:{clearText:`Tyhjennä`,closeText:`Sulje`,loadingText:`Ladataan…`,noOptionsText:`Ei valintoja`,openText:`Avaa`}},MuiAlert:{defaultProps:{closeText:`Sulje`}},MuiPagination:{defaultProps:{"aria-label":`Sivutus navigaatio`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`sivu`:`Mene sivulle`} ${t}`:e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`}}}},uh=Am(`fr-FR`),dh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Montrer le chemin`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`,labelRowsPerPage:`Lignes par page :`,labelDisplayedRows:({from:e,to:t,count:n})=>`${uh(e)}–${uh(t)} sur ${n===-1?`plus que ${uh(t)}`:uh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${e===1?``:`s`}`,emptyLabelText:`Vide`}},MuiAutocomplete:{defaultProps:{clearText:`Vider`,closeText:`Fermer`,loadingText:`Chargement…`,noOptionsText:`Pas de résultats`,openText:`Ouvrir`}},MuiAlert:{defaultProps:{closeText:`Fermer`}},MuiPagination:{defaultProps:{"aria-label":`navigation de pagination`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Aller à la `}page ${t}`:e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`}}}},fh=Am(`he-IL`),ph={components:{MuiBreadcrumbs:{defaultProps:{expandText:`הצג נתיב`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`,labelRowsPerPage:`שורות בעמוד:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${fh(e)}–${fh(t)} מתוך ${n===-1?`יותר מ ${fh(t)}`:fh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} כוכב${e===1?``:`ים`}`,emptyLabelText:`ריק`}},MuiAutocomplete:{defaultProps:{clearText:`נקה`,closeText:`סגור`,loadingText:`טוען…`,noOptionsText:`אין אופציות`,openText:`פתח`}},MuiAlert:{defaultProps:{closeText:`סגור`}},MuiPagination:{defaultProps:{"aria-label":`ניווט בעמודים`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ל `}עמוד ${t}`:e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`}}}},mh=Am(`hi-IN`),hh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`रास्ता दिखायें`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`,labelRowsPerPage:`पंक्तियाँ प्रति पृष्ठ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${mh(e)}-${mh(t===-1?n:t)} कुल ${mh(n)} में`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तार${e===1?`ा`:`े`}`,emptyLabelText:`रिक्त`}},MuiAutocomplete:{defaultProps:{clearText:`हटायें`,closeText:`बंद करें`,loadingText:`लोड हो रहा है…`,noOptionsText:`कोई विकल्प नहीं`,openText:`खोलें`}},MuiAlert:{defaultProps:{closeText:`बंद करें`}},MuiPagination:{defaultProps:{"aria-label":`पृस्ठानुसार संचालन`,getItemAriaLabel:(e,t,n)=>e===`page`?`पृष्ठ ${t} ${n?``:` पर जाएँ`}`:e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`}}}},gh=Am(`hr-HR`),_h={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na posljednju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${gh(e)}–${gh(t)} od ${n===-1?`više nego ${gh(t)}`:gh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvijezde`:`Zvijezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`}}}},vh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Útvonal`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`,labelRowsPerPage:`Sorok száma:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:`Üres`}},MuiAutocomplete:{defaultProps:{clearText:`Törlés`,closeText:`Bezárás`,loadingText:`Töltés…`,noOptionsText:`Nincs találat`,openText:`Megnyitás`}},MuiAlert:{defaultProps:{closeText:`Bezárás`}},MuiPagination:{defaultProps:{"aria-label":`Lapozás`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. oldal${n?``:`ra`}`:e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`}}}},yh={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:`Դատարկ`}},MuiAutocomplete:{defaultProps:{clearText:`Մաքրել`,closeText:`Փակել`,loadingText:`Բեռնում…`,noOptionsText:`Տարբերակներ չկան`,openText:`Բացել`}},MuiAlert:{defaultProps:{closeText:`Փակել`}}}},bh={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:`Baris per halaman:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang`}},MuiAutocomplete:{defaultProps:{clearText:`Hapus`,closeText:`Tutup`,loadingText:`Memuat…`,noOptionsText:`Tidak ada opsi`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`Tutup`}}}},xh=Am(`is-IS`),Sh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Sýna slóð`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`,labelRowsPerPage:`Raðir á síðu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${xh(e)}–${xh(t)} af ${n===-1?`fleiri en ${xh(t)}`:xh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`stjarna`:`stjörnur`}`,emptyLabelText:`Tómt`}},MuiAutocomplete:{defaultProps:{clearText:`Hreinsa`,closeText:`Loka`,loadingText:`Hlaða…`,noOptionsText:`Engar niðurstöður`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Loka`}},MuiPagination:{defaultProps:{"aria-label":`Síðuflakk`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`Síða`:`Fara á síðu`} ${t}`:e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`}}}},Ch=Am(`it-IT`),wh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visualizza percorso`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`,labelRowsPerPage:`Righe per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Ch(e)}–${Ch(t)} di ${n===-1?`più di ${Ch(t)}`:Ch(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${e===1?`a`:`e`}`,emptyLabelText:`Vuoto`}},MuiAutocomplete:{defaultProps:{clearText:`Svuota`,closeText:`Chiudi`,loadingText:`Caricamento in corso…`,noOptionsText:`Nessuna opzione`,openText:`Apri`}},MuiAlert:{defaultProps:{closeText:`Chiudi`}},MuiPagination:{defaultProps:{"aria-label":`Navigazione impaginata`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vai alla `}pagina ${t}`:e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`}}}},Th=Am(`ja-JP`),Eh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`すべて表示`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`,labelRowsPerPage:`ページあたりの行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Th(e)}~${Th(t)} / ${n===-1?`${Th(t)}以上`:Th(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`星${e}`,emptyLabelText:`星なし`}},MuiAutocomplete:{defaultProps:{clearText:`クリア`,closeText:`閉じる`,loadingText:`読み込み中…`,noOptionsText:`データがありません`,openText:`開く`}},MuiAlert:{defaultProps:{closeText:`閉じる`}},MuiPagination:{defaultProps:{"aria-label":`ページ選択`,getItemAriaLabel:(e,t,n)=>e===`page`?`ページ${t}${n?``:`へ`}`:e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`}}}},Dh=Am(`kh-KH`),Oh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`បង្ហាញផ្លូវ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`,labelRowsPerPage:`ចំនួនជួរដេកក្នុងមួយទំព័រ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Dh(e)} - ${Dh(t)} នៃ ${n===-1?`ច្រើនជាង ${Dh(t)}`:Dh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ផ្កាយ`,emptyLabelText:`ទទេ`}},MuiAutocomplete:{defaultProps:{clearText:`លុបចោល`,closeText:`បិទ`,loadingText:`កំពុងលោត…`,noOptionsText:`គ្មានជម្រើស`,openText:`បើក`}},MuiAlert:{defaultProps:{closeText:`បិទ`}},MuiPagination:{defaultProps:{"aria-label":`រុករកទំព័រ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ទៅ `}ទំព័រ ${t}`:e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`}}}},kh=Am(`ko-KR`),Ah={components:{MuiBreadcrumbs:{defaultProps:{expandText:`경로 보기`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`,labelRowsPerPage:`페이지 당 행:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${kh(e)}–${kh(t)} / ${n===-1?`${kh(t)}개 이상`:kh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 점`,emptyLabelText:`빈 텍스트`}},MuiAutocomplete:{defaultProps:{clearText:`지우기`,closeText:`닫기`,loadingText:`불러오는 중…`,noOptionsText:`옵션 없음`,openText:`열기`}},MuiAlert:{defaultProps:{closeText:`닫기`}},MuiPagination:{defaultProps:{"aria-label":`페이지네이션 네비게이션`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} 번째 페이지${n?``:`로 이동`}`:e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`}}}},jh=Am(`ku-CKB`),Mh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ڕێچکە پیشان بدە`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`,labelRowsPerPage:`ژمارەی ڕیزەکان لە هەر پەڕەیەک:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${jh(e)}–${jh(t)} لە ${n===-1?` زیاترە لە${jh(t)}`:jh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`ئەستێرە`:`ئەستێرەکان`}`,emptyLabelText:`خاڵیە`}},MuiAutocomplete:{defaultProps:{clearText:`سڕینەوە`,closeText:`داخستن`,loadingText:`لە بارکردندایە…`,noOptionsText:`هیچ بژاردەیەک نیە`,openText:`کردنەوە`}},MuiAlert:{defaultProps:{closeText:`داخستن`}},MuiPagination:{defaultProps:{"aria-label":`گەڕان لە پەڕەکان`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`چوون بۆ `} پەڕەی ${t}`:e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`}}}},Nh=Am(`ku-Latn`),Ph={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Rê nîşan bide`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`,labelRowsPerPage:`Rêz li ser rûpelê:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Nh(e)}–${Nh(t)} of ${n===-1?`zêdetir ji ${Nh(t)}`:Nh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stêrk`,emptyLabelText:`Vala`}},MuiAutocomplete:{defaultProps:{clearText:`Paqij bike`,closeText:`Bigre`,loadingText:`Tê barkirin…`,noOptionsText:`Vebijêrk tune`,openText:`Veke`}},MuiAlert:{defaultProps:{closeText:`Bigre`}},MuiPagination:{defaultProps:{"aria-label":`Navîgasyona rûpelan`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Biçe `}rûpel ${t}`:e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`}}}},Fh=Am(`kk-KZ`),Ih={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Толық жолды көрсету`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`,labelRowsPerPage:`Беттегі қатарлар:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`+${Fh(t)}`:Fh(n)} қатардың ішінен ${Fh(e)}–${Fh(t)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} жұлдыз`,emptyLabelText:`Рейтинг жоқ`}},MuiAutocomplete:{defaultProps:{clearText:`Тазарту`,closeText:`Жабу`,loadingText:`Жүктелуде…`,noOptionsText:`Қол жетімді нұсқалар жоқ`,openText:`Ашу`}},MuiAlert:{defaultProps:{closeText:`Жабу`}},MuiPagination:{defaultProps:{"aria-label":`Беттерді шарлау`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} — бет`:`${t} — бетке өту`:e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`}}}},Lh=Am(`mk-MK`),Rh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Прикажи патека`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`,labelRowsPerPage:`Редови по страница:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Lh(e)}–${Lh(t)} од ${n===-1?`повеќе од ${Lh(t)}`:Lh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ѕвезд${e%10==1?`а`:`и`}`,emptyLabelText:`Празно`}},MuiAutocomplete:{defaultProps:{clearText:`Избриши`,closeText:`Затвори`,loadingText:`Се презема`,noOptionsText:`Нема опција`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Навигација низ страници`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Оди на `}страница ${t}`:e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`}}}},zh=Am(`ms-MS`),Bh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Tunjukkan laluan`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`,labelRowsPerPage:`Baris setiap halaman:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${zh(e)}–${zh(t)} daripada ${n===-1?`lebih daripada ${zh(t)}`:zh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang${e%10==1?`s`:``}`,emptyLabelText:`kosong`}},MuiAutocomplete:{defaultProps:{clearText:`Jelas`,closeText:`tutup`,loadingText:`Memuatkan…`,noOptionsText:`Tiada pilihan`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`tutup`}},MuiPagination:{defaultProps:{"aria-label":`Navigasi penomboran`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pergi ke `}muka surat ${t}`:e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`}}}},Vh=Am(`my-MY`),Hh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`လမ်းကြောင်းပြပါ။`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`,labelRowsPerPage:`စာမျက်နှာအလိုက် အတန်းများ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Vh(e)}–${Vh(t)} ၏ ${n===-1?`ထက်ပိုပြီး ${Vh(t)}`:Vh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ကြယ်ပွင့်${e%10==1?`၎`:``}`,emptyLabelText:`ဗလာ`}},MuiAutocomplete:{defaultProps:{clearText:`ရှင်းလင်းသော`,closeText:`ပိတ်လိုက်`,loadingText:`ဖွင့်နေသည်…`,noOptionsText:`ရွေးချယ်ခွင့်မရှိပါ။`,openText:`ဖွင့်သည်။`}},MuiAlert:{defaultProps:{closeText:`ပိတ်လိုက်`}},MuiPagination:{defaultProps:{"aria-label":`Pagination အညွှန်း`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`သွားပါ။ `}စာမျက်နှာ ${t}`:e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`}}}},Uh=Am(`nb-NO`),Wh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Uh(e)}–${Uh(t)} av ${n===-1?`mer enn ${Uh(t)}`:Uh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Laster inn…`,noOptionsText:`Ingen alternativer`,openText:`Åpne`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Paginering navigasjon`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`}}}},Gh=Am(`ne-NP`),Kh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`बाटो देखाउनुहोस्`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`,labelRowsPerPage:`प्रति पृष्ठ पङ्क्तिहरू:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Gh(e)}–${Gh(t)} को ${n===-1?`धेरै ${Gh(t)}`:Gh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तारा${e%10==1?`स`:``}`,emptyLabelText:`खाली`}},MuiAutocomplete:{defaultProps:{clearText:`खाली गर्नुहोस्`,closeText:`बन्द गर्नुहोस्`,loadingText:`लोड हुँदै…`,noOptionsText:`कुनै विकल्प छैन`,openText:`खोल्नुहोस्`}},MuiAlert:{defaultProps:{closeText:`बन्द गर्नुहोस्`}},MuiPagination:{defaultProps:{"aria-label":`पृष्ठांकन नेभिगेसन`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`जाऊ त्यहाँ `}पृष्ठ ${t}`:e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`}}}},qh=Am(`nn-NO`),Jh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${qh(e)}–${qh(t)} av ${n===-1?`fleire enn ${qh(t)}`:qh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Lastar inn…`,noOptionsText:`Ingen alternativ`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Navigasjon for paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`}}}},Yh=Am(`nl-NL`),Xh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pad tonen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`,labelRowsPerPage:`Regels per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Yh(e)}–${Yh(t)} van ${n===-1?`meer dan ${Yh(t)}`:Yh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${e===1?``:`ren`}`,emptyLabelText:`Leeg`}},MuiAutocomplete:{defaultProps:{clearText:`Wissen`,closeText:`Sluiten`,loadingText:`Laden…`,noOptionsText:`Geen opties`,openText:`Openen`}},MuiAlert:{defaultProps:{closeText:`Sluiten`}},MuiPagination:{defaultProps:{"aria-label":`Navigatie via paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ga naar `}pagina ${t}`:e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`}}}},Zh=Am(`pl-PL`),Qh={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaż ścieżkę`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`,labelRowsPerPage:`Wierszy na stronę:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Zh(e)}–${Zh(t)} z ${n===-1?`ponad ${Zh(t)}`:Zh(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`gwiazdek`,n=e%10;return(e<10||e>20)&&n>1&&n<5?t=`gwiazdki`:e===1&&(t=`gwiazdka`),`${e} ${t}`},emptyLabelText:`Brak gwiazdek`}},MuiAutocomplete:{defaultProps:{clearText:`Wyczyść`,closeText:`Zamknij`,loadingText:`Ładowanie…`,noOptionsText:`Brak opcji`,openText:`Otwórz`}},MuiAlert:{defaultProps:{closeText:`Zamknij`}},MuiPagination:{defaultProps:{"aria-label":`Nawigacja podziału na strony`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t}. strona`:`Przejdź do ${t}. strony`:e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`}}}},$h=Am(`ps-AF`),eg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`لاره ښکاره کړه`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`لومړۍ پاڼې ته لاړ شه`:e===`last`?`ورستۍ پاڼې ته لاړ شه`:e===`next`?`بلی پاڼې ته لاړ شه`:`مخکینۍ پاڼې ته لاړ شه`,labelRowsPerPage:`په پاڼه کی د کرښو شمیر`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${$h(t)} زیات له`:$h(n)} ${$h(t)}- ${$h(e)} د`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستوری`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک کول`,closeText:`تړل`,loadingText:`… لوډ کیږی`,noOptionsText:`بی پایلی`,openText:`خلاصول`}},MuiAlert:{defaultProps:{closeText:`تړل`}},MuiPagination:{defaultProps:{"aria-label":`د پاڼو ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:` ته لاړ شه`}پاڼې ${t}`:e===`first`?`لومړۍ پاڼی ته لاړ شه`:e===`last`?`وروستۍ پاڼې ته لاړه شه`:e===`next`?`بلې پاڼې ته لاړ شه`:`مخکنۍ پاڼې ته لاړ شه`}}}},tg=Am(`pt-BR`),ng={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${tg(e)}–${tg(t)} de ${n===-1?`mais de ${tg(t)}`:tg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`Carregando…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar pela paginação`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`}}}},rg=Am(`pt-PT`),ig={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${rg(e)}–${rg(t)} de ${n===-1?`mais de ${rg(t)}`:rg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`A carregar…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar por páginas`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`}}}},ag=Am(`ro-RO`),og={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Arată calea`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`,labelRowsPerPage:`Rânduri pe pagină:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ag(e)}–${ag(t)} din ${n===-1?`mai mult de ${ag(t)}`:ag(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${e===1?`ea`:`ele`}`,emptyLabelText:`Gol`}},MuiAutocomplete:{defaultProps:{clearText:`Șterge`,closeText:`Închide`,loadingText:`Se încarcă…`,noOptionsText:`Nicio opțiune`,openText:`Deschide`}},MuiAlert:{defaultProps:{closeText:`Închide`}},MuiPagination:{defaultProps:{"aria-label":`Navigare prin paginare`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Mergi la `}pagina ${t}`:e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`}}}},sg=Am(`ru-RU`),cg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показать полный путь`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`,labelRowsPerPage:`Строк на странице:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${sg(e)}–${sg(t)} из ${n===-1?`более чем ${sg(t)}`:sg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Звёзд`,n=e%10;return n>1&&n<5?t=`Звезды`:n===1&&(t=`Звезда`),`${e} ${t}`},emptyLabelText:`Рейтинг отсутствует`}},MuiAutocomplete:{defaultProps:{clearText:`Очистить`,closeText:`Закрыть`,loadingText:`Загрузка…`,noOptionsText:`Нет доступных вариантов`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Закрыть`}},MuiPagination:{defaultProps:{"aria-label":`Навигация по страницам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} страница`:`Перейти на ${t} страницу`:e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`}}}},lg=Am(`si-LK`),ug={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ගමන් මඟ පෙන්වන්න`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`,labelRowsPerPage:`පිටුවක පේළි:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${lg(e)}–${lg(t)} දක්වා ${n===-1?`${lg(t)} ට වැඩි ප්‍රමාණයකින්`:lg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`තරු ${e}`,emptyLabelText:`හිස්`}},MuiAutocomplete:{defaultProps:{clearText:`මකන්න`,closeText:`වසන්න`,loadingText:`නැංවෙමින්…`,noOptionsText:`විකල්ප නැත`,openText:`විවෘත කරන්න`}},MuiAlert:{defaultProps:{closeText:`වසන්න`}},MuiPagination:{defaultProps:{"aria-label":`පිටු අතර සංචරණය`,getItemAriaLabel:(e,t,n)=>e===`page`?`පිටුව ${t} ${n?``:`ට යන්න`}`:e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`}}}},dg=Am(`sk-SK`),fg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázať cestu `}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`,labelRowsPerPage:`Riadkov na stránke:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${dg(e)}–${dg(t)} z ${n===-1?`viac ako ${dg(t)}`:dg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hviezdička`:e>=2&&e<=4?`${e} hviezdičky`:`${e} hviezdičiek`,emptyLabelText:`Prázdne`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazať`,closeText:`Zavrieť`,loadingText:`Načítanie…`,noOptionsText:`Žiadne možnosti`,openText:`Otvoriť`}},MuiAlert:{defaultProps:{closeText:`Zavrieť`}},MuiPagination:{defaultProps:{"aria-label":`Navigácia stránkovanim`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ísť na `}stránku ${t}`:e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`}}}},pg=Am(`sr-RS`),mg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na poslednju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${pg(e)}–${pg(t)} od ${n===-1?`više nego ${pg(t)}`:pg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvezde`:`Zvezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`}}}},hg=Am(`sv-SE`),gg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visa sökväg`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`,labelRowsPerPage:`Rader per sida:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${hg(e)}–${hg(t)} av ${n===-1?`fler än ${hg(t)}`:hg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stjärna`:`Stjärnor`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Rensa`,closeText:`Stäng`,loadingText:`Laddar…`,noOptionsText:`Inga alternativ`,openText:`Öppna`}},MuiAlert:{defaultProps:{closeText:`Stäng`}},MuiPagination:{defaultProps:{"aria-label":`Sidnavigering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå till `}sida ${t}`:e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`}}}},_g=Am(`th-TH`),eee={components:{MuiBreadcrumbs:{defaultProps:{expandText:`แสดงเส้นทาง`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`,labelRowsPerPage:`จำนวนแถวต่อหน้า:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${_g(e)}–${_g(t)} จาก ${n===-1?`มากกว่า ${_g(t)}`:_g(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ดาว`,emptyLabelText:`ว่างเปล่า`}},MuiAutocomplete:{defaultProps:{clearText:`เคลียร์`,closeText:`ปิด`,loadingText:`กำลังโหลด…`,noOptionsText:`ไม่มีตัวเลือก`,openText:`เปิด`}},MuiAlert:{defaultProps:{closeText:`ปิด`}},MuiPagination:{defaultProps:{"aria-label":``,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ไปที่`}หน้า ${t}`:e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`}}}},vg=Am(`tr-TR`),yg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göster`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`,labelRowsPerPage:`Sayfa başına satır:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${vg(e)}-${vg(t)} / ${n===-1?`${vg(t)}'den fazla`:vg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Yıldız`,emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Temizle`,closeText:`Kapat`,loadingText:`Yükleniyor…`,noOptionsText:`Seçenek yok`,openText:`Aç`}},MuiAlert:{defaultProps:{closeText:`Kapat`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. ${n?`sayfa`:`sayfaya git`}`:e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`}}}},bg=Am(`tl-TL`),xg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ipakita ang landas`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`,labelRowsPerPage:`Mga hilera bawat pahina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${bg(e)}–${bg(t)} ng ${n===-1?`higit sa ${bg(t)}`:bg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bituin${e===1?``:`s`}`,emptyLabelText:`Walang laman`}},MuiAutocomplete:{defaultProps:{clearText:`Maaliwalas`,closeText:`Isara`,loadingText:`Naglo-load…`,noOptionsText:`Walang mga pagpipilian`,openText:`Bukas`}},MuiAlert:{defaultProps:{closeText:`Isara`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pumunta sa`}pahina ${t}`:e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`}}}},Sg=Am(`uk-UA`),Cg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показати шлях сторінок`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`,labelRowsPerPage:`Рядків на сторінці:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Sg(e)}–${Sg(t)} з ${n===-1?`понад ${Sg(t)}`:Sg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зірок`,n=e%10;return n>1&&n<5?t=`Зірки`:n===1&&(t=`Зірка`),`${e} ${t}`},emptyLabelText:`Рейтинг відсутній`}},MuiAutocomplete:{defaultProps:{clearText:`Очистити`,closeText:`Згорнути`,loadingText:`Завантаження…`,noOptionsText:`Немає варіантів`,openText:`Розгорнути`}},MuiAlert:{defaultProps:{closeText:`Згорнути`}},MuiPagination:{defaultProps:{"aria-label":`Навігація сторінками`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Перейти на `}сторінку ${t}`:e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`}}}},wg=Am(`ur-PK`),Tg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`راستہ دکھائیں`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`,labelRowsPerPage:`ایک صفحے پر قطاریں:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${wg(t)} سے ذیادہ میں سے`:`${wg(n)} میں سے`} ${wg(e)} سے ${wg(t)} قطاریں`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستار${e===1?`ہ`:`ے`}`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`کلئیر`,closeText:`بند کریں`,loadingText:`لوڈ ہو رہا ہے۔۔۔`,noOptionsText:`کوئی آپشن نہیں`,openText:`کھولیں`}},MuiAlert:{defaultProps:{closeText:`بند کریں`}},MuiPagination:{defaultProps:{"aria-label":`صفحات کی ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`صفحہ نمبر ${t}${n?``:` پر جائیں`}`:e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`}}}},Eg=Am(`vi-VN`),Dg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mở ra`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`,labelRowsPerPage:`Số hàng mỗi trang:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Eg(e)}–${Eg(t)} trong ${n===-1?`nhiều hơn ${Eg(t)}`:Eg(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:`Không có dữ liệu`}},MuiAutocomplete:{defaultProps:{clearText:`Xóa`,closeText:`Đóng`,loadingText:`Đang tải…`,noOptionsText:`Không có lựa chọn nào`,openText:`Mở`}},MuiAlert:{defaultProps:{closeText:`Đóng`}},MuiPagination:{defaultProps:{"aria-label":`Thanh điều khiển trang`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Tới `}trang ${t}`:e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`}}}},Og=Am(`zh-CN`),kg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展开`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一页`:e===`last`?`最后一页`:e===`next`?`下一页`:`上一页`,labelRowsPerPage:`每页行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${Og(e)} 条到第 ${Og(t)} 条,${n===-1?`至少 ${Og(t)} 条`:`共 ${Og(n)} 条`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 颗星`,emptyLabelText:`无标签`}},MuiAutocomplete:{defaultProps:{clearText:`清空`,closeText:`关闭`,loadingText:`加载中……`,noOptionsText:`没有可用选项`,openText:`打开`}},MuiAlert:{defaultProps:{closeText:`关闭`}},MuiPagination:{defaultProps:{"aria-label":`分页导航`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`转到`}第 ${t} 页`:e===`first`?`转到第一页`:e===`last`?`转到最后一页`:e===`next`?`转到下一页`:`转到上一页`}}}},Ag=Am(`zh-HK`),jg={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁行數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${Ag(e)} 項至第 ${Ag(t)} 項,${n===-1?`超過 ${Ag(t)} 項`:`共 ${Ag(n)} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清除`,closeText:`關閉`,loadingText:`載入中……`,noOptionsText:`沒有可用選項`,openText:`開啟`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},Mg=Am(`zh-TW`),Ng={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`前往第一頁`:e===`last`?`前往最後一頁`:e===`next`?`前往下一頁`:`前往上一頁`,labelRowsPerPage:`每頁列數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${Mg(e)} 至 ${Mg(t)} 筆,${n===-1?`超過 ${Mg(t)} 筆`:`共 ${Mg(n)} 筆`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 顆星`,emptyLabelText:`未評分`}},MuiAutocomplete:{defaultProps:{clearText:`清除`,closeText:`關閉`,loadingText:`載入中…`,noOptionsText:`沒有可用選項`,openText:`開啟`}},MuiAlert:{defaultProps:{closeText:`關閉`}},MuiPagination:{defaultProps:{"aria-label":`分頁導覽`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`前往`}第 ${t} 頁`:e===`first`?`前往第一頁`:e===`last`?`前往最後一頁`:e===`next`?`前往下一頁`:`前往上一頁`}}}},Pg=e({amET:()=>Mm,arEG:()=>Pm,arSA:()=>Im,arSD:()=>Rm,azAZ:()=>zm,beBY:()=>Vm,bgBG:()=>Hm,bnBD:()=>Wm,caES:()=>Km,csCZ:()=>Jm,daDK:()=>Xm,deDE:()=>Qm,elGR:()=>eh,enUS:()=>th,esES:()=>rh,etEE:()=>ah,faIR:()=>sh,fiFI:()=>lh,frFR:()=>dh,heIL:()=>ph,hiIN:()=>hh,hrHR:()=>_h,huHU:()=>vh,hyAM:()=>yh,idID:()=>bh,isIS:()=>Sh,itIT:()=>wh,jaJP:()=>Eh,khKH:()=>Oh,kkKZ:()=>Ih,koKR:()=>Ah,kuCKB:()=>Mh,kuLatn:()=>Ph,mkMK:()=>Rh,msMS:()=>Bh,myMY:()=>Hh,nbNO:()=>Wh,neNP:()=>Kh,nlNL:()=>Xh,nnNO:()=>Jh,plPL:()=>Qh,psAF:()=>eg,ptBR:()=>ng,ptPT:()=>ig,roRO:()=>og,ruRU:()=>cg,siLK:()=>ug,skSK:()=>fg,srRS:()=>mg,svSE:()=>gg,thTH:()=>eee,tlTL:()=>xg,trTR:()=>yg,ukUA:()=>Cg,urPK:()=>Tg,viVN:()=>Dg,zhCN:()=>kg,zhHK:()=>jg,zhTW:()=>Ng});function Fg(e){let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]}function Ig(e){let[t,n,r]=Fg(e);return`${t} ${n} ${r}`}function tee(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function nee(e){let[t,n,r]=Fg(e),i=t/255,a=n/255,o=r/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=0,u=0,d=(s+c)/2,f=s-c;if(f!==0){switch(u=d>.5?f/(2-s-c):f/(s+c),s){case i:l=(a-o)/f+(a<o?6:0);break;case a:l=(o-i)/f+2;break;default:l=(i-a)/f+4}l/=6}return{h:l*360,s:u*100,l:d*100}}function Lg(e,t,n){let r=t/100,i=n/100,a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c,l,u;return e>=0&&e<60?[c,l,u]=[a,o,0]:e>=60&&e<120?[c,l,u]=[o,a,0]:e>=120&&e<180?[c,l,u]=[0,a,o]:e>=180&&e<240?[c,l,u]=[0,o,a]:e>=240&&e<300?[c,l,u]=[o,0,a]:[c,l,u]=[a,0,o],tee(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function Rg(e,t){return`rgba(${e} / ${t})`}function zg(e){return{...e,lighterChannel:Ig(e.lighter),lightChannel:Ig(e.light),mainChannel:Ig(e.main),darkChannel:Ig(e.dark),darkerChannel:Ig(e.darker),contrastTextChannel:Ig(e.contrastText)}}function Bg(e){let t=[50,100,200,300,400,500,600,700,800,900,950],n={};for(let r of t){let t=`${r}Channel`;n[t]=Ig(e[r])}return{...e,...n}}function Vg(e,t,n){return Math.max(t,Math.min(n,e))}function Hg(e){let t=nee(e),n=[{key:50,lDelta:40},{key:100,lDelta:32},{key:200,lDelta:24},{key:300,lDelta:16},{key:400,lDelta:8},{key:500,lDelta:0},{key:600,lDelta:-8},{key:700,lDelta:-16},{key:800,lDelta:-24},{key:900,lDelta:-32},{key:950,lDelta:-40}],r={};for(let{key:e,lDelta:i}of n){let n=Vg(t.l+i,5,95);r[e]=Lg(t.h,t.s,n)}return r}function Ug(e){let[t,n,r]=Fg(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Wg(e,t){let n=Ug(e),r=Ug(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Gg(e,t=`#FFFFFF`,n=`#000000`){return Wg(e,t)>=Wg(e,n)?t:n}function Kg(e,t){let n=e=>e.includes(`var(--`),r=e=>e.trim().endsWith(`%`),i={invalid:`[varAlpha]: Invalid opacity "${e}" for "${t}".`,range:`Must be a number between 0 and 1 (e.g., 0.48).`,format:`Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").`};if(typeof e==`string`){if(r(e))return e;if(n(e))return`calc(${e} * 100%)`;let t=parseFloat(e.trim());if(!isNaN(t)&&t>=0&&t<=1)return`${Number((t*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.format}`)}if(typeof e==`number`){if(e>=0&&e<=1)return`${Number((e*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.range}`)}throw Error(`${i.invalid}`)}function qg(e,t=1){if(!e?.trim())throw Error(`[varAlpha]: Color is undefined or empty!`);if(e.startsWith(`#`)||e.startsWith(`rgb(`)||e.startsWith(`rgba(`)||!e.includes(`var`)&&e.includes(`Channel`))throw Error([`[varAlpha]: Unsupported color format "${e}"`,`✅ Supported formats:`,` - RGB channels: "0 184 217"`,` - CSS variables: "var(--palette-primary-mainChannel)"`,` - currentColor`,`❌ Unsupported formats:`,` - Hex: "#00B8D9"`,` - RGB: "rgb(0, 184, 217)"`,` - RGBA: "rgba(0, 184, 217, 1)"`].join(`
49
- `));let n=Kg(t,e);return e.toLowerCase()===`currentcolor`?`color-mix(in srgb, currentColor ${n}, transparent)`:`rgba(${e} / ${n})`}var Jg={50:`#F7FAFC`,100:`#EBF2F5`,200:`#DBE6EB`,300:`#C3D3DB`,400:`#9CAEB8`,500:`#77878F`,600:`#4D595E`,700:`#262D30`,800:`#1B2124`,900:`#111417`,950:`#06080A`},Yg={50:`#EAF3FD`,100:`#C6DDFB`,200:`#A1C7F8`,300:`#7DB1F5`,400:`#589BF3`,500:`#3385F0`,600:`#2B71CC`,700:`#245DA8`,800:`#1C4984`,900:`#143560`,950:`#0A1B30`},Xg={50:`#E6F5F0`,100:`#BBE4D5`,200:`#8ED3BA`,300:`#62C29F`,400:`#35B084`,500:`#099F69`,600:`#088759`,700:`#066F49`,800:`#05573A`,900:`#04402A`,950:`#022015`},Zg={50:`#F2E4FE`,100:`#E6CAFE`,200:`#D6A8FD`,300:`#C686FC`,400:`#B663FB`,500:`#A641FA`,600:`#8D37D5`,700:`#742DAF`,800:`#5B2489`,900:`#421A64`,950:`#210D32`},Qg={50:`#F9E2E6`,100:`#F2C1CA`,200:`#E99AA8`,300:`#E17286`,400:`#D84A63`,500:`#D02241`,600:`#B11D37`,700:`#91182D`,800:`#721324`,900:`#530E1A`,950:`#3A0A12`},$g={50:`#FEEFE1`,100:`#FCDFC4`,200:`#FBCB9D`,300:`#F9B677`,400:`#F8A250`,500:`#F68D2A`,600:`#D17824`,700:`#AC631D`,800:`#874E17`,900:`#623811`,950:`#372412`},e_={50:`#E0F3FA`,100:`#BCE6F4`,200:`#90D6EC`,300:`#64C6E5`,400:`#39B6DD`,500:`#0DA6D6`,600:`#0B8DB6`,700:`#097496`,800:`#075B76`,900:`#054256`,950:`#03212B`},t_={white:`#FFFFFF`,black:`#000000`};function n_(e,t=`light`){let n=t===`dark`?e[400]:e[500],r=Gg(n,`#FFFFFF`,`#212121`);return zg(t===`dark`?{lighter:e[950],light:e[700],main:n,dark:e[300],darker:e[100],contrastText:r}:{lighter:e[50],light:e[400],main:n,dark:e[600],darker:e[900],contrastText:r})}function r_(e,t=`light`){return t===`dark`?{default:e[950],paper:e[900],neutral:e[800],elevation1:e[800],elevation2:e[700],elevation3:e[600],elevation4:e[500],menu:e[900],menuElevation1:e[800],menuElevation2:e[700]}:{default:`#FFFFFF`,paper:`#FFFFFF`,neutral:e[50],elevation1:e[50],elevation2:e[100],elevation3:e[200],elevation4:e[300],menu:`#FFFFFF`,menuElevation1:e[50],menuElevation2:e[100]}}function i_(e,t=`light`){let n=t===`dark`?{primary:e[50],secondary:e[300],disabled:e[500]}:{primary:e[900],secondary:e[600],disabled:e[400]};return{...n,primaryChannel:Ig(n.primary),secondaryChannel:Ig(n.secondary),disabledChannel:Ig(n.disabled)}}function a_(e,t=`light`){return t===`dark`?{active:e[400],hover:e[700],selected:e[700],disabled:e[600],disabledBackground:e[800],focus:e[600]}:{active:e[500],hover:e[100],selected:e[100],disabled:e[400],disabledBackground:e[200],focus:e[300]}}function o_(e,t,n=`light`){let r=Ig(t);return{listItemHover:Rg(e,n===`dark`?.08:.5),buttonHover:Rg(e,n===`dark`?.12:.7),textFieldHover:Rg(e,n===`dark`?.12:.7),text:{secondary:Rg(r,.76),disabled:Rg(r,.4)},overlay:Rg(e,n===`dark`?.16:.7)}}function s_(e){return{chGrey:Bg(e.grey),chRed:Bg(e.red),chBlue:Bg(e.blue),chGreen:Bg(e.green),chOrange:Bg(e.orange),chLightBlue:Bg(e.lightBlue),chPurple:Bg(e.purple)}}function c_(e){let{primary:t,secondary:n,info:r,success:i,warning:a,error:o,grey:s,mode:c,backgroundDefault:l,paperColor:u}=e,d=Bg(s),f=r_(s,c),p=i_(s,c),m=a_(s,c);l&&(f.default=l),u&&(f.paper=u,f.menu=u);let h={black:t_.black,white:t_.white,blackChannel:Ig(t_.black),whiteChannel:Ig(t_.white)},g=o_(h.whiteChannel,p.primary,c),_=s_({grey:s,red:Qg,blue:Yg,green:Xg,orange:$g,lightBlue:e_,purple:Zg}),v=c===`dark`?s[700]:s[300],y=Rg(Ig(s[c===`dark`?700:300]),.6),b=Rg(Ig(s[700]),0);return{mode:c,common:h,grey:d,primary:n_(t,c),secondary:n_(n,c),info:n_(r,c),success:n_(i,c),warning:n_(a,c),error:n_(o,c),neutral:n_(s,c),background:f,text:p,action:m,divider:v,dividerLight:y,menuDivider:b,vibrant:g,chart:_}}var l_=c_({primary:Yg,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`light`}),u_=c_({primary:Yg,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`dark`});function d_(e,t){return e?{"&:hover":{...t,...typeof e==`object`?e:{}}}:{}}function f_(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t==="default"){let e={color:i[800],backgroundColor:i[300]},t=d_(n?.hover,{backgroundColor:i[400]});return{...e,...t}}if(t===`inherit`){let e={color:r.common.white,backgroundColor:i[800]},t=d_(n?.hover,{backgroundColor:i[700]});return{...e,...t}}if(t===`white`||t===`black`){let e=t===`white`?`black`:`white`,i={color:r.common[e],backgroundColor:r.common[t]},a=d_(n?.hover,{opacity:.8});return{...i,...a}}let a=r[t],o={color:a.contrastText,backgroundColor:a.main},s=d_(n?.hover,{backgroundColor:a.dark});return{...o,...s}}function ree(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t==="default")return{...f_(e,`default`,n),boxShadow:`none`};if(t===`inherit`){let e=i[`500Channel`]||`145, 158, 171`,t={boxShadow:`none`,backgroundColor:qg(e,.16)},r=d_(n?.hover,{backgroundColor:qg(e,.32)});return{...t,...r}}if(t===`white`||t===`black`){let e={boxShadow:`none`,color:r.common[t],backgroundColor:qg(`currentColor`,.08)},i=d_(n?.hover,{backgroundColor:qg(`currentColor`,.16)});return{...e,...i}}let a=r[t],o=a.mainChannel||r.primary.mainChannel||`51, 133, 240`,s={boxShadow:`none`,color:a.dark,backgroundColor:qg(o,.16)},c=d_(n?.hover,{backgroundColor:qg(o,.32)});return{...s,...c}}function iee(e){let{images:t,sizes:n,positions:r,colors:i,direction:a=`to bottom`}=e;return i&&i.length>0?{background:`linear-gradient(${a}, ${i.join(`, `)})`}:t&&t.length>0?{backgroundImage:t.join(`, `),backgroundSize:n?.join(`, `)||`cover`,backgroundPosition:r?.join(`, `)||`center`,backgroundRepeat:`no-repeat`}:{}}function p_(e){let{blur:t=20,color:n=`rgba(255, 255, 255, 0.8)`}=e;return{backdropFilter:`blur(${t}px)`,WebkitBackdropFilter:`blur(${t}px)`,backgroundColor:n}}function m_(e,t){let{blur:n=20,color:r,dropdown:i}=t??{},a=e.vars?.palette||e.palette,o={backdropFilter:`blur(${n}px)`,WebkitBackdropFilter:`blur(${n}px)`,backgroundColor:r??qg(`255, 255, 255`,.9)};if(i){let t=e.customShadows,n=a.grey[`500Channel`]||`145, 158, 171`;return{...o,padding:e.spacing(.5),boxShadow:t?.dropdown||`0 0 2px 0 rgba(${n}, 0.24), -20px 20px 40px -4px rgba(${n}, 0.24)`,borderRadius:`${Number(e.shape.borderRadius)*1.25}px`}}return o}function h_(e){let t=e.vars?.palette||e.palette;return{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:Number(e.shape.borderRadius)*.75,"&:not(:last-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium,backgroundColor:t.action.selected,"&:hover":{backgroundColor:t.action.hover}}}}function g_(e){let{lines:t,lineHeight:n=1.5}=e;return{overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t,textOverflow:`ellipsis`,...n&&{lineHeight:n}}}function __(e,...t){return{background:`linear-gradient(${e}, ${t.join(`, `)})`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,textFillColor:`transparent`,display:`inline-block`}}function v_(e){let{color:t=`linear-gradient(135deg, #FF5630, #00AB55)`,borderWidth:n=2,borderRadius:r=0}=e;return{position:`relative`,border:`none`,borderRadius:r,"&::before":{content:`""`,position:`absolute`,inset:0,borderRadius:`inherit`,padding:n,background:t,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,maskComposite:`exclude`,pointerEvents:`none`}}}function y_(e,{autoHide:t=!0}={}){let n=(e.vars?.palette||e.palette).grey[`500Channel`]||`145, 158, 171`;return{scrollbarWidth:`thin`,scrollbarColor:`${qg(n,.4)} transparent`,"&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-track":{backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:qg(n,.4),borderRadius:3},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:qg(n,.65)},"&::-webkit-scrollbar-corner":{backgroundColor:`transparent`},"@media (hover: hover) and (pointer: fine) and (forced-colors: none)":{scrollbarColor:t?`transparent transparent`:`${qg(n,.4)} transparent`,"&::-webkit-scrollbar-thumb":{backgroundColor:t?`transparent`:qg(n,.4)},"&:hover, &:focus-within":{scrollbarColor:`${qg(n,.4)} transparent`,"&::-webkit-scrollbar-thumb":{backgroundColor:qg(n,.4)},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:qg(n,.65)}}},"@media (forced-colors: active)":{scrollbarColor:`auto`,scrollbarWidth:`auto`,"&::-webkit-scrollbar-thumb":{backgroundColor:`CanvasText`}}}}var b_={toolbar:{minHeight:56,"@media (min-width:0px)":{"@media (orientation: landscape)":{minHeight:48}},"@media (min-width:600px)":{minHeight:64}},hideScrollX:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowX:`auto`,"&::-webkit-scrollbar":{display:`none`}},hideScrollY:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowY:`auto`,"&::-webkit-scrollbar":{display:`none`}},bgBlur:p_,bgGradient:iee,maxLine:g_,softStyles:ree,filledStyles:f_,paperStyles:m_,menuItemStyles:h_,varAlpha:qg,textGradient:__,borderGradient:v_,scrollbarStyles:y_};function x_(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var S_=Eu,C_=Bc,w_=Au;function T_(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var E_=ac;function D_(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=S.useRef(t!==void 0),[o,s]=S.useState(n);return[a?t:o,S.useCallback(e=>{a||s(e)},[])]}var O_=D_,k_=Ou;function A_(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function j_(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{A_(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=z(r?.className,i?.className,a?.className),s=n(a,i),c={...i,...a,...s};return o&&(c.className=o),i?.style&&a?.style&&(c.style={...i.style,...a.style}),i?.sx&&a?.sx&&(c.sx=[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]),c};let r=t,i=n(e,r),a=z(r?.className,e?.className),o={...t,...e,...i};return a&&(o.className=a),r?.style&&e?.style&&(o.style={...r.style,...e.style}),r?.sx&&e?.sx&&(o.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),o}function M_(e){return typeof e.main==`string`}function N_(e,t=[]){if(!M_(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function P_(e=[]){return([,t])=>t&&N_(t,e)}function F_(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function I_(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return S.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var L_={};function R_(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=S.useRef(null),m=l===!0,h=I_({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=S.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=S.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:S.useCallback((e=L_)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{u&&e.stopPropagation(),a?e.preventDefault():t?.(e)},s=e=>{m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g())&&(e.key===` `?e.preventDefault():e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())))},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var z_={};function B_(e,t){let n=S.useRef(z_);return n.current===z_&&(n.current=e(t)),n}var V_=class e{ref={current:null};shouldMount=!1;mounted=null;didMount=!1;setShouldMount=null;static create(){return new e}static use(){let t=B_(e.create).current,[n,r]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=r,S.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=U_(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&(this.ref.current!==null&&(this.didMount=!0),this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function H_(){return V_.use()}function U_(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var W_=[];function G_(e){S.useEffect(e,W_)}var K_=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function q_(){let e=B_(K_.create).current;return G_(e.disposeEffect),e}function J_(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=S.useState(!1),f=q_(),p=S.useRef(!1),m=S.useRef(c);m.current=c;let h=c!=null,g=z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=z(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),S.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,R.jsx)(`span`,{className:g,style:_,children:(0,R.jsx)(`span`,{className:v})})}var Y_=V(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),X_=`(prefers-reduced-motion: reduce)`,Z_=0,Q_=`0ms`,$_=()=>{},ev=()=>!1,tv=()=>!0,nv=()=>$_;function rv(e){let[t,n]=S.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),Ss(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(X_),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var iv={...S}.useSyncExternalStore;function av(e){let t=e?tv:ev,[n,r]=S.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[ev,nv];let t=window.matchMedia(X_);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return iv(r,n,t)}var ov=iv===void 0?rv:av;function sv(e,t){let n=ov(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return S.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:Z_,delay:Q_}:e}}),[r])}var cv=550,lv={},uv=[],dv=()=>{};function fv(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function pv({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var aee=Ui`
50
- 0% {
51
- transform: scale(0);
52
- opacity: 0.1;
53
- }
54
-
55
- 100% {
56
- transform: scale(1);
57
- opacity: 0.3;
58
- }
59
- `,oee=Ui`
60
- 0% {
61
- opacity: 1;
62
- }
63
-
64
- 100% {
65
- opacity: 0;
66
- }
67
- `,see=Ui`
68
- 0% {
69
- transform: scale(1);
70
- }
71
-
72
- 50% {
73
- transform: scale(0.92);
74
- }
75
-
76
- 100% {
77
- transform: scale(1);
78
- }
79
- `;function cee(e){if(e.motion.reducedMotion===`always`)return null;let t=Hi`
80
- &.${Y_.rippleVisible} {
81
- animation-name: ${aee};
82
- animation-duration: ${cv}ms;
83
- animation-timing-function: ${e.transitions.easing.easeInOut};
84
- }
85
-
86
- &.${Y_.ripplePulsate} {
87
- animation-duration: ${e.transitions.duration.shorter}ms;
88
- }
89
-
90
- & .${Y_.childLeaving} {
91
- animation-name: ${oee};
92
- animation-duration: ${cv}ms;
93
- animation-timing-function: ${e.transitions.easing.easeInOut};
94
- }
95
-
96
- & .${Y_.childPulsate} {
97
- animation-name: ${see};
98
- animation-duration: 2500ms;
99
- animation-timing-function: ${e.transitions.easing.easeInOut};
100
- animation-iteration-count: infinite;
101
- animation-delay: 200ms;
102
- }
103
- `;return e.motion.reducedMotion===`system`?Hi`
104
- @media (prefers-reduced-motion: no-preference) {
105
- ${t}
106
- }
107
- `:t}var lee=G(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),uee=G(J_,{name:`MuiTouchRipple`,slot:`Ripple`})`
108
- opacity: 0;
109
- position: absolute;
110
-
111
- &.${Y_.rippleVisible} {
112
- opacity: 0.3;
113
- transform: scale(1);
114
- }
115
-
116
- /*
117
- * Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
118
- * element with equal specificity, so the later rule wins. 'child' must come
119
- * before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
120
- * (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
121
- * it relies on this static 'opacity: 0' to disappear on blur instead of
122
- * lingering until removal.
123
- */
124
- & .${Y_.child} {
125
- opacity: 1;
126
- display: block;
127
- width: 100%;
128
- height: 100%;
129
- border-radius: 50%;
130
- background-color: currentColor;
131
- }
132
-
133
- & .${Y_.childLeaving} {
134
- opacity: 0;
135
- }
136
-
137
- & .${Y_.childPulsate} {
138
- position: absolute;
139
- /* @noflip */
140
- left: 0px;
141
- top: 0;
142
- }
143
-
144
- ${({theme:e})=>cee(e)}
145
- `,dee=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTouchRipple`}),r=sv(Bu().motion.reducedMotion,!1),{center:i=!1,classes:a=lv,className:o,...s}=n,[c,l]=S.useState({items:uv,order:uv}),u=c.items,d=S.useRef(0),f=S.useRef(null),p=S.useRef(!1);G_(()=>(p.current=!0,()=>{p.current=!1})),S.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=S.useRef(!1),h=q_(),g=S.useRef(null),_=S.useRef(null),v=k_(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:fv(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=k_(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:fv(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),b=k_((e=lv,t=lv,n=dv)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=pv({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),x=k_(()=>{b(lv,{pulsate:!0})}),C=k_((e,t)=>{h.clear(),e?.type===`touchend`&&g.current?(g.current(),g.current=null,h.start(0,()=>{C(e,t)})):(g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:fv(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t)});S.useImperativeHandle(t,()=>({pulsate:x,start:b,stop:C}),[x,b,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,R.jsx)(lee,{className:z(Y_.root,a.root,o),ref:_,...s,children:T.map(e=>(0,R.jsx)(uee,{classes:{ripple:z(a.ripple,Y_.ripple),rippleVisible:z(a.rippleVisible,Y_.rippleVisible),ripplePulsate:z(a.ripplePulsate,Y_.ripplePulsate),child:z(a.child,Y_.child),childLeaving:z(a.childLeaving,Y_.childLeaving),childPulsate:z(a.childPulsate,Y_.childPulsate)},timeout:r.shouldReduceMotion?0:cv,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function fee(e){return B(`MuiButtonBase`,e)}var mv=V(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),pee=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=U({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},fee,a);return n&&!i&&r&&(o.root+=` ${r}`),o},mee=G(`button`,{name:`MuiButtonBase`,slot:`Root`})(K(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${mv.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...xl,[`&.${mv.focusVisible}`]:e.focusVisible}}]}))),hv=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,internalDisabledThemeFocusVisible:g=!1,LinkComponent:_=`a`,nativeButton:v,onBlur:y,onClick:b,onContextMenu:x,onDragLeave:C,onFocus:w,onFocusVisible:T,onKeyDown:E,onKeyUp:D,onMouseDown:O,onMouseLeave:k,onMouseUp:A,onTouchEnd:j,onTouchMove:M,onTouchStart:N,tabIndex:P=0,TouchRippleProps:F,touchRippleRef:ee,type:te,...ne}=n,re=!!(ne.href||ne.to),ie=!!ne.formAction,ae=s;ae===`button`&&re&&(ae=_);let oe=typeof ae==`string`?ae===`button`:h??!1,se=v??oe,ce=H_(),le=Gu(ce.ref,ee),[ue,de]=S.useState(!1);(c||m)&&ue&&de(!1);let fe=k_(e=>{d&&!e.repeat&&ue&&e.key===` `&&ce.stop(e,()=>{ce.start(e)})}),pe=k_(e=>{d&&e.key===` `&&ue&&!e.defaultPrevented&&ce.stop(e,()=>{ce.pulsate(e)})}),{getButtonProps:me,rootRef:I}=R_({nativeButton:se,nativeButtonProp:v,internalNativeButton:oe,allowInferredHostMismatch:re||typeof ae==`string`,disabled:c,type:te,hasFormAction:ie,tabIndex:P,onBeforeKeyDown:fe,onBeforeKeyUp:pe}),{onClick:he,onKeyDown:ge,onKeyUp:_e,...ve}=me({onClick:b,onKeyDown:E,onKeyUp:D});S.useImperativeHandle(r,()=>({focusVisible:()=>{de(!0),I.current.focus()}}),[I]);let ye=ce.shouldMount&&!l&&!c;S.useEffect(()=>{ue&&d&&!l&&ce.pulsate()},[l,d,ue,ce]);let be=gv(ce,`start`,O,u),xe=gv(ce,`stop`,x,u),Se=gv(ce,`stop`,C,u),Ce=gv(ce,`stop`,A,u),we=gv(ce,`stop`,e=>{ue&&e.preventDefault(),k&&k(e)},u),Te=gv(ce,`start`,N,u),Ee=gv(ce,`stop`,j,u),De=gv(ce,`stop`,M,u),Oe=gv(ce,`stop`,e=>{F_(e.target)||de(!1),y&&y(e)},!1),ke=k_(e=>{I.current||=e.currentTarget,!m&&F_(e.target)&&(de(!0),T&&T(e)),w&&w(e)}),Ae={};re&&(Ae.tabIndex=c?-1:P,c&&(Ae[`aria-disabled`]=c),Ae.type=te);let je=Gu(t,I),Me={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:P,focusVisible:ue,internalDisabledThemeFocusVisible:g},Ne=pee(Me);return(0,R.jsxs)(mee,{as:ae,className:z(Ne.root,o),ownerState:Me,onBlur:Oe,onClick:he,onContextMenu:xe,onFocus:ke,onKeyDown:ge,onKeyUp:_e,onMouseDown:be,onMouseLeave:we,onMouseUp:Ce,onDragLeave:Se,onTouchEnd:Ee,onTouchMove:De,onTouchStart:Te,ref:je,...re?Ae:ve,...ne,children:[a,ye?(0,R.jsx)(dee,{ref:le,center:i,...F}):null]})});function gv(e,t,n,r=!1){return k_(i=>(n&&n(i),r||e[t](i),!0))}function hee(e){return B(`MuiCircularProgress`,e)}V(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var _v=44,vv=Ui`
146
- 0% {
147
- transform: rotate(0deg);
148
- }
149
-
150
- 100% {
151
- transform: rotate(360deg);
152
- }
153
- `,yv=Ui`
154
- 0% {
155
- stroke-dasharray: 1px, 200px;
156
- stroke-dashoffset: 0;
157
- }
158
-
159
- 50% {
160
- stroke-dasharray: 100px, 200px;
161
- stroke-dashoffset: -15px;
162
- }
163
-
164
- 100% {
165
- stroke-dasharray: 1px, 200px;
166
- stroke-dashoffset: -126px;
167
- }
168
- `,bv=typeof vv==`string`?null:Hi`
169
- animation: ${vv} 1.4s linear infinite;
170
- `,xv=typeof yv==`string`?null:Hi`
171
- animation: ${yv} 1.4s ease-in-out infinite;
172
- `,Sv=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return U({root:[`root`,n,`color${J(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},hee,t)},Cv=G(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(K(({theme:e})=>{let t=gd(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{..._d(e,`transform`)}},{props:{variant:`indeterminate`},style:bv||{animation:`${vv} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),wv=G(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Tv=G(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(K(({theme:e})=>{let t=gd(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{..._d(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:xv||{animation:`${yv} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),Ev=G(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(K(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Dv=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=Sv(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((_v-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,R.jsx)(Cv,{className:z(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,R.jsxs)(wv,{className:v.svg,ownerState:_,viewBox:`${_v/2} ${_v/2} ${_v} ${_v}`,children:[o?(0,R.jsx)(Ev,{className:v.track,ownerState:_,cx:_v,cy:_v,r:(_v-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,R.jsx)(Tv,{className:v.circle,style:y,ownerState:_,cx:_v,cy:_v,r:(_v-d)/2,fill:`none`,strokeWidth:d})]})})});function Ov(e){return B(`MuiIconButton`,e)}var kv=V(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),Av=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return U({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${J(r)}`,i&&`edge${J(i)}`,`size${J(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Ov,t)},jv=G(hv,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${J(n.color)}`],n.edge&&t[`edge${J(n.edge)}`],t[`size${J(n.size)}`]]}})(K(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,..._d(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),K(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${kv.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${kv.loading}`]:{color:`transparent`}}))),Mv=G(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),Nv=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=E_(u),h=f??(0,R.jsx)(Dv,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=Av(g);return(0,R.jsxs)(jv,{id:d?m:u,className:z(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,R.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,R.jsx)(Mv,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function Pv(e){let t=B_(()=>Fv(e)).current;return t.next=e,Ss(t.effect),t}function Fv(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Iv=S.createContext(null);function Lv(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function Rv(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=Lv(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function zv(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=S.useContext(Iv),x=b&&!b.isMounting?r:n,[C,w]=S.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),T=S.useRef(C);T.current=C,t&&C===`unmounted`&&(T.current=`exited`,w(`exited`));let E=S.useRef(t&&x),D=S.useRef(!1),O=S.useRef(null),k=S.useRef(C),A=S.useRef(!1),j=S.useRef(l),M=Pv({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),N=S.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),P=S.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),F=S.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=P(()=>{r(),T.current=e,w(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=M.current.nodeRef.current,s=M.current.addEndListener,c=M.current.getAutoTimeout!==void 0,l=M.current.getAutoTimeout?.(),u=Rv({currentStatus:t,isAppearing:A.current,timeout:M.current.timeout,autoTimeout:l}),d=j.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};o?s?(f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i)):p(d?0:u??0):p(0)},[P,M]),ee=S.useCallback(e=>{let t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;A.current=n,!e&&!t.enter?(T.current=`entered`,w(`entered`)):(j.current=t.reduceMotion,t.onEnter?.(n),T.current=`entering`,w(`entering`))},[M]),te=S.useCallback(()=>{let e=M.current;e.exit?(j.current=e.reduceMotion,e.onExit?.(),T.current=`exiting`,w(`exiting`)):(T.current=`exited`,w(`exited`))},[M]),ne=S.useCallback((e,t)=>{if(N(),t===`entering`){let t=M.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&rd(e)}ee(e)}else te()},[N,ee,te,M]);return Ss(()=>(D.current=!0,E.current&&(E.current=!1,ne(!0,`entering`)),()=>{D.current=!1,N()}),[N,ne]),Ss(()=>{if(!D.current)return;let e=T.current;t?e!==`entering`&&e!==`entered`&&ne(!1,`entering`):e===`entering`||e===`entered`?ne(!1,`exiting`):e===`exited`&&o&&(T.current=`unmounted`,w(`unmounted`))},[t,C,o,ne]),Ss(()=>{if(C===`unmounted`||k.current===`unmounted`){k.current=C;return}let e=k.current!==C;e&&(k.current=C);let t=M.current;C===`entering`?(e&&t.onEntering?.(A.current),O.current===null&&T.current===C&&F(`entered`,`entering`)):C===`exiting`?(e&&t.onExiting?.(),O.current===null&&T.current===C&&F(`exited`,`exiting`)):C===`entered`&&e?t.onEntered?.(A.current):C===`exited`&&e&&t.onExited?.()},[M,F,C]),C===`unmounted`?null:(0,R.jsx)(Iv.Provider,{value:null,children:v(C,y)})}function Bv(e,t,n){return e===void 0||Tu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vv(e,t,n){return typeof e==`function`?e(t,n):e}function Hv(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];A_(i,e[i])&&(t[i]=e[i])}return t}function Uv(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];A_(i,e[i])||(t[i]=e[i])}return t}function Wv(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=z(n?.className,a,i?.className,r?.className),t={...n,...i,...r};if(e.length>0&&(t.className=e),n?.style||i?.style||r?.style){let e={...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}let o=Hv({...i,...r}),s=Uv(r),c=Uv(i),l=t(o),u=z(l?.className,n?.className,a,i?.className,r?.className),d={...l,...n,...c,...s};if(u.length>0&&(d.className=u),l?.style||n?.style||i?.style||r?.style){let e={...l?.style,...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:l.ref}}function Gv(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Vv(d[e],i),{props:{component:h,...g},internalRef:_}=Wv({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Du(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Bv(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function Kv(e){return B(`MuiCollapse`,e)}V(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var qv={},Jv=e=>{let{orientation:t,classes:n}=e;return U({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Kv,n)},Yv=G(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(K(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Xv=G(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Zv=G(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Qv=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,disablePrefersReducedMotion:c=!1,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,orientation:_=`vertical`,slots:v=qv,slotProps:y=qv,style:b,timeout:x=Hl.standard,TransitionComponent:C=zv,...w}=n,T={...n,orientation:_,collapsedSize:o},E=Jv(T),D=Bu(),O=S.useRef(null),k=S.useRef(null),A=typeof o==`number`?`${o}px`:o,j=_===`horizontal`,M=j?`width`:`height`,N=sv(D.motion.reducedMotion,c),P=S.useRef(null),F=Gu(t,P),ee=()=>O.current?O.current[j?`clientWidth`:`clientHeight`]:0,te=pd(P,(e,t)=>{O.current&&j&&(O.current.style.position=`absolute`),e.style[M]=A,d&&d(e,t)}),ne=pd(P,(e,t)=>{let n=ee();O.current&&j&&(O.current.style.position=``);let{duration:r,easing:i}=hd({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`&&!N.shouldReduceMotion){let e=D.transitions.getAutoHeightDuration(n);k.current=e}else k.current=null;let a=N.getTransitionTiming({duration:k.current??r,delay:void 0});e.style.transitionDuration=typeof a.duration==`string`?a.duration:`${a.duration}ms`,e.style[M]=`${n}px`,e.style.transitionTimingFunction=i,p&&p(e,t)}),re=pd(P,(e,t)=>{e.style[M]=`auto`,f&&f(e,t)}),ie=pd(P,e=>{e.style[M]=`${ee()}px`,m&&m(e)}),ae=pd(P,h),oe=pd(P,e=>{let t=ee(),{duration:n,easing:r}=hd({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`&&!N.shouldReduceMotion){let e=D.transitions.getAutoHeightDuration(t);k.current=e}else k.current=null;let i=N.getTransitionTiming({duration:k.current??n,delay:void 0});e.style.transitionDuration=typeof i.duration==`string`?i.duration:`${i.duration}ms`,e.style[M]=A,e.style.transitionTimingFunction=r,g&&g(e)}),se=r?e=>{r(P.current,e)}:void 0,ce={slots:v,slotProps:y,component:s},[le,ue]=Gv(`root`,{ref:F,className:z(E.root,a),elementType:Yv,externalForwardedProps:ce,ownerState:T,additionalProps:{style:{[j?`minWidth`:`minHeight`]:A,...b}}}),[de,fe]=Gv(`wrapper`,{ref:O,className:E.wrapper,elementType:Xv,externalForwardedProps:ce,ownerState:T}),[pe,me]=Gv(`wrapperInner`,{className:E.wrapperInner,elementType:Zv,externalForwardedProps:ce,ownerState:T});return(0,R.jsx)(C,{in:u,onEnter:te,onEntered:re,onEntering:ne,onExit:ie,onExited:ae,onExiting:oe,addEndListener:se,getAutoTimeout:x===`auto`?()=>k.current:void 0,reduceMotion:N.shouldReduceMotion,nodeRef:P,timeout:x===`auto`?null:x,...w,children:(e,{ownerState:t,...n})=>{let r={...T,state:e};return(0,R.jsx)(le,{...ue,className:z(ue.className,{entered:E.entered,exited:!u&&A===`0px`&&E.hidden}[e]),ownerState:r,...n,children:(0,R.jsx)(de,{...fe,ownerState:r,children:(0,R.jsx)(pe,{...me,ownerState:r,children:i})})})}})});Qv&&(Qv.muiSupportAuto=!0);function $v(e){return B(`MuiPaper`,e)}V(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var ey=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return U({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},$v,i)},ty=G(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(K(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,..._d(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),ny=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiPaper`}),r=Bu(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=ey(u);return(0,R.jsx)(ty,{as:a,ownerState:u,className:z(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${H(`#fff`,ru(o))}, ${H(`#fff`,ru(o))})`}},...l.style}})}),ry=V(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),iy=S.createContext();function ay(e){return B(`MuiTableRow`,e)}var oy=V(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),sy=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return U({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},ay,t)},cy=G(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(K(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${oy.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${oy.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),ly=`tr`,uy=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableRow`}),{className:r,component:i=ly,hover:a=!1,selected:o=!1,...s}=n,c=S.useContext(iy),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`},u=sy(l);return(0,R.jsx)(cy,{as:i,ref:t,className:z(u.root,r),role:i===ly?null:`row`,ownerState:l,...s})}),dy=S.createContext();function fy(e){return B(`MuiTableCell`,e)}var py=V(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),my=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return U({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${J(r)}`,i!==`normal`&&`padding${J(i)}`,`size${J(a)}`]},fy,t)},hy=G(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.padding!==`normal`&&t[`padding${J(n.padding)}`],n.align!==`inherit`&&t[`align${J(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(K(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
173
- ${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${py.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),gy=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=S.useContext(dy),p=S.useContext(iy),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=my(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,R.jsx)(hy,{as:h,ref:t,className:z(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})}),_y=wf((0,R.jsx)(`path`,{d:`M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z`}),`CheckCircle`),vy=wf((0,R.jsx)(`path`,{d:`M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`}),`Warning`);function yy(e){return B(`MuiStepIcon`,e)}var by=V(`MuiStepIcon`,[`root`,`active`,`completed`,`error`,`text`]),xy,Sy=e=>{let{classes:t,active:n,completed:r,error:i}=e;return U({root:[`root`,n&&`active`,r&&`completed`,i&&`error`],text:[`text`]},yy,t)},Cy=G(X,{name:`MuiStepIcon`,slot:`Root`})(K(({theme:e})=>({display:`block`,..._d(e,`color`,{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${by.completed}, &.${by.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${by.error}`]:{color:(e.vars||e).palette.error.main}}))),wy=G(`text`,{name:`MuiStepIcon`,slot:`Text`})(K(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),Ty=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStepIcon`}),{active:r=!1,className:i,completed:a=!1,error:o=!1,icon:s,...c}=n,l={...n,active:r,completed:a,error:o},u=Sy(l);if(typeof s==`number`||typeof s==`string`){let e=z(i,u.root);return o?(0,R.jsx)(Cy,{as:vy,className:e,ref:t,ownerState:l,...c}):a?(0,R.jsx)(Cy,{as:_y,className:e,ref:t,ownerState:l,...c}):(0,R.jsxs)(Cy,{className:e,ref:t,ownerState:l,...c,children:[xy||=(0,R.jsx)(`circle`,{cx:`12`,cy:`12`,r:`12`}),(0,R.jsx)(wy,{className:u.text,x:`12`,y:`12`,textAnchor:`middle`,dominantBaseline:`central`,ownerState:l,children:s})]})}return s}),Ey=S.createContext({}),Dy=S.createContext({});function Oy(){return S.useContext(Dy)}function ky(e){return B(`MuiStepLabel`,e)}var Ay=V(`MuiStepLabel`,[`root`,`horizontal`,`vertical`,`label`,`active`,`completed`,`error`,`disabled`,`iconContainer`,`alternativeLabel`,`labelContainer`]),jy=e=>{let{classes:t,orientation:n,active:r,completed:i,error:a,disabled:o,alternativeLabel:s}=e;return U({root:[`root`,n,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],label:[`label`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],iconContainer:[`iconContainer`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],labelContainer:[`labelContainer`,s&&`alternativeLabel`]},ky,t)},My=G(`span`,{name:`MuiStepLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:`flex`,alignItems:`center`,[`&.${Ay.disabled}`]:{cursor:`default`},variants:[{props:{orientation:`vertical`},style:{textAlign:`left`,padding:`8px 0`}},{props:{alternativeLabel:!0},style:{flexDirection:`column`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{flexDirection:`row-reverse`}}]}),Ny=G(`span`,{name:`MuiStepLabel`,slot:`Label`})(K(({theme:e})=>({...e.typography.body2,display:`block`,..._d(e,`color`,{duration:e.transitions.duration.shortest}),[`&.${Ay.active}, &.${Ay.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ay.alternativeLabel}`]:{marginTop:16},[`&.${Ay.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${Ay.alternativeLabel}`]:{marginTop:0}}}]}))),Py=G(`span`,{name:`MuiStepLabel`,slot:`IconContainer`})({flexShrink:0,display:`flex`,paddingRight:8,[`&.${Ay.alternativeLabel}`]:{paddingRight:0},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{paddingRight:0,paddingLeft:8}}]}),Fy=G(`span`,{name:`MuiStepLabel`,slot:`LabelContainer`})(K(({theme:e})=>({width:`100%`,color:(e.vars||e).palette.text.secondary,[`&.${Ay.alternativeLabel}`]:{textAlign:`center`},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${Ay.alternativeLabel}`]:{textAlign:`right`}}}]}))),Iy=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStepLabel`}),{children:r,className:i,error:a=!1,icon:o,optional:s,slots:c={},slotProps:l={},...u}=n,{alternativeLabel:d,orientation:f}=Oy(),{active:p,disabled:m,completed:h,icon:g}=S.useContext(Ey),_=o||g,v={...n,active:p,alternativeLabel:d,completed:h,disabled:m,error:a,orientation:f},y=jy(v),b={slots:c,slotProps:l},[x,C]=Gv(`root`,{elementType:My,externalForwardedProps:{...b,...u},ownerState:v,ref:t,className:z(y.root,i)}),[w,T]=Gv(`label`,{elementType:Ny,externalForwardedProps:b,ownerState:v}),[E,D]=Gv(`stepIcon`,{elementType:_?Ty:void 0,externalForwardedProps:b,ownerState:v});return(0,R.jsxs)(x,{...C,children:[_||E?(0,R.jsx)(Py,{className:y.iconContainer,ownerState:v,children:(0,R.jsx)(E,{completed:h,active:p,error:a,icon:_,...D})}):null,(0,R.jsxs)(Fy,{className:y.labelContainer,ownerState:v,children:[r?(0,R.jsx)(w,{...T,className:z(y.label,T?.className),children:r}):null,s]})]})});Iy.muiName=`StepLabel`;var Ly=S.createContext(void 0);function Ry(){let e=S.useContext(Ly);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var zy=Object.is;function By(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!zy(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var Vy=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function Hy(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=nb,wrap:o=!0}=e,[s,c]=S.useState(t),[l,u]=S.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=S.useRef(null),p=S.useRef(new Map),[m,h]=S.useState(0),g=S.useMemo(()=>$y(p.current),[m]),_=Wy(d,g,a,n),v=S.useRef(_);v.current=_;let y=S.useCallback(()=>{let e=$y(p.current);return Xy(e,Wy(v.current,e,a,n))},[n,a]),b=S.useCallback(()=>p.current,[]),x=Ou(e=>{By(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),C=Ou(e=>{p.current.delete(e)&&h(e=>e+1)}),w=Ou(e=>{c(e)}),T=S.useCallback(e=>v.current===e,[]),E=S.useCallback((e,t,n,r)=>{let i=Jy(eb(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=S.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=eb(p.current),r=Qy(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!Vy.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=eb(p.current),c=Ju(ku(f.current)),l=c===f.current,u=qy(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}E(u,d,o)},ref:ab(e,e=>{f.current=e})}),[E,i,r,o]),O=S.useCallback(e=>{let t=eb(p.current),n=Ju(ku(f.current)),r=n===f.current?-1:qy(t,n,v.current);return E(r,`next`,!0,e)?.id??null},[E]);return S.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:b,isItemActive:T,registerItem:x,setActiveItemId:w,unregisterItem:C}),[_,O,y,D,b,T,x,w,C])}function Uy(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=Ry(),i=S.useRef(null),a=S.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=S.useRef(a);o.current=a;let s=S.useCallback(t=>{i.current=t,t==null?queueMicrotask(()=>{i.current??r(e.id)}):n({...o.current,element:t})},[e.id,n,r]),c=Du(e.ref,s);return Ss(()=>{i.current&&n({...a,element:i.current})},[a,n]),Ss(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function Wy(e,t,n,r){return e==null?Ky(t,n,r):Gy(e,t,n)}function Gy(e,t,n){let r=Zy(t,e);return r===-1?Yy(t,n):n(t[r])?t[r].id:Jy(t,r,`next`,!1,n)?.id??null}function Ky(e,t,n){let r=n?.(e);if(r!=null){let n=Xy(e,r);if(n&&t(n))return n.id}return Yy(e,t)}function qy(e,t,n){if(t){let n=Qy(e,t);if(n!==-1)return n}return Zy(e,n)}function Jy(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=tb(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=tb(s,a,n,r);else return t}return null}function Yy(e,t){return e.find(e=>t(e))?.id??null}function Xy(e,t){return t==null?null:e.find(e=>e.id===t)??null}function Zy(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function Qy(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function $y(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(rb).sort((e,t)=>ib(e.element,t.element)),r=t.filter(e=>!rb(e));return[...n,...r]}function eb(e){return $y(e).filter(rb)}function tb(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function nb(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function rb(e){return e.element!=null&&e.element.isConnected}function ib(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ab(...e){return t=>{e.forEach(e=>{T_(e??null,t)})}}var ob=V(`MuiPaginationItem`,[`root`,`page`,`sizeSmall`,`sizeLarge`,`text`,`outlined`,`rounded`,`ellipsis`,`firstLast`,`previousNext`,`focusVisible`,`disabled`,`selected`,`icon`,`colorPrimary`,`colorSecondary`]),sb=wf((0,R.jsx)(`path`,{d:`M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),cb=wf((0,R.jsx)(`path`,{d:`M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`);function lb(e,t=`500`){let n=`${t}Channel`;return e.vars?.palette.grey?.[n]??{500:`145 158 171`,900:`0 0 0`}[t]}function ub(e,t){let n=t.split(`.`),r=e.vars?.palette??void 0,i=e.palette,a=e=>n.reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e),o=a(r);if(typeof o==`string`)return o;let s=a(i);return typeof s==`string`?s:``}function db(e,t){return e.vars?.palette[t]?.mainChannel??{primary:`51 133 240`,success:`9 159 105`,error:`208 34 65`,warning:`246 141 42`,info:`13 166 214`}[t]}function fb(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function pb(e){return B(`MuiButton`,e)}var mb=V(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),hb=S.createContext({}),gb=S.createContext(void 0),_b=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=U({root:[`root`,o&&`loading`,a,`size${J(i)}`,`color${J(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${J(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},pb,c);return{...c,...l}},vb=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],gee=G(hv,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(K(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,..._d(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${mb.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${mb.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${mb.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${mb.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${mb.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${mb.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loading:!0,loadingPosition:`center`},style:{..._d(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${mb.loading}`]:{color:`transparent`}}}]}})),_ee=G(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{..._d(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...vb]})),vee=G(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{..._d(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...vb]})),yee=G(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),yb=G(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),bb=S.forwardRef(function(e,t){let n=S.useContext(hb),r=S.useContext(gb),i=q({props:ys(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:C=`text`,...w}=i,T=E_(h),E=_??(0,R.jsx)(Dv,{"aria-labelledby":T,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:E,loadingPosition:v,size:y,type:x,variant:C},O=_b(D),k=(b||g&&v===`start`)&&(0,R.jsx)(_ee,{className:O.startIcon,ownerState:D,children:b||(0,R.jsx)(yb,{className:O.loadingIconPlaceholder,ownerState:D})}),A=(f||g&&v===`end`)&&(0,R.jsx)(vee,{className:O.endIcon,ownerState:D,children:f||(0,R.jsx)(yb,{className:O.loadingIconPlaceholder,ownerState:D})}),j=r||``,M=typeof g==`boolean`?(0,R.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,R.jsx)(yee,{className:O.loadingIndicator,ownerState:D,children:E})}):null,{root:N,...P}=O;return(0,R.jsxs)(gee,{ownerState:D,className:z(n.className,O.root,c,j),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:z(O.focusVisible,p),ref:t,internalNativeButton:!0,type:x,id:g?T:h,...w,classes:P,children:[k,v!==`end`&&M,a,v===`end`&&M,A]})}),xb=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],bee=[...xb.map(e=>({props:{variant:`soft`,color:e},style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark,boxShadow:`none`,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.32)`,boxShadow:`none`},"&:active":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.4)`}})})),{props:{variant:`soft`,color:`neutral`},style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.background.elevation3||e.palette.grey[200],boxShadow:`none`}})},{props:{variant:`soft`,color:`inherit`},style:({theme:e})=>({backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,boxShadow:`none`}})}],xee=[...xb.map(e=>({props:{variant:`dashed`,color:e},style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.08)`,borderColor:t.vars?.palette[e]?.dark||t.palette[e].dark}})})),{props:{variant:`dashed`,color:`inherit`},style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.grey?.[500]||e.palette.grey[500]}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,borderColor:e.vars?.palette.text.primary||e.palette.text.primary}})}],See=[`circle`,`square`],Sb={small:30,medium:36,large:42,xLarge:52},Cee=See.flatMap(e=>Object.keys(Sb).map(t=>({props:{shape:e,size:t},style:{height:Sb[t],minWidth:Sb[t],padding:0,borderRadius:e===`circle`?`50%`:void 0}}))),wee=[{props:{variant:`outlined`,color:`neutral`},style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],borderColor:e.vars?.palette.text.secondary||e.palette.text.secondary}})}],Tee=[{props:{variant:`soft`},style:({theme:e})=>({[`&.${mb.disabled}`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}})},{props:{variant:`dashed`},style:({theme:e})=>({[`&.${mb.disabled}`]:{borderStyle:`dashed`}})}];function Eee(e){let{borderRadius:t,density:n}=e,r=fb(n),i=[{props:{size:`xLarge`},style:{minHeight:56,fontSize:`15px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.467}}];return{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:`none`,fontSize:`14px`,fontWeight:600,borderRadius:t,padding:`${8*r}px ${16*r}px`,lineHeight:1.429,variants:[...bee,...xee,...Cee,...wee,...i,...Tee,{props:{variant:`outlined`,size:`large`},style:{paddingTop:9*r,paddingBottom:9*r}},{props:{variant:`outlined`,size:`medium`},style:{paddingTop:7*r,paddingBottom:7*r}},{props:{variant:`outlined`,size:`small`},style:{paddingTop:5*r,paddingBottom:5*r}}]},sizeLarge:{fontSize:`16px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.375},sizeSmall:{padding:`${6*r}px ${10*r}px`,fontSize:`13px`,lineHeight:1.286},startIcon:{marginRight:4,[`&.${mb.startIcon} > :not(style)`]:{fontSize:16}},endIcon:{marginLeft:4,[`&.${mb.endIcon} > :not(style)`]:{fontSize:16}}}}}function Dee(){return{defaultProps:{disableRipple:!1}}}function Oee(e){return{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:e.borderRadius}}}}var kee=wf((0,R.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function Aee(e){return B(`MuiChip`,e)}var Cb=V(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),jee=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:o,variant:s}=e;return U({root:[`root`,s,n&&`disabled`,`size${J(r)}`,`color${J(i)}`,o&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},Aee,t)},Mee=G(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>Uu(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:o,variant:s}=n;return[{[`& .${Cb.avatar}`]:t.avatar},{[`& .${Cb.icon}`]:t.icon},{[`& .${Cb.deleteIcon}`]:t.deleteIcon},t.root,t[`size${J(o)}`],t[`color${J(r)}`],i&&t.clickable,a&&t.deletable,t[s]]}})(K(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:`nowrap`,..._d(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${Cb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${Cb.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Cb.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Cb.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${Cb.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${Cb.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${Cb.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Cb.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Cb.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(P_([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Cb.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${Cb.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${Cb.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(P_([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(P_([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[t].dark},...!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Cb.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${Cb.avatar}`]:{marginLeft:4},[`& .${Cb.icon}`]:{marginLeft:4},[`& .${Cb.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${Cb.avatar}`]:{marginLeft:2},[`& .${Cb.icon}`]:{marginLeft:2},[`& .${Cb.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${Cb.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${Cb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${Cb.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),Nee=G(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function wb(e){return e.key===`Backspace`||e.key===`Delete`}var Tb=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,slots:b={},slotProps:x={},...C}=n,{nativeButton:w,...T}=C,E=Gu(S.useRef(null),t),D=e=>{e.stopPropagation(),p(e)},O=e=>{e.currentTarget===e.target&&wb(e)&&e.preventDefault(),m&&m(e)},k=e=>{e.currentTarget===e.target&&p&&wb(e)&&p(e),h&&h(e)},A=a!==!1&&f?!0:a,j=A||p?hv:s||`div`,M={...n,component:j,disabled:l,size:g,color:o,iconColor:S.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:A,variant:_},N=jee(M),P=j===hv?{component:s||`div`,internalNativeButton:!1,focusVisibleClassName:N.focusVisible,...p&&{disableRipple:!0},...w!==void 0&&{nativeButton:w}}:{},F=null;p&&(F=c&&S.isValidElement(c)?S.cloneElement(c,{className:z(c.props.className,N.deleteIcon),onClick:D}):(0,R.jsx)(kee,{className:N.deleteIcon,onClick:D}));let ee=null;r&&S.isValidElement(r)&&(ee=S.cloneElement(r,{className:z(N.avatar,r.props.className)}));let te=null;u&&S.isValidElement(u)&&(te=S.cloneElement(u,{className:z(N.icon,u.props.className)}));let ne={slots:b,slotProps:x},[re,ie]=Gv(`root`,{elementType:Mee,externalForwardedProps:{...ne,...T},ownerState:M,shouldForwardComponentProp:!0,ref:E,className:z(N.root,i),additionalProps:{disabled:A&&l?!0:void 0,tabIndex:y&&l?-1:v,...P},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),O(t)},onKeyUp:t=>{e.onKeyUp?.(t),k(t)}})}),[ae,oe]=Gv(`label`,{elementType:Nee,externalForwardedProps:ne,ownerState:M,className:N.label});return(0,R.jsxs)(re,{as:j,...ie,children:[ee||te,(0,R.jsx)(ae,{...oe,children:d}),F]})}),Eb=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],Pee=[...Eb.map(e=>({props:t=>t.variant===`soft`&&t.color===e,style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark})})),{props:e=>e.variant===`soft`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})},{props:e=>e.variant===`soft`&&!e.color,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Fee=[...Eb.map(e=>({props:t=>t.variant===`dashed`&&t.color===e,style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main})})),{props:e=>e.variant===`dashed`&&e.color===`neutral`,style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.divider||e.palette.divider}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Iee=[{props:e=>e.variant===`outlined`&&e.color===`neutral`,style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Lee=[{props:e=>e.variant===`filled`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.grey[300]||e.palette.grey[300],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Ree=[{props:{},style:({theme:e})=>({[`&.${Cb.disabled}`]:{opacity:1,color:e.vars?.palette.action.disabled||e.palette.action.disabled,[`&:not(.${Cb.outlined})`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground},[`&.${Cb.outlined}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}})}],zee=[{props:{size:`xSmall`},style:{height:20,fontSize:`0.6875rem`,padding:`0 6px`}}];function Bee(e){let{borderRadius:t,density:n}=e,r=fb(n);return{styleOverrides:{root:{borderRadius:t,fontWeight:500,variants:[...Pee,...Fee,...Iee,...Lee,...Ree,...zee]},sizeSmall:{height:24*r},sizeMedium:{height:32*r},label:{fontWeight:500,"&.MuiChip-labelSmall":{fontSize:`0.75rem`,paddingLeft:8,paddingRight:8},"&.MuiChip-labelMedium":{fontSize:`0.8125rem`,paddingLeft:12,paddingRight:12}},icon:{fontSize:18,color:`currentColor`},deleteIcon:{fontSize:18,opacity:.48,color:`currentColor`,"&:hover":{opacity:.8,color:`currentColor`}}}}}var Vee,Hee=G(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Uu})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),Uee=G(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Uu})(K(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,..._d(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,..._d(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,..._d(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Wee(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,R.jsx)(Hee,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,R.jsx)(Uee,{ownerState:c,children:s?(0,R.jsx)(`span`,{children:i}):Vee||=(0,R.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}function Db(e){return B(`MuiSelect`,e)}var Ob=V(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Gee=e=>{let{classes:t}=e,n=U({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},Hd,t);return{...t,...n}},Kee=G(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:xd})(K(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ud.disabled} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${Ob.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),qee=G(Wee,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(K(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Jee=G(Td,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Sd})(K(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&{WebkitBoxShadow:e.vars.palette.Input.autofillWebkitBoxShadow,...e.applyStyles(`dark`,{WebkitTextFillColor:`#fff`,caretColor:`#fff`})}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),kb=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=Gee(n),[p,m]=Ru({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??Kee,_=c.input??Jee,[v,y]=Gv(`notchedOutline`,{elementType:qee,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,R.jsxs)(S.Fragment,{children:[a,` `,`*`]}):a}});return(0,R.jsx)(Dd,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,R.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});kb.muiName=`Input`;var Yee=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=U({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${J(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},Od,t);return{...t,...c}},Xee=G(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...xd(e,t),!n.disableUnderline&&t.underline]}})(K(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,..._d(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${kd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,..._d(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${kd.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${kd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,..._d(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${kd.disabled}, .${kd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kd.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${Ob.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Zee=G(Td,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Sd})(K(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&{WebkitBoxShadow:e.vars.palette.Input.autofillWebkitBoxShadow,...e.applyStyles(`dark`,{WebkitTextFillColor:`#fff`,caretColor:`#fff`})}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ab=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=Yee(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?da(h,l):h,_=u.root??Xee,v=u.input??Zee;return(0,R.jsx)(Dd,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});Ab.muiName=`Input`;function Qee(e){return B(`MuiTypography`,e)}var jb=V(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),$ee=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return U({root:[`root`,i,e.align!==`inherit`&&`align${J(t)}`,n&&`gutterBottom`,r&&`noWrap`]},Qee,a)},ete=G(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(K(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${J(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),Mb={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},Nb=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=Mb,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||Mb[l]||`span`,m=$ee(f);return(0,R.jsx)(ete,{as:p,ref:t,className:z(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function tte(e){return B(`MuiInputAdornment`,e)}var Pb=V(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),nte,rte=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${J(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},ite=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e;return U({root:[`root`,n&&`disablePointerEvents`,i&&`position${J(i)}`,o,r&&`hiddenLabel`,a&&`size${J(a)}`]},tte,t)},Fb=G(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:rte})(K(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${Pb.positionStart}&:not(.${Pb.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),Ib=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:a=`div`,disablePointerEvents:o=!1,disableTypography:s=!1,position:c,variant:l,...u}=n,d=Lu()||{},f=l;l&&d.variant,d&&!f&&(f=d.variant);let p={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:c,variant:f},m=ite(p);return(0,R.jsx)(Iu.Provider,{value:null,children:(0,R.jsx)(Fb,{as:a,ownerState:p,className:z(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,R.jsx)(Nb,{color:`textSecondary`,children:r}):(0,R.jsxs)(S.Fragment,{children:[c===`start`?nte||=(0,R.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),Lb=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return U({root:[`root`,`color${J(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Md,t)},Rb=G(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(K(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{[`&.${Nd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),zb=G(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(K(({theme:e})=>({[`&.${Nd.error}`]:{color:(e.vars||e).palette.error.main}}))),Bb=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=Ru({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Lb(m);return(0,R.jsxs)(Rb,{as:o,ownerState:m,className:z(h.root,i),ref:t,...f,children:[r,p.required&&(0,R.jsxs)(zb,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Vb(e){return B(`MuiInputLabel`,e)}var Hb=V(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),Ub=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=U({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${J(r)}`,o],asterisk:[s&&`asterisk`]},Vb,t);return{...t,...c}},Wb=G(Bb,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Nd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(K(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{..._d(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Gb=S.forwardRef(function(e,t){let n=q({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=Ru({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=Ub(f);return(0,R.jsx)(Wb,{"data-shrink":d,ref:t,className:z(p.root,s),...c,ownerState:f,classes:p})}),Kb={fontSize:{base:15,responsive:16},lineHeight:24},qb={base:{small:{paddingTop:0,paddingBottom:4},medium:{paddingTop:4,paddingBottom:4}},outlined:{small:{paddingTop:8,paddingBottom:8},medium:{paddingTop:16,paddingBottom:16}},filled:{small:{paddingTop:20},medium:{paddingTop:24},smallHidden:{paddingTop:8,paddingBottom:8},mediumHidden:{paddingTop:16,paddingBottom:16}}};function Jb(e,t){let{fontSize:n,lineHeight:r}=Kb,i={fontSize:e.typography.pxToRem(n.base),height:`${r}px`,lineHeight:`${r}px`},a={fontSize:e.typography.pxToRem(n.responsive),height:`${r}px`,lineHeight:`${r}px`};return{...Object.fromEntries(t.map(e=>[e,i[e]])),[e.breakpoints.down(`sm`)]:Object.fromEntries(t.map(e=>[e,a[e]]))}}function Yb(e){return e.vars?.palette.error?.mainChannel??`208 34 65`}var Xb=[{props:e=>!!e.multiline,style:{padding:0}}],Zb={root:e=>({"--disabled-color":e.vars?.palette.action.disabled||e.palette.action.disabled,...Jb(e,[`lineHeight`]),[`&.${ed.disabled}`]:{[`& .${Pb.root} *`]:{color:`var(--disabled-color)`}}}),input:e=>({...Jb(e,[`fontSize`,`height`,`lineHeight`]),"&:focus":{borderRadius:`inherit`},"&::placeholder":{color:e.vars?.palette.text.disabled||e.palette.text.disabled,opacity:1}})},Qb={root:[{props:e=>!!e.multiline,style:{...qb.base.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...qb.base.small}}],input:[{props:{},style:{...qb.base.medium}},{props:e=>e.size===`small`,style:{...qb.base.small}}]};function $b(e){return{styleOverrides:{root:({theme:e})=>({...Zb.root(e),variants:Qb.root}),input:({theme:e})=>({...Zb.input(e),variants:[...Qb.input,...Xb]})}}}var ex={root:e=>({"&::before":{borderBottomColor:qg(lb(e),.2)},"&::after":{borderBottomColor:e.vars?.palette.text.primary||e.palette.text.primary}})};function tx(e){return{styleOverrides:{root:({theme:e})=>ex.root(e)}}}var nx={root:(e,t)=>({borderRadius:t,[`&.${Ud.focused}:not(.${Ud.error})`]:{[`& .${Ud.notchedOutline}`]:{borderColor:e.vars?.palette.text.primary||e.palette.text.primary}},[`&.${Ud.disabled}`]:{[`& .${Ud.notchedOutline}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}}),notchedOutline:e=>({borderColor:qg(lb(e),.2),transition:e.transitions.create([`border-color`],{duration:e.transitions.duration.shortest}),fontSize:e.typography.pxToRem(14),"& legend > span":{paddingInline:3}})},rx={root:[{props:e=>!!e.multiline,style:{...qb.outlined.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...qb.outlined.small}}],input:[{props:{},style:{...qb.outlined.medium}},{props:e=>e.size===`small`,style:{...qb.outlined.small}}]};function ix(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({...nx.root(e,t),variants:rx.root}),input:()=>({variants:[...rx.input,...Xb]}),notchedOutline:({theme:e})=>nx.notchedOutline(e)}}}var ax={root:(e,t)=>{let n=lb(e),r=Yb(e),i=qg(n,.08),a=qg(n,.16),o=qg(r,.08),s=qg(r,.16),c=e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground;return{backgroundColor:i,borderRadius:t,[`&:hover, &.${kd.focused}`]:{backgroundColor:a},[`&.${kd.error}`]:{backgroundColor:o,[`&:hover, &.${kd.focused}`]:{backgroundColor:s}},[`&.${kd.disabled}`]:{backgroundColor:c}}}},ox={root:[{props:e=>!!e.multiline,style:{...qb.filled.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...qb.filled.small}},{props:e=>!!e.multiline&&!!e.hiddenLabel,style:{...qb.filled.mediumHidden}},{props:e=>!!e.multiline&&!!e.hiddenLabel&&e.size===`small`,style:{...qb.filled.smallHidden}}],input:[{props:{},style:{...qb.filled.medium}},{props:e=>e.size===`small`,style:{...qb.filled.small}},{props:e=>!!e.hiddenLabel,style:{...qb.filled.mediumHidden}},{props:e=>!!e.hiddenLabel&&e.size===`small`,style:{...qb.filled.smallHidden}}]};function sx(e){let{borderRadius:t}=e;return{defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:e})=>({...ax.root(e,t),variants:ox.root}),input:()=>({variants:[...ox.input,...Xb]})}}}function cx(e){return{defaultProps:{variant:`outlined`,size:e.density===`compact`?`small`:`medium`}}}function lx(e){return{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:1.5,variants:[{props:e=>!e.shrink,style:{...Jb(e,[`fontSize`,`lineHeight`]),color:e.vars?.palette.text.disabled||e.palette.text.disabled}},{props:e=>!!e.shrink,style:{fontWeight:600,[`&.${Hb.focused}:not(.${Hb.error})`]:{color:`inherit`}}}]})}}}function ux(e){return{defaultProps:{component:`div`},styleOverrides:{root:({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),marginTop:e.spacing(.75),fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > svg":{width:16,height:16}})}}}function dx(e){return B(`PrivateSwitchBase`,e)}V(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var fx=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return U({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${J(i)}`],input:[`input`]},dx,t)},px=G(hv,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),mx=G(`input`,{name:`MuiSwitchBase`,shouldForwardProp:Uu})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),hx=S.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,name:d,onBlur:f,onChange:p,onFocus:m,readOnly:h,required:g=!1,tabIndex:_,type:v,value:y,slots:b={},slotProps:x={},...S}=e,{nativeButton:C,...w}=S,[T,E]=O_({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=Lu(),O=e=>{m&&m(e),D&&D.onFocus&&D.onFocus(e)},k=e=>{f&&f(e),D&&D.onBlur&&D.onBlur(e)},A=e=>{if(e.nativeEvent.defaultPrevented||h)return;let t=e.target.checked;E(t),p&&p(e,t)},j=o;D&&j===void 0&&(j=D.disabled);let M=v===`checkbox`||v===`radio`,N={...e,checked:T,disabled:j,disableFocusRipple:s,edge:c},P=fx(N),F={slots:b,slotProps:x},[ee,te]=Gv(`root`,{ref:t,elementType:px,className:P.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:`span`,...w},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),O(t)},onBlur:t=>{e.onBlur?.(t),k(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null,internalDisabledThemeFocusVisible:!0}}),[ne,re]=Gv(`input`,{elementType:mx,className:P.input,externalForwardedProps:F,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),A(t)}}),ownerState:N,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:j,id:M?u:void 0,name:d,readOnly:h,required:g,tabIndex:_,type:v,...v===`checkbox`&&y===void 0?{}:{value:y}}});return(0,R.jsxs)(ee,{...te,children:[(0,R.jsx)(ne,{...re}),T?i:l]})}),gx=wf((0,R.jsx)(`path`,{d:`M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`}),`CheckBoxOutlineBlank`),_x=wf((0,R.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`}),`CheckBox`),vx=wf((0,R.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z`}),`IndeterminateCheckBox`),yx=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=U({root:[`root`,n&&`indeterminate`,`color${J(r)}`,`size${J(i)}`]},Cu,t);return{...t,...a}},bx=G(hx,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(K(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${mv.focusVisible} svg:first-of-type`]:{...xl,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{[`&.${wu.checked}, &.${wu.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${wu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),xx=(0,R.jsx)(_x,{}),Sx=(0,R.jsx)(gx,{}),Cx=(0,R.jsx)(vx,{}),wx=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCheckbox`}),{checkedIcon:r=xx,color:i=`primary`,icon:a=Sx,indeterminate:o=!1,indeterminateIcon:s=Cx,size:c=`medium`,disableRipple:l=!1,className:u,slots:d={},slotProps:f={},...p}=n,m=o?s:a,h=o?s:r,g={...n,disableRipple:l,color:i,indeterminate:o,size:c},_=yx(g),v=typeof f.input==`function`?f.input(g):f.input,y=S.useRef(null),b=Gu(y,v?.ref);Ku(()=>{y.current&&(y.current.indeterminate=o)});let[x,C]=Gv(`root`,{ref:t,elementType:bx,className:z(_.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:`checkbox`,icon:S.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:S.cloneElement(h,{fontSize:h.props.fontSize??c}),disableRipple:n.disableRipple,slots:d,slotProps:{input:{...j_(v,{"data-indeterminate":o,onChange:e=>{e.target.indeterminate=o}}),ref:b}}}});return(0,R.jsx)(x,{...C,classes:_})});function Tx(e){return B(`MuiSwitch`,e)}var Ex=V(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]);function Dx(e){return(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{d:`M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z`})})}function Ox(e){return(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{d:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z`})})}function kx(e){return(0,R.jsx)(X,{...e,children:(0,R.jsx)(`path`,{d:`M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z`})})}var Ax={small:{thumb:10,track:16,trackRadius:8,translateX:`10px`},medium:{thumb:14,track:20,trackRadius:10,translateX:`14px`}},jx=[{props:e=>e.color==="default",style:({theme:e})=>({[`&.${Ex.checked}`]:{[`& + .${Ex.track}`]:{backgroundColor:e.vars?.palette.text.primary},[`& .${Ex.thumb}`]:{...e.applyStyles(`dark`,{color:e.vars?.palette.grey[800]})}}})}],Mx=[{props:{},style:{[`&.${Ex.checked}`]:{transform:`translateX(${Ax.medium.translateX})`,[`& + .${Ex.track}`]:{opacity:1}}}}],Nx=[{props:{},style:({theme:e})=>({[`&.${Ex.disabled}`]:{[`& + .${Ex.track}`]:{opacity:.48},[`& .${Ex.thumb}`]:{...e.applyStyles(`dark`,{opacity:.48})}}})}],Px=[{props:e=>e.size===`small`,style:{[`& .${Ex.switchBase}`]:{[`&.${Ex.checked}`]:{transform:`translateX(${Ax.small.translateX})`}},[`& .${Ex.thumb}`]:{width:Ax.small.thumb,height:Ax.small.thumb},[`& .${Ex.track}`]:{height:Ax.small.track,borderRadius:Ax.small.trackRadius}}}];function Fx(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`,icon:(0,R.jsx)(Vx,{}),checkedIcon:(0,R.jsx)(Hx,{}),indeterminateIcon:(0,R.jsx)(Ux,{})},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${wu.checked}`]:{color:e.vars?.palette.text.primary}}},...[`primary`,`secondary`,`info`,`success`,`warning`,`error`].map(t=>({props:{color:t},style:{"&:hover":{backgroundColor:qg(e.vars?.palette[t]?.mainChannel??`51 133 240`,.12)}}}))]}),sizeSmall:{"& svg":{fontSize:16}},sizeMedium:{"& svg":{fontSize:20}}}}}function Ix(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${Wd.checked}`]:{color:e.vars?.palette.text.primary}}}]})}}}function Lx(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:{alignItems:`center`,variants:[...Px]},switchBase:{top:`auto`,left:`6px`,variants:[...jx,...Mx,...Nx]},thumb:({theme:e})=>({width:Ax.medium.thumb,height:Ax.medium.thumb,color:e.vars?.palette.common.white}),track:({theme:e})=>({height:Ax.medium.track,borderRadius:Ax.medium.trackRadius,backgroundColor:qg(lb(e),.48),opacity:1})}}}function Rx(e){return{styleOverrides:{root:({theme:e})=>({[`&.${Nd.disabled}`]:{color:e.vars?.palette.action.disabled},variants:[{props:e=>!e.error,style:{[`&.${Nd.focused}`]:{color:e.vars?.palette.text.secondary}}}]})}}}function zx(e){return{styleOverrides:{label:({theme:e})=>({...e.typography.body2})}}}function Bx(e){return{defaultProps:{variant:`outlined`},styleOverrides:{root:{"& .MuiFormLabel-root":{marginBottom:8}}}}}var Vx=Y(`checkbox`,Dx),Hx=Y(`checkboxChecked`,Ox),Ux=Y(`checkboxMixed`,kx);function Wx(e){return B(`MuiTab`,e)}var Gx=V(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),Kx=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return U({root:[`root`,a&&o&&`labelIcon`,`textColor${J(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},Wx,t)},qx=G(hv,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${J(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gx.icon}`]:t.icon}]}})(K(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,...e.focusVisible&&Cl(3),variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${Gx.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${Gx.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${Gx.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${Gx.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${Gx.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${mv.focusVisible}`]:{opacity:1}},[`&.${Gx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gx.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gx.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gx.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gx.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Jx=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b=Ry(),x=Uy({id:_,ref:t,disabled:i,selected:m}),C=b.getItemMap().size===0&&m?0:x.tabIndex,w={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},T=Kx(w),E=s&&u&&S.isValidElement(s)?S.cloneElement(s,{className:z(T.icon,s.props.className)}):s;return(0,R.jsxs)(qx,{internalNativeButton:!0,focusRipple:!a,className:z(T.root,r),ref:x.ref,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},tabIndex:C,ownerState:w,...y,children:[c===`top`||c===`start`?(0,R.jsxs)(S.Fragment,{children:[E,u]}):(0,R.jsxs)(S.Fragment,{children:[u,E]}),l]})}),Yx={root:[{props:e=>e.indicatorColor===`inherit`,style:{"& .MuiTabs-indicator":{backgroundColor:`currentColor`}}}],list:[{props:{},style:({theme:e})=>({gap:e.spacing(1)})}]},Xx=[{props:{},style:({theme:e})=>({[`&.${Gx.selected}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary}})},{props:e=>!!e.icon&&!!e.label,style:{minHeight:`auto`}}];function Zx(e){let t=fb(e.density);return{defaultProps:{variant:`scrollable`,textColor:`inherit`,indicatorColor:`primary`,allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({minHeight:36*t,variants:[...Yx.root]}),list:{variants:[...Yx.list]},indicator:{borderRadius:2}}}}function Qx(e){let t=fb(e.density);return{defaultProps:{disableRipple:!0,iconPosition:`start`},styleOverrides:{root:({theme:e})=>({padding:8*t,minHeight:36*t,minWidth:36*t,opacity:1,textTransform:`none`,fontWeight:e.typography.fontWeightMedium,color:e.vars?.palette.text.secondary||e.palette.text.secondary,lineHeight:e.typography.body2.lineHeight,[`& .${xf.root}`]:{fontSize:20},variants:[...Xx]})}}}function $x(e){let{density:t,borderRadius:n}=e,r=fb(t);return{MuiDialog:{styleOverrides:{paper:({theme:e})=>({boxShadow:`0 24px 48px -12px rgba(${lb(e,`900`)} / 0.24)`,variants:[{props:()=>!0,style:{[e.breakpoints.down(`sm`)]:{margin:0,width:`100%`,maxWidth:`none`,maxHeight:`none`,height:`100%`,borderRadius:0}}},{props:e=>!e.fullScreen,style:{borderRadius:n*2,[e.breakpoints.up(`sm`)]:{margin:e.spacing(2)}}}]})}},MuiDialogTitle:{styleOverrides:{root:({theme:e})=>({padding:`${20*r}px ${24*r}px`,fontSize:e.typography.pxToRem(18),fontWeight:600,lineHeight:28/18})}},MuiDialogContent:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`}}},MuiDialogActions:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`,gap:8}}}}}function eS(e){let{density:t,borderRadius:n}=e,r=fb(t);return{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({position:`relative`,zIndex:0,borderRadius:n*1.5,border:`1px solid ${ub(e,`divider`)}`,backgroundImage:`none`,boxShadow:`0 0 2px 0 rgba(${lb(e)} / 0.2), 0 12px 24px -4px rgba(${lb(e)} / 0.12)`})}},MuiCardHeader:{defaultProps:{slotProps:{title:{variant:`h6`},subheader:{variant:`body2`}}},styleOverrides:{root:{padding:`${16*r}px ${20*r}px`},title:({theme:e})=>({fontSize:e.typography.pxToRem(16),fontWeight:600,lineHeight:1.5}),subheader:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:22/14,color:ub(e,`text.secondary`)})}},MuiCardContent:{styleOverrides:{root:{padding:`${16*r}px ${20*r}px`,"&:last-child":{paddingBottom:16*r}}}},MuiCardActions:{styleOverrides:{root:{padding:`${12*r}px ${20*r}px`,gap:8}}}}}function tS(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function nS(e){let t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current}var rS=`bottom`,iS=`right`,aS=`left`,oS=`auto`,sS=[`top`,rS,iS,aS],cS=`start`,lS=`clippingParents`,uS=`viewport`,dS=`popper`,fS=`reference`,pS=sS.reduce(function(e,t){return e.concat([t+`-`+cS,t+`-end`])},[]),mS=[].concat(sS,[oS]).reduce(function(e,t){return e.concat([t,t+`-`+cS,t+`-end`])},[]),hS=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function gS(e){return e?(e.nodeName||``).toLowerCase():null}function _S(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vS(e){return e instanceof _S(e).Element||e instanceof Element}function yS(e){return e instanceof _S(e).HTMLElement||e instanceof HTMLElement}function bS(e){return typeof ShadowRoot>`u`?!1:e instanceof _S(e).ShadowRoot||e instanceof ShadowRoot}function xS(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];yS(i)&&gS(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function SS(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});yS(r)&&gS(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var CS={name:`applyStyles`,enabled:!0,phase:`write`,fn:xS,effect:SS,requires:[`computeStyles`]};function wS(e){return e.split(`-`)[0]}var TS=Math.max,ES=Math.min,DS=Math.round;function OS(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function kS(){return!/^((?!chrome|android).)*safari/i.test(OS())}function AS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yS(e)&&(i=e.offsetWidth>0&&DS(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&DS(r.height)/e.offsetHeight||1);var o=(vS(e)?_S(e):window).visualViewport,s=!kS()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function jS(e){var t=AS(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function MS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function NS(e){return _S(e).getComputedStyle(e)}function PS(e){return[`table`,`td`,`th`].indexOf(gS(e))>=0}function FS(e){return((vS(e)?e.ownerDocument:e.document)||window.document).documentElement}function IS(e){return gS(e)===`html`?e:e.assignedSlot||e.parentNode||(bS(e)?e.host:null)||FS(e)}function LS(e){return!yS(e)||NS(e).position===`fixed`?null:e.offsetParent}function RS(e){var t=/firefox/i.test(OS());if(/Trident/i.test(OS())&&yS(e)&&NS(e).position===`fixed`)return null;var n=IS(e);for(bS(n)&&(n=n.host);yS(n)&&[`html`,`body`].indexOf(gS(n))<0;){var r=NS(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function zS(e){for(var t=_S(e),n=LS(e);n&&PS(n)&&NS(n).position===`static`;)n=LS(n);return n&&(gS(n)===`html`||gS(n)===`body`&&NS(n).position===`static`)?t:n||RS(e)||t}function BS(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function VS(e,t,n){return TS(e,ES(t,n))}function HS(e,t,n){var r=VS(e,t,n);return r>n?n:r}function US(){return{top:0,right:0,bottom:0,left:0}}function WS(e){return Object.assign({},US(),e)}function GS(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var KS=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,WS(typeof e==`number`?GS(e,sS):e)};function qS(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=wS(n.placement),c=BS(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=KS(i.padding,n),d=jS(a),f=c===`y`?`top`:aS,p=c===`y`?rS:iS,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=zS(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=VS(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function JS(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||MS(t.elements.popper,r)&&(t.elements.arrow=r))}var YS={name:`arrow`,enabled:!0,phase:`main`,fn:qS,effect:JS,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function XS(e){return e.split(`-`)[1]}var ZS={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function QS(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:DS(n*i)/i||0,y:DS(r*i)/i||0}}function $S(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=aS,b=`top`,x=window;if(l){var S=zS(n),C=`clientHeight`,w=`clientWidth`;if(S===_S(n)&&(S=FS(n),NS(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=rS;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=iS;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&ZS),O=u===!0?QS({x:p,y:h},_S(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function eC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:wS(t.placement),variation:XS(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$S(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$S(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var tC={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:eC,data:{}},nC={passive:!0};function rC(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=_S(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,nC)}),s&&c.addEventListener(`resize`,n.update,nC),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,nC)}),s&&c.removeEventListener(`resize`,n.update,nC)}}var iC={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:rC,data:{}},aC={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function oC(e){return e.replace(/left|right|bottom|top/g,function(e){return aC[e]})}var sC={start:`end`,end:`start`};function cC(e){return e.replace(/start|end/g,function(e){return sC[e]})}function lC(e){var t=_S(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function uC(e){return AS(FS(e)).left+lC(e).scrollLeft}function dC(e,t){var n=_S(e),r=FS(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=kS();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+uC(e),y:c}}function fC(e){var t=FS(e),n=lC(e),r=e.ownerDocument?.body,i=TS(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=TS(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+uC(e),s=-n.scrollTop;return NS(r||t).direction===`rtl`&&(o+=TS(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function pC(e){var t=NS(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function mC(e){return[`html`,`body`,`#document`].indexOf(gS(e))>=0?e.ownerDocument.body:yS(e)&&pC(e)?e:mC(IS(e))}function hC(e,t){t===void 0&&(t=[]);var n=mC(e),r=n===e.ownerDocument?.body,i=_S(n),a=r?[i].concat(i.visualViewport||[],pC(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(hC(IS(a)))}function gC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _C(e,t){var n=AS(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function vC(e,t,n){return t===`viewport`?gC(dC(e,n)):vS(t)?_C(t,n):gC(fC(FS(e)))}function yC(e){var t=hC(IS(e)),n=[`absolute`,`fixed`].indexOf(NS(e).position)>=0&&yS(e)?zS(e):e;return vS(n)?t.filter(function(e){return vS(e)&&MS(e,n)&&gS(e)!==`body`}):[]}function bC(e,t,n,r){var i=t===`clippingParents`?yC(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=vC(e,n,r);return t.top=TS(i.top,t.top),t.right=ES(i.right,t.right),t.bottom=ES(i.bottom,t.bottom),t.left=TS(i.left,t.left),t},vC(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function xC(e){var t=e.reference,n=e.element,r=e.placement,i=r?wS(r):null,a=r?XS(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case rS:c={x:o,y:t.y+t.height};break;case iS:c={x:t.x+t.width,y:s};break;case aS:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?BS(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case cS:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function SC(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?lS:s,l=n.rootBoundary,u=l===void 0?uS:l,d=n.elementContext,f=d===void 0?dS:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=WS(typeof g==`number`?GS(g,sS):g),v=f===`popper`?fS:dS,y=e.rects.popper,b=e.elements[m?v:f],x=bC(vS(b)?b:b.contextElement||FS(e.elements.popper),c,u,o),S=AS(e.elements.reference),C=xC({reference:S,element:y,strategy:`absolute`,placement:i}),w=gC(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function CC(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?mS:c,u=XS(r),d=u?s?pS:pS.filter(function(e){return XS(e)===u}):sS,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=SC(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[wS(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function wC(e){if(wS(e)===`auto`)return[];var t=oC(e);return[cC(e),t,cC(t)]}function TC(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=wS(g)===g,v=c||(_||!m?[oC(g)]:wC(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(wS(n)===`auto`?CC(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=wS(E),O=XS(E)===cS,k=[`top`,rS].indexOf(D)>=0,A=k?`width`:`height`,j=SC(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?iS:aS:O?rS:`top`;b[A]>x[A]&&(M=oC(M));var N=oC(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,ee=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},te=F;te>0&&ee(te)!==`break`;te--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var EC={name:`flip`,enabled:!0,phase:`main`,fn:TC,requiresIfExists:[`offset`],data:{_skip:!1}};function DC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function OC(e){return[`top`,iS,rS,aS].some(function(t){return e[t]>=0})}function kC(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=SC(t,{elementContext:`reference`}),s=SC(t,{altBoundary:!0}),c=DC(o,r),l=DC(s,i,a),u=OC(c),d=OC(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var AC={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:kC};function jC(e,t,n){var r=wS(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function MC(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=mS.reduce(function(e,n){return e[n]=jC(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var NC={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:MC};function PC(e){var t=e.state,n=e.name;t.modifiersData[n]=xC({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var FC={name:`popperOffsets`,enabled:!0,phase:`read`,fn:PC,data:{}};function IC(e){return e===`x`?`y`:`x`}function LC(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=SC(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=wS(t.placement),v=XS(t.placement),y=!v,b=BS(_),x=IC(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:aS,A=b===`y`?rS:iS,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,ee=v===`start`?C[j]:w[j],te=v===`start`?-w[j]:-C[j],ne=t.elements.arrow,re=p&&ne?jS(ne):{width:0,height:0},ie=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:US(),ae=ie[k],oe=ie[A],se=VS(0,C[j],re[j]),ce=y?C[j]/2-F-se-ae-E.mainAxis:ee-se-ae-E.mainAxis,le=y?-C[j]/2+F+se+oe+E.mainAxis:te+se+oe+E.mainAxis,ue=t.elements.arrow&&zS(t.elements.arrow),de=ue?b===`y`?ue.clientTop||0:ue.clientLeft||0:0,fe=D?.[b]??0,pe=M+ce-fe-de,me=M+le-fe,I=VS(p?ES(N,pe):N,M,p?TS(P,me):P);S[b]=I,O[b]=I-M}if(s){var he=b===`x`?`top`:aS,ge=b===`x`?rS:iS,_e=S[x],ve=x===`y`?`height`:`width`,ye=_e+g[he],be=_e-g[ge],xe=[`top`,aS].indexOf(_)!==-1,Se=D?.[x]??0,Ce=xe?ye:_e-C[ve]-w[ve]-Se+E.altAxis,we=xe?_e+C[ve]+w[ve]-Se-E.altAxis:be,Te=p&&xe?HS(Ce,_e,we):VS(p?Ce:ye,_e,p?we:be);S[x]=Te,O[x]=Te-_e}t.modifiersData[r]=O}}var RC={name:`preventOverflow`,enabled:!0,phase:`main`,fn:LC,requiresIfExists:[`offset`]};function zC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BC(e){return e===_S(e)||!yS(e)?lC(e):zC(e)}function VC(e){var t=e.getBoundingClientRect(),n=DS(t.width)/e.offsetWidth||1,r=DS(t.height)/e.offsetHeight||1;return n!==1||r!==1}function HC(e,t,n){n===void 0&&(n=!1);var r=yS(t),i=yS(t)&&VC(t),a=FS(t),o=AS(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((gS(t)!==`body`||pC(a))&&(s=BC(t)),yS(t)?(c=AS(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=uC(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function UC(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function WC(e){var t=UC(e);return hS.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function GC(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function KC(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var qC={placement:`bottom`,modifiers:[],strategy:`absolute`};function JC(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function YC(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?qC:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},qC,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:vS(e)?hC(e):e.contextElement?hC(e.contextElement):[],popper:hC(t)};var s=WC(KC([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(JC(t,n)){i.rects={reference:HC(t,zS(n),i.options.strategy===`fixed`),popper:jS(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:GC(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!JC(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var XC=YC({defaultModifiers:[iC,FC,tC,CS,NC,EC,RC,YS,AC]});function ZC(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Vv(n,r),{props:s,internalRef:c}=Wv({...a,externalSlotProps:o}),l=Du(c,o?.ref,e.additionalProps?.ref);return Bv(t,{...s,ref:l},r)}function QC(e){return e?.props?.ref||null}var $C=t(y(),1);function ew(e){return typeof e==`function`?e():e}var tw=S.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=S.useState(null),s=Du(S.isValidElement(n)?QC(n):null,t);if(Ss(()=>{i||o(ew(r)||document.body)},[r,i]),Ss(()=>{if(a&&!i)return T_(t,a),()=>{T_(t,null)}},[t,a,i]),i){if(S.isValidElement(n)){let e={ref:s};return S.cloneElement(n,e)}return n}return a&&$C.createPortal(n,a)});function nw(e){return B(`MuiPopper`,e)}V(`MuiPopper`,[`root`]);function rw(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function iw(e){return typeof e==`function`?e():e}function aw(e){return e.nodeType!==void 0}var ow=e=>{let{classes:t}=e;return U({root:[`root`]},nw,t)},sw={},cw=S.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=S.useRef(null),_=Du(g,t),v=S.useRef(null),y=Du(v,u),b=S.useRef(y);Ss(()=>{b.current=y},[y]),S.useImperativeHandle(u,()=>v.current,[]);let x=rw(c,i),[C,w]=S.useState(x),T=S.useMemo(()=>iw(n),[n]);S.useEffect(()=>{v.current&&v.current.forceUpdate()}),Ss(()=>{if(!T||!s)return;let e=e=>{w(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=XC(T,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[T,a,o,s,l,x]);let E={placement:C};p!==null&&(E.TransitionProps=p);let D=ow(e),O=f.root??`div`,k=ZC({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root});return(0,R.jsx)(O,{...k,children:typeof r==`function`?r(E):r})}),lw=G(S.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=sw,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=S.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let C;if(i)C=i;else if(n){let e=iw(n);C=e&&aw(e)?ku(e).body:ku(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,R.jsx)(tw,{disablePortal:o,container:C,children:(0,R.jsx)(cw,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:w,...p},TransitionProps:T,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),uw=S.forwardRef(function(e,t){let n=Zs(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=q({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,R.jsx)(lw,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function dw(e){return B(`MuiListSubheader`,e)}V(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var fw=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return U({root:[`root`,n!=="default"&&`color${J(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},dw,t)},pw=G(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${J(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(K(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),mw=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiListSubheader`}),{className:r,color:i=`default`,component:a=`li`,disableGutters:o=!1,disableSticky:s=!1,inset:c=!1,...l}=n,u={...n,color:i,component:a,disableGutters:o,disableSticky:s,inset:c},d=fw(u);return(0,R.jsx)(pw,{as:a,className:z(d.root,r),ref:t,ownerState:u,...l})}),hw=wf((0,R.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),gw=wf((0,R.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);function _w(e){let{borderRadius:t}=e;return{styleOverrides:{paper:({theme:e})=>({borderRadius:t,boxShadow:`0 0 2px 0 rgba(${lb(e)} / 0.24), -20px 20px 40px -4px rgba(${lb(e)} / 0.24)`}),listbox:{padding:4},option:({theme:e})=>({borderRadius:t-2,margin:2,[`&.${Su.focused}`]:{backgroundColor:ub(e,`action.hover`)},'&[aria-selected="true"]':{backgroundColor:ub(e,`action.selected`),fontWeight:500,[`&.${Su.focused}`]:{backgroundColor:ub(e,`action.hover`)}}}),popupIndicator:{[`& .${xf.root}`]:{fontSize:20}},clearIndicator:{[`& .${xf.root}`]:{fontSize:18}}}}}function vw(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({border:`none`,borderRadius:t,"--DataGrid-containerBackground":e.vars?.palette.background.neutral||e.palette.grey[50],"--DataGrid-pinnedBackground":ub(e,`background.paper`),"& .MuiDataGrid-columnHeaders":{borderBottom:`1px solid ${ub(e,`divider`)}`},"& .MuiDataGrid-columnHeader":{fontWeight:600,fontSize:e.typography.pxToRem(14),color:ub(e,`text.secondary`),"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-cell":{borderBottom:`1px solid rgba(${lb(e)} / 0.12)`,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-row":{"&:hover":{backgroundColor:ub(e,`action.hover`)},"&.Mui-selected":{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${db(e,`primary`)} / 0.12)`}}},"& .MuiDataGrid-footerContainer":{borderTop:`1px solid ${ub(e,`divider`)}`},"& .MuiDataGrid-selectedRowCount":{whiteSpace:`nowrap`},"& .MuiDataGrid-toolbarContainer":{padding:e.spacing(1.5,1.5,.5),gap:e.spacing(1)},"& .MuiDataGrid-columnSeparator":{color:ub(e,`divider`)}})}}}function yw(e){let{density:t,borderRadius:n}=e;return{MuiDatePicker:{defaultProps:{slotProps:{openPickerButton:{size:t===`compact`?`small`:`medium`}}}},MuiPickersLayout:{styleOverrides:{root:({theme:e})=>({"& .MuiPickersLayout-actionBar":{padding:e.spacing(1,2)}})}},MuiPickersDay:{styleOverrides:{root:()=>({borderRadius:n-2,fontWeight:400,"&.Mui-selected":{fontWeight:600}}),today:({theme:e})=>({borderColor:ub(e,`primary.main`),"&:not(.Mui-selected)":{backgroundColor:`transparent`}})}},MuiPickersYear:{styleOverrides:{yearButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}},MuiPickersMonth:{styleOverrides:{monthButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}}}}function bw(e){let{density:t,borderRadius:n}=e,r=fb(t);return{MuiButton:Eee(e),MuiButtonBase:Dee(),MuiButtonGroup:Oee(e),MuiIconButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,"&:hover":{backgroundColor:ub(e,`action.hover`)}})}},MuiInputAdornment:{styleOverrides:{root:{[`& .${kv.root}:hover`]:{backgroundColor:`transparent`}}}},MuiFab:{defaultProps:{color:`primary`},styleOverrides:{root:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${db(e,`primary`)} / 0.24)`,"&:hover":{boxShadow:`0 8px 16px 0 rgba(${db(e,`primary`)} / 0.32)`}})}},MuiInputBase:$b(e),MuiInput:tx(e),MuiTextField:cx(e),MuiOutlinedInput:ix(e),MuiFilledInput:sx(e),MuiInputLabel:lx(e),MuiFormHelperText:ux(e),MuiSelect:{styleOverrides:{select:{minHeight:`auto`,display:`flex`,alignItems:`center`},icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiNativeSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiAutocomplete:_w(e),...eS(e),MuiStack:{defaultProps:{useFlexGap:!0}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:`none`},rounded:{borderRadius:n*1.5},outlined:({theme:e})=>({borderColor:`rgba(${lb(e)} / 0.16)`}),elevation1:({theme:e})=>({boxShadow:`0 1px 2px 0 rgba(${lb(e,`900`)} / 0.08)`}),elevation2:({theme:e})=>({boxShadow:`0 2px 4px 0 rgba(${lb(e,`900`)} / 0.08), 0 1px 2px 0 rgba(${lb(e,`900`)} / 0.04)`}),elevation3:({theme:e})=>({boxShadow:`0 4px 8px 0 rgba(${lb(e,`900`)} / 0.08), 0 2px 4px 0 rgba(${lb(e,`900`)} / 0.04)`}),elevation4:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${lb(e,`900`)} / 0.08), 0 4px 8px 0 rgba(${lb(e,`900`)} / 0.04)`}),elevation5:({theme:e})=>({boxShadow:`0 12px 24px -4px rgba(${lb(e,`900`)} / 0.08), 0 8px 16px 0 rgba(${lb(e,`900`)} / 0.04)`})}},...$x(e),MuiDrawer:{styleOverrides:{paper:{backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({backgroundImage:`none`,borderBottom:`1px solid ${ub(e,`divider`)}`})}},MuiTabs:Zx(e),MuiTab:Qx(e),MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:8,marginRight:8}}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:e})=>({border:`1px solid ${ub(e,`divider`)}`,borderRadius:0,[`&.${ry.rounded}`]:{borderRadius:n},"&::before":{display:`none`},[`&.${ry.disabled}`]:{backgroundColor:`transparent`}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,minHeight:48*r,padding:`0 ${16*r}px`,fontWeight:500,[`&.${xu.expanded}`]:{minHeight:48*r},[`&.${xu.disabled}`]:{opacity:.5}}),content:{alignItems:`center`,gap:8*r,minWidth:0,margin:`${12*r}px 0`,[`&.${xu.expanded}`]:{margin:`${12*r}px 0`}},expandIconWrapper:({theme:e})=>({color:ub(e,`text.secondary`),flexShrink:0,marginInlineStart:8*r})}},MuiAccordionDetails:{styleOverrides:{root:({theme:e})=>({padding:`${8*r}px ${16*r}px ${16*r}px`,borderTop:`1px solid ${ub(e,`divider`)}`})}},MuiStep:{styleOverrides:{root:{padding:0}}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:500,[`&.${Ay.active}`]:{fontWeight:600,color:ub(e,`text.primary`)},[`&.${Ay.completed}`]:{fontWeight:500,color:ub(e,`text.primary`)}}),iconContainer:{paddingRight:12*r}}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderColor:ub(e,`divider`),borderTopWidth:2})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:ub(e,`grey.300`),[`&.${by.active}`]:{color:ub(e,`primary.main`)},[`&.${by.completed}`]:{color:ub(e,`primary.main`)}}),text:{fontWeight:600,fontSize:`0.75rem`}}},MuiStepContent:{styleOverrides:{root:({theme:e})=>({borderLeft:`2px solid ${ub(e,`divider`)}`,marginLeft:11,paddingLeft:20,paddingRight:8})}},MuiPagination:{defaultProps:{shape:`rounded`,size:t===`compact`?`small`:`medium`}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,fontWeight:500,[`&.${ob.selected}`]:{fontWeight:600}}),outlined:({theme:e})=>({borderColor:ub(e,`divider`),[`&.${ob.selected}`]:{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,borderColor:ub(e,`primary.main`)}}),text:({theme:e})=>({[`&.${ob.selected}`]:{backgroundColor:ub(e,`primary.main`),color:ub(e,`primary.contrastText`),"&:hover":{backgroundColor:ub(e,`primary.dark`)}}}),previousNext:({theme:e})=>({borderRadius:n-2,"&:hover":{backgroundColor:ub(e,`action.hover`)}}),firstLast:({theme:e})=>({borderRadius:n-2})}},MuiChip:Bee(e),MuiAvatar:{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:600})}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{tooltip:({theme:e})=>({borderRadius:n-2,fontSize:e.typography.pxToRem(12),padding:`6px 12px`,backgroundColor:ub(e,`grey.800`)}),arrow:({theme:e})=>({color:ub(e,`grey.800`)})}},MuiTableContainer:{styleOverrides:{root:{position:`relative`}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({[`& .${py.head}`]:{fontWeight:600,backgroundColor:e.vars?.palette.background.neutral||e.palette.background.neutral||ub(e,`background.paper`),color:ub(e,`text.secondary`)}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({padding:`${12*r}px ${16*r}px`,borderBottomColor:`rgba(${lb(e)} / 0.2)`}),sizeSmall:{padding:`${8*r}px ${12*r}px`}}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({[`&:last-child .${py.root}`]:{borderBottom:`none`},[`&.${oy.selected}`]:{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${db(e,`primary`)} / 0.12)`}}})}},MuiTablePagination:{defaultProps:{slotProps:{select:{name:`table-pagination-select`},actions:{previousButton:{size:`small`},nextButton:{size:`small`}}}},styleOverrides:{root:({theme:e})=>({borderTop:`1px solid ${ub(e,`divider`)}`}),toolbar:{minHeight:44*r,paddingLeft:8*r,paddingRight:8*r},actions:{marginRight:8},select:{display:`flex`,alignItems:`center`},selectIcon:{right:4,width:16,height:16,top:`calc(50% - 8px)`},selectLabel:({theme:e})=>({...e.typography.body2}),displayedRows:({theme:e})=>({...e.typography.body2})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:n,variants:[`success`,`error`,`warning`,`info`].map(t=>({props:{severity:t,variant:`standard`},style:{backgroundColor:`rgba(${db(e,t)} / 0.08)`,color:e.vars?.palette[t].dark||e.palette[t].dark}}))})}},MuiAlertTitle:{styleOverrides:{root:({theme:e})=>({fontWeight:600,fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(.5),lineHeight:1.5})}},MuiSnackbar:{styleOverrides:{root:{"& .MuiPaper-root":{borderRadius:n}}}},MuiLinearProgress:{styleOverrides:{root:{borderRadius:4,height:6}}},MuiCircularProgress:{defaultProps:{size:t===`compact`?20:t===`comfortable`?32:24}},MuiSlider:{defaultProps:{size:t===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{color:ub(e,`action.disabled`)}}),rail:({theme:e})=>({opacity:.32,backgroundColor:ub(e,`grey.500`)}),track:{border:`none`},thumb:({theme:e})=>({width:t===`compact`?16:20,height:t===`compact`?16:20,backgroundColor:ub(e,`common.white`),border:`2px solid currentColor`,boxShadow:`0 1px 3px 0 rgba(${lb(e,`900`)} / 0.2)`,"&::before":{display:`none`},"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(${db(e,`primary`)} / 0.16)`},"&.Mui-active":{boxShadow:`0 0 0 12px rgba(${db(e,`primary`)} / 0.24)`}}),valueLabel:({theme:e})=>({borderRadius:n-2,backgroundColor:ub(e,`grey.800`),"&::before":{display:`none`}}),mark:({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:ub(e,`grey.400`)}),markActive:({theme:e})=>({backgroundColor:ub(e,`common.white`)})}},MuiRating:{defaultProps:{size:t===`compact`?`small`:`medium`,emptyIcon:void 0},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{opacity:.48}}),icon:{fontSize:`inherit`},iconEmpty:({theme:e})=>({color:ub(e,`grey.300`)}),iconFilled:({theme:e})=>({color:ub(e,`warning.main`)}),iconHover:({theme:e})=>({color:ub(e,`warning.dark`)}),sizeSmall:{fontSize:`1.125rem`},sizeMedium:{fontSize:`1.5rem`},sizeLarge:{fontSize:`2rem`}}},MuiCheckbox:Fx(e),MuiRadio:Ix(e),MuiSwitch:Lx(e),MuiFormControl:Bx(e),MuiFormControlLabel:zx(e),MuiFormLabel:Rx(e),MuiList:{styleOverrides:{root:{paddingTop:t===`compact`?4:8,paddingBottom:t===`compact`?4:8}}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,margin:2,"&.Mui-selected":{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,fontWeight:500},"&:hover":{backgroundColor:ub(e,`action.hover`)}})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:40}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},primary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?13:14),fontWeight:500,lineHeight:1.5}),secondary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?12:13),lineHeight:1.5,color:ub(e,`text.secondary`)})}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,marginTop:4,boxShadow:`0 0 2px 0 rgba(${lb(e)} / 0.24), -20px 20px 40px -4px rgba(${lb(e)} / 0.24)`}),list:{padding:4}}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,borderRadius:n-2,margin:2,padding:`${8*r}px ${12*r}px`,"&:not(:last-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:500,backgroundColor:ub(e,`action.selected`),"&:hover":{backgroundColor:ub(e,`action.hover`)}}})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${lb(e)} / 0.24), -20px 20px 40px -4px rgba(${lb(e)} / 0.24)`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:`rgba(${lb(e)} / 0.2)`})}},MuiSkeleton:{styleOverrides:{rounded:{borderRadius:n}}},MuiBackdrop:{styleOverrides:{root:({theme:e})=>({backgroundColor:`rgba(${lb(e,`900`)} / 0.5)`})}},MuiLink:{defaultProps:{underline:`hover`},styleOverrides:{root:({theme:e})=>({color:ub(e,`primary.main`),textDecorationColor:`transparent`,transition:`color 150ms, text-decoration-color 150ms`,"&:hover":{textDecorationColor:`currentColor`}})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,fontWeight:500,textTransform:`none`,border:`1px solid ${ub(e,`divider`)}`,[`&.${Gd.selected}`]:{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,borderColor:`currentColor`,color:ub(e,`primary.main`),"&:hover":{backgroundColor:`rgba(${db(e,`primary`)} / 0.16)`}},[`&.${Gd.disabled}`]:{borderColor:ub(e,`action.disabledBackground`)}}),sizeSmall:{padding:`${4*r}px ${8*r}px`,fontSize:`0.8125rem`},sizeMedium:{padding:`${6*r}px ${12*r}px`},sizeLarge:{padding:`${8*r}px ${16*r}px`,fontSize:`0.9375rem`}}},MuiToggleButtonGroup:{styleOverrides:{grouped:({theme:e})=>({borderLeftColor:ub(e,`divider`),borderTopColor:ub(e,`divider`),[`&.${Gd.selected}`]:{zIndex:1,borderLeftColor:`currentColor`,borderTopColor:`currentColor`}})}},MuiTimeline:{styleOverrides:{root:{padding:0}}},MuiTimelineItem:{styleOverrides:{root:{"&::before":{display:`none`}}}},MuiTimelineDot:{styleOverrides:{root:({theme:e})=>({boxShadow:`none`,borderColor:`transparent`,padding:3}),outlined:({theme:e})=>({borderColor:ub(e,`divider`),backgroundColor:`transparent`})}},MuiTimelineConnector:{styleOverrides:{root:({theme:e})=>({backgroundColor:ub(e,`divider`),width:2})}},MuiTimelineContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:`${6*r}px ${16*r}px`})}},MuiDataGrid:vw(e),...yw(e),MuiTreeItem:{styleOverrides:{root:{},content:({theme:e})=>({borderRadius:n-2,padding:`${4*r}px ${8*r}px`,"&.Mui-selected":{backgroundColor:`rgba(${db(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${db(e,`primary`)} / 0.16)`},"&.Mui-focused":{backgroundColor:`rgba(${db(e,`primary`)} / 0.12)`}},"&:hover":{backgroundColor:ub(e,`action.hover`)}}),label:({theme:e})=>({...e.typography.body2,fontWeight:500}),iconContainer:{width:`auto`}}},MuiCssBaseline:{styleOverrides:e=>({html:{scrollBehavior:`smooth`},"html, body, *":y_(e),"*, *::before, *::after":{boxSizing:`border-box`},"#root, #__next":{height:`100%`},'html[data-vision="protanopia"]:not([data-showcase])':{filter:`url("#protanopia-filter")`},'html[data-vision="deuteranopia"]:not([data-showcase])':{filter:`url("#deuteranopia-filter")`},'html[data-vision="tritanopia"]:not([data-showcase])':{filter:`url("#tritanopia-filter")`},'html[data-vision="achromatopsia"]:not([data-showcase])':{filter:`url("#achromatopsia-filter")`}})}}}var xw=[`none`,`0px 1px 2px 0px rgba(0, 0, 0, 0.05)`,`0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)`,`0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)`,`0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)`,`0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)`,`0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 2px 4px rgba(0, 0, 0, 0.08)`,`0px 4px 8px rgba(0, 0, 0, 0.08)`,`0px 8px 16px rgba(0, 0, 0, 0.08)`,`0px 12px 24px rgba(0, 0, 0, 0.08)`,`0px 16px 32px rgba(0, 0, 0, 0.08)`,`0px 20px 40px rgba(0, 0, 0, 0.08)`,`0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)`,`0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)`,`0px 20px 20px -10px rgba(0, 0, 0, 0.04), 0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 1px 2px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 2px 4px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 0px 0px 3px rgba(66, 153, 225, 0.5)`,`0px 0px 0px 3px rgba(72, 187, 120, 0.5)`,`0px 0px 0px 3px rgba(245, 101, 101, 0.5)`,`inset 0px 2px 4px rgba(0, 0, 0, 0.06)`,`inset 0px 4px 6px rgba(0, 0, 0, 0.1)`,`inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1)`];function Sw(e,t=1){return t===1?[...xw]:xw.map(e=>e===`none`?e:e.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)/g,(e,n,r,i,a)=>`rgba(${n}, ${r}, ${i}, ${Math.min(1,parseFloat(a)*t).toFixed(2)})`))}xw[0],xw[1],xw[2],xw[3],xw[4],xw[5],xw[6],xw[8],xw[9],xw[14],xw[15],xw[19],xw[20],xw[21],xw[22];var Cw={fontFamily:{primary:`"Nunito Sans Variable", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,mono:`"JetBrains Mono", "Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},ww={xs:`0.75rem`,sm:`0.875rem`,md:`1rem`,lg:`1.125rem`,xl:`1.25rem`,"2xl":`1.5rem`,"3xl":`1.875rem`,"4xl":`2.25rem`,"5xl":`3rem`,"6xl":`3.75rem`},Tw={tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2};function Ew(e){let{fontFamily:t,fontWeights:n}=e;return{fontFamily:t.primary,fontWeightLight:n.light,fontWeightRegular:n.regular,fontWeightMedium:n.medium,fontWeightBold:n.bold,h1:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:ww[`5xl`],lineHeight:Tw.tight,letterSpacing:`-0.025em`},h2:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:ww[`4xl`],lineHeight:Tw.tight,letterSpacing:`-0.025em`},h3:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:ww[`3xl`],lineHeight:Tw.snug,letterSpacing:`-0.02em`},h4:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:ww[`2xl`],lineHeight:Tw.snug,letterSpacing:`-0.02em`},h5:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:ww.xl,lineHeight:Tw.snug},h6:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:ww.lg,lineHeight:Tw.snug},body1:{fontSize:ww.md,lineHeight:Tw.relaxed},body2:{fontSize:ww.sm,lineHeight:Tw.relaxed},subtitle1:{fontSize:ww.md,fontWeight:n.medium,lineHeight:Tw.normal},subtitle2:{fontSize:ww.sm,fontWeight:n.medium,lineHeight:Tw.normal},caption:{fontSize:ww.xs,lineHeight:Tw.normal},overline:{fontSize:ww.xs,fontWeight:n.semiBold,lineHeight:Tw.normal,textTransform:`uppercase`,letterSpacing:`0.08em`},button:{fontSize:ww.sm,fontWeight:n.semiBold,lineHeight:Tw.normal,textTransform:`none`}}}var Dw={50:`#FBF7E8`,100:`#F5EBC9`,200:`#EDDFA8`,300:`#E3D086`,400:`#D9C164`,500:`#C9A227`,600:`#A88820`,700:`#876D1A`,800:`#665314`,900:`#45380E`,950:`#241D07`},Ow={50:`#F5EEF5`,100:`#E8D5E8`,200:`#D4B3D4`,300:`#B38AB3`,400:`#996399`,500:`#6B3A6B`,600:`#5A305A`,700:`#4A284A`,800:`#3A1F3A`,900:`#2A172A`,950:`#1A0F1A`},kw={50:`#FAF9F7`,100:`#F5F3F0`,200:`#E8E4DE`,300:`#D4CEC4`,400:`#B8AFA0`,500:`#9C917C`,600:`#7A6F5C`,700:`#5C5244`,800:`#3E362C`,900:`#201C16`,950:`#100E0B`},Aw={50:`#F9E8E8`,100:`#F0C9C9`,200:`#E4A3A3`,300:`#D57C7C`,400:`#C65656`,500:`#B82E2E`,600:`#9A2626`,700:`#7D1E1E`,800:`#5F1717`,900:`#42100F`,950:`#250908`},jw={50:`#FEF8E6`,100:`#FCEFC2`,200:`#F9E394`,300:`#F5D566`,400:`#F0C538`,500:`#D4A012`,600:`#B1850F`,700:`#8E6B0C`,800:`#6B5009`,900:`#483606`,950:`#251B03`},Mw={50:`#E8F4E8`,100:`#C9E4C9`,200:`#A3D1A3`,300:`#7DBD7D`,400:`#56A956`,500:`#2E8B2E`,600:`#267426`,700:`#1E5D1E`,800:`#174717`,900:`#0F300F`,950:`#081A08`},Nw={50:`#E8F0F6`,100:`#C9DCEB`,200:`#A3C4DD`,300:`#7DACCE`,400:`#5694C0`,500:`#2E7AB8`,600:`#26669A`,700:`#1E527C`,800:`#173E5E`,900:`#0F2A40`,950:`#081520`},Pw={50:`#F9F5FF`,100:`#F0E6FF`,200:`#E3CFFF`,300:`#CEA9FF`,400:`#B574FF`,500:`#BD93F9`,600:`#A57EE0`,700:`#8666B8`,800:`#6E5394`,900:`#5B4579`,950:`#3B2D4D`},Fw={50:`#FFF5F7`,100:`#FFE5EA`,200:`#FFCCD6`,300:`#FFA4B5`,400:`#FF6E8B`,500:`#FF79C6`,600:`#E85AA1`,700:`#C4407F`,800:`#A2356A`,900:`#87305B`,950:`#4E1533`},Iw={50:`#ECFFFE`,100:`#CFFFFE`,200:`#A5FFFE`,300:`#67FFFC`,400:`#22FFF5`,500:`#8BE9FD`,600:`#06D1E7`,700:`#0BA6BC`,800:`#118497`,900:`#136C7D`,950:`#05484E`};Pw[500];var Lw={50:`#FFF4ED`,100:`#FFE4D4`,200:`#FFC9A8`,300:`#FFAA71`,400:`#FF8038`,500:`#FF5F11`,600:`#F04006`,700:`#C72D07`,800:`#9E250E`,900:`#7F230F`,950:`#450E05`},Rw={50:`#FFF1F2`,100:`#FFE1E3`,200:`#FFC8CD`,300:`#FFA1A9`,400:`#FF6B78`,500:`#FA3D4D`,600:`#E81B2D`,700:`#C31323`,800:`#A11421`,900:`#861721`,950:`#49060C`};Lw[500];var zw={50:`#EEF2FF`,100:`#E0E7FF`,200:`#C7D2FE`,300:`#A5B4FC`,400:`#818CF8`,500:`#6366F1`,600:`#4F46E5`,700:`#4338CA`,800:`#3730A3`,900:`#312E81`,950:`#1E1B4B`},Bw={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};zw[500];var Vw={50:`#FFFBEB`,100:`#FEF3C7`,200:`#FDE68A`,300:`#FCD34D`,400:`#FBBF24`,500:`#F59E0B`,600:`#D97706`,700:`#B45309`,800:`#92400E`,900:`#78350F`,950:`#451A03`},Hw={50:`#F0FDFA`,100:`#CCFBF1`,200:`#99F6E4`,300:`#5EEAD4`,400:`#2DD4BF`,500:`#14B8A6`,600:`#0D9488`,700:`#0F766E`,800:`#115E59`,900:`#134E4A`,950:`#042F2E`};Vw[500];var Uw={50:`#FAFAFA`,100:`#F5F5F5`,200:`#E5E5E5`,300:`#D4D4D4`,400:`#A3A3A3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0A0A0A`},Ww={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};Uw[500];var Gw={name:`arctic`,displayName:`Arctic`,description:`A cool, crisp blue theme inspired by northern landscapes.`,preferredMode:`light`,lightPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#1E88E5`,dark:`#1565C0`,darker:`#0D47A1`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#26C6DA`,dark:`#00ACC1`,darker:`#00838F`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#66BB6A`,dark:`#43A047`,darker:`#2E7D32`,contrastText:`#000000`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFB300`,dark:`#FF8F00`,darker:`#FF6F00`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#E53935`,darker:`#C62828`,contrastText:`#FFFFFF`},grey:{50:`#FAFBFC`,100:`#F4F6F8`,200:`#E4E9ED`,300:`#D0D7DE`,400:`#AFB8C1`,500:`#8C959F`,600:`#6E7781`,700:`#57606A`,800:`#424A53`,900:`#32383F`,950:`#272C31`},common:{black:`#1B1F23`,white:`#FFFFFF`},background:{default:`#E8F0F6`,paper:`#F1F9FB`,neutral:`#E4E9ED`},text:{primary:`#1B1F23`,secondary:`#57606A`,disabled:`#8C959F`}},darkPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#000000`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#64B5F6`,dark:`#42A5F5`,darker:`#1E88E5`,contrastText:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#4DD0E1`,dark:`#26C6DA`,darker:`#00ACC1`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#81C784`,dark:`#66BB6A`,darker:`#4CAF50`,contrastText:`#000000`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFCA28`,dark:`#FFB300`,darker:`#FFA000`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#F44336`,darker:`#E53935`,contrastText:`#FFFFFF`},grey:{50:`#0D1117`,100:`#161B22`,200:`#21262D`,300:`#30363D`,400:`#484F58`,500:`#6E7681`,600:`#8B949E`,700:`#B1BAC4`,800:`#C9D1D9`,900:`#F0F6FC`},common:{black:`#010409`,white:`#FFFFFF`},background:{default:`#0D1117`,paper:`#161B22`,neutral:`#21262D`},text:{primary:`#F0F6FC`,secondary:`#B1BAC4`,disabled:`#6E7681`}},typography:{fontFamily:{primary:`"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Poppins", -apple-system, BlinkMacSystemFont, sans-serif`,mono:`"Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},colorGroup:{key:`arctic`,main:`#1E88E5`}};function Kw(e){switch(e){case`luxury`:return{lightPalette:c_({primary:Dw,secondary:Ow,info:Nw,success:Mw,warning:jw,error:Aw,grey:kw,mode:`light`,backgroundDefault:`#FAF7F5`,paperColor:`#FDFBFB`}),darkPalette:c_({primary:Dw,secondary:Ow,info:Nw,success:Mw,warning:jw,error:Aw,grey:kw,mode:`dark`}),colorGroup:{key:`luxury`,main:Dw[500],palette:Dw}};case`arctic`:return{lightPalette:qw(Gw.lightPalette,`light`),darkPalette:qw(Gw.darkPalette,`dark`),colorGroup:{key:`arctic`,main:`#1E88E5`,palette:Yg}};case`dracula`:return{lightPalette:c_({primary:Pw,secondary:Fw,info:Iw,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`light`,backgroundDefault:`#F5F0FA`,paperColor:`#FAF7FC`}),darkPalette:c_({primary:Pw,secondary:Fw,info:Iw,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`dark`,backgroundDefault:`#282A36`,paperColor:`#21222C`}),colorGroup:{key:`dracula`,main:Pw[500],palette:Pw}};case`ember`:return{lightPalette:c_({primary:Lw,secondary:Rw,info:e_,success:Xg,warning:$g,error:Rw,grey:Jg,mode:`light`,backgroundDefault:`#FFF5F0`,paperColor:`#FFFAF7`}),darkPalette:c_({primary:Lw,secondary:Rw,info:e_,success:Xg,warning:$g,error:Rw,grey:Jg,mode:`dark`,backgroundDefault:`#1A0A05`,paperColor:`#2D1610`}),colorGroup:{key:`ember`,main:Lw[500],palette:Lw}};case`midnight`:return{lightPalette:c_({primary:zw,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Bw,mode:`light`,backgroundDefault:`#F0F0F8`,paperColor:`#F7F7FC`}),darkPalette:c_({primary:zw,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Bw,mode:`dark`,backgroundDefault:Bw[950],paperColor:Bw[900]}),colorGroup:{key:`midnight`,main:zw[500],palette:zw}};case`retro`:return{lightPalette:c_({primary:Vw,secondary:Hw,info:e_,success:Hw,warning:Vw,error:Qg,grey:Jg,mode:`light`,backgroundDefault:`#F8F1E0`,paperColor:`#FDF8EE`}),darkPalette:c_({primary:Vw,secondary:Hw,info:e_,success:Hw,warning:Vw,error:Qg,grey:Jg,mode:`dark`,backgroundDefault:`#1A1814`,paperColor:`#252218`}),colorGroup:{key:`retro`,main:Vw[500],palette:Vw}};case`minimal`:return{lightPalette:c_({primary:Ww,secondary:Uw,info:e_,success:Xg,warning:$g,error:Qg,grey:Uw,mode:`light`,backgroundDefault:`#FAFAFA`,paperColor:`#FFFFFF`}),darkPalette:c_({primary:Ww,secondary:Uw,info:e_,success:Xg,warning:$g,error:Qg,grey:Uw,mode:`dark`,backgroundDefault:`#0A0A0A`,paperColor:`#171717`}),colorGroup:{key:`minimal`,main:Ww[500],palette:Ww}};case`nature`:return{lightPalette:c_({primary:Xg,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`light`,backgroundDefault:`#EEF6EE`,paperColor:`#F5FAF5`}),darkPalette:c_({primary:Xg,secondary:Zg,info:e_,success:Xg,warning:$g,error:Qg,grey:Jg,mode:`dark`,backgroundDefault:`#0A1A0A`,paperColor:`#0F1F0F`}),colorGroup:{key:`nature`,main:Xg[500],palette:Xg}};case`default-dark`:return{lightPalette:l_,darkPalette:u_,colorGroup:{key:`default-dark`,main:Yg[400],palette:Yg}};default:return{lightPalette:l_,darkPalette:u_,colorGroup:{key:`default-light`,main:Yg[500],palette:Yg}}}}function qw(e,t){let n=e.grey;return{mode:t,primary:zg(e.primary),secondary:zg(e.secondary),info:zg(e.info),success:zg(e.success),warning:zg(e.warning),error:zg(e.error),grey:n,common:e.common,background:e.background,text:e.text}}var Jw=[{key:`default-light`,main:Yg[500],palette:Yg},{key:`default-dark`,main:Yg[400],palette:Yg},{key:`green`,main:Xg[500],palette:Xg},{key:`purple`,main:Zg[500],palette:Zg},{key:`red`,main:Qg[500],palette:Qg},{key:`orange`,main:$g[500],palette:$g},{key:`lightBlue`,main:e_[500],palette:e_},{key:`luxury`,main:Dw[500],palette:Dw},{key:`dracula`,main:Pw[500],palette:Pw},{key:`ember`,main:Lw[500],palette:Lw},{key:`midnight`,main:zw[500],palette:zw},{key:`retro`,main:Vw[500],palette:Vw},{key:`minimal`,main:Ww[500],palette:Ww},{key:`nature`,main:Xg[500],palette:Xg},{key:`arctic`,main:`#1E88E5`,palette:Yg}];function Yw(e,t,n){if(!t)return e;let r=Jw.find(e=>e.main===t);if(r?.palette){let i=zg(n===`dark`?{lighter:r.palette[950],light:r.palette[700],main:t,dark:r.palette[300],darker:r.palette[100],contrastText:Gg(t)}:{lighter:r.palette[50],light:r.palette[400],main:t,dark:r.palette[600],darker:r.palette[900],contrastText:Gg(t)});return{...e,primary:i}}let i=Hg(t),a=zg(n===`dark`?{lighter:i[950],light:i[700],main:i[400],dark:i[300],darker:i[100],contrastText:Gg(i[400])}:{lighter:i[50],light:i[400],main:i[500],dark:i[600],darker:i[900],contrastText:Gg(i[500])});return{...e,primary:a}}function Xw(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function Zw(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];if(r===`styleOverrides`&&i&&a&&typeof i==`object`&&typeof a==`object`){let e={...i};for(let[t,n]of Object.entries(a))n!==void 0&&(e[t]=e[t]===void 0?n:[e[t],n]);n[r]=e}else n[r]=typeof a==`object`&&a&&!Array.isArray(a)&&typeof a!=`function`&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof i!=`function`?Zw(i,a):a}return n}function Qw(e={}){let{preset:t=`default-light`,mode:n=`light`,direction:r=`ltr`,locale:i=`enUS`,primaryColor:a=null,cssVarPrefix:o=`prism`,density:s=`standard`,borderRadius:c=8,responsiveFonts:l=!0,contrast:u=`default`,overrides:d}=e,f=Kw(t),p=Yw(f.lightPalette,a,`light`),m=Yw(f.darkPalette,a,`dark`);u===`high`&&(p={...p,background:{...p.background,default:Jg[200],paper:`#FFFFFF`}},m={...m,background:{...m.background,default:`#000000`,paper:Jg[900]}});let h=Xw(s),g={density:s,borderRadius:c,buttonStyle:`contained`},_={prefix:o,colorSchemeSelector:`data-${o}-color-scheme`,enabled:!0},v=Pg[i]||th,y=p.primary?.main||Yg[500],b=Sw(y),x=Sw(y,.4),S=n===`dark`?`dark`:`light`,C=S===`dark`?m:p,w=S===`dark`?x:b,T=Zw({cssVariables:{cssVarPrefix:o,colorSchemeSelector:_.colorSchemeSelector},palette:C,shadows:w,typography:Ew({fontFamily:{primary:e.fontFamily?`"${e.fontFamily}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`:Cw.fontFamily.primary,secondary:Cw.fontFamily.secondary,mono:Cw.fontFamily.mono},fontWeights:Cw.fontWeights}),direction:r,shape:{borderRadius:c},mixins:b_,components:bw(g)},{components:km()}),E=d?Zw(T,d):T,D=typeof E.cssVariables==`object`?E.cssVariables:void 0;E.palette=_f(E.palette,d?.palette,{nativeColor:D?.nativeColor,cssVarPrefix:D?.cssVarPrefix??o});let O=bu(E,v);l&&(O=$d(O));let k=O;return k.prism={preset:t,mode:n,direction:r,density:s,densityMultiplier:h,cssVariables:_},k}Xg[500];var $w=typeof Wu({})==`function`,eT=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),tT=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),nT=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:eT(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...tT(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},rT=`mui-ecs`,iT=e=>{let t=nT(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${rT})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${rT}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${rT}))`]:{colorScheme:r.palette?.mode}}}),t},aT=Wu($w?({theme:e,enableColorScheme:t})=>nT(e,t):({theme:e})=>iT(e));function oT(e){let{children:t,enableColorScheme:n=!1}=q({props:e,name:`MuiCssBaseline`});return(0,R.jsxs)(S.Fragment,{children:[$w&&(0,R.jsx)(aT,{enableColorScheme:n}),!$w&&!n&&(0,R.jsx)(`span`,{className:rT,style:{display:`none`}}),t]})}function sT(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var cT=sT(`https://mui.com/x/production-error`,`MUI X`);function lT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uT=[`localeText`],dT=S.createContext(null),fT=function(e){let{localeText:t}=e,n=lT(e,uT),{adapter:r,localeText:i}=S.useContext(dT)??{adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=ef({props:n,name:`MuiLocalizationProvider`}),d=S.useMemo(()=>qn({},u,i,t),[u,i,t]),f=S.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(cT(143));return e},[o,l,s,c,r]),p=S.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=S.useMemo(()=>({adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,R.jsx)(dT.Provider,{value:m,children:a})},pT=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(n,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),mT=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(n,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),hT=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),gT=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),ate=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(n,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),ote=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),_T=t(pT(),1),ste=t(mT(),1),cte=t(hT(),1),lte=t(gT(),1),ute=t(ate(),1),dte=t(ote(),1);_T.default.extend(lte.default),_T.default.extend(ste.default),_T.default.extend(ute.default),_T.default.extend(dte.default);var fte={YY:`year`,YYYY:{sectionType:`year`,contentType:`digit`,maxLength:4},M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMM:{sectionType:`month`,contentType:`letter`},MMMM:{sectionType:`month`,contentType:`letter`},D:{sectionType:`day`,contentType:`digit`,maxLength:2},DD:`day`,Do:{sectionType:`day`,contentType:`digit-with-letter`},d:{sectionType:`weekDay`,contentType:`digit`,maxLength:2},dd:{sectionType:`weekDay`,contentType:`letter`},ddd:{sectionType:`weekDay`,contentType:`letter`},dddd:{sectionType:`weekDay`,contentType:`letter`},A:`meridiem`,a:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},pte={year:`YYYY`,month:`MMMM`,monthShort:`MMM`,dayOfMonth:`D`,dayOfMonthFull:`Do`,weekday:`dddd`,weekdayShort:`dd`,hours24h:`HH`,hours12h:`hh`,meridiem:`A`,minutes:`mm`,seconds:`ss`,fullDate:`ll`,keyboardDate:`L`,shortDate:`MMM D`,normalDate:`D MMMM`,normalDateWithWeekday:`ddd, MMM D`,fullTime12h:`hh:mm A`,fullTime24h:`HH:mm`,keyboardDateTime12h:`L hh:mm A`,keyboardDateTime24h:`L HH:mm`};function vT(){throw Error(cT(138))}function yT(){throw Error(cT(139))}var mte=class{isMUIAdapter=!0;isTimezoneCompatible=!0;lib=`dayjs`;escapedCharacters={start:`[`,end:`]`};formatTokenMap=fte;constructor({locale:e,formats:t}={}){this.locale=e,this.formats=qn({},pte,t),_T.default.extend(cte.default)}setLocaleToValue=e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>_T.default.utc!==void 0;hasTimezonePlugin=()=>_T.default.tz!==void 0;isSame=(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)};cleanTimezone=e=>{switch(e){case`default`:return;case`system`:return _T.default.tz.guess();default:return e}};createSystemDate=e=>this.setLocaleToValue((0,_T.default)(e));createUTCDate=e=>(this.hasUTCPlugin()||vT(),this.setLocaleToValue(_T.default.utc(e)));createTZDate=(e,t)=>{this.hasUTCPlugin()||vT(),this.hasTimezonePlugin()||yT();let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,_T.default)(e).tz(this.cleanTimezone(t),n))};getLocaleFormats=()=>{let e=_T.default.Ls,t=e[this.locale||`en`];return t===void 0&&(t=e.en),t.formats};adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if(t===`UTC`||t===`system`&&e.$offset===void 0)return e;if(t!==`system`&&e.isValid())return this.getWallTimeValue(this.getWallTime(e),t,e.utcOffset()).locale(e.locale());let n=e.tz(this.cleanTimezone(t),!0);return(n.$offset??0)!==(e.$offset??0)&&(e.$offset=n.$offset),e};getWallTime=e=>{let t=new Date(0);return t.setUTCFullYear(e.year(),e.month(),e.date()),t.setUTCHours(e.hour(),e.minute(),e.second(),e.millisecond()),t.getTime()};toTimezone=(e,t)=>{let n=(e%1e3+1e3)%1e3;return this.setTimezone((0,_T.default)(e-n),t).add(n,`millisecond`)};getWallTimeValue=(e,t,n)=>{let r=n=>this.toTimezone(e-n*6e4,t);if(n!==void 0){let t=r(n);if(this.getWallTime(t)===e)return t}let i=r(this.toTimezone(e-864e5,t).utcOffset());if(this.getWallTime(i)===e)return i;let a=r(this.toTimezone(e+864e5,t).utcOffset());return this.getWallTime(a)===e?a:i};addTime=(e,t,n)=>{if(!this.hasTimezonePlugin())return this.adjustOffset(e.add(t,n));let r=(0,_T.default)(e.valueOf()).add(t,n).valueOf();return this.toTimezone(r,this.getTimezone(e)).locale(e.locale())};isAffectedByLocalMeanTime=e=>{let t=e.$x?.$timezone;return this.hasUTCPlugin()&&this.hasTimezonePlugin()&&!!t};getDaysInMonthFromFields=e=>{let t=new Date(0);return t.setUTCFullYear(e.year(),e.month()+1,0),t.getUTCDate()};restoreDayOfMonth=(e,t)=>{if(!this.isAffectedByLocalMeanTime(e)||!e.isValid())return e;let n=Math.min(t.date(),this.getDaysInMonthFromFields(e));return e.date()===n?e:e.set(`date`,n)};date=(e,t=`default`)=>e===null?null:t===`UTC`?this.createUTCDate(e):t===`system`||t==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t);getInvalidDate=()=>(0,_T.default)(new Date(`Invalid date`));getTimezone=e=>{if(this.hasTimezonePlugin()){let t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?`UTC`:`system`};setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if(t===`UTC`)return this.hasUTCPlugin()||vT(),e.utc();if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t==="default")return e;yT()}return this.setLocaleToValue(_T.default.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>e===``?null:(0,_T.default)(e,t,this.locale,!0);getCurrentLocaleCode=()=>this.locale||`en`;is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||``);expandFormat=e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let a=i&&i.toUpperCase();return r||t[i]||n(t[a])})};isValid=e=>e!=null&&e.isValid();format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>this.setLocaleToValue(e).format(t);formatNumber=e=>e;isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:e.toDate().getTime()===t.toDate().getTime();isSameYear=(e,t)=>this.isSame(e,t,`YYYY`);isSameMonth=(e,t)=>this.isSame(e,t,`YYYY-MM`);isSameDay=(e,t)=>this.isSame(e,t,`YYYY-MM-DD`);isSameHour=(e,t)=>e.isSame(t,`hour`);isAfter=(e,t)=>e>t;isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,`year`);isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,`day`);isBefore=(e,t)=>e<t;isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,`year`);isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,`day`);isWithinRange=(e,[t,n])=>e>=t&&e<=n;startOfYear=e=>this.adjustOffset(e.startOf(`year`));startOfMonth=e=>this.adjustOffset(e.startOf(`month`));startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf(`week`));startOfDay=e=>{let t=this.getTimezone(e);if(t===`UTC`||!this.hasTimezonePlugin()||!e.isValid())return this.adjustOffset(e.startOf(`day`));if(t===`system`)return(0,_T.default)(e.valueOf()).startOf(`day`).locale(e.locale());let n=new Date(this.getWallTime(e));return n.setUTCHours(0,0,0,0),this.getWallTimeValue(n.getTime(),t).locale(e.locale())};endOfYear=e=>this.adjustOffset(e.endOf(`year`));endOfMonth=e=>this.adjustOffset(e.endOf(`month`));endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf(`week`));endOfDay=e=>this.adjustOffset(e.endOf(`day`));addYears=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.add(t,`year`),e));addMonths=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.add(t,`month`),e));addWeeks=(e,t)=>this.adjustOffset(e.add(t,`week`));addDays=(e,t)=>this.adjustOffset(e.add(t,`day`));addHours=(e,t)=>this.addTime(e,t,`hour`);addMinutes=(e,t)=>this.addTime(e,t,`minute`);addSeconds=(e,t)=>this.addTime(e,t,`second`);getYear=e=>e.year();getMonth=e=>e.month();getDate=e=>e.date();getHours=e=>e.hour();getMinutes=e=>e.minute();getSeconds=e=>e.second();getMilliseconds=e=>e.millisecond();setYear=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.set(`year`,t),e));setMonth=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.set(`month`,t),e));setDate=(e,t)=>this.adjustOffset(e.set(`date`,t));setHours=(e,t)=>this.adjustOffset(e.set(`hour`,t));setMinutes=(e,t)=>this.adjustOffset(e.set(`minute`,t));setSeconds=(e,t)=>this.adjustOffset(e.set(`second`,t));setMilliseconds=(e,t)=>this.adjustOffset(e.set(`millisecond`,t));getDaysInMonth=e=>this.isAffectedByLocalMeanTime(e)?this.getDaysInMonthFromFields(e):e.daysInMonth();getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;i<n;){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a};getWeekNumber=e=>e.week();getDayOfWeek(e){return e.day()+1}getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}},hte=n(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`COMMENT`",t=`[^\\u0020-\\u007e]`,n=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,i=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,a=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,o=`direction\\s*:\\s*`,s=`[!#$%&*-~]`,c=`['"]?\\s*`,l=`(^|[^a-zA-Z])`,u=`[^\\}]*?`,d=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,f=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,p=`(?:`+n+`|\\\\[^\\r\\n\\f0-9a-f])`,m=`(?:[_a-z]|`+t+`|`+p+`)`,h=`(?:[_a-z0-9-]|`+t+`|`+p+`)`,g=`-?`+m+h+`*`,_=i+`(?:\\s*`+a+`|`+g+`)?`,v=`((?:-?`+_+`)|(?:inherit|auto))`,y=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+i+`(?:\\s*`+a+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,b=`((?:-?`+_+`)|(?:inherit|auto)|`+y+`)`,x=`((?:margin|padding|border-width)\\s*:\\s*)`,S=`((?:-color|border-style)\\s*:\\s*)`,C=`(#?`+h+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,w=`(?:`+s+`|`+t+`|`+p+`)*?`,T=`(?![a-zA-Z])`,E=`(?!(`+h+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+e+`)*?{)`,D=`(?!`+w+c+`\\))`,O=`(?=`+w+c+`\\))`,k=`(\\s*(?:!important\\s*)?[;}])`,A=/`TMP`/g,j=/`TMPLTR`/g,M=/`TMPRTL`/g,N=new RegExp(f,`gi`),P=RegExp(`(`+d+E+`[^;}]+;?)`,`gi`),F=RegExp(`(`+d+u+`})`,`gi`),ee=RegExp(`(`+o+`)ltr`,`gi`),te=RegExp(`(`+o+`)rtl`,`gi`),ne=RegExp(l+`(left)`+T+D+E,`gi`),re=RegExp(l+`(right)`+T+D+E,`gi`),ie=RegExp(l+`(left)`+O,`gi`),ae=RegExp(l+`(right)`+O,`gi`),oe=/(:dir\( *)ltr( *\))/g,se=/(:dir\( *)rtl( *\))/g,ce=RegExp(l+`(ltr)`+O,`gi`),le=RegExp(l+`(rtl)`+O,`gi`),ue=RegExp(l+`([ns]?)e-resize`,`gi`),de=RegExp(l+`([ns]?)w-resize`,`gi`),fe=RegExp(x+b+`(\\s+)`+b+`(\\s+)`+b+`(\\s+)`+b+k,`gi`),pe=RegExp(S+C+`(\\s+)`+C+`(\\s+)`+C+`(\\s+)`+C+k,`gi`),me=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+_+`)`,`gi`),I=RegExp(`(background-position-x\\s*:\\s*)(-?`+i+`%)`,`gi`),he=RegExp(`(border-radius\\s*:\\s*)`+v+`(?:(?:\\s+`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?(?:(?:(?:\\s*\\/\\s*)`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?`+k,`gi`),ge=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+v,`gi`),_e=RegExp(`(text-shadow\\s*:\\s*)`+v+`(\\s*)`+C,`gi`),ve=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+v,`gi`),ye=RegExp(`(text-shadow\\s*:\\s*)`+v,`gi`),be=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+v+`(\\s*\\))`,`gi`),xe=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+v+`((?:\\s*,\\s*`+v+`){0,2}\\s*\\))`,`gi`);function Se(e,t,n){var r,i;return t.split(`(`).length>t.split(`)`).length?e:(n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n)}function Ce(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(` `)}function we(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?Ce(i)+` / `+Ce(a):Ce(i),t+n+o}function Te(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Ee(e,t,n){return t+Te(n)}function De(e,t,n,r,i){return t+n+Te(r)+i}function Oe(e,t,n,r,i){return t+n+r+Te(i)}return{transform:function(t,n){var i=new r(P,"`NOFLIP_SINGLE`"),a=new r(F,"`NOFLIP_CLASS`"),o=new r(N,e);return t=o.tokenize(a.tokenize(i.tokenize(t.replace("`",`%60`)))),n.transformDirInUrl&&(t=t.replace(oe,"$1`TMPLTR`$2").replace(se,"$1`TMPRTL`$2").replace(ce,"$1`TMP`").replace(le,`$1ltr`).replace(A,`rtl`).replace(j,`ltr`).replace(M,`rtl`)),n.transformEdgeInUrl&&(t=t.replace(ie,"$1`TMP`").replace(ae,`$1left`).replace(A,`right`)),t=t.replace(ee,"$1`TMP`").replace(te,`$1ltr`).replace(A,`rtl`).replace(ne,"$1`TMP`").replace(re,`$1left`).replace(A,`right`).replace(ue,"$1$2`TMP`").replace(de,`$1$2e-resize`).replace(A,`w-resize`).replace(he,we).replace(ge,Ee).replace(_e,Oe).replace(ve,Oe).replace(ye,Ee).replace(be,De).replace(xe,De).replace(fe,`$1$2$3$8$5$6$7$4$9`).replace(pe,`$1$2$3$8$5$6$7$4$9`).replace(me,Se).replace(I,Se),t=i.detokenize(a.detokenize(o.detokenize(t))),t}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),bT=`comm`,xT=`rule`,ST=`decl`,gte=`@import`,_te=Math.abs,CT=String.fromCharCode;function wT(e){return e.trim()}function TT(e,t,n){return e.replace(t,n)}function ET(e,t){return e.charCodeAt(t)|0}function DT(e,t,n){return e.slice(t,n)}function OT(e){return e.length}function vte(e){return e.length}function kT(e,t){return t.push(e),e}var AT=1,jT=1,MT=0,NT=0,PT=0,FT=``;function IT(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:AT,column:jT,length:o,return:``,siblings:s}}function yte(){return PT}function bte(){return PT=NT>0?ET(FT,--NT):0,jT--,PT===10&&(jT=1,AT--),PT}function LT(){return PT=NT<MT?ET(FT,NT++):0,jT++,PT===10&&(jT=1,AT++),PT}function RT(){return ET(FT,NT)}function zT(){return NT}function BT(e,t){return DT(FT,e,t)}function VT(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xte(e){return AT=jT=1,MT=OT(FT=e),NT=0,[]}function Ste(e){return FT=``,e}function HT(e){return wT(BT(NT-1,UT(e===91?e+2:e===40?e+1:e)))}function Cte(e){for(;(PT=RT())&&PT<33;)LT();return VT(e)>2||VT(PT)>3?``:` `}function wte(e,t){for(;--t&&LT()&&!(PT<48||PT>102||PT>57&&PT<65||PT>70&&PT<97););return BT(e,zT()+(t<6&&RT()==32&&LT()==32))}function UT(e){for(;LT();)switch(PT){case e:return NT;case 34:case 39:e!==34&&e!==39&&UT(PT);break;case 40:e===41&&UT(e);break;case 92:LT()}return NT}function Tte(e,t){for(;LT()&&e+PT!==57&&(e+PT!==84||RT()!==47););return`/*`+BT(t,NT-1)+`*`+CT(e===47?e:LT())}function Ete(e){for(;!VT(RT());)LT();return BT(e,NT)}function Dte(e){return Ste(WT(``,null,null,null,[``],e=xte(e),0,[0],e))}function WT(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=LT()){case 40:m!=108&&ET(w,d-1)==58?(v++,w+=`(`):w+=HT(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=HT(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=CT(y);break}w+=Cte(m);break;case 92:w+=wte(zT()-1,7);continue;case 47:switch(RT()){case 42:case 47:kT(Ote(Tte(LT(),zT()),t,n,c),c),(VT(m||1)==5||VT(RT()||1)==5)&&OT(w)&&DT(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=OT(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=CT(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=TT(w,/\f/g,``)),p>0&&(OT(w)-d||h===0)&&kT(p>32?KT(w+`;`,r,n,d-1,c):KT(TT(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(kT(C=GT(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)WT(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(ET(w,3)===110)break;case 108:if(ET(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?WT(e,C,C,r&&kT(GT(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):WT(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+OT(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&bte()==125)continue}switch(w+=CT(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(OT(w)-1)*_,_=1;break;case 64:RT()===45&&(w+=HT(LT())),f=RT(),u=d=OT(b=w+=Ete(zT())),y++;break;case 45:m===45&&OT(w)==2&&(h=0)}}return a}function GT(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=vte(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=DT(e,f+1,f=_te(g=o[h])),b=e;v<m;++v)(b=wT(g>0?p[v]+` `+y:TT(y,/&\f/g,p[v])))&&(c[_++]=b);return IT(e,t,n,i===0?xT:s,c,l,u,d)}function Ote(e,t,n,r){return IT(e,t,n,bT,CT(yte()),DT(e,2,-2),0,r)}function KT(e,t,n,r,i){return IT(e,t,n,ST,DT(e,0,r),DT(e,r+1,-1),r,i)}function kte(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}var Ate=t(hte());function qT(e,t,n){switch(e.type){case gte:case ST:case bT:return e.return=e.return||e.value;case xT:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===`comm`&&(e.children=e.value)})}var r=kte(Array.prototype.concat(e.children),qT);return OT(r)?e.return=e.value+`{`+r+`}`:``}function JT(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=Ate.transform(qT(e,t,n));e.children=i?Dte(i)[0].children:[],e.return=``}}Object.defineProperty(JT,"name",{value:`stylisRTLPlugin`});var jte={paths:{components:`src/components/prism`,blocks:`src/blocks`,themes:`src/theme`,utils:`src/lib/prism`,types:`src/types/prism`},registries:{default:`@omnitron-dev/prism-registry`,registries:{}},theme:{preset:`default`,mode:`light`,direction:`ltr`,cssVariables:{prefix:`prism`,colorSchemeSelector:`data-theme`,enabled:!0}},style:{framework:`mui`,cssVariables:!0,prefix:`prism`},features:{darkMode:!0,rtl:!1,i18n:!1,analytics:!1},typescript:!0},YT=(0,S.createContext)(null);YT.displayName=`PrismContext`;function Mte(){let e=(0,S.useContext)(YT);if(!e)throw Error(`usePrismContext must be used within a PrismProvider`);return e}function Nte(e){return B(`MuiAlert`,e)}var XT=V(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),Pte=wf((0,R.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),Fte=wf((0,R.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),Ite=wf((0,R.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),Lte=wf((0,R.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),Rte=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return U({root:[`root`,`color${J(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},Nte,i)},zte=G(ny,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(K(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(P_([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${XT.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(P_([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${XT.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(P_([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{...e.focusVisible&&Sl(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Bte=G(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Vte=G(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Hte=G(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),ZT={success:(0,R.jsx)(Pte,{fontSize:`inherit`}),warning:(0,R.jsx)(Fte,{fontSize:`inherit`}),error:(0,R.jsx)(Ite,{fontSize:`inherit`}),info:(0,R.jsx)(Lte,{fontSize:`inherit`})},QT=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=ZT,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=Rte(_),y={slots:m,slotProps:p},[b,x]=Gv(`root`,{ref:t,shouldForwardComponentProp:!0,className:z(v.root,a),elementType:zte,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=Gv(`icon`,{className:v.icon,elementType:Bte,externalForwardedProps:y,ownerState:_}),[w,T]=Gv(`message`,{className:v.message,elementType:Vte,externalForwardedProps:y,ownerState:_}),[E,D]=Gv(`action`,{className:v.action,elementType:Hte,externalForwardedProps:y,ownerState:_}),[O,k]=Gv(`closeButton`,{elementType:Nv,externalForwardedProps:y,ownerState:_}),[A,j]=Gv(`closeIcon`,{elementType:hw,externalForwardedProps:y,ownerState:_});return(0,R.jsxs)(b,{...x,children:[c===!1?null:(0,R.jsx)(S,{...C,children:c||l[f]||ZT[f]}),(0,R.jsx)(w,{...T,children:i}),r==null?null:(0,R.jsx)(E,{...D,children:r}),r==null&&u?(0,R.jsx)(E,{...D,children:(0,R.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,R.jsx)(A,{fontSize:`small`,...j})})}):null]})});function Ute(e){return B(`MuiAlertTitle`,e)}V(`MuiAlertTitle`,[`root`]);var Wte=e=>{let{classes:t}=e;return U({root:[`root`]},Ute,t)},Gte=G(Nb,{name:`MuiAlertTitle`,slot:`Root`})(K(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),$T=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiAlertTitle`}),{className:r,...i}=n,a=n,o=Wte(a);return(0,R.jsx)(Gte,{gutterBottom:!0,component:`div`,ownerState:a,ref:t,className:z(o.root,r),...i})});function Kte(e){return B(`MuiAppBar`,e)}V(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var qte=e=>{let{color:t,position:n,classes:r}=e;return U({root:[`root`,`color${J(t)}`,`position${J(n)}`]},Kte,r)},eE=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Jte=G(ny,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${J(n.position)}`],t[`color${J(n.color)}`]]}})(K(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(P_([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText,...e.focusVisible&&Sl(`0 0 0 4px ${(e.vars||e).palette.background.default}`)}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?eE(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?eE(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),Yte=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a},l=qte(c);return(0,R.jsx)(Jte,{square:!0,component:`header`,ownerState:c,elevation:4,className:z(l.root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})}),Xte=wf((0,R.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`}),`Person`);function Zte(e){return B(`MuiAvatar`,e)}V(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var Qte=e=>{let{classes:t,variant:n,colorDefault:r}=e;return U({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},Zte,t)},$te=G(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(K(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,"@media (forced-colors: active)":{boxSizing:`border-box`,border:`1px solid ButtonBorder`},...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})}}}]}))),ene=G(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),tne=G(Xte,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function nne(e,t,n,r){let[i,a]=S.useState(!1);return S.useEffect(()=>{if(!e&&!t)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=n,o.referrerPolicy=r,o.src=e,t&&(o.srcset=t),()=>{i=!1}},[n,r,e,t]),i}var rne=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:a,component:o=`div`,slots:s={},slotProps:c={},sizes:l,src:u,srcSet:d,variant:f=`circular`,...p}=n,m=null,h={...n,component:o,variant:f},{crossOrigin:g,referrerPolicy:_}=(typeof c.img==`function`?c.img(h):c.img)??{},v=nne(u,d,g,_),y=u||d,b=y&&v!==`error`;h.colorDefault=!b,delete h.ownerState;let x=Qte(h),S={slots:s,slotProps:c},[C,w]=Gv(`root`,{ref:t,className:z(x.root,a),elementType:$te,externalForwardedProps:{...S,component:o,...p},ownerState:h}),[T,E]=Gv(`img`,{className:x.img,elementType:ene,externalForwardedProps:S,additionalProps:{alt:r,src:u,srcSet:d,sizes:l},ownerState:h}),[D,O]=Gv(`fallback`,{className:x.fallback,elementType:tne,externalForwardedProps:S,shouldForwardComponentProp:!0,ownerState:h});return m=b?(0,R.jsx)(T,{...E}):i||i===0?i:y&&r?r[0]:(0,R.jsx)(D,{...O}),(0,R.jsx)(C,{...w,children:m})}),ine={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ane={opacity:0,visibility:`hidden`},tE=S.forwardRef(function(e,t){let n=Bu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=sv(n.motion.reducedMotion,s),b=S.useRef(null),x=Gu(b,QC(o),t),C=pd(b,f),w=pd(b,(e,t)=>{y.shouldReduceMotion||rd(e);let r=hd({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),T=pd(b,d),E=pd(b,h),D=pd(b,e=>{let t=hd({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),O=pd(b,e=>{e.style.transition=``,m&&m(e)});return(0,R.jsx)(zv,{appear:a,in:l,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:i?e=>{i(b.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=md(e,l,ine,ane,g,o.props.style);return S.cloneElement(o,{style:r,ref:x,...n})}})});function one(e){return B(`MuiBackdrop`,e)}V(`MuiBackdrop`,[`root`,`invisible`]);var sne=e=>{let{classes:t,invisible:n}=e;return U({root:[`root`,n&&`invisible`]},one,t)},cne=G(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),nE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=sne(f),m={component:a,slots:l,slotProps:c},[h,g]=Gv(`root`,{elementType:cne,externalForwardedProps:m,className:z(p.root,i),ownerState:f}),[_,v]=Gv(`transition`,{elementType:tE,externalForwardedProps:m,ownerState:f});return(0,R.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,R.jsx)(h,{...g,ref:t,children:r})})});function lne(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=nS({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function une(e){return B(`MuiBadge`,e)}var dne=V(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),fne=10,pne=4,mne=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return U({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(i)}`,`overlap${J(i)}`,t!=="default"&&`color${J(t)}`]},une,o)},hne=G(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),gne=G(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(K(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:`0 6px`,height:20,borderRadius:fne,zIndex:1,"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},..._d(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(P_([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:pne,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{..._d(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:{inset:`var(--Badge-inset)`,transform:`scale(1) translate(var(--Badge-translate))`,transformOrigin:`var(--Badge-origin)`,[`&.${dne.invisible}`]:{transform:`scale(0) translate(var(--Badge-translate))`}}}]})));function rE(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var iE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,children:s,overlap:c=`rectangular`,color:l=`default`,invisible:u=!1,max:d=99,badgeContent:f,slots:p,slotProps:m,showZero:h=!1,variant:g=`standard`,..._}=n,{badgeContent:v,invisible:y,max:b,displayValue:x}=lne({max:d,invisible:u,badgeContent:f,showZero:h}),S=nS({anchorOrigin:rE(r),color:l,overlap:c,variant:g,badgeContent:f}),C=y||v==null&&g!==`dot`,{color:w=l,overlap:T=c,anchorOrigin:E,variant:D=g}=C?S:n,O=rE(E),k=D===`dot`?void 0:x,A={...n,badgeContent:v,invisible:C,max:b,displayValue:k,showZero:h,anchorOrigin:O,color:w,overlap:T,variant:D},j=mne(A),M={slots:p,slotProps:m},[N,P]=Gv(`root`,{elementType:hne,externalForwardedProps:{...M,..._},ownerState:A,className:z(j.root,i),ref:t,additionalProps:{as:o}}),{vertical:F,horizontal:ee}=O,te=T===`circular`?`14%`:`0`,ne=F===`top`?te:`auto`,re=F===`bottom`?te:`auto`,ie=ee===`right`?te:`auto`,ae=ee===`left`?te:`auto`,[oe,se]=Gv(`badge`,{elementType:gne,externalForwardedProps:M,ownerState:A,className:j.badge,additionalProps:{"aria-hidden":!0,style:{"--Badge-translate":`${ee===`right`?`50%`:`-50%`}, ${F===`top`?`-50%`:`50%`}`,"--Badge-inset":`${ne} ${ie} ${re} ${ae}`,"--Badge-origin":`${ee===`right`?`100%`:`0%`} ${F===`top`?`0%`:`100%`}`}}});return(0,R.jsxs)(N,{...P,children:[s,(0,R.jsx)(oe,{...se,children:k})]})}),_ne=V(`MuiBox`,[`root`]),Z=is({themeId:Kn,defaultTheme:bu(),defaultClassName:_ne.root,generateClassName:ns.generate}),vne=wf((0,R.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}),`MoreHoriz`),yne=G(hv,{name:`MuiBreadcrumbCollapsed`})(K(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,backgroundColor:(e.vars||e).palette.grey[100],color:(e.vars||e).palette.grey[700],borderRadius:2,"&:hover, &:focus":{backgroundColor:(e.vars||e).palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:Hs(e.palette.grey[200],.12)},...e.applyStyles(`dark`,{backgroundColor:(e.vars||e).palette.grey[700],color:(e.vars||e).palette.grey[100],"&:hover, &:focus":{backgroundColor:(e.vars||e).palette.grey[600]},"&:active":{backgroundColor:Hs(e.palette.grey[600],.12)}})}))),bne=G(vne)({width:24,height:16});function xne(e){let{slots:t={},slotProps:n={},...r}=e,{nativeButton:i,...a}=r,o=e;return(0,R.jsx)(`li`,{children:(0,R.jsx)(yne,{focusRipple:!0,...a,ownerState:o,children:(0,R.jsx)(bne,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function Sne(e){return B(`MuiBreadcrumbs`,e)}var Cne=V(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),wne=e=>{let{classes:t}=e;return U({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},Sne,t)},Tne=G(Nb,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${Cne.li}`]:t.li},t.root]})({}),Ene=G(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),Dne=G(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function One(e,t,n,r){return e.reduce((i,a,o)=>(i.push(a),o<e.length-1&&i.push((0,R.jsx)(Dne,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)),i),[])}var kne=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:c=`Show path`,itemsAfterCollapse:l=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f=`/`,...p}=n,[m,h]=S.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=wne(g),v=ZC({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=S.useRef(null),b=e=>{let t=()=>{h(!0);let e=y.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return u+l>=e.length?e:[...e.slice(0,u),(0,R.jsx)(xne,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=S.Children.toArray(r).filter(e=>S.isValidElement(e)).map((e,t)=>(0,R.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,R.jsx)(Tne,{ref:t,component:a,color:`textSecondary`,className:z(_.root,i),ownerState:g,...p,children:(0,R.jsx)(Ene,{className:_.ol,ref:y,ownerState:g,children:One(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function Ane(e){return B(`MuiCard`,e)}V(`MuiCard`,[`root`]);var jne=e=>{let{classes:t}=e;return U({root:[`root`]},Ane,t)},Mne=G(ny,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),aE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i},s=jne(o);return(0,R.jsx)(Mne,{className:z(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function Nne(e){return B(`MuiCardActions`,e)}V(`MuiCardActions`,[`root`,`spacing`]);var Pne=e=>{let{classes:t,disableSpacing:n}=e;return U({root:[`root`,!n&&`spacing`]},Nne,t)},Fne=G(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),oE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r},s=Pne(o);return(0,R.jsx)(Fne,{className:z(s.root,i),ownerState:o,ref:t,...a})});function Ine(e){return B(`MuiCardContent`,e)}V(`MuiCardContent`,[`root`]);var Lne=e=>{let{classes:t}=e;return U({root:[`root`]},Ine,t)},Rne=G(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),sE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=Lne(o);return(0,R.jsx)(Rne,{as:i,className:z(s.root,r),ownerState:o,ref:t,...a})});function zne(e){return B(`MuiCardHeader`,e)}var cE=V(`MuiCardHeader`,[`root`,`avatar`,`action`,`content`,`title`,`subheader`]),Bne=e=>{let{classes:t}=e;return U({root:[`root`],avatar:[`avatar`],action:[`action`],content:[`content`],title:[`title`],subheader:[`subheader`]},zne,t)},Vne=G(`div`,{name:`MuiCardHeader`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${cE.title}`]:t.title},{[`& .${cE.subheader}`]:t.subheader},t.root]})({display:`flex`,alignItems:`center`,padding:16}),Hne=G(`div`,{name:`MuiCardHeader`,slot:`Avatar`})({display:`flex`,flex:`0 0 auto`,marginRight:16}),Une=G(`div`,{name:`MuiCardHeader`,slot:`Action`})({flex:`0 0 auto`,alignSelf:`flex-start`,marginTop:-4,marginRight:-8,marginBottom:-4}),Wne=G(`div`,{name:`MuiCardHeader`,slot:`Content`})({flex:`1 1 auto`,[`.${jb.root}:where(& .${cE.title})`]:{display:`block`},[`.${jb.root}:where(& .${cE.subheader})`]:{display:`block`}}),lE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiCardHeader`}),{action:r,avatar:i,component:a=`div`,disableTypography:o=!1,subheader:s,title:c,slots:l={},slotProps:u={},...d}=n,f={...n,component:a,disableTypography:o},p=Bne(f),m={slots:l,slotProps:u},h=c,[g,_]=Gv(`title`,{className:p.title,elementType:Nb,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`h5`,component:`span`}});h!=null&&h.type!==Nb&&!o&&(h=(0,R.jsx)(g,{..._,children:h}));let v=s,[y,b]=Gv(`subheader`,{className:p.subheader,elementType:Nb,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`body1`,color:`textSecondary`,component:`span`}});v!=null&&v.type!==Nb&&!o&&(v=(0,R.jsx)(y,{...b,children:v}));let[x,S]=Gv(`root`,{ref:t,className:p.root,elementType:Vne,externalForwardedProps:{...m,...d,component:a},ownerState:f}),[C,w]=Gv(`avatar`,{className:p.avatar,elementType:Hne,externalForwardedProps:m,ownerState:f}),[T,E]=Gv(`content`,{className:p.content,elementType:Wne,externalForwardedProps:m,ownerState:f}),[D,O]=Gv(`action`,{className:p.action,elementType:Une,externalForwardedProps:m,ownerState:f});return(0,R.jsxs)(x,{...S,children:[i&&(0,R.jsx)(C,{...w,children:i}),(0,R.jsxs)(T,{...E,children:[h,v]}),r&&(0,R.jsx)(D,{...O,children:r})]})});function uE(e){return e.substring(2).toLowerCase()}function Gne(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Kne(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=S.useRef(!1),s=S.useRef(null),c=S.useRef(!1),l=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Du(QC(t),s),d=Ou(e=>{let t=l.current;l.current=!1;let r=ku(s.current);if(!c.current||!s.current||`clientX`in e&&Gne(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!tS(r.documentElement,e.target)||tS(s.current,e.target),a||!n&&t||i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),S.useEffect(()=>{if(a!==!1){let e=uE(a),t=ku(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),S.useEffect(()=>{if(r!==!1){let e=uE(r),t=ku(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),S.cloneElement(t,p)}var dE=zc({createStyledComponent:G(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${J(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>q({props:e,name:`MuiContainer`})});function fE(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function qne(e){let t=ku(e);return e===t.body||e===t.documentElement?Au(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pE(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function mE(e){return parseFloat(Au(e).getComputedStyle(e).paddingRight)||0}function Jne(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Yne(e,t){let n=new Set,r=e;for(;r&&r!==t;)n.add(r),r=r.parentElement;return r===t?n:new Set}function hE(e,t,n,r){[].forEach.call(e.children,e=>{e===t||Jne(e)||(n.has(e)?hE(e,t,n,r):r.add(e))})}function gE(e){let{container:t,modals:n}=e,r=n[n.length-1].modalRef,i=new Set;hE(t,r,Yne(r,t),i),i.forEach(t=>{!e.hiddenSet.has(t)&&t.getAttribute(`aria-hidden`)===`true`&&i.delete(t)}),e.hiddenSet.forEach(e=>{i.has(e)||pE(e,!1)}),i.forEach(e=>pE(e,!0)),r&&pE(r,!1),e.hiddenSet=i}function Xne(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=ku(r).body;else{let t=r.parentElement,n=Au(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(qne(e)){let t=fE(Au(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${mE(e)+t}px`;let i=ku(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${mE(e)+t}px`})}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}var Zne=class{containers=[];modals=[];add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pE(e.modalRef,!1);let r=this.containers.findIndex(e=>e.container===t);if(r!==-1)return this.containers[r].modals.push(e),gE(this.containers[r]),n;let i={modals:[e],container:t,restore:null,hiddenSet:new Set};return this.containers.push(i),gE(i),n}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Xne(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];return i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0?(i.restore&&i.restore(),e.modalRef&&pE(e.modalRef,t),i.hiddenSet.forEach(e=>pE(e,!1)),i.hiddenSet.clear(),this.containers.splice(r,1)):(gE(i),e.modalRef&&pE(e.modalRef,t)),n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},_E=tS,vE=`data-mui-focusable`;function yE(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${vE}]`):null}var Qne=`input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])`;function bE(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function $ne(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function xE(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||$ne(e))}function SE(e){let t=[],n=[];return Array.from(e.querySelectorAll(Qne)).forEach((e,r)=>{let i=bE(e);i!==-1&&xE(e)&&(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function CE(){return!0}function wE(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=SE,isEnabled:o=CE,open:s}=e,c=S.useRef(!1),l=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=S.useRef(null),p=S.useRef(!1),m=S.useRef(null),h=Du(QC(t),m),g=S.useRef(null);S.useEffect(()=>{s&&m.current&&(p.current=!n)},[n,s]),S.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Yu(ku(m.current)),t=yE(m.current)??m.current;return _E(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),S.useEffect(()=>{if(!s||!m.current)return;let e=ku(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=Yu(e);if(n===null)return;let s=yE(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus()}else if(_E(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>bE(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=Yu(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(_E(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Yu(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,R.jsxs)(S.Fragment,{children:[(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),S.cloneElement(t,{ref:h,onFocus:_}),(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function TE(e){return typeof e==`function`?e():e}function EE(e){return e?e.props.hasOwnProperty(`in`):!1}var DE=()=>{},OE=new Zne;function kE(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=S.useRef({}),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=Du(p,l),[h,g]=S.useState(!c),_=EE(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>ku(d.current),b=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),x=()=>{OE.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},C=Ou(()=>{let e=TE(t)||y().body;OE.add(b(),e),p.current&&x()}),w=()=>OE.isTopModal(b()),T=Ou(e=>{d.current=e,e&&(f.current=e,c&&w()?x():p.current&&pE(p.current,v))}),E=S.useCallback(()=>{OE.remove(b(),v)},[v]);S.useEffect(()=>()=>{E()},[E]),S.useEffect(()=>{c?C():_&&r||E()},[c,E,_,r,C]);let D=e=>t=>{e.onKeyDown?.(t),t.key===`Escape`&&t.which!==229&&w()&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Hv(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:D(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:c}},getTransitionProps:()=>({onEnter:x_(()=>{g(!1),i&&i()},o?.props.onEnter??DE),onExited:x_(()=>{g(!0),a&&a(),r&&E()},o?.props.onExited??DE)}),rootRef:m,portalRef:T,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:w,exited:h,hasTransition:_}}function AE(e){return B(`MuiModal`,e)}V(`MuiModal`,[`root`,`hidden`,`backdrop`]);var jE=e=>{let{open:t,exited:n,classes:r}=e;return U({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},AE,r)},ME=G(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(K(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),NE=G(nE,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),PE=S.forwardRef(function(e,t){let n=q({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:b={},slots:x={},theme:C,...w}=n,T={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:E,getBackdropProps:D,getTransitionProps:O,portalRef:k,portalContainer:A,isTopModal:j,exited:M,hasTransition:N}=kE({...T,rootRef:t}),P={...T,exited:M},F=jE(P),ee={};if(o.props.tabIndex===void 0&&(ee.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=O();ee.onEnter=e,ee.onExited=t}let te={slots:x,slotProps:b},[ne,re]=Gv(`root`,{ref:t,elementType:ME,externalForwardedProps:{...te,...w,component:c},getSlotProps:E,ownerState:P,className:z(i,F?.root,!P.open&&P.exited&&F?.hidden)}),[ie,ae]=Gv(`backdrop`,{elementType:NE,externalForwardedProps:te,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:F?.backdrop,ownerState:P});return!h&&!y&&(!N||M)?null:(0,R.jsx)(tw,{ref:k,container:A,disablePortal:d,children:(0,R.jsxs)(ne,{...re,children:[m?null:(0,R.jsx)(ie,{...ae}),(0,R.jsx)(wE,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:j,open:y,children:S.cloneElement(o,ee)})]})})});function FE(e){return B(`MuiDialog`,e)}V(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var IE=S.createContext({}),LE=G(nE,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),RE=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return U({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${J(n)}`],paper:[`paper`,`paperWidth${J(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},FE,t)},zE=G(PE,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),BE=G(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${J(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),VE=G(ny,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${J(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(K(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),HE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialog`}),r=Bu(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=ny,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...C}=n,w={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},T=RE(w),E=S.useRef(),D=e=>{E.current=e.target===e.currentTarget},O=e=>{p&&p(e),E.current&&(E.current=null,m&&m(e,`backdropClick`))},k=ac(o),A=S.useMemo(()=>({titleId:k}),[k]),j={slots:y,slotProps:b},[M,N]=Gv(`root`,{elementType:zE,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:z(T.root,l),ref:t}),[P,F]=Gv(`backdrop`,{elementType:LE,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.backdrop}),[ee,te]=Gv(`paper`,{elementType:VE,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":k,"aria-modal":s,tabIndex:-1,[vE]:``}}),[ne,re]=Gv(`container`,{elementType:BE,externalForwardedProps:j,ownerState:w,className:T.container}),[ie,ae]=Gv(`transition`,{elementType:tE,externalForwardedProps:j,ownerState:w,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,R.jsx)(M,{closeAfterTransition:!0,slots:{backdrop:P},slotProps:{backdrop:{transitionDuration:x,...F}},onClose:m,open:h,onClick:O,...N,...C,children:(0,R.jsx)(ie,{...ae,children:(0,R.jsx)(ne,{onMouseDown:D,...re,children:(0,R.jsx)(ee,{as:g,...te,children:(0,R.jsx)(IE.Provider,{value:A,children:c})})})})})});function UE(e){return B(`MuiDialogActions`,e)}V(`MuiDialogActions`,[`root`,`spacing`]);var WE=e=>{let{classes:t,disableSpacing:n}=e;return U({root:[`root`,!n&&`spacing`]},UE,t)},GE=G(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),KE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=WE(o);return(0,R.jsx)(GE,{className:z(s.root,r),ownerState:o,ref:t,...a})});function qE(e){return B(`MuiDialogContent`,e)}V(`MuiDialogContent`,[`root`,`dividers`]);function JE(e){return B(`MuiDialogTitle`,e)}var YE=V(`MuiDialogTitle`,[`root`]),XE=e=>{let{classes:t,dividers:n}=e;return U({root:[`root`,n&&`dividers`]},qE,t)},ZE=G(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(K(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,...e.focusVisible&&{"&:focus-visible":{...Cl(1),...e.focusVisible}},variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${YE.root} + &`]:{paddingTop:0}}}]}))),QE=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=XE(o);return(0,R.jsx)(ZE,{className:z(s.root,r),ownerState:o,ref:t,...a})});function $E(e){return B(`MuiDialogContentText`,e)}V(`MuiDialogContentText`,[`root`]);var eD=e=>{let{classes:t}=e,n=U({root:[`root`]},$E,t);return{...t,...n}},tD=G(Nb,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiDialogContentText`,slot:`Root`})({}),nD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogContentText`}),{children:r,className:i,...a}=n,o=eD(a);return(0,R.jsx)(tD,{component:`p`,variant:`body1`,color:`textSecondary`,ref:t,ownerState:a,className:z(o.root,i),...n,classes:o})}),rD=e=>{let{classes:t}=e;return U({root:[`root`]},JE,t)},iD=G(Nb,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),aD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=rD(o),{titleId:c=i}=S.useContext(IE);return(0,R.jsx)(iD,{component:`h2`,className:z(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function oD(e){return B(`MuiDivider`,e)}var sD=V(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),cD=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return U({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},oD,r)},lD=G(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(K(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),uD=G(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(K(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),dD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=cD(p);return(0,R.jsx)(lD,{as:s,className:z(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,R.jsx)(uD,{className:m.wrapper,ownerState:p,children:i}):null})}),fD={visibility:`hidden`},pD={};function mD(e){return typeof e==`string`&&/^translate\(.+,\s*.+\)$/.test(e)}function hD(e,t,n,r=pD){let{resetInlineTransform:i=!0}=r,a=n&&n.getBoundingClientRect(),o=w_(t),s,c;if(i){let e=t.style.transform,n=t.style.transition;t.style.transition=``,t.style.transform=``,s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`),t.style.transform=e,t.style.transition=n}else s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`);let{offsetX:l,offsetY:u}=fd(c);return e===`left`?a?`translateX(${a.right+l-s.left}px)`:`translateX(${o.innerWidth+l-s.left}px)`:e===`right`?a?`translateX(-${s.right-a.left-l}px)`:`translateX(-${s.left+s.width-l}px)`:e===`up`?a?`translateY(${a.bottom+u-s.top}px)`:`translateY(${o.innerHeight+u-s.top}px)`:a?`translateY(-${s.top-a.top+s.height-u}px)`:`translateY(-${s.top+s.height-u}px)`}function gD(e){return typeof e==`function`?e():e}function _D(e,t,n,r){let i=hD(e,t,gD(n),r);i&&(t.style.transform=i)}var vD=S.forwardRef(function(e,t){let n=Bu(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,container:c,disablePrefersReducedMotion:l=!1,direction:u=`down`,easing:d=r,in:f,onEnter:p,onEntered:m,onEntering:h,onExit:g,onExited:_,onExiting:v,style:y,timeout:b=i,...x}=e,C=sv(n.motion.reducedMotion,l),w=S.useRef(null),T=S.useRef(!1),E=Gu(QC(s),w,t),D=pd(w,(e,t)=>{_D(u,e,c),C.shouldReduceMotion||rd(e),p&&p(e,t)}),O=pd(w,(e,t)=>{let r=hd({timeout:b,style:y,easing:d},{mode:`enter`}),i=C.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`transform`,{duration:i.duration,easing:r.easing,delay:i.delay}),e.style.transform=`none`,h&&h(e,t)}),k=pd(w,m),A=pd(w,v),j=pd(w,e=>{let t=hd({timeout:b,style:y,easing:d},{mode:`exit`}),r=C.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`transform`,{duration:r.duration,easing:t.easing,delay:r.delay});let i=mD(e.style.transform);T.current=i,_D(u,e,c,{resetInlineTransform:!i}),g&&g(e)}),M=pd(w,e=>{T.current=!1,e.style.transition=``,_&&_(e)}),N=a?e=>{a(w.current,e)}:void 0,P=S.useCallback(()=>{w.current&&_D(u,w.current,c)},[u,c]);return S.useEffect(()=>{if(f||u===`down`||u===`right`)return;let e=S_(()=>{w.current&&_D(u,w.current,c)}),t=w_(w.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[u,f,c]),S.useEffect(()=>{!f&&!T.current&&P()},[f,P]),(0,R.jsx)(zv,{nodeRef:w,onEnter:D,onEntered:k,onEntering:O,onExit:j,onExited:M,onExiting:A,addEndListener:N,appear:o,in:f,reduceMotion:C.shouldReduceMotion,timeout:b,...x,children:(e,{ownerState:t,...n})=>{let r;return r=e===`exited`&&!f?y||s.props.style?{visibility:`hidden`,...y,...s.props.style}:fD:y&&s.props.style?{...y,...s.props.style}:y||s.props.style,S.cloneElement(s,{ref:E,style:r,...n})}})});function yD(e){return B(`MuiDrawer`,e)}V(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`modal`]);var bD=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},xD=e=>{let{classes:t,anchor:n,variant:r}=e;return U({root:[`root`,`anchor${J(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`]},yD,t)},SD=G(PE,{name:`MuiDrawer`,slot:`Root`,overridesResolver:bD})(K(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),CD=G(`div`,{shouldForwardProp:Uu,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:bD})({flex:`0 0 auto`}),wD=G(ny,{name:`MuiDrawer`,slot:`Paper`})(K(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),TD={left:`right`,right:`left`,top:`down`,bottom:`up`};function ED(e){return[`left`,`right`].includes(e)}function DD({direction:e},t){return e===`rtl`&&ED(t)?TD[t]:t}var OD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiDrawer`}),r=Bu(),i=Zs(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o=`left`,children:s,className:c,elevation:l=16,hideBackdrop:u=!1,ModalProps:d={},onClose:f,open:p=!1,transitionDuration:m=a,variant:h=`temporary`,slots:g={},slotProps:_={},...v}=n,y=S.useRef(!1),b=S.useRef(null),x=Gu(t,b);S.useEffect(()=>{y.current=!0},[]);let C=S.useCallback(()=>b.current,[]),w=DD({direction:i?`rtl`:`ltr`},o),T=o,E={...n,anchor:T,elevation:l,open:p,variant:h,...v},D=xD(E),O={slots:g,slotProps:{..._,backdrop:j_(_.backdrop,{transitionDuration:m})}},[k,A]=Gv(`root`,{ref:x,elementType:SD,className:z(D.root,D.modal,c),shouldForwardComponentProp:!0,ownerState:E,externalForwardedProps:{...O,...v,...d},additionalProps:{closeAfterTransition:!0,open:p,onClose:f,hideBackdrop:u,slots:{backdrop:O.slots.backdrop},slotProps:{backdrop:O.slotProps.backdrop}}}),[j,M]=Gv(`paper`,{elementType:wD,shouldForwardComponentProp:!0,className:D.paper,ownerState:E,externalForwardedProps:O,additionalProps:{elevation:h===`temporary`?l:0,square:!0,...h===`temporary`&&{role:`dialog`,"aria-modal":`true`,"data-mui-focusable":``,tabIndex:-1}}}),[N,P]=Gv(`docked`,{elementType:CD,ref:x,className:z(D.root,D.docked,c),ownerState:E,externalForwardedProps:O,additionalProps:v}),[F,ee]=Gv(`transition`,{elementType:vD,ownerState:E,externalForwardedProps:O,additionalProps:{in:p,direction:TD[w],timeout:m,appear:y.current,...h===`temporary`&&(g.transition==null||g.transition===vD)&&{container:C}}}),te=(0,R.jsx)(j,{...M,children:s});if(h===`permanent`)return(0,R.jsx)(N,{...P,children:te});let ne=(0,R.jsx)(F,{...ee,children:te});return h===`persistent`?(0,R.jsx)(N,{...P,children:ne}):(0,R.jsx)(k,{...A,children:ne})});function kD(e){return B(`MuiFormControl`,e)}V(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var AD=e=>{let{classes:t,margin:n,fullWidth:r}=e;return U({root:[`root`,n!==`none`&&`margin${J(n)}`,r&&`fullWidth`]},kD,t)},jD=G(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${J(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),MD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=AD(_),[y,b]=S.useState(()=>{let e=!1;return r&&S.Children.forEach(r,t=>{if(!C_(t,[`Input`,`Select`]))return;let n=C_(t,[`Select`])?t.props.input:t;n&&Qu(n.props)&&(e=!0)}),e}),[x,C]=S.useState(()=>{let e=!1;return r&&S.Children.forEach(r,t=>{C_(t,[`Input`,`Select`])&&(Zu(t.props,!0)||Zu(t.props.inputProps,!0))&&(e=!0)}),e}),[w,T]=S.useState(!1);s&&w&&T(!1);let E=l!==void 0&&!s?l:w,D;S.useRef(!1);let O=S.useCallback(()=>{C(!0)},[]),k=S.useCallback(()=>{C(!1)},[]),A=S.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:E,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:k,onFilled:O,registerEffect:D,required:p,variant:h}),[y,a,s,c,x,E,u,d,D,k,O,p,m,h]);return(0,R.jsx)(Iu.Provider,{value:A,children:(0,R.jsx)(jD,{as:o,ownerState:_,className:z(v.root,i),ref:t,...g,children:r})})}),ND,PD=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return U({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${J(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},Ad,t)},FD=G(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${J(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(K(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),ID=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,[m]=Ru({props:n,states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;let g=PD(h);return(0,R.jsx)(FD,{as:a,className:z(g.root,i),ref:t,...p,ownerState:h,children:r===` `?ND||=(0,R.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):r})});function LD(e){return`scale(${e}, ${e**2})`}var RD={entering:{opacity:1,transform:LD(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:LD(.75)},exited:{opacity:0,transform:LD(.75)}},zD={opacity:0,transform:LD(.75),visibility:`hidden`},BD=S.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=S.useRef(null),v=Bu(),y=sv(v.motion.reducedMotion,a),b=S.useRef(null),x=Gu(b,QC(i),t),C=pd(b,u),w=pd(b,(e,t)=>{y.shouldReduceMotion||rd(e);let{duration:n,delay:r,easing:i}=hd({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),T=pd(b,l),E=pd(b,p),D=pd(b,e=>{let{duration:t,delay:n,easing:r}=hd({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=LD(.75),d&&d(e)}),O=pd(b,e=>{e.style.transition=``,f&&f(e)});return(0,R.jsx)(zv,{appear:r,in:s,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:n?e=>{n(b.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=md(e,s,RD,zD,m,i.props.style);return S.cloneElement(i,{style:r,ref:x,...n})}})});BD&&(BD.muiSupportAuto=!0);var VD=e=>{let{classes:t,disableUnderline:n}=e,r=U({root:[`root`,!n&&`underline`],input:[`input`]},Pd,t);return{...t,...r}},HD=G(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...xd(e,t),!n.disableUnderline&&t.underline]}})(K(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${Hb.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,..._d(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Fd.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Fd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,..._d(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Fd.disabled}, .${Fd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Fd.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),UD=G(Td,{name:`MuiInput`,slot:`Input`,overridesResolver:Sd})({}),WD=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=VD(n),p={root:{ownerState:{disableUnderline:r}}},m=c?da(c,p):p,h=l.root??HD,g=l.input??UD;return(0,R.jsx)(Dd,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});WD.muiName=`Input`;function GD(e){return B(`MuiLinearProgress`,e)}V(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var KD=4,qD={},JD=Ui`
174
- 0% {
175
- left: -35%;
176
- right: 100%;
177
- }
178
-
179
- 60% {
180
- left: 100%;
181
- right: -90%;
182
- }
183
-
184
- 100% {
185
- left: 100%;
186
- right: -90%;
187
- }
188
- `,YD=typeof JD==`string`?null:Hi`
189
- animation: ${JD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
190
- `,XD=Ui`
191
- 0% {
192
- left: -200%;
193
- right: 100%;
194
- }
195
-
196
- 60% {
197
- left: 107%;
198
- right: -8%;
199
- }
200
-
201
- 100% {
202
- left: 107%;
203
- right: -8%;
204
- }
205
- `,ZD=typeof XD==`string`?null:Hi`
206
- animation: ${XD} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
207
- `,QD=Ui`
208
- 0% {
209
- opacity: 1;
210
- background-position: 0 -23px;
211
- }
212
-
213
- 60% {
214
- opacity: 0;
215
- background-position: 0 -23px;
216
- }
217
-
218
- 100% {
219
- opacity: 1;
220
- background-position: -200px -23px;
221
- }
222
- `,$D=typeof QD==`string`?null:Hi`
223
- animation: ${QD} 3s infinite linear;
224
- `,eO=e=>{let{classes:t,variant:n,color:r}=e;return U({root:[`root`,`color${J(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${J(r)}`]},GD,t)},tO=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),nO=G(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${J(n.color)}`],t[n.variant]]}})(K(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{backgroundColor:tO(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),rO=G(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(K(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(P_()).map(([t])=>{let n=tO(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),$D||{animation:`${QD} 3s infinite linear`},K(({theme:e})=>gd(e,{animation:`none`})||qD)),iO=G(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(K(({theme:e})=>{let t=gd(e,{animation:`none`,left:`30%`,right:`auto`,width:`40%`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,..._d(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{..._d(e,`transform`,{duration:`.${KD}s`,easing:`linear`})}},{props:{variant:`buffer`},style:{zIndex:1,..._d(e,`transform`,{duration:`.${KD}s`,easing:`linear`})}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:YD||{animation:`${JD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),aO=G(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(K(({theme:e})=>{let t=gd(e,{animation:`none`,display:`none`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,..._d(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:tO(e,t),..._d(e,`transform`,{duration:`.${KD}s`,easing:`linear`})}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:ZD||{animation:`${XD} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),oO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,max:a,min:o,value:s,valueBuffer:c,variant:l=`indeterminate`,...u}=n,d={...n,color:i,variant:l},f=o??0,p=a??100,m=eO(d),h=Zs(),g={},_={bar1:{},bar2:{}};if((l===`determinate`||l===`buffer`)&&s!==void 0){let e=p-f,t=(s-f)/e*100-100;h&&(t=-t),_.bar1.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`,g[`aria-valuenow`]=s,g[`aria-valuemin`]=f,g[`aria-valuemax`]=p}if(l===`buffer`&&c!==void 0){let e=p-f,t=(c-f)/e*100-100;h&&(t=-t),_.bar2.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`}return(0,R.jsxs)(nO,{className:z(m.root,r),ownerState:d,role:`progressbar`,...g,ref:t,...u,children:[l===`buffer`?(0,R.jsx)(rO,{className:m.dashed,ownerState:d}):null,(0,R.jsx)(iO,{className:m.bar1,ownerState:d,style:_.bar1}),l===`determinate`?null:(0,R.jsx)(aO,{className:m.bar2,ownerState:d,style:_.bar2})]})});function sO(e){return B(`MuiLink`,e)}var cO=V(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),lO=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=Ka(e,`palette.${n}.main`)||Ka(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=Ka(e,`palette.${n}.main`,!1)||Ka(e,`palette.${n}`,!1)||t.color,i=Ka(e,`palette.${n}.mainChannel`)||Ka(e,`palette.${n}Channel`);if(`vars`in e&&i)return`rgba(${i} / 0.4)`;try{return H(r,.4)}catch{return`color-mix(in srgb, ${r} 40%, transparent)`}},uO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dO=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return U({root:[`root`,`underline${J(i)}`,n===`button`&&`button`,r&&`focusVisible`]},sO,t)},fO=G(Nb,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${J(n.underline)}`],n.component===`button`&&t.button]}})(K(({theme:e})=>({...e.focusVisible&&{[`&.${cO.focusVisible}`]:{...xl,...e.focusVisible}},variants:[{props:{underline:`none`},style:{textDecoration:`none`}},{props:{underline:`hover`},style:{textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},{props:{underline:`always`},style:{textDecoration:`underline`,"&:hover":{textDecorationColor:`inherit`}}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color===`inherit`,style:e.colorSpace?{textDecorationColor:e.alpha(`currentColor`,.4)}:null},...Object.entries(e.palette).filter(P_()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:`button`},style:{position:`relative`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,"&::-moz-focus-inner":{borderStyle:`none`},...!e.focusVisible&&{[`&.${cO.focusVisible}`]:{outline:`auto`}}}}]}))),pO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiLink`}),r=Bu(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:c,TypographyClasses:l,underline:u=`always`,variant:d=`inherit`,sx:f,...p}=n,[m,h]=S.useState(!1),g=e=>{F_(e.target)||h(!1),s&&s(e)},_=e=>{F_(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d},y=dO(v);return(0,R.jsx)(fO,{color:a,className:z(y.root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...uO[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!uO[a]&&{"--Link-underlineColor":lO({theme:r,ownerState:v})}}})}),mO=S.createContext({});function hO(e){return B(`MuiList`,e)}var gO=V(`MuiList`,[`root`,`padding`,`dense`,`subheader`]),_O=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return U({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},hO,t)},vO=G(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),yO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=S.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=_O(d);return(0,R.jsx)(mO.Provider,{value:u,children:(0,R.jsxs)(vO,{as:a,className:z(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),bO=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},xO=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=U({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},Id,n);return{...n,...c}},SO=G(hv,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:bO})(K(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,..._d(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Ld.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${Ld.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${Ld.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Cl(1):{[`&.${Ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${Ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),CO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=S.useContext(mO),h=S.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=S.useRef(null);Ku(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=xO(_),{root:y,...b}=v,x=Gu(g,t);return(0,R.jsx)(mO.Provider,{value:h,children:(0,R.jsx)(SO,{ref:x,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,internalNativeButton:!1,focusVisibleClassName:z(v.focusVisible,u),ownerState:_,className:z(v.root,f),...p,classes:b,children:o})})});function wO(e){return B(`MuiListItemIcon`,e)}var TO=V(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),EO=e=>{let{alignItems:t,classes:n}=e;return U({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},wO,n)},DO=G(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(K(({theme:e})=>({minWidth:e.spacing(4.5),color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),OO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=S.useContext(mO),o={...n,alignItems:a.alignItems},s=EO(o);return(0,R.jsx)(DO,{className:z(s.root,r),ownerState:o,ref:t,...i})});function kO(e){return B(`MuiListItemText`,e)}var AO=V(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),jO=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return U({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},kO,t)},MO=G(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${AO.primary}`]:t.primary},{[`& .${AO.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${jb.root}:where(& .${AO.primary})`]:{display:`block`},[`.${jb.root}:where(& .${AO.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),NO=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,secondary:c,slots:l={},slotProps:u={},...d}=n,{dense:f}=S.useContext(mO),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=jO(h),_={slots:l,slotProps:u},[v,y]=Gv(`root`,{className:z(g.root,i),elementType:MO,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=Gv(`primary`,{className:g.primary,elementType:Nb,externalForwardedProps:_,ownerState:h}),[C,w]=Gv(`secondary`,{className:g.secondary,elementType:Nb,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==Nb&&!a&&(p=(0,R.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==Nb&&!a&&(m=(0,R.jsx)(C,{variant:`body2`,color:`textSecondary`,...w,children:m})),(0,R.jsxs)(v,{...y,children:[p,m]})}),PO=fE;function FO(e,t){if(t==null)e.focus();else try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function IO(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function LO(e){return e==null||typeof e==`string`&&!e.trim()}function RO(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var zO=S.createContext(null);function BO(){return S.useContext(zO)}var VO=zO.Provider,HO=S.createContext(void 0);function UO(){let e=S.useContext(HO);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function WO(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function GO(e,t){if(t===void 0)return!0;let n=WO(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function KO(e,t){return GO(e,t)?nb(e):!1}function qO(e,t){FO(e,t)}var JO=S.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=q({props:e,name:`MuiMenuList`}),f=S.useRef(null),p=S.useRef(!1),[m,h]=S.useState(!1),g=BO(),_=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=Hy({activeItemId:void 0,getDefaultActiveItemId:S.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&nb(e))?.id??e.find(e=>nb(e))?.id??null:e.find(e=>nb(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:C,getItemMap:w}=v,T=k_((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=x();if(e?.element){let t=Array.from(w().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),qO(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});Ku(()=>{!r&&!i?(p.current=!1,h(!1)):T()},[y,i,r,T]),S.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=w_(e),r=PO(n);if(r>0){let e=`${r}px`,i=t===`rtl`?`paddingLeft`:`paddingRight`,a=parseFloat(n.getComputedStyle(f.current)[i])||0;f.current.style[i]=`${a+r}px`,f.current.style.width=`calc(100% + ${e})`}}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=Yu(qu(f.current));return e&&_E(f.current,e)?e:T(!0)}}),[T]);let E=C(void 0,d.onFocus),D=Gu(f,E.ref,t),O=S.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),k=k_(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l)l(e);else{if(E.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=Yu(qu(f.current)),a=i&&!t.repeating&&GO(i,t);t.previousKeyMatched&&(a||b(e=>KO(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}});return(0,R.jsx)(yO,{role:`menu`,ref:D,className:o,onKeyDown:k,tabIndex:-1,...d,onFocus:E.onFocus,children:(0,R.jsx)(HO.Provider,{value:O,children:(0,R.jsx)(Ly.Provider,{value:v,children:a})})})});function YO(e){return B(`MuiPopover`,e)}V(`MuiPopover`,[`root`,`paper`]);function XO(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function ZO(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function QO(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function $O(e){return typeof e==`function`?e():e}var ek=e=>{let{classes:t}=e;return U({root:[`root`],paper:[`paper`]},YO,t)},tk=G(PE,{name:`MuiPopover`,slot:`Root`})({}),nk=G(ny,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),rk=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...b}=n,x=S.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},w=ek(C),T=S.useCallback(()=>{if(s===`anchorPosition`)return o;let e=$O(i),t=(e&&e.nodeType===1?e:qu(x.current).body).getBoundingClientRect();return{top:t.top+XO(t,a.vertical),left:t.left+ZO(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),E=S.useCallback(e=>({vertical:XO(e,_.vertical),horizontal:ZO(e,_.horizontal)}),[_.horizontal,_.vertical]),D=S.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if(s===`none`)return{top:null,left:null,transformOrigin:QO(n)};let r=T(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=w_($O(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&a<p){let e=a-p;a-=e,n.vertical+=e}else if(p!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:QO(n)}},[i,s,T,E,p]),[O,k]=S.useState(m),A=S.useCallback(()=>{let e=x.current;if(!e)return;let t=D(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,k(!0)},[D]);S.useEffect(()=>(y&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,y,A]);let j=()=>{A()},M=()=>{k(!1)};S.useEffect(()=>{m&&A()}),S.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),S.useEffect(()=>{if(!m)return;let e=S_(()=>{A()}),t=w_($O(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,A]);let N=v,P={slots:h,slotProps:g},[F,ee]=Gv(`transition`,{elementType:BD,externalForwardedProps:P,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),M()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!F.muiSupportAuto&&(N=void 0);let te=u||(i?qu($O(i)).body:void 0),[ne,{slots:re,slotProps:ie,...ae}]=Gv(`root`,{ref:t,elementType:tk,externalForwardedProps:{...P,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:j_(typeof g.backdrop==`function`?g.backdrop(C):g.backdrop,{invisible:!0})},container:te,open:m},ownerState:C,className:z(w.root,l)}),[oe,se]=Gv(`paper`,{ref:x,className:w.paper,elementType:nk,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:C});return(0,R.jsx)(ne,{...ae,...!Tu(ne)&&{slots:re,slotProps:ie,disableAutoFocus:d,disableScrollLock:y},children:(0,R.jsx)(F,{...ee,timeout:N,children:(0,R.jsx)(oe,{...se,children:c})})})});function ik(e){return B(`MuiMenu`,e)}V(`MuiMenu`,[`root`,`paper`,`list`]);var ak={vertical:`top`,horizontal:`right`},ok={vertical:`top`,horizontal:`left`},sk=e=>{let{classes:t}=e;return U({root:[`root`],paper:[`paper`],list:[`list`]},ik,t)},ck=G(rk,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),lk=G(nk,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),uk=G(JO,{name:`MuiMenu`,slot:`List`})({outline:0}),dk=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=Zs(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=sk(g),v=r&&c,y=v&&!o,b=S.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},C=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},w={slots:f,slotProps:p},T=ZC({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[E,D]=Gv(`paper`,{className:_.paper,elementType:lk,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[O,k]=Gv(`list`,{className:_.list,elementType:uk,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{C(t),e.onKeyDown?.(t)}}),ownerState:g}),A=typeof p.transition==`function`?p.transition(g):p.transition;return(0,R.jsx)(ck,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?ak:ok,slots:{root:f.root,paper:E,backdrop:f.backdrop,transition:f.transition},slotProps:{root:T,paper:D,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...A,onEntering:(...e)=>{x(...e),A?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,R.jsx)(O,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...k,children:i})})}),fk=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pk=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=U({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Rd,o);return{...o,...s}},mk=G(hv,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:fk})(K(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${zd.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${zd.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${zd.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Cl(1):{[`&.${zd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${zd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sD.inset}`]:{marginLeft:52},[`& .${AO.root}`]:{marginTop:0,marginBottom:0},[`& .${AO.inset}`]:{paddingLeft:36},[`& .${TO.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${TO.root} svg`]:{fontSize:`1.25rem`}}}]}))),hk=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=BO(),h=S.useContext(mO),g=S.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=UO(),v=E_(),y=_.suppressInitialFocusVisible,b=_.itemsFocusableWhenDisabled,x=S.useRef(null);Ku(()=>{r&&x.current&&FO(x.current,m)},[r]);let C={...n,dense:g.dense,divider:o,disableGutters:s},w=pk(n),{root:T,...E}=w,D=Uy({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:b,selected:n.selected}),O=Gu(x,D.ref),k;return u===void 0?_.variant===`selectedMenu`?k=D.tabIndex:(!n.disabled||b)&&(k=-1):k=u,(0,R.jsx)(mO.Provider,{value:g,children:(0,R.jsx)(mk,{ref:O,role:l,"aria-checked":p,tabIndex:k,component:i,internalNativeButton:!1,focusableWhenDisabled:b,suppressFocusVisible:y,focusVisibleClassName:z(w.focusVisible,c),className:z(w.root,d),...f,ownerState:C,classes:E})})}),gk=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return U({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${J(n)}`,a&&`iconOpen`,r&&`disabled`]},Bd,t)},_k=G(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Vd.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${Pb.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${ed.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${ed.root}:has(> &)`]:{"--_caret":`24px`},[`.${ed.root}:has(> & ~ .${Pb.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${ed.root}:has(> &)`]:{"--_caret":`32px`},[`.${ed.root}:has(> & ~ .${Pb.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${ed.root}:has(> &)`]:{"--_caret":`32px`},[`.${ed.root}:has(> & ~ .${Pb.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),vk=G(_k,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Uu,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vd.multiple}`]:t.multiple}]}})({}),yk=G(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Vd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),bk=G(yk,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),xk=S.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=gk(l);return(0,R.jsxs)(S.Fragment,{children:[(0,R.jsx)(vk,{ownerState:l,className:z(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,R.jsx)(bk,{as:a,ownerState:l,className:u.icon})]})});function Sk(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function Ck(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return S.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):S.isValidElement(e)&&(t+=Ck(e.props.children))}),t}function wk(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;n<e.length;n+=1){let i=(r+n)%e.length;if(e[i].label.startsWith(t))return i}return-1}function Tk(e,t){return!e.some(e=>e.label[0]===t&&e.label[1]===t)}function Ek(e,t){let n=[],r=-1;for(let i=0;i<e.length;i+=1){let a=e[i];if(!S.isValidElement(a)||!Sk(a)||a.props.disabled)continue;let o=Ck(a.props.children).trim().toLowerCase();o!==``&&(r===-1&&RO(t,a.props.value)&&(r=n.length),n.push({child:a,label:o,value:a.props.value}))}return{options:n,selectedIndex:r}}var Dk,Ok=2,kk=400,Ak=200,jk=750,Mk=` `,Nk=`ArrowUp`,Pk=`ArrowDown`,Fk=`Enter`;function Ik(e,t){if(!t)return!1;if(e.composedPath().includes(t)||e.target?.nodeType&&t.contains(e.target))return!0;let n=t.getBoundingClientRect();return n.width===0&&n.height===0?!1:e.clientX>=n.left-Ok&&e.clientX<=n.right+Ok&&e.clientY>=n.top-Ok&&e.clientY<=n.bottom+Ok}var Lk=G(_k,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Ob.select}`]:t.select},{[`&.${Ob.select}`]:t[n.variant]},{[`&.${Ob.error}`]:t.error},{[`&.${Ob.multiple}`]:t.multiple}]}})({[`&.${Ob.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),Rk=G(yk,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),zk=G(`input`,{shouldForwardProp:e=>Hu(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),Bk=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return U({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Db,t)},Vk=S.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:C,onKeyDown:w,onMouseDown:T,onOpen:E,open:D,readOnly:O,renderValue:k,required:A,SelectDisplayProps:j={},tabIndex:M,type:N,value:P,variant:F=`standard`,...ee}=e,[te,ne]=O_({controlled:P,default:l,name:`Select`}),[re,ie]=O_({controlled:D,default:c,name:`Select`}),ae=S.useRef(null),oe=S.useRef(null),se=S.useRef(null),ce=S.useRef(!1),le=S.useRef(!1),ue=S.useRef(null),de=S.useRef(!1),fe=S.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),pe=S.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),me=q_(),I=q_(),he=q_(),[ge,_e]=S.useState(null),{current:ve}=S.useRef(D!=null),[ye,be]=S.useState(),[xe,Se]=S.useState(null),Ce=Gu(t,m),we=S.useCallback(e=>{oe.current=e,e&&_e(e)},[]),Te=ge?.parentNode;S.useImperativeHandle(Ce,()=>({focus:()=>{oe.current.focus()},node:ae.current,value:te}),[te]);let Ee=ge!==null&&re,De=S.useCallback(()=>{he.clear(),pe.current.buffer=``,pe.current.previousSearchIndex=null,pe.current.matchedIndex=null},[he]);Ku(()=>{ce.current=Ee,Ee&&De()},[Ee,De]);let Oe=S.useCallback(()=>{me.clear(),I.clear()},[me,I]),ke=S.useCallback(()=>{Oe(),de.current=!1,fe.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Oe]),Ae=S.useCallback(()=>{ue.current&&=(ue.current(),null)},[]);S.useEffect(()=>{Ee||(ke(),Ae())},[Ee,ke,Ae]),S.useEffect(()=>()=>{ke(),Ae(),De()},[ke,Ae,De]),S.useEffect(()=>{if(!Ee||!Te||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{be(Te.clientWidth)});return e.observe(Te),()=>{e.disconnect()}},[Ee,Te,a]),S.useEffect(()=>{c&&re&&ge&&!ve&&(be(a?null:Te.clientWidth),oe.current.focus())},[ge,a]),S.useEffect(()=>{i&&oe.current.focus()},[i]),S.useEffect(()=>{if(!h)return;let e=qu(oe.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&oe.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let je=k_((e,t)=>{e||(ke(),Ae()),e?(De(),Se(IO(t)),E&&E(t)):(Se(null),x&&x(t)),ve||(ce.current=e,be(a?null:Te.clientWidth),ie(e))}),Me=()=>{ke(),le.current?(I.start(Ak,()=>{fe.current.allowUnselectedMouseUp=!0}),me.start(kk,()=>{fe.current.allowSelectedMouseUp=!0})):me.start(kk,()=>{fe.current.allowSelectedMouseUp=!0,fe.current.allowUnselectedMouseUp=!0})},Ne=e=>{if(T?.(e),e.button!==0||(e.preventDefault(),!oe.current))return;oe.current.focus();let t=qu(e.currentTarget);Me(),Ae();let n=e=>{ue.current=null,oe.current&&(Ik(e,oe.current)||Ik(e,se.current)||(ce.current||!ve)&&je(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),ue.current=()=>{t.removeEventListener(`mouseup`,n,!0)},je(!0,e)},Pe=e=>{je(!1,e)},Fe=S.Children.toArray(o),Ie=e=>{let t=Fe.find(t=>t.props.value===e.target.value);t!==void 0&&(ne(t.props.value),b&&b(e,t))},Le=(e,t,n)=>{if(ne(n),b){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,t)}},Re=e=>t=>{de.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(te)?te.slice():[];let t=te.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),te!==n&&Le(t,e,n),_||je(!1,t)}},ze=(e,t)=>n=>{if(e.props.onMouseUp?.(n),de.current){de.current=!1;return}let r=!fe.current.allowSelectedMouseUp&&t,i=!fe.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Be=e=>{let t=pe.current,n=t.buffer!==``;if(Ee||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===Mk&&!n)return!1;e.key===Mk&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=Ek(Fe,te);if(i.length===0)return e.key!==Mk&&De(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&Tk(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,he.start(jk,De);let s=wk(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,RO(te,n.value)||Le(e,n.child,n.value),!0}return e.key!==Mk&&De(),!0},Ve=e=>{if(!O){let t=Be(e),n=e.key===Mk||e.key===Nk||e.key===Pk||e.key===Fk;!t&&n&&(e.preventDefault(),je(!0,e)),w?.(e)}},He=e=>{De(),!Ee&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:v}}),y(e))},Ue=e=>t=>{e?.props?.onKeyDown?.(t),t.key===Mk&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete ee[`aria-invalid`];let We,Ge,Ke=[],qe=!1,Je=!1;(Zu({value:te})||d)&&(k?We=k(te):qe=!0);let Ye=Fe.map(e=>{if(!S.isValidElement(e))return null;let t;if(_){if(!Array.isArray(te))throw Error(Gn(2));t=te.some(t=>RO(t,e.props.value)),t&&qe&&Ke.push(e.props.children)}else t=RO(te,e.props.value),t&&qe&&(Ge=e.props.children);return t&&(Je=!0),S.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{de.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{de.current=!0,e.props.onPointerDown?.(t)},onClick:Re(e),onMouseUp:ze(e,t),onKeyUp:t=>{t.key===Mk&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:Ue(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Ku(()=>{le.current=Je,Ee||_||Je||De()},[Je,_,Ee,De]),qe&&(We=_?Ke.length===0?null:Ke.reduce((e,t,n)=>(e.push(t),n<Ke.length-1&&e.push(`, `),e),[]):Ge);let Xe=ye;!a&&ve&&ge&&(Xe=Te.clientWidth);let Ze;Ze=M===void 0?u?null:0:M;let Qe=j.id||(v?`mui-component-select-${v}`:void 0),$e={...e,variant:F,value:te,open:Ee,error:f},et=Bk($e),tt=typeof g.slotProps?.paper==`function`?g.slotProps.paper($e):g.slotProps?.paper,nt=Gu(tt?.ref,se),rt=typeof g.slotProps?.list==`function`?g.slotProps.list($e):g.slotProps?.list,it=ac(),at=ac();return(0,R.jsxs)(S.Fragment,{children:[(0,R.jsx)(Lk,{as:`div`,ref:we,tabIndex:Ze,role:`combobox`,"aria-controls":Ee?it:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":Ee?`true`:`false`,"aria-haspopup":`listbox`,"aria-readonly":O?`true`:void 0,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":A?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Ve,onMouseDown:u||O?null:Ne,onBlur:He,onFocus:C,...j,ownerState:$e,className:z(j.className,et.select,s),id:Qe,children:LO(We)?Dk||=(0,R.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):We}),(0,R.jsx)(zk,{"aria-invalid":f,value:Array.isArray(te)?te.join(`,`):te,name:v,ref:ae,"aria-hidden":!0,onChange:Ie,tabIndex:-1,disabled:u,readOnly:O,className:et.nativeInput,autoFocus:i,required:A,...ee,id:ee.id??at,ownerState:$e}),(0,R.jsx)(Rk,{as:p,className:et.icon,ownerState:$e}),(0,R.jsx)(VO,{value:xe,children:(0,R.jsx)(dk,{id:`menu-${v||``}`,anchorEl:Te,open:Ee,onClose:Pe,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:it,...rt},paper:{...tt,ref:nt,style:{minWidth:Xe,...tt?.style}}},children:Ye})})]})}),Hk=e=>{let{classes:t}=e,n=U({root:[`root`]},Db,t);return{...t,...n}},Uk={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Uu(e)&&e!==`variant`},Wk=G(WD,Uk)(``),Gk=G(kb,Uk)(``),Kk=G(Ab,Uk)(``),qk=S.forwardRef(function(e,t){let n=q({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=gw,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:C,variant:w=`outlined`,...T}=n,E=_?xk:Vk,[D]=Ru({props:n,states:[`variant`,`error`]}),O=D.variant||w,k={...n,variant:O,classes:a},A=Hk(k),{root:j,...M}=A,N=d||{standard:(0,R.jsx)(Wk,{ownerState:k}),outlined:(0,R.jsx)(Gk,{label:p,ownerState:k}),filled:(0,R.jsx)(Kk,{ownerState:k})}[O],P=Gu(t,QC(N));return(0,R.jsx)(S.Fragment,{children:S.cloneElement(N,{inputComponent:E,inputProps:{children:i,error:D.error,IconComponent:l,variant:O,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...C}},...f,classes:f?da(M,f.classes):M,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:P,className:z(N.props.className,o,A.root),...!d&&{variant:O},...T})})});qk.muiName=`Select`;function Jk(e){return B(`MuiSkeleton`,e)}V(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var Yk=e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e;return U({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!o&&`heightAuto`]},Jk,t)},Xk=Ui`
225
- 0% {
226
- opacity: 1;
227
- }
228
-
229
- 50% {
230
- opacity: 0.4;
231
- }
232
-
233
- 100% {
234
- opacity: 1;
235
- }
236
- `,Zk=Ui`
237
- 0% {
238
- transform: translateX(-100%);
239
- }
240
-
241
- 50% {
242
- /* +0.5s of delay between each loop */
243
- transform: translateX(100%);
244
- }
245
-
246
- 100% {
247
- transform: translateX(100%);
248
- }
249
- `,Qk=typeof Xk==`string`?null:Hi`
250
- animation: ${Xk} 2s ease-in-out 0.5s infinite;
251
- `,$k=typeof Zk==`string`?null:Hi`
252
- &::after {
253
- animation: ${Zk} 2s linear 0.5s infinite;
254
- }
255
- `,eA=G(`span`,{name:`MuiSkeleton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(K(({theme:e})=>{let t=qd(e.shape.borderRadius)||`px`,n=Jd(e.shape.borderRadius),r=gd(e,{animation:`none`}),i=gd(e,{"&::after":{animation:`none`,display:`none`}});return{display:`block`,backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode===`light`?.11:.13),height:`1.2em`,variants:[{props:{variant:`text`},style:{marginTop:0,marginBottom:0,height:`auto`,transformOrigin:`0 55%`,transform:`scale(1, 0.60)`,borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:`"\\00a0"`}}},{props:{variant:`circular`},style:{borderRadius:`50%`}},{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:`hidden`}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:`fit-content`}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:`auto`}},{props:{animation:`pulse`},style:Qk||{animation:`${Xk} 2s ease-in-out 0.5s infinite`}},...r?[{props:{animation:`pulse`},style:r}]:[],{props:{animation:`wave`},style:{position:`relative`,overflow:`hidden`,WebkitMaskImage:`-webkit-radial-gradient(white, black)`,"&::after":{background:`linear-gradient(
256
- 90deg,
257
- transparent,
258
- ${(e.vars||e).palette.action.hover},
259
- transparent
260
- )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:$k||{"&::after":{animation:`${Zk} 2s linear 0.5s infinite`}}},...i?[{props:{animation:`wave`},style:i}]:[]]}})),tA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiSkeleton`}),{animation:r=`pulse`,className:i,component:a=`span`,height:o,style:s,variant:c=`text`,width:l,...u}=n,d={...n,animation:r,component:a,variant:c,hasChildren:!!u.children},f=Yk(d);return(0,R.jsx)(eA,{as:a,ref:t,className:z(f.root,i),ownerState:d,...u,style:{width:l,height:o,...s}})});function nA(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=q_();S.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=Ou((e,t)=>{r?.(e,t)}),c=Ou(e=>{r&&e!=null&&o.start(e,()=>{s(null,`timeout`)})});S.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=S.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return S.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...Hv(e),...Hv(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function rA(e){return B(`MuiSnackbarContent`,e)}V(`MuiSnackbarContent`,[`root`,`message`,`action`]);var iA=e=>{let{classes:t}=e;return U({root:[`root`],action:[`action`],message:[`message`]},rA,t)},aA=G(ny,{name:`MuiSnackbarContent`,slot:`Root`})(K(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.focusVisible&&Sl(`0 0 0 4px ${(e.vars||e).palette.background.default}`),...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Hs(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Hs(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),oA=G(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),sA=G(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),cA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=iA(c);return(0,R.jsxs)(aA,{role:o,elevation:6,className:z(l.root,i),ownerState:c,ref:t,...s,children:[(0,R.jsx)(oA,{className:l.message,ownerState:c,children:a}),r?(0,R.jsx)(sA,{className:l.action,ownerState:c,children:r}):null]})});function lA(e){return B(`MuiSnackbar`,e)}V(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var uA=e=>{let{classes:t,anchorOrigin:n}=e;return U({root:[`root`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`]},lA,t)},dA=G(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}`]]}})(K(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:`fixed`,display:`flex`,left:8,right:8,justifyContent:`center`,alignItems:`center`,variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`,style:{top:8,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),fA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiSnackbar`}),r=Bu(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,disableWindowBlurListener:d=!1,message:f,onBlur:p,onClose:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,open:v,resumeHideDuration:y,slots:b={},slotProps:x={},transitionDuration:C=i,...w}=n,T={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:d,transitionDuration:C},E=uA(T),{getRootProps:D,onClickAway:O}=nA(T),[k,A]=S.useState(!0),j={slots:b,slotProps:x},[M,N]=Gv(`root`,{ref:t,className:[E.root,u],elementType:dA,getSlotProps:D,externalForwardedProps:{...j,...w},ownerState:T}),[P,{ownerState:F,...ee}]=Gv(`clickAwayListener`,{elementType:Kne,externalForwardedProps:j,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&O(...t)}}),ownerState:T}),[te,ne]=Gv(`content`,{elementType:cA,shouldForwardComponentProp:!0,externalForwardedProps:j,additionalProps:{message:f,action:a},ownerState:T}),[re,ie]=Gv(`transition`,{elementType:BD,externalForwardedProps:j,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),A(!1)},onExited:(...t)=>{e.onExited?.(...t),A(!0)}}),additionalProps:{appear:!0,in:v,timeout:C,direction:o===`top`?`down`:`up`},ownerState:T});return!v&&k?null:(0,R.jsx)(P,{...ee,...b.clickAwayListener&&{ownerState:F},children:(0,R.jsx)(M,{...N,children:(0,R.jsx)(re,{...ie,children:l||(0,R.jsx)(te,{...ne})})})})});function pA(e){return B(`MuiTooltip`,e)}var mA=V(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function hA(e){return Math.round(e*1e5)/1e5}var gA=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a,open:o}=e;return U({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`,!o&&`popperClose`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${J(a.split(`-`)[0])}`],arrow:[`arrow`]},pA,t)},_A=G(uw,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(K(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>e.open&&!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${mA.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${mA.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${mA.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${mA.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),vA=G(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${J(n.placement.split(`-`)[0])}`]]}})(K(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${mA.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${mA.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${mA.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${mA.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${hA(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${mA.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${mA.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${mA.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${mA.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),yA=G(`span`,{name:`MuiTooltip`,slot:`Arrow`})(K(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),bA=!1,xA=new K_,SA={x:0,y:0};function CA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var wA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,describeChild:o=!1,disableFocusListener:s=!1,disableHoverListener:c=!1,disableInteractive:l=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:m=!1,id:h,leaveDelay:g=0,leaveTouchDelay:_=1500,onClose:v,onOpen:y,open:b,placement:x=`bottom`,slotProps:C={},slots:w={},title:T,...E}=n,D=S.isValidElement(i)?i:(0,R.jsx)(`span`,{children:i}),O=Bu(),[k,A]=S.useState(),[j,M]=S.useState(null),N=S.useRef(!1),P=S.useRef(!1),F=l||m,ee=q_(),te=q_(),ne=q_(),re=q_(),[ie,ae]=O_({controlled:b,default:!1,name:`Tooltip`,state:`open`}),oe=ie,{current:se}=S.useRef(b!==void 0),ce=E_(h),le=S.useRef(),ue=k_(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),re.clear()});S.useEffect(()=>ue,[ue]);let de=e=>{xA.clear(),bA=!0,ae(!0),y&&!oe&&y(e)},fe=k_(e=>{P.current=!1,xA.start(800+g,()=>{bA=!1}),ae(!1),v&&oe&&v(e),ee.start(O.transitions.duration.shortest,()=>{N.current=!1})}),pe=e=>{N.current&&e.type!==`touchstart`||(k&&k.removeAttribute(`title`),te.clear(),ne.clear(),d||bA&&f?te.start(bA?f:d,()=>{de(e)}):de(e))},me=e=>{if(k?.disabled&&!se){if(oe&&!P.current)return;P.current=!0}else P.current=!1;pe(e)},I=e=>{(!k?.disabled||se||P.current)&&pe(e)},he=e=>{te.clear(),ne.start(g,()=>{fe(e)})},[,ge]=S.useState(!1),_e=e=>{let t=e?.target??k;if(!t||t.disabled||!F_(t)){ge(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),he(n)}},ve=e=>{if(k||A(e.currentTarget),P.current=!1,F_(e.target)){let t=e=>{e.target.disabled&&_e(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),ge(!0),pe(e)}},ye=e=>{N.current=!0;let t=D.props;t.onTouchStart&&t.onTouchStart(e)},be=e=>{ye(e),ne.clear(),ee.clear(),ue(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,re.start(p,()=>{document.body.style.WebkitUserSelect=le.current,me(e)})},xe=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),ue(),ne.start(_,()=>{fe(e)})};S.useEffect(()=>{if(!oe)return;function e(e){e.key===`Escape`&&fe(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[fe,oe]);let Se=Gu(QC(D),A,t);!T&&T!==0&&(oe=!1);let Ce=S.useRef(),we=e=>{let t=D.props;t.onMouseMove&&t.onMouseMove(e),SA={x:e.clientX,y:e.clientY},Ce.current&&Ce.current.update()},Te={},Ee=typeof T==`string`;o?(Te.title=!oe&&Ee&&!c?T:null,Te[`aria-describedby`]=oe?ce:null):(Te[`aria-label`]=Ee?T:null,Te[`aria-labelledby`]=oe&&!Ee?ce:null);let De={...Te,...E,...D.props,className:z(E.className,D.props.className),onTouchStart:ye,ref:Se,...m?{onMouseMove:we}:{}},Oe={};u||(De.onTouchStart=be,De.onTouchEnd=xe),c||(De.onMouseOver=CA(me,De.onMouseOver),De.onMouseLeave=CA(he,De.onMouseLeave),F||(Oe.onMouseOver=I,Oe.onMouseLeave=he)),s||(De.onFocus=CA(ve,De.onFocus),De.onBlur=CA(_e,De.onBlur),F||(Oe.onFocus=ve,Oe.onBlur=_e));let ke={...n,arrow:r,disableInteractive:F,open:oe,placement:x,touch:N.current},Ae=typeof C.popper==`function`?C.popper(ke):C.popper,je=S.useMemo(()=>{let e=[{name:`arrow`,enabled:!!j,options:{element:j,padding:4}}];return Ae?.popperOptions?.modifiers&&(e=e.concat(Ae.popperOptions.modifiers)),{...Ae?.popperOptions,modifiers:e}},[j,Ae?.popperOptions]),Me=gA(ke),Ne={slots:w,slotProps:{arrow:C.arrow,popper:Ae,tooltip:C.tooltip,transition:C.transition}},[Pe,Fe]=Gv(`popper`,{elementType:_A,externalForwardedProps:Ne,ownerState:ke,className:Me.popper}),[Ie,Le]=Gv(`transition`,{elementType:BD,externalForwardedProps:Ne,ownerState:ke}),[Re,ze]=Gv(`tooltip`,{elementType:vA,className:Me.tooltip,externalForwardedProps:Ne,ownerState:ke}),[Be,Ve]=Gv(`arrow`,{elementType:yA,className:Me.arrow,externalForwardedProps:Ne,ownerState:ke,ref:M});return(0,R.jsxs)(S.Fragment,{children:[S.cloneElement(D,De),(0,R.jsx)(Pe,{as:uw,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:SA.y,left:SA.x,right:SA.x,bottom:SA.y,width:0,height:0})}:k,popperRef:Ce,open:k?oe:!1,id:ce,transition:!0,...Oe,...Fe,popperOptions:je,children:({TransitionProps:e})=>(0,R.jsx)(Ie,{timeout:O.transitions.duration.shorter,...e,...Le,children:(0,R.jsxs)(Re,{...ze,children:[T,r?(0,R.jsx)(Be,{...Ve}):null]})})})]})}),TA=qc({createStyledComponent:G(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>q({props:e,name:`MuiStack`})});function EA(e){return B(`MuiStep`,e)}V(`MuiStep`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`completed`]);var DA=e=>{let{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return U({root:[`root`,n,r&&`alternativeLabel`,i&&`completed`]},EA,t)},OA=G(`li`,{name:`MuiStep`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:`horizontal`,alternativeLabel:!1,hasConnector:!1},style:{paddingLeft:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,last:!0},style:{paddingRight:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,hasConnector:!0},style:{flex:`1 1 auto`,display:`grid`,gridTemplateColumns:`1fr auto`,alignItems:`center`,gap:8}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{display:`flex`,flexDirection:`column`}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{flex:1,position:`relative`}}]}),kA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStep`}),{active:r,children:i,className:a,component:o=`li`,completed:s,disabled:c,expanded:l=!1,index:u,last:d,...f}=n,{activeStep:p,connector:m,alternativeLabel:h,orientation:g,nonLinear:_,isTabList:v}=Oy(),[y=!1,b=!1,x=!1]=[r,s,c];p===u?y=r===void 0||r:!_&&p>u?b=s===void 0||s:!_&&p<u&&(x=c===void 0||c);let C=S.useMemo(()=>({index:u,last:d,expanded:l,icon:u+1,active:y,completed:b,disabled:x}),[u,d,l,y,b,x]),w=!!m&&u!==0,T={...n,active:y,orientation:g,alternativeLabel:h,completed:b,disabled:x,expanded:l,component:o,hasConnector:w},E=DA(T);return(0,R.jsx)(Ey.Provider,{value:C,children:(0,R.jsxs)(OA,{as:o,className:z(E.root,a),ref:t,ownerState:T,role:v?`presentation`:void 0,...f,children:[w?m:null,i]})})});function AA(e){return B(`MuiStepButton`,e)}var jA=V(`MuiStepButton`,[`root`,`horizontal`,`vertical`,`touchRipple`]),MA=e=>{let{classes:t,orientation:n}=e;return U({root:[`root`,n],touchRipple:[`touchRipple`]},AA,t)},NA=G(hv,{name:`MuiStepButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${jA.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(K(({theme:e})=>({width:`100%`,padding:`24px 16px`,margin:`-24px -16px`,boxSizing:`content-box`,[`& .${jA.touchRipple}`]:{color:`rgba(0, 0, 0, 0.3)`,...e.applyStyles(`dark`,{color:`rgba(255, 255, 255, 0.3)`})},...e.focusVisible&&{[`&.${mv.focusVisible} .${Ay.root}`]:{borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{orientation:`vertical`},style:{justifyContent:`flex-start`,padding:`8px`,margin:`-8px`}}]}))),PA=S.forwardRef(function(e,t){let{children:n,disabled:r,index:i,...a}=e,o=Uy({id:i,ref:t,disabled:r});return(0,R.jsx)(NA,{disabled:r,...o,...a,children:n})}),FA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStepButton`}),{children:r,className:i,icon:a,optional:o,...s}=n,{disabled:c,active:l,index:u}=S.useContext(Ey),{orientation:d,totalSteps:f,isTabList:p}=Oy(),m={...n,orientation:d},h=MA(m),g={icon:a,optional:o},_=C_(r,[`StepLabel`])?S.cloneElement(r,g):(0,R.jsx)(Iy,{...g,children:r}),v={internalNativeButton:!0,focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:z(h.root,i),ownerState:m,"aria-selected":l,"aria-posinset":u+1,"aria-setsize":f,role:`tab`,internalDisabledThemeFocusVisible:!0,...s};return p?(0,R.jsx)(PA,{...v,index:u,ref:t,children:_}):(0,R.jsx)(NA,{ref:t,tabIndex:l?0:-1,...v,children:_})});function IA(e){return B(`MuiStepConnector`,e)}V(`MuiStepConnector`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`active`,`completed`,`disabled`,`line`]);var LA=e=>{let{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:o}=e;return U({root:[`root`,n,r&&`alternativeLabel`,i&&`active`,a&&`completed`,o&&`disabled`],line:[`line`]},IA,t)},RA=G(`div`,{name:`MuiStepConnector`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:`1 1 auto`,variants:[{props:{orientation:`vertical`},style:{marginLeft:12}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{marginLeft:`auto`,marginRight:12}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{position:`absolute`,top:12,left:`calc(-50% + 20px)`,right:`calc(50% + 20px)`}}]}),zA=G(`span`,{name:`MuiStepConnector`,slot:`Line`})(K(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600];return{display:`block`,borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:`horizontal`},style:{borderTopStyle:`solid`,borderTopWidth:1}},{props:{orientation:`vertical`},style:{borderLeftStyle:`solid`,borderLeftWidth:1,minHeight:24}}]}})),BA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStepConnector`}),{className:r,...i}=n,{alternativeLabel:a,orientation:o=`horizontal`}=Oy(),{active:s,disabled:c,completed:l}=S.useContext(Ey),u={...n,alternativeLabel:a,orientation:o,active:s,completed:l,disabled:c},d=LA(u);return(0,R.jsx)(RA,{className:z(d.root,r),ref:t,ownerState:u,...i,children:(0,R.jsx)(zA,{className:d.line,ownerState:u})})});function VA(e){return B(`MuiStepContent`,e)}V(`MuiStepContent`,[`root`,`last`,`transition`]);var HA=e=>{let{classes:t,last:n}=e;return U({root:[`root`,n&&`last`],transition:[`transition`]},VA,t)},UA=G(`div`,{name:`MuiStepContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.last&&t.last]}})(K(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:`none`}},{props:{alternativeLabel:!0},style:{marginLeft:0,marginRight:12,paddingLeft:8,paddingRight:20,borderLeft:`none`,borderRight:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600]}`}},{props:{alternativeLabel:!0,last:!0},style:{borderRight:`none`}}]}))),WA=G(Qv,{name:`MuiStepContent`,slot:`Transition`})({}),GA=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiStepContent`}),{children:r,className:i,transitionDuration:a=`auto`,slots:o={},slotProps:s={},...c}=n,{orientation:l,alternativeLabel:u}=Oy(),{active:d,last:f,expanded:p}=S.useContext(Ey),m={...n,last:f,alternativeLabel:u},h=HA(m),g=a;a===`auto`&&!(o.transition??Qv).muiSupportAuto&&(g=void 0);let[_,v]=Gv(`transition`,{elementType:WA,externalForwardedProps:{slots:o,slotProps:s},ownerState:m,className:h.transition,additionalProps:{in:d||p,timeout:g,unmountOnExit:!0}});return(0,R.jsx)(UA,{className:z(h.root,i),ref:t,ownerState:m,...c,children:(0,R.jsx)(_,{...v,children:r})})});function KA(e){return B(`MuiStepper`,e)}V(`MuiStepper`,[`root`,`horizontal`,`vertical`,`nonLinear`,`alternativeLabel`]);var qA=e=>{let{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return U({root:[`root`,t,n&&`nonLinear`,r&&`alternativeLabel`]},KA,i)},JA=G(`ol`,{name:`MuiStepper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:`flex`,listStyle:`none`,margin:0,padding:0,variants:[{props:{orientation:`horizontal`},style:{flexDirection:`row`,alignItems:`center`}},{props:{orientation:`horizontal`,alternativeLabel:!1},style:{gap:8}},{props:{orientation:`vertical`},style:{flexDirection:`column`}},{props:{alternativeLabel:!0},style:{alignItems:`flex-start`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{alignItems:`flex-end`}}]}),YA=(0,R.jsx)(BA,{});function XA(e){let{children:t,className:n,component:r,forwardedRef:i,isRtl:a,orientation:o,ownerState:s,...c}=e,l=Hy({orientation:o,isRtl:a}),u=l.getContainerProps(i,c.onFocus,c.onKeyDown);return(0,R.jsx)(Ly.Provider,{value:l,children:(0,R.jsx)(JA,{as:r,ownerState:s,className:n,role:`tablist`,"aria-orientation":o,...c,...u,children:t})})}var ZA=S.forwardRef(function(e,t){let n=Zs(),r=q({props:e,name:`MuiStepper`}),{activeStep:i=0,alternativeLabel:a=!1,children:o,className:s,component:c=`ol`,connector:l=YA,nonLinear:u=!1,orientation:d=`horizontal`,...f}=r,p={...r,nonLinear:u,alternativeLabel:a,orientation:d,component:c},m=qA(p),h=S.Children.toArray(o).filter(Boolean),g=h.length,_=h.some(e=>{if(!S.isValidElement(e))return!1;if(e.type===FA)return!0;let t=e.props.children;return t?S.Children.toArray(t).some(e=>S.isValidElement(e)&&e.type===FA):!1}),v=h.map((e,t)=>S.cloneElement(e,{index:t,last:t+1===g,...e.props})),y=S.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:l,nonLinear:u,orientation:d,totalSteps:g,isTabList:_}),[i,a,l,u,d,g,_]);return _?(0,R.jsx)(Dy.Provider,{value:y,children:(0,R.jsx)(XA,{forwardedRef:t,isRtl:n,className:z(m.root,s),component:c,orientation:d,ownerState:p,...f,children:v})}):(0,R.jsx)(Dy.Provider,{value:y,children:(0,R.jsx)(JA,{as:c,ownerState:p,className:z(m.root,s),ref:t,...f,children:v})})});function QA(e){return B(`MuiTable`,e)}V(`MuiTable`,[`root`,`stickyHeader`]);var $A=e=>{let{classes:t,stickyHeader:n}=e;return U({root:[`root`,n&&`stickyHeader`]},QA,t)},ej=G(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(K(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),tj=`table`,nj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTable`}),{className:r,component:i=tj,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=$A(l),d=S.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,R.jsx)(dy.Provider,{value:d,children:(0,R.jsx)(ej,{as:i,role:i===tj?null:`table`,ref:t,className:z(u.root,r),ownerState:l,...c})})});function rj(e){return B(`MuiTableBody`,e)}V(`MuiTableBody`,[`root`]);var ij=e=>{let{classes:t}=e;return U({root:[`root`]},rj,t)},aj=G(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),oj={variant:`body`},sj=`tbody`,cj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableBody`}),{className:r,component:i=sj,...a}=n,o={...n,component:i},s=ij(o);return(0,R.jsx)(iy.Provider,{value:oj,children:(0,R.jsx)(aj,{className:z(s.root,r),as:i,ref:t,role:i===sj?null:`rowgroup`,ownerState:o,...a})})});function lj(e){return B(`MuiTableContainer`,e)}V(`MuiTableContainer`,[`root`]);var uj=e=>{let{classes:t}=e;return U({root:[`root`]},lj,t)},dj=G(`div`,{name:`MuiTableContainer`,slot:`Root`})({width:`100%`,overflowX:`auto`}),fj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=uj(o);return(0,R.jsx)(dj,{ref:t,as:i,className:z(s.root,r),ownerState:o,...a})});function pj(e){return B(`MuiTableHead`,e)}V(`MuiTableHead`,[`root`]);var mj=e=>{let{classes:t}=e;return U({root:[`root`]},pj,t)},hj=G(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),gj={variant:`head`},_j=`thead`,vj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableHead`}),{className:r,component:i=_j,...a}=n,o={...n,component:i},s=mj(o);return(0,R.jsx)(iy.Provider,{value:gj,children:(0,R.jsx)(hj,{as:i,className:z(s.root,r),ref:t,role:i===_j?null:`rowgroup`,ownerState:o,...a})})});function yj(e){return B(`MuiToolbar`,e)}V(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var bj=e=>{let{classes:t,disableGutters:n,variant:r}=e;return U({root:[`root`,!n&&`gutters`,r]},yj,t)},xj=G(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(K(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),Sj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o},l=bj(c);return(0,R.jsx)(xj,{as:i,className:z(l.root,r),ref:t,ownerState:c,...s})}),Cj=wf((0,R.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),wj=wf((0,R.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function Tj(e){return B(`MuiTablePaginationActions`,e)}V(`MuiTablePaginationActions`,[`root`]);var Ej=`[data-mui-pagination-action]`;function Dj(e){return e.matches(`:disabled, [aria-disabled="true"]`)}var Oj=e=>{let{classes:t}=e;return U({root:[`root`]},Tj,t)},kj=G(`div`,{name:`MuiTablePaginationActions`,slot:`Root`})({}),Aj=S.forwardRef(function({"aria-label":e,title:t,...n},r){return(0,R.jsx)(wA,{title:t,children:(0,R.jsx)(Nv,{"aria-label":e??t,...n,ref:r})})}),jj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTablePaginationActions`}),{className:r,count:i,disabled:a=!1,getItemAriaLabel:o,onPageChange:s,page:c,rowsPerPage:l,showFirstButton:u,showLastButton:d,slots:f={},slotProps:p={},...m}=n,h=Zs(),g=Oj(n),_=S.useRef(null),v=Gu(_,t),y=S.useRef(null),b=e=>{y.current=e.target.matches(Ej)?e.target:null,m.onFocus?.(e)},x=e=>{Dj(e.target)&&e.relatedTarget==null||(y.current=null),m.onBlur?.(e)};Ku(()=>{let e=y.current;if(!e||!Dj(e))return;y.current=null;let t=qu(e),n=Yu(t);if(n!=null&&n!==e&&n!==t.body&&n!==t.documentElement)return;let r=Array.from(_.current.querySelectorAll(Ej)),i=r.indexOf(e);i!==-1&&[...r.slice(i+1),...r.slice(0,i).reverse()].find(e=>!Dj(e)&&e.tabIndex>=0)?.focus()});let C=e=>{s(e,0)},w=e=>{s(e,c-1)},T=e=>{s(e,c+1)},E=e=>{s(e,Math.max(0,Math.ceil(i/l)-1))},D=f.firstButton??Aj,O=f.lastButton??Aj,k=f.nextButton??Aj,A=f.previousButton??Aj,j=f.firstButtonIcon??sb,M=f.lastButtonIcon??cb,N=f.nextButtonIcon??wj,P=f.previousButtonIcon??Cj,F=h?O:D,ee=h?k:A,te=h?A:k,ne=h?D:O,re=h?p.lastButton:p.firstButton,ie=h?p.nextButton:p.previousButton,ae=h?p.previousButton:p.nextButton,oe=h?p.firstButton:p.lastButton;return(0,R.jsxs)(kj,{ref:v,className:z(g.root,r),...m,onFocus:b,onBlur:x,children:[u&&(0,R.jsx)(F,{onClick:C,disabled:a||c===0,"aria-label":o(`first`,c),title:o(`first`,c),"data-mui-pagination-action":`first`,...re,children:h?(0,R.jsx)(M,{...p.lastButtonIcon}):(0,R.jsx)(j,{...p.firstButtonIcon})}),(0,R.jsx)(ee,{onClick:w,disabled:a||c===0,color:`inherit`,"aria-label":o(`previous`,c),title:o(`previous`,c),"data-mui-pagination-action":`previous`,...ie,children:h?(0,R.jsx)(N,{...p.nextButtonIcon}):(0,R.jsx)(P,{...p.previousButtonIcon})}),(0,R.jsx)(te,{onClick:T,disabled:a||i!==-1&&c>=Math.ceil(i/l)-1,color:`inherit`,"aria-label":o(`next`,c),title:o(`next`,c),"data-mui-pagination-action":`next`,...ae,children:h?(0,R.jsx)(P,{...p.previousButtonIcon}):(0,R.jsx)(N,{...p.nextButtonIcon})}),d&&(0,R.jsx)(ne,{onClick:E,disabled:a||c>=Math.ceil(i/l)-1,"aria-label":o(`last`,c),title:o(`last`,c),"data-mui-pagination-action":`last`,...oe,children:h?(0,R.jsx)(j,{...p.firstButtonIcon}):(0,R.jsx)(M,{...p.lastButtonIcon})})]})});function Mj(e){return B(`MuiTablePagination`,e)}var Nj=V(`MuiTablePagination`,[`root`,`toolbar`,`spacer`,`selectLabel`,`selectRoot`,`select`,`selectIcon`,`input`,`menuItem`,`displayedRows`,`actions`]),Pj,Fj=Am(`en-US`),Ij=G(gy,{name:`MuiTablePagination`,slot:`Root`})(K(({theme:e})=>({overflow:`auto`,color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),Lj=G(Sj,{name:`MuiTablePagination`,slot:`Toolbar`,overridesResolver:(e,t)=>[{[`& .${Nj.actions}`]:t.actions},t.toolbar]})(K(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up(`xs`)} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up(`sm`)]:{minHeight:52,paddingRight:2},[`& .${Nj.actions}`]:{flexShrink:0,marginLeft:20}}))),Rj=G(`div`,{name:`MuiTablePagination`,slot:`Spacer`})({flex:`1 1 100%`}),zj=G(`p`,{name:`MuiTablePagination`,slot:`SelectLabel`})(K(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Bj=G(qk,{name:`MuiTablePagination`,slot:`Select`,overridesResolver:(e,t)=>[{[`& .${Nj.selectIcon}`]:t.selectIcon,[`& .${Nj.select}`]:t.select},t.input,t.selectRoot]})({color:`inherit`,fontSize:`inherit`,flexShrink:0,marginRight:32,marginLeft:8,[`& .${Nj.select}`]:{paddingLeft:8,paddingRight:24,textAlign:`right`,textAlignLast:`right`}}),Vj=G(Dd)(K(({theme:e})=>({[`& .${Nj.select}:focus`]:{backgroundColor:(e.vars||e).palette.action.focus}}))),Hj=G(hk,{name:`MuiTablePagination`,slot:`MenuItem`})({}),Uj=G(`p`,{name:`MuiTablePagination`,slot:`DisplayedRows`})(K(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Wj({from:e,to:t,count:n}){return`${Fj(e)}–${Fj(t)} of ${n===-1?`more than ${Fj(t)}`:Fj(n)}`}function Gj(e){return`Go to ${e} page`}var Kj=e=>{let{classes:t}=e;return U({root:[`root`],toolbar:[`toolbar`],spacer:[`spacer`],selectLabel:[`selectLabel`],select:[`select`],input:[`input`],selectIcon:[`selectIcon`],menuItem:[`menuItem`],displayedRows:[`displayedRows`],actions:[`actions`]},Mj,t)},qj=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTablePagination`}),{ActionsComponent:r=jj,colSpan:i,component:a=gy,count:o,disabled:s=!1,getItemAriaLabel:c=Gj,labelDisplayedRows:l=Wj,labelRowsPerPage:u=`Rows per page:`,onPageChange:d,onRowsPerPageChange:f,page:p,rowsPerPage:m,rowsPerPageOptions:h=[10,25,50,100],showFirstButton:g=!1,showLastButton:_=!1,slotProps:v={},slots:y={},...b}=n,x=n,C=Kj(x),w=typeof v?.select==`function`?v.select(x):v?.select??{},T=w.native?`option`:Hj,E;(a===gy||a===`td`)&&(E=i||1e3);let D=E_(w.id),O=E_(w.labelId),k=()=>o===-1?(p+1)*m:m===-1?o:Math.min(o,(p+1)*m),A={slots:y,slotProps:v},[j,M]=Gv(`root`,{ref:t,className:C.root,elementType:Ij,externalForwardedProps:{...A,component:a,...b},ownerState:x,additionalProps:{colSpan:E}}),[N,P]=Gv(`toolbar`,{className:C.toolbar,elementType:Lj,externalForwardedProps:A,ownerState:x}),[F,ee]=Gv(`spacer`,{className:C.spacer,elementType:Rj,externalForwardedProps:A,ownerState:x}),[te,ne]=Gv(`selectLabel`,{className:C.selectLabel,elementType:zj,externalForwardedProps:A,ownerState:x,additionalProps:{id:O}}),[re,ie]=Gv(`select`,{className:C.select,elementType:Bj,externalForwardedProps:A,ownerState:x}),[ae,oe]=Gv(`menuItem`,{className:C.menuItem,elementType:T,externalForwardedProps:A,ownerState:x}),[se,ce]=Gv(`displayedRows`,{className:C.displayedRows,elementType:Uj,externalForwardedProps:A,ownerState:x});return(0,R.jsx)(j,{...M,children:(0,R.jsxs)(N,{...P,children:[(0,R.jsx)(F,{...ee}),h.length>1&&(0,R.jsx)(te,{...ne,children:u}),h.length>1&&(0,R.jsx)(re,{variant:`standard`,...!w.variant&&{input:Pj||=(0,R.jsx)(Vj,{})},value:m,onChange:f,id:D,labelId:O,...w,classes:{...w.classes,root:z(C.input,C.selectRoot,(w.classes||{}).root),select:z(C.select,(w.classes||{}).select),icon:z(C.selectIcon,(w.classes||{}).icon)},disabled:s,...ie,children:h.map(e=>(0,S.createElement)(ae,{...oe,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,R.jsx)(se,{...ce,children:l({from:o===0?0:p*m+1,to:k(),count:o===-1?-1:o,page:p})}),(0,R.jsx)(r,{className:C.actions,count:o,onPageChange:d,page:p,rowsPerPage:m,showFirstButton:g,showLastButton:_,slotProps:v.actions,slots:y.actions,getItemAriaLabel:c,disabled:s})]})})}),Jj=wf((0,R.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function Yj(e){return B(`MuiTableSortLabel`,e)}var Xj=V(`MuiTableSortLabel`,[`root`,`active`,`icon`,`directionDesc`,`directionAsc`]),Zj=e=>{let{classes:t,direction:n,active:r}=e;return U({root:[`root`,r&&`active`,`direction${J(n)}`],icon:[`icon`]},Yj,t)},Qj=G(hv,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(K(({theme:e})=>({cursor:`pointer`,display:`inline-flex`,justifyContent:`flex-start`,flexDirection:`inherit`,alignItems:`center`,"&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Xj.icon}`]:{opacity:.5}},[`&.${Xj.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Xj.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),$j=G(`span`,{name:`MuiTableSortLabel`,slot:`Icon`})(K(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,..._d(e,[`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),eM=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTableSortLabel`}),{active:r=!1,children:i,className:a,direction:o=`asc`,hideSortIcon:s=!1,IconComponent:c=Jj,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=Zj(f),m={slots:l,slotProps:u},[h,g]=Gv(`root`,{elementType:Qj,externalForwardedProps:m,ownerState:f,className:z(p.root,a),ref:t,additionalProps:{internalNativeButton:!1}}),[_,v]=Gv(`icon`,{elementType:$j,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,R.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,R.jsx)(_,{as:c,...v})]})});function tM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function nM(e,t,n,r={},i=()=>{}){let{ease:a=tM,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);t[e]=a(u)*(n-c)+c,requestAnimationFrame(u>=1?()=>{i(null)}:d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var rM={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function iM(e){let{onChange:t,...n}=e,r=S.useRef(),i=S.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ku(()=>{let e=S_(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=w_(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),(0,R.jsx)(`div`,{style:rM,...n,ref:i})}function aM(e){return B(`MuiTabScrollButton`,e)}var oM=V(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),sM=e=>{let{classes:t,orientation:n,disabled:r}=e;return U({root:[`root`,n,r&&`disabled`]},aM,t)},cM=G(hv,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${oM.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),lM=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,{nativeButton:u,...d}=l,f=Zs(),p={isRtl:f,...n},m=sM(p),h=i.StartScrollButtonIcon??Cj,g=i.EndScrollButtonIcon??wj,_=ZC({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=ZC({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,R.jsx)(cM,{component:`div`,className:z(m.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:o===`left`?(0,R.jsx)(h,{..._}):(0,R.jsx)(g,{...v})})});function uM(e){return B(`MuiTabs`,e)}var dM=V(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),fM=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return U({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},uM,c)},pM=G(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${dM.scrollButtons}`]:t.scrollButtons},{[`& .${dM.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(K(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${dM.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),mM=G(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),hM=G(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),gM=G(`span`,{name:`MuiTabs`,slot:`Indicator`})(K(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,..._d(e),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),_M=G(iM)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),vM={};function yM(e,t){let n=parseFloat(e);return Number.isNaN(n)?0:e.endsWith(`%`)?n/100*t:n}var bM=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTabs`}),r=Bu(),i=Zs(),a=sv(r.motion.reducedMotion,!1),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},textColor:x=`primary`,value:C,variant:w=`standard`,visibleScrollbar:T=!1,...E}=n,D=w===`scrollable`,O=g===`vertical`,k=O?`scrollTop`:`scrollLeft`,A=O?`top`:`left`,j=O?`bottom`:`right`,M=O?`clientHeight`:`clientWidth`,N=O?`height`:`width`,P={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:O,scrollButtons:_,textColor:x,variant:w,visibleScrollbar:T,fixed:!D,hideScrollbar:D&&!T,scrollableX:D&&!O,scrollableY:D&&O,centered:l&&!D,scrollButtonsHideMobile:!p},F=fM(P),ee=ZC({elementType:y.startScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:P}),te=ZC({elementType:y.endScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:P}),[ne,re]=S.useState(vM),[ie,ae]=S.useState(!1),[oe,se]=S.useState(!1),[ce,le]=S.useState(!1),ue=C===!1?null:C,[de,fe]=S.useState(!1),[pe,me]=S.useState({overflow:`hidden`,scrollbarWidth:0}),I=new Map,he=S.useRef(null),ge=S.useRef(null),_e=ne!==vM,ve={slots:y,slotProps:b},ye=()=>{let e=he.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&C!==!1){let e=ge.current.children;if(e.length>0){let t=e[I.get(C)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},be=k_(()=>{let{tabsMeta:e,tabMeta:t}=ye(),n=0,r;O?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[N]:t?t[N]:0};if(typeof ne[r]!=`number`||typeof ne[N]!=`number`)re(a);else{let e=Math.abs(ne[r]-a[r]),t=Math.abs(ne[N]-a[N]);(e>=1||t>=1)&&re(a)}}),xe=(e,{animation:t=!0}={})=>{t&&!a.shouldReduceMotion?nM(k,he.current,e,{duration:r.transitions.duration.standard}):he.current[k]=e},Se=e=>{let t=he.current[k];t+=O?e:e*(i?-1:1),xe(t)},Ce=()=>{let e=he.current[M],t=0,n=Array.from(ge.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[M]>e){r===0&&(t=e);break}t+=i[M]}return t},we=()=>{Se(-1*Ce())},Te=()=>{Se(Ce())},[Ee,{onChange:De,...Oe}]=Gv(`scrollbar`,{className:z(F.scrollableX,F.hideScrollbar),elementType:_M,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:P}),ke=S.useCallback(e=>{De?.(e),me({overflow:null,scrollbarWidth:e})},[De]),[Ae,je]=Gv(`scrollButtons`,{className:F.scrollButtons,elementType:lM,externalForwardedProps:ve,ownerState:P,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:y.startScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon},slotProps:{startScrollButtonIcon:ee,endScrollButtonIcon:te}}}),Me=()=>{let e={};e.scrollbarSizeListener=D?(0,R.jsx)(Ee,{...Oe,onChange:ke}):null;let t=D&&(_===`auto`&&(ie||oe)||_===!0);return e.scrollButtonStart=t?(0,R.jsx)(Ae,{direction:i?`right`:`left`,onClick:we,disabled:!ie,...je}):null,e.scrollButtonEnd=t?(0,R.jsx)(Ae,{direction:i?`left`:`right`,onClick:Te,disabled:!oe,...je}):null,e},Ne=k_(e=>{let{tabsMeta:t,tabMeta:n}=ye();if(!n||!t)return;let r=w_(he.current).getComputedStyle(he.current),i=O?t.clientHeight:t.clientWidth,a=yM(r[O?`scrollPaddingTop`:`scrollPaddingLeft`],i),o=yM(r[O?`scrollPaddingBottom`:`scrollPaddingRight`],i),s=t[A]+a,c=t[j]-o,l=t[k]+(n[A]-s);n[A]<s?xe(l,{animation:e}):n[j]>c&&(n[j]-n[A]>c-s?xe(l,{animation:e}):xe(t[k]+(n[j]-c),{animation:e}))}),Pe=k_(()=>{D&&_!==!1&&le(!ce)});S.useEffect(()=>{let e=S_(()=>{he.current&&be()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Pe()},r=w_(he.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(ge.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(ge.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[be,Pe]),S.useEffect(()=>{let e=Array.from(ge.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&D&&_!==!1){let n=e[0],r=e[t-1],i={root:he.current,threshold:.99},a=new IntersectionObserver(e=>{ae(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{se(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[D,_,ce,u?.length]),S.useEffect(()=>{be()}),S.useEffect(()=>{Ne(vM!==ne)},[Ne,ne]),S.useEffect(()=>{if(typeof ResizeObserver>`u`||!D||_!==`auto`)return;let e=new ResizeObserver(()=>{Ne(!1)});return e.observe(he.current),()=>{e.disconnect()}},[D,_,Ne]),S.useImperativeHandle(c,()=>({updateIndicator:be,updateScrollButtons:Pe}),[be,Pe]);let[Fe,Ie]=Gv(`indicator`,{className:F.indicator,elementType:gM,externalForwardedProps:ve,ownerState:P,additionalProps:{style:ne}}),Le=(0,R.jsx)(Fe,{...Ie}),Re=Hy({activeItemId:de?void 0:ue,orientation:g,isRtl:i}),ze=Re.getContainerProps(),Be=S.Children.toArray(u).filter(S.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return I.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===C;return S.cloneElement(e,{fullWidth:w===`fullWidth`,indicator:n&&!_e&&Le,selected:n,selectionFollowsFocus:v,onChange:h,textColor:x,value:t})}),Ve=Me(),[He,Ue]=Gv(`root`,{ref:t,className:z(F.root,d),elementType:pM,externalForwardedProps:{...ve,...E,component:f},ownerState:P}),[We,Ge]=Gv(`scroller`,{ref:he,className:F.scroller,elementType:mM,externalForwardedProps:ve,ownerState:P,additionalProps:{style:{overflow:pe.overflow,[O?`margin${i?`Left`:`Right`}`:`marginBottom`]:T?void 0:-pe.scrollbarWidth}}}),Ke=Gu(ze.ref,ge),qe=e=>{let t=ge.current;Yu(qu(t))?.getAttribute(`role`)===`tab`&&ze.onKeyDown(e)},[Je,Ye]=Gv(`list`,{ref:Ke,className:F.list,elementType:hM,externalForwardedProps:ve,ownerState:P,getSlotProps:e=>({...e,onBlur:t=>{_E(t.currentTarget,t.relatedTarget)||fe(!1),e.onBlur?.(t)},onKeyDown:t=>{qe(t),e.onKeyDown?.(t)},onFocus:t=>{fe(!0),ze.onFocus(t),e.onFocus?.(t)}})});return(0,R.jsxs)(He,{...Ue,children:[Ve.scrollButtonStart,Ve.scrollbarSizeListener,(0,R.jsxs)(We,{...Ge,children:[(0,R.jsx)(Je,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...Ye,children:(0,R.jsx)(Ly.Provider,{value:Re,children:Be})}),_e&&Le]}),Ve.scrollButtonEnd]})});function xM(e){return B(`MuiTextField`,e)}V(`MuiTextField`,[`root`]);var SM={standard:WD,filled:Ab,outlined:kb},CM=e=>{let{classes:t}=e;return U({root:[`root`]},xM,t)},wM=G(MD,{name:`MuiTextField`,slot:`Root`})({}),TM=S.forwardRef(function(e,t){let n=q({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,fullWidth:d=!1,helperText:f,id:p,inputRef:m,label:h,maxRows:g,minRows:_,multiline:v=!1,name:y,onBlur:b,onChange:x,onFocus:S,placeholder:C,required:w=!1,rows:T,select:E=!1,slots:D={},slotProps:O={},type:k,value:A,variant:j=`outlined`,...M}=n,N={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:d,multiline:v,required:w,select:E,variant:j},P=CM(N),F=ac(p),ee=f&&F?`${F}-helper-text`:void 0,te=h&&F?`${F}-label`:void 0,ne=SM[j],re={slots:D,slotProps:O},[ie,ae]=Gv(`select`,{elementType:qk,externalForwardedProps:re,ownerState:N}),oe=E&&ae.native,[se,ce]=Gv(`inputLabel`,{elementType:Gb,externalForwardedProps:re,ownerState:N}),le={};j===`outlined`&&(ce.shrink!==void 0&&(le.notched=ce.shrink),le.label=h),E&&(oe||(le.id=void 0),le[`aria-describedby`]=void 0);let[ue,de]=Gv(`root`,{elementType:wM,shouldForwardComponentProp:!0,externalForwardedProps:{...re,...M},ownerState:N,className:z(P.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:d,required:w,color:s,variant:j}}),[fe,pe]=Gv(`input`,{elementType:ne,externalForwardedProps:re,additionalProps:le,ownerState:N}),[me,I]=Gv(`htmlInput`,{elementType:`input`,externalForwardedProps:re,ownerState:N}),[he,ge]=Gv(`formHelperText`,{elementType:ID,externalForwardedProps:re,ownerState:N}),_e=(0,R.jsx)(fe,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:d,multiline:v,name:y,rows:T,maxRows:g,minRows:_,type:k,value:A,id:F,inputRef:m,onBlur:b,onChange:x,onFocus:S,placeholder:C,inputProps:I,slots:{input:D.htmlInput?me:void 0},...pe});return(0,R.jsxs)(ue,{...de,children:[h!=null&&h!==``&&(0,R.jsx)(se,{htmlFor:E&&!oe?void 0:F,id:te,...E&&!oe&&{component:`div`},...ce,children:h}),E?(0,R.jsx)(ie,{"aria-describedby":ee,id:F,labelId:te,value:A,input:_e,...ae,children:a}):_e,f&&(0,R.jsx)(he,{id:ee,...ge,children:f})]})}),EM=Es({themeId:Kn});function DM(){return EM(`(prefers-color-scheme: dark)`)}function OM(e){let t=DM();return e===`system`?t?`dark`:`light`:e}var kM=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},AM=(e=>e?kM(e):kM),jM=e=>e;function MM(e,t=jM){let n=S.useSyncExternalStore(e.subscribe,S.useCallback(()=>t(e.getState()),[e,t]),()=>t(e.getInitialState()));return S.useDebugValue(n),n}var NM=e=>{let t=AM(e),n=e=>MM(t,e);return Object.assign(n,t),n},PM=(e=>e?NM(e):NM),FM=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,IM=new Map,LM=e=>{let t=IM.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},RM=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=IM.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return IM.set(n.name,i),{type:`tracked`,store:e,...i}},zM=(e,t,n)=>{if(t===void 0)return;let r=IM.get(e);r?.stores[t]===n&&(delete r.stores[t],Object.keys(r.stores).length===0&&IM.delete(e))},BM=/^at (?:new |async )?(.+?) \(/,VM=/^([^@]+)@/;function HM(e){if(!e)return;let t=e.split(`
261
- `),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return BM.exec(r)?.[1]||VM.exec(r)?.[1]}var UM=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,l;try{l=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return e(n,r,i);let{connection:u,...d}=RM(s,l,c),f=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!f)return l;let d=a===void 0?{type:o||HM(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(u?.send(d,r()),l):(u?.send({...d,type:`${s}/${d.type}`},{...LM(c.name),[s]:i.getState()}),l)});let p;i.devtools={cleanup:()=>{p?.(),p=void 0,zM(c.name,s,i),(s===void 0||!IM.has(c.name))&&u&&typeof u.unsubscribe==`function`&&u.unsubscribe()}};let m=(...e)=>{let t=f;f=!1,n(...e),f=t},h=e(i.setState,r,i);if(d.type===`untracked`?u?.init(h):(d.stores[d.store]=i,u?.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?h:t.getState()])))),FM(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return p=u.subscribe(e=>{let t=typeof c.serialize==`object`?c.serialize.reviver:void 0;switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return WM(e.payload,t,e=>{if(e.type===`__setState`){if(s===void 0){m(e.state);return}Object.keys(e.state).length!==1&&console.error(`
262
- [zustand devtools middleware] Unsupported __setState action format.
263
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
264
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
265
- `);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&m(t)}else FM(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return m(h),s===void 0?u?.init(i.getState()):u?.init(LM(c.name));case`COMMIT`:if(s===void 0){u?.init(i.getState());return}return u?.init(LM(c.name));case`ROLLBACK`:return WM(e.state,t,e=>{s===void 0?(m(e),u?.init(i.getState())):(m(e[s]),u?.init(LM(c.name)))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return WM(e.state,t,e=>{s===void 0?m(e):JSON.stringify(i.getState())!==JSON.stringify(e[s])&&m(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;m(s===void 0?n:n[s]),u?.send(null,t);return}case`PAUSE_RECORDING`:return f=!f}return}}),h},WM=(e,t,n)=>{let r;try{r=JSON.parse(e,t)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}r!==void 0&&n(r)};function GM(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var KM=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return KM(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return KM(t)(e)}}}},qM=(e,t)=>(n,r,i)=>{let a={storage:GM(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(...e)=>(f(...e),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return KM(u.getItem.bind(u))(a.name).then(e=>{if(e){if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state]}return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{++s,u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},JM=Symbol.for(`immer-nothing`),YM=Symbol.for(`immer-draftable`),XM=Symbol.for(`immer-state`);function ZM(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var QM=Object,$M=QM.getPrototypeOf,eN=`constructor`,tN=`prototype`,nN=`configurable`,rN=`enumerable`,iN=`writable`,aN=`value`,oN=e=>!!e&&!!e[XM];function sN(e){return e?uN(e)||_N(e)||!!e[YM]||!!e[eN]?.[YM]||vN(e)||yN(e):!1}var cN=QM[tN][eN].toString(),lN=new WeakMap;function uN(e){if(!e||!bN(e))return!1;let t=$M(e);if(t===null||t===QM[tN])return!0;let n=QM.hasOwnProperty.call(t,eN)&&t[eN];if(n===Object)return!0;if(!xN(n))return!1;let r=lN.get(n);return r===void 0&&(r=Function.toString.call(n),lN.set(n,r)),r===cN}function dN(e,t,n=!0){fN(e)===0?(n?Reflect.ownKeys(e):QM.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function fN(e){let t=e[XM];return t?t.type_:_N(e)?1:vN(e)?2:yN(e)?3:0}var pN=(e,t,n=fN(e))=>n===2?e.has(t):QM[tN].hasOwnProperty.call(e,t),mN=(e,t,n=fN(e))=>n===2?e.get(t):e[t],hN=(e,t,n,r=fN(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function gN(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var _N=Array.isArray,vN=e=>e instanceof Map,yN=e=>e instanceof Set,bN=e=>typeof e==`object`,xN=e=>typeof e==`function`,SN=e=>typeof e==`boolean`;function CN(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var wN=e=>e.copy_||e.base_,TN=e=>e.modified_?e.copy_:e.base_;function EN(e,t){if(vN(e))return new Map(e);if(yN(e))return new Set(e);if(_N(e))return Array[tN].slice.call(e);let n=uN(e);if(t===!0||t===`class_only`&&!n){let t=QM.getOwnPropertyDescriptors(e);delete t[XM];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[iN]===!1&&(a[iN]=!0,a[nN]=!0),(a.get||a.set)&&(t[i]={[nN]:!0,[iN]:!0,[rN]:a[rN],[aN]:e[i]})}return QM.create($M(e),t)}{let t=$M(e);if(t!==null&&n)return{...e};let r=QM.create(t);return QM.assign(r,e)}}function DN(e,t=!1){return AN(e)||oN(e)||!sN(e)||(fN(e)>1&&QM.defineProperties(e,{set:kN,add:kN,clear:kN,delete:kN}),QM.freeze(e),t&&dN(e,(e,t)=>{DN(t,!0)},!1)),e}function ON(){ZM(2)}var kN={[aN]:ON};function AN(e){return e===null||!bN(e)||QM.isFrozen(e)}var jN=`MapSet`,MN=`Patches`,NN=`ArrayMethods`,PN={};function FN(e){let t=PN[e];return t||ZM(0,e),t}var IN=e=>!!PN[e],LN,RN=()=>LN,zN=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:IN(jN)?FN(jN):void 0,arrayMethodsPlugin_:IN(NN)?FN(NN):void 0});function BN(e,t){t&&(e.patchPlugin_=FN(MN),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VN(e){HN(e),e.drafts_.forEach(WN),e.drafts_=null}function HN(e){e===LN&&(LN=e.parent_)}var UN=e=>LN=zN(LN,e);function WN(e){let t=e[XM];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function GN(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[XM].modified_&&(VN(t),ZM(4)),sN(e)&&(e=KN(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[XM].base_,e,t)}else e=KN(t,n);return qN(t,e,!0),VN(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===JM?void 0:e}function KN(e,t){if(AN(t))return t;let n=t[XM];if(!n)return tP(t,e.handledSet_,e);if(!YN(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);$N(n,e)}return n.copy_}function qN(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DN(t,n)}function JN(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var YN=(e,t)=>e.scope_===t,XN=[];function ZN(e,t,n,r){let i=wN(e),a=e.type_;if(r!==void 0&&mN(i,r,a)===t){hN(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;dN(i,(e,n)=>{if(oN(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??XN;for(let e of o)hN(i,e,n,a)}function QN(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!YN(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=TN(i);ZN(e,i.draft_??i,a,n),$N(i,r)})}function $N(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}JN(e)}}function eP(e,t,n){let{scope_:r}=e;if(oN(n)){let i=n[XM];YN(i,r)&&i.callbacks_.push(function(){uP(e),ZN(e,n,TN(i),t)})}else sN(n)&&e.callbacks_.push(function(){let i=wN(e);e.type_===3?i.has(n)&&tP(n,r.handledSet_,r):mN(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&tP(mN(e.copy_,t,e.type_),r.handledSet_,r)})}function tP(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||oN(e)||t.has(e)||!sN(e)||AN(e)||(t.add(e),dN(e,(r,i)=>{if(oN(i)){let t=i[XM];YN(t,n)&&(hN(e,r,TN(t),e.type_),JN(t))}else sN(i)&&tP(i,t,n)})),e}function nP(e,t){let n=_N(e),r={type_:+!!n,scope_:t?t.scope_:RN(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=rP;n&&(i=[r],a=iP);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var rP={get(e,t){if(t===XM)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=wN(e);if(!pN(i,t,e.type_))return sP(e,i,t);let a=i[t];if(e.finalized_||!sN(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&CN(t))return a;if(a===aP(e.base_,t)||oP(e,t,a)){uP(e);let n=e.type_===1?+t:t,r=fP(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in wN(e)},ownKeys(e){return Reflect.ownKeys(wN(e))},set(e,t,n){let r=cP(wN(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=aP(wN(e),t),i=r?.[XM];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(gN(n,r)&&(n!==void 0||pN(e.base_,t,e.type_)))return!0;uP(e),lP(e)}return e.copy_[t]===n&&(n!==void 0||pN(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),eP(e,t,n)),!0},deleteProperty(e,t){return uP(e),aP(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),lP(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=wN(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[iN]:!0,[nN]:e.type_!==1||t!==`length`,[rN]:r[rN],[aN]:n[t]}},defineProperty(){ZM(11)},getPrototypeOf(e){return $M(e.base_)},setPrototypeOf(){ZM(12)}},iP={};for(let e in rP){let t=rP[e];iP[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}iP.deleteProperty=function(e,t){return iP.set.call(this,e,t,void 0)},iP.set=function(e,t,n){return rP.set.call(this,e[0],t,n,e[0])};function aP(e,t){let n=e[XM];return(n?wN(n):e)[t]}function oP(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||!sN(n)||n[XM]?!1:e.baseRefs_.has(n)}function sP(e,t,n){let r=cP(t,n);return r?aN in r?r[aN]:r.get?.call(e.draft_):void 0}function cP(e,t){if(!(t in e))return;let n=$M(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=$M(n)}}function lP(e){e.modified_||(e.modified_=!0,e.parent_&&lP(e.parent_))}function uP(e){e.copy_||=(e.assigned_=new Map,EN(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dP=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(xN(e)&&!xN(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}xN(t)||ZM(6),n!==void 0&&!xN(n)&&ZM(7);let r;if(sN(e)){let i=UN(this),a=fP(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?VN(i):HN(i)}return BN(i,n),GN(r,i)}if(!e||!bN(e)){if(r=t(e),r===void 0&&(r=e),r===JM&&(r=void 0),this.autoFreeze_&&DN(r,!0),n){let t=[],i=[];FN(MN).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}ZM(1,e)},this.produceWithPatches=(e,t)=>{if(xN(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},SN(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),SN(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),SN(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){sN(e)||ZM(8),oN(e)&&(e=pP(e));let t=UN(this),n=fP(t,e,void 0);return n[XM].isManual_=!0,HN(t),n}finishDraft(e,t){let n=e&&e[XM];n&&n.isManual_||ZM(9);let{scope_:r}=n;return BN(r,t),GN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=FN(MN).applyPatches_;return oN(e)?r(e,t):this.produce(e,e=>r(e,t))}};function fP(e,t,n,r){let[i,a]=vN(t)?FN(jN).proxyMap_(t,n):yN(t)?FN(jN).proxySet_(t,n):nP(t,n);return(n?.scope_??RN()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?QN(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function pP(e){return oN(e)||ZM(10,e),mP(e)}function mP(e){if(!sN(e)||AN(e))return e;let t=e[XM],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=EN(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=EN(e,!0);let i=n;return yN(n)&&(n=new Set),dN(i,(e,t)=>{hN(n,e,mP(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var hP=new dP().produce,gP=e=>(t,n,r)=>(r.setState=(e,n,...r)=>t(typeof e==`function`?hP(e):e,n,...r),e(r.setState,n,r));function _P(e,t){let{name:n,persist:r,devtools:i=!0}=t,a=i&&typeof window<`u`,o=r?{name:`prism-${n}`,...typeof r==`object`?r:{}}:null,s={name:`Prism:${n}`};return o&&a?PM()(UM(qM(gP(e),o),s)):o?PM()(qM(gP(e),o)):a?PM()(UM(gP(e),s)):PM()(gP(e))}function vP(e,t){return _P(e,{name:t,persist:!1})}function yP(e,t){if(!e||typeof e!=`object`)return t;let n=e,r={...t};for(let[e,t]of Object.entries(n)){if(!(e in r))continue;let n=r[e];typeof n!=`function`&&(n==null||t!=null&&typeof t==typeof n&&Array.isArray(t)===Array.isArray(n))&&(r[e]=t)}return r}function bP(e,t,n){return _P(e,{name:t,persist:{version:1,migrate:e=>e,merge:(e,t)=>yP(e,t),storage:{getItem:e=>{try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},setItem:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},removeItem:e=>{try{localStorage.removeItem(e)}catch{}}},...n}})}function xP(e){let t=e;return t.use=new Proxy({},{get:(t,n)=>{if(typeof n==`string`)return()=>e(e=>e[n])}}),t}var SP={mode:`light`,preset:`default-light`,primaryColor:null,contrast:`default`,direction:`ltr`,fontSize:16,fontFamily:null,density:`standard`,compactSidebar:!1,sidebarCollapsed:{},navLayout:`vertical`,navColor:`integrate`,stretch:!0,tableRowsPerPage:{}},CP=bP((e,t)=>({...SP,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setPreset:t=>e({preset:t}),setPrimaryColor:t=>e({primaryColor:t}),setContrast:t=>e({contrast:t}),setDirection:t=>e({direction:t}),setFontSize:t=>e({fontSize:Math.min(20,Math.max(12,t))}),setFontFamily:t=>e({fontFamily:t}),setDensity:t=>e({density:t}),setCompactSidebar:t=>e({compactSidebar:t}),setSidebarCollapsed:(t,n)=>e(e=>{e.sidebarCollapsed={...e.sidebarCollapsed,[t]:n}}),getSidebarCollapsed:e=>t().sidebarCollapsed[e]??!1,setNavLayout:t=>e({navLayout:t}),setNavColor:t=>e({navColor:t}),setStretch:t=>e({stretch:t}),setTableRowsPerPage:(t,n)=>e(e=>{e.tableRowsPerPage={...e.tableRowsPerPage,[t]:n}}),getTableRowsPerPage:(e,n=25)=>t().tableRowsPerPage[e]??n,updateSettings:t=>e(t),reset:()=>e(SP),canReset:()=>{let e=t();return Object.keys(SP).some(t=>e[t]!==SP[t])}}),`settings`);xP(CP);function wP(e,t){return t?{...e,...t,paths:{...e.paths,...t.paths},registries:{...e.registries,...t.registries},theme:{...e.theme,...t.theme},style:{...e.style,...t.style},features:{...e.features,...t.features}}:e}var TP=()=>{};function EP({children:e,config:t,defaultSettings:n,disableCssBaseline:r=!1,themeOverrides:i,dateAdapterLocale:a,dateLocaleText:o}){let s=(0,S.useMemo)(()=>wP(jte,t),[t]),{mode:c,preset:l,direction:u,primaryColor:d,contrast:f,compactSidebar:p,fontSize:m,fontFamily:h,navLayout:g,navColor:_,setMode:v,toggleMode:y,setPreset:b,setDirection:x,setCompactSidebar:C,reset:w}=CP();(0,S.useEffect)(()=>{n?.mode&&v(n.mode),n?.preset&&b(n.preset),n?.direction&&x(n.direction)},[]);let T=(0,S.useMemo)(()=>({mode:c,preset:l,direction:u,sidebarCollapsed:p,settingsDrawerOpen:!1,primaryColor:d,contrast:f,fontSize:m,fontFamily:h??`Public Sans Variable`,navLayout:g,navColor:_}),[c,l,u,p,d,f,m,h,g,_]),E=(0,S.useCallback)(()=>{let e=CP.getState().compactSidebar;C(!e)},[C]),D=(0,S.useMemo)(()=>si(u===`rtl`?{key:`prism-rtl`,stylisPlugins:[JT]}:{key:`prism-ltr`}),[u]);(0,S.useEffect)(()=>{typeof document<`u`&&(document.documentElement.dir=u)},[u]),(0,S.useEffect)(()=>{typeof document<`u`&&(m&&m!==16?document.documentElement.style.fontSize=`${m}px`:document.documentElement.style.removeProperty(`font-size`))},[m]);let O=OM(c),k=(0,S.useMemo)(()=>Qw({preset:l,mode:O,direction:u,primaryColor:d||s.theme.primaryColor,typography:s.theme.typography,cssVariables:s.theme.cssVariables,components:s.theme.components,contrast:f,fontFamily:h,fontSize:m,overrides:typeof i==`function`?i({mode:O}):i}),[l,O,u,d,f,m,h,s.theme,i]),A=(0,S.useMemo)(()=>({config:s,theme:k,settings:T,setMode:v,toggleMode:y,setPreset:b,setDirection:x,toggleSidebar:E,setSidebarCollapsed:C,resetSettings:w,openSettingsDrawer:TP,closeSettingsDrawer:TP,toggleSettingsDrawer:TP}),[s,k,T,v,y,b,x,E,C,w]);return(0,R.jsx)(Mi,{value:D,children:(0,R.jsx)(YT.Provider,{value:A,children:(0,R.jsx)(cf,{theme:k,children:(0,R.jsxs)(fT,{dateAdapter:mte,adapterLocale:a,localeText:o,children:[!r&&(0,R.jsx)(oT,{}),e]})})})})}function DP({href:e,children:t,sx:n}){return(0,R.jsx)(Z,{component:`a`,href:e,sx:[e=>({position:`absolute`,top:`-100%`,left:0,right:0,zIndex:e.zIndex.tooltip+1,padding:e.spacing(1,2),backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:`center`,textDecoration:`none`,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.body2.fontSize,"&:focus":{top:0,outline:`2px solid ${e.palette.primary.dark}`,outlineOffset:2}}),...Array.isArray(n)?n:[n]],children:t})}var OP={mainNav:`Main navigation`,secondaryNav:`Secondary navigation`,search:`Search`,main:`Main content`,header:`Header`,footer:`Footer`,sidebar:`Sidebar`,breadcrumb:`Breadcrumb navigation`,userMenu:`User menu`,settings:`Settings`},kP=G(ny)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),AP=G(vj)(({theme:e})=>({backgroundColor:H(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,fontSize:e.typography.pxToRem(13),color:e.palette.text.secondary,backgroundColor:`transparent`,whiteSpace:`nowrap`,borderBottom:`1px solid ${e.palette.divider}`}})),jP=G(uy)(({theme:e})=>({transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:nth-child(even)":{backgroundColor:H(e.palette.grey[500],.02)},"&:hover":{backgroundColor:H(e.palette.primary.main,.04)},"& .MuiTableCell-body":{borderBottom:`1px solid ${H(e.palette.divider,.6)}`}})),MP=new Set;function NP({columns:e,data:t,total:n,loading:r=!1,loadingRows:i=5,page:a,pageSize:o,onPageChange:s,onPageSizeChange:c,sortBy:l,sortOrder:u=`asc`,onSort:d,emptyMessage:f=`No data found`,loadError:p=null,loadErrorLabels:m,rowKey:h,onRowClick:g,rowSx:_,renderExpanded:v,pageSizeOptions:y=[10,25,50,100],stickyHeader:b=!1,dense:x=!1,maxHeight:C,paginationLabels:w,sx:T,selectable:E=!1,selectedKeys:D,onSelectionChange:O,bulkActions:k}){let A=(0,S.useCallback)((e,t)=>{if(h)return h(e);let n=e;return n.id===void 0?String(t):String(n.id)},[h,E]),j=D??MP,M=(0,S.useMemo)(()=>E?t.map((e,t)=>A(e,t)):[],[E,t,A]),N=M.length>0&&M.every(e=>j.has(e)),P=!N&&M.some(e=>j.has(e)),F=(0,S.useCallback)(()=>{if(!O)return;let e=new Set(j);N?M.forEach(t=>e.delete(t)):M.forEach(t=>e.add(t)),O(e)},[O,j,N,M]),ee=(0,S.useCallback)(e=>{if(!O)return;let t=new Set(j);t.has(e)?t.delete(e):t.add(e),O(t)},[O,j]),te=(0,S.useCallback)(e=>{d?.(e)},[d]),ne=(0,S.useCallback)((e,t)=>{s(t)},[s]),re=(0,S.useCallback)(e=>{c?.(parseInt(e.target.value,10)),s(0)},[c,s]),ie=Math.max(1,Math.min(o,i)),ae=(0,S.useMemo)(()=>Array.from({length:ie},(t,n)=>(0,R.jsxs)(uy,{children:[E&&(0,R.jsx)(gy,{padding:`checkbox`,children:(0,R.jsx)(tA,{variant:`rectangular`,width:18,height:18,sx:{borderRadius:.5}})}),e.map(e=>(0,R.jsx)(gy,{align:e.align??`left`,children:(0,R.jsx)(tA,{variant:`text`,width:e.align===`right`?`60%`:`80%`,sx:{ml:e.align===`right`?`auto`:0,borderRadius:.5}})},e.key))]},`skeleton-${n}`)),[ie,e,E]),oe=E&&j.size>0&&!!k;return!r&&t.length===0?(0,R.jsxs)(kP,{sx:T,children:[(0,R.jsx)(nj,{size:x?`small`:`medium`,stickyHeader:b,children:(0,R.jsx)(AP,{children:(0,R.jsxs)(uy,{children:[E&&(0,R.jsx)(gy,{padding:`checkbox`}),e.map(e=>(0,R.jsx)(gy,{align:e.align??`left`,style:{width:e.width},children:e.header},e.key))]})})}),(0,R.jsxs)(Z,{sx:{py:6,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1.5},children:[(0,R.jsx)(bm,{}),(0,R.jsx)(Nb,{variant:`body2`,sx:{color:p?`text.secondary`:`text.disabled`},children:p?m?.empty??`Could not load this data`:f}),p&&(0,R.jsx)(Nb,{variant:`caption`,sx:{color:`text.disabled`,maxWidth:420,textAlign:`center`},children:p})]})]}):(0,R.jsxs)(kP,{sx:{maxHeight:C,...T},children:[p&&(0,R.jsxs)(Z,{role:`status`,sx:{display:`flex`,alignItems:`center`,gap:1,px:2,py:1,borderBottom:1,borderColor:`divider`,bgcolor:e=>H(e.palette.warning.main,.12)},children:[(0,R.jsx)(Nb,{variant:`body2`,sx:{color:`warning.dark`,fontWeight:600},children:m?.partial??`Some of this data could not be loaded`}),(0,R.jsx)(Nb,{variant:`caption`,sx:{color:`text.secondary`},children:p})]}),oe&&(0,R.jsxs)(TA,{direction:`row`,spacing:2,sx:{alignItems:`center`,px:2,py:1,borderBottom:e=>`1px solid ${e.palette.divider}`,bgcolor:e=>H(e.palette.primary.main,.06)},children:[(0,R.jsxs)(Nb,{variant:`body2`,sx:{fontWeight:600},children:[j.size,` selected`]}),(0,R.jsx)(Z,{sx:{flex:1}}),k(j)]}),(0,R.jsx)(fj,{children:(0,R.jsxs)(nj,{size:x?`small`:`medium`,stickyHeader:b,children:[(0,R.jsx)(AP,{children:(0,R.jsxs)(uy,{children:[E&&(0,R.jsx)(gy,{padding:`checkbox`,children:(0,R.jsx)(wx,{size:`small`,indeterminate:P,checked:N,disabled:r||M.length===0,onChange:F,slotProps:{input:{"aria-label":`select all rows on page`}}})}),e.map(e=>(0,R.jsx)(gy,{align:e.align??`left`,style:{width:e.width},sortDirection:l===e.key&&u,children:e.sortable&&d?(0,R.jsx)(eM,{active:l===e.key,direction:l===e.key?u:`asc`,onClick:()=>te(e.key),children:e.header}):e.header},e.key))]})}),(0,R.jsx)(cj,{children:r?ae:t.map((t,n)=>{let r=A(t,n),i=E&&j.has(r),a=(0,R.jsxs)(jP,{hover:!0,selected:i,onClick:g?()=>g(t):void 0,sx:{cursor:g?`pointer`:`default`,..._?.(t,n)},children:[E&&(0,R.jsx)(gy,{padding:`checkbox`,onClick:e=>e.stopPropagation(),children:(0,R.jsx)(wx,{size:`small`,checked:i,onChange:()=>ee(r),slotProps:{input:{"aria-label":`select row`}}})}),e.map(e=>(0,R.jsx)(gy,{align:e.align??`left`,children:e.render(t,n)},e.key))]},r),o=v?.(t,n);return o==null?a:(0,R.jsxs)(S.Fragment,{children:[a,(0,R.jsx)(uy,{children:(0,R.jsx)(gy,{colSpan:e.length+ +!!E,sx:{py:0,borderBottom:0},children:o})})]},`${r}-group`)})})]})}),(0,R.jsx)(qj,{component:`div`,count:n,page:a,rowsPerPage:o,rowsPerPageOptions:y,onPageChange:ne,onRowsPerPageChange:re,...w?.rowsPerPage!=null&&{labelRowsPerPage:w.rowsPerPage},...w?.displayedRows!=null&&{labelDisplayedRows:w.displayedRows},sx:{borderTop:e=>`1px solid ${e.palette.divider}`,"& .MuiTablePagination-displayedRows":{fontSize:`0.8rem`},"& .MuiTablePagination-selectLabel":{fontSize:`0.8rem`}}})]})}Object.freeze(Object.assign(Object.create(null),{btc:8,xmr:8})),Object.freeze(Object.assign(Object.create(null),{btc:8,xmr:12})),G(`span`)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,flexShrink:0,boxShadow:`inset 0 0 0 1px ${e.palette.divider}`})),G(`img`)({width:`100%`,height:`100%`,display:`block`,objectFit:`cover`}),G(`span`)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,color:e.palette.text.disabled,backgroundColor:e.palette.mode===`dark`?e.palette.action.hover:e.palette.action.selected,boxShadow:`inset 0 0 0 1px ${e.palette.divider}`}));var PP=(0,S.createContext)({}),FP=(0,S.createContext)(null);function IP(e,t){e.indexOf(t)===-1&&e.push(t)}function LP(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var RP=(e,t,n)=>n>t?t:n<e?e:n,zP={},BP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),VP=e=>typeof e==`object`&&!!e,HP=e=>/^0[^.\s]+$/u.test(e);function UP(e){let t;return()=>(t===void 0&&(t=e()),t)}var WP=e=>e,GP=(...e)=>e.reduce((e,t)=>n=>t(e(n))),KP=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},qP=class{constructor(){this.subscriptions=[]}add(e){return IP(this.subscriptions,e),()=>this.remove(e)}remove(e){LP(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},JP=e=>e*1e3,YP=e=>e/1e3,XP=(e,t)=>t?1e3/t*e:0,ZP=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function QP(e,t,n,r){return e===t&&n===r?WP:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ZP(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ZP(s+1e-7,e,n)-i-r)}return ZP(s,t,r)}}var $P=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eF=e=>t=>1-e(1-t),tF=QP(.33,1.53,.69,.99),nF=eF(tF),rF=$P(nF),iF=e=>e>=1?1:(e*=2)<1?.5*nF(e):.5*(2-2**(-10*(e-1))),aF=e=>1-Math.sin(Math.acos(e)),oF=eF(aF),sF=$P(aF),cF=QP(.42,0,1,1),lF=QP(0,0,.58,1),uF=QP(.42,0,.58,1),dF=e=>Array.isArray(e)&&typeof e[0]!=`number`,fF=e=>Array.isArray(e)&&typeof e[0]==`number`,pF={linear:WP,easeIn:cF,easeInOut:uF,easeOut:lF,circIn:aF,circInOut:sF,circOut:oF,backIn:nF,backInOut:rF,backOut:tF,anticipate:iF},mF=e=>typeof e==`string`,hF=e=>{if(fF(e)){e.length;let[t,n,r,i]=e;return QP(t,n,r,i)}return mF(e)?(pF[e],`${e}`,pF[e]):e},gF={delta:0,timestamp:0,isProcessing:!1},_F;function vF(){_F=void 0}var yF={now:()=>(_F===void 0&&yF.set(gF.isProcessing||zP.useManualTiming?gF.timestamp:performance.now()),_F),set:e=>{_F=e,queueMicrotask(vF)}},bF=e=>Math.round(e*1e5)/1e5,xF=e=>t=>typeof t==`string`&&t.startsWith(e),SF=xF(`--`),CF=xF(`var(--`),wF=e=>CF(e)?TF.test(e.split(`/*`)[0].trim()):!1,TF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function EF(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var DF={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},OF={...DF,transform:e=>RP(0,1,e)},kF={...DF,default:1},AF=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jF(e){return e==null}var MF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,NF=(e,t)=>n=>!!(typeof n==`string`&&MF.test(n)&&n.startsWith(e)||t&&!jF(n)&&Object.prototype.hasOwnProperty.call(n,t)),PF=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(AF);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},FF=e=>RP(0,255,e),IF={...DF,transform:e=>Math.round(FF(e))},LF={test:NF(`rgb`,`red`),parse:PF(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+IF.transform(e)+`, `+IF.transform(t)+`, `+IF.transform(n)+`, `+bF(OF.transform(r))+`)`};function RF(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var zF={test:NF(`#`),parse:RF,transform:LF.transform},BF=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),VF=BF(`deg`),HF=BF(`%`),UF=BF(`px`),WF=BF(`vh`),GF=BF(`vw`),KF={...HF,parse:e=>HF.parse(e)/100,transform:e=>HF.transform(e*100)},qF={test:NF(`hsl`,`hue`),parse:PF(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+HF.transform(bF(t))+`, `+HF.transform(bF(n))+`, `+bF(OF.transform(r))+`)`},JF={test:e=>LF.test(e)||zF.test(e)||qF.test(e),parse:e=>LF.test(e)?LF.parse(e):qF.test(e)?qF.parse(e):zF.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?LF.transform(e):qF.transform(e),getAnimatableNone:e=>{let t=JF.parse(e);return t.alpha=0,JF.transform(t)}},YF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,XF=new RegExp(AF.source),ZF=new RegExp(YF.source,`i`);function QF(e){return isNaN(e)&&typeof e==`string`&&(XF.test(e)||ZF.test(e))}var $F=`number`,eI=`color`,tI=`var`,nI=`var(`,rI="${}",iI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function aI(e){let t=e.toString();return XF.test(t)||ZF.test(t)}function oI(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(iI,e=>(JF.test(e)?(r.color.push(a),i.push(eI),n.push(JF.parse(e))):e.startsWith(nI)?(r.var.push(a),i.push(tI),n.push(e)):(r.number.push(a),i.push($F),n.push(parseFloat(e))),++a,rI)).split(rI),indexes:r,types:i}}function sI(e){return oI(e).values}function cI({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===$F?bF(r[a]):e===eI?JF.transform(r[a]):r[a]}return i}}function lI(e){return cI(oI(e))}var uI=e=>typeof e==`number`?0:JF.test(e)?JF.getAnimatableNone(e):e,dI=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:uI(e);function fI(e){let t=oI(e);return cI(t)(t.values.map((e,n)=>dI(e,t.split[n])))}var pI={test:QF,parse:sI,createTransformer:lI,getAnimatableNone:fI};function mI(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=mI(s,r,e+1/3),a=mI(s,r,e),o=mI(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function gI(e,t){return n=>n>0?t:e}var _I=(e,t,n)=>e+(t-e)*n,vI=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yI=[zF,LF,qF],bI=e=>yI.find(t=>t.test(e));function xI(e){let t=bI(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===qF&&(n=hI(n)),n}var SI=(e,t)=>{let n=xI(e),r=xI(t);if(!n||!r)return gI(e,t);let i={...n};return e=>(i.red=vI(n.red,r.red,e),i.green=vI(n.green,r.green,e),i.blue=vI(n.blue,r.blue,e),i.alpha=_I(n.alpha,r.alpha,e),LF.transform(i))},CI=new Set([`none`,`hidden`]);function wI(e,t){return CI.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TI(e,t){return n=>_I(e,t,n)}function EI(e){return typeof e==`number`?TI:typeof e==`string`?wF(e)?gI:JF.test(e)?SI:AI:Array.isArray(e)?DI:typeof e==`object`?JF.test(e)?SI:OI:gI}function DI(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>EI(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function OI(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=EI(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function kI(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var AI=(e,t)=>{let n=pI.createTransformer(t),r=oI(e),i=oI(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?CI.has(e)&&!i.values.length||CI.has(t)&&!r.values.length?wI(e,t):GP(DI(kI(r,i),i.values),n):(`${e}${t}`,gI(e,t))},jI=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function MI(e,t){let n=jI.exec(e);if(!n)return;let r=jI.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>bF(_I(a,o,e))+i}function NI(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return _I(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=MI(e,t);if(n)return n}return EI(e)(e,t)}var PI=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ere(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var tre=40;function FI(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=PI.reduce((e,t)=>(e[t]=ere(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=zP.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,tre),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:PI.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<PI.length;t++)o[PI[t]].cancel(e)},state:n,steps:o}}var{schedule:II,cancel:LI,steps:RI}=FI(typeof requestAnimationFrame<`u`?requestAnimationFrame:WP,!0,gF),zI=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>II.update(t,e),stop:()=>LI(t),now:()=>gF.isProcessing?gF.timestamp:yF.now()}},BI=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},VI=2e4;function HI(e,t=50,n=VI,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function nre(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(HI(o),VI);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:YP(s)}}var UI={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},WI=e=>e<0?1/Math.max(1+e,UI.minDamping):Math.max(1-e,UI.minDamping);function GI(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return qI(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function KI(e,t){return e*Math.sqrt(1-t*t)}var rre=12;function qI(e,t,n){let r=n;for(let n=1;n<rre;n++)r-=e(r)/t(r);return r}var JI=.001;function ire({duration:e=UI.duration,bounce:t=UI.bounce}){let n,r;UI.maxDuration;let i=WI(t);e=RP(UI.minDuration,UI.maxDuration,YP(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=KI(t,i),o=Math.exp(-r);return JI-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=KI(t*t,i);return(-n(t)+JI>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=qI(n,r,a),s=o*GI(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:JP(e)}}var YI=(e,t)=>(t?e>=0:e>0)&&e<1/0;function XI(e,t){if(YI(e,t))return e}function are(e){let t=XI(e.stiffness),n=XI(e.damping,!0),r=XI(e.mass),i={...e,stiffness:t??UI.stiffness,damping:n??UI.damping,mass:r??UI.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=WI(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*GI(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,ire(i)),i.isResolvedFromDuration=!0;YI(i.stiffness)&&YI(i.damping,!0)||(i.stiffness=UI.stiffness,i.damping=UI.damping)}return i}function ZI(e=UI.visualDuration,t=UI.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=are({...n}),f=e=>d?0:-YP(e),p=s/(2*Math.sqrt(o*c)),m=YP(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?UI.restSpeed.granular:UI.restSpeed.default),g.restDelta=n.restDelta||(e?UI.restDelta.granular:UI.restDelta.default)};_();let v,y,b;if(p<1){let e=KI(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>JP(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=JP(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(HI(S),VI),t=BI(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var QI=Object.assign(ZI,{applyToOptions:e=>{let t=nre(e,100,ZI);return e.ease=t.ease,e.duration=JP(t.duration),e.type=`keyframes`,e}});function $I({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=QI({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function ore(e,t,n){let r=[],i=n||zP.mix||NI,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=GP(Array.isArray(t)?t[n]||WP:t,a)),r.push(a)}return r}function sre(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ore(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=KP(e[r],e[r+1],n);return s[r](i)};return n?t=>l(RP(e[0],e[a-1],t)):l}function cre(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=KP(0,t,r);e.push(_I(n,1,i))}}function eL(e){let t=[0];return cre(t,e.length-1),t}function lre(e,t){return e.map(e=>e*t)}function ure(e,t){return e.map(()=>t||uF).splice(0,e.length-1)}function tL({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=dF(r)?r.map(hF):hF(r)||uF,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(zP.mix||NI)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?RP(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=sre(lre(n&&n.length===t.length?n:eL(t),e),t,{ease:Array.isArray(i)?i:ure(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var dre=5;function fre(e,t,n){let r=Math.max(t-dre,0);return XP(n-e(r),t-r)}function pre(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):fre(t=>e.next(t).value,t,e.next(t).value)}var mre=e=>e!==null;function nL(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(mre),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hre={decay:$I,inertia:$I,tween:tL,keyframes:tL,spring:QI};function rL(e){typeof e.type==`string`&&(e.type=hre[e.type])}var gre=40,iL=(e,t)=>t-e>gre&&!zP.useManualTiming?t:e;function aL(e,t){return{kind:e,animation:t,timestamp:yF.now(),frameTimestamp:gF.timestamp,frameIsProcessing:gF.isProcessing}}function oL(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...aL(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function _re(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...aL(`layout-animation-start`,e),node:t})}catch{}}var sL=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},vre=e=>e/100,cL=e=>Math.round(e*1e4)/1e4,lL=class extends sL{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==yF.now()&&this.tick(yF.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),oL(this,this.options)}initAnimation(){let{options:e}=this;rL(e);let{type:t=tL,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||tL;s!==tL&&typeof o[0]!=`number`&&(this.mixKeyframes=GP(vre,NI(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=HI(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=iL(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==$I&&(f.value=nL(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??cL((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==$I?nL(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=RP(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return YP(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+YP(e)}get time(){return YP(this.currentTime)}set time(e){e=JP(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return pre(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(yF.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=YP(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=zI,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(yF.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},yre=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function bre(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(AF)||[];if(!r)return e;let i=n.replace(r,``),a=+!!yre.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var xre=/\b([a-z-]*)\(.*?\)/gu,uL={...pI,getAnimatableNone:e=>{let t=e.match(xre);return t?t.map(bre).join(` `):e}},dL={...pI,getAnimatableNone:e=>{let t=pI.parse(e);return pI.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},fL={...DF,transform:Math.round},pL={borderWidth:UF,borderTopWidth:UF,borderRightWidth:UF,borderBottomWidth:UF,borderLeftWidth:UF,borderRadius:UF,borderTopLeftRadius:UF,borderTopRightRadius:UF,borderBottomRightRadius:UF,borderBottomLeftRadius:UF,width:UF,maxWidth:UF,height:UF,maxHeight:UF,top:UF,right:UF,bottom:UF,left:UF,inset:UF,insetBlock:UF,insetBlockStart:UF,insetBlockEnd:UF,insetInline:UF,insetInlineStart:UF,insetInlineEnd:UF,padding:UF,paddingTop:UF,paddingRight:UF,paddingBottom:UF,paddingLeft:UF,paddingBlock:UF,paddingBlockStart:UF,paddingBlockEnd:UF,paddingInline:UF,paddingInlineStart:UF,paddingInlineEnd:UF,margin:UF,marginTop:UF,marginRight:UF,marginBottom:UF,marginLeft:UF,marginBlock:UF,marginBlockStart:UF,marginBlockEnd:UF,marginInline:UF,marginInlineStart:UF,marginInlineEnd:UF,fontSize:UF,backgroundPositionX:UF,backgroundPositionY:UF,rotate:VF,pathRotation:VF,rotateX:VF,rotateY:VF,rotateZ:VF,scale:kF,scaleX:kF,scaleY:kF,scaleZ:kF,skew:VF,skewX:VF,skewY:VF,distance:UF,translateX:UF,translateY:UF,translateZ:UF,x:UF,y:UF,z:UF,perspective:UF,transformPerspective:UF,opacity:OF,originX:KF,originY:KF,originZ:UF,zIndex:fL,fillOpacity:OF,strokeOpacity:OF,numOctaves:fL},Sre={...pL,color:JF,backgroundColor:JF,outlineColor:JF,fill:JF,stroke:JF,borderColor:JF,borderTopColor:JF,borderRightColor:JF,borderBottomColor:JF,borderLeftColor:JF,filter:uL,WebkitFilter:uL,mask:dL,WebkitMask:dL},mL=e=>Sre[e],Cre=new Set([uL,dL]);function hL(e,t){let n=mL(e);return Cre.has(n)||(n=pI),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function wre(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var gL=e=>e*180/Math.PI,_L=e=>vL(gL(Math.atan2(e[1],e[0]))),Tre={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_L,rotateZ:_L,skewX:e=>gL(Math.atan(e[1])),skewY:e=>gL(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vL=e=>(e%=360,e<0&&(e+=360),e),yL=_L,bL=e=>Math.hypot(e[0],e[1]),xL=e=>Math.hypot(e[4],e[5]),Ere={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bL,scaleY:xL,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(bL(e)+xL(e))/2,rotateX:e=>vL(gL(Math.atan2(e[6],e[5]))),rotateY:e=>vL(gL(Math.atan2(-e[2],e[0]))),rotateZ:yL,rotate:yL,skewX:e=>gL(Math.atan(e[4])),skewY:e=>gL(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function SL(e){return+!!e.includes(`scale`)}function CL(e,t){if(!e||e===`none`)return SL(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ere,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tre,i=t}if(!i)return SL(t);let a=r[t],o=i[1].split(`,`).map(Ore);return typeof a==`function`?a(o):o[a]}var Dre=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return CL(n,t)};function Ore(e){return parseFloat(e.trim())}var wL=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],TL=new Set([...wL,`pathRotation`]),EL=e=>e===DF||e===UF,kre=new Set([`x`,`y`,`z`]),Are=wL.filter(e=>!kre.has(e));function jre(e){let t=[];return Are.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Mre=new Set([`bottom`,`right`]);function DL(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var OL=({transform:e})=>CL(e,`x`),kL=({transform:e})=>CL(e,`y`),AL={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>DL(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>DL(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:OL,y:kL,translateX:OL,translateY:kL},jL=new Set,ML=!1,NL=!1,PL=!1;function FL(){if(NL){let e=[],t=new Set,n=new Set;jL.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Mre.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=jre(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}NL=!1,ML=!1,jL.forEach(e=>e.complete(PL)),jL.clear()}function IL(){jL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(NL=!0)})}function Nre(){PL=!0,IL(),FL(),PL=!1}function Pre(e,t,n){if(typeof e==`string`){if(BP(e)||HP(e))return parseFloat(e);if(!pI.test(e)&&pI.test(n))return hL(t,n)}return e??void 0}var LL=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(jL.add(this),ML||(ML=!0,II.read(IL),II.resolveKeyframes(FL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Pre(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}wre(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),jL.delete(this)}cancel(){this.state===`scheduled`&&(jL.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Fre=e=>e.startsWith(`--`);function RL(e,t,n){Fre(t)?e.style.setProperty(t,n):e.style[t]=n}var Ire={};function zL(e,t){let n=UP(e);return()=>Ire[t]??n()}var Lre=zL(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),BL=zL(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),VL=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,HL={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:VL([0,.65,.55,1]),circOut:VL([.55,0,1,.45]),backIn:VL([.31,.01,.66,-.59]),backOut:VL([.33,1.53,.69,.99])};function UL(e,t){if(e)return typeof e==`function`?BL()?BI(e,t):`ease-out`:fF(e)?VL(e):Array.isArray(e)?e.map(e=>UL(e,t)||HL.easeOut):HL[e]}function Rre(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=UL(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function WL(e){return typeof e==`function`&&`applyToOptions`in e}function zre({type:e,...t}){return WL(e)&&BL()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var GL=class extends sL{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=zre(e);this.animation=Rre(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=nL(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),RL(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},oL(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return YP(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+YP(e)}get time(){return YP(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=JP(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Lre()?(this.animation.timeline=e,t?.(this.animation),WP):n(this)}},KL={anticipate:iF,backInOut:rF,circInOut:sF};function Bre(e){return e in KL}function Vre(e){typeof e.ease==`string`&&Bre(e.ease)&&(e.ease=KL[e.ease])}var Hre=class extends GL{constructor(e){Vre(e),rL(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(yF.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new lL({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?RP(0,10,a):0,s=this.sample(a);n&&r&&RL(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},qL=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(pI.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ure(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Wre(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=qL(i,t),s=qL(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Ure(e)||(n===`spring`||WL(n))&&r}function JL(e){e.duration=0,e.type=`keyframes`}var YL=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Gre=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Kre(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Gre.test(e[t]))return!0;return!1}var XL=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ZL=()=>!zP.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function qre(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(YL.has(n)||XL.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ZL()&&(YL.has(n)||XL.has(n)&&Kre(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var QL=(e,t)=>t&&typeof e==`number`?t.transform(e):e,$L={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Jre=wL.length;function eR(e,t,n){let r=``,i=!0;for(let a=0;a<Jre;a++){let o=wL[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=QL(s,pL[o]);if(!c){i=!1;let t=$L[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${QL(a,pL.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var tR=new WeakMap,Yre=200,nR=.001,Xre=.1,Zre=.001,Qre=100,$re=e=>/^(linear|ease(In|Out|InOut))$/.test(e),rR=(e,t)=>e-t,iR=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(_I(e,t,i/n));return r},aR=e=>e.motionValue.owner,oR=e=>tR.get(e),sR=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),eie=({name:e,motionValue:t})=>e&&wL.includes(e)&&t?.owner?.current instanceof HTMLElement&&ZL()&&BL();function tie(e){let t=aR(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(sR(t,`transform`)||`none`)===`none`&&!sR(t,`pathRotation`)&&!t.projection?.isProjecting()}var nie=class extends lL{constructor(e){let t=aR(e).current,{driver:n=zI}=e,r,i=tie(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=oR(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=oR(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return oR(aR(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(yF.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=fF(n)?VL(n):$re(n)&&HL[n];if(o&&!i&&!r&&e.length===2&&t===tL&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||tL)===tL?u||eL(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=yF.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||rie(aR(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(yF.now())}get time(){return this.isAccelerated()?YP(RP(0,this.totalDuration,this.at(yF.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function rie(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?wL:a){let a=r.get(s),c=t===void 0?sR(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=($L[e]||e)+`(`+QL(r[e],pL[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=eR(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=yF.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Yre,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=iR(t,n,i).concat(r).sort(rR),o=e=>KP(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*nR>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=nR)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=nR)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=nR))return`linear`;let l=[],u=(e,t=c(e))=>l.push(cL(t)+` `+cL(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Zre:Xre))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=iR(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(rR))e>c&&o(c,e,0),c=e;return i.sort(rR)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>KP(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=wL.filter(t=>{if(r.has(t))return!0;let n=i[t]=sR(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,oR(t)===O&&tR.delete(t),O.isJS||_(),!0),D=()=>{let t=yF.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=sR(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<Qre)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,gF.isProcessing?II.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(sR(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return tR.set(t,O),O}var iie=class extends sL{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yF.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||LL;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=yF.now();let u=!0;Wre(e,i,a,o)||(u=!1,(zP.instantAnimations||!s)&&l?.(nL(e,n,t)),e[0]=e[e.length-1],JL(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&qre(n),p=!f&&eie(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=iL(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Hre(n)}catch{m=new lL(n)}}else m=p?new nie(n):new lL(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Nre()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function cR(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var lR=30,aie=e=>!isNaN(parseFloat(e)),uR={current:void 0},oie=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=yF.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=yF.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=aie(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new qP)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new qP,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){II.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){uR.current&&uR.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=yF.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lR)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,lR);return XP(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function dR(e,t){return new oie(e,t)}function fR(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function pR(e,t){let n=e?.[t]??e?.default??e;return n===e?n:fR(n,e)}var sie={type:`spring`,stiffness:500,damping:25,restSpeed:10},cie=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lie={type:`keyframes`,duration:.8},uie={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},die=(e,{keyframes:t})=>t.length>2?lie:TL.has(e)?e.startsWith(`scale`)?cie(t[1]):sie:uie,fie=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function pie(e){for(let t in e)if(!fie.has(t))return!0;return!1}var mR=(e,t,n,r={},i,a)=>o=>{let s=pR(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=JP(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};pie(s)||Object.assign(u,die(e,u)),u.duration&&=JP(u.duration),u.repeatDelay&&=JP(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(JL(u),u.delay===0&&(d=!0)),(zP.instantAnimations||zP.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,JL(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=nL(u.keyframes,s);if(e!==void 0){II.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new lL(u):new iie(u)},mie=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hie(e){let t=mie.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function hR(e,t,n=1){`${e}`;let[r,i]=hie(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return BP(e)?parseFloat(e):e}return wF(i)?hR(i,t,n+1):i}function gie(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _ie(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...gie(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function gR(e,t,n){return _ie(e.getProps(),t,n,e)}var _R=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,vR=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...wL]),vie=e=>Array.isArray(e);function yie(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dR(n))}function bie(e){return vie(e)?e[e.length-1]||0:e}function xie(e,t){let{transitionEnd:n={},transition:r={},...i}=gR(e,t)||{};i={...i,...n};for(let t in i)yie(e,t,bie(i[t]))}var yR=e=>!!(e&&e.getVelocity);function Sie(e){return!!(yR(e)&&e.add)}function bR(e,t){let n=e.getValue(`willChange`);if(Sie(n))return n.add(t);if(!n&&zP.WillChange){let n=new zP.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Cie=`data-framer-appear-id`;function xR(e){return e.props[Cie]}var wie=typeof window<`u`;function Tie({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function SR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?fR(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Tie(f,t))continue;let o={delay:n,...pR(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){II.update(()=>r.set(i));continue}let p=!1;if(wie&&window.MotionHandoffAnimation){let n=xR(e);if(n){let e=window.MotionHandoffAnimation(n,t,II);e!==null&&(o.startTime=e,p=!0)}}bR(e,t);let m=l??e.shouldReduceMotion;r.start(mR(t,r,i,m&&vR.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>II.update(()=>{o&&xie(e,o)});d.length?Promise.all(d).then(t):t()}return d}function CR(e,t,n={}){let r=gR(e,t,_R(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?SR(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(CR(e,t,{...n,delay:r+(typeof o==`function`?0:o)+cR(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Eie(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>CR(e,t,n))):typeof t==`string`?CR(e,t,n):Promise.all(SR(e,gR(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Die={test:e=>e===`auto`,parse:e=>e},Oie=e=>t=>t.test(e),kie=[DF,UF,HF,VF,GF,WF,Die],wR=e=>kie.find(Oie(e));function Aie(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||HP(e)}var jie=new Set([`auto`,`none`,`0`]);function Mie(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!jie.has(t)&&aI(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=hL(n,i))}var Nie=class extends LL{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(EF(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),wF(r))){let i=hR(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!vR.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=wR(r),o=wR(i);if(EF(r)!==EF(i)&&AL[n])this.needsMeasurement=!0;else if(a!==o){if(EL(a)&&EL(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else AL[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Aie(e[t]))&&n.push(t);n.length&&Mie(e,n,t)}measure(){let{element:e,name:t}=this;return AL[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},TR=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Pie(e){return VP(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ER(e){return VP(e)&&`ownerSVGElement`in e}var DR={};function OR(e){return DR.current?.add(e),e}var kR=e=>DR.current?DR.current.bind(e):e;function AR(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:DR.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function jR(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function MR(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(TL.has(e))o=!0;else if(SF(e))i[e]=n;else{let t=QL(n,pL[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=eR(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Fie={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Iie={offset:`strokeDashoffset`,array:`strokeDasharray`};function Lie(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Fie:Iie;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var NR=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Rie(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(MR(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of NR)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Lie(d,i,a,o,!1)}function PR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zie({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Bie(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function FR(e){return e===void 0||e===1}function IR({scale:e,scaleX:t,scaleY:n}){return!FR(e)||!FR(t)||!FR(n)}function LR(e){return IR(e)||RR(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function RR(e){return zR(e.x)||zR(e.y)}function zR(e){return e&&e!==`0%`}function BR(e,t,n){return n+t*(e-n)}function VR(e,t,n,r,i){return i!==void 0&&(e=BR(e,i,r)),BR(e,n,r)+t}function HR(e,t=0,n=1,r,i){e.min=VR(e.min,t,n,r,i),e.max=VR(e.max,t,n,r,i)}function UR(e,{x:t,y:n}){HR(e.x,t.translate,t.scale,t.originPoint),HR(e.y,n.translate,n.scale,n.originPoint)}var WR=.999999999999,GR=1.0000000000001;function Vie(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(KR(e.x,-a.scroll.offset.x),KR(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,UR(e,o)),r&&LR(a.latestValues)&&YR(e,a.latestValues,a.layout?.layoutBox))}t.x<GR&&t.x>WR&&(t.x=1),t.y<GR&&t.y>WR&&(t.y=1)}function KR(e,t){e.min+=t,e.max+=t}function qR(e,t,n,r,i=.5){HR(e,t,n,_I(e.min,e.max,i),r)}function JR(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function YR(e,t,n){let r=n??e;qR(e.x,JR(t.x,r.x),t.scaleX,t.scale,t.originX),qR(e.y,JR(t.y,r.y),t.scaleY,t.scale,t.originY)}function XR(e,t){return PR(Bie(e.getBoundingClientRect(),t))}function Hie(e,t,n){let r=XR(e,n),{scroll:i}=t;return i&&(KR(r.x,i.offset.x),KR(r.y,i.offset.y)),r}var{schedule:ZR,cancel:Uie}=FI(queueMicrotask,!1);function Wie(e,t,n){let r=yR(e)?e:dR(e);return r.start(mR(``,r,t,n)),r.animation}var QR={},$R={value:null,addProjectionMetrics:null};function Gie(e,t){let n=yF.now();e=kR(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(LI(r),e(a-t))};return II.setup(r,!0),OR(()=>LI(r))}function Kie(e){return ER(e)&&e.tagName===`svg`}function ez(e){return yR(e)?e.get():e}var tz=e=>typeof e==`number`?e:parseFloat(e),qie=TR.length,nz=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],Jie=nz.length,rz=e=>typeof e==`number`||UF.test(e);function Yie(e,t,n,r,i,a){i?(e.opacity=_I(0,n.opacity??1,Xie(r)),e.opacityExit=_I(t.opacity??1,0,Zie(r))):a&&(e.opacity=_I(t.opacity??1,n.opacity??1,r));for(let i=0;i<qie;i++){let a=TR[i],o=iz(t,a),s=iz(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||rz(o)===rz(s)?(e[a]=Math.max(_I(tz(o),tz(s),r),0),(HF.test(s)||HF.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<Jie;i++){let a=nz[i];(t[a]||n[a])&&(e[a]=_I(t[a]||0,n[a]||0,r))}}function iz(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Xie=az(0,.5,oF),Zie=az(.5,.95,WP);function az(e,t,n){return r=>r<e?0:r>t?1:n(KP(e,t,r))}function oz(e,t){e.min=t.min,e.max=t.max}function sz(e,t){oz(e.x,t.x),oz(e.y,t.y)}function cz(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Qie=.9999,$ie=1.0001,eae=-.01,tae=.01;function lz(e){return e.max-e.min}function nae(e,t,n){return Math.abs(e-t)<=n}function uz(e,t,n,r=.5){e.origin=r,e.originPoint=_I(t.min,t.max,e.origin),e.scale=lz(n)/lz(t),e.translate=_I(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Qie&&e.scale<=$ie||isNaN(e.scale))&&(e.scale=1),(e.translate>=eae&&e.translate<=tae||isNaN(e.translate))&&(e.translate=0)}function dz(e,t,n,r){uz(e.x,t.x,n.x,r?r.originX:void 0),uz(e.y,t.y,n.y,r?r.originY:void 0)}function fz(e,t,n,r=0){e.min=(r?_I(n.min,n.max,r):n.min)+t.min,e.max=e.min+lz(t)}function rae(e,t,n,r){fz(e.x,t.x,n.x,r?.x),fz(e.y,t.y,n.y,r?.y)}function pz(e,t,n,r=0){let i=r?_I(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+lz(t)}function mz(e,t,n,r){pz(e.x,t.x,n.x,r?.x),pz(e.y,t.y,n.y,r?.y)}function hz(e,t,n,r,i){return e-=t,e=BR(e,1/n,r),i!==void 0&&(e=BR(e,1/i,r)),e}function iae(e,t=0,n=1,r=.5,i,a=e,o=e){if(HF.test(t)&&(t=parseFloat(t),t=_I(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=_I(a.min,a.max,r);e===a&&(s-=t),e.min=hz(e.min,t,n,s,i),e.max=hz(e.max,t,n,s,i)}function gz(e,t,[n,r,i],a,o){iae(e,t[n],t[r],t[i],t.scale,a,o)}var aae=[`x`,`scaleX`,`originX`],oae=[`y`,`scaleY`,`originY`];function _z(e,t,n,r){gz(e.x,t,aae,n?n.x:void 0,r?r.x:void 0),gz(e.y,t,oae,n?n.y:void 0,r?r.y:void 0)}var vz=()=>({translate:0,scale:1,origin:0,originPoint:0}),yz=()=>({x:vz(),y:vz()}),bz=()=>({min:0,max:0}),xz=()=>({x:bz(),y:bz()});function Sz(e){return e.translate===0&&e.scale===1}function Cz(e){return Sz(e.x)&&Sz(e.y)}function wz(e,t){return e.min===t.min&&e.max===t.max}function sae(e,t){return wz(e.x,t.x)&&wz(e.y,t.y)}function Tz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ez(e,t){return Tz(e.x,t.x)&&Tz(e.y,t.y)}function Dz(e){return lz(e.x)/lz(e.y)}function Oz(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var cae=class{constructor(){this.members=[]}add(e){IP(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(LP(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(LP(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function kz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Az={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(UF.test(e))e=parseFloat(e);else return e}return`${kz(e,t.target.x)}% ${kz(e,t.target.y)}%`}},lae={borderRadius:Object.assign({},Az,{applyTo:TR.slice()}),borderTopLeftRadius:Az,borderTopRightRadius:Az,borderBottomLeftRadius:Az,borderBottomRightRadius:Az,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=pI.parse(e);if(i.length>5)return r;let a=pI.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=_I(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}};function uae(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function jz(e){return[e(`x`),e(`y`)]}var dae=(e,t)=>e.depth-t.depth,fae=class{constructor(){this.children=[],this.isDirty=!1}add(e){IP(this.children,e),this.isDirty=!0}remove(e){LP(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dae),this.isDirty=!1,this.children.forEach(e)}},Mz={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Pz=[``,`X`,`Y`,`Z`],pae=1e3,Fz=0;function Iz(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Lz=({instance:e})=>e&&tR.get(e)?.demote();function Rz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=xR(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,II,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rz(r)}function zz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(QR,{...lae,...QR}),class{constructor(e={},n=t?.()){this.id=Fz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$R.value&&(Nz.nodes=Nz.calculatedTargetDeltas=Nz.calculatedProjections=0),this.nodes.forEach(Hz),this.nodes.forEach($z),this.nodes.forEach(eB),this.nodes.forEach(Uz),$R.addProjectionMetrics&&$R.addProjectionMetrics(Nz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new fae)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qP),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ER(t)&&!Kie(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;II.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Gie(i,250),Mz.hasAnimatedSinceResize&&(Mz.hasAnimatedSinceResize=!1,this.nodes.forEach(Qz)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||oB,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Ez(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...pR(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Qz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,LI(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tB),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rz(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Lz(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Lz(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Kz),this.nodes.forEach(Gz);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qz);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Yz),this.nodes.forEach(Xz),this.nodes.forEach(Zz),this.nodes.forEach(Bz),this.nodes.forEach(Vz)):this.nodes.forEach(qz),this.clearAllSnapshots();let e=yF.now();gF.delta=RP(0,1e3/60,e-gF.timestamp),gF.timestamp=e,gF.isProcessing=!0,RI.update.process(gF),RI.preRender.process(gF),RI.render.process(gF),gF.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ZR.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Wz),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,II.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){II.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!lz(this.snapshot.measuredBox.x)&&!lz(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=xz(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&Lz(this);let t=this.projectionDelta&&!Cz(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||LR(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),uB(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return xz();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fB))){let{scroll:e}=this.root;e&&(KR(t.x,e.offset.x),KR(t.y,e.offset.y))}return t}removeElementScroll(e){let t=xz();if(sz(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&sz(t,e),KR(t.x,i.offset.x),KR(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r){let i=n||xz();sz(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(KR(i.x,-n.scroll.offset.x),KR(i.y,-n.scroll.offset.y)),LR(n.latestValues)&&YR(i,n.latestValues,n.layout?.layoutBox)}return!r&&LR(this.latestValues)&&YR(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=xz();sz(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!LR(n.latestValues))continue;let r;n.instance&&(IR(n.latestValues)&&n.updateSnapshot(),r=xz(),sz(r,n.measurePageBox())),_z(t,n.latestValues,n.snapshot?.layoutBox,r)}return LR(this.latestValues)&&_z(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gF.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=gF.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=xz(),this.targetWithTransforms=xz()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rae(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):sz(this.target,this.layout.layoutBox),UR(this.target,this.targetDelta)):sz(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),$R.value&&Nz.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||IR(this.parent.latestValues)||RR(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xz(),this.relativeTargetOrigin=xz(),mz(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),sz(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===gF.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;sz(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Vie(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=xz());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cz(this.prevProjectionDelta.x,this.projectionDelta.x),cz(this.prevProjectionDelta.y,this.projectionDelta.y)),dz(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Oz(this.projectionDelta.x,this.prevProjectionDelta.x)&&Oz(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),$R.value&&Nz.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yz(),this.projectionDelta=yz(),this.projectionDeltaWithTransform=yz()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=yz();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=xz(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(aB));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=_I(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=_I(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(nB(o.x,e.x,n),nB(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mz(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),iB(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&sae(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=xz(),sz(f,this.relativeTarget)),c&&(this.animationValues=a,Yie(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(LI(this.pendingAnimation),void 0),this.pendingAnimation=II.update(()=>{Mz.hasAnimatedSinceResize=!0,this.motionValue||=dR(0),this.motionValue.jump(0,!1),this.currentAnimation=Wie(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),_re(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pae),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&dB(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||xz();let t=lz(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=lz(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}sz(t,i),YR(t,r),dz(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new cae),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Iz(`z`,e,r,this.animationValues);for(let t=0;t<Pz.length;t++)Iz(`rotate${Pz[t]}`,e,r,this.animationValues),Iz(`skew${Pz[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=ez(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=ez(t?.pointerEvents)||``),this.hasProjected&&!LR(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=uae(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in QR){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=QR[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?ez(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Gz),this.root.sharedNodes.clear()}}}function Bz(e){e.updateLayout(),Jz(e)}function Vz(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)jz(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=lz(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;oz(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else dB(i,t.layoutBox,n)&&jz(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=lz(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=yz();dz(o,n,t.layoutBox);let s=yz();a?dz(s,e.applyTransform(r,!0),t.measuredBox):dz(s,n,t.layoutBox);let c=!Cz(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=xz();mz(s,t.layoutBox,i.layoutBox,o);let c=xz();mz(c,n,a.layoutBox,o),Ez(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Hz(e){$R.value&&Nz.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Uz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Wz(e){e.clearSnapshot()}function Gz(e){e.clearMeasurements()}function Kz(e){e.isLayoutDirty=!0,e.updateLayout()}function qz(e){e.isLayoutDirty=!1}function Jz(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;jz(e=>KR(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Yz(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Xz(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Zz(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Qz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $z(e){e.resolveTargetDelta()}function eB(e){e.calcProjection()}function tB(e){e.resetSkewAndRotation()}function nB(e,t,n){e.translate=_I(t.translate,0,n),e.scale=_I(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rB(e,t,n,r){e.min=_I(t.min,n.min,r),e.max=_I(t.max,n.max,r)}function iB(e,t,n,r){rB(e.x,t.x,n.x,r),rB(e.y,t.y,n.y,r)}function aB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var oB={duration:.45,ease:[.4,0,.1,1]},sB=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cB=sB(`applewebkit/`)&&!sB(`chrome/`)?Math.round:WP;function lB(e){e.min=cB(e.min),e.max=cB(e.max)}function uB(e){lB(e.x),lB(e.y)}function dB(e,t,n){return e===`position`||e===`preserve-aspect`&&!nae(Dz(t),Dz(n),.2)}function fB(e){return e!==e.root&&e.scroll?.wasRoot}function pB(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var mB=zz({attachResizeListener:(e,t)=>pB(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hB={current:void 0},gB=zz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hB.current){let e=new mB({});e.mount(window),e.setOptions({layoutScroll:!0}),hB.current=e}return hB.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),_B=new WeakMap;function vB(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function yB(e){return typeof e==`string`||Array.isArray(e)}var bB=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],xB=[`initial`].concat(bB);function SB(e){if(vB(e.animate))return!0;for(let t=0;t<xB.length;t++)if(yB(e[xB[t]]))return!0;return!1}function CB(e){return!!(SB(e)||e.variants)}function wB(e,t,n){for(let r in t){let i=t[r],a=n[r];if(yR(i))e.addValue(r,i);else if(yR(a))e.addValue(r,dR(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,dR(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var TB={current:null},EB={current:!1},DB=typeof window<`u`;function OB(){if(EB.current=!0,DB){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>TB.current=e.matches;e.addEventListener(`change`,t),t()}else TB.current=!1}}var kB=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],AB={};function jB(e){AB=e}function MB(){return AB}var NB=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=LL,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=yF.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,II.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=SB(t),this.isVariantNode=CB(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&yR(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,_B.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(EB.current||OB(),this.shouldReduceMotion=TB.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),LI(this.notifyUpdate),LI(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&YL.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new GL({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:JP(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=TL.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&II.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),tR.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in AB){let t=AB[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xz()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&tR.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<kB.length;t++){let n=kB[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=wB(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=dR(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(BP(n)||HP(n))?n=parseFloat(n):typeof n!=`number`&&!pI.test(n)&&pI.test(t)&&(n=hL(e,t)),this.setBaseTarget(e,yR(n)?n.get():n)),yR(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new qP),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ZR.render(this.render)}},PB=class extends NB{constructor(){super(...arguments),this.KeyframeResolver=Nie}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;yR(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function FB(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function IB(e,{layout:t,layoutId:n}){return TL.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!QR[e]||e===`opacity`)}function LB(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(yR(r[t])||i&&yR(i[t])||IB(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function RB(e){return window.getComputedStyle(e)}var zB=class extends PB{constructor(){super(...arguments),this.type=`html`,this.renderInstance=FB}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(TL.has(t))return this.projection?.isProjecting?SL(t):Dre(e,t);{let n=RB(e),r=(SF(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return XR(e,t)}build(e,t,n){MR(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return LB(e,t,n)}},BB=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function VB(e){return{point:{x:e.pageX,y:e.pageY}}}var HB=e=>t=>BB(t)&&e(t,VB(t));function UB(e,t,n,r){return pB(e,t,HB(n),r)}var WB=new WeakMap,GB,KB=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ER(r)&&`getBBox`in r?r.getBBox()[t]:r[n],qB=KB(`inline`,`width`,`offsetWidth`),JB=KB(`block`,`height`,`offsetHeight`);function YB({target:e,borderBoxSize:t}){WB.get(e)?.forEach(n=>{n(e,{get width(){return qB(e,t)},get height(){return JB(e,t)}})})}function XB(e){e.forEach(YB)}function ZB(){typeof ResizeObserver<`u`&&(GB=new ResizeObserver(XB))}function QB(e,t){GB||ZB();let n=AR(e);return n.forEach(e=>{let n=WB.get(e);n||(n=new Set,WB.set(e,n)),n.add(t),GB?.observe(e)}),()=>{n.forEach(e=>{let n=WB.get(e);n?.delete(t),n?.size||GB?.unobserve(e)})}}var $B=new Set,eV;function tV(){eV=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};$B.forEach(t=>t(e))},window.addEventListener(`resize`,eV)}function nV(e){return $B.add(e),eV||tV(),()=>{$B.delete(e),!$B.size&&typeof eV==`function`&&(window.removeEventListener(`resize`,eV),eV=void 0)}}function rV(e,t){return OR(typeof e==`function`?nV(e):QB(e,t))}var iV=(e,t)=>Math.abs(e-t);function aV(e,t){let n=iV(e.x,t.x),r=iV(e.y,t.y);return Math.sqrt(n**2+r**2)}var oV=new Set([`auto`,`scroll`]),sV=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=cV(this.lastRawMoveEventInfo,this.transformPagePoint));let e=uV(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=aV(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:yF.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=cV(t,this.transformPagePoint),this.hasPendingMove=!0,II.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=uV(e.type===`pointercancel`?this.lastMoveEventInfo:cV(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!BB(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=cV(VB(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=gF;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,uV(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=GP(UB(this.contextWindow,`pointermove`,this.handlePointerMove,d),UB(this.contextWindow,`pointerup`,this.handlePointerUp,d),UB(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(oV.has(e.overflowX)||oV.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),II.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),LI(this.updatePoint)}};function cV(e,t){return t?{point:t(e.point)}:e}function lV(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uV({point:e},t){return{point:e,delta:lV(e,fV(t)),offset:lV(e,dV(t)),velocity:pV(t,.1)}}function dV(e){return e[0]}function fV(e){return e[e.length-1]}function pV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=fV(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>JP(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>JP(t)*2&&(r=e[1]);let a=YP(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var mV=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function hV(e){return mV.has(e.tagName)||e.isContentEditable===!0}var gV=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function _V(e){return gV.has(e.tagName)||e.isContentEditable===!0}var vV={x:!1,y:!1};function yV(){return vV.x||vV.y}function bV(e){return e===`x`||e===`y`?vV[e]?null:(vV[e]=!0,()=>{vV[e]=!1}):vV.x||vV.y?null:(vV.x=vV.y=!0,()=>{vV.x=vV.y=!1})}function xV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_I(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_I(n,e,r.max):Math.min(e,n)),e}function SV(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function CV(e,{top:t,left:n,bottom:r,right:i}){return{x:SV(e.x,n,i),y:SV(e.y,t,r)}}function wV(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TV(e,t){return{x:wV(e.x,t.x),y:wV(e.y,t.y)}}function EV(e,t){let n=.5,r=lz(e),i=lz(t);return i>r?n=KP(t.min,t.max-r,e.min):r>i&&(n=KP(e.min,e.max-i,t.min)),RP(0,1,n)}function DV(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var OV=.35;function kV(e=OV){return e===!1?e=0:e===!0&&(e=OV),{x:AV(e,`left`,`right`),y:AV(e,`top`,`bottom`)}}function AV(e,t,n){return{min:jV(e,t),max:jV(e,n)}}function jV(e,t){return typeof e==`number`?e:e[t]||0}var MV=new WeakMap,NV=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xz(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bV(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jz(e=>{let t=this.getAxisMotionValue(e).get()||0;if(wF(t)&&(t=hR(t,this.visualElement.current)||0),UF.test(t))t=parseFloat(t);else if(HF.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=lz(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&II.update(()=>i(e,t),!1,!0),bR(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=zV(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&II.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new sV(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&II.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!RV(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=xV(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;PV(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?CV(n.layoutBox,e):!1,this.elastic=kV(t),r!==this.constraints&&!PV(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&jz(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=DV(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!PV(e))return!1;let n=FV(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Hie(n,r.root,this.visualElement.getTransformPagePoint()),a=TV(r.layout.layoutBox,i);if(t){let e=t(zie(a));this.hasMutatedConstraints=!!e,e&&(a=PR(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=jz(s=>{if(!RV(s,t||n,this.currentDirection))return;let l=c&&c[s]||{};(o===!0||o===s)&&(l={min:0,max:0});let u=i?200:1e6,d=i?40:1e7,f={type:`inertia`,velocity:r?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return bR(this.visualElement,e),n.start(mR(e,n,0,t,this.visualElement,!1))}stopAnimation(){jz(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();jz(e=>{if(!RV(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-_I(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!PV(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};jz(e=>{let t=this.getAxisMotionValue(e).get();i[e]=EV({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),jz(t=>{let n=this.getAxisMotionValue(t);if(!RV(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(_I(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;MV.set(this.visualElement,this);let e=this.visualElement.current,t=UB(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&_V(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=PV(t)&&FV(t);r&&(this.constraints=this.resolveRefConstraints(),n||=LV(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),II.read(r);let o=pB(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(jz(t=>{if(!RV(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=OV,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function PV(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var FV=e=>`current`in e?e.current:e;function IV(e){let t=!0;return()=>{t?t=!1:e()}}function LV(e,t,n){let r=rV(e,IV(n)),i=rV(t,IV(n));return()=>{r(),i()}}function RV(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zV(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function BV(e,t){let n=AR(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},OR(()=>r.abort())]}function VV(e){return!(e.pointerType===`touch`||yV())}function HV(e,t,n={}){t=kR(t);let[r,i,a]=BV(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!VV(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var UV=(e,t)=>t?e===t||UV(e,t.parentElement):!1,WV=new WeakSet;function GV(e){return t=>{t.key===`Enter`&&e(t)}}function KV(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var qV=(e,t)=>{let n=!1,r=GV(()=>{WV.has(e)||(n=!0,KV(e,`down`))}),i=GV(()=>{n&&(n=!1,KV(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&KV(e,`cancel`)},{...t,once:!0})};function JV(e){return BB(e)&&!yV()}var YV=new WeakSet;function XV(e,t,n={}){t=kR(t);let[r,i,a]=BV(e,n),o=e=>{let r=e.currentTarget;if(!JV(e)||YV.has(e))return;WV.add(r),n.stopPropagation&&YV.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),WV.has(r)&&WV.delete(r),JV(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||UV(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Pie(e)&&(e.addEventListener(`focus`,()=>qV(e,i),i),!hV(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var ZV=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},QV=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),$V=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function eH(e,t,n,r){FB(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(QV.has(n)?n:jR(n),t.attrs[n])}function tH(e,t,n){let r=LB(e,t,n);for(let n in e)if(n!==`children`&&(yR(e[n])||yR(t[n]))){let t=wL.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var nH=class extends PB{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=xz}getBaseTargetFromProps(e,t){return TL.has(t)?super.getBaseTargetFromProps(e,t)??SL(t):e[t]}getDefaultValue(e){return TL.has(e)?this.latestValues[e]??SL(e):void 0}readValueFromInstance(e,t){if(TL.has(t)){let e=mL(t);return e&&e.default||0}if(NR.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=QV.has(t)?t:jR(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tH(e,t,n)}build(e,t,n){Rie(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){eH(e,t,n,r)}mount(e){this.isSVGTag=$V(e.tagName),super.mount(e)}};function rH(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var iH=[...bB].reverse();function aH(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Eie(e,t,n))),n=sH(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(iH.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?yB(g)||g===!1?g:void 0:h,v=yB(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||vB(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=oH(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=gR(e,n,_R(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!rH(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=gR(s,n)?.transition?.delayChildren;r.delay=cR(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&gR(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!yR(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=sH(),i=!0}}}function oH(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!rH(t,e):!1}function sH(){let e={};for(let t of bB)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function cH(e=!0){let t=(0,S.useContext)(FP);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,S.useId)();(0,S.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,S.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var lH=(0,S.createContext)({strict:!1}),uH={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},dH=!1;function fH(){if(dH)return;let e={};for(let t in uH)e[t]={isEnabled:e=>uH[t].some(t=>!!e[t])};jB(e),dH=!0}function pH(){return fH(),MB()}function mH(e){let t=pH();for(let n in e)t[n]={...t[n],...e[n]};jB(t)}function hH({children:e,features:t,strict:n=!1}){let[,r]=(0,S.useState)(!gH(t)),i=(0,S.useRef)(void 0);if(!gH(t)){let{renderer:e,...n}=t;i.current=e,mH(n)}return(0,S.useEffect)(()=>{gH(t)&&t().then(({renderer:e,...t})=>{mH(t),i.current=e,r(!0)})},[]),(0,R.jsx)(lH.Provider,{value:{renderer:i.current,strict:n},children:e})}function gH(e){return typeof e==`function`}var _H=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function vH(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(_H.indexOf(e)>-1||/[A-Z]/u.test(e))}var yH=(0,S.createContext)({}),bH=(e,t)=>t.isSVG??vH(e)?new nH(t):new zB(t,{allowProjection:e!==S.Fragment}),xH=class extends ZV{constructor(e){super(e),e.animationState||=aH(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();vB(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},SH=0,CH={animation:{Feature:xH},exit:{Feature:class extends ZV{constructor(){super(...arguments),this.id=SH++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=gR(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},wH=class extends ZV{constructor(e){super(e),this.removeGroupControls=WP,this.removeListeners=WP,this.controls=new NV(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||WP}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},TH=({current:e})=>e?e.ownerDocument.defaultView:null,EH=e=>(t,n)=>{e&&II.update(()=>e(t,n),!1,!0)},DH=class extends ZV{constructor(){super(...arguments),this.removePointerDownListener=WP}onPointerDown(e){this.session=new sV(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:TH(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:EH(e),onStart:EH(t),onMove:EH(n),onEnd:(e,t)=>{delete this.session,r&&II.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=UB(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},OH=!1,kH=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),AH=class extends S.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),OH&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...kH(this.props),onExitComplete:()=>this.safeToRemove()})),Mz.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...kH(this.props)}),OH=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||II.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ZR.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;OH=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function jH(e){let[t,n]=cH(),r=(0,S.useContext)(PP);return(0,R.jsx)(AH,{...e,layoutGroup:r,switchLayoutGroup:(0,S.useContext)(yH),isPresent:t,safeToRemove:n})}var MH={pan:{Feature:DH},drag:{Feature:wH,ProjectionNode:gB,MeasureLayout:jH}};function NH(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&II.postRender(()=>i(t,VB(t)))}var PH=class extends ZV{mount(){let{current:e}=this.node;e&&(this.unmount=HV(e,(e,t)=>(NH(this.node,t,`Start`),e=>NH(this.node,e,`End`))))}unmount(){}},FH=class extends ZV{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=GP(pB(this.node.current,`focus`,()=>this.onFocus()),pB(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function IH(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&II.postRender(()=>i(t,VB(t)))}var LH=class extends ZV{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=XV(e,(e,t)=>(IH(this.node,t,`Start`),(e,{success:t})=>IH(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},RH=new WeakMap,zH=new WeakMap,BH=e=>{let t=RH.get(e.target);t&&t(e)},VH=e=>{e.forEach(BH)};function HH({root:e,...t}){let n=e||document;zH.has(n)||zH.set(n,{});let r=zH.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(VH,{root:e,...t})),r[i]}function UH(e,t,n){let r=HH(t);return RH.set(e,n),r.observe(e),()=>{RH.delete(e),r.unobserve(e)}}var WH={some:0,all:1},GH=class extends ZV{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:WH[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=UH(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(KH(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function KH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var qH=Object.assign({},Object.assign({renderer:bH},CH,{inView:{Feature:GH},tap:{Feature:LH},focus:{Feature:FH},hover:{Feature:PH}}),MH,{layout:{ProjectionNode:gB,MeasureLayout:jH}}),JH=`prism`;function YH(e){return`${JH}__${e}`}function XH(e,t){return t?t.reduce((t,n)=>(t[n]=YH(`${e}__${n}`),t),{}):t=>YH(`${e}__${t}`)}YH(`animate__border__root`),YH(`animate__border__primary`),YH(`animate__border__secondary`),YH(`animate__border__svg__wrapper`),YH(`animate__border__moving__shape`);function ZH({children:e}){return(0,R.jsx)(hH,{strict:!0,features:qH,children:e})}var QH={xs:24,sm:32,md:40,lg:56,xl:80},$H={xs:10,sm:12,md:14,lg:20,xl:28};G(rne,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,shape:r,hasImage:i,bgColor:a}=t,o=QH[n],s=$H[n],c=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4;return{width:o,height:o,fontSize:s,fontWeight:600,...r===`rounded`&&{borderRadius:c*1.5},...r===`square`&&{borderRadius:0},...!i&&a&&{backgroundColor:a,color:e.palette.getContrastText(a)}}}),G(iE,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n,color:r,size:i}=t,{width:a,height:o,fontSize:s}={small:{width:16,height:16,fontSize:10},medium:{width:20,height:20,fontSize:12},large:{width:24,height:24,fontSize:14}}[i],c={default:e.palette.grey[500],primary:e.palette.primary.main,secondary:e.palette.secondary.main,success:e.palette.success.main,warning:e.palette.warning.main,error:e.palette.error.main,info:e.palette.info.main},l={online:e.palette.success.main,offline:e.palette.grey[500],busy:e.palette.error.main},u=n===`online`||n===`offline`||n===`busy`,d=n===`dot`||u,f=u?l[n]:c[r];return{"& .MuiBadge-badge":{minWidth:d?o/2:a,height:d?o/2:o,padding:d?0:`0 4px`,fontSize:s,fontWeight:600,backgroundColor:f,color:e.palette.getContrastText(f),...d&&{borderRadius:`50%`},...n===`online`&&{"&::after":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,borderRadius:`50%`,animation:`ripple 1.2s infinite ease-in-out`,border:`1px solid ${e.palette.success.main}`,content:`""`},"@keyframes ripple":{"0%":{transform:`scale(.8)`,opacity:1},"100%":{transform:`scale(2.4)`,opacity:0}}}}}});var eU=G(aE,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n}=t,r=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4,i={border:`none`,boxShadow:`none`,backgroundColor:H(e.palette.grey[500],.08)};return{position:`relative`,borderRadius:r*2,...n===`soft`&&i,...n===`outlined`&&{boxShadow:`none`}}});function tU({variant:e=`elevation`,title:t,subheader:n,headerAction:r,headerSx:i,contentSx:a,actions:o,actionsSx:s,disablePadding:c,children:l,sx:u,ref:d,...f}){let p={variant:e},m=t||n||r;return(0,R.jsxs)(eU,{ref:d,ownerState:p,variant:e===`outlined`?`outlined`:`elevation`,sx:u,...f,children:[m&&(0,R.jsx)(lE,{title:t,subheader:n,action:r,sx:i}),l&&(0,R.jsx)(sE,{sx:{...c&&{p:0,"&:last-child":{pb:0}},...a},children:l}),o&&(0,R.jsx)(oE,{sx:s,children:o})]})}function nU({label:e,value:t,change:n,icon:r,color:i=`primary`,loading:a,subtitle:o,variant:s=`outlined`,sx:c,...l}){let u=n&&n>0,d=n&&n<0;return(0,R.jsx)(tU,{variant:s,contentSx:{p:2,"&:last-child":{pb:2}},sx:c,...l,children:(0,R.jsxs)(Z,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`},children:[(0,R.jsx)(Z,{children:a?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(tA,{width:80,height:16}),(0,R.jsx)(tA,{width:50,height:32,sx:{mt:.5}})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Nb,{variant:`caption`,sx:{fontWeight:600,color:`text.secondary`,textTransform:`uppercase`,letterSpacing:.5},children:e}),(0,R.jsx)(Nb,{variant:`h4`,sx:{fontWeight:700,color:`${i}.main`,mt:.5},children:t}),n!==void 0&&(0,R.jsxs)(Nb,{variant:`caption`,color:u?`success.main`:d?`error.main`:`text.secondary`,sx:{fontWeight:500,mt:.5,display:`block`},children:[u?`+`:``,n,`%`]}),o&&(0,R.jsx)(Nb,{variant:`caption`,sx:{color:`text.secondary`},children:o})]})}),r&&!a&&(0,R.jsx)(Z,{sx:{color:`${i}.main`},children:r})]})})}function rU({open:e,onClose:t,onConfirm:n,title:r=`Confirm`,content:i,confirmLabel:a=`Confirm`,cancelLabel:o=`Cancel`,confirmColor:s=`primary`,loading:c=!1,disabled:l=!1,maxWidth:u=`xs`,sx:d}){let f=(0,S.useId)(),p=(0,S.useId)(),[m,h]=(0,S.useState)(!1),g=c||m;return(0,R.jsxs)(HE,{open:e,onClose:g?void 0:t,maxWidth:u,fullWidth:!0,"aria-labelledby":f,"aria-describedby":i?p:void 0,sx:d,children:[(0,R.jsx)(aD,{id:f,children:r}),i&&(0,R.jsx)(QE,{children:typeof i==`string`?(0,R.jsx)(nD,{id:p,children:i}):(0,R.jsx)(`div`,{id:p,children:i})}),(0,R.jsxs)(KE,{sx:{px:3,pb:2},children:[(0,R.jsx)(bb,{onClick:t,color:`inherit`,disabled:g,variant:`outlined`,children:o}),(0,R.jsx)(bb,{onClick:()=>{if(g)return;let e=n();e instanceof Promise&&(h(!0),e.catch(()=>{}).finally(()=>h(!1)))},color:s,variant:`contained`,loading:g,disabled:l,children:a})]})]})}function iU({icon:e,color:t=`primary.main`,size:n=64}){return(0,R.jsx)(Z,{sx:{width:n,height:n,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:e=>{let n=t.split(`.`),r=e.palette;for(let e of n)r=r?.[e];return H(typeof r==`string`?r:e.palette.primary.main,.08)}},children:e})}function aU({illustration:e,icon:t,iconColor:n=`primary.main`,iconSize:r=64,title:i=`No data`,description:a,action:o,actions:s,maxWidth:c=400,filled:l=!1,sx:u,illustrationSx:d,slotProps:f,compact:p=!1}){let m=t?(0,R.jsx)(iU,{icon:t,color:n,size:r}):e?(0,R.jsx)(Z,{sx:d,children:e}):null,h=[...s??[],...o?[o]:[]];return(0,R.jsx)(TA,{sx:{alignItems:`center`,justifyContent:`center`,textAlign:`center`,py:p?4:8,px:2,...!p&&{flex:1,alignSelf:`stretch`,minHeight:`calc(100vh - 240px)`},...l&&{height:`100%`},...u},children:(0,R.jsxs)(Z,{sx:{maxWidth:c,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p?1.5:2.5},children:[m,(0,R.jsxs)(TA,{spacing:.5,sx:{alignItems:`center`},children:[i&&(0,R.jsx)(Nb,{variant:p?`subtitle1`:`h6`,sx:{color:`text.secondary`,fontWeight:600,...f?.title},children:i}),a&&(0,R.jsx)(Nb,{variant:`body2`,sx:{color:`text.disabled`,lineHeight:1.6,...f?.description},children:a})]}),h.length>0&&(0,R.jsx)(TA,{direction:`row`,spacing:1,sx:{mt:p?.5:1,flexWrap:`wrap`,justifyContent:`center`,...f?.actions},children:h.map((e,t)=>(0,R.jsx)(Z,{children:e},t))})]})})}var oU=3;function sU({children:e,gap:t=oU,fill:n,sx:r,ref:i,...a}){return(0,R.jsx)(TA,{ref:i,spacing:t,sx:{...n&&{flex:1},...r},...a,children:e})}G(Z,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{ratio:n,hasError:r}=t;return{position:`relative`,display:`block`,overflow:`hidden`,borderRadius:`inherit`,...(()=>{if(!n)return{};if(typeof n==`string`)return{width:`100%`,aspectRatio:n};let t={width:`100%`};for(let[r,i]of Object.entries(n))r===`xs`?t.aspectRatio=i:t[e.breakpoints.up(r)]={aspectRatio:i};return t})(),...r&&{backgroundColor:H(e.palette.grey[500],.08)}}}),G(`img`)(()=>({width:`100%`,height:`100%`,objectFit:`cover`,display:`block`})),G(Z)(({theme:e})=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:H(e.palette.grey[500],.08),"&::after":{content:`""`,width:32,height:32,borderRadius:`50%`,border:`3px solid`,borderColor:H(e.palette.grey[500],.16),borderTopColor:e.palette.primary.main,animation:`spin 1s linear infinite`,"@keyframes spin":{from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}}})),G(Z)(()=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`})),G(Z)(({theme:e})=>({width:`100%`,height:`100%`,minHeight:100,display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.palette.text.disabled}));var cU=G(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let n=e.palette.mode===`light`,{color:r,variant:i,disabled:a}=t,o=r==="default"?null:e.palette[r],s=o??{main:e.palette.grey[500],light:e.palette.grey[300],dark:e.palette.grey[700],contrastText:e.palette.common.white},c={height:24,minWidth:24,lineHeight:0,cursor:`default`,borderRadius:(typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4)*.75,alignItems:`center`,whiteSpace:`nowrap`,display:`inline-flex`,justifyContent:`center`,textTransform:`capitalize`,padding:e.spacing(0,.75),fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,transition:e.transitions.create([`all`],{duration:e.transitions.duration.shorter}),...a&&{opacity:.48,pointerEvents:`none`}},l={filled:{color:r==="default"?n?e.palette.common.white:e.palette.grey[800]:s.contrastText,backgroundColor:r==="default"?e.palette.text.primary:s.main},outlined:{color:r==="default"?e.palette.text.primary:s.main,backgroundColor:`transparent`,border:`2px solid ${r==="default"?H(e.palette.grey[500],.32):H(s.main,.48)}`},soft:{color:r==="default"?e.palette.text.secondary:n?s.dark:s.light,backgroundColor:H(r==="default"?e.palette.grey[500]:s.main,.16)},inverted:{color:r==="default"?e.palette.text.primary:s.dark,backgroundColor:e.palette.common.white,border:`1px solid ${H(e.palette.grey[500],.16)}`,...o&&{boxShadow:`inset 0 0 0 1px ${H(o.main,.24)}`}}};return{...c,...l[i]}});function lU({children:e,color:t=`default`,variant:n=`soft`,startIcon:r,endIcon:i,sx:a,disabled:o,ref:s,...c}){let l={color:t,variant:n,disabled:o},u={width:16,height:16,flexShrink:0,"& svg, & img":{width:`100%`,height:`100%`}};return(0,R.jsxs)(cU,{ref:s,ownerState:l,sx:a,...c,children:[r&&(0,R.jsx)(Z,{sx:{mr:.5,...u},children:r}),e,i&&(0,R.jsx)(Z,{sx:{ml:.5,...u},children:i})]})}var uU=G(`div`)(({theme:e})=>({flexGrow:1,width:`100%`,display:`flex`,minHeight:`100%`,alignItems:`center`,justifyContent:`center`,paddingLeft:e.spacing(5),paddingRight:e.spacing(5)}));function dU({portal:e,slots:t,slotProps:n,sx:r,...i}){return(0,R.jsx)(e?tw:S.Fragment,{children:(0,R.jsx)(uU,{sx:r,...i,children:t?.progress??(0,R.jsx)(oO,{color:`inherit`,sx:[{width:1,maxWidth:360},...Array.isArray(n?.progress?.sx)?n.progress.sx:[n?.progress?.sx]],...n?.progress})})})}var fU=G(Z,{shouldForwardProp:e=>e!==`fullScreen`})(({theme:e,fullScreen:t})=>({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(2),padding:e.spacing(3),...t?{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:e.zIndex.modal+1,backgroundColor:e.palette.background.default}:{flexGrow:1,width:`100%`,minHeight:200}}));function pU({variant:e=`circular`,message:t,indicator:n,portal:r=!1,size:i=48,progress:a,fullScreen:o=!1,sx:s}){let c=r?tw:S.Fragment,l=a!==void 0;return(0,R.jsx)(c,{children:(0,R.jsxs)(fU,{fullScreen:o,sx:s,children:[n||(e===`linear`?(0,R.jsx)(oO,{variant:l?`determinate`:`indeterminate`,value:a,color:`primary`,sx:{width:`100%`,maxWidth:360,borderRadius:1}}):(0,R.jsx)(Dv,{variant:l?`determinate`:`indeterminate`,value:a,size:i,thickness:3,color:`primary`})),t&&(0,R.jsx)(Nb,{variant:`body2`,sx:{color:`text.secondary`,mt:1,textAlign:`center`},children:t}),l&&(0,R.jsxs)(Nb,{variant:`caption`,sx:{color:`text.disabled`},children:[Math.round(a),`%`]})]})})}var mU=.75;function hU(e=`top-right`){let t={"top-left":{paperStyles:{ml:-.75},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`}},"top-center":{paperStyles:void 0,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`}},"top-right":{paperStyles:{ml:mU},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`}},"bottom-left":{paperStyles:{ml:-.75},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"bottom-center":{paperStyles:void 0,anchorOrigin:{vertical:`top`,horizontal:`center`},transformOrigin:{vertical:`bottom`,horizontal:`center`}},"bottom-right":{paperStyles:{ml:mU},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`right`}},"left-top":{paperStyles:{mt:-.75},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`left`}},"left-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`}},"left-bottom":{paperStyles:{mt:mU},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"right-top":{paperStyles:{mt:-.75},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`}},"right-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`left`},transformOrigin:{vertical:`center`,horizontal:`right`}},"right-bottom":{paperStyles:{mt:mU},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`right`}}};return t[e]||t[`top-right`]}var gU=G(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,offset:r,placement:i}=t,a={top:{top:0,rotate:`135deg`,translate:`0 -50%`},bottom:{bottom:0,rotate:`-45deg`,translate:`0 50%`},left:{left:0,rotate:`45deg`,translate:`-50% 0`},right:{right:0,rotate:`-135deg`,translate:`50% 0`}},o=()=>i.startsWith(`top-`)?a.top:i.startsWith(`bottom-`)?a.bottom:i.startsWith(`left-`)?a.left:i.startsWith(`right-`)?a.right:{},s=()=>i.endsWith(`-left`)?{left:r}:i.endsWith(`-right`)?{right:r}:i.endsWith(`-top`)?{top:r}:i.endsWith(`-bottom`)?{bottom:r}:i.endsWith(`-center`)?i.startsWith(`top-`)||i.startsWith(`bottom-`)?{left:0,right:0,margin:`auto`}:{top:0,bottom:0,margin:`auto`}:{};return{width:n,height:n,position:`absolute`,borderBottomLeftRadius:n/4,clipPath:`polygon(0% 0%, 100% 100%, 0% 100%)`,backgroundColor:e.palette.background.paper,border:`solid 1px ${H(e.palette.grey[500],.12)}`,...o(),...s()}});function _U({open:e,onClose:t,children:n,anchorEl:r,arrow:i,minWidth:a=140,slotProps:o,...s}){let c=i?.size??14,l=i?.offset??17,u=i?.placement??`top-right`,d=i?.hide??!1,{paperStyles:f,anchorOrigin:p,transformOrigin:m}=hU(u);return(0,R.jsxs)(rk,{open:!!e,anchorEl:r,onClose:t,anchorOrigin:p,transformOrigin:m,slotProps:{...o,paper:{...typeof o?.paper==`object`?o.paper:{},sx:[f,{overflow:`inherit`,[`& .${gO.root}`]:{minWidth:a},[`& .${zd.root}`]:{gap:2}},...typeof o?.paper==`object`&&o.paper&&`sx`in o.paper?Array.isArray(o.paper.sx)?o.paper.sx:[o.paper.sx]:[]]}},...s,children:[!d&&(0,R.jsx)(gU,{ownerState:{size:c,offset:l,placement:u},sx:i?.sx}),n]})}function vU(){let[e,t]=(0,S.useState)(null),n=(0,S.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,S.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}var yU=G(Z,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,autoHide:i,axis:a}=t;return{minWidth:0,minHeight:0,...a===`x`?{overflowX:`auto`,overflowY:`hidden`}:a===`y`?{overflowX:`hidden`,overflowY:`auto`}:{overflow:`auto`},...n&&{flexGrow:1,display:`flex`,flexDirection:`column`},...!r&&y_(e,{autoHide:i}),...r&&{scrollbarWidth:`none`,msOverflowStyle:`none`,"&::-webkit-scrollbar":{display:`none`}}}});function bU({children:e,sx:t,fillContent:n=!1,hideScrollbar:r=!1,autoHide:i=!0,axis:a=`y`,maxHeight:o,minHeight:s,className:c,ref:l,...u}){return(0,R.jsx)(yU,{ref:l,ownerState:{fillContent:n,hideScrollbar:r,autoHide:i,axis:a},className:c,sx:[{...o!==void 0&&{maxHeight:o},...s!==void 0&&{minHeight:s}},...Array.isArray(t)?t:[t]],...u,children:e})}var xU=(0,S.createContext)(null);function SU(){let e=(0,S.useContext)(xU);if(!e)throw Error(`useSnackbar must be used within a SnackbarProvider`);return e}var CU={open:!1,message:``,severity:`info`,duration:5e3,position:{vertical:`bottom`,horizontal:`left`},key:0};function wU({children:e,defaultDuration:t=5e3,defaultPosition:n={vertical:`bottom`,horizontal:`left`},sx:r}){let[i,a]=(0,S.useState)({...CU,duration:t,position:n}),o=(0,S.useCallback)(e=>{let r=typeof e==`string`?{message:e}:e;a(e=>({open:!0,message:r.message,severity:r.severity??`info`,duration:r.duration??t,position:r.position??n,action:r.action,key:r.key??Date.now()}))},[t,n]),s=(0,S.useCallback)((e,t)=>{o({message:e,severity:`success`,...t})},[o]),c=(0,S.useCallback)((e,t)=>{o({message:e,severity:`error`,...t})},[o]),l=(0,S.useCallback)((e,t)=>{o({message:e,severity:`warning`,...t})},[o]),u=(0,S.useCallback)((e,t)=>{o({message:e,severity:`info`,...t})},[o]),d=(0,S.useCallback)(()=>{a(e=>({...e,open:!1}))},[]),f=(0,S.useCallback)((e,t)=>{t!==`clickaway`&&d()},[d]),p=(0,S.useMemo)(()=>({show:o,success:s,error:c,warning:l,info:u,close:d}),[o,s,c,l,u,d]);return(0,R.jsxs)(xU.Provider,{value:p,children:[e,(0,R.jsx)(fA,{open:i.open,autoHideDuration:i.duration,onClose:f,anchorOrigin:i.position,sx:r,children:(0,R.jsx)(QT,{severity:i.severity,variant:`filled`,onClose:f,action:i.action||(0,R.jsx)(Nv,{size:`small`,"aria-label":`close`,color:`inherit`,onClick:d,children:(0,R.jsx)(tm,{fontSize:`small`})}),sx:{width:`100%`,alignItems:`center`},children:i.message})},i.key)]})}G(`span`)(()=>({flexShrink:0,display:`inline-flex`,backgroundColor:`currentColor`}));var TU=G(ny)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),EU=G(vj)(({theme:e})=>({backgroundColor:H(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,backgroundColor:`transparent`}})),DU=G(uy)(({theme:e})=>({"&:hover":{backgroundColor:H(e.palette.primary.main,.04)},"&.Mui-selected":{backgroundColor:H(e.palette.primary.main,.08),"&:hover":{backgroundColor:H(e.palette.primary.main,.12)}}}));function OU({columns:e,data:t,rowKey:n=`id`,selectable:r=!1,selected:i=[],onSelectChange:a,sortable:o=!1,sortBy:s,sortOrder:c=`asc`,onSortChange:l,paginated:u=!1,page:d=0,rowsPerPage:f=10,totalRows:p,onPageChange:m,onRowsPerPageChange:h,rowsPerPageOptions:g=[5,10,25,50],emptyContent:_,loading:v=!1,loadingRows:y=5,dense:b=!1,stickyHeader:x=!1,maxHeight:C,onRowClick:w,containerSx:T,sx:E,ref:D,...O}){let k=(0,S.useCallback)((e,t)=>{if(typeof n==`function`)return n(e);let r=e[n];return r===void 0?t:String(r)},[n]),A=(0,S.useMemo)(()=>t.length>0&&i.length===t.length,[t.length,i.length]),j=(0,S.useMemo)(()=>i.length>0&&i.length<t.length,[t.length,i.length]),M=(0,S.useCallback)(e=>{if(e.target.checked){let e=t.map((e,t)=>k(e,t));a?.(e)}else a?.([])},[t,k,a]),N=(0,S.useCallback)(e=>{let t=i.includes(e)?i.filter(t=>t!==e):[...i,e];a?.(t)},[i,a]),P=(0,S.useCallback)(e=>{l?.(e,s===e&&c===`asc`?`desc`:`asc`)},[s,c,l]),F=(0,S.useCallback)((e,t)=>{m?.(t)},[m]),ee=(0,S.useCallback)(e=>{h?.(parseInt(e.target.value,10)),m?.(0)},[h,m]),te=p??t.length,ne=(0,S.useMemo)(()=>u&&!p?t.slice(d*f,d*f+f):t,[t,u,d,f,p]);return!v&&t.length===0?(0,R.jsx)(TU,{sx:T,children:(0,R.jsx)(Z,{sx:{p:4,textAlign:`center`},children:_||(0,R.jsx)(Nb,{sx:{color:`text.secondary`},children:`No data available`})})}):(0,R.jsxs)(TU,{sx:{maxHeight:C,...T},children:[(0,R.jsxs)(nj,{ref:D,stickyHeader:x,size:b?`small`:`medium`,sx:E,...O,children:[(0,R.jsx)(EU,{children:(0,R.jsxs)(uy,{children:[r&&(0,R.jsx)(gy,{padding:`checkbox`,children:(0,R.jsx)(wx,{indeterminate:j,checked:A,onChange:M})}),e.map(e=>(0,R.jsx)(gy,{align:e.align||`left`,style:{width:e.width,minWidth:e.minWidth},sortDirection:s===e.id&&c,children:o&&e.sortable!==!1?(0,R.jsx)(eM,{active:s===e.id,direction:s===e.id?c:`asc`,onClick:()=>P(String(e.id)),children:e.label}):e.label},String(e.id)))]})}),(0,R.jsxs)(cj,{children:[v&&Array.from({length:Math.max(1,y)},(t,n)=>(0,R.jsxs)(uy,{children:[r&&(0,R.jsx)(gy,{padding:`checkbox`,children:(0,R.jsx)(tA,{variant:`rectangular`,width:18,height:18})}),e.map(e=>(0,R.jsx)(gy,{align:e.align||`left`,children:(0,R.jsx)(tA,{variant:`text`,width:e.width??`80%`})},String(e.id)))]},`loading-${n}`)),!v&&ne.map((t,n)=>{let a=k(t,n),o=i.includes(a);return(0,R.jsxs)(DU,{hover:!0,selected:o,onClick:()=>w?.(t,n),sx:{cursor:w?`pointer`:`default`},children:[r&&(0,R.jsx)(gy,{padding:`checkbox`,children:(0,R.jsx)(wx,{checked:o,onClick:e=>e.stopPropagation(),onChange:()=>N(a)})}),e.map(e=>{let r=t[e.id];return(0,R.jsx)(gy,{align:e.align||`left`,children:e.render?e.render(t,n):e.format?e.format(r):String(r??``)},String(e.id))})]},a)})]})]}),u&&(0,R.jsx)(qj,{component:`div`,count:te,page:d,rowsPerPage:f,rowsPerPageOptions:g,onPageChange:F,onRowsPerPageChange:ee})]})}function kU({variant:e=`text`,...t}){return(0,R.jsx)(tA,{variant:e,...t})}function AU({actions:e,open:t,onOpenChange:n,triggerKey:r=`k`,disableShortcut:i=!1,placeholder:a=`Type a command or search…`,emptyMessage:o=`No matching commands`}){let[s,c]=(0,S.useState)(!1),l=t??s,u=(0,S.useCallback)(e=>{t===void 0&&c(e),n?.(e)},[t,n]),[d,f]=(0,S.useState)(``),[p,m]=(0,S.useState)(0),h=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(i)return;let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===r.toLowerCase()&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),u(!l))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r,i,l,u]),(0,S.useEffect)(()=>{if(l){f(``),m(0);let e=requestAnimationFrame(()=>h.current?.focus());return()=>cancelAnimationFrame(e)}},[l]);let g=(0,S.useMemo)(()=>MU(e,d),[e,d]);(0,S.useEffect)(()=>{p>=g.length&&m(0)},[g.length,p]);let _=(0,S.useCallback)(async e=>{if(!e.disabled){u(!1);try{await e.onSelect()}catch{}}},[u]),v=(0,S.useCallback)(e=>{if(e.key===`ArrowDown`)e.preventDefault(),m(e=>g.length===0?0:(e+1)%g.length);else if(e.key===`ArrowUp`)e.preventDefault(),m(e=>g.length===0?0:(e-1+g.length)%g.length);else if(e.key===`Enter`){e.preventDefault();let t=g[p];t&&_(t)}else e.key===`Escape`&&(e.preventDefault(),u(!1))},[g,p,_,u]),y=(0,S.useMemo)(()=>NU(g),[g]);return(0,R.jsx)(HE,{open:l,onClose:()=>u(!1),fullWidth:!0,maxWidth:`sm`,slotProps:{paper:{sx:{borderRadius:2,mt:`10vh`,alignSelf:`flex-start`}}},children:(0,R.jsxs)(QE,{sx:{p:0},children:[(0,R.jsx)(Z,{sx:{p:2,pb:1},children:(0,R.jsx)(TM,{inputRef:h,fullWidth:!0,variant:`standard`,value:d,onChange:e=>{f(e.target.value),m(0)},onKeyDown:v,placeholder:a,slotProps:{input:{disableUnderline:!0,startAdornment:(0,R.jsx)(Ib,{position:`start`,sx:{ml:.5,mr:1},children:(0,R.jsx)(Z,{component:`span`,sx:{fontSize:18,opacity:.6},children:`⌘`})})}}})}),(0,R.jsx)(dD,{}),(0,R.jsx)(Z,{sx:{maxHeight:360,overflowY:`auto`,py:.5},children:g.length===0?(0,R.jsx)(Z,{sx:{p:3,textAlign:`center`},children:(0,R.jsx)(Nb,{variant:`body2`,sx:{color:`text.secondary`},children:o})}):y.map(e=>(0,R.jsxs)(Z,{children:[e.label?(0,R.jsx)(Nb,{variant:`caption`,sx:{color:`text.secondary`,px:2,py:.75,display:`block`,textTransform:`uppercase`,letterSpacing:.5},children:e.label}):null,e.items.map(e=>(0,R.jsx)(jU,{action:e.action,selected:e.flatIndex===p,onSelect:()=>void _(e.action),onHover:()=>m(e.flatIndex)},e.action.id))]},e.label??`__none__`))})]})})}function jU({action:e,selected:t,onSelect:n,onHover:r}){let i=(0,S.useRef)(null);return(0,S.useEffect)(()=>{t&&i.current&&i.current.scrollIntoView({block:`nearest`})},[t]),(0,R.jsxs)(Z,{ref:i,onMouseEnter:r,onClick:n,sx:n=>({px:2,py:1.25,display:`flex`,alignItems:`center`,gap:1.5,cursor:e.disabled?`not-allowed`:`pointer`,opacity:e.disabled?.5:1,bgcolor:t?H(n.palette.primary.main,.12):`transparent`,"&:hover":{bgcolor:t?H(n.palette.primary.main,.16):H(n.palette.action.hover,1)}}),children:[e.icon?(0,R.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,width:20,opacity:.8},children:e.icon}):null,(0,R.jsx)(Z,{sx:{flex:1,minWidth:0},children:(0,R.jsxs)(TA,{direction:`row`,spacing:1,sx:{alignItems:`baseline`},children:[(0,R.jsx)(Nb,{variant:`body2`,sx:{fontWeight:500},noWrap:!0,children:e.title}),e.subtitle?(0,R.jsx)(Nb,{variant:`caption`,noWrap:!0,sx:{color:`text.secondary`},children:e.subtitle}):null]})}),e.shortcut?.length?(0,R.jsx)(TA,{direction:`row`,spacing:.5,children:e.shortcut.map((e,t)=>(0,R.jsx)(Tb,{size:`small`,label:e,variant:`outlined`,sx:{height:20,fontSize:10,fontFamily:`monospace`}},t))}):null]})}function MU(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){let e=[t.title.toLowerCase()];if(t.subtitle&&e.push(t.subtitle.toLowerCase()),t.keywords?.length)for(let n of t.keywords)e.push(n.toLowerCase());let i=-1;for(let t of e){let e=t.indexOf(n);if(e===-1)continue;let r=e===0?1e3-t.length:100-e;r>i&&(i=r)}i>=0&&r.push({action:t,score:i})}return r.sort((e,t)=>t.score-e.score),r.map(e=>e.action)}function NU(e){let t=new Map,n=0;for(let r of e){let e=r.group,i=e??`__none__`,a=t.get(i);a||(a={label:e,items:[]},t.set(i,a)),a.items.push({action:r,flatIndex:n}),n+=1}return[...t.values()]}function PU({tabs:e,value:t,defaultValue:n,onChange:r,children:i,keepMounted:a=!1,action:o,...s}){let[c,l]=(0,S.useState)(n??e?.[0]?.value??``),u=t??c,d=(0,S.useCallback)((e,n)=>{t===void 0&&l(n),r?.(n)},[t,r]),f=(0,S.useMemo)(()=>{if(e)return e;let t=[];return S.Children.forEach(i,e=>{if((0,S.isValidElement)(e)&&e.type===FU){let n=e.props;t.push({value:n.value,label:n.label??n.value,icon:n.icon,content:n.children,disabled:n.disabled})}}),t},[e,i]),p=o!=null&&o!==!1;return(0,R.jsxs)(Z,{sx:{width:`100%`},children:[(0,R.jsxs)(Z,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2},children:[(0,R.jsx)(bM,{value:u,onChange:d,...s,children:f.map(e=>(0,R.jsx)(Jx,{value:e.value,label:e.label,icon:e.icon,iconPosition:`start`,disabled:e.disabled},e.value))}),p&&(0,R.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,gap:1,flexShrink:0},children:o})]}),f.map(e=>{let t=e.value===u;return!t&&!a||e.content===void 0?null:(0,R.jsx)(Z,{role:`tabpanel`,hidden:!t,id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,sx:{pt:2},children:e.content},e.value)})]})}function FU({children:e}){return(0,R.jsx)(R.Fragment,{children:e})}var IU=t(n(((e,t,n)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof e==`object`?t.exports=r():n.NProgress=r()})(n,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`||(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)})),this}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`};return a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){return(typeof e==`string`?e:u(e)).indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})}))(),1),LU=`var(--prism-palette-primary-main, var(--palette-primary-main, #1976d2))`,RU=`
266
- #nprogress {
267
- top: 0;
268
- left: 0;
269
- width: 100%;
270
- height: 2.5px;
271
- z-index: 9999;
272
- position: fixed;
273
- pointer-events: none;
274
- }
275
- #nprogress .bar {
276
- height: 100%;
277
- background-color: ${LU};
278
- box-shadow: 0 0 2.5px ${LU};
279
- }
280
- #nprogress .peg {
281
- right: 0;
282
- opacity: 1;
283
- width: 100px;
284
- height: 100%;
285
- display: block;
286
- position: absolute;
287
- transform: rotate(3deg) translate(0px, -4px);
288
- box-shadow:
289
- 0 0 10px ${LU},
290
- 0 0 5px ${LU};
291
- }
292
- `;function zU(e){let t=e.getAttribute(`href`)?.trim()??``,n=e.getAttribute(`target`);return t.startsWith(`/`)&&n!==`_blank`}function BU(e,t){try{let n=new URL(e,window.location.origin),r=new URL(t,window.location.origin);return n.pathname===r.pathname&&n.search===r.search}catch{return e===t}}function VU(e,t,n){let r=(0,S.useRef)(``);(0,S.useEffect)(()=>{r.current=window.location.href},[]),(0,S.useEffect)(()=>{let e=e=>{e&&!BU(e,r.current)&&(r.current=e,IU.default.start())},t=t=>{let n=t.target.closest(`a[href]`);n&&zU(n)&&e(n.href)},n=()=>{e(window.location.href)},i=t=>{let n=window.history[t];window.history[t]=new Proxy(n,{apply:(t,n,r)=>{let i=r[2];return typeof i==`string`&&e(new URL(i,window.location.origin).href),t.apply(n,r)}})};return i(`pushState`),i(`replaceState`),document.addEventListener(`click`,t),window.addEventListener(`popstate`,n),()=>{document.removeEventListener(`click`,t),window.removeEventListener(`popstate`,n)}},[]),(0,S.useEffect)(()=>{let e=setTimeout(()=>IU.default.done(),n);return()=>clearTimeout(e)},[e,t,n])}function HU({pathname:e,search:t=``,delay:n=100}){return(0,S.useEffect)(()=>(IU.default.configure({showSpinner:!1}),()=>{IU.default.done()}),[]),VU(e,t,n),(0,R.jsx)(`style`,{children:RU})}function UU({pathname:e}){return(0,S.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}function WU(e){for(let t of[/at\s+(?:async\s+)?([^\s(]+)\s+\((.+?):(\d+):(\d+)\)/,/at\s+(.+?):(\d+):(\d+)/]){let n=e.match(t);if(n){let[,e,t,r,i]=n,a=i!==void 0,o=a?e:null,s=a?t:e,c=parseInt(a?r:t,10),l=parseInt(a?i:r,10),u=!s.includes(`node_modules`)&&s.includes(`src/`);return{functionName:o||null,filePath:GU(s),lineNumber:isNaN(c)?null:c,columnNumber:isNaN(l)?null:l,isAppCode:u}}}return null}function GU(e){let t=e.replace(/\?.*$/,``),n=t.indexOf(`/src/`);if(n!==-1)return t.slice(n+1);let r=t.split(`/`);return r.length>3?r.slice(-3).join(`/`):t}function KU(e){if(!e)return{primary:null,frames:[],raw:``};let t=e.split(`
293
- `),n=[];for(let e of t){let t=WU(e.trim());t&&n.push(t)}return{primary:n.find(e=>e.isAppCode)??n[0]??null,frames:n,raw:e}}function qU(e){let{primary:t}=KU(e.stack);if(!t)return`Unknown location`;let n=[];if(t.functionName&&n.push(`in ${t.functionName}`),t.filePath){let e=t.lineNumber?`${t.filePath}:${t.lineNumber}`:t.filePath;n.push(`(${e})`)}return n.join(` `)||`Unknown location`}function JU({error:e,parsedStack:t,resetErrorBoundary:n,sx:r,showDetails:i}){let[a,o]=(0,S.useState)(!1),[s,c]=(0,S.useState)(!1),l=i??(typeof process<`u`&&!1),u=async()=>{try{let n=[`Error: ${e.message}`,`Location: ${qU(e)}`,``,`Stack Trace:`,t.raw].join(`
294
- `);await navigator.clipboard.writeText(n),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return(0,R.jsxs)(Z,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:200,p:3,textAlign:`center`,...r},children:[(0,R.jsx)(Nb,{variant:`h6`,color:`error`,gutterBottom:!0,children:`Something went wrong`}),(0,R.jsx)(Nb,{variant:`body2`,sx:{color:`text.secondary`,mb:1,maxWidth:400},children:e.message||`An unexpected error occurred`}),l&&t.primary&&(0,R.jsxs)(Nb,{variant:`caption`,sx:{color:`text.secondary`,mb:2,fontFamily:`monospace`},children:[t.primary.filePath,t.primary.lineNumber&&`:${t.primary.lineNumber}`,t.primary.functionName&&` (${t.primary.functionName})`]}),(0,R.jsxs)(Z,{sx:{display:`flex`,gap:1,mb:2},children:[(0,R.jsx)(bb,{variant:`outlined`,onClick:n,children:`Try Again`}),l&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Nv,{size:`small`,onClick:()=>o(!a),"aria-label":a?`Hide stack trace`:`Show stack trace`,"aria-expanded":a,sx:{transform:a?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s`},children:(0,R.jsx)(nm,{})}),(0,R.jsx)(Nv,{size:`small`,onClick:u,title:`Copy error details`,children:(0,R.jsx)(xm,{fontSize:`small`})}),s&&(0,R.jsx)(Nb,{variant:`caption`,sx:{color:`success.main`,alignSelf:`center`},children:`Copied!`})]})]}),l&&(0,R.jsx)(Qv,{in:a,children:(0,R.jsx)(Z,{sx:{mt:1,p:2,bgcolor:`action.hover`,borderRadius:1,maxWidth:600,maxHeight:300,overflow:`auto`,textAlign:`left`},children:(0,R.jsx)(Nb,{variant:`caption`,component:`pre`,sx:{fontFamily:`monospace`,m:0},children:t.frames.map((e,t)=>(0,R.jsxs)(Z,{component:`span`,sx:{display:`block`,color:e.isAppCode?`error.main`:`text.secondary`,fontWeight:e.isAppCode?600:400},children:[e.functionName||`(anonymous)`,` at `,e.filePath||`unknown`,e.lineNumber&&`:${e.lineNumber}`]},t))})})})]})}var YU=class extends S.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){let n=KU(e.stack);this.setState({errorInfo:t}),this.props.onError?.(e,t,n)}componentDidUpdate(e){let{resetKeys:t}=this.props,{hasError:n}=this.state;if(n&&t){let n=e.resetKeys;(n===void 0||n.length!==t.length||t.some((e,t)=>e!==n[t]))&&this.resetErrorBoundary()}}resetErrorBoundary=()=>{this.props.onReset?.(),this.setState({hasError:!1,error:null,errorInfo:null})};render(){let{hasError:e,error:t,errorInfo:n}=this.state,{children:r,fallback:i,sx:a,showDetails:o}=this.props;if(e&&t){let e={error:t,errorInfo:n,parsedStack:KU(t.stack),resetErrorBoundary:this.resetErrorBoundary};return typeof i==`function`?i(e):i||(0,R.jsx)(JU,{...e,sx:a,showDetails:o})}return r}};(0,S.createContext)(null);function XU(e,t){return[e,...Array.isArray(t)?t:t?[t]:[]]}function ZU({severity:e=`info`,variant:t=`standard`,title:n,children:r,onClose:i,closable:a=!1,icon:o,action:s,sx:c,ref:l,...u}){let d=t===`soft`?`standard`:t;return(0,R.jsxs)(QT,{ref:l,...u,severity:e,variant:d,onClose:a?i:void 0,icon:o,action:s,sx:XU(t===`soft`?{backgroundColor:t=>H(t.palette[e].main,t.palette.mode===`light`?.12:.16),color:t=>t.palette.mode===`light`?t.palette[e].dark:t.palette[e].light,"& .MuiAlert-icon":{color:`inherit`}}:{},c),children:[n&&(0,R.jsx)($T,{children:n}),r]})}function QU({severity:e=`error`,title:t,children:n,onClose:r,autoScroll:i=!0,sx:a,ref:o,...s}){let c=(0,S.useRef)(null),l=Gu(c,o);return(0,S.useEffect)(()=>{if(!i)return;let e=requestAnimationFrame(()=>{c.current?.scrollIntoView({block:`nearest`,behavior:`smooth`})});return()=>cancelAnimationFrame(e)},[i]),(0,R.jsxs)(QT,{ref:l,...s,severity:e,onClose:r,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,sx:XU({alignItems:`flex-start`,mb:2},a),children:[t&&(0,R.jsx)($T,{sx:{mb:.5},children:t}),n]})}var $U=G(`div`)(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing(2)})),eW=G(`h6`)(({theme:e})=>({...e.typography.h4,margin:0,padding:0,display:`inline-flex`})),tW=G(`div`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),alignItems:`flex-start`,justifyContent:`flex-end`})),nW=G(`div`)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,gap:e.spacing(2),flexDirection:`column`})),rW=G(`span`)(({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:e.palette.text.disabled})),iW=G(`div`,{shouldForwardProp:e=>e!==`disabled`})(({disabled:e,theme:t})=>({...t.typography.body2,alignItems:`center`,gap:t.spacing(.5),display:`inline-flex`,color:t.palette.text.secondary,...e&&{cursor:`default`,pointerEvents:`none`,color:t.palette.text.primary,fontWeight:600}})),aW=G(`span`)({display:`inherit`,"& > :first-child:not(style)":{width:20,height:20}}),oW=G(`ul`)({display:`flex`,flexDirection:`column`,"& > li":{display:`flex`}});function sW(){return(0,R.jsx)(X,{sx:{fontSize:18},children:(0,R.jsx)(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z`})})}function cW({href:e,label:t,sx:n,linkComponent:r}){let i=r?{component:r,to:e}:{href:e};return(0,R.jsxs)(pO,{color:`inherit`,underline:`none`,sx:[e=>({verticalAlign:`middle`,display:`inline-flex`,alignItems:`center`,"& .PrismBackLinkIcon":{verticalAlign:`inherit`,transform:`translateY(-1px)`,ml:{xs:`-14px`,md:`-18px`},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},"&:hover .PrismBackLinkIcon":{opacity:.48}}),...Array.isArray(n)?n:[n]],...i,children:[(0,R.jsx)(`span`,{className:`PrismBackLinkIcon`,children:(0,R.jsx)(sW,{})}),t]})}function lW({href:e,icon:t,name:n,disabled:r,linkComponent:i}){let a=(0,R.jsxs)(iW,{disabled:r,children:[t&&(0,R.jsx)(aW,{children:t}),n]});return e&&!r?(0,R.jsx)(pO,{color:`inherit`,sx:{display:`inline-flex`},...i?{component:i,to:e}:{href:e},children:a}):a}var uW=new Set([`http:`,`https:`,`mailto:`,`tel:`]);function dW(e){let t=e.trim();if(t.startsWith(`/`)||t.startsWith(`#`))return!0;try{return uW.has(new URL(t,`https://placeholder.invalid`).protocol)}catch{return!1}}function fW({links:e,sx:t,...n}){return(0,R.jsx)(oW,{sx:t,...n,children:e?.filter(dW).map(e=>(0,R.jsx)(`li`,{children:(0,R.jsx)(pO,{href:e,variant:`body2`,target:`_blank`,rel:`noopener noreferrer`,children:e})},e))})}function pW({sx:e,action:t,backHref:n,heading:r,slots:i={},links:a=[],moreLinks:o=[],slotProps:s={},activeLast:c=!1,linkComponent:l,...u}){let d=a[a.length-1]?.name,f=()=>(0,R.jsx)(eW,{...s?.heading,children:n?(0,R.jsx)(cW,{href:n,label:r,linkComponent:l}):r}),p=()=>i?.breadcrumbs??(0,R.jsx)(kne,{separator:(0,R.jsx)(rW,{}),...s?.breadcrumbs,children:a.map((e,t)=>(0,R.jsx)(lW,{icon:e.icon,href:e.href,name:e.name,disabled:e.name===d&&!c,linkComponent:l},e.name??t))}),m=()=>(0,R.jsx)(fW,{links:o,...s?.moreLinks});return(0,R.jsxs)($U,{sx:e,...u,children:[(0,R.jsxs)(tW,{...s?.container,children:[(0,R.jsxs)(nW,{...s?.content,children:[(r||n)&&f(),(!!a.length||i?.breadcrumbs)&&p()]}),t]}),!!o?.length&&m()]})}function mW({steps:e,activeStep:t=0,onStepChange:n,orientation:r=`horizontal`,nonLinear:i=!1,alternativeLabel:a=!1,showContent:o=!1,...s}){let c=e=>{i&&n&&n(e)};return(0,R.jsx)(ZA,{activeStep:t,orientation:r,nonLinear:i,alternativeLabel:a,...s,children:e.map((e,n)=>(0,R.jsxs)(kA,{completed:e.completed??n<t,children:[(0,R.jsx)(Iy,{optional:e.optional?(0,R.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:`Optional`}):e.description?(0,R.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:e.description}):void 0,error:e.error,icon:e.icon,sx:{cursor:i?`pointer`:`default`},onClick:()=>c(n),children:e.label}),r===`vertical`&&o&&e.content&&(0,R.jsx)(GA,{children:e.content})]},n))})}function hW({initialStep:e=0,totalSteps:t,onStepChange:n,onComplete:r}){let[i,a]=(0,S.useState)(e),[o,s]=(0,S.useState)(!1),c=(0,S.useCallback)(e=>{e>=0&&e<t&&(a(e),n?.(e))},[t,n]);return{activeStep:i,nextStep:(0,S.useCallback)(()=>{i===t-1?(s(!0),r?.()):c(i+1)},[i,t,c,r]),prevStep:(0,S.useCallback)(()=>{c(i-1)},[i,c]),goToStep:c,reset:(0,S.useCallback)(()=>{a(0),s(!1),n?.(0)},[n]),isFirstStep:i===0,isLastStep:i===t-1,isCompleted:o}}function gW(...e){return z(e)}YH(`chart__root`),YH(`chart__loading`),YH(`chart__legends__root`),YH(`chart__legends__item__wrap`),YH(`chart__legends__item__root`),YH(`chart__legends__item__dot`),YH(`chart__legends__item__icon`),YH(`chart__legends__item__label`),YH(`chart__legends__item__value`),G(`ul`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),margin:0,padding:0,listStyle:`none`})),G(`li`)({display:`inline-flex`,flexDirection:`column`}),G(`div`)(({theme:e})=>({gap:6,alignItems:`center`,display:`inline-flex`,justifyContent:`flex-start`,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightMedium})),G(`span`)({display:`inline-flex`,color:`var(--icon-color)`,"& > svg":{width:20,height:20}}),G(`span`)({width:12,height:12,flexShrink:0,display:`flex`,borderRadius:`50%`,position:`relative`,alignItems:`center`,justifyContent:`center`,color:`var(--icon-color)`,backgroundColor:`currentColor`}),G(`span`)({flexShrink:0}),G(`span`)(({theme:e})=>({...e.typography.h6,marginTop:e.spacing(1)}));var _W=`modulepreload`,vW=function(e){return`/`+e},yW={},bW=function(e){return e.pathname.endsWith(`.css`)},xW=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},SW=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=vW(t,n);let r=s(t),i=bW(r);return xW(yW,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:_W,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};(0,S.lazy)(()=>SW(()=>import(`./react-apexcharts.esm-C8pn45ml.js`).then(e=>({default:e.default})),__vite__mapDeps([0,1,2]))),G(`div`)(({theme:e})=>({width:`100%`,flexShrink:0,position:`relative`,borderRadius:Number(e.shape.borderRadius)*1.5})),YH(`lightbox__root`),YH(`lightbox__backdrop`),YH(`lightbox__container`),YH(`lightbox__slide`),YH(`lightbox__slide--active`),YH(`lightbox__image`),YH(`lightbox__video`),YH(`lightbox__caption`),YH(`lightbox__toolbar`),YH(`lightbox__toolbar--top`),YH(`lightbox__toolbar--bottom`),YH(`lightbox__toolbar__button`),YH(`lightbox__nav`),YH(`lightbox__nav--prev`),YH(`lightbox__nav--next`),YH(`lightbox__counter`),YH(`lightbox__thumbnails`),YH(`lightbox__thumbnail`),YH(`lightbox__thumbnail--active`),YH(`lightbox__zoom`),YH(`lightbox__zoomed`),YH(`lightbox__loading`),YH(`lightbox__error`),G(HE)(({theme:e})=>({"& .MuiDialog-paper":{backgroundColor:`transparent`,boxShadow:`none`,margin:0,maxWidth:`100%`,maxHeight:`100%`,borderRadius:0},"& .MuiBackdrop-root":{backgroundColor:H(e.palette.common.black,.92),backdropFilter:`blur(8px)`}})),G(Z)({display:`flex`,flexDirection:`column`,width:`100vw`,height:`100vh`,position:`relative`,overflow:`hidden`,userSelect:`none`}),G(Z)(({theme:e,placement:t})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),padding:e.spacing(1,1.5),position:`absolute`,left:0,right:0,zIndex:10,...t===`top`&&{top:0},...t===`bottom`&&{bottom:0},background:`linear-gradient(${t===`top`?`to bottom`:`to top`}, ${H(e.palette.common.black,.55)} 0%, ${H(e.palette.common.black,.2)} 60%, transparent 100%)`,transition:`opacity 0.3s ease`})),G(Nv)(({theme:e})=>({color:H(e.palette.common.white,.85),borderRadius:Number(e.shape.borderRadius)*1.5,padding:6,transition:e.transitions.create([`background-color`,`color`,`transform`],{duration:200}),"&:hover":{backgroundColor:H(e.palette.common.white,.12),color:e.palette.common.white,transform:`scale(1.05)`},"&:active":{transform:`scale(0.95)`},"&.Mui-disabled":{color:H(e.palette.common.white,.2)}})),G(Nb)(({theme:e})=>({color:H(e.palette.common.white,.9),fontSize:`0.75rem`,fontWeight:600,fontVariantNumeric:`tabular-nums`,padding:e.spacing(.375,1),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:H(e.palette.common.white,.1),backdropFilter:`blur(12px)`,border:`1px solid ${H(e.palette.common.white,.08)}`,display:`flex`,alignItems:`center`,letterSpacing:`0.02em`})),G(Z)({flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,overflow:`hidden`}),G(Z)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,willChange:`opacity, transform`}),G(Z)({position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5}),G(`img`)({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform, opacity`,borderRadius:2}),G(Z)({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,maxWidth:`100%`,maxHeight:`100%`}),G(`video`)(({theme:e})=>({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform`,borderRadius:4,"&::-webkit-media-controls-panel":{backgroundColor:H(e.palette.common.black,.6),backdropFilter:`blur(8px)`},"&::-webkit-media-controls-current-time-display, &::-webkit-media-controls-time-remaining-display":{color:e.palette.common.white,fontSize:12}})),G(Z)(({theme:e})=>({position:`absolute`,bottom:e.spacing(2.5),left:`50%`,transform:`translateX(-50%)`,textAlign:`center`,color:e.palette.common.white,padding:e.spacing(1,2.5),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:H(e.palette.common.black,.45),backdropFilter:`blur(16px)`,border:`1px solid ${H(e.palette.common.white,.08)}`,maxWidth:`70%`,zIndex:5,animation:`lightboxCaptionIn 0.3s ease-out`,"@keyframes lightboxCaptionIn":{from:{opacity:0,transform:`translateX(-50%) translateY(8px)`},to:{opacity:1,transform:`translateX(-50%) translateY(0)`}}})),G(Nv)(({theme:e,side:t})=>({position:`absolute`,top:`50%`,transform:`translateY(-50%)`,color:H(e.palette.common.white,.85),zIndex:10,width:44,height:44,borderRadius:`50%`,backgroundColor:H(e.palette.common.white,.08),backdropFilter:`blur(12px)`,border:`1px solid ${H(e.palette.common.white,.06)}`,...t===`left`&&{left:e.spacing(2)},...t===`right`&&{right:e.spacing(2)},transition:e.transitions.create([`background-color`,`color`,`transform`,`box-shadow`],{duration:200}),"&:hover":{backgroundColor:H(e.palette.common.white,.16),color:e.palette.common.white,transform:`translateY(-50%) scale(1.08)`,boxShadow:`0 0 20px ${H(e.palette.primary.main,.15)}`},"&:active":{transform:`translateY(-50%) scale(0.95)`}})),G(Z)(({theme:e})=>({display:`flex`,gap:e.spacing(.75),padding:e.spacing(1,2),justifyContent:`center`,overflowX:`auto`,backgroundColor:H(e.palette.common.black,.5),backdropFilter:`blur(12px)`,borderTop:`1px solid ${H(e.palette.common.white,.06)}`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}})),G(Z)(({theme:e,active:t})=>({flexShrink:0,width:56,height:56,borderRadius:Number(e.shape.borderRadius)*1.5,overflow:`hidden`,cursor:`pointer`,position:`relative`,border:`2px solid ${t?e.palette.primary.main:H(e.palette.common.white,.08)}`,opacity:t?1:.55,transform:t?`scale(1)`:`scale(0.92)`,transition:e.transitions.create([`border-color`,`opacity`,`transform`,`box-shadow`],{duration:200,easing:`cubic-bezier(0.4, 0, 0.2, 1)`}),...t&&{boxShadow:`0 0 12px ${H(e.palette.primary.main,.3)}`},"& img":{width:`100%`,height:`100%`,objectFit:`cover`},"&:hover":{opacity:1,transform:`scale(1)`,borderColor:t?e.palette.primary.main:H(e.palette.common.white,.25)}})),YH(`carousel__root`),YH(`carousel__container`),YH(`carousel__track`),YH(`carousel__slide`),YH(`carousel__slide--active`),YH(`carousel__slide--prev`),YH(`carousel__slide--next`),YH(`carousel__arrow`),YH(`carousel__arrow--prev`),YH(`carousel__arrow--next`),YH(`carousel__arrow--inside`),YH(`carousel__arrow--outside`),YH(`carousel__arrow--disabled`),YH(`carousel__dots`),YH(`carousel__dots--top`),YH(`carousel__dots--bottom`),YH(`carousel__dots--left`),YH(`carousel__dots--right`),YH(`carousel__dot`),YH(`carousel__dot--active`),YH(`carousel__horizontal`),YH(`carousel__vertical`),YH(`carousel__dragging`),YH(`carousel__fade`),G(Z)({position:`relative`,width:`100%`,overflow:`hidden`,outline:`none`}),G(Z)({position:`relative`,width:`100%`,overflow:`hidden`}),G(Z)({display:`flex`,width:`100%`,willChange:`transform`,userSelect:`none`}),G(Z)({flexShrink:0,"& > *":{width:`100%`,height:`100%`}}),G(Nv)(({theme:e,isHorizontal:t,direction:n})=>({position:`absolute`,zIndex:10,backgroundColor:H(e.palette.background.paper,.9),boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:H(e.palette.background.paper,.5)},...t?{top:`50%`,transform:`translateY(-50%)`,...n===`prev`?{left:8}:{right:8}}:{left:`50%`,transform:`translateX(-50%)`,...n===`prev`?{top:8}:{bottom:8}}})),G(Z)(({theme:e,dotsPosition:t})=>({display:`flex`,gap:e.spacing(1),position:`absolute`,zIndex:10,...t===`bottom`&&{bottom:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`top`&&{top:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`left`&&{left:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`},...t===`right`&&{right:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`}})),G(`button`)(({theme:e,active:t})=>({width:8,height:8,padding:0,border:`none`,borderRadius:`50%`,cursor:`pointer`,backgroundColor:t?e.palette.primary.main:H(e.palette.common.black,.3),transition:e.transitions.create([`background-color`,`transform`],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:t?e.palette.primary.main:H(e.palette.common.black,.5),transform:`scale(1.2)`}}));var CW=XH(`nav-section`,[`root`,`vertical`,`horizontal`,`mini`,`ul`,`li`,`subheader`,`item`,`icon`,`texts`,`title`,`caption`,`info`,`arrow`,`active`,`disabled`,`open`]);G(hv)(({theme:e})=>({width:`100%`,cursor:`pointer`,padding:`var(--nav-subheader-padding, 8px 8px 8px 12px)`,display:`flex`,alignItems:`center`,justifyContent:`flex-start`,fontSize:`var(--nav-subheader-font-size, 0.6875rem)`,fontWeight:`var(--nav-subheader-font-weight, 700)`,color:`var(--nav-subheader-color, inherit)`,textTransform:`uppercase`,letterSpacing:`0.08em`,borderRadius:e.shape.borderRadius,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:H(e.palette.grey[500],.08)}})),G(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(0deg)`:`rotate(-90deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}}));var wW=G(hv,{shouldForwardProp:e=>![`active`,`open`,`depth`,`hasChild`].includes(e)})(({theme:e,active:t,open:n,depth:r=1,hasChild:i})=>({width:`100%`,minHeight:`var(--nav-item-min-height, 44px)`,padding:r===1?`var(--nav-item-padding)`:`var(--nav-sub-item-padding)`,marginLeft:r>1?`calc(var(--nav-sub-item-margin-left, 40px) * ${r-1})`:0,borderRadius:`var(--nav-item-radius, ${e.shape.borderRadius}px)`,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg, transparent)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`,"& .nav-icon":{color:`var(--nav-icon-active-color)`}},...n&&{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},"&.Mui-disabled":{color:`var(--nav-item-disabled-color)`,pointerEvents:`none`}}));function TW({className:e,active:t,disabled:n,open:r,depth:i,hasChild:a,ref:o,...s}){return(0,R.jsx)(wW,{ref:o,className:gW(CW.item,t&&CW.active,n&&CW.disabled,r&&CW.open,e),active:t,open:r,depth:i,hasChild:a,disabled:n,...s})}G(`span`)({width:`var(--nav-icon-size, 24px)`,height:`var(--nav-icon-size, 24px)`,flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,margin:`var(--nav-icon-margin, 0 16px 0 0)`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),G(`span`)({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,minWidth:0}),G(`span`)({fontSize:`var(--nav-item-font-size, 0.875rem)`,fontWeight:500,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}),G(`span`)(({theme:e})=>({fontSize:`var(--nav-item-caption-size, 0.75rem)`,color:e.palette.text.disabled,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5})),G(`span`)(({open:e,direction:t=`right`})=>({width:16,height:16,flexShrink:0,marginLeft:6,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?t===`down`?`rotate(180deg)`:`rotate(90deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(45deg)`}})),G(`span`)({marginLeft:6,display:`inline-flex`,alignItems:`center`}),(0,S.createContext)(void 0),G(TW)(({theme:e})=>({flexDirection:`column`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,padding:`var(--nav-item-padding, 8px)`,gap:4})),G(`span`)({fontSize:`var(--nav-item-font-size, 0.625rem)`,fontWeight:500,lineHeight:1.5,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`});var EW=t(n(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;i!==`object`&&i!==`function`||Object.isFrozen(r)||n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ee=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},te=ee(`//`,`$`),ne=ee(`/\\*`,`\\*/`),re=ee(`#`,`$`),ie=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:ee,C_BLOCK_COMMENT_MODE:ne,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:{scope:`number`,begin:O,relevance:0},C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:re,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:D,relevance:0},NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:{scope:`title`,begin:T,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:E,relevance:0}});function ae(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function oe(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function se(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=ae,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ce(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function le(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function ue(e,t){e.relevance===void 0&&(e.relevance=1)}var de=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fe=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],pe=`keyword`;function me(e,t,n=pe){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,me(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,I(n[0],n[1])]})}}function I(e,t){return t?Number(t):+!he(e)}function he(e){return fe.includes(e.toLowerCase())}var ge={},_e=e=>{console.error(e)},ve=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ye=(e,t)=>{ge[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ge[`${e}/${t}`]=!0)},be=Error();function xe(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Se(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw _e(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),be;if(typeof e.beginScope!=`object`||e.beginScope===null)throw _e(`beginScope must be object`),be;xe(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Ce(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw _e(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),be;if(typeof e.endScope!=`object`||e.endScope===null)throw _e(`endScope must be object`),be;xe(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function we(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Te(e){we(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Se(e),Ce(e)}function Ee(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[oe,le,Te,de].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[se,ce,ue].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=me(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Oe(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function De(e){return e?e.endsWithParent||De(e.starts):!1}function Oe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:De(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var ke=`11.11.2`,Ae=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},je=i,Me=a,Ne=Symbol(`nomatch`),Pe=7,Fe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(ve(s.replace(`{}`,n[1])),ve(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(ye(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ye(`10.7.0`,`Please use highlight(code, options) instead.
295
- https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};re(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,re(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Pe&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(ne=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Ne;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}if(r.type===`end`){let e=C(r);if(e!==Ne)return e}if(r.type===`illegal`&&a===``)return r.index===n.length||(P+=`
296
- `),1;if(te>1e5&&te>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw _e(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Ee(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,ee=0,te=0,ne=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){te++,ne?ne=!1:A.matcher.considerAll(),A.matcher.lastIndex=ee;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(ee,e.index),e);ee=e.index+t}E(n.substring(ee))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:je(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:ee,context:n.slice(ee-100,ee+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:je(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:je(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(re(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new Ae(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),re(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Me(l,e)}let E=()=>{k(),ye(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),ye(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}document.readyState===`loading`?(O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0):document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(_e(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)_e(e);else throw e;i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function ee(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function te(e){ee(e),a.push(e)}function ne(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function re(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ae(e){return ye(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ye(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:ae,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:Me,addPlugin:te,removePlugin:ne}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=ke,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in ie)typeof ie[e]==`object`&&n(ie[e]);return Object.assign(e,ie),e},Ie=Fe({});Ie.newInstance=()=>Fe({}),t.exports=Ie,Ie.HighlightJS=Ie,Ie.default=Ie}))()).default,DW=Object.defineProperty,OW=(e,t)=>{let n={};for(var r in e)DW(n,r,{get:e[r],enumerable:!0});return t||DW(n,Symbol.toStringTag,{value:`Module`}),n};function kW(e){this.content=e}kW.prototype={constructor:kW,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new kW(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new kW(n)},addToStart:function(e,t){return new kW([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new kW(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new kW(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=kW.from(e),e.size?new kW(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=kW.from(e),e.size?new kW(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=kW.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},kW.from=function(e){if(e instanceof kW)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new kW(t)};function AW(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&NW(e.charCodeAt(r-1))&&MW(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=AW(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function jW(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&NW(e.charCodeAt(i-1))&&MW(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=jW(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function MW(e){return e>=56320&&e<57344}function NW(e){return e>=55296&&e<56320}var Q=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return AW(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return jW(this,e,t,n)}findIndex(e){if(e==0)return FW(0,e);if(e==this.size)return FW(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?FW(t+1,i):FW(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Q.empty=new Q([],0);var PW={index:0,offset:0};function FW(e,t){return PW.index=e,PW.offset=t,PW}function IW(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!IW(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!IW(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var LW=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&IW(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};LW.none=[];var RW=class extends Error{},zW=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=VW(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(BW(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Q.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};zW.empty=new zW(Q.empty,0,0);function BW(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(BW(a.content,t-i-1,n-i-1)))}function VW(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=VW(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function HW(e,t,n){if(n.openStart>e.depth)throw new RW(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new RW(`Inconsistent open depths`);return UW(e,t,n,0)}function UW(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=UW(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return JW(a,XW(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return JW(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=ZW(n,e);return JW(a,YW(e,i,o,t,r))}}function WW(e,t){if(!t.type.compatibleContent(e.type))throw new RW(`Cannot join `+t.type.name+` onto `+e.type.name)}function GW(e,t,n){let r=e.node(n);return WW(r,t.node(n)),r}function KW(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function qW(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(KW(e.nodeAfter,r),a++));for(let e=a;e<o;e++)KW(i.child(e),r);t&&t.depth==n&&t.textOffset&&KW(t.nodeBefore,r)}function JW(e,t){if(!e.type.validContent(t))throw new RW(`Invalid content for node `+e.type.name);return e.copy(t)}function YW(e,t,n,r,i){let a=e.depth>i&&GW(e,t,i+1),o=r.depth>i&&GW(n,r,i+1),s=[];return qW(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(WW(a,o),KW(JW(a,YW(e,t,n,r,i+1)),s)):(a&&KW(JW(a,XW(e,t,i+1)),s),qW(t,n,i,s),o&&KW(JW(o,XW(n,r,i+1)),s)),qW(r,null,i,s),new Q(s)}function XW(e,t,n){let r=[];return qW(null,e,n,r),e.depth>n&&KW(JW(GW(e,t,n+1),XW(e,t,n+1)),r),qW(t,null,n,r),new Q(r)}function ZW(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Q.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var QW=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return LW.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new nG(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=tG.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else tG.set(t,r=new $W);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%eG,i}},$W=class{constructor(){this.elts=[],this.i=0}},eG=12,tG=new WeakMap,nG=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},rG=Object.create(null),iG=class e{constructor(e,t,n,r=LW.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Q.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&IW(this.attrs,t||e.defaultAttrs||rG)&&LW.sameSet(this.marks,n||LW.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return zW.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new zW(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return HW(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return QW.resolveCached(this,e)}resolveNoCache(e){return QW.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),oG(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Q.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),sG(this.type.attrs,this.attrs,`node`,this.type.name);let e=LW.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];sG(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!LW.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Q.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};iG.prototype.text=void 0;var aG=class e extends iG{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oG(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function oG(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function sG(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var cG=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new lG(t,n);if(r.next==null)return e.empty;let i=uG(r);r.next&&r.err(`Unexpected trailing text`);let a=bG(_G(i));return xG(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Q.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
297
- `)}};cG.empty=new cG(!0);var lG=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function uG(e){let t=[];do t.push(dG(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function dG(e){let t=[];do t.push(fG(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function fG(e){let t=gG(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=mG(e,t);else break;return t}function pG(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function mG(e,t){let n=pG(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:pG(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function hG(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function gG(e){if(e.eat(`(`)){let t=uG(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=hG(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function _G(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function vG(e,t){return t-e}function yG(e,t){let n=[];return r(t),n.sort(vG);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function bG(e){let t=Object.create(null);return n(yG(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);yG(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new cG(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(vG);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function xG(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function SG(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function CG(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function wG(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new DG(e,r,t[r]);return n}var TG=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=wG(e,n.attrs),this.defaultAttrs=SG(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==cG.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:CG(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new iG(this,this.computeAttrs(e),Q.from(t),LW.setFrom(n))}createChecked(e=null,t,n){return t=Q.from(t),this.checkContent(t),new iG(this,this.computeAttrs(e),t,LW.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Q.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(Q.empty,!0);return i?new iG(this,e,t.append(i),LW.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:LW.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function EG(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var DG=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?EG(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},OG=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=wG(e,r.attrs),this.excluded=null;let i=SG(this.attrs);this.instance=i?new LW(this,i):null}create(e=null){return!e&&this.instance?this.instance:new LW(this,CG(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},kG=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=kW.from(e.nodes),t.marks=kW.from(e.marks||{}),this.nodes=TG.compile(this.spec.nodes,this),this.marks=OG.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=cG.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?AG(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:AG(this,n.split(` `))}this.nodeFromJSON=e=>iG.fromJSON(this,e),this.markFromJSON=e=>LW.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof TG))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new aG(n,n.defaultAttrs,e,LW.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function AG(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function jG(e){return e.tag!=null}function MG(e){return e.style!=null}var NG=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(jG(e))this.tags.push(e);else if(MG(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new HG(this,t,!1);return n.addAll(e,LW.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new HG(this,t,!0);return n.addAll(e,LW.none,t.from,t.to),zW.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(WG(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=GG(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=GG(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},PG={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},FG={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},IG={ol:!0,ul:!0},LG=1,RG=2,zG=4;function BG(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?LG:0)|(t===`full`?RG:0)}var VG=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=LW.none,this.match=i||(a&zG?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Q.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&LG)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=Q.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Q.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!PG.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},HG=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=BG(null,t.preserveWhitespace,0)|(n?zG:0);i=r?new VG(r.type,r.attrs,LW.none,!0,t.topMatch||r.type.contentMatch,a):n?new VG(null,null,LW.none,!0,null,a):new VG(e.schema.topNodeType,null,LW.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&RG?`full`:this.localPreserveWS||(r.options&LG)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
298
- `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;IG.hasOwnProperty(a)&&this.parser.normalizeLists&&UG(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:FG.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(PG.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
299
- `),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=LW.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):KG(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=BG(e,i,a.options);a.options&zG&&a.content.length==0&&(o|=zG);let s=LW.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):KG(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new VG(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=LG);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function UG(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&IG.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function WG(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function GG(e){let t={};for(let n in e)t[n]=e[n];return t}function KG(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var qG=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=YG(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return YG(t).createTextNode(e.text);let{dom:n,contentDOM:r}=$G(YG(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&$G(YG(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:$G(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=JG(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return JG(e.marks)}};function JG(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function YG(e){return e.document||window.document}var XG=new WeakMap;function ZG(e){let t=XG.get(e);return t===void 0&&XG.set(e,t=QG(e)),t}function QG(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function $G(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=ZG(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=$G(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var eK=65535,tK=2**16;function nK(e,t){return e+t*tK}function rK(e){return e&eK}function iK(e){return(e-(e&eK))/tK}var aK=1,oK=2,sK=4,cK=8,lK=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&cK)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&sK)>0}},uK=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=rK(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+iK(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:nK(o/3,e-s),f=0;return c&&(f|=e==s?oK:e==u?aK:sK,(t<0?e!=s:e!=u)&&(f|=cK)),new lK(a,f,d)}r+=l-c}return n?e+r:new lK(e+r,0,null)}touches(e,t){let n=0,r=rK(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};uK.empty=new uK([]);var dK=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new lK(e,r,null)}},fK=Object.create(null),pK=class{getMap(){return uK.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=fK[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in fK)throw RangeError(`Duplicate use of step JSON ID `+e);return fK[e]=t,t.prototype.jsonID=e,t}},mK=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof RW)return e.fail(t.message);throw t}}};function hK(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(hK(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return Q.fromArray(r)}var gK=class e extends pK{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){if(this.from==this.to)return new mK(e,null);let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new zW(hK(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return mK.fromReplace(e,this.from,this.to,i)}invert(t){let n=[];return t.nodesBetween(this.from,this.to,(t,r)=>{if(t.isInline&&t.isAtom){let i=this.mark.addToSet(t.marks);if(!LW.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);n.push(new _K(a,o,this.mark));for(let r of t.marks)r.isInSet(i)||n.push(new e(a,o,r))}}}),n.length==0?new _K(this.from,this.from,this.mark):n.length==1?n[0]:new vK(n)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};pK.jsonID(`addMark`,gK);var _K=class e extends pK{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){if(this.from==this.to)return new mK(e,null);let t=e.slice(this.from,this.to),n=new zW(hK(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return mK.fromReplace(e,this.from,this.to,n)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(e,n)=>{e.isInline&&e.isAtom&&this.mark.isInSet(e.marks)&&t.push(new gK(Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark))}),t.length==0?new gK(this.from,this.from,this.mark):t.length==1?t[0]:new vK(t)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};pK.jsonID(`removeMark`,_K);var vK=class e extends pK{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let n=t.apply(e);if(!n.doc)return n;e=n.doc}return new mK(e,null)}invert(t){return new e(this.steps.map(e=>e.invert(t)))}map(t){let n=[];for(let e of this.steps){let r=e.map(t);r&&n.push(r)}return n.length?new e(n):null}toJSON(){return{stepType:`markSet`,steps:this.steps.map(e=>e.toJSON())}}fromJSON(t,n){if(!Array.isArray(n.steps)||!n.steps.every(e=>e.stepType==`addMark`||e.stepType==`removeMark`))throw RangeError(`Invalid JSON for MarkSetStep`);return new e(n.steps.map(e=>pK.fromJSON(t,e)))}};pK.jsonID(`markSet`,vK);var yK=class e extends pK{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return mK.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return mK.fromReplace(e,this.pos,this.pos+1,new zW(Q.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new bK(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};pK.jsonID(`addNodeMark`,yK);var bK=class e extends pK{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return mK.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return mK.fromReplace(e,this.pos,this.pos+1,new zW(Q.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new yK(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};pK.jsonID(`removeNodeMark`,bK);var xK=class e extends pK{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&CK(e,this.from,this.to)?mK.fail(`Structure replace would overwrite content`):mK.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new uK([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?zW.empty:new zW(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?zW.empty:new zW(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,zW.fromJSON(t,n.slice),!!n.structure)}};xK.MAP_BIAS=1,pK.jsonID(`replace`,xK);var SK=class e extends pK{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(CK(e,this.from,this.gapFrom)||CK(e,this.gapTo,this.to)))return mK.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return mK.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?mK.fromReplace(e,this.from,this.to,n):mK.fail(`Content does not fit in gap`)}getMap(){return new uK([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,zW.fromJSON(t,n.slice),n.insert,!!n.structure)}};pK.jsonID(`replaceAround`,SK);function CK(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function wK(e,t,n,r){let i=[],a;e.doc.nodesBetween(t,n,(e,o,s)=>{if(!e.isInline)return;let c=e.marks;if(!r.isInSet(c)&&s.type.allowsMarkType(r.type)){let s=Math.max(o,t),c=Math.min(o+e.nodeSize,n);a&&a.to==s?a.to=c:i.push(a=new gK(s,c,r))}}),i.forEach(t=>e.step(t))}function TK(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline||!e.isAtom)return;a++;let s=null;if(r instanceof OG){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new _K(t.from,t.to,t.style)))}function EK(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new xK(s,l,zW.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new _K(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new zW(Q.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new xK(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(Q.empty,!0);e.replace(s,s,new zW(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function DK(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function OK(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!DK(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function kK(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=Q.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=Q.from(r.node(e).copy(u)),d++):c--;let f=Q.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=Q.from(i.node(e).copy(f)),p++):l++;e.step(new SK(c,l,o,s,new zW(u.append(f),d,p),u.size-d,!0))}function AK(e,t,n=null,r=e){let i=MK(e,t),a=i&&NK(r,t);return a?i.map(jK).concat({type:t,attrs:n}).concat(a.map(jK)):null}function jK(e){return{type:e,attrs:null}}function MK(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function NK(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function PK(e,t,n){let r=Q.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=Q.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new SK(i,a,i,a,new zW(r,0,0),n.length,!0))}function FK(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&RK(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&LK(e,t,n,a),EK(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new SK(c,l,c+1,l-1,new zW(Q.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&IK(e,t,n,a),!1}})}function IK(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function LK(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
300
- `))}})}function RK(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function zK(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new SK(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new zW(Q.from(o),0,0),1,!0))}function BK(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function VK(e,t,n=1,r){let i=e.doc.resolve(t),a=Q.empty,o=Q.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=Q.from(i.node(e).copy(a));let t=r&&r[s];o=Q.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new xK(t,t,new zW(a.append(o),n,n),!0))}function HK(e,t){let n=e.resolve(t),r=n.index();return WK(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function UK(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function WK(e,t){return!!(e&&t&&!e.isLeaf&&UK(e,t))}function GK(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&WK(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function KK(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);LK(e,r.node(),r.before(),s)}o.inlineContent&&EK(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new xK(l,c.map(t+n,-1),zW.empty,!0)),r===!0){let t=e.doc.resolve(l);IK(e,t.node(),t.before(),e.steps.length)}return e}function qK(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function JK(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function YK(e,t,n=t,r=zW.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return XK(i,a,r)?new xK(t,n,r):new ZK(i,a,r).fit()}function XK(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var ZK=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Q.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=Q.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new zW(i,a,o);return e>-1?new SK(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new xK(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=eq(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(Q.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return aq(e,-1)<=t?!1:(this.unplaced.size>1&&aq(e,1)>n&&n++,this.unplaced=new zW(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=eq(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new zW(QK(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new zW(QK(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(tq(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=$K(this.placed,t,Q.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?zW.empty:new zW(QK(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new zW(QK(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!nq(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=nq(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=nq(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=$K(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=$K(this.placed,this.depth,Q.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Q.empty,!0);e.childCount&&(this.placed=$K(this.placed,this.frontier.length,e))}};function QK(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(QK(e.firstChild.content,t-1,n)))}function $K(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($K(e.lastChild.content,t-1,n)))}function eq(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function tq(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,tq(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Q.empty,!0)))),e.copy(r)}function nq(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!rq(n,a.content,o)?s:null}function rq(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function iq(e){return e.spec.defining||e.spec.definingForContent}function aq(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function oq(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(XK(i,a,r))return e.step(new xK(t,n,r));let o=uq(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=iq(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new zW(sq(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function sq(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(sq(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(Q.empty,!0))}return e}function cq(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=qK(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new zW(Q.from(r),0,0))}function lq(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=uq(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function uq(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var dq=class e extends pK{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return mK.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return mK.fromReplace(e,this.pos,this.pos+1,new zW(Q.from(r),0,+!t.isLeaf))}getMap(){return uK.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};pK.jsonID(`attr`,dq);var fq=class e extends pK{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return mK.ok(n)}getMap(){return uK.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};pK.jsonID(`docAttr`,fq);var pq=class extends Error{};pq=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},pq.prototype=Object.create(Error.prototype),pq.prototype.constructor=pq,pq.prototype.name=`TransformError`;var mq=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new dK}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new pq(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=zW.empty){let r=YK(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new zW(Q.from(n),0,0))}delete(e,t){return this.replace(e,t,zW.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return oq(this,e,t,n),this}replaceRangeWith(e,t,n){return cq(this,e,t,n),this}deleteRange(e,t){return lq(this,e,t),this}lift(e,t){return kK(this,e,t),this}join(e,t=1){return KK(this,e,t),this}wrap(e,t){return PK(this,e,t),this}setBlockType(e,t=e,n,r=null){return FK(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return zK(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new dq(e,t,n)),this}setDocAttribute(e,t){return this.step(new fq(e,t)),this}addNodeMark(e,t){return this.step(new yK(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof LW)t.isInSet(n.marks)&&this.step(new bK(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new bK(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return VK(this,e,t,n),this}addMark(e,t,n){return wK(this,e,t,n),this}removeMark(e,t,n){return TK(this,e,t,n),this}clearIncompatible(e,t,n){return EK(this,e,t,n),this}},hq=Object.create(null),gq=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new _q(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=zW.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?zW.empty:t),o==0&&Dq(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),Dq(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new bq(e):Eq(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?Eq(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Eq(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new wq(e.node(0))}static atStart(e){return Eq(e,e,0,0,1)||new wq(e)}static atEnd(e){return Eq(e,e,e.content.size,e.childCount,-1)||new wq(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=hq[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in hq)throw RangeError(`Duplicate use of selection JSON ID `+e);return hq[e]=t,t.prototype.jsonID=e,t}getBookmark(){return bq.between(this.$anchor,this.$head).getBookmark()}};gq.prototype.visible=!0;var _q=class{constructor(e,t){this.$from=e,this.$to=t}},vq=!1;function yq(e){!vq&&!e.parent.inlineContent&&(vq=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var bq=class e extends gq{constructor(e,t=e){yq(e),yq(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return gq.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=zW.empty){if(super.replace(e,t),t==zW.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new xq(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=gq.findFrom(n,r,!0)||gq.findFrom(n,-r,!0);if(e)n=e.$head;else return gq.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(gq.findFrom(t,-r,!0)||gq.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};gq.jsonID(`text`,bq);var xq=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return bq.between(e.resolve(this.anchor),e.resolve(this.head))}},Sq=class e extends gq{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?gq.near(a):new e(a)}content(){return new zW(Q.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Cq(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Sq.prototype.visible=!1,gq.jsonID(`node`,Sq);var Cq=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new xq(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Sq.isSelectable(n)?new Sq(t):gq.near(t)}},wq=class e extends gq{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=zW.empty){if(t==zW.empty){e.delete(0,e.doc.content.size);let t=gq.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Tq}};gq.jsonID(`all`,wq);var Tq={map(){return this},resolve(e){return new wq(e)}};function Eq(e,t,n,r,i,a=!1){if(t.inlineContent)return bq.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=Eq(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Sq.isSelectable(r))return Sq.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Dq(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof xK||i instanceof SK))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(gq.near(e.doc.resolve(o),n))}var Oq=1,kq=2,Aq=4,jq=class extends mq{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Oq)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&Oq)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=kq,this}ensureMarks(e){return LW.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&kq)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||LW.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(gq.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Aq,this}get scrolledIntoView(){return(this.updated&Aq)>0}};function Mq(e,t){return!t||!e?e:e.bind(t)}var Nq=class{constructor(e,t,n){this.name=e,this.init=Mq(t.init,n),this.apply=Mq(t.apply,n)}},Pq=[new Nq(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Nq(`selection`,{init(e,t){return e.selection||gq.atStart(t.doc)},apply(e){return e.selection}}),new Nq(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Nq(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],Fq=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Pq.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new Nq(e.key,e.spec.state,e))})}},Iq=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new jq(this)}static create(t){let n=new Fq(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new Fq(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new Fq(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=iG.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=gq.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function Lq(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=Lq(i,t,{})),n[r]=i}return n}var Rq=class{constructor(e){this.spec=e,this.props={},e.props&&Lq(e.props,this,this.props),this.key=e.key?e.key.key:Bq(`plugin`)}getState(e){return e[this.key]}},zq=Object.create(null);function Bq(e){return e in zq?e+`$`+ ++zq[e]:(zq[e]=0,e+`$`)}var Vq=class{constructor(e=`key`){this.key=Bq(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Hq=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Uq(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var Wq=(e,t,n)=>{let r=Uq(e,n);if(!r)return!1;let i=Xq(r);if(!i){let n=r.blockRange(),i=n&&OK(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(mJ(e,i,t,-1))return!0;if(r.parent.content.size==0&&(Jq(a,`end`)||Sq.isSelectable(a)))for(let n=r.depth;;n--){let o=YK(e.doc,r.before(n),r.after(n),zW.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(Jq(a,`end`)?gq.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):Sq.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},Gq=(e,t,n)=>{let r=Uq(e,n);if(!r)return!1;let i=Xq(r);return i?qq(e,i,t):!1},Kq=(e,t,n)=>{let r=Zq(e,n);if(!r)return!1;let i=eJ(r);return i?qq(e,i,t):!1};function qq(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=YK(e.doc,i,o,zW.empty);if(!s||s.from!=i||s instanceof xK&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(bq.create(t.doc,i)),n(t.scrollIntoView())}return!0}function Jq(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var Yq=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=Xq(r)}let o=a&&a.nodeBefore;return!o||!Sq.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Sq.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Xq(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Zq(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var Qq=(e,t,n)=>{let r=Zq(e,n);if(!r)return!1;let i=eJ(r);if(!i)return!1;let a=i.nodeAfter;if(mJ(e,i,t,1))return!0;if(r.parent.content.size==0&&(Jq(a,`start`)||Sq.isSelectable(a))){let n=YK(e.doc,r.before(),r.after(),zW.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(Jq(a,`start`)?gq.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Sq.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},$q=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=eJ(r)}let o=a&&a.nodeAfter;return!o||!Sq.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Sq.create(e.doc,a.pos)).scrollIntoView()),!0)};function eJ(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var tJ=(e,t)=>{let n=e.selection,r=n instanceof Sq,i;if(r){if(n.node.isTextblock||!HK(e.doc,n.from))return!1;i=n.from}else if(i=GK(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(Sq.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},nJ=(e,t)=>{let n=e.selection,r;if(n instanceof Sq){if(n.node.isTextblock||!HK(e.doc,n.to))return!1;r=n.to}else if(r=GK(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},rJ=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&OK(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},iJ=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
301
- `).scrollIntoView()),!0)};function aJ(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var oJ=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=aJ(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(gq.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},sJ=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof wq||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=aJ(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(bq.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},cJ=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(BK(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&OK(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function lJ(e){return(t,n)=>{if(t.selection instanceof Sq&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!BK(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof bq||t.selection instanceof wq)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=aJ(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=BK(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,BK(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var uJ=lJ(),dJ=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(Sq.create(e.doc,i))),!0)},fJ=(e,t)=>(t&&t(e.tr.setSelection(new wq(e.doc))),!0);function pJ(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||HK(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function mJ(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&pJ(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=Q.empty;for(let e=o.length-1;e>=0;e--)s=Q.from(o[e].create(null,s));s=Q.from(i.copy(s));let c=e.tr.step(new SK(t.pos-1,r,t.pos,r,new zW(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&HK(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:gq.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&OK(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&Jq(a,`start`,!0)&&Jq(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=Q.empty;for(let e=o.length-1;e>=0;e--)r=Q.from(o[e].copy(r));n(e.tr.step(new SK(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new zW(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function hJ(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(bq.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var gJ=hJ(-1),_J=hJ(1);function vJ(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&AK(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function yJ(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function bJ(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var xJ=bJ(Hq,Wq,Yq),SJ=bJ(Hq,Qq,$q),CJ={Enter:bJ(iJ,sJ,cJ,uJ),"Mod-Enter":oJ,Backspace:xJ,"Mod-Backspace":xJ,"Shift-Backspace":xJ,Delete:SJ,"Mod-Delete":SJ,"Mod-a":fJ},wJ={"Ctrl-h":CJ.Backspace,"Alt-Backspace":CJ[`Mod-Backspace`],"Ctrl-d":CJ.Delete,"Ctrl-Alt-Backspace":CJ[`Mod-Delete`],"Alt-Delete":CJ[`Mod-Delete`],"Alt-d":CJ[`Mod-Delete`],"Ctrl-a":gJ,"Ctrl-e":_J};for(let e in CJ)wJ[e]=CJ[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function TJ(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return EJ(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function EJ(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new nG(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new nG(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=AK(a,n,r,t);return s?(e&&DJ(e,t,s,i,n),!0):!1}function DJ(e,t,n,r,i){let a=Q.empty;for(let e=n.length-1;e>=0;e--)a=Q.from(n[e].type.create(n[e].attrs,a));e.step(new SK(t.start-(r?2:0),t.end,t.start,t.end,new zW(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&BK(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function OJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?kJ(t,n,e,a):AJ(t,n,a):!0:!1}}function kJ(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new SK(a-1,o,a,o,new zW(Q.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new nG(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=OK(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return HK(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function AJ(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?Q.empty:Q.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new SK(d-+!!s,f+ +!!c,d+1,f-1,new zW((s?Q.empty:Q.from(i.copy(Q.empty))).append(c?Q.empty:Q.from(i.copy(Q.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function jJ(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=Q.from(r?e.create():null),o=new zW(Q.from(e.create(null,Q.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new SK(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var MJ=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},NJ=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},PJ=null,FJ=function(e,t,n){let r=PJ||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},IJ=function(){PJ=null},LJ=function(e,t,n,r){return n&&(zJ(e,t,n,r,-1)||zJ(e,t,n,r,1))},RJ=/^(img|br|input|textarea|hr)$/i;function zJ(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:BJ(e))){let n=e.parentNode;if(!n||!VJ(n)||qJ(e)||RJ.test(e.nodeName)||e.contentEditable==`false`)return!1;t=MJ(e)+(i<0?0:1),e=n}else if(VJ(e)){let n=e.childNodes[t+(i<0?-1:0)];if(VJ(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?BJ(e):0}else return!1}}function BJ(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function VJ(e){return e.nodeType==1}function HJ(e){return e.nodeType==3}function UJ(e,t){return t?e.contains(VJ(t)?t:t.parentNode):!1}function WJ(e,t){for(;;){if(HJ(e)&&t)return e;if(VJ(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=BJ(e)}else if(e.parentNode&&!qJ(e))t=MJ(e),e=e.parentNode;else return null}}function GJ(e,t){for(;;){if(HJ(e)&&t<e.nodeValue.length)return e;if(VJ(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!qJ(e))t=MJ(e)+1,e=e.parentNode;else return null}}function KJ(e,t,n){for(let r=t==0,i=t==BJ(e);r||i;){if(e==n)return!0;let t=MJ(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==BJ(e)}}function qJ(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var JJ=function(e){return e.focusNode&&LJ(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function YJ(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function XJ(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function ZJ(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(BJ(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(BJ(r.startContainer),r.startOffset)}}}var QJ=typeof navigator<`u`?navigator:null,$J=typeof document<`u`?document:null,eY=QJ&&QJ.userAgent||``,tY=/Edge\/(\d+)/.exec(eY),nY=/MSIE \d/.exec(eY),rY=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(eY),iY=!!(nY||rY||tY),aY=nY?document.documentMode:rY?+rY[1]:tY?+tY[1]:0,oY=!iY&&/gecko\/(\d+)/i.test(eY);oY&&+(/Firefox\/(\d+)/.exec(eY)||[0,0])[1];var sY=!iY&&/Chrome\/(\d+)/.exec(eY),cY=!!sY,lY=sY?+sY[1]:0,uY=!iY&&!!QJ&&/Apple Computer/.test(QJ.vendor),dY=uY&&(/Mobile\/\w+/.test(eY)||!!QJ&&QJ.maxTouchPoints>2),fY=dY||(QJ?/Mac/.test(QJ.platform):!1),pY=QJ?/Win/.test(QJ.platform):!1,mY=/Android \d/.test(eY),hY=!!$J&&`webkitFontSmoothing`in $J.documentElement.style,gY=hY?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function _Y(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function vY(e,t){return typeof e==`number`?e:e[t]}function yY(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function bY(e,t,n){if(!FY(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!VJ(o)){o=NJ(o);continue}let e=o==a.body,n=e?_Y(a):yY(o),s=0,c=0;if(t.top<n.top+vY(r,`top`)?c=-(n.top-t.top+vY(i,`top`)):t.bottom>n.bottom-vY(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+vY(i,`top`)-n.top:t.bottom-n.bottom+vY(i,`bottom`)),t.left<n.left+vY(r,`left`)?s=-(n.left-t.left+vY(i,`left`)):t.right>n.right-vY(r,`right`)&&(s=t.right-n.right+vY(i,`right`)),s||c){if(e)a.defaultView.scrollBy(s,c);else{let e=o.scrollLeft,n=o.scrollTop;c&&(o.scrollTop+=c),s&&(o.scrollLeft+=s);let r=o.scrollLeft-e,i=o.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}}let l=e?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(l))break;o=l==`absolute`?o.offsetParent:NJ(o)}}function xY(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:SY(e.dom)}}function SY(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=NJ(r));return t}function CY({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;wY(n,r==0?0:r-t)}function wY(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var TY=null;function EY(e){if(e.setActive)return e.setActive();if(TY)return e.focus(TY);let t=SY(e);e.focus(TY==null?{get preventScroll(){return TY={preventScroll:!0},!0}}:void 0),TY||(TY=!1,wY(t,0))}function DY(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(VJ(u))e=u.getClientRects();else if(HJ(u))e=FJ(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&HJ(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,VJ(u)&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&HJ(n)?OY(n,i):!n||r?{node:e,offset:a}:DY(n,i)}function OY(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=IY(r,1);if(n.top!=n.bottom&&kY(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function kY(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function AY(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function jY(e,t,n){let{node:r,offset:i}=DY(t,n),a=-1;if(VJ(r)&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function MY(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(VJ(t.dom)&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function NY(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(VJ(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(kY(t,i))return NY(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function PY(e,t){let n=e.dom.ownerDocument,r,i=0,a=ZJ(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let n=e.dom.getBoundingClientRect();if(!kY(t,n)||(o=NY(e.dom,t,n),!o))return null}if(uY)for(let e=o;r&&e;e=NJ(e))e.draggable&&(r=void 0);if(o=AY(o,t),r){if(oY&&VJ(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;hY&&i&&VJ(r)&&VJ(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&VJ(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&VJ(r)&&r.childNodes[i-1].nodeName==`BR`||(s=MY(e,r,i,t))}s??=jY(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function FY(e){return e.top<e.bottom||e.left<e.right}function IY(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(FY(e))return e}return Array.prototype.find.call(n,FY)||e.getBoundingClientRect()}var LY=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function RY(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=hY||oY;if(HJ(r)){if(o&&(LY.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=IY(FJ(r,i,i),n);if(oY&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=IY(FJ(r,i-1,i-1),-1);if(t.top==e.top){let n=IY(FJ(r,i,i+1),-1);if(n.top!=e.top)return zY(n,n.left<t.left)}}return e}{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,zY(IY(FJ(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==BJ(r))){let e=r.childNodes[i-1];if(VJ(e))return BY(e.getBoundingClientRect(),!1)}if(a==null&&i<BJ(r)){let e=r.childNodes[i];if(VJ(e))return BY(e.getBoundingClientRect(),!0)}return BY(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==BJ(r))){let e=r.childNodes[i-1],t=HJ(e)?FJ(e,BJ(e)-+!o):VJ(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return zY(IY(t,1),!1)}if(a==null&&i<BJ(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?HJ(e)?FJ(e,0,+!o):VJ(e)?e:null:null;if(t)return zY(IY(t,-1),!0)}return zY(IY(HJ(r)?FJ(r):r,-n),n>=0)}function zY(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function BY(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function VY(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function HY(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return VY(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=RY(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(VJ(e))t=e.getClientRects();else if(HJ(e))t=FJ(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var UY=/[\u0590-\u08ac]/;function WY(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!UY.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:VY(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!UJ(l,u)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var GY=null,KY=null,qY=!1;function JY(e,t,n){return GY==t&&KY==n?qY:(GY=t,KY=n,qY=n==`up`||n==`down`?HY(e,t,n):WY(e,t,n))}var YY=0,XY=1,ZY=2,QY=3,$Y=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=YY,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&UJ(this.contentDOM,e)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>MJ(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM)){let n=e.compareDocumentPosition(this.contentDOM);r=n&16?t>Array.from(e.childNodes).findIndex(e=>e.contains(this.contentDOM)):!(n&4)}else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node)){if(n&&(a=i.nodeDOM)&&!(VJ(a)?UJ(a,e):a==e))n=!1;else return i}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(;n>0;n--){let e=this.children[n-1];if(e.size||!(e instanceof oX||e instanceof eX&&e.side>=0))break}if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?MJ(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?MJ(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=MJ(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=MJ(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(!VJ(t)||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((oY||uY)&&e==t){let{node:e,offset:t}=o;if(HJ(e)){if(u=!!(t&&e.nodeValue[t-1]==`
302
- `),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:MJ(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(oY&&l.focusNode&&l.focusNode!=s.node&&VJ(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&uY)&&LJ(o.node,o.offset,l.anchorNode,l.anchorOffset)&&LJ(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&oY)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?ZY:XY,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=QY:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ZY:QY}n=a}this.dirty=ZY}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?ZY:XY;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},eX=class extends $Y{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){let e=VJ(a)?a:document.createElement(`span`);e!=a&&e.appendChild(a),e.hasAttribute(`contenteditable`)||(e.contentEditable=`false`),e.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==YY&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},tX=class extends $Y{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},nX=class e extends $Y{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return o&&o.dom||(o=qG.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&QY||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=QY&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=YY){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=YY}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=CX(a,n,o,r)),t>0&&(a=CX(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},rX=class e extends $Y{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(!HJ(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=qG.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=mX(u,r,n),l?c=new sX(t,n,r,i,u,d||null,f,l):n.isText?new aX(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>VJ(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>Q.empty}}return t}matchesNode(e,t,n){return this.dirty==YY&&e.eq(this.node)&&hX(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new _X(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;bX(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?LW.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,u,d)=>{s.syncToMarks(t.marks,n,e,d),l&&t.isAtom&&!t.isText&&s.addHackNode(`IMG`,s.top);let f;s.findNodeMatch(t,a,u,d)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(f=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,u,f,e)||s.updateNextNode(t,a,u,e,d,r)||s.addNode(t,a,u,e,r),r+=t.nodeSize,c&&(l=t.isAtom&&!t.isText)}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==ZY)&&(a&&this.protectLocalComposition(e,a),cX(this.contentDOM,this.children,e),dY&&xX(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof bq)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=SX(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new tX(this,i,t,r);e.input.compositionNodes.push(a),this.children=CX(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==QY||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=YY}updateOuterDeco(e){if(hX(e,this.outerDeco))return;let t=!VJ(this.nodeDOM),n=this.dom;this.dom=fX(this.dom,this.nodeDOM,dX(this.outerDeco,this.node,t),dX(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){VJ(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){VJ(this.nodeDOM)&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function iX(e,t,n,r,i){mX(r,t,e);let a=new rX(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var aX=class e extends rX{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==QY||this.dirty!=YY&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=YY||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=YY,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=QY)}get domAtom(){return!1}isText(e){return this.node.text==e}},oX=class extends $Y{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==YY&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},sX=class extends rX{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==QY)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function cX(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=gX(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof nX){let t=r?r.previousSibling:e.lastChild;cX(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=gX(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var lX=function(e){e&&(this.nodeName=e)};lX.prototype=Object.create(null);var uX=[new lX];function dX(e,t,n){if(e.length==0)return uX;let r=n?uX[0]:new lX,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new lX(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new lX(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function fX(e,t,n,r){if(n==uX&&r==uX)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=uX[0]),i=t}pX(i,o||uX[0],a)}return i}function pX(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function mX(e,t,n){return fX(e,e,uX,dX(t,n,!VJ(e)))}function hX(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function gX(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var _X=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=vX(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=YY,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof nX&&t.dirty!=QY&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=nX.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==QY&&a.dom==a.contentDOM&&(a.dirty=ZY),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof rX){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=QY&&hX(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=ZY,u.updateChildren(r,a+1),u.dirty=YY),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!hX(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=rX.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=rX.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new eX(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof nX;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof aX)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((uY||cY)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new oX(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||VJ(e)&&e.contains(this.lock.parentNode))}};function vX(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof nX)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function yX(e,t){return e.type.side-t.type.side}function bX(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u){if(d){d.sort(yX);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c)}let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function xX(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function SX(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function CX(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function wX(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(JJ(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Sq.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&KJ(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Sq(o==e?s:r.resolve(e))}else if(oY&&t==`key`&&o>e.state.selection.to&&VJ(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let e=n.focusNode;;e=e.parentNode){if(getComputedStyle(e).overflow!=`visible`){l=gq.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!VJ(e.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=FX(e,u,s,n)}return l}function TX(e){return e.editable?e.hasFocus():LX(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function EX(e,t=!1){let n=e.state.selection;if(NX(e,n),!TX(e))return;let r=e.input.mouseDown;if(!t&&cY&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&LJ(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)MX(e);else{let{anchor:r,head:i}=n,a,o;DX&&!(n instanceof bq)&&(n.$from.parent.inlineContent||(a=OX(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=OX(e,n.to))),e.docView.setSelection(r,i,e,t),DX&&(a&&AX(a),o&&AX(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&jX(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var DX=uY||cY&&lY<63;function OX(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(uY&&i&&i.contentEditable==`false`)return kX(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return kX(i);if(a)return kX(a)}}function kX(e){return e.contentEditable=`true`,uY&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function AX(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function jX(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!TX(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function MX(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,MJ(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&iY&&aY<=11&&(n.disabled=!0,n.disabled=!1)}function NX(e,t){if(t instanceof Sq){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(PX(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else PX(e)}function PX(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function FX(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||bq.between(t,n,r)}function IX(e){return e.editable&&!e.hasFocus()?!1:LX(e)}function LX(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return UJ(e.dom,t.anchorNode)&&(e.editable||UJ(e.dom,t.focusNode))}catch{return!1}}function RX(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return LJ(t.node,t.offset,n.anchorNode,n.anchorOffset)}function zX(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&gq.findFrom(a,t)}function BX(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function VX(e,t,n){let r=e.state.selection;if(r instanceof bq){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return BX(e,new bq(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=zX(e.state,t);return n&&n instanceof Sq?BX(e,n):!1}if(!fY||n.indexOf(`m`)<0){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?Sq.isSelectable(i)?BX(e,new Sq(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):BX(e,new bq(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof Sq&&r.node.isInline)return BX(e,new bq(t>0?r.$to:r.$from));else{let n=zX(e.state,t);return n?BX(e,n):!1}}function HX(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):VJ(e)&&e.contentEditable==`false`}function UX(e,t){return t<0?WX(e):GX(e)}function WX(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(oY&&VJ(n)&&r<BJ(n)&&HX(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!VJ(n))break;let e=n.childNodes[r-1];if(HX(e,-1))i=n,a=--r;else if(HJ(e))n=e,r=n.nodeValue.length;else break}else if(KX(n))break;else{let t=n.previousSibling;for(;t&&HX(t,-1);)i=n.parentNode,a=MJ(t),t=t.previousSibling;if(t)n=t,r=BJ(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?YX(e,n,r):i&&YX(e,i,a)}function GX(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=BJ(n),a,o;for(;;)if(r<i){if(!VJ(n))break;let e=n.childNodes[r];if(HX(e,1))a=n,o=++r;else break}else if(KX(n))break;else{let t=n.nextSibling;for(;t&&HX(t,1);)a=t.parentNode,o=MJ(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=BJ(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&YX(e,a,o)}function KX(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function qX(e,t){for(;e&&t==e.childNodes.length&&!qJ(e);)t=MJ(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(HJ(n))return n;if(VJ(n)&&n.contentEditable==`false`)break;e=n,t=0}}function JX(e,t){for(;e&&!t&&!qJ(e);)t=MJ(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(HJ(n))return n;if(VJ(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function YX(e,t,n){if(!HJ(t)){let e,r;(r=qX(t,n))?(t=r,n=0):(e=JX(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;JJ(i)?r.collapse(t,n):r.extend&&(r.collapse(i.anchorNode,i.anchorOffset),r.extend(t,n)),e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&EX(e)},50)}function XX(e,t){let n=e.state.doc.resolve(t);if(!(cY||pY)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}let r=e.dom;for(let t=n.depth;t>0;t--)if(n.node(t).isBlock){r=e.nodeDOM(n.before(t))||r;break}return getComputedStyle(r).direction==`rtl`?`rtl`:`ltr`}function ZX(e,t,n){let r=e.state.selection;if(r instanceof bq&&!r.empty||n.indexOf(`s`)>-1||fY&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=zX(e.state,t);if(n&&n instanceof Sq)return BX(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof wq?gq.near(n,t):gq.findFrom(n,t);return o?BX(e,o):!1}return!1}function QX(e,t){if(!(e.state.selection instanceof bq))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function $X(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function eZ(e){if(!uY||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&VJ(t)&&n==0&&t.firstChild&&VJ(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;$X(e,n,`true`),setTimeout(()=>$X(e,n,`false`),20)}return!1}function tZ(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function nZ(e,t){let n=t.keyCode,r=tZ(t);if(n==8||fY&&n==72&&r==`c`)return QX(e,-1)||UX(e,-1);if(n==46&&!t.shiftKey||fY&&n==68&&r==`c`)return QX(e,1)||UX(e,1);if(n==13||n==27)return!0;if(n==37||fY&&n==66&&r==`c`){let t=n==37?XX(e,e.state.selection.from)==`ltr`?-1:1:-1;return VX(e,t,r)||UX(e,t)}if(n==39||fY&&n==70&&r==`c`){let t=n==39?XX(e,e.state.selection.from)==`ltr`?1:-1:1;return VX(e,t,r)||UX(e,t)}return n==38||fY&&n==80&&r==`c`?ZX(e,-1,r)||UX(e,-1):n==40||fY&&n==78&&r==`c`?eZ(e)||ZX(e,1,r)||UX(e,1):!(r!=(fY?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function rZ(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||qG.fromSchema(e.state.schema),s=pZ(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&VJ(l)&&(u=fZ[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&VJ(l)&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
303
-
304
- `),slice:t}}function iZ(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new zW(Q.from(e.state.schema.text(t.replace(/\r\n?/g,`
305
- `))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=qG.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=gZ(n),hY&&_Z(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&!VJ(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||NG.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!aZ.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=vZ(dZ(s,+u[1],+u[2]),u[4]);else if(s=zW.maxOpen(oZ(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=dZ(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var aZ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function oZ(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&cZ(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=lZ(a[a.length-1],i.length));let n=sZ(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return Q.from(a)}return e}function sZ(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Q.from(e));return e}function cZ(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=cZ(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Q.from(sZ(n,e,i+1))))}}function lZ(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,lZ(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Q.empty,!0);return e.copy(n.append(r))}function uZ(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=uZ(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Q.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function dZ(e,t,n){return t<e.openStart&&(e=new zW(uZ(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new zW(uZ(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var fZ={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function pZ(){return document.implementation.createHTMLDocument(`title`)}var mZ=null;function hZ(e){let t=window.trustedTypes;if(!t)return e;if(!mZ){if(mZ=t.defaultPolicy)try{return mZ.createHTML(e)}catch{}mZ=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return mZ.createHTML(e)}function gZ(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=pZ(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&fZ[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=hZ(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function _Z(e){let t=e.querySelectorAll(cY?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function vZ(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{i=Q.from(t.create(r[e+1],i))}catch{break}a++,o++}return new zW(i,a,o)}var yZ={},bZ={},xZ={touchstart:!0,touchmove:!0},SZ=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function CZ(e){for(let t in yZ){let n=yZ[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{OZ(e,t)&&!DZ(e,t)&&(e.editable||!(t.type in bZ))&&n(e,t)},xZ[t]?{passive:!0}:void 0)}uY&&e.dom.addEventListener(`input`,()=>null),EZ(e)}function wZ(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function TZ(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function EZ(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>DZ(e,t))})}function DZ(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function OZ(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function kZ(e,t){!DZ(e,t)&&yZ[t.type]&&(e.editable||!(t.type in bZ))&&yZ[t.type](e,t)}bZ.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!KZ(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(mY&&cY&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),dY&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,YJ(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||nZ(e,n)?n.preventDefault():wZ(e,`key`)}},bZ.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},bZ.keypress=(e,t)=>{let n=t;if(KZ(e)||!n.charCode||n.ctrlKey&&!n.altKey||fY&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof bq)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function AZ(e){return{left:e.clientX,top:e.clientY}}function jZ(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function MZ(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function NZ(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta(`pointer`,!0),e.dispatch(r)}function PZ(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Sq.isSelectable(r)?(NZ(e,new Sq(n)),!0):!1}function FZ(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Sq&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(Sq.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i!=null&&(NZ(e,Sq.create(e.state.doc,i)),!0)}function IZ(e,t,n,r,i){return MZ(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?FZ(e,n):PZ(e,n))}function LZ(e,t,n,r){return MZ(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function RZ(e,t,n,r){return MZ(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||zZ(e,n,r)}function zZ(e,t,n){if(n.button!=0)return!1;let r=BZ(e,t,!0),i=e.state.doc;return r?(NZ(e,r),r instanceof bq&&i.eq(e.state.doc)&&(e.input.mouseDown=new GZ(e,r)),!0):!1}function BZ(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?bq.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return bq.create(r,a+1,a+1+t.content.size);if(n&&Sq.isSelectable(t))return Sq.create(r,a)}return null}function VZ(e){return QZ(e)}var HZ=fY?`metaKey`:`ctrlKey`;yZ.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=VZ(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&jZ(n,e.input.lastClick)&&!n[HZ]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(AZ(n));o&&(a==`singleClick`?e.input.mouseDown=new WZ(e,o,n,!!r):(a==`doubleClick`?LZ:RZ)(e,o.pos,o.inside,n)?n.preventDefault():wZ(e,`pointer`))};var UZ=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},WZ=class extends UZ{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[HZ],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&VJ(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Sq&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&oY&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),wZ(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||EX(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(AZ(e))),this.updateAllowDefault(e),this.allowDefault||!t?wZ(this.view,`pointer`):IZ(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||uY&&this.mightDrag&&!this.mightDrag.node.isAtom||cY&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(NZ(this.view,gq.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):wZ(this.view,`pointer`)}move(e){this.updateAllowDefault(e),wZ(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},GZ=class extends UZ{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),wZ(this.view,`pointer`);let t=this.view.posAtCoords(AZ(e)),n=t&&BZ(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];NZ(this.view,bq.create(r,a,o))}};yZ.touchstart=e=>{e.input.lastTouch=Date.now(),VZ(e),wZ(e,`pointer`)},yZ.touchmove=e=>{e.input.lastTouch=Date.now(),wZ(e,`pointer`)},yZ.contextmenu=e=>VZ(e);function KZ(e,t){return e.composing?!0:uY&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var qZ=mY?5e3:-1;bZ.compositionstart=bZ.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof bq&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||cY&&pY&&JZ(e)))e.markCursor=e.state.storedMarks||n.marks(),QZ(e,!0),e.markCursor=null;else if(QZ(e,!t.selection.empty),oY&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&VJ(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(HJ(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}YZ(e,qZ)};function JZ(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!VJ(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return VJ(r)&&r.contentEditable==`false`}bZ.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,YZ(e,20))};function YZ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>QZ(e),t))}function XZ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function ZZ(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=WJ(t.focusNode,t.focusOffset),r=GJ(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function QZ(e,t=!1){if(!(mY&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),XZ(e),t||e.docView&&e.docView.dirty){let n=wX(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function $Z(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var eQ=iY&&aY<15||dY&&gY<604;yZ.copy=bZ.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=eQ?null:n.clipboardData,{dom:o,text:s}=rZ(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):$Z(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function tQ(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function nQ(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?rQ(e,r.value,null,i,t):rQ(e,r.textContent,r.innerHTML,i,t)},50)}function rQ(e,t,n,r,i){let a=iZ(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||zW.empty)))return!0;if(!a)return!1;let o=tQ(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function iQ(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}bZ.paste=(e,t)=>{let n=t;if(e.composing&&!mY)return;let r=eQ?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&rQ(e,iQ(r),r.getData(`text/html`),i,n)?n.preventDefault():nQ(e,n)};var aQ=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},oQ=fY?`altKey`:`ctrlKey`;function sQ(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[oQ]:!n}yZ.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(AZ(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Sq?i.to-1:i.to))){if(r&&r.mightDrag)o=Sq.create(e.state.doc,r.mightDrag.pos);else if(n.target&&VJ(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Sq.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=rZ(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!cY||lY>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(eQ?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,eQ||n.dataTransfer.setData(`text/plain`,c),e.dragging=new aQ(l,sQ(e,n),o)},yZ.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},bZ.dragover=bZ.dragenter=(e,t)=>t.preventDefault(),bZ.drop=(e,t)=>{try{cQ(e,t,e.dragging)}finally{e.dragging=null}};function cQ(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(AZ(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=iZ(e,iQ(t.dataTransfer),eQ?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&sQ(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||zW.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?JK(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&Sq.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Sq(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(FX(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}yZ.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&EX(e)},20))},yZ.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},yZ.beforeinput=(e,t)=>{if(mY&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,YJ(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in bZ)yZ[e]=bZ[e];function lQ(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var uQ=class{constructor(e){this.frag=e,this.index=0,this.off=0}nodeAt(e){for(;this.off<=e&&this.index<this.frag.childCount;){let t=this.frag.child(this.index);if(this.off==e)return t;this.off+=t.nodeSize,this.index++}return null}},dQ=class e{constructor(e,t){this.toDOM=e,this.spec=t||gQ,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new mQ(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&lQ(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},fQ=class e{constructor(e,t){this.attrs=e,this.spec=t||gQ}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new mQ(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&lQ(this.attrs,t.attrs)&&lQ(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},pQ=class e{constructor(e,t){this.attrs=e,this.spec=t||gQ}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new mQ(i.pos-n,a.pos-n,this)}valid(e,t,n){let r=n.nodeAt(t.from);return!!r&&!r.isText&&t.from+r.nodeSize==t.to}eq(t){return this==t||t instanceof e&&lQ(this.attrs,t.attrs)&&lQ(this.spec,t.spec)}destroy(){}},mQ=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new dQ(n,r))}static inline(t,n,r,i){return new e(t,n,new fQ(r,i))}static node(t,n,r,i){return new e(t,n,new pQ(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof fQ}get widget(){return this.type instanceof dQ}},hQ=[],gQ={},_Q=class e{constructor(e,t){this.local=e.length?e:hQ,this.children=t.length?t:hQ}static create(e,t){return t.length?TQ(t,e,0,gQ):vQ}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==vQ||e.maps.length==0?this:this.mapInner(e,t,0,0,n||gQ)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new uQ(n.content);for(let s=0;s<this.local.length;s++){let c=this.local[s].map(t,r,i);c&&c.type.valid(n,c,e)?(o||=[]).push(c):a.onRemove&&a.onRemove(this.local[s].spec)}}return this.children.length?bQ(this.children,o||[],t,n,r,i,a):o?new e(o.sort(EQ),hQ):vQ}add(t,n){return n.length?this==vQ?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=CQ(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,TQ(s,e,o+1,gQ)),a+=3}});let o=xQ(a?wQ(n):n,-r);if(o.length){let e=new uQ(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||o.splice(n--,1)}return new e(o.length?this.local.concat(o).sort(EQ):this.local,i||this.children)}remove(e){return e.length==0||this==vQ?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==vQ?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):vQ}forChild(t,n){if(this==vQ)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof fQ){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(EQ),hQ);return r?new yQ([t,r]):t}return r||vQ}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return DQ(this.localsInner(e))}localsInner(e){if(this==vQ)return hQ;if(e.inlineContent||!this.local.some(fQ.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof fQ||t.push(this.local[e]);return t}forEachSet(e){e(this)}};_Q.empty=new _Q([],[]),_Q.removeOverlap=DQ;var vQ=_Q.empty,yQ=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,gQ));return e.from(r)}forChild(t,n){if(n.isLeaf)return _Q.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=vQ&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length){if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}}return t?DQ(n?t:t.sort(EQ)):hQ}static from(t){switch(t.length){case 0:return vQ;case 1:return t[0];default:return new e(t.every(e=>e instanceof _Q)?t:t.reduce((e,t)=>e.concat(t instanceof _Q?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function bQ(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==vQ?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=TQ(SQ(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new _Q(t.sort(EQ),s)}function xQ(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new mQ(i.from+t,i.to+t,i.type))}return n}function SQ(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function CQ(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function wQ(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function TQ(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=CQ(e,t,o+n);if(s){a=!0;let e=TQ(s,t,n+o+1,r);e!=vQ&&i.push(o,o+t.nodeSize,e)}});let o=xQ(a?wQ(e):e,-n).sort(EQ);if(o.length){let e=new uQ(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||(r.onRemove&&r.onRemove(o[n].spec),o.splice(n--,1))}return o.length||i.length?new _Q(o,i):vQ}function EQ(e,t){return e.from-t.from||e.to-t.to}function DQ(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from)a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),OQ(t,i+1,a.copy(r.to,a.to)));else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),OQ(t,i,r.copy(a.from,r.to)));break}}}return t}function OQ(e,t,n){for(;t<e.length&&EQ(n,e[t])>0;)t++;e.splice(t,0,n)}function kQ(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=vQ&&t.push(r)}),e.cursorWrapper&&t.push(_Q.create(e.state.doc,[e.cursorWrapper.deco])),yQ.from(t)}var AQ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jQ=iY&&aY<=11,MQ=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},NQ=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new MQ,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);iY&&aY<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():uY&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),jQ&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,AQ)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(IX(this.view)){if(this.suppressingSelectionUpdates)return EX(this.view);if(iY&&aY<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&LJ(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=NJ(n))t.add(n);for(let r=e.anchorNode;r;r=NJ(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:HJ(n)?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n,r=!1;!this.suppressingSelectionUpdates&&IX(e)&&(n=e.domSelectionRange(),r=!this.currentSelection.eq(n)&&!this.ignoreSelectionChange(n));let i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||cY&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&VJ(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(oY&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||zQ(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&JJ(n)&&(c=wX(e))&&c.eq(gq.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,EX(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),IQ(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,BQ(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&EX(e),n&&this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),HJ(r)&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(iY&&aY<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?MJ(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?MJ(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},PQ=new WeakMap,FQ=!1;function IQ(e){if(!PQ.has(e)&&(PQ.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=oY,FQ)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),FQ=!0}}function LQ(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return LJ(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function RQ(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return LQ(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?LQ(e,n):null}function zQ(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function BQ(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||!VJ(e)||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function VQ(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&UJ(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],JJ(l)||u.push({node:l.focusNode,offset:l.focusOffset})),cY&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||NG.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:HQ(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var HQ=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(uY&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||uY&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},UQ=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function WQ(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=wX(e,t);if(n&&!e.state.selection.eq(n)){if(cY&&mY&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,YJ(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=VQ(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=XQ(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(dY&&e.input.lastIOSEnter>Date.now()-225||mY)&&i.some(e=>VJ(e)&&!UQ.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,YJ(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof bq&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=GQ(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof bq&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),iY&&aY<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((dY&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&JQ(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,YJ(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:qQ(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,YJ(8,`Backspace`)))){mY&&cY&&e.domObserver.suppressSelectionUpdates();return}cY&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),mY&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,YJ(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=GQ(e,n.doc,l.sel);t&&!(cY&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||iY&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){iY&&aY<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>EX(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=KQ(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x())}else e.dispatch(x())}function GQ(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:FX(e,t.resolve(n.anchor),t.resolve(n.head))}function KQ(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(Q.from(l).eq(e))return{mark:s,type:o}}function qQ(e,t,n,r,i){if(n-t<=i.pos-r.pos||YQ(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.inlineContent){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(YQ(a,!0,!0));return!o.parent.isTextblock||o.pos>n||YQ(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function JQ(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(e,a)=>{e.isTextblock&&a>=t&&a<n?r++:(e.isText?/\S/.test(e.text.slice(Math.max(0,t-a),Math.min(e.nodeSize,n-a))):e.isLeaf)&&i++}),i==0&&r==1}function YQ(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function XQ(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var ZQ=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new SZ,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(i$),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=e$(this),$Q(this),this.nodeViews=n$(this),this.docView=iX(this.state.doc,QQ(this),kQ(this),this.dom,this),this.domObserver=new NQ(this,(e,t,n,r)=>WQ(this,e,t,n,r)),this.domObserver.start(),CZ(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&EZ(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(i$),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(XZ(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=n$(this);r$(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&EZ(this),this.editable=e$(this),$Q(this);let o=kQ(this),s=QQ(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&xY(this);if(i){this.domObserver.stop();let t=l&&(iY||cY)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&t$(n.selection,e.selection);if(l){let n=cY?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=ZZ(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=iX(e.doc,s,o,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&RX(this)&&i.delaySelUpdate())?EX(this,t):(NX(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&CY(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&UJ(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof Sq){let t=this.docView.domAfterPos(this.state.selection.from);VJ(t)&&bY(this,t.getBoundingClientRect(),e)}else bY(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new aQ(e.slice,e.move,r<0?void 0:Sq.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(iY){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&EY(this.dom),EX(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return PY(this,e)}coordsAtPos(e,t=1){return RY(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return JY(this,t||this.state,e)}pasteHTML(e,t){return rQ(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return rQ(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return rZ(this,e)}destroy(){this.docView&&(TZ(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],kQ(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,IJ())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return kZ(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?uY&&this.root.nodeType===11&&XJ(this.dom.ownerDocument)==this.dom&&RQ(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};ZQ.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function QQ(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[mQ.node(0,e.state.doc.content.size,t)]}function $Q(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:mQ.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function e$(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function t$(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function n$(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function r$(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function i$(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var a$={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},o$={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},s$=typeof navigator<`u`&&/Mac/.test(navigator.platform),c$=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l$=0;l$<10;l$++)a$[48+l$]=a$[96+l$]=String(l$);for(var l$=1;l$<=24;l$++)a$[l$+111]=`F`+l$;for(var l$=65;l$<=90;l$++)a$[l$]=String.fromCharCode(l$+32),o$[l$]=String.fromCharCode(l$);for(var u$ in a$)o$.hasOwnProperty(u$)||(o$[u$]=a$[u$]);function d$(e){var t=!(s$&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||c$&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?o$:a$)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var f$=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),p$=typeof navigator<`u`&&/Win/.test(navigator.platform);function m$(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))f$?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function h$(e){let t=Object.create(null);for(let n in e)t[m$(n)]=e[n];return t}function g$(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function _$(e){let t=h$(e);return function(e,n){let r=d$(n),i,a=t[g$(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[g$(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(p$&&n.ctrlKey&&n.altKey)&&(i=a$[n.keyCode])&&i!=r){let r=t[g$(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var v$=200,y$=function(){};y$.prototype.append=function(e){return e.length?(e=y$.from(e),!this.length&&e||e.length<v$&&this.leafAppend(e)||this.length<v$&&e.leafPrepend(this)||this.appendInner(e)):this},y$.prototype.prepend=function(e){return e.length?y$.from(e).append(this):this},y$.prototype.appendInner=function(e){return new x$(this,e)},y$.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?y$.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},y$.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},y$.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},y$.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},y$.from=function(e){return e instanceof y$?e:e&&e.length?new b$(e):y$.empty};var b$=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=v$)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=v$)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(y$);y$.empty=new b$([]);var x$=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(y$),S$=500,C$=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new T$(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new T$(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new T$(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>D$&&(s=w$(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new dK;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new T$(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new T$(i,o,l))}else r.push(new T$(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new T$(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>S$&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new T$(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(y$.from(i.reverse()),a)}};C$.empty=new C$(y$.empty,0);function w$(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var T$=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},E$=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},D$=20;function O$(e,t,n,r){let i=n.getMeta(I$),a;if(i)return i.historyState;n.getMeta(L$)&&(e=new E$(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(I$))return o.getMeta(I$).redo?new E$(e.done.addTransform(n,void 0,r,F$(t)),e.undone,A$(n.mapping.maps),e.prevTime,e.prevComposition):new E$(e.done,e.undone.addTransform(n,void 0,r,F$(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!k$(n,e.prevRanges)),s=o?j$(e.prevRanges,n.mapping):A$(n.mapping.maps);return new E$(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,F$(t)),C$.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new E$(e.done.rebased(n,a),e.undone.rebased(n,a),j$(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new E$(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),j$(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function k$(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function A$(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function j$(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function M$(e,t,n){let r=F$(t),i=I$.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new E$(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(I$,{redo:n,historyState:c})}var N$=!1,P$=null;function F$(e){let t=e.plugins;if(P$!=t){N$=!1,P$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){N$=!0;break}}return N$}var I$=new Vq(`history`),L$=new Vq(`closeHistory`);function R$(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Rq({key:I$,state:{init(){return new E$(C$.empty,C$.empty,null,0,-1)},apply(t,n,r){return O$(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?B$:n==`historyRedo`?V$:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function z$(e,t){return(n,r)=>{let i=I$.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=M$(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var B$=z$(!1,!0),V$=z$(!0,!0);function H$(e){return e.getMeta(I$)!=null}function U$(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var W$=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:U$({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},G$=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),K$=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),q$=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=OK(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},J$=e=>t=>e(t),Y$=()=>({state:e,dispatch:t})=>sJ(e,t),X$=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new bq(r.doc.resolve(Math.max(o-1,0)))),!0},Z$=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function Q$(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var $$=e=>({tr:t,state:n,dispatch:r})=>{let i=Q$(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},e1=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},t1=e=>e.content?/^text(\*|\+)/.test(e.content):!1,n1=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return t1(r)?n===`left`?e.start()-1:e.end()+1:e.pos},r1=(e,t,n)=>({from:n1(e,n,`left`),to:n1(t,n,`right`)}),i1=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=r1(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(bq.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},a1=()=>({commands:e})=>e.keyboardShortcut(`Enter`),o1=()=>({state:e,dispatch:t})=>oJ(e,t);function s1(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c1(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:s1(t[r])?t[r].test(e[r]):t[r]===e[r])}function l1(e,t,n={}){return e.find(e=>e.type===t&&c1(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function u1(e,t,n={}){return!!l1(e,t,n)}function d1(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!l1([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&u1([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&u1([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function f1(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var p1=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=f1(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=d1(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=bq.create(o,e.from,e.to);n.setSelection(t)}}return!0},m1=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function h1(e){return e instanceof bq}function g1(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function _1(e,t=null){if(!t)return null;let n=gq.atStart(e),r=gq.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?bq.create(e,g1(0,i,a),g1(e.content.size,i,a)):bq.create(e,g1(t,i,a),g1(t,i,a))}function v1(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function y1(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function b1(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var x1=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(y1()||v1())&&r.dom.focus(),b1()&&!y1()&&!v1()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!h1(n.state.selection))return o(),!0;let s=_1(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},S1=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),C1=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),w1=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&w1(r)}return e};function T1(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return w1(n)}function E1(e){return typeof e?.nodesBetween==`function`}function D1(e,t,n){if(E1(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Q.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),D1(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new kG({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?NG.fromSchema(a).parseSlice(T1(e),n.parseOptions):NG.fromSchema(a).parse(T1(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=NG.fromSchema(t);return n.slice?r.parseSlice(T1(e),n.parseOptions).content:r.parse(T1(e),n.parseOptions)}return D1(``,t,n)}function O1(e){return!(`type`in e)}function k1(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof xK||i instanceof SK))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(gq.near(e.doc.resolve(o),n))}var A1=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{D1(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=D1(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=O1(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):E1(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=Q.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&k1(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function j1(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var M1=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=j1(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=D1(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&k1(t,t.steps.length-1,-1)),!0):!1},N1=()=>({state:e,dispatch:t})=>tJ(e,t),P1=()=>({state:e,dispatch:t})=>nJ(e,t),F1=()=>({state:e,dispatch:t})=>Wq(e,t),I1=()=>({state:e,dispatch:t})=>Qq(e,t),L1=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},R1=()=>({state:e,dispatch:t,tr:n})=>{try{let r=GK(e.doc,e.selection.$from.pos,-1);return r==null||!L1(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},z1=()=>({state:e,dispatch:t,tr:n})=>{try{let r=GK(e.doc,e.selection.$from.pos,1);return r==null||!L1(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},B1=()=>({state:e,dispatch:t})=>Gq(e,t),V1=()=>({state:e,dispatch:t})=>Kq(e,t);function H1(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function U1(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))y1()||H1()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var W1=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=U1(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function G1(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?Q$(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>c1(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var K1=(e,t={})=>({state:n,dispatch:r})=>G1(n,Q$(e,n.schema),t)?rJ(n,r):!1,q1=()=>({state:e,dispatch:t})=>cJ(e,t),J1=e=>({state:t,dispatch:n})=>OJ(Q$(e,t.schema))(t,n),Y1=()=>({state:e,dispatch:t})=>iJ(e,t);function X1(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function Z1(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var Q1=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=X1(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=Q$(e,r.schema)),s===`mark`&&(o=f1(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,Z1(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(Z1(a.attrs,t))))})})}),c},$1=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),e0=()=>({tr:e,dispatch:t})=>{if(t){let t=new wq(e.doc);e.setSelection(t)}return!0},t0=()=>({state:e,dispatch:t})=>Yq(e,t),n0=()=>({state:e,dispatch:t})=>$q(e,t),r0=()=>({state:e,dispatch:t})=>dJ(e,t),i0=()=>({state:e,dispatch:t})=>_J(e,t),a0=()=>({state:e,dispatch:t})=>gJ(e,t);function o0(e,t,n={},r={}){return D1(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var s0=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=o0(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=O1(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function c0(e,t){let n=f1(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function l0(e,t){let n=new mq(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function u0(e,t){let n=[];return e.descendants((e,r)=>{t(e)&&n.push({node:e,pos:r})}),n}function d0(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function f0(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function p0(e){return t=>f0(t.$from,e)}function m0(e,t,n){return e.config[t]===void 0&&e.parent?m0(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?m0(e.parent,t,n):null}):e.config[t]}function h0(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function g0(e){return typeof e==`function`}function _0(e,t=void 0,...n){return g0(e)?t?e.bind(t)(...n):e(...n):e}function v0(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function y0(e){let t=[],n=v0(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function b0(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...y0(n[e]),...y0(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function x0(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>b0(e,t),{})}function S0(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
306
-
307
- `,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function C0(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function w0(e,t){let n=Q$(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function T0(e,t){let n=X1(typeof t==`string`?t:t.name,e.schema);return n===`node`?w0(e,t):n===`mark`?c0(e,t):{}}function E0(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function D0(e){let t=E0(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function O0(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),D0(r)}function k0(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=d1(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var A0=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},j0=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function M0(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}function N0(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?f1(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>c1(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>c1(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}var P0=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=p0(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},F0=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function I0(e,t){let{nodeExtensions:n}=h0(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=_0(m0(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function L0(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(L0(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function R0(e){return e instanceof Sq}function z0(e,t,n){let{selection:r}=t,i=null;if(h1(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var B0=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=f1(e,r.schema);if(i){if(o){let e=c0(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return z0(r,n,c)},V0=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),H0=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=Q$(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>yJ(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>yJ(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},U0=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=g1(e,0,n.content.size),i=Sq.create(n,r);t.setSelection(i)}return!0},W0=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},G0=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=bq.atStart(n).from,o=bq.atEnd(n).to,s=g1(r,a,o),c=g1(i,a,o),l=bq.create(n,s,c);t.setSelection(l)}return!0},K0=e=>({state:t,dispatch:n})=>jJ(Q$(e,t.schema))(t,n);function q0(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var J0=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=M0(l,s.node().type.name,s.node().attrs);if(a instanceof Sq&&a.node.isBlock)return!s.parentOffset||!BK(o,s.pos)?!1:(r&&(e&&q0(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:j1(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof bq&&!a.empty?Iq.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=BK(h,g,1,p);if(!p&&!_&&BK(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof bq&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&q0(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},Y0=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=Q$(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=Q.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Q.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...M0(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Q.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new zW(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(bq.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...M0(d,u.type.name,u.attrs),...t},m={...M0(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!BK(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function X0(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function Z0(e,t){if(e.pendingContent.length===0)return!0;let n=X0(t,Q.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function Q0(e,t,n){return n.validContent(Q.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!Z0(t,n)||!n.validContent(Q.from(e))?!1:(t.pendingContent.push(e),!0)}function $0(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=X0(n.listType,Q.from(i),e.attrs);return a?n.itemType.validContent(Q.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):Z0(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function e2(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?$0(a,r,t,n):Q0(a,r,t.itemType)))return null}return Z0(r,t.itemType)?r.items:null}function t2(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=e2(e.child(r),t,t2);if(!i)return null;n.push(...i)}return n}function n2(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function r2(e){return!e||e===`1`?null:e}function i2(e,t){return r2(e)===r2(t)}var a2=(e,t)=>{let n=p0(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&HK(e.doc,n.pos))||!i2(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},o2=(e,t)=>{let n=p0(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&HK(e.doc,r))||!i2(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function s2(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return bq.between(r,i)}var c2=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=Q$(e,o.schema),m=Q$(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=p0(e=>I0(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&I0(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=s2(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(I0(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>a2(a,p)).command(()=>o2(a,p)).run();if(I0(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=t2(E.node,{listType:p,itemType:m,isListNode:e=>I0(e.type.name,d)}),t=e?Q.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=n2(l,i),t=n2(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(bq.create(a.doc,n,r))}}return!0}).command(()=>a2(a,p)).command(()=>o2(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>a2(a,p)).command(()=>o2(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>a2(a,p)).command(()=>o2(a,p)).run()},l2=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=f1(e,r.schema);return N0(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},u2=(e,t,n={})=>({state:r,commands:i})=>{let a=Q$(e,r.schema),o=Q$(t,r.schema),s=G1(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},d2=(e,t={})=>({state:n,commands:r})=>{let i=Q$(e,n.schema);return G1(n,i,t)?r.lift(i):r.wrapIn(i,t)},f2=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},p2=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},m2=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=f1(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=d1(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},h2=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},g2=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=X1(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=Q$(e,r.schema)),s===`mark`&&(o=f1(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},_2=new Vq(`__tiptap_decorations__`),v2=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(_2,{type:`force`,name:e}),!0),y2=(e,t={})=>({state:n,dispatch:r})=>vJ(Q$(e,n.schema),t)(n,r),b2=(e,t={})=>({state:n,dispatch:r})=>TJ(Q$(e,n.schema),t)(n,r),x2=OW({blur:()=>G$,clearContent:()=>K$,clearNodes:()=>q$,command:()=>J$,createParagraphNear:()=>Y$,cut:()=>X$,deleteCurrentNode:()=>Z$,deleteNode:()=>$$,deleteRange:()=>e1,deleteSelection:()=>i1,enter:()=>a1,exitCode:()=>o1,extendMarkRange:()=>p1,first:()=>m1,focus:()=>x1,forEach:()=>S1,insertContent:()=>C1,insertContentAt:()=>A1,insertDefaultBlock:()=>M1,joinBackward:()=>F1,joinDown:()=>P1,joinForward:()=>I1,joinItemBackward:()=>R1,joinItemForward:()=>z1,joinTextblockBackward:()=>B1,joinTextblockForward:()=>V1,joinUp:()=>N1,keyboardShortcut:()=>W1,lift:()=>K1,liftEmptyBlock:()=>q1,liftListItem:()=>J1,newlineInCode:()=>Y1,resetAttributes:()=>Q1,scrollIntoView:()=>$1,selectAll:()=>e0,selectNodeBackward:()=>t0,selectNodeForward:()=>n0,selectParentNode:()=>r0,selectTextblockEnd:()=>i0,selectTextblockStart:()=>a0,setContent:()=>s0,setMark:()=>B0,setMeta:()=>V0,setNode:()=>H0,setNodeSelection:()=>U0,setTextDirection:()=>W0,setTextSelection:()=>G0,sinkListItem:()=>K0,splitBlock:()=>J0,splitListItem:()=>Y0,toggleList:()=>c2,toggleMark:()=>l2,toggleNode:()=>u2,toggleWrap:()=>d2,undoInputRule:()=>f2,unsetAllMarks:()=>p2,unsetMark:()=>m2,unsetTextDirection:()=>h2,updateAttributes:()=>g2,updateDecorations:()=>v2,wrapIn:()=>y2,wrapInList:()=>b2});function S2(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof Sq){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function C2(e){return Object.prototype.toString.call(e).slice(8,-1)}function w2(e){return C2(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function T2(e){return typeof e==`string`&&e.trim().length>0&&!/[;{}]/.test(e)}function E2(e,t,n){let r=e.split(`
308
- `),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],u=e.match(t.itemPattern);if(!u){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}\n`;continue}return}let d=t.extractItemData(u),{indentLevel:f,mainContent:p}=d;a=`${a}${e}\n`;let m=[p];for(o+=1;o<r.length;){var c;let e=r[o];if(e.trim()===``){var l;let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((((l=r[o+1+t].match(/^(\s*)/))==null||(l=l[1])==null?void 0:l.length)||0)>f){m.push(e),a=`${a}${e}\n`,o+=1;continue}break}if((((c=e.match(/^(\s*)/))==null||(c=c[1])==null?void 0:c.length)||0)>f)m.push(e),a=`${a}${e}\n`,o+=1;else break}let h,g=m.slice(1);if(g.length>0){let e=g.map(e=>e.slice(f+s)).join(`
309
- `);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var D2=4;function O2(e){let t=0;for(let n of e)t=n===` `?t+D2-t%D2:t+1;return t}function k2(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=O2(a);return(O2(n)>=r?n:` `.repeat(r))+e},o=r.split(`
310
- `).map(e=>n(e||``)).join(`
311
- `);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function A2(e,t){let n={...e};return w2(e)&&w2(t)&&Object.keys(t).forEach(r=>{w2(t[r])&&w2(e[r])?n[r]=A2(e[r],t[r]):n[r]=t[r]}),n}var j2=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},M2=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{..._0(m0(this,`addOptions`,{name:this.name}))}}get storage(){return{..._0(m0(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>A2(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},N2=class e extends M2{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},P2=class{constructor(e){this.find=e.find,this.handler=e.handler}},F2=class e extends M2{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};F2.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Rq({key:new Vq(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=C0(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>S0(r,{from:e.pos,to:t.pos},s)).join(o??`
312
-
313
- `)}}})]}}),F2.create({name:`commands`,addCommands(){return{...x2}}}),F2.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=l0(e.before,[e,...t]);O0(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof _K){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),F2.create({name:`drop`,addProseMirrorPlugins(){return[new Rq({key:new Vq(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),F2.create({name:`editable`,addProseMirrorPlugins(){return[new Rq({key:new Vq(`editable`),props:{editable:()=>this.editor.options.editable}})]}});var I2=new Vq(`focusEvents`);F2.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new Rq({key:I2,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),F2.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:gq.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return y1()||H1()?i:r},addProseMirrorPlugins(){return[new Rq({key:new Vq(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=gq.atStart(t.doc).from,l=gq.atEnd(t.doc).to;if(a||o!==c||s!==l||!L0(n.doc))return;let u=n.tr,d=U$({state:n,transaction:u}),{commands:f}=new W$({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),F2.create({name:`paste`,addProseMirrorPlugins(){return[new Rq({key:new Vq(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),F2.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Rq({key:new Vq(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),F2.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=h0(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Rq({key:new Vq(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}});function L2(e){return new j2({find:e.find,handler:({state:t,range:n,match:r})=>{let i=_0(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(k0(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function R2(e){return new j2({find:e.find,handler:({state:t,range:n,match:r})=>{let i=_0(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function z2(e){return new j2({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=_0(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function B2(e){return new j2({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=_0(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&AK(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&HK(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var V2=e=>`touches`in e,H2=class{constructor(e){var t;this.directions=[`bottom-left`,`bottom-right`,`top-left`,`top-right`],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:``,wrapper:``,handle:``,resizing:``},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.clientX-this.startX,n=e.clientY-this.startY;this.handleResize(t,n)},this.handleTouchMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.touches[0];if(!t)return;let n=t.clientX-this.startX,r=t.clientY-this.startY;this.handleResize(n,r)},this.handleMouseUp=()=>{if(!this.isResizing)return;let e=this.element.offsetWidth,t=this.element.offsetHeight;this.onCommit(e,t),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp)},this.handleKeyDown=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.element.draggable=!1,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,e.options?.min&&(this.minSize={...this.minSize,...e.options.min}),e.options?.max&&(this.maxSize=e.options.max),e!=null&&(t=e.options)!=null&&t.directions&&(this.directions=e.options.directions),e.options?.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),e.options?.className&&(this.classNames={container:e.options.className.container||``,wrapper:e.options.className.wrapper||``,handle:e.options.className.handle||``,resizing:e.options.className.resizing||``}),e.options?.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on(`update`,this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement??null}handleEditorUpdate(){let e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type===this.node.type&&(this.node=e,!this.onUpdate||this.onUpdate(e,t,n))}destroy(){this.isResizing&&(this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off(`update`,this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){let e=document.createElement(`div`);return e.dataset.resizeContainer=``,e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?`inline-flex`:`flex`,this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){let e=document.createElement(`div`);return e.style.position=`relative`,e.style.display=`block`,e.dataset.resizeWrapper=``,this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){let t=document.createElement(`div`);return t.dataset.resizeHandle=e,t.style.position=`absolute`,this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){let n=t.includes(`top`),r=t.includes(`bottom`),i=t.includes(`left`),a=t.includes(`right`);n&&(e.style.top=`0`),r&&(e.style.bottom=`0`),i&&(e.style.left=`0`),a&&(e.style.right=`0`),(t===`top`||t===`bottom`)&&(e.style.left=`0`,e.style.right=`0`),(t===`left`||t===`right`)&&(e.style.top=`0`,e.style.bottom=`0`)}attachHandles(){this.directions.forEach(e=>{let t;t=this.createCustomHandle?this.createCustomHandle(e):this.createHandle(e),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener(`mousedown`,t=>this.handleResizeStart(t,e)),t.addEventListener(`touchstart`,t=>this.handleResizeStart(t,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){let e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,V2(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState=`true`,this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`touchmove`,this.handleTouchMove),document.addEventListener(`mouseup`,this.handleMouseUp),document.addEventListener(`keydown`,this.handleKeyDown),document.addEventListener(`keyup`,this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;let n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,e,t),a=this.applyConstraints(r,i,n);this.element.style.width=`${a.width}px`,this.element.style.height=`${a.height}px`,this.onResize&&this.onResize(a.width,a.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,i=this.startHeight,a=e.includes(`right`),o=e.includes(`left`),s=e.includes(`bottom`),c=e.includes(`top`);return a?r=this.startWidth+t:o&&(r=this.startWidth-t),s?i=this.startHeight+n:c&&(i=this.startHeight-n),(e===`right`||e===`left`)&&(r=this.startWidth+(a?t:-t)),(e===`top`||e===`bottom`)&&(i=this.startHeight+(s?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,i,e):{width:r,height:i}}applyConstraints(e,t,n){if(!n){let n=Math.max(this.minSize.width,e),r=Math.max(this.minSize.height,t);return this.maxSize?.width&&(n=Math.min(this.maxSize.width,n)),this.maxSize?.height&&(r=Math.min(this.maxSize.height,r)),{width:n,height:r}}let r=e,i=t;return r<this.minSize.width&&(r=this.minSize.width,i=r/this.aspectRatio),i<this.minSize.height&&(i=this.minSize.height,r=i*this.aspectRatio),this.maxSize?.width&&r>this.maxSize.width&&(r=this.maxSize.width,i=r/this.aspectRatio),this.maxSize?.height&&i>this.maxSize.height&&(i=this.maxSize.height,r=i*this.aspectRatio),{width:r,height:i}}applyAspectRatio(e,t,n){return n===`left`||n===`right`?{width:e,height:e/this.aspectRatio}:n===`top`||n===`bottom`?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}},U2=class e extends M2{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function W2(e){return new P2({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=_0(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(k0(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var G2=new WeakSet,K2=new WeakSet;function q2(e){let t=e;return G2.add(t),t}function J2(e){return Array.isArray(e)&&G2.has(e)}function Y2(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&K2.has(e)&&!J2(e)?Y2(e):[e])}function X2(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!J2(n)&&!K2.has(n)?q2(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(J2(n))return q2([e,r,n]);if(n.length===0)return q2([e,r]);let t=Y2(n);return t.length===0?q2([e,r]):q2([e,r,...t])}return q2(n==null?[e,r]:[e,r,n])}var Z2=(e,t)=>X2(e,t),mae=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new zW(n,0,0);return e.replace(l,i.after(),r),e.setSelection(bq.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},Q2=/^\s*>\s$/,$2=U2.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return Z2(`blockquote`,{...b0(this.options.HTMLAttributes,e),children:Z2(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
314
- `).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
315
- `))}),n.join(`
316
- >
317
- `)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>mae(this.editor,this.type)}},addInputRules(){return[B2({find:Q2,type:this.type})]}}),e4=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,t4=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,n4=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,r4=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,i4=N2.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return Z2(`strong`,{...b0(this.options.HTMLAttributes,e),children:Z2(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[L2({find:e4,type:this.type}),L2({find:n4,type:this.type})]},addPasteRules(){return[W2({find:t4,type:this.type}),W2({find:r4,type:this.type})]}}),a4=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},o4=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function s4(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var c4=N2.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,b0(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(s4(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[L2({find:a4,type:this.type})]},addPasteRules(){return[W2({find:o4,type:this.type})]}}),l4=4,u4=/^```([a-z]+)?[\s\n]$/,d4=/^~~~([a-z]+)?[\s\n]$/,f4=U2.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:l4,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,b0(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
318
- `):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??l4,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
319
- `,`
320
- `).split(`
321
- `).map(e=>o+e).join(`
322
- `);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??l4,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
323
- `,`
324
- `).split(`
325
- `),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(bq.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
326
- `,`
327
- `).split(`
328
- `).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
329
- `);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
330
-
331
- `);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(gq.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[z2({find:u4,type:this.type,getAttributes:e=>({language:e[1]})}),z2({find:d4,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Rq({key:new Vq(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
332
- `));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(bq.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),p4=U2.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
333
-
334
- `):``}),m4=U2.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,b0(this.options.HTMLAttributes,e)]},renderText(){return`
335
- `},renderMarkdown:()=>`
336
- `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),h4=U2.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,b0(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>z2({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),g4=U2.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,b0(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!S2(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return R0(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(bq.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Sq.create(t.doc,n.pos)):t.setSelection(bq.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(bq.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[R2({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),_4=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,v4=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,y4=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,b4=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,x4=N2.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,b0(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[L2({find:_4,type:this.type}),L2({find:y4,type:this.type})]},addPasteRules(){return[W2({find:v4,type:this.type}),W2({find:b4,type:this.type})]}}),S4=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,C4=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,w4=`numeric`,T4=`ascii`,E4=`alpha`,D4=`asciinumeric`,O4=`alphanumeric`,k4=`domain`,A4=`emoji`,j4=`scheme`,M4=`slashscheme`,N4=`whitespace`;function P4(e,t){return e in t||(t[e]=[]),t[e]}function F4(e,t,n){t[w4]&&(t[D4]=!0,t[O4]=!0),t[T4]&&(t[D4]=!0,t[E4]=!0),t[D4]&&(t[O4]=!0),t[E4]&&(t[O4]=!0),t[O4]&&(t[k4]=!0),t[A4]&&(t[k4]=!0);for(let r in t){let t=P4(r,n);t.indexOf(e)<0&&t.push(e)}}function I4(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function L4(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}L4.groups={},L4.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=L4.groups;let i;return t&&t.j?i=t:(i=new L4(t),n&&r&&F4(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=L4.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new L4,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new L4,a&&(r&&(o.t&&typeof o.t==`string`?F4(a,Object.assign(I4(o.t,r),n),r):n&&F4(a,n,r)),o.t=a),i.j[e]=o,o}};var R4=(e,t,n,r,i)=>e.ta(t,n,r,i),z4=(e,t,n,r,i)=>e.tr(t,n,r,i),B4=(e,t,n,r,i)=>e.ts(t,n,r,i),$=(e,t,n,r,i)=>e.tt(t,n,r,i),V4=`WORD`,H4=`UWORD`,U4=`ASCIINUMERICAL`,W4=`ALPHANUMERICAL`,G4=`LOCALHOST`,K4=`TLD`,q4=`UTLD`,J4=`SCHEME`,Y4=`SLASH_SCHEME`,X4=`NUM`,Z4=`WS`,Q4=`NL`,$4=`OPENBRACE`,e3=`CLOSEBRACE`,t3=`OPENBRACKET`,n3=`CLOSEBRACKET`,r3=`OPENPAREN`,i3=`CLOSEPAREN`,a3=`OPENANGLEBRACKET`,o3=`CLOSEANGLEBRACKET`,s3=`FULLWIDTHLEFTPAREN`,c3=`FULLWIDTHRIGHTPAREN`,l3=`LEFTCORNERBRACKET`,u3=`RIGHTCORNERBRACKET`,d3=`LEFTWHITECORNERBRACKET`,f3=`RIGHTWHITECORNERBRACKET`,p3=`FULLWIDTHLESSTHAN`,m3=`FULLWIDTHGREATERTHAN`,h3=`AMPERSAND`,g3=`APOSTROPHE`,_3=`ASTERISK`,v3=`AT`,y3=`BACKSLASH`,b3=`BACKTICK`,x3=`CARET`,S3=`COLON`,C3=`COMMA`,w3=`DOLLAR`,T3=`DOT`,E3=`EQUALS`,D3=`EXCLAMATION`,O3=`HYPHEN`,k3=`PERCENT`,A3=`PIPE`,j3=`PLUS`,M3=`POUND`,N3=`QUERY`,P3=`QUOTE`,F3=`FULLWIDTHMIDDLEDOT`,I3=`SEMI`,L3=`SLASH`,R3=`TILDE`,z3=`UNDERSCORE`,B3=`EMOJI`,V3=`SYM`,H3=Object.freeze({__proto__:null,ALPHANUMERICAL:W4,AMPERSAND:h3,APOSTROPHE:g3,ASCIINUMERICAL:U4,ASTERISK:_3,AT:v3,BACKSLASH:y3,BACKTICK:b3,CARET:x3,CLOSEANGLEBRACKET:o3,CLOSEBRACE:e3,CLOSEBRACKET:n3,CLOSEPAREN:i3,COLON:S3,COMMA:C3,DOLLAR:w3,DOT:T3,EMOJI:B3,EQUALS:E3,EXCLAMATION:D3,FULLWIDTHGREATERTHAN:m3,FULLWIDTHLEFTPAREN:s3,FULLWIDTHLESSTHAN:p3,FULLWIDTHMIDDLEDOT:F3,FULLWIDTHRIGHTPAREN:c3,HYPHEN:O3,LEFTCORNERBRACKET:l3,LEFTWHITECORNERBRACKET:d3,LOCALHOST:G4,NL:Q4,NUM:X4,OPENANGLEBRACKET:a3,OPENBRACE:$4,OPENBRACKET:t3,OPENPAREN:r3,PERCENT:k3,PIPE:A3,PLUS:j3,POUND:M3,QUERY:N3,QUOTE:P3,RIGHTCORNERBRACKET:u3,RIGHTWHITECORNERBRACKET:f3,SCHEME:J4,SEMI:I3,SLASH:L3,SLASH_SCHEME:Y4,SYM:V3,TILDE:R3,TLD:K4,UNDERSCORE:z3,UTLD:q4,UWORD:H4,WORD:V4,WS:Z4}),U3=/[a-z]/,W3=/\p{L}/u,G3=/\p{Emoji}/u,K3=/\d/,q3=/\s/,J3=`\r`,Y3=`
337
- `,hae=`️`,gae=`‍`,X3=``,Z3=null,Q3=null;function _ae(e=[]){let t={};L4.groups=t;let n=new L4;Z3??=t6(S4),Q3??=t6(C4),$(n,`'`,g3),$(n,`{`,$4),$(n,`}`,e3),$(n,`[`,t3),$(n,`]`,n3),$(n,`(`,r3),$(n,`)`,i3),$(n,`<`,a3),$(n,`>`,o3),$(n,`(`,s3),$(n,`)`,c3),$(n,`「`,l3),$(n,`」`,u3),$(n,`『`,d3),$(n,`』`,f3),$(n,`<`,p3),$(n,`>`,m3),$(n,`&`,h3),$(n,`*`,_3),$(n,`@`,v3),$(n,"`",b3),$(n,`^`,x3),$(n,`:`,S3),$(n,`,`,C3),$(n,`$`,w3),$(n,`.`,T3),$(n,`=`,E3),$(n,`!`,D3),$(n,`-`,O3),$(n,`%`,k3),$(n,`|`,A3),$(n,`+`,j3),$(n,`#`,M3),$(n,`?`,N3),$(n,`"`,P3),$(n,`/`,L3),$(n,`;`,I3),$(n,`~`,R3),$(n,`_`,z3),$(n,`\\`,y3),$(n,`・`,F3);let r=z4(n,K3,X4,{[w4]:!0});z4(r,K3,r);let i=z4(r,U3,U4,{[D4]:!0}),a=z4(r,W3,W4,{[O4]:!0}),o=z4(n,U3,V4,{[T4]:!0});z4(o,K3,i),z4(o,U3,o),z4(i,K3,i),z4(i,U3,i);let s=z4(n,W3,H4,{[E4]:!0});z4(s,U3),z4(s,K3,a),z4(s,W3,s),z4(a,K3,a),z4(a,U3),z4(a,W3,a);let c=$(n,Y3,Q4,{[N4]:!0}),l=$(n,J3,Z4,{[N4]:!0}),u=z4(n,q3,Z4,{[N4]:!0});$(n,X3,u),$(l,Y3,c),$(l,X3,u),z4(l,q3,u),$(u,J3),$(u,Y3),z4(u,q3,u),$(u,X3,u);let d=z4(n,G3,B3,{[A4]:!0});$(d,`#`),z4(d,G3,d),$(d,hae,d);let f=$(d,gae);$(f,`#`),z4(f,G3,d);let p=[[U3,o],[K3,i]],m=[[U3,null],[W3,s],[K3,a]];for(let e=0;e<Z3.length;e++)e6(n,Z3[e],K4,V4,p);for(let e=0;e<Q3.length;e++)e6(n,Q3[e],q4,H4,m);F4(K4,{tld:!0,ascii:!0},t),F4(q4,{utld:!0,alpha:!0},t),e6(n,`file`,J4,V4,p),e6(n,`mailto`,J4,V4,p),e6(n,`http`,Y4,V4,p),e6(n,`https`,Y4,V4,p),e6(n,`ftp`,Y4,V4,p),e6(n,`ftps`,Y4,V4,p),F4(J4,{scheme:!0,ascii:!0},t),F4(Y4,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[j4]:!0}:{[M4]:!0};r.indexOf(`-`)>=0?i[k4]=!0:U3.test(r)?K3.test(r)?i[D4]=!0:i[T4]=!0:i[w4]=!0,B4(n,r,r,i)}return B4(n,`localhost`,G4,{ascii:!0}),n.jd=new L4(V3),{start:n,tokens:Object.assign({groups:t},H3)}}function $3(e,t){let n=vae(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function vae(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function e6(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new L4(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new L4(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function t6(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var n6={defaultProtocol:`http`,events:null,format:i6,formatHref:i6,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function r6(e,t=null){let n=Object.assign({},n6);e&&(n=Object.assign(n,e instanceof r6?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}r6.prototype={o:n6,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:n6[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function i6(e){return e}function a6(e,t){this.t=`token`,this.v=e,this.tk=t}a6.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=n6.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function o6(e,t){class n extends a6{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var yae=o6(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),s6=o6(`text`),bae=o6(`nl`),c6=o6(`url`,{isLink:!0,toHref(e=n6.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==G4&&e[1].t===S3}}),l6=e=>new L4(e);function xae({groups:e}){let t=e.domain.concat([h3,_3,v3,y3,b3,x3,w3,E3,O3,X4,k3,A3,j3,M3,L3,V3,R3,z3]),n=[g3,S3,C3,T3,D3,k3,N3,P3,I3,a3,o3,$4,e3,n3,t3,r3,i3,s3,c3,l3,u3,d3,f3,p3,m3],r=[h3,g3,_3,y3,b3,x3,w3,E3,O3,$4,e3,k3,A3,j3,M3,N3,L3,V3,R3,z3],i=l6(),a=$(i,R3);R4(a,r,a),R4(a,e.domain,a);let o=l6(),s=l6(),c=l6();R4(i,e.domain,o),R4(i,e.scheme,s),R4(i,e.slashscheme,c),R4(o,r,a),R4(o,e.domain,o);let l=$(o,v3);$(a,v3,l),$(s,v3,l),$(c,v3,l);let u=$(a,T3);R4(u,r,a),R4(u,e.domain,a);let d=l6();R4(l,e.domain,d),R4(d,e.domain,d);let f=$(d,T3);R4(f,e.domain,d);let p=l6(yae);R4(f,e.tld,p),R4(f,e.utld,p),$(l,G4,p);let m=$(d,O3);$(m,O3,m),R4(m,e.domain,d),R4(p,e.domain,d),$(p,T3,f),$(p,O3,m);let h=$(o,O3),g=$(o,T3);$(h,O3,h),R4(h,e.domain,o),R4(g,r,a),R4(g,e.domain,o);let _=l6(c6);R4(g,e.tld,_),R4(g,e.utld,_),R4(_,e.domain,o),R4(_,r,a),$(_,T3,g),$(_,O3,h),$(_,v3,l);let v=$(_,S3),y=l6(c6);R4(v,e.numeric,y);let b=l6(c6),x=l6();R4(b,t,b),R4(b,n,x),R4(x,t,b),R4(x,n,x),$(_,L3,b),$(y,L3,b);let S=$(s,S3),C=$($($(c,S3),L3),L3);R4(s,e.domain,o),$(s,T3,g),$(s,O3,h),R4(c,e.domain,o),$(c,T3,g),$(c,O3,h),R4(S,e.domain,b),$(S,L3,b),$(S,N3,b),R4(C,e.domain,b),R4(C,t,b),$(C,L3,b);let w=[[$4,e3],[t3,n3],[r3,i3],[a3,o3],[s3,c3],[l3,u3],[d3,f3],[p3,m3]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=$(b,r);$(x,r,a);let o=l6(c6);R4(a,t,o);let s=l6();R4(a,n,s),$(a,i,b),R4(o,t,o),R4(o,n,s),R4(s,t,o),R4(s,n,s),$(o,i,b),$(s,i,b)}return $(i,G4,_),$(i,Q4,bae),{start:i,tokens:H3}}function Sae(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(u6(s6,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(u6(e,t,r))}}return o.length>0&&a.push(u6(s6,t,o)),a}function u6(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var Cae=typeof console<`u`&&console&&console.warn||(()=>{}),wae=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,d6={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Tae(){return L4.groups={},d6.scanner=null,d6.parser=null,d6.tokenQueue=[],d6.pluginQueue=[],d6.customSchemes=[],d6.initialized=!1,d6}function f6(e,t=!1){if(d6.initialized&&Cae(`linkifyjs: already initialized - will not register custom scheme "${e}" ${wae}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
338
- 1. Must only contain digits, lowercase ASCII letters or "-"
339
- 2. Cannot start or end with "-"
340
- 3. "-" cannot repeat`);d6.customSchemes.push([e,t])}function Eae(){d6.scanner=_ae(d6.customSchemes);for(let e=0;e<d6.tokenQueue.length;e++)d6.tokenQueue[e][1]({scanner:d6.scanner});d6.parser=xae(d6.scanner.tokens);for(let e=0;e<d6.pluginQueue.length;e++)d6.pluginQueue[e][1]({scanner:d6.scanner,parser:d6.parser});return d6.initialized=!0,d6}function p6(e){return d6.initialized||Eae(),Sae(d6.parser.start,e,$3(d6.scanner.start,e))}p6.scan=$3;function m6(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new r6(n),i=p6(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var h6=`[\0- \xA0 ᠎ -\u2029  ]`,Dae=new RegExp(h6),Oae=RegExp(`${h6}$`),kae=RegExp(`${h6}+$`),Aae=new RegExp(h6,`g`);function jae(e,t,n){let r=e.doc.resolve(t.to);if(!r.nodeBefore?.isText)return;let i=e.doc.textBetween(t.from,t.to,``,``).match(kae)?.[0];if(!i)return;let a=t.to-i.length,o=k0(a,t.to,e.doc).filter(e=>e.mark.type===n);if(!o.length)return;let{nodeAfter:s}=r;if(s&&o.some(e=>e.mark.isInSet(s.marks)))return;let c=e.storedMarks;e.removeMark(a,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function Mae(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function Nae(e){return new Rq({key:new Vq(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r,s=l0(n.doc,[...t]);if(!t.some(H$)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof xK)||!e.slice.size)return;let r=s.mapping.slice(n+1),i=r.map(e.from,1),a=r.map(e.from+e.slice.size,-1);i<a&&t.push({from:i,to:a})}),t.sort((e,t)=>t.to-e.to),t.forEach(t=>jae(o,t,e.type))}if(O0(s).forEach(({newRange:t})=>{let n=d0(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!Oae.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(Dae).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=p6(n).map(t=>t.toObject(e.defaultProtocol));if(!Mae(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{k0(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function Pae(e){return new Rq({key:new Vq(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=T0(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var Fae=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,Iae=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function g6(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function Lae(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&g6(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function _6(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||g6(e,t.index??0)||Lae(e,t.index??0)?!1:!!r.trim()&&n(i)}function v6(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function Rae(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function y6(e){return{href:e.data?.href,title:e.data?.title??null}}function zae(e){let t=L2({find:t=>{let n=Fae.exec(t);return!n||!_6(t,n,e.isAllowedHref)?null:v6(n)},type:e.type,getAttributes:y6});return new j2({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function Bae(e){let t=W2({find:t=>{let n=[];for(let r of t.matchAll(Iae))_6(t,r,e.isAllowedHref)&&n.push(v6(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>Rae(t,e)));return[...n,...r]},type:e.type,getAttributes:y6});return new P2({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function Vae(e){return new Rq({key:new Vq(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=m6(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function b6(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(Aae,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var Hae=N2.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{typeof e==`string`?f6(e):f6(e.scheme,e.optionalSlashes)})},onDestroy(){Tae()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!b6(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,b0(this.options.HTMLAttributes,e),0]:[`a`,b0(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[zae({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;m6(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!b6(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[Bae({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!b6(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[W2({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(Nae({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!b6(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(Pae({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(Vae({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),Uae=`listItem`,x6=`textStyle`,S6=/^\s*([-+*])\s$/,C6=U2.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,b0(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
341
- `):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Uae,this.editor.getAttributes(x6)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=B2({find:S6,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=B2({find:S6,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(x6),editor:this.editor})),[e]}}),Wae=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},Gae=(e,t,n,r)=>{let i=Wae(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,Q.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},Kae=(e,t,n)=>Gae(e.state,e.view.dispatch,t,n),w6=(e,t)=>F2.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>Kae(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),T6=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],E6=`abcdefghijklmnopqrstuvwxyz`,D6=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function O6(e){let t=e,n=``;for(let[e,r]of T6)for(;t>=e;)n+=r,t-=e;return n}function k6(e){return O6(e).toUpperCase()}function A6(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of T6)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function qae(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=A6(e);return t<=0?!1:(e===e.toLowerCase()?O6(t):k6(t))===e}function Jae(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function j6(e){if(e<=26)return E6[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?E6[n]:E6[t]+E6[n]}function M6(e){if(e&&!/^\d+$/.test(e)){if(qae(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function N6(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=M6(e);if(t===`i`||t===`I`)return A6(e);if(t===`a`||t===`A`){let t=Jae(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function Yae(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return j6(t);case`A`:return j6(t).toUpperCase();case`i`:return O6(t);case`I`:return k6(t);default:return String(t)}}function Xae(e){if(e.length===0)return!1;let t=M6(e[0])??`numeric`,n=N6(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=Yae(t,n+r);if(e[r]!==i)return!1}return!0}function Zae(e){return{type:M6(e),start:N6(e)}}function Qae(e){let{type:t,start:n}=Zae(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function $ae(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${j6(r)}${n}`;case`A`:return`${j6(r).toUpperCase()}${n}`;case`i`:return`${O6(r)}${n}`;case`I`:return`${k6(r)}${n}`;default:return`${r}${n}`}}function eoe(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function toe(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var P6=U2.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,b0(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(eoe(e))return{type:`listItem`,content:[{type:`paragraph`,content:toe(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>k2(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return $ae((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[w6(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),F6=(e,t)=>{let{$from:n}=t.selection,r=Q$(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},I6=(e,t)=>{let n=F6(e,t);if(!n)return!1;let[,r]=A0(t,e,n.$pos.pos+4);return r},noe=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},L6=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!G1(e.state,t)&&noe(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!G1(e.state,t)||!F0(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},roe=(e,t)=>{let n=I6(e,t),r=F6(e,t);return!r||!n?!1:n>r.depth},ioe=(e,t)=>{let n=I6(e,t),r=F6(e,t);return!r||!n?!1:n<r.depth},R6=(e,t)=>{if(!G1(e.state,t)||!P0(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:roe(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():ioe(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},aoe=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||G1(r,t))return!1;let o=j0(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,Q.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,Q.from(c)),e.setSelection(bq.create(e.doc,d+1)),e.scrollIntoView()),!0))},z6=F2.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&R6(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&R6(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&L6(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&L6(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&aoe(e,t,n))return!0;return!1}}}}),B6=RegExp(`^(\\s*)(${D6})([.)])\\s+(.*)$`),ooe=/^\s/,V6={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function soe(e){return B6.test(e.trimStart())}function coe(e){let t=e.trimStart();return V6.bulletItem.test(t)||soe(t)||V6.heading.test(t)||V6.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||V6.codeFence.test(t)||V6.blockMath.test(t)}function loe(e){return Object.values(V6).some(t=>t.test(e))}function uoe(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&coe(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function H6(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(B6);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?M6(s):void 0,p=isNaN(d)?N6(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(B6))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(ooe)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||loe(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
342
- `).trim(),contentLines:m,raw:g.join(`
343
- `)}),r=h,n=h}return[t,r]}var doe=RegExp(`^(${D6})([.)])\\s+(.+)$`);function foe(e){let t=e.split(`
344
- `).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(doe);if(!t)return null;n.push({marker:t[1],content:t[3]})}return Xae(n.map(e=>e.marker))?{type:`orderedList`,attrs:Qae(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function U6(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=uoe(a.contentLines),c=o.join(`
345
- `).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(`
346
- `).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=U6(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
347
- `)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function poe(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var moe=64;function W6(e,t){let n=[],r=0;for(;n.length<t;){let t=e.indexOf(`
348
- `,r);if(t===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,t)),r=t+1}return n}function hoe(e){let t=e.indexOf(`
349
- `),n=t===-1?e:e.slice(0,t);if(!B6.test(n))return[[],0,[]];let r=moe,i=W6(e,r),a=H6(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=W6(e,r),a=H6(i);return[a[0],a[1],i]}var goe=`listItem`,G6=`textStyle`,K6=/^(\d+)\.\s$/;function q6(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var J6=U2.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=q6(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=q6(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=b0(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?poe(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
350
- `):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=hoe(e);if(r.length===0)return;let o=U6(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
351
- `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(goe,this.editor.getAttributes(G6)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new Rq({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=foe(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=B2({find:K6,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=B2({find:K6,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(G6)}),joinPredicate:e,editor:this.editor})),[t]}}),_oe=/^\s*(\[([( |x])?\])\s$/,voe=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,yoe=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},boe=U2.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,b0(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>k2(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[w6(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=voe;let l=e=>{let t=yoe(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=x0(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[B2({find:_oe,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),xoe=U2.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,b0(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
352
- `):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=E2(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=E2(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});F2.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(C6.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(P6.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(z6.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(J6.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(boe.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(xoe.configure(this.options.taskList)),e}});var Y6=`&nbsp;`,X6=`\xA0`,Soe=U2.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,b0(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===Y6||n[0].text===Y6||n[0].raw===X6||n[0].text===X6)&&r.length===1&&r[0].type===`text`&&(r[0].text===Y6||r[0].text===X6)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?Y6:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Coe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,woe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Toe=N2.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,b0(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[L2({find:Coe,type:this.type})]},addPasteRules(){return[W2({find:woe,type:this.type})]}}),Eoe=U2.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),Doe=N2.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,b0(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function Ooe(e={}){return new Rq({view(t){return new koe(t,e)}})}var koe=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=JK(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},Z6=class e extends gq{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):gq.near(r)}content(){return zW.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new Aoe(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!joe(e)||!Moe(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!Sq.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};Z6.prototype.visible=!1,Z6.findFrom=Z6.findGapCursorFrom,gq.jsonID(`gapcursor`,Z6);var Aoe=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return Z6.valid(t)?new Z6(t):gq.near(t)}};function Q6(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function joe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||Q6(e.type))return!0;if(e.inlineContent)return!1}}return!0}function Moe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||Q6(e.type))return!0;if(e.inlineContent)return!1}}return!0}function Noe(){return new Rq({props:{decorations:Loe,createSelectionBetween(e,t,n){return t.pos==n.pos&&Z6.valid(n)?new Z6(n):null},handleClick:Foe,handleKeyDown:Poe,handleDOMEvents:{beforeinput:Ioe}}})}var Poe=_$({ArrowLeft:$6(`horiz`,-1),ArrowRight:$6(`horiz`,1),ArrowUp:$6(`vert`,-1),ArrowDown:$6(`vert`,1)});function $6(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof bq){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=Z6.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new Z6(c))),!0):!1}}function Foe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Z6.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Sq.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Z6(r))),!0)}function Ioe(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof Z6))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Q.empty;for(let e=r.length-1;e>=0;e--)i=Q.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new zW(i,0,0));return a.setSelection(bq.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function Loe(e){if(!(e.selection instanceof Z6))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,_Q.create(e.doc,[mQ.widget(e.selection.head,t,{key:`gapcursor`})])}F2.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Rq({key:new Vq(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var Roe=F2.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[Ooe(this.options)]}});F2.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new Rq({key:new Vq(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return _Q.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(mQ.node(t,t+e.nodeSize,{class:this.options.className}))}),_Q.create(e,a)}}})]}});var zoe=F2.create({name:`gapCursor`,addProseMirrorPlugins(){return[Noe()]},extendNodeSchema(e){return{allowGapCursor:_0(m0(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),e8=`placeholder`,t8=new Vq(`tiptap__placeholder`);function n8(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),mQ.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function r8(e,t){return typeof e==`function`?e(t):e}function i8({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&L0(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(n8({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:r8(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function a8({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&L0(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(n8({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:r8(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...i8({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return _Q.create(r,o)}function o8(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function s8(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function Boe(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function Voe(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function Hoe(e,t){let n=Boe(e,t.from,t.to);return n.push(s8(e,o8(e,t.from))),t.to>t.from?n.push(s8(e,o8(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(s8(e,o8(e,Math.min(t.from+1,e.content.size)))),n}function Uoe(e,t,n){let r=[];if(e.docChanged){let t=O0(e);for(let e of t)r.push(...Hoe(n.doc,e.newRange))}return e.selectionSet&&(r.push(s8(n.doc,o8(n.doc,e.mapping.map(t.selection.anchor)))),r.push(s8(n.doc,o8(n.doc,n.selection.anchor)))),Voe(r)}function Woe(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function Goe({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=Woe(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=i8({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function Koe({editor:e,options:t,dataAttribute:n}){return{init(r,i){return a8({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??_Q.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:Goe({decorations:i.map(r.mapping,r.doc),ranges:Uoe(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function qoe(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function Joe({editor:e,options:t}){let n=t.dataAttribute?`data-${qoe(t.dataAttribute)}`:`data-${e8}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Rq({key:t8,...r?{}:{state:Koe({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>a8({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?_Q.empty:t8.getState(n)??_Q.empty}})}F2.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:e8,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[Joe({editor:this.editor,options:this.options})]}});function c8(e,t){return!e.selection.empty&&!R0(e.selection)&&t.isEditable}function Yoe(e,t){return c8(e,t)&&!t.isFocused&&!t.view.dragging}function Xoe(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function Zoe(e){e.focus()}F2.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new Rq({key:new Vq(`selection`),props:{decorations(n){return Yoe(n,e)?_Q.create(n.doc,[mQ.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return c8(t.state,e)&&Xoe(),!1},focus(t){return c8(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&Zoe(t)}),!1}}}})]}});function l8({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Qoe=F2.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new Vq(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new Rq({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!l8({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!l8({node:r,types:n})}}})]}}),$oe=F2.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>B$(e,t),redo:()=>({state:e,dispatch:t})=>V$(e,t)}},addProseMirrorPlugins(){return[R$(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});F2.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(i4.configure(this.options.bold)),this.options.blockquote!==!1&&e.push($2.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(C6.configure(this.options.bulletList)),this.options.code!==!1&&e.push(c4.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(f4.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(p4.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(Roe.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(zoe.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(m4.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(h4.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push($oe.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(g4.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(x4.configure(this.options.italic)),this.options.listItem!==!1&&e.push(P6.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(z6.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(Hae.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(J6.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(Soe.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(Toe.configure(this.options.strike)),this.options.text!==!1&&e.push(Eoe.configure(this.options.text)),this.options.underline!==!1&&e.push(Doe.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(Qoe.configure(this.options?.trailingNode)),e}}),F2.create({name:`textAlign`,addOptions(){return{types:[],alignments:[`left`,`center`,`right`,`justify`],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>!T2(e.textAlign)||!this.options.alignments.includes(e.textAlign)?{}:{style:`text-align: ${e.textAlign}`}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).some(e=>e):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,`textAlign`)).some(e=>e),toggleTextAlign:e=>({editor:t,commands:n})=>this.options.alignments.includes(e)?t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign(`left`),"Mod-Shift-e":()=>this.editor.commands.setTextAlign(`center`),"Mod-Shift-r":()=>this.editor.commands.setTextAlign(`right`),"Mod-Shift-j":()=>this.editor.commands.setTextAlign(`justify`)}}});var ese=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;U2.create({name:`image`,addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?`inline`:`block`},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?`img[src]`:`img[src]:not([src^="data:"])`}]},renderHTML({HTMLAttributes:e}){return[`img`,b0(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode(`image`,{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{let t=e.attrs?.src??``,n=e.attrs?.alt??``,r=e.attrs?.title??``;return r?`![${n}](${t} "${r}")`:`![${n}](${t})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>`u`)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize,i=new Set([`src`,`width`,`height`]);return({node:a,getPos:o,HTMLAttributes:s,editor:c})=>{let l=document.createElement(`img`);l.draggable=!1;let u=b0(this.options.HTMLAttributes,s);Object.entries(u).forEach(([e,t])=>{if(t!=null)switch(e){case`src`:case`width`:case`height`:break;default:l.setAttribute(e,t)}}),u.src!==null&&(l.src=u.src);let d={...s},f=e=>{typeof e==`string`&&e!==``?l.getAttribute(`src`)!==e&&(l.src=e):(l.hasAttribute(`src`)&&l.removeAttribute(`src`),l.src!==``&&(l.src=``))};f(s.src);let p=new H2({element:l,editor:c,node:a,getPos:o,onResize:(e,t)=>{l.style.width=`${e}px`,l.style.height=`${t}px`},onCommit:(e,t)=>{let n=o();n!==void 0&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:e=>{if(e.type!==a.type)return!1;let t=x0(e,c.extensionManager.attributes.filter(t=>t.type===e.type.name));return Object.keys(d).forEach(e=>{!i.has(e)&&!(e in t)&&l.removeAttribute(e)}),Object.entries(t).forEach(([e,t])=>{i.has(e)||(t==null?l.removeAttribute(e):l.setAttribute(e,t))}),f(t.src),d=t,!0},options:{directions:e,min:{width:t,height:n},preserveAspectRatio:r===!0}}),m=p.dom,h=()=>{m.style.visibility=``,m.style.pointerEvents=``};return m.style.visibility=`hidden`,m.style.pointerEvents=`none`,l.complete&&l.naturalWidth>0?h():(l.onload=h,l.onerror=h),p}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[R2({find:ese,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}});function u8(e,t=[]){return e.flatMap(e=>{let n=[...t,...e.properties?e.properties.className:[]];return e.children?u8(e.children,n):{text:e.value,classes:n}})}function d8(e){return e.value||e.children||[]}function tse(e){return!!EW.getLanguage(e)}function f8({doc:e,name:t,lowlight:n,defaultLanguage:r}){let i=[];return u0(e,e=>e.type.name===t).forEach(e=>{let t=e.pos+1,a=e.node.attrs.language||r,o=n.listLanguages();u8(a&&(o.includes(a)||tse(a)||n.registered?.call(n,a))?d8(n.highlight(a,e.node.textContent)):d8(n.highlightAuto(e.node.textContent))).forEach(e=>{let n=t+e.text.length;if(e.classes.length){let r=mQ.inline(t,n,{class:e.classes.join(` `)});i.push(r)}t=n})}),_Q.create(e,i)}function nse(e){return typeof e==`function`}function rse({name:e,lowlight:t,defaultLanguage:n}){if(![`highlight`,`highlightAuto`,`listLanguages`].every(e=>nse(t[e])))throw Error(`You should provide an instance of lowlight to use the code-block-lowlight extension`);let r=new Rq({key:new Vq(`lowlight`),state:{init:(r,{doc:i})=>f8({doc:i,name:e,lowlight:t,defaultLanguage:n}),apply:(r,i,a,o)=>{let s=a.selection.$head.parent.type.name,c=o.selection.$head.parent.type.name,l=u0(a.doc,t=>t.type.name===e),u=u0(o.doc,t=>t.type.name===e);return r.docChanged&&([s,c].includes(e)||u.length!==l.length||r.steps.some(e=>e.from!==void 0&&e.to!==void 0&&l.some(t=>t.pos>=e.from&&t.pos+t.node.nodeSize<=e.to)))?f8({doc:r.doc,name:e,lowlight:t,defaultLanguage:n}):i.map(r.mapping,r.doc)}},props:{decorations(e){return r.getState(e)}}});return r}f4.extend({addOptions(){return{...this.parent?.call(this),lowlight:{},languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){return[...this.parent?.call(this)||[],rse({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});var p8=e=>`prism-editor-${e}`,m8={root:p8(`root`),toolbar:{root:p8(`toolbar`),hr:p8(`toolbar-hr`),bold:p8(`toolbar-bold`),italic:p8(`toolbar-italic`),underline:p8(`toolbar-underline`),strike:p8(`toolbar-strike`),code:p8(`toolbar-code`),codeBlock:p8(`toolbar-code-block`),link:p8(`toolbar-link`),unlink:p8(`toolbar-unlink`),image:p8(`toolbar-image`),alignLeft:p8(`toolbar-align-left`),alignCenter:p8(`toolbar-align-center`),alignRight:p8(`toolbar-align-right`),alignJustify:p8(`toolbar-align-justify`),bulletList:p8(`toolbar-bullet-list`),orderedList:p8(`toolbar-ordered-list`),taskList:p8(`toolbar-task-list`),blockquote:p8(`toolbar-blockquote`),hardBreak:p8(`toolbar-hard-break`),clear:p8(`toolbar-clear`),undo:p8(`toolbar-undo`),redo:p8(`toolbar-redo`),fullscreen:p8(`toolbar-fullscreen`)},content:{root:p8(`content`),hr:p8(`content-hr`),link:p8(`content-link`),image:p8(`content-image`),heading:p8(`content-heading`),codeInline:p8(`content-code-inline`),codeBlock:p8(`content-code-block`),langSelect:p8(`content-lang-select`),blockquote:p8(`content-blockquote`),bulletList:p8(`content-bullet-list`),orderedList:p8(`content-ordered-list`),listItem:p8(`content-list-item`),taskList:p8(`content-task-list`),taskItem:p8(`content-task-item`),placeholder:p8(`content-placeholder`)},state:{error:p8(`state-error`),disabled:p8(`state-disabled`),fullscreen:p8(`state-fullscreen`)}},ise=`0.75em`;G(`div`)(({theme:e})=>({minHeight:240,display:`flex`,flexDirection:`column`,borderRadius:Number(e.shape.borderRadius)*1.5,border:`solid 1px ${H(e.palette.grey[500],.2)}`,transition:e.transitions.create([`border-color`,`box-shadow`],{duration:e.transitions.duration.short}),"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 1px ${H(e.palette.primary.main,.2)}`},[`&.${m8.state.error}`]:{borderColor:e.palette.error.main,[`& .${m8.content.root}`]:{backgroundColor:H(e.palette.error.main,.04)}},[`&.${m8.state.disabled}`]:{opacity:.48,pointerEvents:`none`},[`&.${m8.state.fullscreen}`]:{top:16,left:16,position:`fixed`,maxHeight:`unset`,width:`calc(100% - 32px)`,height:`calc(100% - 32px)`,zIndex:e.zIndex.modal,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:e.palette.background.default,boxShadow:e.shadows[24]},[`& .${m8.content.placeholder}`]:{"&:first-child::before":{...e.typography.body2,height:0,float:`left`,pointerEvents:`none`,content:`attr(data-placeholder)`,color:e.palette.text.disabled}},[`& .${m8.content.root}`]:{display:`flex`,flex:`1 1 auto`,overflowY:`auto`,flexDirection:`column`,borderBottomLeftRadius:`inherit`,borderBottomRightRadius:`inherit`,backgroundColor:H(e.palette.grey[500],.04),"& .tiptap":{"> * + *":{marginTop:0,marginBottom:ise},"&.ProseMirror":{flex:`1 1 auto`,outline:`none`,padding:e.spacing(0,2)},h1:{...e.typography.h1,marginTop:40,marginBottom:8},h2:{...e.typography.h2,marginTop:40,marginBottom:8},h3:{...e.typography.h3,marginTop:24,marginBottom:8},h4:{...e.typography.h4,marginTop:24,marginBottom:8},h5:{...e.typography.h5,marginTop:24,marginBottom:8},h6:{...e.typography.h6,marginTop:24,marginBottom:8},p:{...e.typography.body1,marginBottom:`1.25rem`},[`& .${m8.content.link}`]:{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},[`& .${m8.content.hr}`]:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${m8.content.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,borderRadius:e.shape.borderRadius,margin:`auto auto 1.25em`,"&.ProseMirror-selectednode":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}},[`& .${m8.content.bulletList}`]:{paddingLeft:16,listStyleType:`disc`},[`& .${m8.content.orderedList}`]:{paddingLeft:16},[`& .${m8.content.listItem}`]:{lineHeight:2,"& > p":{margin:0}},[`& .${m8.content.taskList}`]:{listStyle:`none`,padding:0,"& li":{display:`flex`,alignItems:`flex-start`,gap:e.spacing(1),"& > label":{marginTop:4,flexShrink:0},"& > div":{flex:1}}},[`& .${m8.content.blockquote}`]:{lineHeight:1.5,fontSize:`1.5em`,margin:`24px auto`,position:`relative`,fontFamily:`Georgia, serif`,padding:e.spacing(3,3,3,8),color:e.palette.text.secondary,borderLeft:`solid 8px ${H(e.palette.grey[500],.08)}`,[e.breakpoints.up(`md`)]:{width:`100%`,maxWidth:640},"& p":{margin:0,fontSize:`inherit`,fontFamily:`inherit`},"&::before":{left:16,top:-8,display:`block`,fontSize:`3em`,content:`"\\201C"`,position:`absolute`,color:e.palette.text.disabled}},[`& .${m8.content.codeInline}`]:{padding:e.spacing(.25,.5),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:H(e.palette.grey[500],.16),fontFamily:`'JetBrains Mono', 'Fira Code', monospace`},[`& .${m8.content.codeBlock}`]:{position:`relative`,"& pre":{overflowX:`auto`,color:e.palette.common.white,padding:e.spacing(5,3,3,3),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.grey[900],fontFamily:`'JetBrains Mono', 'Fira Code', monospace`,"& code":{fontSize:e.typography.body2.fontSize}},[`& .${m8.content.langSelect}`]:{top:8,right:8,zIndex:1,padding:4,outline:`none`,borderRadius:4,position:`absolute`,color:e.palette.common.white,fontWeight:e.typography.fontWeightMedium,borderColor:H(e.palette.grey[500],.08),backgroundColor:H(e.palette.grey[500],.08)}}}}})),G(hv,{shouldForwardProp:e=>![`active`,`disabled`,`sx`].includes(e)})(({theme:e})=>({...e.typography.body2,width:28,height:28,padding:e.spacing(0,.75),borderRadius:Number(e.shape.borderRadius)*.75,"&:hover":{backgroundColor:e.palette.action.hover},variants:[{props:e=>!!e.active,style:{backgroundColor:e.palette.action.selected,border:`solid 1px ${e.palette.action.hover}`}},{props:e=>!!e.disabled,style:{opacity:.48,cursor:`default`,pointerEvents:`none`}}]})),G(hv)(({theme:e})=>({width:28,height:28,borderRadius:Number(e.shape.borderRadius)*.75,justifyContent:`center`,"&:hover":{backgroundColor:e.palette.action.hover}})),G(`div`)(({theme:e})=>({flexWrap:`wrap`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing(1),padding:e.spacing(1.25),borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,backgroundColor:e.palette.background.paper,borderBottom:`solid 1px ${H(e.palette.grey[500],.2)}`})),G(`div`)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5)})),G(`div`)(({theme:e})=>({display:`flex`,gap:e.spacing(.5),padding:e.spacing(.5),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[8],backgroundColor:e.palette.background.paper,border:`1px solid ${H(e.palette.grey[500],.16)}`})),F2.create({name:`clearFormat`,addKeyboardShortcuts(){return{"Mod-Shift-X":({editor:e})=>e.chain().focus().clearNodes().unsetAllMarks().run()}}});var h8=e=>e instanceof HTMLElement,g8=(e,t)=>typeof e==`string`&&t.includes(e);N2.create({name:`textTransform`,addOptions(){return{allowedValues:[`uppercase`,`lowercase`,`capitalize`],defaultValue:void 0}},addAttributes(){return{textTransform:{default:this.options.defaultValue,parseHTML:e=>{if(!h8(e))return;let t=e.style.textTransform||e.getAttribute(`style`)?.match(/text-transform:\s*(\w+)/)?.[1];return g8(t,this.options.allowedValues)?t:void 0},renderHTML:e=>e.textTransform?{style:`text-transform: ${e.textTransform}`}:{}}}},parseHTML(){return[{tag:`span[style]`,getAttrs:e=>{if(!h8(e))return null;let t=e.style.textTransform;return g8(t,this.options.allowedValues)?{}:!1}}]},renderHTML({HTMLAttributes:e}){return[`span`,e,0]},addCommands(){return{setTextTransform:e=>({commands:t})=>g8(e,this.options.allowedValues)?t.setMark(this.name,{textTransform:e}):!1,unsetTextTransform:()=>({commands:e})=>e.unsetMark(this.name),toggleTextTransform:e=>({editor:t,commands:n})=>g8(e,this.options.allowedValues)?t.isActive(this.name,{textTransform:e})?n.unsetTextTransform():n.setTextTransform(e):!1}}}),XH(`mega-menu`,[`root`,`horizontal`,`vertical`,`mobile`,`ul`,`li`,`item`,`icon`,`title`,`info`,`arrow`,`dropdown`,`subheader`,`subItem`,`tags`,`moreLink`,`slide`,`active`,`disabled`,`open`]),G(`nav`)({display:`flex`,flexShrink:0}),G(`ul`)({display:`flex`,listStyle:`none`,padding:0,margin:0}),G(`li`)({display:`flex`}),G(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),G(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:8,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),G(`span`)(({open:e})=>({marginLeft:6,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),G(ny)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`,display:`flex`,gap:24})),G(`div`)({flex:1,minWidth:0}),G(Nb)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:12})),G(pO,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),G(Z)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:8,marginTop:16})),G(pO)(({theme:e})=>({display:`inline-flex`,padding:`4px 10px`,fontSize:`0.75rem`,fontWeight:500,color:e.palette.text.secondary,backgroundColor:H(e.palette.grey[500],.08),borderRadius:6,textDecoration:`none`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:H(e.palette.grey[500],.16),color:e.palette.text.primary}})),G(pO)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,padding:`8px 0`,fontSize:`0.875rem`,fontWeight:600,color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`},"&::after":{content:`"→"`,marginLeft:4}})),G(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0}),G(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0}),G(`li`)({display:`flex`,flexDirection:`column`}),G(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),G(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),G(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),G(ny)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`})),G(Nb)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:8,marginTop:16,"&:first-child":{marginTop:0}})),G(pO,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),G(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0,width:`100%`}),G(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0,width:`100%`}),G(`li`)({display:`flex`,flexDirection:`column`,width:`100%`});var _8=(e,t)=>({all:`unset`,boxSizing:`border-box`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,borderBottom:`1px solid ${e.palette.divider}`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{color:`var(--nav-item-active-color)`}});G(`button`)(({theme:e,active:t})=>({..._8(e,t),"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),G(`a`)(({theme:e,active:t})=>_8(e,t)),G(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),G(`span`)(({open:e})=>({marginLeft:`auto`,width:20,height:20,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 2px 2px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),G(Z)(({theme:e})=>({padding:`8px 0`,paddingLeft:40,backgroundColor:e.palette.background.neutral})),G(Nb)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,padding:`12px 16px 8px`})),G(pO,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`10px 16px`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),(0,S.createContext)({activeId:null,registerSection:()=>{},unregisterSection:()=>{}});var v8=`prism-content`,y8={root:`${v8}__root`,compact:`${v8}__compact`,tiptap:`${v8}__tiptap`,markdown:`${v8}__markdown`,image:`${v8}__image`,link:`${v8}__link`,checkbox:`${v8}__checkbox`,codeBlock:`${v8}__code-block`,codeBlockTitle:`${v8}__code-block-title`,codeBlockCopy:`${v8}__code-block-copy`,codeBlockHighlight:`${v8}__code-block-highlight`,codeInline:`${v8}__code-inline`,spoiler:`${v8}__spoiler`,admonition:`${v8}__admonition`,admonitionNote:`${v8}__admonition-note`,admonitionTip:`${v8}__admonition-tip`,admonitionWarning:`${v8}__admonition-warning`,admonitionDanger:`${v8}__admonition-danger`,admonitionInfo:`${v8}__admonition-info`,admonitionCaution:`${v8}__admonition-caution`,admonitionTitle:`${v8}__admonition-title`,admonitionContent:`${v8}__admonition-content`,tabs:`${v8}__tabs`,tabsHeader:`${v8}__tabs-header`,tabsTab:`${v8}__tabs-tab`,tabsTabActive:`${v8}__tabs-tab-active`,tabsPanel:`${v8}__tabs-panel`,figure:`${v8}__figure`,figcaption:`${v8}__figcaption`,kbd:`${v8}__kbd`},ase=`0.75em`,b8=`'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace`;G(`div`)(({theme:e})=>({"> * + *":{marginTop:0,marginBottom:ase},"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:100},h1:{...e.typography.h1,marginTop:0,marginBottom:12},h2:{...e.typography.h2,marginTop:0,marginBottom:12},h3:{...e.typography.h3,marginTop:0,marginBottom:8},h4:{...e.typography.h4,marginTop:0,marginBottom:8},h5:{...e.typography.h5,marginTop:0,marginBottom:8},h6:{...e.typography.h6,marginTop:0,marginBottom:8},"& * + h1, & * + h2":{marginTop:40},"& * + h3":{marginTop:32},"& * + h4, & * + h5, & * + h6":{marginTop:24},p:{...e.typography.body1,marginBottom:`1.25rem`,lineHeight:1.8},hr:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${y8.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,margin:`auto auto 1.25em`,borderRadius:Number(e.shape.borderRadius)*2},"& img:not([class])":{maxWidth:`100%`,height:`auto`,borderRadius:Number(e.shape.borderRadius)*2,marginBottom:`1.25em`},"& a":{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},"& ul":{listStyleType:`disc`},"& ul, & ol":{paddingLeft:24,marginBottom:`1.25rem`,"& > li":{lineHeight:2,"& > p":{margin:0,display:`inline`}}},"& ul ul, & ol ol, & ul ol, & ol ul":{marginBottom:0},'& ul[data-type="taskList"]':{listStyle:`none`,paddingLeft:4,"& li":{display:`flex`,alignItems:`flex-start`,gap:8,"& > label":{marginTop:4}}},"& blockquote":{lineHeight:1.6,fontSize:`1em`,margin:`24px 0`,position:`relative`,padding:e.spacing(2.5,3,2.5,7),color:e.palette.text.secondary,borderLeft:`4px solid ${e.palette.primary.main}`,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:H(e.palette.primary.main,.04),"& p":{margin:0,fontSize:`inherit`},"& p + p":{marginTop:8},"&::before":{left:16,top:8,display:`block`,fontSize:`2.5em`,content:`"\\201C"`,position:`absolute`,color:H(e.palette.primary.main,.3),lineHeight:1}},[`& .${y8.codeInline}`]:{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:H(e.palette.grey[500],.2),fontFamily:b8},"& :not(pre) > code:not([class])":{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:H(e.palette.grey[500],.2),fontFamily:b8},[`& .${y8.codeBlock}`]:{position:`relative`,marginBottom:`1.25rem`,"& pre":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:b8,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],...e.palette.mode===`dark`&&{backgroundColor:H(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,borderRadius:0,color:`inherit`}}},"& pre:not([class])":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:b8,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],marginBottom:`1.25rem`,...e.palette.mode===`dark`&&{backgroundColor:H(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,color:`inherit`}},"& table":{width:`100%`,borderCollapse:`collapse`,fontSize:e.typography.body2.fontSize,border:`1px solid ${e.palette.divider}`,marginBottom:`1.25rem`,"& th, & td":{padding:e.spacing(1,1.5),border:`1px solid ${e.palette.divider}`,verticalAlign:`top`},"& th":{fontWeight:700,backgroundColor:H(e.palette.grey[500],.08)},"& tbody tr:nth-of-type(odd)":{backgroundColor:H(e.palette.grey[500],.04)}},[`& .${y8.checkbox}`]:{cursor:`pointer`,position:`relative`,"&:before":{content:`""`,top:-2,left:-2,width:17,height:17,borderRadius:3,position:`absolute`,backgroundColor:e.palette.grey[300],...e.palette.mode===`dark`&&{backgroundColor:e.palette.grey[700]}},"&:checked":{"&:before":{backgroundColor:e.palette.primary.main},"&:after":{top:1,left:5,width:4,height:9,content:`""`,position:`absolute`,borderStyle:`solid`,transform:`rotate(45deg)`,borderWidth:`0 2px 2px 0`,borderColor:e.palette.common.white}}},"& details":{marginBottom:`1rem`,"& summary":{cursor:`pointer`,fontWeight:600,marginBottom:8}},"& dl":{marginBottom:`1.25rem`,"& dt":{fontWeight:700,marginTop:12},"& dd":{marginLeft:24,marginBottom:4}},"& kbd":{display:`inline-block`,padding:e.spacing(.25,.5),fontSize:`0.8em`,fontFamily:b8,borderRadius:4,border:`1px solid ${e.palette.divider}`,boxShadow:`0 1px 0 ${H(e.palette.grey[500],.1)}`,backgroundColor:H(e.palette.grey[500],.06)},"& mark":{padding:e.spacing(0,.5),borderRadius:2,backgroundColor:H(e.palette.warning.main,.3)},"& sup, & sub":{fontSize:`0.75em`},[`& .${y8.spoiler}`]:{backgroundColor:e.palette.text.primary,color:e.palette.text.primary,borderRadius:4,padding:e.spacing(0,.5),cursor:`pointer`,transition:`all 0.15s ease`,userSelect:`none`,'&:hover, &[data-revealed="true"]':{backgroundColor:`transparent`,color:`inherit`,userSelect:`auto`}},[`& .${y8.admonition}`]:{margin:e.spacing(2,0),padding:e.spacing(1.5,2),borderRadius:e.shape.borderRadius,borderLeft:`4px solid ${e.palette.divider}`,backgroundColor:H(e.palette.text.primary,.04),"& > :last-child":{marginBottom:0}},[`& .${y8.admonitionTitle}`]:{fontWeight:600,textTransform:`uppercase`,fontSize:`0.75rem`,letterSpacing:`0.05em`,marginBottom:e.spacing(.75),opacity:.85},[`& .${y8.admonitionContent}`]:{"& p:last-child":{marginBottom:0}},[`& .${y8.admonitionNote}`]:{borderLeftColor:e.palette.text.secondary,backgroundColor:H(e.palette.text.primary,.04)},[`& .${y8.admonitionTip}`]:{borderLeftColor:e.palette.success.main,backgroundColor:H(e.palette.success.main,.08)},[`& .${y8.admonitionWarning}`]:{borderLeftColor:e.palette.warning.main,backgroundColor:H(e.palette.warning.main,.08)},[`& .${y8.admonitionDanger}`]:{borderLeftColor:e.palette.error.main,backgroundColor:H(e.palette.error.main,.08)},[`& .${y8.admonitionInfo}`]:{borderLeftColor:e.palette.info.main,backgroundColor:H(e.palette.info.main,.08)},[`& .${y8.admonitionCaution}`]:{borderLeftColor:e.palette.warning.dark,backgroundColor:H(e.palette.warning.dark,.08)},[`& .${y8.tabs}`]:{margin:e.spacing(2,0),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,overflow:`hidden`},[`& .${y8.tabsHeader}`]:{display:`flex`,gap:0,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:H(e.palette.text.primary,.03)},[`& .${y8.tabsTab}`]:{appearance:`none`,background:`transparent`,border:`none`,padding:e.spacing(1,2),fontFamily:`inherit`,fontSize:`0.8125rem`,fontWeight:500,color:e.palette.text.secondary,cursor:`pointer`,borderBottom:`2px solid transparent`,transition:`all 0.15s ease`,"&:hover":{color:e.palette.text.primary}},[`& .${y8.tabsTabActive}`]:{color:e.palette.text.primary,borderBottomColor:e.palette.primary.main},[`& .${y8.tabsPanel}`]:{padding:e.spacing(2),"& > :last-child":{marginBottom:0}},[`& .${y8.codeBlockTitle}`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:e.spacing(1),padding:e.spacing(.75,1.5),fontSize:`0.75rem`,fontFamily:`ui-monospace, "SF Mono", Menlo, Consolas, monospace`,color:e.palette.text.secondary,backgroundColor:H(e.palette.text.primary,.06),borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${y8.codeBlockCopy}`]:{appearance:`none`,background:`transparent`,border:`none`,color:`inherit`,cursor:`pointer`,padding:e.spacing(.25,.75),fontSize:`0.875rem`,borderRadius:e.shape.borderRadius,"&:hover":{backgroundColor:H(e.palette.text.primary,.08)}},[`& .${y8.figure}`]:{margin:e.spacing(2,0),textAlign:`center`},[`& .${y8.figcaption}`]:{fontSize:`0.8125rem`,color:e.palette.text.secondary,marginTop:e.spacing(.75)},[`& .${y8.kbd}`]:{display:`inline-block`,padding:e.spacing(0,.5),fontFamily:`ui-monospace, "SF Mono", Menlo, Consolas, monospace`,fontSize:`0.8em`,color:e.palette.text.primary,border:`1px solid ${e.palette.divider}`,borderBottomWidth:2,borderRadius:4,backgroundColor:H(e.palette.text.primary,.04),boxShadow:`0 1px 0 ${H(e.palette.text.primary,.15)}`,minWidth:`1.5em`,textAlign:`center`},[`&.${y8.compact}`]:{"> * + *":{marginTop:0,marginBottom:2},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:0,marginBottom:2},h1:{fontSize:`1.25rem`,fontWeight:600,marginTop:0,marginBottom:2},h2:{fontSize:`1.125rem`,fontWeight:600,marginTop:0,marginBottom:2},h3:{fontSize:`1rem`,fontWeight:600,marginTop:0,marginBottom:2},"h4, h5, h6":{fontSize:`0.875rem`,fontWeight:600,marginTop:0,marginBottom:2},p:{fontSize:`0.8125rem`,lineHeight:1.5,marginBottom:2,"&:last-child":{marginBottom:0}},hr:{margin:`4px 0`},"& blockquote":{margin:`4px 0`,padding:e.spacing(.5,0,.5,1.5),borderRadius:0,backgroundColor:`transparent`,"&::before":{display:`none`}},"& ul, & ol":{paddingLeft:20,marginBottom:2,"& > li":{lineHeight:1.5,fontSize:`0.8125rem`}},"& img:not([class])":{marginBottom:4},[`& .${y8.codeBlock}`]:{marginBottom:4},[`& .${y8.codeBlock} pre, & pre:not([class])`]:{padding:e.spacing(1.5),fontSize:`0.75rem`,lineHeight:1.5,marginBottom:4},[`& .${y8.codeInline}, & :not(pre) > code:not([class])`]:{fontSize:`0.75rem`},"& table":{fontSize:`0.75rem`,marginBottom:4}}})),(0,S.createContext)({}),y8.admonitionNote,y8.admonitionTip,y8.admonitionWarning,y8.admonitionDanger,y8.admonitionInfo,y8.admonitionCaution;var x8=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],S8={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...x8,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...x8],h2:[[`className`,`sr-only`]],img:[...x8,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...x8,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...x8],table:[...x8],ul:[...x8,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)};function ose(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}function C8(e,t){return Array(t+1).join(e)}function w8(e){return e.replace(/^\n*/,``)}function T8(e){for(var t=e.length;t>0&&e[t-1]===`
353
- `;)t--;return e.substring(0,t)}function E8(e){return T8(w8(e))}var sse=`ADDRESS.ARTICLE.ASIDE.AUDIO.BLOCKQUOTE.BODY.CANVAS.CENTER.DD.DIR.DIV.DL.DT.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.FRAMESET.H1.H2.H3.H4.H5.H6.HEADER.HGROUP.HR.HTML.ISINDEX.LI.MAIN.MENU.NAV.NOFRAMES.NOSCRIPT.OL.OUTPUT.P.PRE.SECTION.TABLE.TBODY.TD.TFOOT.TH.THEAD.TR.UL`.split(`.`);function D8(e){return j8(e,sse)}var O8=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`];function k8(e){return j8(e,O8)}function cse(e){return M8(e,O8)}var A8=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`];function lse(e){return j8(e,A8)}function use(e){return M8(e,A8)}function j8(e,t){return t.indexOf(e.nodeName)>=0}function M8(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var dse=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]];function N8(e){return dse.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var P8={};P8.paragraph={filter:`p`,replacement:function(e){return`
354
-
355
- `+e+`
356
-
357
- `}},P8.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
358
- `}},P8.heading={filter:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle===`setext`&&r<3){var i=C8(r===1?`=`:`-`,e.length);return`
359
-
360
- `+e+`
361
- `+i+`
362
-
363
- `}return`
364
-
365
- `+C8(`#`,r)+` `+e+`
366
-
367
- `}},P8.blockquote={filter:`blockquote`,replacement:function(e){return e=E8(e).replace(/^/gm,`> `),`
368
-
369
- `+e+`
370
-
371
- `}},P8.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
372
- `+e:`
373
-
374
- `+e+`
375
-
376
- `}},P8.listItem={filter:`li`,replacement:function(e,t,n){var r=n.bulletListMarker+` `,i=t.parentNode;if(i.nodeName===`OL`){var a=i.getAttribute(`start`),o=Array.prototype.indexOf.call(i.children,t);r=(a?Number(a)+o:o+1)+`. `}var s=/\n$/.test(e);return e=E8(e)+(s?`
377
- `:``),e=e.replace(/\n/gm,`
378
- `+` `.repeat(r.length)),r+e+(t.nextSibling?`
379
- `:``)}},P8.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`
380
-
381
- `+t.firstChild.textContent.replace(/\n/g,`
382
- `)+`
383
-
384
- `}},P8.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`fenced`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){for(var r=((t.firstChild.getAttribute(`class`)||``).match(/language-(\S+)/)||[null,``])[1],i=t.firstChild.textContent,a=n.fence.charAt(0),o=3,s=RegExp(`^`+a+`{3,}`,`gm`),c;c=s.exec(i);)c[0].length>=o&&(o=c[0].length+1);var l=C8(a,o);return`
385
-
386
- `+l+r+`
387
- `+i.replace(/\n$/,``)+`
388
- `+l+`
389
-
390
- `}},P8.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
391
-
392
- `+n.hr+`
393
-
394
- `}},P8.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=I8(t.getAttribute(`href`)),r=L8(F8(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},P8.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=I8(t.getAttribute(`href`)),i=F8(t.getAttribute(`title`));i&&=` "`+L8(i)+`"`;var a,o;switch(n.linkReferenceStyle){case`collapsed`:a=`[`+e+`][]`,o=`[`+e+`]: `+r+i;break;case`shortcut`:a=`[`+e+`]`,o=`[`+e+`]: `+r+i;break;default:var s=this.references.length+1;a=`[`+e+`][`+s+`]`,o=`[`+s+`]: `+r+i}return this.references.push(o),a},references:[],append:function(e){var t=``;return this.references.length&&(t=`
395
-
396
- `+this.references.join(`
397
- `)+`
398
-
399
- `,this.references=[]),t}},P8.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},P8.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},P8.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName===`PRE`&&!t;return e.nodeName===`CODE`&&!n},replacement:function(e){if(!e)return``;e=e.replace(/\r?\n|\r/g,` `);for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?` `:``,n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n+="`";return n+t+e+t+n}},P8.image={filter:`img`,replacement:function(e,t){var n=N8(F8(t.getAttribute(`alt`))),r=I8(t.getAttribute(`src`)||``),i=F8(t.getAttribute(`title`)),a=i?` "`+L8(i)+`"`:``;return r?`![`+n+`](`+r+a+`)`:``}};function F8(e){return e?e.replace(/(\n+\s*)+/g,`
400
- `):``}function I8(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function L8(e){return e.replace(/"/g,`\\"`)}function R8(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}R8.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return``}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=z8(this.array,e,this.options))||(t=z8(this._keep,e,this.options))||(t=z8(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function z8(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(fse(i,t,n))return i}}function fse(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function pse(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(t.firstChild&&!i(t)){for(var a=null,o=!1,s=null,c=V8(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if(a&&!/ $/.test(a.data)||o||l[0]!==` `||(l=l.substr(1)),!l){c=B8(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=B8(c);continue}var u=V8(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||B8(a))}}function B8(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function V8(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var H8=typeof window<`u`?window:{};function mse(){var e=H8.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function hse(){var e=function(){};return gse()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function gse(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{H8.ActiveXObject&&(e=!0)}return e}var _se=mse()?H8.DOMParser:hse();function vse(e,t){var n=typeof e==`string`?yse().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return pse({element:n,isBlock:D8,isVoid:k8,isPre:t.preformattedCode?bse:null}),n}var U8;function yse(){return U8||=new _se,U8}function bse(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function xse(e,t){return e.isBlock=D8(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=Sse(e),e.flankingWhitespace=Cse(e,t),e}function Sse(e){return!k8(e)&&!lse(e)&&/^\s*$/i.test(e.textContent)&&!cse(e)&&!use(e)}function Cse(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=wse(e.textContent);return n.leadingAscii&&W8(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&W8(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function wse(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function W8(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!D8(r)&&(a=i.test(r.textContent))),a}var Tse=Array.prototype.reduce;function G8(e){if(!(this instanceof G8))return new G8(e);var t={rules:P8,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
401
-
402
- `:``},keepReplacement:function(e,t){return t.isBlock?`
403
-
404
- `+t.outerHTML+`
405
-
406
- `:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`
407
-
408
- `+e+`
409
-
410
- `:e}};this.options=ose({},t,e),this.rules=new R8(this.options)}G8.prototype={turndown:function(e){if(!Ose(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=K8.call(this,new vse(e,this.options));return Ese.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e==`function`)e(this);else throw TypeError(`plugin must be a Function or an Array of Functions`);return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return N8(e)}};function K8(e){var t=this;return Tse.call(e.childNodes,function(e,n){n=new xse(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=Dse.call(t,n)),q8(e,r)},``)}function Ese(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=q8(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function Dse(e){var t=this.rules.forNode(e),n=K8.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function q8(e,t){var n=T8(e),r=w8(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
411
-
412
- `.substring(0,i)+r}function Ose(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var kse=`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.circle.cite.clipPath.code.col.colgroup.command.content.data.datalist.dd.defs.del.details.dfn.dialog.dir.div.dl.dt.element.ellipse.em.embed.fieldset.figcaption.figure.font.footer.foreignObject.form.frame.frameset.g.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.line.linearGradient.link.listing.main.map.mark.marquee.mask.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.path.pattern.picture.plaintext.polygon.polyline.pre.progress.q.radialGradient.rb.rbc.rect.rp.rt.rtc.ruby.s.samp.script.section.select.shadow.slot.small.source.spacer.span.stop.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.text.textarea.tfoot.th.thead.time.title.tr.track.tspan.tt.u.ul.var.video.wbr.xmp`.split(`.`),Ase=[`pre`,`code`],jse=kse.filter(e=>!Ase.includes(e));new G8({codeBlockStyle:`fenced`,fence:"```"}).addRule(`keep`,{filter:jse,replacement(e,t){let{isBlock:n,outerHTML:r}=t;return t&&n?`\n\n${r}\n\n`:r}}),{...S8},{...S8.attributes},[...S8.attributes?.span??[]],[...S8.attributes?.code??[]],[...S8.attributes?.div??[]];var Mse=S.createContext(null);function J8(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!J8(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!J8(e[r],t[r]))return!1;return!0}return!1}function Y8(e){return{center:e.getCenter(),zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),elevation:e.getCenterElevation?.()??0,padding:e.getPadding()}}function X8(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Z8(e,t){let n=t.viewState||t,r={};if(`longitude`in n&&`latitude`in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){let t=e.center.constructor;r.center=new t(n.longitude,n.latitude)}return`zoom`in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),`bearing`in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),`pitch`in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!J8(n.padding,e.padding)&&(r.padding=n.padding),r}function Q8(e,t,n,r){return e.min===t.min&&e.max===t.max?!1:(e.min>=t.min?(e.max!==t.max&&r(e.max),e.min!==t.min&&n(e.min)):(e.min!==t.min&&n(e.min),e.max!==t.max&&r(e.max)),!0)}function Nse(e,t,n){return Q8(t,n,t=>e.setMinZoom(t),t=>e.setMaxZoom(t))}function Pse(e,t,n){return Q8(t,n,t=>e.setMinPitch(t),t=>e.setMaxPitch(t))}var Fse=[`type`,`source`,`source-layer`,`minzoom`,`maxzoom`,`filter`,`layout`];function $8(e){if(!e)return null;if(typeof e==`string`||(`toJS`in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;`interactive`in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r){n||=Object.assign({},e),delete n.ref;for(let e of Fse)e in r&&(n[e]=r[e])}return n||e});return{...e,layers:n}}var e5={version:8,sources:{},layers:[]},t5={minZoom:0,maxZoom:22,minPitch:0,maxPitch:85,maxBounds:[-180,-85.051129,180,85.051129],projection:`mercator`,renderWorldCopies:!0},n5={mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,click:`onClick`,dblclick:`onDblClick`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,mouseout:`onMouseOut`,contextmenu:`onContextMenu`,touchstart:`onTouchStart`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchcancel:`onTouchCancel`},r5={movestart:`onMoveStart`,move:`onMove`,moveend:`onMoveEnd`,dragstart:`onDragStart`,drag:`onDrag`,dragend:`onDragEnd`,zoomstart:`onZoomStart`,zoom:`onZoom`,zoomend:`onZoomEnd`,rotatestart:`onRotateStart`,rotate:`onRotate`,rotateend:`onRotateEnd`,pitchstart:`onPitchStart`,pitch:`onPitch`,pitchend:`onPitchEnd`},i5={wheel:`onWheel`,boxzoomstart:`onBoxZoomStart`,boxzoomend:`onBoxZoomEnd`,boxzoomcancel:`onBoxZoomCancel`,resize:`onResize`,load:`onLoad`,render:`onRender`,idle:`onIdle`,remove:`onRemove`,data:`onData`,styledata:`onStyleData`,sourcedata:`onSourceData`,error:`onError`},Ise=[`maxBounds`,`projection`,`renderWorldCopies`],Lse=[`scrollZoom`,`boxZoom`,`dragRotate`,`dragPan`,`keyboard`,`doubleClickZoom`,`touchZoomRotate`,`touchPitch`],a5=class e{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[i5[e.type]];t?t(e):e.type===`error`&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||X8(Y8(this._map));let t=this.props[r5[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=X8(e),Z8(e,this.props)),this._onPointerEvent=e=>{(e.type===`mousemove`||e.type===`mouseout`)&&this._updateHover(e);let t=this.props[n5[e.type]];t&&(this.props.interactiveLayerIds&&e.type!==`mouseover`&&e.type!==`mouseout`&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t),r=this._updateSize(e),i=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){let r=e.savedMaps.pop();if(!r)return null;let i=r.map,a=i.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);i._container=n;let o=i._resizeObserver;o&&(o.disconnect(),o.observe(n)),r.setProps({...t,styleDiffing:!1}),i.resize();let{initialViewState:s}=t;return s&&(s.bounds?i.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s)),i.isStyleLoaded()?i.fire(`load`):i.once(`style.load`,()=>i.fire(`load`)),i._update(),r}_initialize(e){let{props:t}=this,{mapStyle:n=e5}=t,r={...t,...t.initialViewState,container:e,style:$8(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let a=new this._MapClass(r);i.padding&&a.setPadding(i.padding),t.cursor&&(a.getCanvas().style.cursor=t.cursor);let o=a;typeof o.setTransformCameraUpdate==`function`?o.setTransformCameraUpdate(this._onCameraUpdate):o.transformCameraUpdate=this._onCameraUpdate,a.on(`style.load`,()=>{this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:a.getProjection?.(),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on(`sourcedata`,()=>{this._updateStyleComponents(this.props)});for(let e in n5)a.on(e,this._onPointerEvent);for(let e in r5)a.on(e,this._onCameraEvent);for(let e in i5)a.on(e,this._onEvent);this._map=a}recycle(){this.map.getContainer().querySelector(`[mapboxgl-children]`)?.remove(),e.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&=(e._frame.cancel(),null),e._render())}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map,n=e.getCanvas();if(t.width!==n.clientWidth||t.height!==n.clientHeight)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,n=Y8(t);if(!t.isMoving()){let r=Z8(n,e);if(Object.keys(r).length>0)return this._internalUpdate=!0,t.jumpTo(r),this._internalUpdate=!1,!0}return!1}_updateConstraints(e,t){let n=Nse(this._map,{min:e.minZoom??t5.minZoom,max:e.maxZoom??t5.maxZoom},{min:t.minZoom??t5.minZoom,max:t.maxZoom??t5.maxZoom}),r=Pse(this._map,{min:e.minPitch??t5.minPitch,max:e.maxPitch??t5.maxPitch},{min:t.minPitch??t5.minPitch,max:t.maxPitch??t5.maxPitch});return n||r}_updateSettings(e,t){let n=this._map,r=!1;for(let i of Ise)if((i in e||i in t)&&!J8(e[i],t[i])){r=!0;let t=i in e?e[i]:t5[i];n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n,t)}let i=this._updateConstraints(e,t);return r||i}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||``),e.mapStyle!==t.mapStyle){let{mapStyle:t=e5,styleDiffing:n=!0}=e,r={diff:n};`localIdeographFontFamily`in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle($8(t),r)}}_updateStyleComponents({light:e,projection:t,sky:n,terrain:r}){let i=this._map,a=this._styleComponents;i.style?._loaded&&(e&&!J8(e,a.light)&&(a.light=e,i.setLight(e)),t&&!J8(t,a.projection)&&t!==a.projection?.type&&(a.projection=typeof t==`string`?{type:t}:t,i.setProjection?.(a.projection)),n&&!J8(n,a.sky)&&(a.sky=n,i.setSky(n)),r===void 0||J8(r,a.terrain)||r&&!i.getSource(r.source)||(a.terrain=r,i.setTerrain(r)))}_updateHandlers(e,t){let n=this._map;for(let r of Lse){let i=e[r]??!0;J8(i,t[r]??!0)||(i?n[r].enable(i):n[r].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:n=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,n=this._hoveredFeatures?.length>0,r=this._queryRenderedFeatures(e.point),i=r.length>0;!i&&n&&(e.type=`mouseleave`,this._onPointerEvent(e)),this._hoveredFeatures=r,i&&!n&&(e.type=`mouseenter`,this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}};a5.savedMaps=[];var Rse=[`setMaxBounds`,`setMinZoom`,`setMaxZoom`,`setMinPitch`,`setMaxPitch`,`setRenderWorldCopies`,`setProjection`,`setStyle`,`addSource`,`removeSource`,`addLayer`,`removeLayer`,`setLayerZoomRange`,`setFilter`,`setPaintProperty`,`setLayoutProperty`,`setLight`,`setTerrain`,`setFog`,`remove`];function zse(e){if(!e)return null;let t=e.map,n={getMap:()=>t};for(let e of Bse(t))!(e in n)&&!Rse.includes(e)&&(n[e]=t[e].bind(t));return n}function Bse(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))r[0]!==`_`&&typeof e[r]==`function`&&r!==`fire`&&r!==`setEventedParent`&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}var Vse=typeof document<`u`?S.useLayoutEffect:S.useEffect;function Hse(e,t){let{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:i,workerUrl:a}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()===`unavailable`){let{pluginUrl:t,lazy:r=!0}=typeof n==`string`?{pluginUrl:n}:n;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},r)}r!==void 0&&e.setMaxParallelImageRequests(r),i!==void 0&&e.setWorkerCount(i),a!==void 0&&e.setWorkerUrl(a)}var o5=S.createContext(null);function Use(e,t){let n=(0,S.useContext)(Mse),[r,i]=(0,S.useState)(null),a=(0,S.useRef)(),{current:o}=(0,S.useRef)({mapLib:null,map:null});(0,S.useEffect)(()=>{let t=e.mapLib,r=!0,s;return Promise.resolve(t||SW(()=>import(`./maplibre-gl-DowHoZAx.js`).then(e=>e.n),__vite__mapDeps([3,1]))).then(t=>{if(!r)return;if(!t)throw Error(`Invalid mapLib`);let c=`Map`in t?t:t.default;if(!c.Map)throw Error(`Invalid mapLib`);Hse(c,e),e.reuseMaps&&(s=a5.reuse(e,a.current)),s||=new a5(c.Map,e,a.current),o.map=zse(s),o.mapLib=c,i(s),n?.onMapMount(o.map,e.id)}).catch(t=>{let{onError:n}=e;n?n({type:`error`,target:null,originalEvent:null,error:t}):console.error(t)}),()=>{r=!1,s&&(n?.onMapUnmount(e.id),e.reuseMaps?s.recycle():s.destroy())}},[]),Vse(()=>{r&&r.setProps(e)}),(0,S.useImperativeHandle)(t,()=>o.map,[r]);let s=(0,S.useMemo)(()=>({position:`relative`,width:`100%`,height:`100%`,...e.style}),[e.style]);return S.createElement(`div`,{id:e.id,ref:a,style:s},r&&S.createElement(o5.Provider,{value:o},S.createElement(`div`,{"mapboxgl-children":``,style:{height:`100%`}},e.children)))}var Wse=S.forwardRef(Use),Gse=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function s5(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];n[e]=Number.isFinite(r)&&!Gse.test(e)?`${r}px`:r}}function c5(e,t,n,r){let i=(0,S.useContext)(o5),a=(0,S.useMemo)(()=>e(i),[]);return(0,S.useEffect)(()=>{let e=r||n||t,o=typeof t==`function`&&typeof n==`function`?t:null,s=typeof n==`function`?n:typeof t==`function`?t:null,{map:c}=i;return c.hasControl(a)||(c.addControl(a,e?.position),o&&o(i)),()=>{s&&s(i),c.hasControl(a)&&c.removeControl(a)}},[]),a}function Kse(e){let t=c5(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,S.useEffect)(()=>{s5(t._container,e.style)},[e.style]),null}var qse=(0,S.memo)(Kse);function Jse(e){let t=c5(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,S.useRef)(e),r=n.current;n.current=e;let{style:i}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),(0,S.useEffect)(()=>{s5(t._container,i)},[i]),null}var Yse=(0,S.memo)(Jse),l5=Uint8Array,u5=Uint16Array,Xse=Int32Array,d5=new l5([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f5=new l5([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Zse=new l5([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p5=function(e,t){for(var n=new u5(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Xse(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},m5=p5(d5,2),h5=m5.b,Qse=m5.r;h5[28]=258,Qse[258]=28;var g5=p5(f5,0),$se=g5.b;g5.r;for(var _5=new u5(32768),v5=0;v5<32768;++v5){var y5=(v5&43690)>>1|(v5&21845)<<1;y5=(y5&52428)>>2|(y5&13107)<<2,y5=(y5&61680)>>4|(y5&3855)<<4,_5[v5]=((y5&65280)>>8|(y5&255)<<8)>>1}for(var b5=(function(e,t,n){for(var r=e.length,i=0,a=new u5(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new u5(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new u5(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[_5[d]>>c]=l}else for(s=new u5(r),i=0;i<r;++i)e[i]&&(s[i]=_5[o[e[i]-1]++]>>15-e[i]);return s}),x5=new l5(288),v5=0;v5<144;++v5)x5[v5]=8;for(var v5=144;v5<256;++v5)x5[v5]=9;for(var v5=256;v5<280;++v5)x5[v5]=7;for(var v5=280;v5<288;++v5)x5[v5]=8;for(var S5=new l5(32),v5=0;v5<32;++v5)S5[v5]=5;var ece=b5(x5,9,1),tce=b5(S5,5,1),C5=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},w5=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},T5=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},nce=function(e){return(e+7)/8|0},rce=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new l5(e.subarray(t,n))},ice=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],E5=function(e,t,n){var r=Error(t||ice[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,E5),!n)throw r;return r},D5=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new l5(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new l5(i*3));var l=function(e){var t=n.length;if(e>t){var r=new l5(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=w5(e,d,1);var v=w5(e,d+1,3);if(d+=3,!v){var y=nce(d)+4,b=e[y-4]|e[y-3]<<8,x=y+b;if(x>i){c&&E5(0);break}s&&l(f+b),n.set(e.subarray(y,x),f),t.b=f+=b,t.p=d=x*8,t.f=u;continue}if(v==1)p=ece,m=tce,h=9,g=5;else if(v==2){var S=w5(e,d,31)+257,C=w5(e,d+10,15)+4,w=S+w5(e,d+5,31)+1;d+=14;for(var T=new l5(w),E=new l5(19),D=0;D<C;++D)E[Zse[D]]=w5(e,d+D*3,7);d+=C*3;for(var O=C5(E),k=(1<<O)-1,A=b5(E,O,1),D=0;D<w;){var j=A[w5(e,d,k)];d+=j&15;var y=j>>4;if(y<16)T[D++]=y;else{var M=0,N=0;for(y==16?(N=3+w5(e,d,3),d+=2,M=T[D-1]):y==17?(N=3+w5(e,d,7),d+=3):y==18&&(N=11+w5(e,d,127),d+=7);N--;)T[D++]=M}}var P=T.subarray(0,S),F=T.subarray(S);h=C5(P),g=C5(F),p=b5(P,h,1),m=b5(F,g,1)}else E5(1);if(d>_){c&&E5(0);break}}s&&l(f+131072);for(var ee=(1<<h)-1,te=(1<<g)-1,ne=d;;ne=d){var M=p[T5(e,d)&ee],re=M>>4;if(d+=M&15,d>_){c&&E5(0);break}if(M||E5(2),re<256)n[f++]=re;else if(re==256){ne=d,p=null;break}else{var ie=re-254;if(re>264){var D=re-257,ae=d5[D];ie=w5(e,d,(1<<ae)-1)+h5[D],d+=ae}var oe=m[T5(e,d)&te],se=oe>>4;oe||E5(3),d+=oe&15;var F=$se[se];if(se>3){var ae=f5[se];F+=T5(e,d)&(1<<ae)-1,d+=ae}if(d>_){c&&E5(0);break}s&&l(f+131072);var ce=f+ie;if(f<F){var le=a-F,ue=Math.min(F,ce);for(le+f<0&&E5(3);f<ue;++f)n[f]=r[le+f]}for(;f<ce;++f)n[f]=n[f-F]}}t.l=p,t.p=ne,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?rce(n,0,f):n.subarray(0,f)},ace=new l5(0),oce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&E5(6,`invalid gzip data`);var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},sce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},cce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&E5(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&E5(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function lce(e,t){return D5(e,{i:2},t&&t.out,t&&t.dictionary)}function uce(e,t){var n=oce(e);return n+8>e.length&&E5(6,`invalid gzip data`),D5(e.subarray(n,-8),{i:2},t&&t.out||new l5(sce(e)),t&&t.dictionary)}function dce(e,t){return D5(e.subarray(cce(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}function fce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?uce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?lce(e,t):dce(e,t)}var pce=typeof TextDecoder<`u`&&new TextDecoder;try{pce.decode(ace,{stream:!0})}catch{}var mce=Object.defineProperty,hce=Math.pow,O5=(e,t)=>mce(e,`name`,{value:t,configurable:!0}),k5=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});O5((e,t)=>{let n=!1,r=``;return new(L.GridLayer.extend({createTile:O5((t,i)=>{let a=document.createElement(`img`),o=new AbortController,s=o.signal;return a.cancel=()=>{o.abort()},n||=(e.getHeader().then(e=>{e.tileType===1||e.tileType===6?console.error(`Error: archive contains vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details.`):e.tileType===2?r=`image/png`:e.tileType===3?r=`image/jpeg`:e.tileType===4?r=`image/webp`:e.tileType===5&&(r=`image/avif`)}),!0),e.getZxy(t.z,t.x,t.y,s).then(e=>{if(e){let t=new Blob([e.data],{type:r}),n=window.URL.createObjectURL(t);a.src=n}else a.style.display=`none`;a.cancel=void 0,i(void 0,a)}).catch(e=>{if(e.name!==`AbortError`)throw e}),a},`createTile`),_removeTile:O5(function(e){let t=this._tiles[e];t&&(t.el.cancel&&t.el.cancel(),t.el.src&&window.URL.revokeObjectURL(t.el.src),t.el.width=0,t.el.height=0,t.el.deleted=!0,L.DomUtil.remove(t.el),delete this._tiles[e],this.fire(`tileunload`,{tile:t.el,coords:this._keyToTileCoords(e)}))},`_removeTile`)}))(t)},`leafletRasterLayer`);var gce=O5(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(e=>n(void 0,e.data,e.cacheControl||``,e.expires||``),e=>n(e)).catch(e=>n(e)),{cancel:O5(()=>r.abort(),`cancel`)}},`v3compat`),A5=class{constructor(e){this.tilev4=O5((e,t)=>k5(this,null,function*(){if(e.type===`json`){let n=e.url.substr(10),r=this.tiles.get(n);if(r||(r=new X5(n),this.tiles.set(n,r)),this.metadata){let n=yield r.getTileJson(e.url);return t.signal.throwIfAborted(),{data:n}}let i=yield r.getHeader();return t.signal.throwIfAborted(),(i.minLon>=i.maxLon||i.minLat>=i.maxLat)&&console.error(`Bounds of PMTiles archive ${i.minLon},${i.minLat},${i.maxLon},${i.maxLat} are not valid.`),{data:{tiles:[`${e.url}/{z}/{x}/{y}`],minzoom:i.minZoom,maxzoom:i.maxZoom,bounds:[i.minLon,i.minLat,i.maxLon,i.maxLat]}}}let n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),r=e.url.match(n);if(!r)throw Error(`Invalid PMTiles protocol URL`);let i=r[1],a=this.tiles.get(i);a||(a=new X5(i),this.tiles.set(i,a));let o=r[2],s=r[3],c=r[4],l=yield a?.getZxy(+o,+s,+c,t.signal);if(t.signal.throwIfAborted(),l)return{data:new Uint8Array(l.data),cacheControl:l.cacheControl,expires:l.expires};let u=yield a.getHeader();if(u.tileType===1||u.tileType===6){if(this.errorOnMissingTile)throw Error(`Tile not found.`);return{data:new Uint8Array}}return{data:null}}),`tilev4`),this.tile=gce(this.tilev4),this.tiles=new Map,this.metadata=e?.metadata||!1,this.errorOnMissingTile=e?.errorOnMissingTile||!1}add(e){this.tiles.set(e.source.getKey(),e)}get(e){return this.tiles.get(e)}};O5(A5,`Protocol`);var _ce=A5;function j5(e,t){return(t>>>0)*4294967296+(e>>>0)}O5(j5,`toNum`);function M5(e,t){let n=t.buf,r=n[t.pos++],i=(r&112)>>4;if(r<128||(r=n[t.pos++],i|=(r&127)<<3,r<128)||(r=n[t.pos++],i|=(r&127)<<10,r<128)||(r=n[t.pos++],i|=(r&127)<<17,r<128)||(r=n[t.pos++],i|=(r&127)<<24,r<128)||(r=n[t.pos++],i|=(r&1)<<31,r<128))return j5(e,i);throw Error(`Expected varint not more than 10 bytes`)}O5(M5,`readVarintRemainder`);function N5(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,M5(r,e))}O5(N5,`readVarint`);function P5(e,t,n,r,i){return i===0?r===0?[n,t]:[e-1-n,e-1-t]:[t,n]}O5(P5,`rotate`);function F5(e,t,n){if(e>26)throw Error(`Tile zoom level exceeds max safe number limit (26)`);if(t>=1<<e||n>=1<<e)throw Error(`tile x/y outside zoom level bounds`);let r=((1<<e)*(1<<e)-1)/3,i=e-1,[a,o]=[t,n];for(let e=1<<i;e>0;e>>=1){let t=a&e,n=o&e;r+=(3*t^n)*(1<<i),[a,o]=P5(e,a,o,t,n),i--}return r}O5(F5,`zxyToTileId`);function I5(e){let t=3*e+1;return t<4294967296?31-Math.clz32(t):63-Math.clz32(t/4294967296)}O5(I5,`tileIdToZ`);function vce(e){let t=I5(e)>>1;if(t>26)throw Error(`Tile zoom level exceeds max safe number limit (26)`);let n=e-((1<<t)*(1<<t)-1)/3,r=0,i=0,a=1<<t;for(let e=1;e<a;e<<=1){let t=e&n/2,a=e&(n^t);[r,i]=P5(e,r,i,t,a),n/=2,r+=t,i+=a}return[t,r,i]}O5(vce,`tileIdToZxy`);var yce=(e=>(e[e.Unknown=0]=`Unknown`,e[e.None=1]=`None`,e[e.Gzip=2]=`Gzip`,e[e.Brotli=3]=`Brotli`,e[e.Zstd=4]=`Zstd`,e))(yce||{});function L5(e,t){return k5(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(globalThis.DecompressionStream===void 0)return fce(new Uint8Array(e));let t=new Response(e).body;if(!t)throw Error(`Failed to read response stream`);let n=t.pipeThrough(new globalThis.DecompressionStream(`gzip`));return new Response(n).arrayBuffer()}throw Error(`Compression method not supported`)})}O5(L5,`defaultDecompress`);var bce=(e=>(e[e.Unknown=0]=`Unknown`,e[e.Mvt=1]=`Mvt`,e[e.Png=2]=`Png`,e[e.Jpeg=3]=`Jpeg`,e[e.Webp=4]=`Webp`,e[e.Avif=5]=`Avif`,e[e.Mlt=6]=`Mlt`,e))(bce||{});function R5(e){return e===1?`.mvt`:e===2?`.png`:e===3?`.jpg`:e===4?`.webp`:e===5?`.avif`:e===6?`.mlt`:``}O5(R5,`tileTypeExt`);var xce=127;function z5(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=r+n>>1,a=t-e[i].tileId;if(a>0)n=i+1;else if(a<0)r=i-1;else return e[i]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}O5(z5,`findTile`),O5(class{constructor(e){this.file=e}getKey(){return this.file.name}getBytes(e,t){return k5(this,null,function*(){return{data:yield this.file.slice(e,e+t).arrayBuffer()}})}},`FileSource`);var B5=class{constructor(e,t=new Headers,n=void 0){this.url=e,this.customHeaders=t,this.credentials=n,this.mustReload=!1;let r=``;`navigator`in globalThis&&(r=globalThis.navigator?.userAgent??``);let i=r.indexOf(`Windows`)>-1,a=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,i&&a&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,t,n,r){return k5(this,null,function*(){let i,a;n?a=n:(i=new AbortController,a=i.signal);let o=new Headers(this.customHeaders);o.set(`range`,`bytes=${e}-${e+t-1}`);let s;this.mustReload?s=`reload`:this.chromeWindowsNoCache&&(s=`no-store`);let c=yield fetch(this.url,{signal:a,cache:s,headers:o,credentials:this.credentials});if(e===0&&c.status===416){let e=c.headers.get(`Content-Range`);if(!e||!e.startsWith(`bytes */`))throw Error(`Missing content-length on 416 response`);let t=+e.substr(8);o.set(`range`,`bytes=0-${t-1}`),c=yield fetch(this.url,{signal:a,cache:`reload`,headers:o,credentials:this.credentials})}let l=c.headers.get(`Etag`);if(l!=null&&l.startsWith(`W/`)&&(l=null),c.status===416||r&&l&&l!==r)throw this.mustReload=!0,new G5(`Server returned non-matching ETag ${r} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(c.status>=300)throw Error(`Bad response code: ${c.status}`);let u=c.headers.get(`Content-Length`);if(c.status===200&&(!u||+u>t))throw i&&i.abort(),Error(`Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.`);return{data:yield c.arrayBuffer(),etag:l||void 0,cacheControl:c.headers.get(`Cache-Control`)||void 0,expires:c.headers.get(`Expires`)||void 0}})}};O5(B5,`FetchSource`);var Sce=B5;function V5(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*hce(2,32)+r}O5(V5,`getUint64`);function H5(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:V5(n,8),rootDirectoryLength:V5(n,16),jsonMetadataOffset:V5(n,24),jsonMetadataLength:V5(n,32),leafDirectoryOffset:V5(n,40),leafDirectoryLength:V5(n,48),tileDataOffset:V5(n,56),tileDataLength:V5(n,64),numAddressedTiles:V5(n,72),numTileEntries:V5(n,80),numTileContents:V5(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}O5(H5,`bytesToHeader`);function U5(e){let t={buf:new Uint8Array(e),pos:0},n=N5(t),r=[],i=0;for(let e=0;e<n;e++){let e=N5(t);r.push({tileId:i+e,offset:0,length:0,runLength:1}),i+=e}for(let e=0;e<n;e++)r[e].runLength=N5(t);for(let e=0;e<n;e++)r[e].length=N5(t);for(let e=0;e<n;e++){let n=N5(t);n===0&&e>0?r[e].offset=r[e-1].offset+r[e-1].length:r[e].offset=n-1}return r}O5(U5,`deserializeIndex`);var W5=class extends Error{};O5(W5,`EtagMismatch`);var G5=W5;function K5(e,t){return k5(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw Error(`Wrong magic number for PMTiles archive`);let r=H5(n.data.slice(0,xce),n.etag),i=n.data.slice(r.rootDirectoryOffset,r.rootDirectoryOffset+r.rootDirectoryLength),a=`${e.getKey()}|${r.etag||``}|${r.rootDirectoryOffset}|${r.rootDirectoryLength}`,o=U5(yield t(i,r.internalCompression));return[r,[a,o.length,o]]})}O5(K5,`getHeaderAndRoot`);function q5(e,t,n,r,i,a){return k5(this,null,function*(){let o=U5(yield t((yield e.getBytes(n,r,a,i.etag)).data,i.internalCompression));if(o.length===0)throw Error(`Empty directory is invalid`);return o})}O5(q5,`getDirectory`),O5(class{constructor(e=100,t=!0,n=L5){this.cache=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=n}getHeader(e){return k5(this,null,function*(){let t=e.getKey(),n=this.cache.get(t);if(n)return n.lastUsed=this.counter++,n.data;let r=yield K5(e,this.decompress);return r[1]&&this.cache.set(r[1][0],{lastUsed:this.counter++,data:r[1][2]}),this.cache.set(t,{lastUsed:this.counter++,data:r[0]}),this.prune(),r[0]})}getDirectory(e,t,n,r,i){return k5(this,null,function*(){let a=`${e.getKey()}|${r.etag||``}|${t}|${n}`,o=this.cache.get(a);if(o)return o.lastUsed=this.counter++,o.data;let s=yield q5(e,this.decompress,t,n,r,i);return this.cache.set(a,{lastUsed:this.counter++,data:s}),this.prune(),s})}prune(){if(this.cache.size>this.maxCacheEntries){let e=1/0,t;this.cache.forEach((n,r)=>{n.lastUsed<e&&(e=n.lastUsed,t=r)}),t&&this.cache.delete(t)}}invalidate(e){return k5(this,null,function*(){this.cache.delete(e.getKey())})}},`ResolvedValueCache`);var J5=class{constructor(e=100,t=!0,n=L5){this.cache=new Map,this.invalidations=new Map,this.pendingFetches=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=n}getHeader(e){return k5(this,null,function*(){let t=e.getKey(),n=this.cache.get(t);if(n)return n.lastUsed=this.counter++,yield n.data;let r=new Promise((t,n)=>{K5(e,this.decompress).then(e=>{e[1]&&this.cache.set(e[1][0],{lastUsed:this.counter++,data:Promise.resolve(e[1][2])}),t(e[0]),this.prune()}).catch(e=>{n(e)})});return this.cache.set(t,{lastUsed:this.counter++,data:r}),r})}trackSignal(e,t,n){t.refs++,n.addEventListener(`abort`,()=>{--t.refs<=0&&this.pendingFetches.get(e)===t&&(t.controller.abort(),this.cache.delete(e),this.pendingFetches.delete(e))},{once:!0})}getDirectory(e,t,n,r,i){return k5(this,null,function*(){let a=`${e.getKey()}|${r.etag||``}|${t}|${n}`,o=this.cache.get(a);if(o){o.lastUsed=this.counter++;let e=this.pendingFetches.get(a);return e&&this.trackSignal(a,e,i??new AbortController().signal),yield o.data}let s=new AbortController,c={controller:s,refs:0};this.trackSignal(a,c,i??new AbortController().signal),this.pendingFetches.set(a,c);let l=new Promise((i,o)=>{q5(e,this.decompress,t,n,r,s.signal).then(e=>{this.pendingFetches.delete(a),i(e),this.prune()}).catch(e=>{o(e)})});return this.cache.set(a,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let e=1/0,t;this.cache.forEach((n,r)=>{n.lastUsed<e&&(e=n.lastUsed,t=r)}),t&&this.cache.delete(t)}}invalidate(e){return k5(this,null,function*(){let t=e.getKey();if(this.invalidations.get(t))return yield this.invalidations.get(t);this.cache.delete(e.getKey());let n=new Promise((n,r)=>{this.getHeader(e).then(e=>{n(),this.invalidations.delete(t)}).catch(e=>{r(e)})});this.invalidations.set(t,n)})}};O5(J5,`SharedPromiseCache`);var Cce=J5,Y5=class{constructor(e,t,n){this.source=typeof e==`string`?new Sce(e):e,this.decompress=n||L5,this.cache=t||new Cce}getHeader(){return k5(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(e,t,n,r){return k5(this,null,function*(){let i=F5(e,t,n),a=yield this.cache.getHeader(this.source);if(r?.throwIfAborted(),e<a.minZoom||e>a.maxZoom)return;let o=a.rootDirectoryOffset,s=a.rootDirectoryLength;for(let e=0;e<=3;e++){let e=yield this.cache.getDirectory(this.source,o,s,a,r);r?.throwIfAborted();let t=z5(e,i);if(t){if(t.runLength>0){let e=yield this.source.getBytes(a.tileDataOffset+t.offset,t.length,r,a.etag);return{data:yield this.decompress(e.data,a.tileCompression),cacheControl:e.cacheControl,expires:e.expires}}o=a.leafDirectoryOffset+t.offset,s=t.length}else return}throw Error(`Maximum directory depth exceeded`)})}getZxy(e,t,n,r){return k5(this,null,function*(){try{return yield this.getZxyAttempt(e,t,n,r)}catch(i){if(i instanceof G5)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,t,n,r);throw i}})}getMetadataAttempt(){return k5(this,null,function*(){let e=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),n=yield this.decompress(t.data,e.internalCompression),r=new TextDecoder(`utf-8`);return JSON.parse(r.decode(n))})}getMetadata(){return k5(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof G5)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}})}getTileJson(e){return k5(this,null,function*(){let t=yield this.getHeader(),n=yield this.getMetadata();return{tilejson:`3.0.0`,scheme:`xyz`,tiles:[`${e}/{z}/{x}/{y}${R5(t.tileType)}`],vector_layers:n.vector_layers,attribution:n.attribution,description:n.description,name:n.name,version:n.version,bounds:[t.minLon,t.minLat,t.maxLon,t.maxLat],center:[t.centerLon,t.centerLat,t.centerZoom],minzoom:t.minZoom,maxzoom:t.maxZoom}})}};O5(Y5,`PMTiles`);var X5=Y5,wce=new _ce;i(`pmtiles`,wce.tile);var Tce={label:`Interactive map`,missingStyle:`A map source has not been configured.`,loading:`Loading map`,error:`Some map data could not be loaded. Check the connection or map source.`},Ece={longitude:0,latitude:0,zoom:1,bearing:0,pitch:0};(0,S.forwardRef)(function({styleUrl:e,styles:t,viewport:n,initialViewport:r,onViewportChange:i,showNavigation:a=!0,showScale:o=!0,showAttribution:s=!0,style:c,messages:l,children:u,onMove:d,onLoad:f,onError:p,cooperativeGestures:m=!0,...h},g){let _=Bu(),v={...Tce,...l},y=typeof window<`u`?window.__MAP_STYLE_URL__:void 0,b=e??t?.[_.palette.mode]??y,x={...Ece,...r},C=(0,S.useRef)(null),w=(0,S.useRef)(null),[T,E]=(0,S.useState)(),[D,O]=(0,S.useState)(!1),k=(0,S.useCallback)(e=>{w.current=e,typeof g==`function`?g(e):g&&(g.current=e)},[g]);return(0,S.useEffect)(()=>{if(!C.current||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>w.current?.resize());return e.observe(C.current),()=>e.disconnect()},[]),(0,S.useEffect)(()=>O(!1),[b]),(0,R.jsx)(Z,{ref:C,role:`region`,"aria-label":v.label,style:c,sx:{width:`100%`,height:400,position:`relative`,borderRadius:1,overflow:`hidden`,bgcolor:`background.paper`,"& .maplibregl-ctrl-group, & .maplibregl-popup-content":{bgcolor:`background.paper`,color:`text.primary`,boxShadow:_.shadows[2],borderRadius:1,border:1,borderColor:`divider`},"& .maplibregl-ctrl-group button":{color:`text.primary`,borderColor:`divider`},"& .maplibregl-ctrl-icon":{filter:_.palette.mode===`dark`?`invert(1)`:`none`},"& .maplibregl-ctrl-attrib":{bgcolor:`background.paper`,color:`text.secondary`},"& .maplibregl-ctrl-attrib a":{color:`inherit`},"& .maplibregl-ctrl-scale":{bgcolor:`background.paper`,color:`text.primary`,borderColor:`text.secondary`},"& .maplibregl-ctrl button:focus-visible":{outline:`2px solid ${_.palette.primary.main}`,outlineOffset:-2}},children:b?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(Wse,{...h,ref:k,mapStyle:b,cooperativeGestures:m,...n?{...x,...n}:{initialViewState:x,...h.initialViewState?{initialViewState:h.initialViewState}:{}},onMove:e=>{i?.(e.viewState),d?.(e)},onLoad:e=>{E(b),f?.(e)},onIdle:e=>{E(b),h.onIdle?.(e)},onError:e=>{O(!0),p?.(e)},attributionControl:s?h.attributionControl??{}:!1,style:{width:`100%`,height:`100%`},children:[a&&(0,R.jsx)(qse,{position:`top-right`}),o&&(0,R.jsx)(Yse,{position:`bottom-left`}),u]}),T!==b&&!D&&(0,R.jsx)(oO,{"aria-label":v.loading,sx:{position:`absolute`,top:0,left:0,right:0}}),D&&(0,R.jsx)(QT,{severity:`warning`,onClose:()=>O(!1),sx:{position:`absolute`,left:8,right:8,top:8},children:v.error})]}):(0,R.jsx)(QT,{severity:`info`,sx:{m:2},children:v.missingStyle})})});var Dce=class{locks=new Map;resolvers=new Map;rejecters=new Map;options;constructor(e={}){this.options={timeout:e.timeout??3e4,timeoutMessage:e.timeoutMessage??`Lock acquisition timed out`}}getState(e){return this.locks.has(e)?`locked`:`idle`}isLocked(e){return this.locks.has(e)}getActiveLocks(){return Array.from(this.locks.keys())}async acquire(e,t){let n=this.locks.get(e);if(n)return{value:await this.waitWithTimeout(n,e),wasExecutor:!1};let r,i,a=new Promise((e,t)=>{r=e,i=t});this.locks.set(e,a),this.resolvers.set(e,r),this.rejecters.set(e,i);try{let n=await t(),r=this.resolvers.get(e);return r&&r(n),{value:n,wasExecutor:!0}}catch(t){let n=this.rejecters.get(e);throw n&&n(t),t}finally{this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}}async tryAcquire(e,t){return this.isLocked(e)?null:this.acquire(e,t)}forceRelease(e,t){let n=this.rejecters.get(e);n&&n(t??Error(`Lock forcefully released`)),this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}clearAll(e){for(let t of this.locks.keys())this.forceRelease(t,e)}async waitWithTimeout(e,t){let{timeout:n,timeoutMessage:r}=this.options;return n<=0?e:Promise.race([e,new Promise((e,i)=>{setTimeout(()=>{i(new Oce(`${r} (key: ${t})`))},n)})])}},Oce=class e extends Error{name=`AsyncLockTimeoutError`;constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};new Dce;function kce(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);var Ace=1,jce=100,Z5=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:Ace++,Q5=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-jce;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=Z5(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],S.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Nce(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!S.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!S.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!S.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!S.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=Z5(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Mce=(e,t)=>Q5.message(e,t),Nce=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,$5=Object.assign(Mce,{success:Q5.success,info:Q5.info,warning:Q5.warning,error:Q5.error,custom:Q5.custom,message:Q5.message,promise:Q5.promise,dismiss:Q5.dismiss,loading:Q5.loading},{getHistory:()=>Q5.toasts,getToasts:()=>Q5.getActiveToasts()});kce(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);var e7=1500,t7=new Map;function n7(e){let t=Date.now(),n=t7.get(e);if(n!==void 0&&t-n<e7)return t7.set(e,t),!0;if(t7.set(e,t),t7.size>64){let e=t-e7*4;for(let[t,n]of t7)n<e&&t7.delete(t)}return!1}function r7(e){return(t,n)=>{n7(`${e}:${t}`)||$5[e](t,n)}}Object.assign(((e,t)=>{n7(`default:${e}`)||$5(e,t)}),{error:r7(`error`),success:r7(`success`),info:r7(`info`),warning:r7(`warning`),loading:$5.loading.bind($5),promise:$5.promise.bind($5),dismiss:$5.dismiss.bind($5),custom:$5.custom.bind($5),message:$5.message.bind($5)}),new class{options;registries=new Map;cache=new Map;loaders=new Map;constructor(e={}){this.options={baseDir:e.baseDir??(typeof process<`u`&&process.cwd?process.cwd():`/`),defaultRegistry:e.defaultRegistry??`prism`,config:e.config??{default:`prism`,registries:{}},cacheTtl:e.cacheTtl??3e5}}registerLoader(e,t){this.loaders.set(e,t)}async loadRegistry(e){let t=this.cache.get(e);if(t&&Date.now()-t.timestamp<this.options.cacheTtl)return t.data;let n=this.registries.get(e);if(n&&!t)return n;let r=this.loaders.get(e);if(r){let t=await r();return this.cacheRegistry(e,t),t}let i=this.options.config.registries[e];if(!i)throw Error(`Registry "${e}" not found in configuration`);let a=typeof i==`string`?await this.loadFromPath(i):await this.loadFromRemote(i);if(a.extends){let t=await this.loadRegistry(a.extends),n=this.mergeRegistries(t,a);return this.cacheRegistry(e,n),n}return this.cacheRegistry(e,a),a}async loadFromPath(e){let t=e.startsWith(`/`)?e:`${this.options.baseDir}/${e}`;if(typeof process<`u`&&(process.versions?.node||process.versions?.bun)){let e=await(await SW(()=>import(`./fs-Ccl3sAcp.js`),[])).readFile(t,`utf-8`);return JSON.parse(e)}if(e.startsWith(`http://`)||e.startsWith(`https://`)){let t=await fetch(e);if(!t.ok)throw Error(`Failed to load registry from ${e}: ${t.statusText}`);return t.json()}throw Error(`Cannot load local file "${t}" in browser environment. Register a custom loader with manager.registerLoader() or use a remote URL.`)}async loadFromRemote(e){let t=await fetch(e.url,{headers:e.headers});if(!t.ok)throw Error(`Failed to load registry from ${e.url}: ${t.statusText}`);return t.json()}cacheRegistry(e,t){this.registries.set(e,t),this.cache.set(e,{data:t,timestamp:Date.now()})}mergeRegistries(e,t){return{...e,...t,components:{...e.components,...t.components},blocks:{...e.blocks,...t.blocks},themes:{...e.themes,...t.themes}}}clearCache(e){e?this.cache.delete(e):this.cache.clear()}async getComponent(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).components[e]??null}async getComponents(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).components}async searchComponents(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.components);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getComponentCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.components))n.add(e.category);return Array.from(n).sort()}async getBlock(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).blocks[e]??null}async getBlocks(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).blocks}async searchBlocks(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.blocks);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getBlockCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.blocks))n.add(e.category);return Array.from(n).sort()}async resolveComponentDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getComponent(e,n);if(!r)throw Error(`Component "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}async resolveBlockDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getBlock(e,n);if(!r)throw Error(`Block "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}for(let e of r.dependencies.blocks){let t=await this.resolveBlockDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}getNpmDependencies(e){let t=new Set;function n(e){let r=e.definition;if(`dependencies`in r)for(let e of r.dependencies.npm)t.add(e);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}getFilePaths(e){let t=new Set;function n(e){let r=e.definition;for(let e of r.files)t.add(e.path);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}async checkComponentVersion(e,t,n){let r=await this.getComponent(e,n);return r?this.isVersionCompatible(r.version,t):!1}isVersionCompatible(e,t){let[n,r]=e.split(`.`).map(Number),[i,a]=t.split(`.`).map(Number);return n===i&&r>=a}async getRegistryInfo(e){let t=await this.loadRegistry(e??this.options.defaultRegistry);return{name:t.name,version:t.version,description:t.description,componentCount:Object.keys(t.components).length,blockCount:Object.keys(t.blocks).length,themeCount:Object.keys(t.themes).length}}getLoadedRegistries(){return Array.from(this.registries.keys())}};var i7={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},a7={mobile:64,desktop:72},o7={headerHeight:`--layout-header-height`,headerMobileHeight:`--layout-header-mobile-height`,headerDesktopHeight:`--layout-header-desktop-height`,headerBlur:`--layout-header-blur`,headerZIndex:`--layout-header-z-index`,navWidth:`--layout-nav-width`,navMiniWidth:`--layout-nav-mini-width`,navMobileWidth:`--layout-nav-mobile-width`,navZIndex:`--layout-nav-z-index`,navBg:`--layout-nav-bg`,navTextColor:`--layout-nav-text-color`,navTextSecondaryColor:`--layout-nav-text-secondary-color`,mainPaddingTop:`--layout-main-padding-top`,mainPaddingBottom:`--layout-main-padding-bottom`,mainPaddingLeft:`--layout-main-padding-left`,mainPaddingRight:`--layout-main-padding-right`};o7.headerMobileHeight,`${a7.mobile}`,o7.headerDesktopHeight,`${a7.desktop}`,o7.headerBlur,o7.navWidth,`${i7.full}`,o7.navMiniWidth,`${i7.mini}`,o7.navMobileWidth,`${i7.mobile}`;var Pce={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:i7.full,compactLayout:!1},s7=(0,S.createContext)(null);s7.displayName=`LayoutContext`;function Fce({children:e,initialConfig:t,persistKey:n}){let r=EM(Bu().breakpoints.down(`md`)),i=CP(e=>e.sidebarCollapsed),a=CP(e=>e.setSidebarCollapsed),[o,s]=(0,S.useState)(()=>{let e=n?i[n]??!1:!1;return{...Pce,...t,...n?{sidenavCollapsed:e}:{}}}),[c,l]=(0,S.useState)([]),u=(0,S.useMemo)(()=>o.sidenavVariant===`mini`||o.sidenavCollapsed?o.sidenavVariant===`stacked`?i7.stackedCollapsed:i7.mini:o.sidenavVariant===`stacked`?i7.stackedExpanded:i7.full,[o.sidenavVariant,o.sidenavCollapsed]),d=(0,S.useMemo)(()=>({...o,drawerWidth:u}),[o,u]),f=(0,S.useCallback)(e=>{s(t=>({...t,...e}))},[]),p=(0,S.useCallback)(()=>{s(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),m=(0,S.useCallback)(()=>{s(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>a(n,t)),{...e,sidenavCollapsed:t}})},[n,a]),h=(0,S.useCallback)(e=>{s(t=>({...t,navigationMenuType:e}))},[]),g=(0,S.useCallback)(e=>{s(t=>({...t,sidenavVariant:e}))},[]),_=(0,S.useCallback)(e=>{s(t=>({...t,navColor:e}))},[]),v=(0,S.useCallback)(e=>c.includes(e),[c]),y=(0,S.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),b=(0,S.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&(Array.isArray(e.selectionPrefix)?e.selectionPrefix:[e.selectionPrefix]).some(e=>n.startsWith(e)))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),x=(0,S.useCallback)((e,t)=>{if(!e||e.length===0)return!1;let n=e=>b(e,t)?!0:e.children&&e.children.length>0?e.children.some(n):!1;return e.some(n)},[b]),C=(0,S.useMemo)(()=>({config:d,isMobile:r,setConfig:f,toggleDrawer:p,toggleSidenavCollapse:m,setNavigationMenuType:h,setSidenavVariant:g,setNavColor:_,openItems:c,setOpenItems:l,isItemOpen:v,toggleItem:y,isNestedItemActive:x,isNavItemActive:b}),[d,r,f,p,m,h,g,_,c,v,y,x,b]);return(0,R.jsx)(s7.Provider,{value:C,children:e})}function c7(){let e=(0,S.useContext)(s7);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function l7(){let{config:e}=c7();return e}function u7(e){let{isNavItemActive:t,isNestedItemActive:n}=c7();return(0,S.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}G(Z)({minHeight:`100%`,display:`flex`,flex:`1 1 auto`,flexDirection:`column`}),G(Z)({display:`flex`,flex:`1 1 auto`,flexDirection:`row`,minHeight:0});function Ice(e=10){let[t,n]=(0,S.useState)(!1);return(0,S.useEffect)(()=>{if(typeof window>`u`)return;let t=e,r=Math.max(0,e/2),i=!1,a=()=>{i||(i=!0,requestAnimationFrame(()=>{let e=window.scrollY;n(n=>n?e>r:e>t),i=!1}))};return window.addEventListener(`scroll`,a,{passive:!0}),a(),()=>{window.removeEventListener(`scroll`,a)}},[e]),t}var Lce=G(Yte,{shouldForwardProp:e=>![`isOffset`,`disableOffset`,`disableElevation`].includes(e)})(({theme:e,isOffset:t,disableOffset:n,disableElevation:r})=>{let i={opacity:0,content:`""`,visibility:`hidden`,position:`absolute`,transition:e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})},a={...i,top:0,left:0,width:`100%`,height:`100%`,zIndex:-1,backdropFilter:`blur(var(${o7.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${o7.headerBlur}, 8px))`,backgroundColor:H(e.palette.background.default,.8),...t&&{opacity:1,visibility:`visible`}},o={...i,left:0,right:0,bottom:0,height:24,margin:`auto`,borderRadius:`50%`,width:`calc(100% - 48px)`,zIndex:-2,boxShadow:e.shadows[8],...t&&{opacity:.48,visibility:`visible`}};return{backgroundColor:`transparent`,boxShadow:`none`,zIndex:`var(${o7.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),Rce=G(Sj)(({theme:e})=>({minHeight:a7.mobile,[e.breakpoints.up(`md`)]:{minHeight:a7.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),d7=G(Z)({display:`flex`,alignItems:`center`});function zce({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=Ice(),l=(0,R.jsxs)(R.Fragment,{children:[e?.leftArea&&(0,R.jsx)(d7,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,R.jsx)(d7,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,R.jsx)(d7,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,R.jsxs)(Lce,{color:`transparent`,position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,R.jsx)(Z,{sx:t?.topArea,children:e.topArea}),(0,R.jsx)(Rce,{children:a?(0,R.jsx)(dE,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,R.jsx)(Z,{sx:t?.bottomArea,children:e.bottomArea})]})}G(hv)(({theme:e})=>({borderRadius:`50%`,padding:0,transition:e.transitions.create([`box-shadow`,`background-color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:H(e.palette.primary.main,.08)},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}})),G(rk)(({theme:e})=>({"& .MuiPopover-paper":{minWidth:220,maxWidth:280,borderRadius:Number(e.shape.borderRadius)*1.5,boxShadow:e.shadows[8],overflow:`hidden`}})),G(Z)(({theme:e})=>({padding:e.spacing(2),display:`flex`,alignItems:`center`,gap:e.spacing(1.5)})),G(Z)({flex:1,minWidth:0,overflow:`hidden`}),G(hk,{shouldForwardProp:e=>e!==`destructive`})(({theme:e,destructive:t})=>({padding:e.spacing(1,2),minHeight:40,gap:e.spacing(1.5),...t&&{color:e.palette.error.main,"&:hover":{backgroundColor:H(e.palette.error.main,.08)}}}));var f7={openMenu:`Open menu`,closeMenu:`Close menu`,collapseSidebar:`Collapse sidebar`,expandSidebar:`Expand sidebar`,navigation:`Main navigation`,main:`Main content`,skipToContent:`Skip to main content`};function Bce({collapsed:e,labels:t,sx:n,...r}){return(0,R.jsx)(Nv,{...r,size:`small`,"aria-label":e?t.expand:t.collapse,"aria-expanded":!e,sx:[e=>({position:`absolute`,top:36,insetInlineEnd:0,"--prism-sidebar-toggle-shift":e.direction===`rtl`?`-50%`:`50%`,transform:`translate(var(--prism-sidebar-toggle-shift), -50%)`,width:24,height:24,bgcolor:`background.paper`,border:1,borderColor:`divider`,boxShadow:1,"&:hover, &.Mui-focusVisible":{bgcolor:`background.paper`,backgroundImage:`linear-gradient(${(e.vars??e).palette.action.hover}, ${(e.vars??e).palette.action.hover})`}}),...Array.isArray(n)?n:[n]],children:e?(0,R.jsx)(cm,{sx:{fontSize:18}}):(0,R.jsx)(sm,{sx:{fontSize:18}})})}var Vce=G(Z,{shouldForwardProp:e=>![`variant`,`collapsed`].includes(e)})(({theme:e,variant:t,collapsed:n})=>{let r=i7.full;return n?r=t===`stacked`?i7.stackedCollapsed:i7.mini:t===`mini`?r=i7.mini:t===`stacked`&&(r=i7.stackedExpanded),{position:`fixed`,top:0,left:0,height:`100%`,width:r,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${o7.navBg}, ${e.palette.background.paper})`,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})}}),Hce=G(Z)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),Uce=G(bU)({flex:1});function Wce({logo:e,compactLogo:t,navData:n,renderNavItem:r,footer:i,showCollapseButton:a=!0,layoutQuery:o=`md`,"aria-label":s=OP.mainNav,labels:c,sx:l}){let u={...f7,...c},{config:d,toggleSidenavCollapse:f}=c7(),{sidenavVariant:p,sidenavCollapsed:m}=d,h=!m&&p!==`mini`;return(0,R.jsxs)(Vce,{as:`nav`,role:`navigation`,"aria-label":s,variant:p,collapsed:m,sx:[e=>({display:{xs:`none`,[o]:`flex`}}),...Array.isArray(l)?l:[l]],children:[(0,R.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,justifyContent:h?`flex-start`:`center`,height:{xs:a7.mobile,md:a7.desktop},px:h?3:1,flexShrink:0},children:h||t===void 0?e:t}),(0,R.jsx)(dD,{}),(0,R.jsxs)(Hce,{children:[(0,R.jsx)(Uce,{children:n?.map((e,t)=>(0,R.jsxs)(S.Fragment,{children:[!h&&t>0&&(0,R.jsx)(dD,{sx:{mx:1.5}}),(0,R.jsx)(yO,{subheader:h&&e.subheader?(0,R.jsx)(mw,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:h?1:.5},children:e.items.map(e=>r?r(e,0):(0,R.jsx)(p7,{item:e,showText:h,depth:0},e.id))})]},e.id))}),i&&(0,R.jsx)(Z,{sx:{flexShrink:0,p:2},children:i})]}),a&&p!==`mini`&&(0,R.jsx)(Bce,{collapsed:m,onClick:f,labels:{expand:u.expandSidebar,collapse:u.collapseSidebar}})]})}function Gce({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=OP.mainNav,labels:o,sx:s}){let c={...f7,...o},{config:l,setConfig:u}=c7(),d=yt(),f=()=>u({drawerOpen:!1});(0,S.useEffect)(()=>{u({drawerOpen:!1})},[d.key,u]);let{drawerOpen:p}=l;return(0,R.jsxs)(OD,{open:p,onClose:f,slotProps:{paper:{role:`dialog`,"aria-modal":!0,"aria-label":a}},"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:i7.mobile,backgroundColor:`var(${o7.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(s)?s:[s]],children:[(0,R.jsxs)(Z,{sx:{display:`flex`,alignItems:`center`,height:{xs:a7.mobile,md:a7.desktop},px:2.5},children:[(0,R.jsx)(Z,{sx:{flex:1},children:e}),(0,R.jsx)(Nv,{"aria-label":c.closeMenu,onClick:f,children:(0,R.jsx)(tm,{fontSize:`small`})})]}),(0,R.jsx)(dD,{}),(0,R.jsx)(Z,{component:`nav`,role:`navigation`,"aria-label":a,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,R.jsx)(yO,{subheader:e.subheader?(0,R.jsx)(mw,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:1},children:e.items.map(e=>n?n(e,0):(0,R.jsx)(p7,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,R.jsx)(Z,{sx:{p:2},children:r})]})}function Kce({item:e,showText:t,depth:n,active:r,current:i}){let a=(0,R.jsxs)(CO,{component:e.path?Fn:`div`,...e.path?{to:e.path}:{},disabled:e.disabled,selected:r,"aria-current":i,"aria-label":e.title,title:e.caption,sx:e=>({minHeight:44,borderRadius:1,pl:t?n*2+2:void 0,...!t&&{justifyContent:`center`,px:1,mx:.5},...r&&{color:`primary.main`,bgcolor:H(e.palette.primary.main,.08),"&:hover":{bgcolor:H(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,R.jsx)(OO,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,R.jsx)(Z,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,R.jsx)(NO,{primary:e.title,slotProps:{primary:{variant:`body2`,noWrap:!0,sx:{fontWeight:r?600:500}}}}),t&&e.info]});return t?a:(0,R.jsx)(wA,{title:e.title,placement:`right`,arrow:!0,children:a},e.id)}function p7({item:e,showText:t,depth:n}){let{pathname:r}=yt(),{isItemActive:i}=u7(r),a=i(e);return(0,R.jsx)(Kce,{item:e,showText:t,depth:n,active:a,current:a?r.replace(/\/$/,``)===e.path?.replace(/\/$/,``)?`page`:`location`:void 0},e.id)}var qce=G(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${o7.navBg}, ${e.palette.background.paper})`,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),gap:e.spacing(.5),overflowX:`auto`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}));function Jce({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=OP.mainNav,sx:i}){return(0,R.jsx)(qce,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,R.jsx)(Yce,{item:e},e.id)))})}function Yce({item:e}){let{pathname:t}=yt(),{isItemActive:n}=u7(t),r=n(e);return(0,R.jsxs)(Z,{component:e.path?Fn:`div`,...e.path?{to:e.path}:{},role:`menuitem`,tabIndex:0,"aria-disabled":e.disabled||void 0,"aria-current":r?`page`:void 0,sx:t=>({display:`flex`,alignItems:`center`,gap:1,px:1.5,py:.75,borderRadius:1,whiteSpace:`nowrap`,textDecoration:`none`,color:r?`primary.main`:`text.primary`,typography:`body2`,fontWeight:r?600:500,cursor:e.disabled?`default`:`pointer`,opacity:e.disabled?.5:1,...r&&{bgcolor:H(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?H(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,R.jsx)(Z,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,R.jsx)(`span`,{children:e.title}),e.info]})}var Xce=G(Z,{shouldForwardProp:e=>![`hasSidebar`,`sidebarWidth`,`layoutQuery`].includes(e)})(({theme:e,hasSidebar:t,sidebarWidth:n,layoutQuery:r})=>({display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:`100vh`,...t&&{[e.breakpoints.up(r)]:{marginLeft:n,minWidth:0}},transition:e.transitions.create(`margin-left`,{duration:e.transitions.duration.shorter})}));function Zce({children:e,layoutQuery:t,navData:n,headerSlots:r,logo:i,compactLogo:a,footer:o,sidenavFooter:s,slotProps:c,labels:l}){let u={...f7,...l},d=l7(),{toggleDrawer:f}=c7(),{navigationMenuType:p,sidenavCollapsed:m,sidenavVariant:h,drawerWidth:g}=d,_=p===`sidenav`||p===`combo`,v=p===`topnav`||p===`combo`,y=_?g:0,b=(0,S.useMemo)(()=>{if(!_)return r;let e=(0,R.jsx)(Nv,{onClick:f,"aria-label":u.openMenu,"aria-haspopup":`dialog`,"aria-expanded":d.drawerOpen,sx:{display:{xs:`inline-flex`,[t]:`none`},bgcolor:`transparent`,transition:`transform 0.2s ease`,"&:hover":{bgcolor:`transparent`,transform:`scale(1.1)`}},children:(0,R.jsx)(lm,{})});return{...r,leftArea:(0,R.jsxs)(R.Fragment,{children:[e,r?.leftArea]})}},[_,r,f,t,u.openMenu,d.drawerOpen]);return(0,R.jsxs)(Xce,{hasSidebar:_,sidebarWidth:y,layoutQuery:t,children:[(0,R.jsx)(DP,{href:`#${c?.main?.id??`main-content`}`,children:u.skipToContent}),(0,R.jsx)(zce,{slots:b,"aria-label":OP.header,sx:{...c?.header?.sx},...c?.header}),v&&(0,R.jsx)(Jce,{navData:n,layoutQuery:t,"aria-label":_?`Secondary navigation`:OP.mainNav}),_&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Wce,{logo:i,compactLogo:a,navData:n,footer:s,layoutQuery:t,"aria-label":u.navigation,labels:u}),(0,R.jsx)(Gce,{logo:i,navData:n,footer:s,layoutQuery:t,"aria-label":u.navigation,labels:u})]}),(0,R.jsx)(Z,{component:`main`,id:c?.main?.id??`main-content`,className:c?.main?.className,role:`main`,"aria-label":u.main,tabIndex:-1,sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,"&:focus":{outline:`none`},...!c?.main?.disablePadding&&{py:{xs:2,sm:3,md:4},px:{xs:2,sm:3,md:4}},...c?.main?.sx},children:c?.main?.maxWidth?(0,R.jsx)(dE,{maxWidth:c.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`},children:e}):e}),o]})}function Qce({children:e,layoutQuery:t=`lg`,navData:n,headerSlots:r,logo:i,compactLogo:a,footer:o,sidenavFooter:s,initialConfig:c,persistKey:l,slotProps:u,labels:d}){return(0,R.jsx)(Fce,{initialConfig:c,persistKey:l,children:(0,R.jsx)(Zce,{layoutQuery:t,navData:n,headerSlots:r,logo:i,compactLogo:a,footer:o,sidenavFooter:s,slotProps:u,labels:d,children:e})})}var $ce=G(Z)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${H(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${H(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),ele=G(Z)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),tle=G(aE)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}));function nle({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,R.jsxs)($ce,{sx:r,children:[t&&(0,R.jsx)(Z,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,R.jsx)(ele,{children:(0,R.jsx)(tle,{sx:{maxWidth:n},children:e})})]})}G(Z)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),G(Z)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,[e.breakpoints.up(`md`)]:{flexDirection:`row`}})),G(Z)(({theme:e})=>({display:`none`,[e.breakpoints.up(`md`)]:{display:`flex`,flexDirection:`column`,width:`50%`,position:`relative`,background:`linear-gradient(135deg, ${e.palette.primary.main} 0%, ${e.palette.primary.dark} 100%)`,color:e.palette.primary.contrastText,padding:e.spacing(8),justifyContent:`center`,alignItems:`center`}})),G(Z)({maxWidth:480,textAlign:`center`,position:`relative`,zIndex:1}),G(Z)(({theme:e})=>({display:`flex`,flexDirection:`column`,flex:1,[e.breakpoints.up(`md`)]:{width:`50%`}})),G(Z)(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flex:1,padding:e.spacing(3),[e.breakpoints.up(`sm`)]:{padding:e.spacing(5)},[e.breakpoints.up(`md`)]:{padding:e.spacing(8),maxWidth:480,marginLeft:`auto`,marginRight:`auto`}})),G(Z)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),G(Z)({display:`flex`,flexDirection:`column`,flex:`1 1 auto`}),G(Z)(({theme:e})=>({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:e.spacing(3,2,10,2),[e.breakpoints.up(`sm`)]:{padding:e.spacing(10,0),maxWidth:448,margin:`0 auto`,width:`100%`}}));var m7={mode:`light`,direction:`ltr`,preset:`default`,compactLayout:!1,contrast:`default`,primaryColor:null};xP(bP(e=>({...m7,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setDirection:t=>e({direction:t}),setPreset:t=>e({preset:t}),setCompactLayout:t=>e({compactLayout:t}),setContrast:t=>e({contrast:t}),setPrimaryColor:t=>e({primaryColor:t}),reset:()=>e(m7)}),`theme`));var h7=vP(e=>({token:null,setToken:t=>e({token:t})}),`token`);xP(bP(e=>({status:`loading`,sessionId:null,setStatus:t=>e({status:t}),setAuthenticated:t=>{e({status:`authenticated`,sessionId:t??null})},setUnauthenticated:()=>{h7.getState().setToken(null),e({status:`unauthenticated`,sessionId:null})},clearSession:()=>{h7.getState().setToken(null),typeof window<`u`&&window.sessionStorage.removeItem(`sessionId`),e({status:`unauthenticated`,sessionId:null})}}),`auth`,{partialize:e=>({status:e.status,sessionId:e.sessionId})})),xP(vP(e=>({sidebarOpen:!0,sidebarCollapsed:!1,activeDialog:null,globalLoading:!1,searchOpen:!1,toggleSidebar:()=>e(e=>{e.sidebarOpen=!e.sidebarOpen}),setSidebarOpen:t=>e({sidebarOpen:t}),setSidebarCollapsed:t=>e({sidebarCollapsed:t}),openDialog:t=>e({activeDialog:t}),closeDialog:()=>e({activeDialog:null}),setGlobalLoading:t=>e({globalLoading:t}),toggleSearch:()=>e(e=>{e.searchOpen=!e.searchOpen}),setSearchOpen:t=>e({searchOpen:t})}),`ui`));var g7=(0,S.createContext)(null);g7.displayName=`NetronContext`;var rle=(0,S.createContext)(null);rle.displayName=`ConnectionContext`;var ile=(0,S.createContext)(null);ile.displayName=`QueryClientContext`;var _7=(0,S.createContext)({staleTime:0,cacheTime:3e5,retry:3,refetchOnWindowFocus:!0,refetchOnReconnect:!0});_7.displayName=`DefaultsContext`;var ale=(0,S.createContext)({isHydrating:!1,markHydrated:()=>{}});ale.displayName=`HydrationContext`;function v7(e){return JSON.stringify(e,(e,t)=>typeof t==`object`&&t&&!Array.isArray(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ole(e,t,n=!1){if(n)return v7(e)===v7(t);if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!y7(e[n],t[n]))return!1;return!0}function y7(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null||t===null)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>y7(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>y7(e[n],t[n]))}return!1}function sle(e,t){if(!t)return!0;if(t.queryKey&&!ole(e.queryKey,t.queryKey,t.exact)||t.status&&e.state.status!==t.status)return!1;if(t.stale!==void 0){let n=e.state.staleTime??0,r=e.state.isInvalidated||n===0||n!==1/0&&Date.now()>e.state.dataUpdatedAt+n;if(t.stale!==r)return!1}return!(t.predicate&&!t.predicate(e))}var b7={now:()=>Date.now(),isExpired:(e,t)=>Date.now()>e+t,timeUntilExpiry:(e,t)=>Math.max(0,e+t-Date.now())};function cle(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}var lle={maxEntries:1e3,defaultCacheTime:3e5,gcEnabled:!0,gcInterval:6e4},x7=`\0infinite`,ule=class{config;cache=new Map;gcTimer;constructor(e){this.config={...lle,...e}}resolveHash(e,t=!1){let n=v7(e);return t?n+x7:n}get(e,t=!1){let n=this.resolveHash(e,t);return this.cache.get(n)?.data}getQuery(e,t=!1){let n=this.resolveHash(e,t),r=this.cache.get(n);if(r)return{queryKey:r.queryKey,queryHash:r.queryHash,state:{data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,staleTime:r.staleTime}}}set(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i),o={queryKey:e,queryHash:i,data:t,error:null,status:`success`,dataUpdatedAt:b7.now(),errorUpdatedAt:a?.errorUpdatedAt??0,isInvalidated:!1,staleTime:n??a?.staleTime,fetchStatus:`idle`,observers:a?.observers??new Set};this.cache.set(i,o),this.notifyObservers(i),this.enforceMaxEntries(),this.ensureGcScheduled()}setError(e,t){let n=v7(e),r=this.cache.get(n),i={queryKey:e,queryHash:n,data:r?.data,error:t,status:`error`,dataUpdatedAt:r?.dataUpdatedAt??0,errorUpdatedAt:b7.now(),isInvalidated:!1,fetchStatus:`idle`,observers:r?.observers??new Set};this.cache.set(n,i),this.notifyObservers(n),this.ensureGcScheduled()}update(e,t){let n=v7(e),r=this.cache.get(n);r&&(Object.assign(r,t),this.notifyObservers(n))}isStale(e,t){let n=v7(e),r=this.cache.get(n);if(!r||r.isInvalidated)return!0;if(t===1/0)return!1;if(t===0)return!0;let i=t??0;return b7.isExpired(r.dataUpdatedAt,i)}invalidate(e){let t=v7(e);for(let e of[t,t+x7]){let t=this.cache.get(e);t&&(t.isInvalidated=!0,this.notifyObservers(e))}}remove(e){let t=v7(e);for(let e of[t,t+x7]){let t=this.cache.get(e);t&&(t.abortController?.abort(),t.gcTimeout&&clearTimeout(t.gcTimeout),this.cache.delete(e))}}clear(){for(let e of this.cache.values())e.abortController?.abort(),e.gcTimeout&&clearTimeout(e.gcTimeout);this.cache.clear(),this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0)}findAll(e){let t=[];for(let n of this.cache.values()){let r={queryKey:n.queryKey,queryHash:n.queryHash,state:{data:n.data,error:n.error,status:n.status,dataUpdatedAt:n.dataUpdatedAt,errorUpdatedAt:n.errorUpdatedAt,isInvalidated:n.isInvalidated,staleTime:n.staleTime}};sle(r,e)&&t.push(r)}return t}cancelAll(e){let t=this.findAll(e);for(let e of t)this.cache.get(e.queryHash)?.abortController?.abort()}subscribe(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i);return a||(a={queryKey:e,queryHash:i,data:void 0,error:null,status:`idle`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`idle`,observers:new Set},this.cache.set(i,a)),a.observers.add(t),n!==void 0&&(a.observerCacheTimes||(a.observerCacheTimes=new Map),a.observerCacheTimes.set(t,n)),a.gcTimeout&&(clearTimeout(a.gcTimeout),a.gcTimeout=void 0),()=>{a.observers.delete(t),a.observerCacheTimes?.delete(t),this.scheduleGC(i)}}notifyObservers(e){this.cache.get(e)?.observers.forEach(e=>{try{e()}catch(e){console.error(`Error in query observer:`,e)}})}startFetch(e){let t=v7(e),n=this.cache.get(t);n?.abortController?.abort();let r=new AbortController;return n&&(n.fetchStatus=`fetching`,n.abortController=r,n.status===`idle`&&(n.status=`loading`),this.notifyObservers(t)),r}endFetch(e){let t=v7(e),n=this.cache.get(t);n&&(n.fetchStatus=`idle`,n.abortController=void 0,this.notifyObservers(t))}isFetching(e){let t=v7(e);return this.cache.get(t)?.fetchStatus===`fetching`}getOrCreateFetch(e,t,n){let r=v7(e),i=this.cache.get(r);if(i?.promise&&i.fetchStatus===`fetching`)return i.promise;i?(i.fetchStatus=`fetching`,i.status===`idle`&&(i.status=`loading`)):(i={queryKey:e,queryHash:r,data:void 0,error:null,status:`loading`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`fetching`,observers:new Set},this.cache.set(r,i)),i.abortController?.abort();let a=new AbortController;i.abortController=a;let o=t(a.signal).then(e=>{let t=this.cache.get(r);return t?.promise===o&&(t.data=e,t.error=null,t.status=`success`,t.dataUpdatedAt=b7.now(),t.isInvalidated=!1,n!==void 0&&(t.staleTime=n),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e}).catch(e=>{let t=this.cache.get(r);throw t?.promise===o&&(t.error=e,t.status=`error`,t.errorUpdatedAt=b7.now(),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e});return i.promise=o,this.notifyObservers(r),o}getInFlightPromise(e){let t=v7(e),n=this.cache.get(t);if(n?.promise&&n.fetchStatus===`fetching`)return n.promise}scheduleGC(e){if(!this.config.gcEnabled)return;let t=this.cache.get(e);!t||t.observers.size>0||(t.gcTimeout&&clearTimeout(t.gcTimeout),t.gcTimeout=setTimeout(()=>{t.observers.size===0&&this.cache.delete(e)},this.resolveCacheTime(t)))}resolveCacheTime(e){let t=e.observerCacheTimes;if(!t||t.size===0)return this.config.defaultCacheTime;let n=this.config.defaultCacheTime;for(let e of t.values())e>n&&(n=e);return n}ensureGcScheduled(){this.config.gcEnabled&&this.gcTimer===void 0&&this.cache.size!==0&&(this.gcTimer=setTimeout(()=>{this.gcTimer=void 0,this.runGarbageCollection(),this.ensureGcScheduled()},this.config.gcInterval))}runGarbageCollection(){for(let[e,t]of this.cache.entries()){if(t.observers.size>0)continue;let n=Math.max(t.dataUpdatedAt,t.errorUpdatedAt);b7.isExpired(n,this.config.defaultCacheTime)&&this.cache.delete(e)}}enforceMaxEntries(){if(this.cache.size<=this.config.maxEntries)return;let e=Array.from(this.cache.entries()).filter(([e,t])=>t.observers.size===0).sort((e,t)=>Math.max(e[1].dataUpdatedAt,e[1].errorUpdatedAt)-Math.max(t[1].dataUpdatedAt,t[1].errorUpdatedAt)),t=this.cache.size-this.config.maxEntries;for(let n=0;n<t&&n<e.length;n++){let[t,r]=e[n];r.gcTimeout&&clearTimeout(r.gcTimeout),this.cache.delete(t)}}dehydrate(){return Array.from(this.cache.values()).filter(e=>e.status===`success`).map(e=>({queryKey:e.queryKey,queryHash:e.queryHash,state:{data:e.data,error:e.error,status:e.status,dataUpdatedAt:e.dataUpdatedAt,errorUpdatedAt:e.errorUpdatedAt,isInvalidated:e.isInvalidated}}))}hydrate(e){for(let{queryKey:t,queryHash:n,state:r}of e)this.cache.has(n)||this.cache.set(n,{queryKey:t,queryHash:n,data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,fetchStatus:`idle`,observers:new Set});this.ensureGcScheduled()}destroy(){this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0),this.clear()}getStats(){let e=0,t=0;for(let n of this.cache.values())e+=n.observers.size,n.fetchStatus===`fetching`&&t++;return{size:this.cache.size,maxEntries:this.config.maxEntries,observerCount:e,fetchingCount:t}}},dle=class{mutations=new Map;mutationsByKey=new Map;observers=new Map;globalObservers=new Set;create(e){let t=cle(),n={id:t,mutationKey:e?.mutationKey,status:`idle`,data:void 0,error:null,variables:e?.variables,context:void 0,submittedAt:0,isPaused:!1};if(this.mutations.set(t,n),e?.mutationKey){let n=JSON.stringify(e.mutationKey);this.mutationsByKey.has(n)||this.mutationsByKey.set(n,new Set),this.mutationsByKey.get(n).add(t)}return this.notifyObservers(t),t}get(e){return this.mutations.get(e)}getByKey(e){let t=JSON.stringify(e),n=this.mutationsByKey.get(t);return n?Array.from(n).map(e=>this.mutations.get(e)).filter(e=>e!==void 0):[]}update(e,t){let n=this.mutations.get(e);n&&(Object.assign(n,t),(t.status===`success`||t.status===`error`)&&(n.settledAt=b7.now()),this.notifyObservers(e))}start(e,t){this.update(e,{status:`loading`,variables:t,submittedAt:b7.now(),error:null})}success(e,t,n){this.update(e,{status:`success`,data:t,context:n,error:null})}failure(e,t){this.update(e,{status:`error`,error:t})}reset(e){this.update(e,{status:`idle`,data:void 0,error:null,variables:void 0,context:void 0,submittedAt:0,settledAt:void 0})}remove(e){let t=this.mutations.get(e);if(t){if(t.mutationKey){let n=JSON.stringify(t.mutationKey);this.mutationsByKey.get(n)?.delete(e)}this.mutations.delete(e),this.observers.delete(e),this.notifyGlobalObservers()}}clear(){this.mutations.clear(),this.mutationsByKey.clear(),this.observers.clear(),this.notifyGlobalObservers()}getAll(){return Array.from(this.mutations.values())}getByStatus(e){return this.getAll().filter(t=>t.status===e)}getPending(){return this.getByStatus(`loading`)}getPaused(){return this.getAll().filter(e=>e.isPaused)}subscribe(e,t){return this.observers.has(e)||this.observers.set(e,new Set),this.observers.get(e).add(t),()=>{this.observers.get(e)?.delete(t)}}subscribeAll(e){return this.globalObservers.add(e),()=>{this.globalObservers.delete(e)}}notifyObservers(e){this.observers.get(e)?.forEach(e=>{try{e()}catch(e){console.error(`Error in mutation observer:`,e)}}),this.notifyGlobalObservers()}notifyGlobalObservers(){this.globalObservers.forEach(e=>{try{e()}catch(e){console.error(`Error in global mutation observer:`,e)}})}pause(e){this.update(e,{isPaused:!0})}resume(e){this.update(e,{isPaused:!1})}pauseAll(){for(let e of this.mutations.keys())this.pause(e)}resumeAll(){for(let e of this.mutations.values())e.isPaused&&this.resume(e.id)}dehydrate(){return this.getPaused().map(e=>({mutationKey:e.mutationKey,state:{status:e.status,variables:e.variables,submittedAt:e.submittedAt}}))}hydrate(e){for(let{mutationKey:t,state:n}of e){let e=this.create({mutationKey:t}),r=n;this.update(e,{status:r.status??`idle`,variables:r.variables,submittedAt:r.submittedAt??0,isPaused:!0})}}getStats(){let e=this.getAll();return{total:e.length,idle:e.filter(e=>e.status===`idle`).length,loading:e.filter(e=>e.status===`loading`).length,success:e.filter(e=>e.status===`success`).length,error:e.filter(e=>e.status===`error`).length,paused:e.filter(e=>e.isPaused).length}}},S7=(0,S.createContext)(null);S7.displayName=`MultiBackendContext`;var C7=(0,S.createContext)(null);C7.displayName=`MultiBackendConnectionContext`;var fle=class{multiClient;queryCache;mutationCache;listeners=new Map;transportUnsubs=[];constructor(e,t={}){this.multiClient=e,this.queryCache=new ule({maxEntries:t.maxEntries??1e3,defaultCacheTime:t.defaultCacheTime??3e5}),this.mutationCache=new dle,this.wireTransportEvents()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}async invalidateQueries(e){let t=this.queryCache.findAll(e);for(let e of t)this.queryCache.invalidate(e.queryKey)}getQueryData(e){return this.queryCache.get(e)}setQueryData(e,t){let n=this.queryCache.get(e),r=typeof t==`function`?t(n):t;this.queryCache.set(e,r)}async cancelQueries(e){this.queryCache.cancelAll(e)}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>{this.listeners.get(e)?.delete(t)}}off(e,t){this.listeners.get(e)?.delete(t)}emit(e){let t=this.listeners.get(e);if(t)for(let e of t)try{e()}catch{}}wireTransportEvents(){let e=this.multiClient;if(typeof e.on!=`function`)return;let t=e.on(`reconnect`,()=>this.emit(`reconnect`));typeof t==`function`&&this.transportUnsubs.push(t)}destroy(){this.queryCache.destroy(),this.mutationCache.clear(),this.listeners.clear();for(let e of this.transportUnsubs)try{e()}catch{}this.transportUnsubs.length=0}};function ple(e){return e}function mle({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o,defaultOptions:s,cacheOptions:c}){let l=(0,S.useRef)(!0),u=(0,S.useRef)(null);u.current===null&&(u.current=new fle(e,{maxEntries:c?.maxEntries,defaultCacheTime:c?.defaultCacheTime}));let d=u.current;(0,S.useEffect)(()=>()=>{u.current?.destroy(),u.current=null},[]);let f=(0,S.useMemo)(()=>({staleTime:s?.queries?.staleTime??0,cacheTime:s?.queries?.cacheTime??3e5,retry:s?.queries?.retry??3,refetchOnWindowFocus:s?.queries?.refetchOnWindowFocus??!0,refetchOnReconnect:s?.queries?.refetchOnReconnect??!0}),[s]),p=(0,S.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[m,h]=(0,S.useState)(()=>{let t=new Map;for(let n of p)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[g,_]=(0,S.useState)(null),v=(0,S.useCallback)((e,t)=>{l.current&&h(n=>{let r=new Map(n),i=r.get(e)||{name:e,isConnected:!1,isConnecting:!1,error:null};return r.set(e,{...i,...t}),r})},[]),y=(0,S.useCallback)(async t=>{v(t,{isConnecting:!0,error:null});try{let n=new Promise((e,n)=>{setTimeout(()=>{n(Error(`Connection timeout for backend '${t}' after ${r}ms`))},r)});await Promise.race([e.connect(t),n]),l.current&&(v(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(l.current){let n=e;v(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,v,i,o]),b=(0,S.useCallback)(async t=>{try{await e.disconnect(t),l.current&&(v(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(l.current){let n=e;v(t,{error:n}),o?.(t,n)}throw e}},[e,v,a,o]),x=(0,S.useCallback)(async e=>{if(e)await y(e);else{let e=p.map(e=>y(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[p,y]),C=(0,S.useCallback)(async e=>{if(e)await b(e);else{let e=p.map(e=>b(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[p,b]),w=(0,S.useCallback)(t=>t?m.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,m]),T=(0,S.useCallback)(t=>e.backend(t),[e]);(0,S.useEffect)(()=>{n&&p.some(t=>!e.isConnected(t))&&x().catch(e=>{l.current&&_(e)})},[n,p,e,x]),(0,S.useEffect)(()=>()=>{l.current=!1},[]);let E=(0,S.useMemo)(()=>{let e=p.length>0&&p.every(e=>m.get(e)?.isConnected??!1),t=p.some(e=>m.get(e)?.isConnected??!1),n=p.some(e=>m.get(e)?.isConnecting??!1);return{backends:m,allConnected:e,anyConnected:t,anyConnecting:n,globalError:g}},[p,m,g]),D=(0,S.useMemo)(()=>({client:e,getBackend:T,backendNames:p,isConnected:w,connect:x,disconnect:C}),[e,T,p,w,x,C]);return(0,R.jsx)(S7.Provider,{value:D,children:(0,R.jsx)(C7.Provider,{value:E,children:(0,R.jsx)(g7.Provider,{value:ple(d),children:(0,R.jsx)(_7.Provider,{value:f,children:t})})})})}var w7=`omnitron_token`,T7=3e4,E7=5e3,hle=3e5,D7=3,gle=2e3,_le=new Set([`SESSION_EXPIRED`,`SESSION_REVOKED`]),O7=class{refreshTimer=null;expiresAt=null;lastRefreshAt=0;inflightRefresh=null;running=!1;handler=null;boundVisibilityHandler=null;start(e,t){this.stop(),this.running=!0,this.handler=t,this.expiresAt=new Date(e),this.scheduleRefresh(),this.setupVisibilityListener()}stop(){this.running=!1,this.handler=null,this.cancelTimer(),this.removeVisibilityListener(),this.expiresAt=null,this.inflightRefresh=null}get isActive(){return this.running}isAccessTokenStale(){let e=this.getJwtExpiryMs();return e===null||e-Date.now()<=T7}async refresh(){if(!this.getSessionId())return!1;if(this.inflightRefresh)return this.inflightRefresh;if(Date.now()-this.lastRefreshAt<E7)return!0;this.inflightRefresh=this.performRefreshWithRetry();try{return await this.inflightRefresh}finally{this.inflightRefresh=null}}async performRefreshWithRetry(){for(let e=0;e<=D7;e++)try{return await this.performRefresh()}catch(t){let n=String(t?.code??``);if(_le.has(n)){let e=this.handler;return this.stop(),e?.(`expired`),!1}if(e<D7){let t=gle*2**e;await new Promise(e=>setTimeout(e,t))}else return!1}return!1}async performRefresh(){let e=this.getSessionId();if(!e)return!1;let t=await d(`refreshSession`,{sessionId:e});if(!t?.success||!t?.result)return!1;let{accessToken:n,session:r}=t.result;return n&&(sessionStorage.setItem(w7,n),h(n)),r?.expiresAt&&(this.expiresAt=new Date(r.expiresAt)),this.lastRefreshAt=Date.now(),this.running&&this.scheduleRefresh(),this.handler?.(`refreshed`),!0}scheduleRefresh(){if(this.cancelTimer(),!this.running||!this.expiresAt)return;let e=Date.now(),t=this.expiresAt.getTime(),n=this.getJwtExpiryMs();n&&n<t&&(t=n);let r=t-e-T7;r<=0&&(r=0),r=Math.min(r,hle),this.refreshTimer=setTimeout(()=>{this.running&&this.refresh()},r)}getJwtExpiryMs(){try{let e=sessionStorage.getItem(w7);if(!e)return null;let t=e.split(`.`);if(t.length!==3)return null;let n=JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`)));return typeof n.exp==`number`?n.exp*1e3:null}catch{return null}}getSessionId(){try{let e=sessionStorage.getItem(w7);if(!e)return null;let t=e.split(`.`);return t.length===3?JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`))).sid??null:null}catch{return null}}cancelTimer(){this.refreshTimer!==null&&(clearTimeout(this.refreshTimer),this.refreshTimer=null)}setupVisibilityListener(){this.removeVisibilityListener(),this.boundVisibilityHandler=()=>{this.running&&document.visibilityState===`visible`&&this.refresh()},document.addEventListener(`visibilitychange`,this.boundVisibilityHandler)}removeVisibilityListener(){this.boundVisibilityHandler&&=(document.removeEventListener(`visibilitychange`,this.boundVisibilityHandler),null)}},k7=`__omnitronSessionManager`;function vle(){let e=window[k7];if(e)return e;let t=new O7;return window[k7]=t,t}var A7=typeof window<`u`?vle():new O7;function yle(e){let t=ble(e);return/502|503|bad gateway|service unavailable/i.test(t)?`Service unavailable — the daemon is not running. Start it with omnitron dev.`:/failed to fetch|networkerror|network request failed|econnrefused|econnreset|etimedout|load failed/i.test(t)?`Cannot reach the server. Check that the daemon is running and your network is connected.`:/401|unauthorized|invalid.*credential|invalid.*password|incorrect.*password/i.test(t)?`Invalid username or password.`:/429|too many|rate limit/i.test(t)?`Too many sign-in attempts. Please wait a moment and try again.`:/500|internal server error/i.test(t)?`The server encountered an error. Please try again.`:/timeout|timed out/i.test(t)?`The request timed out. The daemon may be overloaded.`:t.replace(/^HTTP \d{3}:\s*/i,``).trim()||`An unexpected error occurred.`}function j7(e,t=`/`){if(!e)return t;try{let n=decodeURIComponent(e),r=`https://console.invalid`,i=new URL(n,r);if(i.origin!==r)return t;let a=i.pathname+i.search+i.hash;return!a.startsWith(`/`)||a.startsWith(`//`)?t:a}catch{return t}}function ble(e){if(!e)return``;if(typeof e==`string`)return e;if(typeof e==`object`){let t=e;return String(t.message??t.msg??t.error??``)}return String(e)}var M7=`unknown`;function N7(e){if(e===`expired`&&(s(),F7.setState({user:null,sessionId:null}),typeof window<`u`)){let e=window.location.pathname+window.location.search,t=encodeURIComponent(j7(e));window.location.href=`/auth/sign-in?returnTo=${t}`}}var P7=null;function xle(e){let t=e?.code;return t==null||t===401||t===`UNAUTHORIZED`||t===`SESSION_REVOKED`}function Sle(e){let t=e?.code;return t===`ECONNREFUSED`||t===`SESSION_STORE_UNAVAILABLE`?"The daemon could not reach its database, so your session could not be checked. This is not a sign-in problem — run `omnitron doctor` for the reason.":"The daemon could not check your session. Signing in again will not help until it can — run `omnitron doctor` for the reason."}async function Cle(e){let t=m();if(!t)e({initialized:!0});else{try{A7.isAccessTokenStale()&&await A7.refresh().catch(()=>!1);let n=await d(`validateSession`,{sessionId:m()??t});if(n.valid&&n.user){let r=n.session?.expiresAt??new Date(Date.now()+36e5).toISOString();e({user:{id:n.user.id,username:n.user.username,displayName:n.user.displayName??n.user.username,role:n.user.role??M7},sessionId:t,initialized:!0}),A7.start(r,N7);return}}catch(t){if(!xle(t)){e({initialized:!0,initError:Sle(t)});return}try{if(await A7.refresh()){let t=m();if(!t){s(),e({initialized:!0});return}let n=await d(`validateSession`,{sessionId:t});if(n.valid&&n.user){e({user:{id:n.user.id,username:n.user.username,displayName:n.user.displayName??n.user.username,role:n.user.role??M7},sessionId:m(),initialized:!0});return}}}catch{}}s(),e({initialized:!0})}}var F7=PM((e,t)=>({user:null,sessionId:null,initialized:!1,initError:null,loading:!1,clearInitError:()=>e({initError:null}),initialize:async()=>{if(!t().initialized)return P7||(P7=Cle(e).finally(()=>{P7=null}),P7)},signIn:async(t,n)=>{e({loading:!0});try{let r=await d(`signIn`,{username:t,password:n});if(!r||typeof r!=`object`||Array.isArray(r)||!r.user)throw Error(`Invalid credentials`);r.accessToken&&h(r.accessToken);let i=r.session?.id??m(),a=r.session?.expiresAt??new Date(Date.now()+36e5).toISOString();e({user:{id:r.user.id,username:r.user.username,displayName:r.user.displayName??r.user.username,role:r.user.role??M7},sessionId:i,loading:!1}),A7.start(a,N7)}catch(t){throw e({loading:!1}),t}},signOut:async()=>{A7.stop();let{sessionId:n}=t();try{n&&await d(`signOut`,{sessionId:n})}finally{s(),e({user:null,sessionId:null})}},setUser:t=>e({user:t})}));function wle({children:e}){let{user:t,initialized:n,initialize:r}=F7(),i=yt();if((0,S.useEffect)(()=>{r()},[r]),!n)return(0,R.jsx)(pU,{fullScreen:!0,message:`Checking your session…`});if(!t){let e=encodeURIComponent(i.pathname+i.search);return(0,R.jsx)(pn,{to:`/auth/sign-in?returnTo=${e}`,replace:!0})}return(0,R.jsx)(R.Fragment,{children:e})}function Tle({children:e}){let{user:t,initialized:n,initialize:r}=F7(),i=yt();if((0,S.useEffect)(()=>{r()},[r]),!n)return(0,R.jsx)(pU,{fullScreen:!0,message:`Checking your session…`});if(t){let e=j7(new URLSearchParams(i.search).get(`returnTo`));return(0,R.jsx)(pn,{to:e,replace:!0})}return(0,R.jsx)(R.Fragment,{children:e})}var I7=e=>Symbol.iterator in e,L7=e=>`entries`in e,R7=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Ele=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Dle(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:I7(e)&&I7(t)?L7(e)&&L7(t)?R7(e,t):Ele(e,t):R7({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Ole(e){let t=S.useRef(void 0);return n=>{let r=e(n);return Dle(t.current,r)?t.current:t.current=r}}function z7(e){try{return localStorage.getItem(e)}catch{return null}}function B7(e,t){try{localStorage.setItem(e,t)}catch{}}function V7(e){try{localStorage.removeItem(e)}catch{}}function H7(e,t){let n=z7(e);if(n===null)return t;try{return JSON.parse(n)}catch{return t}}function U7(e,t){try{B7(e,JSON.stringify(t))}catch{}}var W7=`omnitron_active_project`,G7=`omnitron_active_stack`,K7=`omnitron_workspace_routes`,q7=`__omnitron__`;function J7(e,t){e?B7(W7,e):V7(W7),t?B7(G7,t):V7(G7)}function kle(){return{project:z7(W7),stack:z7(G7),routes:H7(K7,{})}}function Y7(e){U7(K7,e)}var X7=PM((e,t)=>{let n=kle();return{projects:[],stacksByProject:{},stackRuntimes:{},pendingOps:{},activeProject:n.project,activeStack:n.stack,workspaceRoutes:n.routes,loading:!1,error:null,fetchProjects:async()=>{try{e({loading:!0,error:null});let n=await o.listProjects();e({projects:n,loading:!1});let r=t().activeProject;if(r)n.some(e=>e.name===r)?t().fetchStacks(r):(e({activeProject:null,activeStack:null}),J7(null,null));else if(n.length===1){let r=n[0].name;e({activeProject:r}),J7(r,null),t().fetchStacks(r)}}catch(t){e({error:t.message,loading:!1})}},fetchStacks:async n=>{try{let r=await o.listStacks({project:n});if(e(e=>({stacksByProject:{...e.stacksByProject,[n]:r}})),t().activeProject===n&&r.length===1&&!t().activeStack){let t=r[0].name;e({activeStack:t}),J7(n,t)}}catch(t){e({error:t.message})}},fetchStackStatus:async(t,n)=>{try{let r=await o.getStackStatus({project:t,stack:n});return e(e=>({stackRuntimes:{...e.stackRuntimes,[`${t}/${n}`]:r}})),r}catch(t){return e({error:t.message}),null}},selectProject:(n,r)=>{let i=t(),a={...i.workspaceRoutes};if(r){let e=i.activeProject??q7;a[e]=r}let o=a[n]??`/`;return e({activeProject:n,activeStack:null,workspaceRoutes:a}),J7(n,null),Y7(a),t().fetchStacks(n),o},deselectProject:n=>{let r=t(),i={...r.workspaceRoutes};n&&r.activeProject&&(i[r.activeProject]=n);let a=i[q7]??`/`;return e({activeProject:null,activeStack:null,workspaceRoutes:i}),J7(null,null),Y7(i),a},saveCurrentRoute:n=>{let r=t(),i=r.activeProject??q7,a={...r.workspaceRoutes,[i]:n};e({workspaceRoutes:a}),Y7(a)},selectStack:n=>{e({activeStack:n}),J7(t().activeProject,n)},addProject:async(n,r)=>{try{e({loading:!0,error:null}),await o.addProject({name:n,path:r}),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},updateProject:async(n,r)=>{try{e({loading:!0,error:null});let i=await o.updateProject({name:n,...r});i.name!==n&&t().activeProject===n&&(e({activeProject:i.name,activeStack:null}),J7(i.name,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},removeProject:async n=>{try{e({loading:!0,error:null}),await o.removeProject({name:n}),t().activeProject===n&&(e({activeProject:null,activeStack:null}),J7(null,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},startStack:async(n,r,i)=>{let a=`${n}/${r}`;if(!t().pendingOps[a]){e(e=>({error:null,pendingOps:{...e.pendingOps,[a]:`starting`},stacksByProject:Q7(e.stacksByProject,n,r,`starting`)}));try{await o.startStack({project:n,stack:r,...i?.release?{release:i.release}:{},...i?.allowDirty?{allowDirty:!0}:{}})}catch(t){Z7(t)||e({error:t.message})}finally{e(e=>{let t={...e.pendingOps};return delete t[a],{pendingOps:t}}),await t().fetchStacks(n)}}},stopStack:async(n,r)=>{let i=`${n}/${r}`;if(!t().pendingOps[i]){e(e=>({error:null,pendingOps:{...e.pendingOps,[i]:`stopping`},stacksByProject:Q7(e.stacksByProject,n,r,`stopping`)}));try{await o.stopStack({project:n,stack:r})}catch(t){Z7(t)||e({error:t.message})}finally{e(e=>{let t={...e.pendingOps};return delete t[i],{pendingOps:t}}),await t().fetchStacks(n)}}},createStack:async(n,r)=>{try{e({error:null});let i=await o.createStack({project:n,...r});return await t().fetchStacks(n),i}catch(t){throw e({error:t.message}),t}},deleteStack:async(n,r)=>{try{e({error:null}),await o.deleteStack({project:n,stack:r}),await t().fetchStacks(n)}catch(t){throw e({error:t.message}),t}},getStackPendingOp:(e,n)=>t().pendingOps[`${e}/${n}`]??null,clearError:()=>e({error:null})}});function Z7(e){let t=e?.code;return t===`TIMEOUT`||t===408||/\bRequest timeout after \d+ms\b/.test(e?.message??``)}function Q7(e,t,n,r){let i=e[t];return i?{...e,[t]:i.map(e=>e.name===n?{...e,status:r}:e)}:e}var $7=()=>X7(e=>e.activeProject);function e9(){return X7(Ole(e=>(e.activeProject?e.stacksByProject[e.activeProject]:void 0)??Ale))}var Ale=[];function jle({children:e}){return $7()?(0,R.jsx)(R.Fragment,{children:e}):(0,R.jsx)(pn,{to:`/`,replace:!0})}var Mle={STARTED:`app.started`,STOPPED:`app.stopped`,CRASHED:`app.crashed`,RESTARTING:`app.restarting`,SCALED:`app.scaled`,HEALTH_CHANGED:`app.health_changed`},Nle={READY:`infra.ready`,DEGRADED:`infra.degraded`,FAILED:`infra.failed`,SERVICE_UP:`infra.service_up`,SERVICE_DOWN:`infra.service_down`,SERVICE_RESTARTED:`infra.service_restarted`},Ple={FIRED:`alert.fired`,RESOLVED:`alert.resolved`,ACKNOWLEDGED:`alert.acknowledged`},Fle={COLLECTED:`metrics.collected`},Ile={ADDED:`project.added`,REMOVED:`project.removed`,CONFIG_RELOADED:`project.config_reloaded`},Lle={STARTING:`stack.starting`,STARTED:`stack.started`,STOPPING:`stack.stopping`,STOPPED:`stack.stopped`,ERROR:`stack.error`,INFRA_READY:`stack.infra_ready`,SYNC_COMPLETED:`stack.sync_completed`,SYNC_FAILED:`stack.sync_failed`,DEPLOY_PROGRESS:`stack.deploy_progress`,NODE_CONNECTED:`stack.node_connected`,NODE_DISCONNECTED:`stack.node_disconnected`},Rle={STATUS_UPDATED:`node.status_updated`,WENT_ONLINE:`node.went_online`,WENT_OFFLINE:`node.went_offline`,WENT_DEGRADED:`node.went_degraded`,CHECK_COMPLETED:`node.check_completed`},zle={STARTED:`daemon.started`,STOPPING:`daemon.stopping`,CONFIG_RELOADED:`daemon.config_reloaded`};[...Object.values(Mle),...Object.values(Nle),...Object.values(Ple),...Object.values(Fle),...Object.values(Ile),...Object.values(Lle),...Object.values(Rle),...Object.values(zle)];var Ble=[`app.*`,`infra.*`,`alert.*`,`metrics.collected`,`project.*`,`stack.*`,`node.*`,`daemon.*`];function Vle(e){return`${e.protocol===`https:`?`wss:`:`ws:`}//${e.host}/ws`}var Hle=class{options;socket=null;eventListeners=new Map;connectionListeners=new Set;_connected=!1;constructor(e={}){this.options=e}get connected(){return this._connected}connect(){if(this.socket)return;let e=this.options.url??Vle(window.location),t=this.options.socket?.(e)??new a({url:e,reconnect:!0,maxReconnectAttempts:1/0});this.socket=t,t.onTask(`emit`,(e,t)=>{e===`omnitron:event`&&this.dispatchEvent(t)}),t.on(`disconnect`,()=>this.setConnected(!1)),t.on(`reconnect`,()=>void this.handshake(t)),t.connect().then(()=>this.handshake(t)).catch(()=>this.setConnected(!1))}disconnect(){let e=this.socket;this.socket=null,this.setConnected(!1),e?.disconnect().catch(()=>void 0)}on(e,t){let n=this.eventListeners.get(e);return n||(n=new Set,this.eventListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.eventListeners.delete(e)}}onConnection(e){return this.connectionListeners.add(e),()=>this.connectionListeners.delete(e)}async handshake(e){let t=(this.options.token??l)();if(!t||e!==this.socket)return this.setConnected(!1);try{if(!(await e.runTask(`authenticate`,{token:t}))?.success)return this.setConnected(!1);await e.invoke(`OmnitronEvents`,`subscribe`,[{channels:this.options.channels??Ble}]),e===this.socket&&this.setConnected(!0)}catch{this.setConnected(!1)}}setConnected(e){if(this._connected!==e){this._connected=e;for(let t of this.connectionListeners)try{t(e)}catch{}}}dispatchEvent(e){let t=this.eventListeners.get(e.channel);if(t)for(let n of t)n(e);for(let[t,n]of this.eventListeners)if(t===`*`)for(let t of n)t(e);else if(t.endsWith(`.*`)){let r=t.slice(0,-2);if(e.channel.startsWith(r+`.`))for(let t of n)t(e)}}},t9=null;function Ule(){return t9||=new Hle,t9}var Wle=3e4;function n9(e,t){return e.filter(e=>t-e.receivedAt<Wle||e.status!==`success`&&e.status!==`failed`)}var r9=0,i9=null;function a9(){let e=!1;return()=>{e||(e=!0,--r9,r9===0&&i9&&(i9(),i9=null))}}var o9=PM((e,t)=>({connected:!1,appEvents:[],infraEvents:[],alerts:[],lastMetricsUpdate:0,lastEvent:null,lastNodeEvent:null,deployProgress:[],activeDeployProgress:()=>n9(t().deployProgress,Date.now()),initialize:()=>{if(r9+=1,i9)return a9();let t=Ule(),n=[];return n.push(t.onConnection(t=>{e({connected:t})})),n.push(t.on(`app.*`,t=>{let n=t.data,r={name:n.name??`unknown`,pid:n.pid??null,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({appEvents:[r,...e.appEvents].slice(0,50),lastEvent:t}))})),n.push(t.on(`infra.*`,t=>{let n=t.data,r={service:n.service??n.services?.join(`, `)??`unknown`,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({infraEvents:[r,...e.infraEvents].slice(0,20),lastEvent:t}))})),n.push(t.on(`alert.*`,t=>{let n=t.data,r={ruleId:n.ruleId??``,ruleName:n.ruleName??``,severity:n.severity??`info`,message:n.message,timestamp:t.timestamp};e(e=>t.channel===`alert.resolved`?{alerts:e.alerts.filter(e=>e.ruleId!==r.ruleId),lastEvent:t}:{alerts:[r,...e.alerts.filter(e=>e.ruleId!==r.ruleId)],lastEvent:t})})),n.push(t.on(`metrics.collected`,t=>{e({lastMetricsUpdate:t.timestamp,lastEvent:t})})),n.push(t.on(`project.*`,t=>{e({lastEvent:t})})),n.push(t.on(`stack.*`,t=>{if(t.channel===`stack.deploy_progress`){let n=t.data;e(e=>{let r=Date.now();return{deployProgress:[...n9(e.deployProgress.filter(e=>e.node!==n.node||e.app!==n.app),r),{...n,timestamp:t.timestamp,receivedAt:r}],lastEvent:t}})}else e({lastEvent:t})})),n.push(t.on(`node.*`,t=>{e({lastNodeEvent:t,lastEvent:t})})),n.push(t.on(`daemon.*`,t=>{e({lastEvent:t})})),t.connect(),i9=()=>{for(let e of n)e();t.disconnect()},a9()}})),Gle=e=>e?.message??`Request failed`,Kle=class{options;state={data:null,error:null,loading:!0};inFlight=!1;stopped=!1;describeError;constructor(e){this.options=e,this.describeError=e.describeError??Gle}get current(){return this.state}get busy(){return this.inFlight}async tick(){if(this.inFlight||this.stopped)return!1;this.inFlight=!0;try{let e=await this.options.fetcher();if(this.stopped)return!0;this.emit({data:e,error:null,loading:!1})}catch(e){if(this.stopped)return!0;this.emit({data:this.state.data,error:this.describeError(e),loading:!1})}finally{this.inFlight=!1}return!0}stop(){this.stopped=!0}resume(){this.stopped=!1}emit(e){this.state=e,this.options.onState(e)}};function s9(){return typeof document>`u`||document.visibilityState!==`hidden`}function c9(e,{intervalMs:t,enabled:n=!0,pauseWhileHidden:r=!0}){let i=(0,S.useRef)(e);i.current=e,(0,S.useEffect)(()=>{if(!n)return;let e=null,a=()=>{e===null&&(i.current(),e=setInterval(()=>i.current(),t))},o=()=>{e!==null&&(clearInterval(e),e=null)};if(!r)return a(),o;let s=()=>s9()?a():o();return s9()&&a(),typeof document<`u`&&document.addEventListener(`visibilitychange`,s),()=>{typeof document<`u`&&document.removeEventListener(`visibilitychange`,s),o()}},[t,n,r])}function l9(e,{intervalMs:t,enabled:n=!0,describeError:r,pauseWhileHidden:i=!0}){let[a,o]=(0,S.useState)({data:null,error:null,loading:!0}),s=(0,S.useRef)(e);s.current=e;let c=(0,S.useRef)(r);c.current=r;let l=(0,S.useMemo)(()=>new Kle({fetcher:()=>s.current(),onState:o,...c.current&&{describeError:e=>c.current(e)}}),[]);(0,S.useEffect)(()=>(l.resume(),()=>l.stop()),[l]),c9(()=>void l.tick(),{intervalMs:t,enabled:n,pauseWhileHidden:i});let u=(0,S.useCallback)(async()=>{await l.tick()},[l]);return{...a,refresh:u}}var u9=e=>e.stackType===`local`,qle=e=>`/apps/${encodeURIComponent(e.handleKey)}`,d9=(e,t)=>t?e.filter(e=>e.stack===t):e;function Jle(e,t,n){return e.includes(`/`)||!t||!n?e:`${t}/${n}/${e}`}var f9=e=>({appsOnline:e.filter(e=>e.status===`online`).length,appsTotal:e.length});function p9(e,t,n,r){return e?r.status===`fulfilled`&&r.value?d9(r.value,t):null:n?.apps??[]}function Yle(e,t,n,r){let i=e=>({status:e.status,pid:e.pid,uptime:e.uptime,cpu:e.cpu,memory:e.memory,restarts:e.restarts});if(!e)return r.map(e=>{let t=e.name.split(`/`);return{...i(e),key:e.name,name:t[t.length-1],stack:t.length>=3?t[1]:null,remote:!1,...e.processes?{processes:e.processes}:{}}});if(!n)return null;let a=new Map(r.map(e=>[e.name,e]));return d9(n,t).map(e=>{let t=u9(e)?a.get(e.handleKey):void 0;return{...i(e),key:u9(e)?e.handleKey:`${e.stack}/${e.name}`,name:e.name,stack:e.stack,remote:!u9(e),...t?.processes?{processes:t.processes}:{}}})}var Xle=e=>e?.traffic===`measured`?e:null,Zle=({latency:e,held:t})=>{let n=e?`p50 ${Math.round(e.p50)} ms · ${e.count} finished in the last ${Math.round(e.windowMs/1e3)} s`:`nothing finished in its window`;return t?`${n} · long polls excluded`:n},Qle=({held:e})=>e?`since the process started · ${e} of them long polls`:`since the process started`,$le=(e,t)=>{if(t&&!Array.isArray(t.pools))return(e.processes?.length??0)>1?e.processes.find(e=>e.pid===t.pid):void 0};function m9({color:e,pulse:t}){return(0,R.jsx)(Z,{sx:{width:6,height:6,borderRadius:`50%`,bgcolor:e,flexShrink:0,...t&&{boxShadow:`0 0 4px ${e}`,animation:`pulse 2s ease-in-out infinite`,"@keyframes pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.5}}}}})}function eue(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?r>0?`${n}d ${r}h`:`${n}d`:r>0?i>0?`${r}h ${i}m`:`${r}h`:`${i}m`}function h9({children:e}){return(0,R.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:e})}function g9({children:e,highlight:t}){return(0,R.jsx)(Nb,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`#e4e4e7`:`text.secondary`,fontWeight:t?600:400},children:e})}function _9({label:e,value:t}){return(0,R.jsxs)(g9,{children:[e,` `,(0,R.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:t})]})}function tue(){let[e,t]=(0,S.useState)(null),n=(0,S.useRef)({nodesOnline:0,nodesTotal:0,firingAlerts:0,appsOnline:0,appsTotal:0}),r=o9(e=>e.connected),i=o9(e=>e.lastEvent),a=X7(e=>e.activeProject),s=X7(e=>e.activeStack),c=(0,S.useRef)({project:a,stack:s});c.current={project:a,stack:s};let{data:l,refresh:d}=l9(async()=>{let[e,t,r,i]=await Promise.allSettled([f.status(),a?o.getProjectApps({project:a}):Promise.resolve(null),u.listNodes(),p.getSummary()]),c=e.status===`fulfilled`?e.value:null,l=r.status===`fulfilled`?r.value:[],d=i.status===`fulfilled`?i.value:null,m=p9(a,s,c,t);return m&&Object.assign(n.current,f9(m)),r.status===`fulfilled`&&Array.isArray(l)&&(n.current.nodesOnline=l.filter(e=>e.status?.omnitronConnected).length,n.current.nodesTotal=l.length),i.status===`fulfilled`&&(n.current.firingAlerts=d?.firing??0),{daemonOnline:!!c,appsOnline:n.current.appsOnline,appsTotal:n.current.appsTotal,nodesOnline:n.current.nodesOnline,nodesTotal:n.current.nodesTotal,firingAlerts:n.current.firingAlerts,uptimeMs:c?.uptime??0,version:c?.version??``,pid:c?.pid??0,lastFetch:Date.now()}},{intervalMs:r?3e4:1e4});return(0,S.useEffect)(()=>{l&&t(l)},[l]),(0,S.useEffect)(()=>{d()},[a,s,d]),(0,S.useEffect)(()=>{if(!i)return;let e=i.channel;if(!(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`)))return;let{project:r,stack:a}=c.current;(async()=>{let[i,s,c]=await Promise.allSettled([f.status(),r?o.getProjectApps({project:r}):Promise.resolve(null),e.startsWith(`alert.`)?p.getSummary():Promise.resolve(null)]);if(c.status===`fulfilled`&&c.value&&(n.current.firingAlerts=c.value?.firing??0),i.status===`rejected`)return;let l=i.value,u=p9(r,a,l,s);u&&Object.assign(n.current,f9(u)),t(e=>e&&{...e,daemonOnline:!0,appsOnline:n.current.appsOnline,appsTotal:n.current.appsTotal,firingAlerts:n.current.firingAlerts,uptimeMs:l?.uptime??e.uptimeMs,version:l?.version??e.version,pid:l?.pid??e.pid,lastFetch:Date.now()})})()},[i]),e?(0,R.jsxs)(Z,{sx:{position:`fixed`,bottom:0,left:0,right:0,height:28,bgcolor:H(`#0a0a10`,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:H(`#fff`,.06),display:`flex`,alignItems:`center`,px:2,gap:2.5,zIndex:1300,fontSize:`0.68rem`,userSelect:`none`},children:[(0,R.jsxs)(h9,{children:[(0,R.jsx)(m9,{color:e.daemonOnline?`#22c55e`:`#ef4444`,pulse:e.daemonOnline}),(0,R.jsx)(g9,{highlight:e.daemonOnline,children:e.daemonOnline?`Online`:`Offline`})]}),(0,R.jsx)(Z,{sx:{width:`1px`,height:12,bgcolor:H(`#fff`,.08)}}),(0,R.jsx)(rue,{}),(0,R.jsx)(h9,{children:(0,R.jsx)(_9,{label:`Apps`,value:`${e.appsOnline}/${e.appsTotal}`})}),e.nodesTotal>0&&(0,R.jsx)(h9,{children:(0,R.jsx)(_9,{label:`Nodes`,value:`${e.nodesOnline}/${e.nodesTotal}`})}),e.firingAlerts>0&&(0,R.jsxs)(h9,{children:[(0,R.jsx)(m9,{color:`#ef4444`,pulse:!0}),(0,R.jsxs)(Nb,{variant:`caption`,sx:{fontSize:`inherit`,color:`#ef4444`,fontWeight:600},children:[e.firingAlerts,` alert`,e.firingAlerts>1?`s`:``]})]}),(0,R.jsxs)(h9,{children:[(0,R.jsx)(m9,{color:r?`#3b82f6`:`#6b7280`}),(0,R.jsx)(g9,{children:r?`Live`:`Polling`})]}),(0,R.jsx)(Z,{sx:{flex:1}}),e.daemonOnline&&e.uptimeMs>0&&(0,R.jsx)(h9,{children:(0,R.jsx)(_9,{label:`Uptime`,value:eue(e.uptimeMs)})}),(0,R.jsx)(nue,{serverTimestamp:e.lastFetch}),(0,R.jsx)(Z,{sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:H(`#fff`,.08),fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]}):null}function nue({serverTimestamp:e}){let[t]=(0,S.useState)(()=>e?e-Date.now():0),[n,r]=(0,S.useState)(()=>Date.now()+t);(0,S.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n),a=String(i.getHours()).padStart(2,`0`),o=String(i.getMinutes()).padStart(2,`0`),s=String(i.getSeconds()).padStart(2,`0`);return(0,R.jsx)(h9,{children:(0,R.jsxs)(g9,{children:[a,`:`,o,`:`,s]})})}function rue(){let e=X7(e=>e.activeProject),t=X7(e=>e.activeStack),n=e9();if(!e)return null;let r=n.filter(e=>e.status===`running`).length;return(0,R.jsx)(h9,{children:(0,R.jsxs)(g9,{children:[(0,R.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:e}),t&&(0,R.jsxs)(`span`,{style:{color:`#60a5fa`},children:[` / `,t]}),r>0&&!t&&(0,R.jsxs)(`span`,{style:{color:`#6b7280`},children:[` (`,r,` stack`,r>1?`s`:``,`)`]})]})})}function v9({size:e=32,sx:t}){return(0,R.jsxs)(Z,{component:`svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 210 210`,sx:{width:e,height:e,flexShrink:0,...t},children:[(0,R.jsx)(`defs`,{children:(0,R.jsxs)(`linearGradient`,{id:`omni-logo-grad`,x1:`105`,y1:`165.47`,x2:`105`,y2:`52.73`,gradientUnits:`userSpaceOnUse`,children:[(0,R.jsx)(`stop`,{offset:`0`,stopColor:`#ff4fff`}),(0,R.jsx)(`stop`,{offset:`0.01`,stopColor:`#ff51fb`}),(0,R.jsx)(`stop`,{offset:`0.29`,stopColor:`#ff75af`}),(0,R.jsx)(`stop`,{offset:`0.53`,stopColor:`#ff9272`}),(0,R.jsx)(`stop`,{offset:`0.73`,stopColor:`#ffa747`}),(0,R.jsx)(`stop`,{offset:`0.89`,stopColor:`#ffb32c`}),(0,R.jsx)(`stop`,{offset:`0.98`,stopColor:`#ffb822`})]})}),(0,R.jsx)(`path`,{fill:`url(#omni-logo-grad)`,d:`M66.92,144.68l-27,15.59L102,52.73V83.92Zm3,5.2-27,15.59H167.09l-27-15.59Zm100.17,10.39L108,52.73V83.92l35.08,60.76Zm-34.4-16.39L105,90.72,74.31,143.88Z`})]})}var y9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 6C2 4.46 2 3.69 2.35 3.12C2.54 2.81 2.81 2.54 3.12 2.35C3.69 2 4.46 2 6 2C7.54 2 8.31 2 8.88 2.35C9.19 2.54 9.46 2.81 9.65 3.12C10 3.69 10 4.46 10 6C10 7.54 10 8.31 9.65 8.88C9.46 9.19 9.19 9.46 8.88 9.65C8.31 10 7.54 10 6 10C4.46 10 3.69 10 3.12 9.65C2.81 9.46 2.54 9.19 2.35 8.88C2 8.31 2 7.54 2 6Z`}),(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M14 18C14 16.46 14 15.69 14.35 15.12C14.54 14.81 14.81 14.54 15.12 14.35C15.69 14 16.46 14 18 14C19.54 14 20.31 14 20.88 14.35C21.19 14.54 21.46 14.81 21.65 15.12C22 15.69 22 16.46 22 18C22 19.54 22 20.31 21.65 20.88C21.46 21.19 21.19 21.46 20.88 21.65C20.31 22 19.54 22 18 22C16.46 22 15.69 22 15.12 21.65C14.81 21.46 14.54 21.19 14.35 20.88C14 20.31 14 19.54 14 18Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 6C2 4.46 2 3.69 2.35 3.12C2.54 2.81 2.81 2.54 3.12 2.35C3.69 2 4.46 2 6 2C7.54 2 8.31 2 8.88 2.35C9.19 2.54 9.46 2.81 9.65 3.12C10 3.69 10 4.46 10 6C10 7.54 10 8.31 9.65 8.88C9.46 9.19 9.19 9.46 8.88 9.65C8.31 10 7.54 10 6 10C4.46 10 3.69 10 3.12 9.65C2.81 9.46 2.54 9.19 2.35 8.88C2 8.31 2 7.54 2 6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 6C14 4.46 14 3.69 14.35 3.12C14.54 2.81 14.81 2.54 15.12 2.35C15.69 2 16.46 2 18 2C19.54 2 20.31 2 20.88 2.35C21.19 2.54 21.46 2.81 21.65 3.12C22 3.69 22 4.46 22 6C22 7.54 22 8.31 21.65 8.88C21.46 9.19 21.19 9.46 20.88 9.65C20.31 10 19.54 10 18 10C16.46 10 15.69 10 15.12 9.65C14.81 9.46 14.54 9.19 14.35 8.88C14 8.31 14 7.54 14 6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 18C2 16.46 2 15.69 2.35 15.12C2.54 14.81 2.81 14.54 3.12 14.35C3.69 14 4.46 14 6 14C7.54 14 8.31 14 8.88 14.35C9.19 14.54 9.46 14.81 9.65 15.12C10 15.69 10 16.46 10 18C10 19.54 10 20.31 9.65 20.88C9.46 21.19 9.19 21.46 8.88 21.65C8.31 22 7.54 22 6 22C4.46 22 3.69 22 3.12 21.65C2.81 21.46 2.54 21.19 2.35 20.88C2 20.31 2 19.54 2 18Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 18C14 16.46 14 15.69 14.35 15.12C14.54 14.81 14.81 14.54 15.12 14.35C15.69 14 16.46 14 18 14C19.54 14 20.31 14 20.88 14.35C21.19 14.54 21.46 14.81 21.65 15.12C22 15.69 22 16.46 22 18C22 19.54 22 20.31 21.65 20.88C21.46 21.19 21.19 21.46 20.88 21.65C20.31 22 19.54 22 18 22C16.46 22 15.69 22 15.12 21.65C14.81 21.46 14.54 21.19 14.35 20.88C14 20.31 14 19.54 14 18Z`})]}),b9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 6C2 3.79 3.79 2 6 2H18C20.21 2 22 3.79 22 6V14C22 16.21 20.21 18 18 18H6C3.79 18 2 16.21 2 14V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 6C2 3.79 3.79 2 6 2H18C20.21 2 22 3.79 22 6V14C22 16.21 20.21 18 18 18H6C3.79 18 2 16.21 2 14V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 22H19`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 22V18M15 22V18`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 7V13M12 9.5V13M15 7V13`})]}),x9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M4 4C4 2.9 4.9 2 6 2H18C19.1 2 20 2.9 20 4V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 4C4 2.9 4.9 2 6 2H18C19.1 2 20 2.9 20 4V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 7H16M8 11H14M8 15H12`})]}),S9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2L4 5V11C4 16 7.5 20.3 12 22C16.5 20.3 20 16 20 11V5L12 2Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2L4 5V11C4 16 7.5 20.3 12 22C16.5 20.3 20 16 20 11V5L12 2Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 11.5L11.2 13.7L15.2 9.7`})]}),C9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3.89 3.89C2.5 5.28 2.5 7.52 2.5 12C2.5 16.48 2.5 18.72 3.89 20.11C5.28 21.5 7.52 21.5 12 21.5C16.48 21.5 18.72 21.5 20.11 20.11C21.5 18.72 21.5 16.48 21.5 12C21.5 7.52 21.5 5.28 20.11 3.89C18.72 2.5 16.48 2.5 12 2.5C7.52 2.5 5.28 2.5 3.89 3.89Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.89 3.89C2.5 5.28 2.5 7.52 2.5 12C2.5 16.48 2.5 18.72 3.89 20.11C5.28 21.5 7.52 21.5 12 21.5C16.48 21.5 18.72 21.5 20.11 20.11C21.5 18.72 21.5 16.48 21.5 12C21.5 7.52 21.5 5.28 20.11 3.89C18.72 2.5 16.48 2.5 12 2.5C7.52 2.5 5.28 2.5 3.89 3.89Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M7 17V14M12 17V8M17 17V11`})]}),w9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2.53 14.77C2.32 16.16 3.27 17.13 4.43 17.61C8.89 19.46 15.11 19.46 19.57 17.61C20.73 17.13 21.68 16.16 21.47 14.77C21.34 13.91 20.69 13.2 20.21 12.5C19.59 11.58 19.53 10.57 19.52 9.5C19.52 5.36 16.16 2 12 2C7.84 2 4.48 5.36 4.48 9.5C4.47 10.57 4.41 11.58 3.79 12.5C3.31 13.2 2.66 13.91 2.53 14.77Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.53 14.77C2.32 16.16 3.27 17.13 4.43 17.61C8.89 19.46 15.11 19.46 19.57 17.61C20.73 17.13 21.68 16.16 21.47 14.77C21.34 13.91 20.69 13.2 20.21 12.5C19.59 11.58 19.53 10.57 19.52 9.5C19.52 5.36 16.16 2 12 2C7.84 2 4.48 5.36 4.48 9.5C4.47 10.57 4.41 11.58 3.79 12.5C3.31 13.2 2.66 13.91 2.53 14.77Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 19C8.46 20.73 10.08 22 12 22C13.92 22 15.54 20.73 16 19`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 7V11M12 13.5V13.51`})]}),T9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 5C2 3.9 2.9 3 4 3H20C21.1 3 22 3.9 22 5V7C22 8.1 21.1 9 20 9H4C2.9 9 2 8.1 2 7V5Z`}),(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 17C2 15.9 2.9 15 4 15H20C21.1 15 22 15.9 22 17V19C22 20.1 21.1 21 20 21H4C2.9 21 2 20.1 2 19V17Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 5C2 3.9 2.9 3 4 3H20C21.1 3 22 3.9 22 5V7C22 8.1 21.1 9 20 9H4C2.9 9 2 8.1 2 7V5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 17C2 15.9 2.9 15 4 15H20C21.1 15 22 15.9 22 17V19C22 20.1 21.1 21 20 21H4C2.9 21 2 20.1 2 19V17Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H6.01M6 18H6.01`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 9V15`})]}),E9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 12L3 7M12 12V22M12 12L21 7`})]}),D9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12.393 2.91C12.2892 2.75236 12.1444 2.6246 11.974 2.54019C11.8037 2.45577 11.6138 2.41776 11.4234 2.43C8.61 2.63 5.79 5.95 5 8.55C4.73 9.41 5.06 10.27 5.8 10.87L7.5 12.22C7.56 12.27 7.59 12.35 7.58 12.44L7.22 15.61C7.13 16.42 7.72 17.14 8.54 17.24C8.6 17.25 8.67 17.25 8.73 17.25L12 17V2.96C12.14 2.94 12.27 2.93 12.393 2.91Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 17L8.73 17.25C7.9 17.33 7.17 16.73 7.09 15.9L6.73 12.73C6.72 12.64 6.67 12.56 6.6 12.5L4.9 11.15C4.16 10.55 3.83 9.69 4.1 8.83C4.89 6.23 8.02 2.57 11.42 2.43C12.48 2.39 13.54 2.91 14.36 3.73C16 5.37 17.2 8.45 16.6 12C16.32 13.6 15.52 15.15 14.4 16.26L12 17Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 7.5C12.83 7.5 13.5 8.17 13.5 9C13.5 9.83 12.83 10.5 12 10.5C11.17 10.5 10.5 9.83 10.5 9C10.5 8.17 11.17 7.5 12 7.5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 19L8 17M7 22L12 17`})]}),O9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M15.5 12C15.5 13.93 13.93 15.5 12 15.5C10.07 15.5 8.5 13.93 8.5 12C8.5 10.07 10.07 8.5 12 8.5C13.93 8.5 15.5 10.07 15.5 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21.5 14.53L21.26 14.53C20.41 14.47 19.68 15.13 19.62 15.98C19.6 16.23 19.65 16.47 19.76 16.69L19.89 16.94C20.29 17.69 20.02 18.63 19.27 19.03L18.73 19.34C17.98 19.74 17.04 19.47 16.64 18.72L16.51 18.47C16.08 17.73 15.12 17.46 14.38 17.89L14.38 17.89C13.64 18.31 13.37 19.27 13.79 20.01L13.92 20.26C14.32 21.01 14.05 21.95 13.3 22.35L12.76 22.66C12.01 23.06 11.07 22.79 10.67 22.04L10.54 21.79C10.11 21.05 9.15 20.78 8.41 21.21L8.41 21.21C7.67 21.64 7.4 22.59 7.83 23.34V23.34`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M15.5 12C15.5 13.93 13.93 15.5 12 15.5C10.07 15.5 8.5 13.93 8.5 12C8.5 10.07 10.07 8.5 12 8.5C13.93 8.5 15.5 10.07 15.5 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2.5 14.53L2.74 14.53C3.59 14.47 4.32 15.13 4.38 15.98C4.4 16.23 4.35 16.47 4.24 16.69L4.11 16.94C3.71 17.69 3.98 18.63 4.73 19.03L5.27 19.34C6.02 19.74 6.96 19.47 7.36 18.72L7.49 18.47C7.92 17.73 8.88 17.46 9.62 17.89V17.89C10.36 18.31 10.63 19.27 10.21 20.01L10.08 20.26C9.68 21.01 9.95 21.95 10.7 22.35L11.24 22.66`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21.99 8.37C22.03 8.04 21.36 6.88 21.01 6.28C20.64 5.63 20.45 5.31 20.13 5.18C19.82 5.05 19.46 5.15 18.74 5.35L17.52 5.7C17.06 5.8 16.58 5.74 16.16 5.53L15.82 5.33C15.46 5.1 15.19 4.76 15.03 4.36L14.7 3.37C14.48 2.71 14.37 2.38 14.11 2.19C13.85 2 13.5 2 12.81 2H11.69C10.99 2 10.65 2 10.39 2.19C10.13 2.38 10.02 2.71 9.8 3.37L9.46 4.36C9.31 4.76 9.03 5.1 8.68 5.33L8.34 5.53C7.92 5.74 7.44 5.8 6.98 5.7L5.76 5.35C5.04 5.15 4.68 5.05 4.37 5.18C4.05 5.31 3.86 5.63 3.49 6.28C3.14 6.88 2.47 8.04 2.5 8.37C2.54 8.69 2.77 8.95 3.24 9.47L4.27 10.63C4.52 10.94 4.7 11.5 4.7 12C4.7 12.5 4.52 13.06 4.27 13.37L3.24 14.53C2.77 15.05 2.54 15.31 2.5 15.63C2.47 15.96 2.64 16.26 3 16.87L3.49 17.72C3.86 18.37 4.05 18.69 4.37 18.82C4.68 18.95 5.04 18.85 5.76 18.65L6.98 18.3C7.44 18.2 7.92 18.26 8.34 18.47L8.68 18.67C9.03 18.9 9.31 19.24 9.46 19.64L9.8 20.63C10.02 21.29 10.13 21.62 10.39 21.81C10.65 22 10.99 22 11.69 22H12.81C13.5 22 13.85 22 14.11 21.81C14.37 21.62 14.48 21.29 14.7 20.63L15.03 19.64C15.19 19.24 15.46 18.9 15.82 18.67L16.16 18.47C16.58 18.26 17.06 18.2 17.52 18.3L18.74 18.65C19.46 18.85 19.82 18.95 20.13 18.82C20.45 18.69 20.64 18.37 21.01 17.72L21.5 16.87C21.85 16.26 22.03 15.96 21.99 15.63C21.96 15.31 21.73 15.05 21.26 14.53L20.23 13.37C19.98 13.06 19.8 12.5 19.8 12C19.8 11.5 19.98 10.94 20.23 10.63L21.26 9.47C21.73 8.95 21.96 8.69 21.99 8.37Z`})]}),iue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M20 11C20 6.03 15.97 2 11 2C6.03 2 2 6.03 2 11C2 15.97 6.03 20 11 20C15.97 20 20 15.97 20 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M20 11C20 6.03 15.97 2 11 2C6.03 2 2 6.03 2 11C2 15.97 6.03 20 11 20C15.97 20 20 15.97 20 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17.5 17.5L22 22`})]}),aue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C16.97 21 21 16.97 21 12C21 7.03 16.97 3 12 3Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 4V10H14`})]}),oue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M18.89 11.15L7.38 4.17C6.55 3.66 5.5 4.26 5.5 5.22V18.78C5.5 19.74 6.55 20.34 7.38 19.83L18.89 12.85C19.67 12.37 19.67 11.63 18.89 11.15Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18.89 11.15L7.38 4.17C6.55 3.66 5.5 4.26 5.5 5.22V18.78C5.5 19.74 6.55 20.34 7.38 19.83L18.89 12.85C19.67 12.37 19.67 11.63 18.89 11.15Z`})]}),sue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M6 4C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4H6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 4C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4H6Z`})]}),cue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C7.58 20 4 16.42 4 12C4 9.79 4.9 7.79 6.34 6.34`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C7.58 20 4 16.42 4 12C4 9.79 4.9 7.79 6.34 6.34`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 8V4H8`})]}),lue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 9L9 15M9 9L15 15`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`})]}),uue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 12.5L10.5 15L16 9`})]}),k9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8V16M8 12H16`})]}),due=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 6C3 4.34 4.34 3 6 3H18C19.66 3 21 4.34 21 6V18C21 19.66 19.66 21 18 21H6C4.34 21 3 19.66 3 18V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 6C3 4.34 4.34 3 6 3H18C19.66 3 21 4.34 21 6V18C21 19.66 19.66 21 18 21H6C4.34 21 3 19.66 3 18V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 15L10 12L7 9`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M13 15H17`})]}),A9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M4 6C4 4.9 4.9 4 6 4H10C11.1 4 12 4.9 12 6V10C12 11.1 11.1 12 10 12H6C4.9 12 4 11.1 4 10V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 6C4 4.9 4.9 4 6 4H10C11.1 4 12 4.9 12 6V10C12 11.1 11.1 12 10 12H6C4.9 12 4 11.1 4 10V6Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M14 14H18C19.1 14 20 14.9 20 16V18C20 19.1 19.1 20 18 20H16C14.9 20 14 19.1 14 18V14Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8H14M14 8V14M8 12V14H14`})]}),j9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 12H7L9 7L12 17L15 9L17 12H21`})]}),fue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 3C7.58 3 4 4.79 4 7V17C4 19.21 7.58 21 12 21C16.42 21 20 19.21 20 17V7C20 4.79 16.42 3 12 3Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M4 7C4 4.79 7.58 3 12 3C16.42 3 20 4.79 20 7M4 7V17C4 19.21 7.58 21 12 21C16.42 21 20 19.21 20 17V7M4 7C4 9.21 7.58 11 12 11C16.42 11 20 9.21 20 7M4 12C4 14.21 7.58 16 12 16C16.42 16 20 14.21 20 12`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 15V19M12 19L14 17M12 19L10 17`})]}),pue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M3 9H21M9 9V21`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15 13V17M13 15H17`})]}),M9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M4 5C4 3.34 5.34 2 7 2H17C18.66 2 20 3.34 20 5V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 5C4 3.34 5.34 2 7 2H17C18.66 2 20 3.34 20 5V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M4 9H20M4 15H20`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 5.5H8.01M8 12H8.01M8 18.5H8.01`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M14 5.5H16M14 12H16M14 18.5H16`})]}),N9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M5 8C5 6.9 5.9 6 7 6H17C18.1 6 19 6.9 19 8V16C19 17.1 18.1 18 17 18H7C5.9 18 5 17.1 5 16V8Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 8C5 6.9 5.9 6 7 6H17C18.1 6 19 6.9 19 8V16C19 17.1 18.1 18 17 18H7C5.9 18 5 17.1 5 16V8Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 10C3 8.9 3.9 8 5 8V18C3.9 18 3 17.1 3 16V10Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 10C21 8.9 20.1 8 19 8V18C20.1 18 21 17.1 21 16V10Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 3H16M7 21H17`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 10H15M9 14H13`})]}),P9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 7C2 5.34 3.34 4 5 4H9L11 6H19C20.66 6 22 7.34 22 9V17C22 18.66 20.66 20 19 20H5C3.34 20 2 18.66 2 17V7Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 7C2 5.34 3.34 4 5 4H9L11 6H19C20.66 6 22 7.34 22 9V17C22 18.66 20.66 20 19 20H5C3.34 20 2 18.66 2 17V7Z`}),(0,R.jsx)(`circle`,{cx:`12`,cy:`13`,r:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 11V10.5M12 15.5V15M14 12L14.5 11.7M9.5 14.3L10 14M14 14L14.5 14.3M9.5 11.7L10 12`})]}),mue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12C21 16.97 16.97 21 12 21Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 8L18 6L16 4`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H18`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 16L6 18L8 20`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M18 18H6`})]}),hue=e=>e?.open?(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M22 12C22 11.6845 21.848 11.4713 21.544 11.045C20.1779 9.12944 16.6892 5 12 5C7.31078 5 3.8221 9.12944 2.45604 11.045C2.15201 11.4713 2 11.6845 2 12C2 12.3155 2.15201 12.5287 2.45604 12.955C3.8221 14.8706 7.31078 19 12 19C16.6892 19 20.1779 14.8706 21.544 12.955C21.848 12.5287 22 12.3155 22 12ZM12 9C13.6569 9 15 10.3431 15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z`})]}):(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 14C18 14 22 8 22 8H2C2 8 6 14 12 14Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M22 8C22 8 18 14 12 14C6 14 2 8 2 8`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 13.5L16.5 16`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 11L22 13`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 13L4 11`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 13.5L7.5 16`})]}),gue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5H19.5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21 5.5H3`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M16.0575 5.5L15.3748 4.09173C14.9213 3.15626 14.6946 2.68852 14.3035 2.39681C14.2167 2.3321 14.1249 2.27454 14.0288 2.2247C13.5957 2 13.0759 2 12.0363 2C10.9706 2 10.4377 2 9.99745 2.23412C9.89986 2.28601 9.80675 2.3459 9.71906 2.41317C9.3234 2.7167 9.10239 3.20155 8.66037 4.17126L8.05469 5.5`})]}),_ue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M8 16L8.72397 13.1041C8.89804 12.4079 9.25807 11.772 9.76558 11.2645L16.4249 4.6051L19.3949 7.57508L12.7356 14.2344C12.228 14.7419 11.5922 15.102 10.8959 15.276L8 16Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M16.4249 4.60509L17.4149 3.6151C18.2351 2.79497 19.5648 2.79497 20.3849 3.6151C21.205 4.43524 21.205 5.76493 20.3849 6.58507L19.3949 7.57506M16.4249 4.60509L9.76558 11.2644C9.25807 11.772 8.89804 12.4078 8.72397 13.1041L8 16L10.8959 15.276C11.5922 15.102 12.228 14.7419 12.7356 14.2344L19.3949 7.57506M16.4249 4.60509L19.3949 7.57506`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18.9999 13.5C18.9999 16.7875 18.9999 18.4312 18.092 19.5376C17.9258 19.7401 17.7401 19.9258 17.5375 20.092C16.4312 21 14.7874 21 11.4999 21H11C7.22876 21 5.34316 21 4.17159 19.8284C3.00003 18.6569 3 16.7712 3 13V12.5C3 9.21252 3 7.56879 3.90794 6.46244C4.07417 6.2599 4.2599 6.07417 4.46244 5.90794C5.56879 5 7.21252 5 10.5 5`})]}),vue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2.5 12C2.5 7.52162 2.5 5.28245 3.89124 3.89121C5.28249 2.49997 7.52166 2.49997 12 2.49997C16.4783 2.49997 18.7175 2.49997 20.1088 3.89121C21.5 5.28245 21.5 7.52162 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1087C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1087C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52163 2.5 5.28245 3.89124 3.89121C5.28249 2.49997 7.52166 2.49997 12 2.49997C16.4783 2.49997 18.7175 2.49997 20.1088 3.89121C21.5 5.28245 21.5 7.52163 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1087C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1087C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M7 12.0323H13.9756M13.9756 12.0323C13.9756 12.6028 11.8204 14.5197 11.8204 14.5197M13.9756 12.0323C13.9756 11.447 11.8204 9.56795 11.8204 9.56795M17 7.99997V16`})]}),yue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5M11 8.5V13.5`})]}),bue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5`})]}),xue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 13V11C3 7.22876 3 5.34315 4.17157 4.17157C5.34315 3 7.22876 3 11 3H13C16.7712 3 18.6569 3 19.8284 4.17157C21 5.34315 21 7.22876 21 11V13C21 16.7712 21 18.6569 19.8284 19.8284C18.6569 21 16.7712 21 13 21H11C7.22876 21 5.34315 21 4.17157 19.8284C3 18.6569 3 16.7712 3 13Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3`})]}),Sue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 13V11C3 7.22876 3 5.34315 4.17157 4.17157C5.34315 3 7.22876 3 11 3H13C16.7712 3 18.6569 3 19.8284 4.17157C21 5.34315 21 7.22876 21 11V13C21 16.7712 21 18.6569 19.8284 19.8284C18.6569 21 16.7712 21 13 21H11C7.22876 21 5.34315 21 4.17157 19.8284C3 18.6569 3 16.7712 3 13Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9.5 3C9.5 3 9.5 5.10444 9.5 6.5C9.5 7.89556 8.89556 8.5 7.5 8.5C6.10444 8.5 3 8.5 3 8.5M14.5 3C14.5 3 14.5 5.10444 14.5 6.5C14.5 7.89556 15.1044 8.5 16.5 8.5C17.8956 8.5 21 8.5 21 8.5M9.5 21C9.5 21 9.5 18.8956 9.5 17.5C9.5 16.1044 8.89556 15.5 7.5 15.5C6.10444 15.5 3 15.5 3 15.5M14.5 21C14.5 21 14.5 18.8956 14.5 17.5C14.5 16.1044 15.1044 15.5 16.5 15.5C17.8956 15.5 21 15.5 21 15.5`})]}),Cue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{opacity:`0.4`,d:`M4.26781 18.8447C4.49269 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.26781 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.26781 18.8447Z`,fill:`currentColor`}),(0,R.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,d:`M4.2678 18.8447C4.49268 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.8789 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.2678 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.2678 18.8447Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{fill:`none`,d:`M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),wue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{opacity:`0.4`,d:`M4.26781 18.8447C4.49269 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.26781 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.26781 18.8447Z`,fill:`currentColor`}),(0,R.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,R.jsx)(`path`,{fill:`none`,d:`M4.2678 18.8447C4.49268 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.8789 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.2678 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.2678 18.8447Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,R.jsx)(`path`,{fill:`none`,d:`M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Tue=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`10`}),(0,R.jsx)(`circle`,{fill:`none`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`})]}),F9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,fillRule:`evenodd`,d:`M5.17157 5.17157C4 6.34315 4 8.22876 4 12C4 15.7712 4 17.6569 5.17157 18.8284C6.34315 20 8.22876 20 12 20C15.7712 20 17.6569 20 18.8284 18.8284C20 17.6569 20 15.7712 20 12C20 8.22876 20 6.34315 18.8284 5.17157C17.6569 4 15.7712 4 12 4C8.22876 4 6.34315 4 5.17157 5.17157ZM12 17C9.64298 17 8.46447 17 7.73223 16.2678C7 15.5355 7 14.357 7 12C7 9.64298 7 8.46447 7.73223 7.73223C8.46447 7 9.64298 7 12 7C14.357 7 15.5355 7 16.2678 7.73223C17 8.46447 17 9.64298 17 12C17 12.7898 17 13.4473 16.9724 14L14 16.9724C13.4473 17 12.7898 17 12 17Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M4 12C4 8.22876 4 6.34315 5.17157 5.17157C6.34315 4 8.22876 4 12 4C15.7712 4 17.6569 4 18.8284 5.17157C20 6.34315 20 8.22876 20 12C20 15.7712 20 17.6569 18.8284 18.8284C17.6569 20 15.7712 20 12 20C8.22876 20 6.34315 20 5.17157 18.8284C4 17.6569 4 15.7712 4 12Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M7.73223 16.2678C8.46447 17 9.64298 17 12 17C12.7898 17 13.4473 17 14 16.9724L16.9724 14C17 13.4473 17 12.7898 17 12C17 9.64298 17 8.46447 16.2678 7.73223C15.5355 7 14.357 7 12 7C9.64298 7 8.46447 7 7.73223 7.73223C7 8.46447 7 9.64298 7 12C7 14.357 7 15.5355 7.73223 16.2678Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 2V4M16 2V4M12 2V4M8 20V22M12 20V22M16 20V22M22 16H20M4 8H2M4 16H2M4 12H2M22 8H20M22 12H20`})]}),I9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z`})]}),L9=e=>(0,R.jsxs)(X,{...e,children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2.5L20.5 7V17L12 21.5L3.5 17V7L12 2.5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2.5L20.5 7V17L12 21.5L3.5 17V7L12 2.5Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.5 7L12 11.5L20.5 7M12 11.5V21.5`})]});function Eue(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=vU(),i=xt(),{pathname:a}=yt(),o=X7(e=>e.projects),s=$7(),c=X7(e=>e.selectProject),l=X7(e=>e.deselectProject),u=X7(e=>e.fetchProjects);(0,S.useEffect)(()=>{u()},[u]);let d=(0,S.useCallback)(()=>{let e=l(a);i(e),n()},[l,i,a,n]),f=(0,S.useCallback)(e=>{let t=c(e,a);i(t),n()},[c,i,a,n]),p=o.find(e=>e.name===s),m=!s,h={height:1,zIndex:-1,opacity:0,content:`''`,borderRadius:1,position:`absolute`,visibility:`hidden`,bgcolor:`action.hover`,width:`calc(100% + 8px)`,transition:e=>e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),...e&&{opacity:1,visibility:`visible`}},g={fontSize:22,color:`text.secondary`},_={fontSize:22,color:`primary.main`};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(hv,{disableRipple:!0,onClick:r,sx:{py:.5,gap:{xs:.5,sm:1},"&::before":h},children:[(0,R.jsx)(Z,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:m?(0,R.jsx)(F9,{sx:{fontSize:20}}):(0,R.jsx)(I9,{sx:{fontSize:20}})}),(0,R.jsx)(Z,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`inline-flex`}},children:m?`Omnitron`:p?.displayName??s}),p&&(0,R.jsxs)(lU,{color:p.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`,display:{xs:`none`,sm:`inline-flex`}},children:[p.runningStacks,`/`,p.totalStacks,` stacks`]}),(0,R.jsx)(Z,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,R.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,R.jsxs)(_U,{open:e,anchorEl:t,onClose:n,arrow:{placement:`top-left`},slotProps:{paper:{sx:{mt:.5,ml:-1.55,width:280}}},children:[(0,R.jsx)(Z,{sx:{maxHeight:320,overflow:`auto`},children:(0,R.jsxs)(JO,{children:[(0,R.jsxs)(hk,{selected:m,onClick:d,sx:{height:48,gap:1.5},children:[(0,R.jsx)(F9,{sx:m?_:g}),(0,R.jsxs)(Z,{sx:{flexGrow:1,minWidth:0},children:[(0,R.jsx)(Nb,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,R.jsx)(Nb,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),o.length>0&&(0,R.jsx)(dD,{sx:{my:.5,borderStyle:`dashed`}}),o.map(e=>{let t=e.name===s;return(0,R.jsx)(wA,{title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,R.jsxs)(hk,{selected:t,onClick:()=>f(e.name),sx:{height:48,gap:1.5},children:[(0,R.jsx)(I9,{sx:t?_:g}),(0,R.jsx)(Z,{sx:{flexGrow:1,minWidth:0},children:(0,R.jsx)(Nb,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})}),(0,R.jsx)(lU,{color:e.runningStacks>0?`success`:`default`,children:e.runningStacks>0?`${e.runningStacks} live`:`idle`})]})},e.name)})]})}),(0,R.jsx)(dD,{sx:{my:.5,borderStyle:`dashed`}}),(0,R.jsx)(bb,{fullWidth:!0,startIcon:(0,R.jsx)(k9,{sx:{fontSize:18}}),onClick:n,sx:{gap:2,justifyContent:`flex-start`,fontWeight:`fontWeightMedium`,[`& .${mb.startIcon}`]:{m:0,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`}},children:`Add project`})]})]})}function R9(e,t,n){let r=n.primary,i=r?`${r.filePath??`unknown`}:${r.lineNumber??`?`}${r.functionName?` (${r.functionName})`:``}`:`unknown location`;console.error(`[omnitron-console] crashed at ${i}: ${e.message}`,{error:e,componentStack:t.componentStack})}var Due=[/^app\.(\*|[\w-]+)\.status\s*(!=|==)\s*(\w+)$/,/^app\.(\*|[\w-]+)\.(cpu|memory)\s*(>|<|>=|<=)\s*(\d+)$/,/^infra\.(\*|[\w-]+)\.health\s*(!=|==)\s*(\w+)$/,/^host\.disk\.free\s*(>|<|>=|<=)\s*(\d+)$/],z9=`app.<name|*>.status != <status> · app.<name|*>.<cpu|memory> <op> <number> · infra.<name|*>.health != <status> · host.disk.free <op> <bytes>`;function Oue(e){let t=e.trim();return Due.some(e=>e.test(t))}var B9=[`info`,`warning`,`critical`];function V9(e){return B9.indexOf(e)}var H9={name:100,expression:200,summary:500,forDuration:86400};function kue(e,t){let n=typeof e==`object`&&e?e:{},r={},i=[],a=e=>n[e]!==void 0;if(a(`name`)||!t){let e=typeof n.name==`string`?n.name.trim():``;e.length===0||e.length>H9.name?i.push(`name: 1 to ${H9.name} characters`):r.name=e}if(a(`expression`)||!t){let e=typeof n.expression==`string`?n.expression.trim():``;e.length>H9.expression||!Oue(e)?i.push(`expression: not one the evaluator reads — ${z9}`):r.expression=e}if(a(`severity`)||!t){let e=n.severity;typeof e!=`string`||V9(e)<0?i.push(`severity: one of ${B9.join(`, `)}`):r.severity=e}if(a(`forDuration`)){let e=n.forDuration;e===null?r.forDuration=null:typeof e!=`number`||!Number.isInteger(e)||e<0||e>H9.forDuration?i.push(`forDuration: whole seconds from 0 to ${H9.forDuration}, or null`):r.forDuration=e===0?null:e}else t||(r.forDuration=null);if(a(`summary`)){let e=n.summary;e===null||typeof e==`string`&&e.trim()===``?r.summary=null:typeof e!=`string`||e.trim().length>H9.summary?i.push(`summary: at most ${H9.summary} characters`):r.summary=e.trim()}else t||(r.summary=null);return a(`enabled`)?typeof n.enabled==`boolean`?r.enabled=n.enabled:i.push(`enabled: true or false`):t||(r.enabled=!0),{fields:r,problems:i}}var U9=`omnitron_desktop_notifications`,W9=`omnitron_sound_alerts`,G9=`omnitron_alert_severity`,Aue=`warning`;function K9(e,t){let n=z7(e);return n===null?t:n===`true`}function jue(e,t){B7(e,String(t))}function q9(){let e=z7(G9);return e!==null&&B9.includes(e)?e:Aue}function Mue(){return{desktop:K9(U9,!1),sound:K9(W9,!0),minSeverity:q9()}}function Nue(e,t,n){let r=t.filter(t=>!e.has(t.id));for(let n of t)e.add(n.id);return r.filter(e=>V9(e.severity)>=V9(n))}function Pue(){try{let e=new AudioContext,t=e.createOscillator(),n=e.createGain();t.frequency.value=880,n.gain.setValueAtTime(.15,e.currentTime),n.gain.exponentialRampToValueAtTime(1e-4,e.currentTime+.4),t.connect(n).connect(e.destination),t.start(),t.stop(e.currentTime+.4),t.onended=()=>void e.close()}catch{}}function Fue(e){let t=(0,S.useRef)(null),{data:n}=l9(()=>p.getActiveAlerts(),{intervalMs:15e3,enabled:e,pauseWhileHidden:!1});(0,S.useEffect)(()=>{if(!n)return;if(t.current===null){t.current=new Set(n.map(e=>e.id));return}let e=Mue(),r=Nue(t.current,n,e.minSeverity);if(r.length!==0){if(e.desktop&&typeof Notification<`u`&&Notification.permission===`granted`)for(let e of r)new Notification(`${e.severity.toUpperCase()} · ${e.ruleName}`,{body:e.node?`${e.message} — ${e.node}`:e.message,tag:e.id});e.sound&&Pue()}},[n])}function Iue(){let e=$7();return(0,S.useMemo)(()=>e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,R.jsx)(y9,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,R.jsx)(b9,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,R.jsx)(x9,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,R.jsx)(C9,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,R.jsx)(j9,{})},{id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,R.jsx)(w9,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,R.jsx)(N9,{}),selectionPrefix:`/stacks`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,R.jsx)(L9,{}),selectionPrefix:`/releases`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,R.jsx)(T9,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,R.jsx)(E9,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,R.jsx)(D9,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,R.jsx)(A9,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[{id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,R.jsx)(pue,{})},{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,R.jsx)(O9,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,R.jsx)(S9,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,R.jsx)(M9,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,R.jsx)(y9,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,R.jsx)(x9,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`projects`,title:`Projects`,path:`/projects`,icon:(0,R.jsx)(P9,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,R.jsx)(T9,{})},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,R.jsx)(L9,{}),selectionPrefix:`/releases`}]},{id:`system`,subheader:`System`,items:[{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,R.jsx)(O9,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,R.jsx)(S9,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,R.jsx)(M9,{})}]}],[e])}function Lue(){let{sidenavCollapsed:e,sidenavVariant:t}=l7();return(0,R.jsxs)(TA,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,R.jsx)(v9,{size:48}),!e&&t!==`mini`&&(0,R.jsx)(Nb,{variant:`subtitle1`,noWrap:!0,sx:{fontWeight:800,letterSpacing:2,textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function Rue({mode:e}){return e===`dark`?(0,R.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67C21.89 14.81 21.7 14.94 21.5 14.08Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67`})]}):e===`light`?(0,R.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,R.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,R.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 2V4M12 20V22M4 12H2M22 12H20M19.78 4.22L18.36 5.64M5.64 18.36L4.22 19.78M19.78 19.78L18.36 18.36M5.64 5.64L4.22 4.22`})]}):(0,R.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,R.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V11C22 11.55 21.55 12 21 12H3C2.45 12 2 11.55 2 11V10Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V10Z`}),(0,R.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}var J9={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}};function zue(){let e=F7(e=>e.signOut),{setMode:t}=Mte(),n=CP(e=>e.mode);return(0,R.jsxs)(TA,{direction:`row`,spacing:.5,sx:{alignItems:`center`},children:[(0,R.jsx)(wA,{title:n===`light`?`Dark mode`:n===`dark`?`System mode`:`Light mode`,children:(0,R.jsx)(Nv,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`],r=e.indexOf(n);t(e[(r+1)%e.length])},sx:J9,children:(0,R.jsx)(Rue,{mode:n})})}),(0,R.jsx)(wA,{title:`Sign out`,children:(0,R.jsx)(Nv,{disableRipple:!0,onClick:()=>e(),sx:J9,children:(0,R.jsx)(vue,{sx:{fontSize:20}})})})]})}function Bue(){let e=Iue();return Fue(F7(e=>!!e.user)),(0,R.jsxs)(Qce,{logo:(0,R.jsx)(Lue,{}),navData:e,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,R.jsx)(Eue,{}),rightArea:(0,R.jsx)(zue,{})},slotProps:{main:{sx:{pb:{xs:6,sm:7,md:8}}}},children:[(0,R.jsx)(YU,{showDetails:!0,onError:R9,children:(0,R.jsx)(S.Suspense,{fallback:(0,R.jsx)(pU,{variant:`linear`,message:`Loading…`}),children:(0,R.jsx)(mn,{})})}),(0,R.jsx)(tue,{})]})}function Vue(){return(0,R.jsx)(nle,{maxWidth:460,children:(0,R.jsx)(S.Suspense,{fallback:(0,R.jsx)(pU,{message:`Loading sign-in…`}),children:(0,R.jsx)(mn,{})})})}var Hue=(0,S.lazy)(()=>SW(()=>import(`./sign-in-D4kMBOHp.js`),__vite__mapDeps([4,1,2]))),Uue=(0,S.lazy)(()=>SW(()=>import(`./dashboard-DHf2_65N.js`),__vite__mapDeps([5,1,2,6,7,8,9]))),Wue=(0,S.lazy)(()=>SW(()=>import(`./apps-B96355sz.js`),__vite__mapDeps([10,1,2,7,8,11,9]))),Gue=(0,S.lazy)(()=>SW(()=>import(`./detail-B2zP1Hto.js`),__vite__mapDeps([12,1,2,7,8,0,11,9]))),Kue=(0,S.lazy)(()=>SW(()=>import(`./logs-DTRjOfX8.js`),__vite__mapDeps([13,1,2,7,11,9]))),que=(0,S.lazy)(()=>SW(()=>import(`./topology-7WeTUsDN.js`),__vite__mapDeps([14,1,2,7,8,11,9,15]))),Jue=(0,S.lazy)(()=>SW(()=>import(`./alerts-DH_RVRS3.js`),__vite__mapDeps([16,1,2,6,17,18,7,8,19]))),Yue=(0,S.lazy)(()=>SW(()=>import(`./containers-B_TpThln.js`),__vite__mapDeps([20,1,2,6,7,9]))),Xue=(0,S.lazy)(()=>SW(()=>import(`./deployments-tJI6O3fK.js`),__vite__mapDeps([21,1,2,7,8,19]))),Zue=(0,S.lazy)(()=>SW(()=>import(`./metrics-UCajtdox.js`),__vite__mapDeps([22,1,2,6,18,7,0,9]))),Que=(0,S.lazy)(()=>SW(()=>import(`./settings-DIteZTbe.js`),__vite__mapDeps([23,1,2,17,18,7,8]))),$ue=(0,S.lazy)(()=>SW(()=>import(`./pipelines-C8BeDcAl.js`),__vite__mapDeps([24,1,2,7,8,19]))),ede=(0,S.lazy)(()=>SW(()=>import(`./traces-9c3gwCN-.js`),__vite__mapDeps([25,1,2,6,7,8]))),tde=(0,S.lazy)(()=>SW(()=>import(`./dashboard-builder-CWY2pjeG.js`),__vite__mapDeps([26,1,2,6,18,7,8,0,27]))),nde=(0,S.lazy)(()=>SW(()=>import(`./stacks-Brnf-EB7.js`),__vite__mapDeps([28,1,2,6,17,7,8,29,30,31]))),rde=(0,S.lazy)(()=>SW(()=>import(`./detail-CoIrwmsy.js`),__vite__mapDeps([32,1,2,8,30,29,7,31]))),ide=(0,S.lazy)(()=>SW(()=>import(`./system-info-CFDNVKkU.js`),__vite__mapDeps([33,6,1,2,7,8]))),ade=(0,S.lazy)(()=>SW(()=>import(`./nodes-DuTVU0f6.js`),__vite__mapDeps([34,1,2,6,7,27,30]))),ode=(0,S.lazy)(()=>SW(()=>import(`./projects-Dp_zFfLY.js`),__vite__mapDeps([35,1,2,6,8]))),sde=(0,S.lazy)(()=>SW(()=>import(`./audit-CYGtbi4k.js`),__vite__mapDeps([36,1,2,7]))),cde=(0,S.lazy)(()=>SW(()=>import(`./releases-B4hcr1bE.js`),__vite__mapDeps([37,1,2,17,18,7,30,29,38]))),lde=(0,S.lazy)(()=>SW(()=>import(`./detail-DWaGaOtL.js`),__vite__mapDeps([39,1,2,6,7,30,29,38])));function ude(){return(0,R.jsxs)(_n,{children:[(0,R.jsx)(hn,{element:(0,R.jsx)(Tle,{children:(0,R.jsx)(Vue,{})}),children:(0,R.jsx)(hn,{path:`/auth/sign-in`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(Hue,{})})})}),(0,R.jsxs)(hn,{element:(0,R.jsx)(wle,{children:(0,R.jsx)(Bue,{})}),children:[(0,R.jsx)(hn,{index:!0,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(Uue,{})})}),(0,R.jsx)(hn,{path:`nodes`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(ade,{})})}),(0,R.jsx)(hn,{path:`projects`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(ode,{})})}),(0,R.jsx)(hn,{path:`system`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(ide,{})})}),(0,R.jsx)(hn,{path:`settings`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(Que,{})})}),(0,R.jsx)(hn,{path:`logs`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(Kue,{})})}),(0,R.jsx)(hn,{path:`audit`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(sde,{})})}),(0,R.jsx)(hn,{path:`releases`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(cde,{})})}),(0,R.jsx)(hn,{path:`releases/:id`,element:(0,R.jsx)(Y9,{children:(0,R.jsx)(lde,{})})}),(0,R.jsx)(hn,{path:`apps`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Wue,{})})}),(0,R.jsx)(hn,{path:`apps/:name`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Gue,{})})}),(0,R.jsx)(hn,{path:`stacks`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(nde,{})})}),(0,R.jsx)(hn,{path:`stacks/:name`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(rde,{})})}),(0,R.jsx)(hn,{path:`metrics`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Zue,{})})}),(0,R.jsx)(hn,{path:`topology`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(que,{})})}),(0,R.jsx)(hn,{path:`containers`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Yue,{})})}),(0,R.jsx)(hn,{path:`deployments`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Xue,{})})}),(0,R.jsx)(hn,{path:`alerts`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(Jue,{})})}),(0,R.jsx)(hn,{path:`pipelines`,element:(0,R.jsx)(X9,{children:(0,R.jsx)($ue,{})})}),(0,R.jsx)(hn,{path:`traces`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(ede,{})})}),(0,R.jsx)(hn,{path:`dashboard-builder`,element:(0,R.jsx)(X9,{children:(0,R.jsx)(tde,{})})})]}),(0,R.jsx)(hn,{path:`*`,element:(0,R.jsx)(pn,{to:`/`,replace:!0})})]})}function Y9({children:e}){return(0,R.jsx)(S.Suspense,{fallback:(0,R.jsx)(dU,{}),children:e})}function X9({children:e}){return(0,R.jsx)(S.Suspense,{fallback:(0,R.jsx)(dU,{}),children:(0,R.jsx)(jle,{children:e})})}var dde=[{id:`nav-dashboard`,title:`Dashboard`,icon:y9,target:`/`,keywords:[`home`,`overview`],group:`Navigation`},{id:`nav-apps`,title:`Applications`,icon:b9,target:`/apps`,keywords:[`processes`,`services`],group:`Navigation`},{id:`nav-stacks`,title:`Stacks`,icon:N9,target:`/stacks`,keywords:[`environments`,`dev`,`prod`,`test`,`deploy`,`cluster`,`remote`],group:`Navigation`},{id:`nav-logs`,title:`Logs`,icon:x9,target:`/logs`,keywords:[`terminal`,`output`,`stream`],group:`Navigation`},{id:`nav-metrics`,title:`Metrics`,icon:C9,target:`/metrics`,keywords:[`charts`,`cpu`,`memory`,`performance`],group:`Navigation`},{id:`nav-alerts`,title:`Alerts`,icon:w9,target:`/alerts`,keywords:[`rules`,`notifications`,`warnings`],group:`Navigation`},{id:`nav-topology`,title:`Topology`,icon:T9,target:`/topology`,keywords:[`nodes`,`fleet`,`servers`,`infrastructure`],group:`Navigation`},{id:`nav-containers`,title:`Containers`,icon:E9,target:`/containers`,keywords:[`docker`,`images`],group:`Navigation`},{id:`nav-deployments`,title:`Deployments`,icon:D9,target:`/deployments`,keywords:[`deploy`,`rollback`,`releases`],group:`Navigation`},{id:`nav-settings`,title:`Settings`,icon:O9,target:`/settings`,keywords:[`profile`,`password`,`sessions`],group:`Navigation`},{id:`nav-pipelines`,title:`Pipelines`,target:`/pipelines`,keywords:[`ci`,`cd`,`jobs`,`workflow`],group:`Navigation`},{id:`nav-traces`,title:`Traces`,target:`/traces`,keywords:[`spans`,`distributed`,`tracing`],group:`Navigation`},{id:`act-logs-error`,title:`View error logs`,icon:x9,target:`/logs?level=error`,keywords:[`errors`,`failures`],group:`Quick Actions`},{id:`act-logs-live`,title:`Live log stream`,icon:x9,target:`/logs?live=true`,keywords:[`tail`,`stream`,`follow`],group:`Quick Actions`}];function fde(){let e=xt(),t=(0,S.useMemo)(()=>dde.map(t=>{let n=t.icon;return{id:t.id,title:t.title,...t.subtitle!==void 0&&{subtitle:t.subtitle},group:t.group,keywords:t.keywords,...n&&{icon:(0,R.jsx)(n,{})},onSelect:()=>e(t.target)}}),[e]);return(0,R.jsx)(AU,{actions:t,placeholder:`Search pages and actions…`,emptyMessage:`No matching command`})}function pde(e,t,n){return e===502||e===503?`down`:(t??``).includes(`text/html`)||e<200||e>=300||n===null?`unreachable`:n.status===`online`?`up`:`down`}function mde(e,t){return e===`up`?{status:`online`,consecutiveUnreachable:0}:e===`down`?{status:`offline`,consecutiveUnreachable:0}:{status:`degraded`,consecutiveUnreachable:t+1}}var hde=3e4,gde=15e3;async function _de(){try{let e=new AbortController,t=setTimeout(()=>e.abort(),gde),n=await fetch(`/api/health`,{signal:e.signal,cache:`no-store`});clearTimeout(t);let r=n.headers.get(`content-type`),i=n.ok?await n.json().catch(()=>null):null;return pde(n.status,r,i)}catch{return`unreachable`}}async function Z9(e,t){let n=mde(await _de(),t().consecutiveUnreachable);e({status:n.status,consecutiveUnreachable:n.consecutiveUnreachable,lastChecked:Date.now()})}var Q9=PM((e,t)=>({status:`unknown`,lastChecked:null,consecutiveUnreachable:0,probe:async()=>{await Z9(e,t)},startPolling:()=>{Z9(e,t);let n=setInterval(()=>void Z9(e,t),hde);return()=>clearInterval(n)}})),vde=()=>Q9(e=>e.status!==`offline`),yde=()=>Q9(e=>e.status);function bde(){let e=yde(),{probe:t,startPolling:n,consecutiveUnreachable:r}=Q9();return(0,S.useEffect)(()=>n(),[n]),(0,R.jsx)(Qv,{in:e===`offline`||e===`degraded`,unmountOnExit:!0,children:(0,R.jsx)(ZU,{severity:e===`offline`?`error`:`warning`,variant:`filled`,sx:{borderRadius:0,py:.5,"& .MuiAlert-message":{display:`flex`,alignItems:`center`,gap:2,width:`100%`}},action:(0,R.jsx)(bb,{color:`inherit`,size:`small`,onClick:t,sx:{fontWeight:700,whiteSpace:`nowrap`},children:`Retry`}),children:e===`offline`?(0,R.jsxs)(R.Fragment,{children:[`Daemon offline — run `,(0,R.jsx)(`code`,{style:{margin:`0 4px`},children:`omnitron up`}),` to start the backend`]}):(0,R.jsx)(R.Fragment,{children:r>1?`The daemon has not answered ${r} checks — it may be down, or the connection to it may be blocked`:`The daemon did not answer the last check — this view may be out of date`})})})}function xde(){let{pathname:e}=yt(),t=X7(e=>e.saveCurrentRoute);return(0,S.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(bde,{}),(0,R.jsx)(HU,{pathname:e}),(0,R.jsx)(UU,{pathname:e}),(0,R.jsx)(fde,{}),(0,R.jsx)(YU,{showDetails:!0,onError:R9,children:(0,R.jsx)(ude,{})})]})}function Sde(){return(0,R.jsx)(EP,{defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,R.jsx)(ZH,{children:(0,R.jsx)(mle,{client:c,autoConnect:!0,children:(0,R.jsx)(wU,{children:(0,R.jsx)(Pn,{children:(0,R.jsx)(xde,{})})})})})})}var $9=document.getElementById(`root`);if(!$9)throw Error(`Root element not found`);(0,C.createRoot)($9).render((0,R.jsx)(S.StrictMode,{children:(0,R.jsx)(Sde,{})}));export{$le as $,ea as $n,aD as $t,A9 as A,hv as An,rU as At,sue as B,Bu as Bn,TA as Bt,Sue as C,mb as Cn,kU as Ct,x9 as D,Gv as Dn,lU as Dt,wue as E,Qv as En,dU as Et,cue as F,J as Fn,bM as Ft,bue as G,H as Gn,dk as Gt,due as H,xl as Hn,fA as Ht,iue as I,q as In,vj as It,Jle as J,V as Jn,pO as Jt,v9 as K,xs as Kn,NO as Kt,M9 as L,K as Ln,fj as Lt,k9 as M,P_ as Mn,NP as Mt,P9 as N,j_ as Nn,PM as Nt,C9 as O,Nv as On,sU as Ot,aue as P,_d as Pn,TM as Pt,Zle as Q,Jo as Qn,dD as Qt,O9 as R,G as Rn,cj as Rt,hue as S,hb as Sn,PU as St,Cue as T,uy as Tn,SU as Tt,j9 as U,Bc as Un,qk as Ut,mue as V,Ru as Vn,wA as Vt,yue as W,U as Wn,hk as Wt,qle as X,z as Xn,MD as Xt,d9 as Y,B as Yn,oO as Yt,u9 as Z,Qo as Zn,OD as Zt,lue as _,Ib as _n,hW as _t,K9 as a,sE as an,Tt as ar,Z7 as at,D9 as b,bb as bn,QU as bt,z9 as c,Z as cn,X7 as ct,w9 as d,Jx as dn,U7 as dt,nD as en,Ui as er,Qle as et,b9 as f,Tx as fn,F7 as ft,Tue as g,Gb as gn,mW as gt,F9 as h,hx as hn,SW as ht,W9 as i,lE as in,xt as ir,o9 as it,oue as j,mv as jn,nU as jt,T9 as k,Dv as kn,aU as kt,B9 as l,iE as ln,H7 as lt,uue as m,wx as mn,j7 as mt,G9 as n,KE as nn,zn as nr,l9 as nt,q9 as o,oE as on,y as or,$7 as ot,fue as p,Ex as pn,yle as pt,Xle as q,vs as qn,OO as qt,U9 as r,HE as rn,yt as rr,c9 as rt,jue as s,aE as sn,e9 as st,vde as t,QE as tn,Fn as tr,Yle as tt,kue as u,QT as un,B7 as ut,E9 as v,Nb as vn,pW as vt,xue as w,gy as wn,OU as wt,_ue as x,gb as xn,FU as xt,gue as y,Tb as yn,ZU as yt,N9 as z,Uu as zn,nj as zt};