@atproto/oauth-provider 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) hide show
  1. package/.postcssrc.yml +3 -0
  2. package/CHANGELOG.md +19 -0
  3. package/LICENSE.txt +7 -0
  4. package/dist/access-token/access-token-type.d.ts +6 -0
  5. package/dist/access-token/access-token-type.d.ts.map +1 -0
  6. package/dist/access-token/access-token-type.js +10 -0
  7. package/dist/access-token/access-token-type.js.map +1 -0
  8. package/dist/account/account-manager.d.ts +14 -0
  9. package/dist/account/account-manager.d.ts.map +1 -0
  10. package/dist/account/account-manager.js +39 -0
  11. package/dist/account/account-manager.js.map +1 -0
  12. package/dist/account/account-store.d.ts +39 -0
  13. package/dist/account/account-store.d.ts.map +1 -0
  14. package/dist/account/account-store.js +19 -0
  15. package/dist/account/account-store.js.map +1 -0
  16. package/dist/account/account.d.ts +8 -0
  17. package/dist/account/account.d.ts.map +1 -0
  18. package/dist/account/account.js +3 -0
  19. package/dist/account/account.js.map +1 -0
  20. package/dist/assets/app/bundle-manifest.json +22 -0
  21. package/dist/assets/app/main.css +3 -0
  22. package/dist/assets/app/main.js +20 -0
  23. package/dist/assets/app/main.js.map +1 -0
  24. package/dist/assets/asset.d.ts +9 -0
  25. package/dist/assets/asset.d.ts.map +1 -0
  26. package/dist/assets/asset.js +3 -0
  27. package/dist/assets/asset.js.map +1 -0
  28. package/dist/assets/assets-middleware.d.ts +2 -0
  29. package/dist/assets/assets-middleware.d.ts.map +1 -0
  30. package/dist/assets/assets-middleware.js +30 -0
  31. package/dist/assets/assets-middleware.js.map +1 -0
  32. package/dist/assets/index.d.ts +4 -0
  33. package/dist/assets/index.d.ts.map +1 -0
  34. package/dist/assets/index.js +65 -0
  35. package/dist/assets/index.js.map +1 -0
  36. package/dist/client/client-auth.d.ts +13 -0
  37. package/dist/client/client-auth.d.ts.map +1 -0
  38. package/dist/client/client-auth.js +35 -0
  39. package/dist/client/client-auth.js.map +1 -0
  40. package/dist/client/client-data.d.ts +8 -0
  41. package/dist/client/client-data.d.ts.map +1 -0
  42. package/dist/client/client-data.js +3 -0
  43. package/dist/client/client-data.js.map +1 -0
  44. package/dist/client/client-id.d.ts +4 -0
  45. package/dist/client/client-id.d.ts.map +1 -0
  46. package/dist/client/client-id.js +6 -0
  47. package/dist/client/client-id.js.map +1 -0
  48. package/dist/client/client-info.d.ts +13 -0
  49. package/dist/client/client-info.d.ts.map +1 -0
  50. package/dist/client/client-info.js +3 -0
  51. package/dist/client/client-info.js.map +1 -0
  52. package/dist/client/client-manager.d.ts +38 -0
  53. package/dist/client/client-manager.d.ts.map +1 -0
  54. package/dist/client/client-manager.js +534 -0
  55. package/dist/client/client-manager.js.map +1 -0
  56. package/dist/client/client-store.d.ts +13 -0
  57. package/dist/client/client-store.d.ts.map +1 -0
  58. package/dist/client/client-store.js +39 -0
  59. package/dist/client/client-store.js.map +1 -0
  60. package/dist/client/client-utils.d.ts +6 -0
  61. package/dist/client/client-utils.d.ts.map +1 -0
  62. package/dist/client/client-utils.js +40 -0
  63. package/dist/client/client-utils.js.map +1 -0
  64. package/dist/client/client.d.ts +41 -0
  65. package/dist/client/client.d.ts.map +1 -0
  66. package/dist/client/client.js +163 -0
  67. package/dist/client/client.js.map +1 -0
  68. package/dist/constants.d.ts +42 -0
  69. package/dist/constants.d.ts.map +1 -0
  70. package/dist/constants.js +53 -0
  71. package/dist/constants.js.map +1 -0
  72. package/dist/device/device-data.d.ts +20 -0
  73. package/dist/device/device-data.d.ts.map +1 -0
  74. package/dist/device/device-data.js +11 -0
  75. package/dist/device/device-data.js.map +1 -0
  76. package/dist/device/device-details.d.ts +17 -0
  77. package/dist/device/device-details.d.ts.map +1 -0
  78. package/dist/device/device-details.js +34 -0
  79. package/dist/device/device-details.js.map +1 -0
  80. package/dist/device/device-id.d.ts +6 -0
  81. package/dist/device/device-id.d.ts.map +1 -0
  82. package/dist/device/device-id.js +18 -0
  83. package/dist/device/device-id.js.map +1 -0
  84. package/dist/device/device-manager.d.ts +88 -0
  85. package/dist/device/device-manager.d.ts.map +1 -0
  86. package/dist/device/device-manager.js +206 -0
  87. package/dist/device/device-manager.js.map +1 -0
  88. package/dist/device/device-store.d.ts +15 -0
  89. package/dist/device/device-store.d.ts.map +1 -0
  90. package/dist/device/device-store.js +36 -0
  91. package/dist/device/device-store.js.map +1 -0
  92. package/dist/device/session-id.d.ts +6 -0
  93. package/dist/device/session-id.d.ts.map +1 -0
  94. package/dist/device/session-id.js +18 -0
  95. package/dist/device/session-id.js.map +1 -0
  96. package/dist/dpop/dpop-manager.d.ts +33 -0
  97. package/dist/dpop/dpop-manager.d.ts.map +1 -0
  98. package/dist/dpop/dpop-manager.js +115 -0
  99. package/dist/dpop/dpop-manager.js.map +1 -0
  100. package/dist/dpop/dpop-nonce.d.ts +13 -0
  101. package/dist/dpop/dpop-nonce.d.ts.map +1 -0
  102. package/dist/dpop/dpop-nonce.js +94 -0
  103. package/dist/dpop/dpop-nonce.js.map +1 -0
  104. package/dist/errors/access-denied-error.d.ts +8 -0
  105. package/dist/errors/access-denied-error.d.ts.map +1 -0
  106. package/dist/errors/access-denied-error.js +21 -0
  107. package/dist/errors/access-denied-error.js.map +1 -0
  108. package/dist/errors/account-selection-required-error.d.ts +6 -0
  109. package/dist/errors/account-selection-required-error.d.ts.map +1 -0
  110. package/dist/errors/account-selection-required-error.js +11 -0
  111. package/dist/errors/account-selection-required-error.js.map +1 -0
  112. package/dist/errors/consent-required-error.d.ts +6 -0
  113. package/dist/errors/consent-required-error.d.ts.map +1 -0
  114. package/dist/errors/consent-required-error.js +11 -0
  115. package/dist/errors/consent-required-error.js.map +1 -0
  116. package/dist/errors/invalid-authorization-details-error.d.ts +20 -0
  117. package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -0
  118. package/dist/errors/invalid-authorization-details-error.js +26 -0
  119. package/dist/errors/invalid-authorization-details-error.js.map +1 -0
  120. package/dist/errors/invalid-client-error.d.ts +18 -0
  121. package/dist/errors/invalid-client-error.d.ts.map +1 -0
  122. package/dist/errors/invalid-client-error.js +24 -0
  123. package/dist/errors/invalid-client-error.js.map +1 -0
  124. package/dist/errors/invalid-client-id-error.d.ts +13 -0
  125. package/dist/errors/invalid-client-id-error.d.ts.map +1 -0
  126. package/dist/errors/invalid-client-id-error.js +25 -0
  127. package/dist/errors/invalid-client-id-error.js.map +1 -0
  128. package/dist/errors/invalid-client-metadata-error.d.ts +13 -0
  129. package/dist/errors/invalid-client-metadata-error.d.ts.map +1 -0
  130. package/dist/errors/invalid-client-metadata-error.js +23 -0
  131. package/dist/errors/invalid-client-metadata-error.js.map +1 -0
  132. package/dist/errors/invalid-dpop-key-binding-error.d.ts +12 -0
  133. package/dist/errors/invalid-dpop-key-binding-error.d.ts.map +1 -0
  134. package/dist/errors/invalid-dpop-key-binding-error.js +20 -0
  135. package/dist/errors/invalid-dpop-key-binding-error.js.map +1 -0
  136. package/dist/errors/invalid-dpop-proof-error.d.ts +5 -0
  137. package/dist/errors/invalid-dpop-proof-error.d.ts.map +1 -0
  138. package/dist/errors/invalid-dpop-proof-error.js +12 -0
  139. package/dist/errors/invalid-dpop-proof-error.js.map +1 -0
  140. package/dist/errors/invalid-grant-error.d.ts +14 -0
  141. package/dist/errors/invalid-grant-error.d.ts.map +1 -0
  142. package/dist/errors/invalid-grant-error.js +20 -0
  143. package/dist/errors/invalid-grant-error.js.map +1 -0
  144. package/dist/errors/invalid-parameters-error.d.ts +6 -0
  145. package/dist/errors/invalid-parameters-error.d.ts.map +1 -0
  146. package/dist/errors/invalid-parameters-error.js +11 -0
  147. package/dist/errors/invalid-parameters-error.js.map +1 -0
  148. package/dist/errors/invalid-redirect-uri-error.d.ts +11 -0
  149. package/dist/errors/invalid-redirect-uri-error.d.ts.map +1 -0
  150. package/dist/errors/invalid-redirect-uri-error.js +21 -0
  151. package/dist/errors/invalid-redirect-uri-error.js.map +1 -0
  152. package/dist/errors/invalid-request-error.d.ts +28 -0
  153. package/dist/errors/invalid-request-error.d.ts.map +1 -0
  154. package/dist/errors/invalid-request-error.js +34 -0
  155. package/dist/errors/invalid-request-error.js.map +1 -0
  156. package/dist/errors/invalid-token-error.d.ts +16 -0
  157. package/dist/errors/invalid-token-error.d.ts.map +1 -0
  158. package/dist/errors/invalid-token-error.js +45 -0
  159. package/dist/errors/invalid-token-error.js.map +1 -0
  160. package/dist/errors/login-required-error.d.ts +6 -0
  161. package/dist/errors/login-required-error.d.ts.map +1 -0
  162. package/dist/errors/login-required-error.js +11 -0
  163. package/dist/errors/login-required-error.js.map +1 -0
  164. package/dist/errors/oauth-error.d.ts +13 -0
  165. package/dist/errors/oauth-error.d.ts.map +1 -0
  166. package/dist/errors/oauth-error.js +29 -0
  167. package/dist/errors/oauth-error.js.map +1 -0
  168. package/dist/errors/unauthorized-client-error.d.ts +18 -0
  169. package/dist/errors/unauthorized-client-error.d.ts.map +1 -0
  170. package/dist/errors/unauthorized-client-error.js +24 -0
  171. package/dist/errors/unauthorized-client-error.js.map +1 -0
  172. package/dist/errors/use-dpop-nonce-error.d.ts +18 -0
  173. package/dist/errors/use-dpop-nonce-error.d.ts.map +1 -0
  174. package/dist/errors/use-dpop-nonce-error.js +27 -0
  175. package/dist/errors/use-dpop-nonce-error.js.map +1 -0
  176. package/dist/errors/www-authenticate-error.d.ts +9 -0
  177. package/dist/errors/www-authenticate-error.d.ts.map +1 -0
  178. package/dist/errors/www-authenticate-error.js +46 -0
  179. package/dist/errors/www-authenticate-error.js.map +1 -0
  180. package/dist/index.d.ts +14 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/index.js +31 -0
  183. package/dist/index.js.map +1 -0
  184. package/dist/lib/html/build-document.d.ts +32 -0
  185. package/dist/lib/html/build-document.d.ts.map +1 -0
  186. package/dist/lib/html/build-document.js +61 -0
  187. package/dist/lib/html/build-document.js.map +1 -0
  188. package/dist/lib/html/escapers.d.ts +9 -0
  189. package/dist/lib/html/escapers.d.ts.map +1 -0
  190. package/dist/lib/html/escapers.js +66 -0
  191. package/dist/lib/html/escapers.js.map +1 -0
  192. package/dist/lib/html/html.d.ts +13 -0
  193. package/dist/lib/html/html.d.ts.map +1 -0
  194. package/dist/lib/html/html.js +53 -0
  195. package/dist/lib/html/html.js.map +1 -0
  196. package/dist/lib/html/index.d.ts +4 -0
  197. package/dist/lib/html/index.d.ts.map +1 -0
  198. package/dist/lib/html/index.js +21 -0
  199. package/dist/lib/html/index.js.map +1 -0
  200. package/dist/lib/html/tags.d.ts +34 -0
  201. package/dist/lib/html/tags.d.ts.map +1 -0
  202. package/dist/lib/html/tags.js +47 -0
  203. package/dist/lib/html/tags.js.map +1 -0
  204. package/dist/lib/html/util.d.ts +4 -0
  205. package/dist/lib/html/util.d.ts.map +1 -0
  206. package/dist/lib/html/util.js +20 -0
  207. package/dist/lib/html/util.js.map +1 -0
  208. package/dist/lib/http/accept.d.ts +29 -0
  209. package/dist/lib/http/accept.d.ts.map +1 -0
  210. package/dist/lib/http/accept.js +67 -0
  211. package/dist/lib/http/accept.js.map +1 -0
  212. package/dist/lib/http/context.d.ts +5 -0
  213. package/dist/lib/http/context.d.ts.map +1 -0
  214. package/dist/lib/http/context.js +10 -0
  215. package/dist/lib/http/context.js.map +1 -0
  216. package/dist/lib/http/index.d.ts +10 -0
  217. package/dist/lib/http/index.d.ts.map +1 -0
  218. package/dist/lib/http/index.js +26 -0
  219. package/dist/lib/http/index.js.map +1 -0
  220. package/dist/lib/http/method.d.ts +6 -0
  221. package/dist/lib/http/method.d.ts.map +1 -0
  222. package/dist/lib/http/method.js +19 -0
  223. package/dist/lib/http/method.js.map +1 -0
  224. package/dist/lib/http/middleware.d.ts +18 -0
  225. package/dist/lib/http/middleware.d.ts.map +1 -0
  226. package/dist/lib/http/middleware.js +118 -0
  227. package/dist/lib/http/middleware.js.map +1 -0
  228. package/dist/lib/http/parser.d.ts +33 -0
  229. package/dist/lib/http/parser.d.ts.map +1 -0
  230. package/dist/lib/http/parser.js +48 -0
  231. package/dist/lib/http/parser.js.map +1 -0
  232. package/dist/lib/http/path.d.ts +9 -0
  233. package/dist/lib/http/path.d.ts.map +1 -0
  234. package/dist/lib/http/path.js +54 -0
  235. package/dist/lib/http/path.js.map +1 -0
  236. package/dist/lib/http/request.d.ts +33 -0
  237. package/dist/lib/http/request.d.ts.map +1 -0
  238. package/dist/lib/http/request.js +86 -0
  239. package/dist/lib/http/request.js.map +1 -0
  240. package/dist/lib/http/response.d.ts +13 -0
  241. package/dist/lib/http/response.d.ts.map +1 -0
  242. package/dist/lib/http/response.js +98 -0
  243. package/dist/lib/http/response.js.map +1 -0
  244. package/dist/lib/http/route.d.ts +25 -0
  245. package/dist/lib/http/route.d.ts.map +1 -0
  246. package/dist/lib/http/route.js +39 -0
  247. package/dist/lib/http/route.js.map +1 -0
  248. package/dist/lib/http/router.d.ts +32 -0
  249. package/dist/lib/http/router.d.ts.map +1 -0
  250. package/dist/lib/http/router.js +74 -0
  251. package/dist/lib/http/router.js.map +1 -0
  252. package/dist/lib/http/stream.d.ts +13 -0
  253. package/dist/lib/http/stream.d.ts.map +1 -0
  254. package/dist/lib/http/stream.js +46 -0
  255. package/dist/lib/http/stream.js.map +1 -0
  256. package/dist/lib/http/types.d.ts +7 -0
  257. package/dist/lib/http/types.d.ts.map +1 -0
  258. package/dist/lib/http/types.js +3 -0
  259. package/dist/lib/http/types.js.map +1 -0
  260. package/dist/lib/http/url.d.ts +8 -0
  261. package/dist/lib/http/url.d.ts.map +1 -0
  262. package/dist/lib/http/url.js +22 -0
  263. package/dist/lib/http/url.js.map +1 -0
  264. package/dist/lib/redis.d.ts +5 -0
  265. package/dist/lib/redis.d.ts.map +1 -0
  266. package/dist/lib/redis.js +22 -0
  267. package/dist/lib/redis.js.map +1 -0
  268. package/dist/lib/util/authorization-header.d.ts +4 -0
  269. package/dist/lib/util/authorization-header.d.ts.map +1 -0
  270. package/dist/lib/util/authorization-header.js +23 -0
  271. package/dist/lib/util/authorization-header.js.map +1 -0
  272. package/dist/lib/util/cast.d.ts +2 -0
  273. package/dist/lib/util/cast.d.ts.map +1 -0
  274. package/dist/lib/util/cast.js +10 -0
  275. package/dist/lib/util/cast.js.map +1 -0
  276. package/dist/lib/util/crypto.d.ts +3 -0
  277. package/dist/lib/util/crypto.d.ts.map +1 -0
  278. package/dist/lib/util/crypto.js +29 -0
  279. package/dist/lib/util/crypto.js.map +1 -0
  280. package/dist/lib/util/date.d.ts +3 -0
  281. package/dist/lib/util/date.d.ts.map +1 -0
  282. package/dist/lib/util/date.js +12 -0
  283. package/dist/lib/util/date.js.map +1 -0
  284. package/dist/lib/util/hostname.d.ts +6 -0
  285. package/dist/lib/util/hostname.d.ts.map +1 -0
  286. package/dist/lib/util/hostname.js +24 -0
  287. package/dist/lib/util/hostname.js.map +1 -0
  288. package/dist/lib/util/redirect-uri.d.ts +7 -0
  289. package/dist/lib/util/redirect-uri.d.ts.map +1 -0
  290. package/dist/lib/util/redirect-uri.js +44 -0
  291. package/dist/lib/util/redirect-uri.js.map +1 -0
  292. package/dist/lib/util/time.d.ts +6 -0
  293. package/dist/lib/util/time.d.ts.map +1 -0
  294. package/dist/lib/util/time.js +28 -0
  295. package/dist/lib/util/time.js.map +1 -0
  296. package/dist/lib/util/type.d.ts +6 -0
  297. package/dist/lib/util/type.d.ts.map +1 -0
  298. package/dist/lib/util/type.js +3 -0
  299. package/dist/lib/util/type.js.map +1 -0
  300. package/dist/lib/util/well-known.d.ts +3 -0
  301. package/dist/lib/util/well-known.d.ts.map +1 -0
  302. package/dist/lib/util/well-known.js +11 -0
  303. package/dist/lib/util/well-known.js.map +1 -0
  304. package/dist/metadata/build-metadata.d.ts +14 -0
  305. package/dist/metadata/build-metadata.d.ts.map +1 -0
  306. package/dist/metadata/build-metadata.js +132 -0
  307. package/dist/metadata/build-metadata.js.map +1 -0
  308. package/dist/oauth-client.d.ts +4 -0
  309. package/dist/oauth-client.d.ts.map +1 -0
  310. package/dist/oauth-client.js +19 -0
  311. package/dist/oauth-client.js.map +1 -0
  312. package/dist/oauth-dpop.d.ts +3 -0
  313. package/dist/oauth-dpop.d.ts.map +1 -0
  314. package/dist/oauth-dpop.js +19 -0
  315. package/dist/oauth-dpop.js.map +1 -0
  316. package/dist/oauth-errors.d.ts +20 -0
  317. package/dist/oauth-errors.d.ts.map +1 -0
  318. package/dist/oauth-errors.js +43 -0
  319. package/dist/oauth-errors.js.map +1 -0
  320. package/dist/oauth-hooks.d.ts +42 -0
  321. package/dist/oauth-hooks.d.ts.map +1 -0
  322. package/dist/oauth-hooks.js +3 -0
  323. package/dist/oauth-hooks.js.map +1 -0
  324. package/dist/oauth-provider.d.ts +179 -0
  325. package/dist/oauth-provider.d.ts.map +1 -0
  326. package/dist/oauth-provider.js +748 -0
  327. package/dist/oauth-provider.js.map +1 -0
  328. package/dist/oauth-store.d.ts +11 -0
  329. package/dist/oauth-store.d.ts.map +1 -0
  330. package/dist/oauth-store.js +27 -0
  331. package/dist/oauth-store.js.map +1 -0
  332. package/dist/oauth-verifier.d.ts +66 -0
  333. package/dist/oauth-verifier.d.ts.map +1 -0
  334. package/dist/oauth-verifier.js +94 -0
  335. package/dist/oauth-verifier.js.map +1 -0
  336. package/dist/oidc/claims.d.ts +16 -0
  337. package/dist/oidc/claims.d.ts.map +1 -0
  338. package/dist/oidc/claims.js +29 -0
  339. package/dist/oidc/claims.js.map +1 -0
  340. package/dist/oidc/sub.d.ts +4 -0
  341. package/dist/oidc/sub.d.ts.map +1 -0
  342. package/dist/oidc/sub.js +6 -0
  343. package/dist/oidc/sub.js.map +1 -0
  344. package/dist/oidc/userinfo.d.ts +7 -0
  345. package/dist/oidc/userinfo.d.ts.map +1 -0
  346. package/dist/oidc/userinfo.js +3 -0
  347. package/dist/oidc/userinfo.js.map +1 -0
  348. package/dist/output/build-error-payload.d.ts +6 -0
  349. package/dist/output/build-error-payload.d.ts.map +1 -0
  350. package/dist/output/build-error-payload.js +108 -0
  351. package/dist/output/build-error-payload.js.map +1 -0
  352. package/dist/output/customization.d.ts +37 -0
  353. package/dist/output/customization.d.ts.map +1 -0
  354. package/dist/output/customization.js +62 -0
  355. package/dist/output/customization.js.map +1 -0
  356. package/dist/output/send-authorize-page.d.ts +43 -0
  357. package/dist/output/send-authorize-page.d.ts.map +1 -0
  358. package/dist/output/send-authorize-page.js +49 -0
  359. package/dist/output/send-authorize-page.js.map +1 -0
  360. package/dist/output/send-authorize-redirect.d.ts +25 -0
  361. package/dist/output/send-authorize-redirect.d.ts.map +1 -0
  362. package/dist/output/send-authorize-redirect.js +72 -0
  363. package/dist/output/send-authorize-redirect.js.map +1 -0
  364. package/dist/output/send-error-page.d.ts +5 -0
  365. package/dist/output/send-error-page.d.ts.map +1 -0
  366. package/dist/output/send-error-page.js +31 -0
  367. package/dist/output/send-error-page.js.map +1 -0
  368. package/dist/output/send-web-page.d.ts +8 -0
  369. package/dist/output/send-web-page.d.ts.map +1 -0
  370. package/dist/output/send-web-page.js +48 -0
  371. package/dist/output/send-web-page.js.map +1 -0
  372. package/dist/parameters/claims-requested.d.ts +3 -0
  373. package/dist/parameters/claims-requested.d.ts.map +1 -0
  374. package/dist/parameters/claims-requested.js +77 -0
  375. package/dist/parameters/claims-requested.js.map +1 -0
  376. package/dist/parameters/oidc-payload.d.ts +31 -0
  377. package/dist/parameters/oidc-payload.d.ts.map +1 -0
  378. package/dist/parameters/oidc-payload.js +25 -0
  379. package/dist/parameters/oidc-payload.js.map +1 -0
  380. package/dist/replay/replay-manager.d.ts +10 -0
  381. package/dist/replay/replay-manager.d.ts.map +1 -0
  382. package/dist/replay/replay-manager.js +23 -0
  383. package/dist/replay/replay-manager.js.map +1 -0
  384. package/dist/replay/replay-store-memory.d.ts +11 -0
  385. package/dist/replay/replay-store-memory.d.ts.map +1 -0
  386. package/dist/replay/replay-store-memory.js +30 -0
  387. package/dist/replay/replay-store-memory.js.map +1 -0
  388. package/dist/replay/replay-store-redis.d.ts +16 -0
  389. package/dist/replay/replay-store-redis.d.ts.map +1 -0
  390. package/dist/replay/replay-store-redis.js +20 -0
  391. package/dist/replay/replay-store-redis.js.map +1 -0
  392. package/dist/replay/replay-store.d.ts +16 -0
  393. package/dist/replay/replay-store.d.ts.map +1 -0
  394. package/dist/replay/replay-store.js +22 -0
  395. package/dist/replay/replay-store.js.map +1 -0
  396. package/dist/request/code.d.ts +7 -0
  397. package/dist/request/code.d.ts.map +1 -0
  398. package/dist/request/code.js +20 -0
  399. package/dist/request/code.js.map +1 -0
  400. package/dist/request/request-data.d.ts +21 -0
  401. package/dist/request/request-data.d.ts.map +1 -0
  402. package/dist/request/request-data.js +6 -0
  403. package/dist/request/request-data.js.map +1 -0
  404. package/dist/request/request-id.d.ts +6 -0
  405. package/dist/request/request-id.d.ts.map +1 -0
  406. package/dist/request/request-id.js +18 -0
  407. package/dist/request/request-id.js.map +1 -0
  408. package/dist/request/request-info.d.ts +12 -0
  409. package/dist/request/request-info.d.ts.map +1 -0
  410. package/dist/request/request-info.js +3 -0
  411. package/dist/request/request-info.js.map +1 -0
  412. package/dist/request/request-manager.d.ts +40 -0
  413. package/dist/request/request-manager.d.ts.map +1 -0
  414. package/dist/request/request-manager.js +310 -0
  415. package/dist/request/request-manager.js.map +1 -0
  416. package/dist/request/request-store-memory.d.ts +16 -0
  417. package/dist/request/request-store-memory.d.ts.map +1 -0
  418. package/dist/request/request-store-memory.js +31 -0
  419. package/dist/request/request-store-memory.js.map +1 -0
  420. package/dist/request/request-store-redis.d.ts +24 -0
  421. package/dist/request/request-store-redis.d.ts.map +1 -0
  422. package/dist/request/request-store-redis.js +58 -0
  423. package/dist/request/request-store-redis.js.map +1 -0
  424. package/dist/request/request-store.d.ts +27 -0
  425. package/dist/request/request-store.d.ts.map +1 -0
  426. package/dist/request/request-store.js +37 -0
  427. package/dist/request/request-store.js.map +1 -0
  428. package/dist/request/request-uri.d.ts +8 -0
  429. package/dist/request/request-uri.d.ts.map +1 -0
  430. package/dist/request/request-uri.js +24 -0
  431. package/dist/request/request-uri.js.map +1 -0
  432. package/dist/request/types.d.ts +328 -0
  433. package/dist/request/types.d.ts.map +1 -0
  434. package/dist/request/types.js +27 -0
  435. package/dist/request/types.js.map +1 -0
  436. package/dist/signer/signed-token-payload.d.ts +1694 -0
  437. package/dist/signer/signed-token-payload.d.ts.map +1 -0
  438. package/dist/signer/signed-token-payload.js +32 -0
  439. package/dist/signer/signed-token-payload.js.map +1 -0
  440. package/dist/signer/signer.d.ts +193 -0
  441. package/dist/signer/signer.d.ts.map +1 -0
  442. package/dist/signer/signer.js +101 -0
  443. package/dist/signer/signer.js.map +1 -0
  444. package/dist/token/refresh-token.d.ts +7 -0
  445. package/dist/token/refresh-token.d.ts.map +1 -0
  446. package/dist/token/refresh-token.js +20 -0
  447. package/dist/token/refresh-token.js.map +1 -0
  448. package/dist/token/token-claims.d.ts +1687 -0
  449. package/dist/token/token-claims.d.ts.map +1 -0
  450. package/dist/token/token-claims.js +30 -0
  451. package/dist/token/token-claims.js.map +1 -0
  452. package/dist/token/token-data.d.ts +20 -0
  453. package/dist/token/token-data.d.ts.map +1 -0
  454. package/dist/token/token-data.js +3 -0
  455. package/dist/token/token-data.js.map +1 -0
  456. package/dist/token/token-id.d.ts +7 -0
  457. package/dist/token/token-id.d.ts.map +1 -0
  458. package/dist/token/token-id.js +20 -0
  459. package/dist/token/token-id.js.map +1 -0
  460. package/dist/token/token-manager.d.ts +48 -0
  461. package/dist/token/token-manager.d.ts.map +1 -0
  462. package/dist/token/token-manager.js +421 -0
  463. package/dist/token/token-manager.js.map +1 -0
  464. package/dist/token/token-store.d.ts +35 -0
  465. package/dist/token/token-store.d.ts.map +1 -0
  466. package/dist/token/token-store.js +38 -0
  467. package/dist/token/token-store.js.map +1 -0
  468. package/dist/token/types.d.ts +250 -0
  469. package/dist/token/types.d.ts.map +1 -0
  470. package/dist/token/types.js +36 -0
  471. package/dist/token/types.js.map +1 -0
  472. package/dist/token/verify-token-claims.d.ts +17 -0
  473. package/dist/token/verify-token-claims.d.ts.map +1 -0
  474. package/dist/token/verify-token-claims.js +39 -0
  475. package/dist/token/verify-token-claims.js.map +1 -0
  476. package/package.json +83 -0
  477. package/rollup.config.js +55 -0
  478. package/src/access-token/access-token-type.ts +5 -0
  479. package/src/account/account-manager.ts +55 -0
  480. package/src/account/account-store.ts +74 -0
  481. package/src/account/account.ts +10 -0
  482. package/src/assets/app/app.tsx +28 -0
  483. package/src/assets/app/backend-data.ts +65 -0
  484. package/src/assets/app/components/accept-form.tsx +112 -0
  485. package/src/assets/app/components/account-identifier.tsx +18 -0
  486. package/src/assets/app/components/account-picker.tsx +108 -0
  487. package/src/assets/app/components/client-identifier.tsx +32 -0
  488. package/src/assets/app/components/client-name.tsx +30 -0
  489. package/src/assets/app/components/error-card.tsx +41 -0
  490. package/src/assets/app/components/help-card.tsx +42 -0
  491. package/src/assets/app/components/layout-title-page.tsx +43 -0
  492. package/src/assets/app/components/layout-welcome.tsx +58 -0
  493. package/src/assets/app/components/sign-in-form.tsx +290 -0
  494. package/src/assets/app/components/sign-up-account-form.tsx +210 -0
  495. package/src/assets/app/components/sign-up-disclaimer.tsx +44 -0
  496. package/src/assets/app/components/url-viewer.tsx +70 -0
  497. package/src/assets/app/cookies.ts +11 -0
  498. package/src/assets/app/hooks/use-api.ts +104 -0
  499. package/src/assets/app/hooks/use-bound-dispatch.ts +5 -0
  500. package/src/assets/app/hooks/use-csrf-token.ts +5 -0
  501. package/src/assets/app/lib/api.ts +64 -0
  502. package/src/assets/app/lib/clsx.ts +4 -0
  503. package/src/assets/app/lib/util.ts +10 -0
  504. package/src/assets/app/main.css +11 -0
  505. package/src/assets/app/main.tsx +28 -0
  506. package/src/assets/app/views/accept-view.tsx +51 -0
  507. package/src/assets/app/views/authorize-view.tsx +101 -0
  508. package/src/assets/app/views/error-view.tsx +27 -0
  509. package/src/assets/app/views/sign-in-view.tsx +121 -0
  510. package/src/assets/app/views/sign-up-view.tsx +93 -0
  511. package/src/assets/app/views/welcome-view.tsx +61 -0
  512. package/src/assets/asset.ts +8 -0
  513. package/src/assets/assets-middleware.ts +32 -0
  514. package/src/assets/index.ts +74 -0
  515. package/src/client/client-auth.ts +45 -0
  516. package/src/client/client-data.ts +9 -0
  517. package/src/client/client-id.ts +4 -0
  518. package/src/client/client-info.ts +13 -0
  519. package/src/client/client-manager.ts +818 -0
  520. package/src/client/client-store.ts +38 -0
  521. package/src/client/client-utils.ts +43 -0
  522. package/src/client/client.ts +231 -0
  523. package/src/constants.ts +69 -0
  524. package/src/device/device-data.ts +11 -0
  525. package/src/device/device-details.ts +43 -0
  526. package/src/device/device-id.ts +23 -0
  527. package/src/device/device-manager.ts +287 -0
  528. package/src/device/device-store.ts +35 -0
  529. package/src/device/session-id.ts +22 -0
  530. package/src/dpop/dpop-manager.ts +147 -0
  531. package/src/dpop/dpop-nonce.ts +104 -0
  532. package/src/errors/access-denied-error.ts +26 -0
  533. package/src/errors/account-selection-required-error.ts +12 -0
  534. package/src/errors/consent-required-error.ts +12 -0
  535. package/src/errors/invalid-authorization-details-error.ts +22 -0
  536. package/src/errors/invalid-client-error.ts +20 -0
  537. package/src/errors/invalid-client-id-error.ts +20 -0
  538. package/src/errors/invalid-client-metadata-error.ts +19 -0
  539. package/src/errors/invalid-dpop-key-binding-error.ts +21 -0
  540. package/src/errors/invalid-dpop-proof-error.ts +13 -0
  541. package/src/errors/invalid-grant-error.ts +16 -0
  542. package/src/errors/invalid-parameters-error.ts +12 -0
  543. package/src/errors/invalid-redirect-uri-error.ts +17 -0
  544. package/src/errors/invalid-request-error.ts +30 -0
  545. package/src/errors/invalid-token-error.ts +59 -0
  546. package/src/errors/login-required-error.ts +12 -0
  547. package/src/errors/oauth-error.ts +28 -0
  548. package/src/errors/unauthorized-client-error.ts +20 -0
  549. package/src/errors/use-dpop-nonce-error.ts +32 -0
  550. package/src/errors/www-authenticate-error.ts +65 -0
  551. package/src/index.ts +15 -0
  552. package/src/lib/html/README.md +9 -0
  553. package/src/lib/html/build-document.ts +98 -0
  554. package/src/lib/html/escapers.ts +66 -0
  555. package/src/lib/html/html.ts +61 -0
  556. package/src/lib/html/index.ts +5 -0
  557. package/src/lib/html/tags.ts +58 -0
  558. package/src/lib/html/util.ts +21 -0
  559. package/src/lib/http/README.md +11 -0
  560. package/src/lib/http/accept.ts +91 -0
  561. package/src/lib/http/context.ts +11 -0
  562. package/src/lib/http/index.ts +9 -0
  563. package/src/lib/http/method.ts +18 -0
  564. package/src/lib/http/middleware.ts +183 -0
  565. package/src/lib/http/parser.ts +64 -0
  566. package/src/lib/http/path.ts +82 -0
  567. package/src/lib/http/request.ts +141 -0
  568. package/src/lib/http/response.ts +133 -0
  569. package/src/lib/http/route.ts +56 -0
  570. package/src/lib/http/router.ts +118 -0
  571. package/src/lib/http/stream.ts +78 -0
  572. package/src/lib/http/types.ts +22 -0
  573. package/src/lib/http/url.ts +23 -0
  574. package/src/lib/redis.ts +23 -0
  575. package/src/lib/util/authorization-header.ts +26 -0
  576. package/src/lib/util/cast.ts +4 -0
  577. package/src/lib/util/crypto.ts +27 -0
  578. package/src/lib/util/date.ts +7 -0
  579. package/src/lib/util/hostname.ts +19 -0
  580. package/src/lib/util/redirect-uri.ts +46 -0
  581. package/src/lib/util/time.ts +33 -0
  582. package/src/lib/util/type.ts +4 -0
  583. package/src/lib/util/well-known.ts +8 -0
  584. package/src/metadata/build-metadata.ts +165 -0
  585. package/src/oauth-client.ts +3 -0
  586. package/src/oauth-dpop.ts +2 -0
  587. package/src/oauth-errors.ts +21 -0
  588. package/src/oauth-hooks.ts +66 -0
  589. package/src/oauth-provider.ts +1409 -0
  590. package/src/oauth-store.ts +11 -0
  591. package/src/oauth-verifier.ts +219 -0
  592. package/src/oidc/claims.ts +35 -0
  593. package/src/oidc/sub.ts +4 -0
  594. package/src/oidc/userinfo.ts +11 -0
  595. package/src/output/build-error-payload.ts +143 -0
  596. package/src/output/customization.ts +96 -0
  597. package/src/output/send-authorize-page.ts +111 -0
  598. package/src/output/send-authorize-redirect.ts +130 -0
  599. package/src/output/send-error-page.ts +41 -0
  600. package/src/output/send-web-page.ts +66 -0
  601. package/src/parameters/claims-requested.ts +106 -0
  602. package/src/parameters/oidc-payload.ts +28 -0
  603. package/src/replay/replay-manager.ts +38 -0
  604. package/src/replay/replay-store-memory.ts +36 -0
  605. package/src/replay/replay-store-redis.ts +31 -0
  606. package/src/replay/replay-store.ts +44 -0
  607. package/src/request/code.ts +24 -0
  608. package/src/request/request-data.ts +26 -0
  609. package/src/request/request-id.ts +23 -0
  610. package/src/request/request-info.ts +12 -0
  611. package/src/request/request-manager.ts +479 -0
  612. package/src/request/request-store-memory.ts +39 -0
  613. package/src/request/request-store-redis.ts +71 -0
  614. package/src/request/request-store.ts +54 -0
  615. package/src/request/request-uri.ts +29 -0
  616. package/src/request/types.ts +48 -0
  617. package/src/signer/signed-token-payload.ts +35 -0
  618. package/src/signer/signer.ts +165 -0
  619. package/src/token/refresh-token.ts +31 -0
  620. package/src/token/token-claims.ts +31 -0
  621. package/src/token/token-data.ts +33 -0
  622. package/src/token/token-id.ts +26 -0
  623. package/src/token/token-manager.ts +591 -0
  624. package/src/token/token-store.ts +78 -0
  625. package/src/token/types.ts +86 -0
  626. package/src/token/verify-token-claims.ts +65 -0
  627. package/tailwind.config.js +13 -0
  628. package/tsconfig.backend.json +9 -0
  629. package/tsconfig.frontend.json +11 -0
  630. package/tsconfig.json +8 -0
  631. package/tsconfig.tools.json +8 -0
@@ -0,0 +1,20 @@
1
+ !function(){"use strict";var e,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={exports:{}},r={},a={exports:{}},l={};a.exports=function(){if(e)return l;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,h(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,n,r){var a,l={},o=null,i=null;if(null!=n)for(a in void 0!==n.ref&&(i=n.ref),void 0!==n.key&&(o=""+n.key),n)k.call(n,a)&&!E.hasOwnProperty(a)&&(l[a]=n[a]);var u=arguments.length-2;if(1===u)l.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(a in u=e.defaultProps)void 0===l[a]&&(l[a]=u[a]);return{$$typeof:t,type:e,key:o,ref:i,props:l,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var N=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,r,a,l,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case t:case n:u=!0}}if(u)return o=o(u=e),e=""===l?"."+P(u,0):l,x(o)?(a="",null!=e&&(a=e.replace(N,"$&/")+"/"),T(o,r,a,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+e)),r.push(o)),1;if(u=0,l=""===l?".":l+":",x(e))for(var s=0;s<e.length;s++){var c=l+P(i=e[s],s);u+=T(i,r,a,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(i=e.next()).done;)u+=T(i=i.value,r,a,c=l+P(i,s++),o);else if("object"===i)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function j(e,t,n){if(null==e)return e;var r=[],a=0;return T(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},R={transition:null},O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};function M(){throw Error("act(...) is not supported in production builds of React.")}return l.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},l.Component=y,l.Fragment=r,l.Profiler=o,l.PureComponent=b,l.StrictMode=a,l.Suspense=c,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,l.act=M,l.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),l=e.key,o=e.ref,i=e._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,i=S.current),void 0!==n.key&&(l=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in n)k.call(n,s)&&!E.hasOwnProperty(s)&&(a[s]=void 0===n[s]&&void 0!==u?u[s]:n[s])}var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:t,type:e.type,key:l,ref:o,props:a,_owner:i}},l.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},l.createElement=C,l.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},l.createRef=function(){return{current:null}},l.forwardRef=function(e){return{$$typeof:s,render:e}},l.isValidElement=_,l.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:z}},l.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},l.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},l.unstable_act=M,l.useCallback=function(e,t){return L.current.useCallback(e,t)},l.useContext=function(e){return L.current.useContext(e)},l.useDebugValue=function(){},l.useDeferredValue=function(e){return L.current.useDeferredValue(e)},l.useEffect=function(e,t){return L.current.useEffect(e,t)},l.useId=function(){return L.current.useId()},l.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},l.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},l.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},l.useMemo=function(e,t){return L.current.useMemo(e,t)},l.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},l.useRef=function(e){return L.current.useRef(e)},l.useState=function(e){return L.current.useState(e)},l.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},l.useTransition=function(){return L.current.useTransition()},l.version="18.3.1",l}();var o,i=a.exports;
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */n.exports=function(){if(o)return r;o=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var o,i={},s=null,c=null;for(o in void 0!==r&&(s=""+r),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)a.call(n,o)&&!u.hasOwnProperty(o)&&(i[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===i[o]&&(i[o]=n[o]);return{$$typeof:t,type:e,key:s,ref:c,props:i,_owner:l.current}}return r.Fragment=n,r.jsx=s,r.jsxs=s,r}();var u=n.exports;const s=e=>{const t=window[e];return delete window[e],t},c=s("__customizationData"),f=s("__errorData"),d=s("__authorizeData");var p,m,h,g=Object.freeze({__proto__:null,authorizeData:d,customizationData:c,errorData:f}),y={exports:{}},v={},b={exports:{}},w={};function x(){return m||(m=1,b.exports=(p||(p=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,l=e[r];if(!(0<a(l,t)))break e;e[r]=t,e[n]=l,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var i=2*(r+1)-1,u=e[i],s=i+1,c=e[s];if(0>a(u,n))s<l&&0>a(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else{if(!(s<l&&0>a(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var u=[],s=[],c=1,f=null,d=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(s);null!==a;){if(null===a.callback)r(s);else{if(!(a.startTime<=e))break;r(s),a.sortIndex=a.expirationTime,t(u,a)}a=n(s)}}function w(e){if(h=!1,b(e),!m)if(null!==n(u))m=!0,L(x);else{var t=n(s);null!==t&&R(w,t.startTime-e)}}function x(t,a){m=!1,h&&(h=!1,y(C),C=-1),p=!0;var l=d;try{for(b(a),f=n(u);null!==f&&(!(f.expirationTime>a)||t&&!P());){var o=f.callback;if("function"==typeof o){f.callback=null,d=f.priorityLevel;var i=o(f.expirationTime<=a);a=e.unstable_now(),"function"==typeof i?f.callback=i:f===n(u)&&r(u),b(a)}else r(u);f=n(u)}if(null!==f)var c=!0;else{var g=n(s);null!==g&&R(w,g.startTime-a),c=!1}return c}finally{f=null,d=l,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,_=5,N=-1;function P(){return!(e.unstable_now()-N<_)}function T(){if(null!==E){var t=e.unstable_now();N=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof v)k=function(){v(T)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,z=j.port2;j.port1.onmessage=T,k=function(){z.postMessage(null)}}else k=function(){g(T,0)};function L(e){E=e,S||(S=!0,k())}function R(t,n){C=g((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_continueExecution=function(){m||p||(m=!0,L(x))},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"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,a,l){var o=e.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?o+l:o,r){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>o?(r.sortIndex=l,t(s,r),null===n(u)&&r===n(s)&&(h?(y(C),C=-1):h=!0,R(w,l-o))):(r.sortIndex=i,t(u,r),m||p||(m=!0,L(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(w)),w)),b.exports}
11
+ /**
12
+ * @license React
13
+ * react-dom.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),y.exports=function(){if(h)return v;h=1;var e=i,t=x();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[: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]*$/,f={},d={};function p(e,t,n,r,a,l,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=m.hasOwnProperty(t)?m[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!s.call(d,e)||!s.call(f,e)&&(c.test(e)?d[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var D,I=Object.assign;function U(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var A=!1;function B(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),l=r.stack.split("\n"),o=a.length-1,i=l.length-1;1<=o&&0<=i&&a[o]!==l[i];)i--;for(;1<=o&&0<=i;o--,i--)if(a[o]!==l[i]){if(1!==o||1!==i)do{if(o--,0>--i||a[o]!==l[i]){var u="\n"+a[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=i);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case _:return"Profiler";case C:return"StrictMode";case j:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){G(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function oe(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,fe,de=(fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(me).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,Ce=null;function _e(e){if(e=ya(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=ba(t),Se(e.stateNode,e.type,t))}}function Ne(e){Ee?Ce?Ce.push(e):Ce=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Ce;if(Ce=Ee=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Te(e,t){return e(t)}function je(){}var ze=!1;function Le(e,t,n){if(ze)return e(t,n);ze=!0;try{return Te(e,t,n)}finally{ze=!1,(null!==Ee||null!==Ce)&&(je(),Pe())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var a=ba(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(fe){Oe=!1}function Fe(e,t,n,r,a,l,o,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var De=!1,Ie=null,Ue=!1,Ae=null,Be={onError:function(e){De=!0,Ie=e}};function $e(e,t,n,r,a,l,o,i,u){De=!1,Ie=null,Fe.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(He(e)!==e)throw Error(n(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var l=r.return;if(null===l)break;var o=l.alternate;if(null===o){if(null!==(a=l.return)){r=a;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===r)return qe(l),e;if(o===a)return qe(l),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=l,a=o;else{for(var i=!1,u=l.child;u;){if(u===r){i=!0,r=l,a=o;break}if(u===a){i=!0,a=l,r=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===r){i=!0,r=o,a=l;break}if(u===a){i=!0,a=o,r=l;break}u=u.sibling}if(!i)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,Je=t.unstable_shouldYield,Xe=t.unstable_requestPaint,Ge=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,lt=null,ot=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,ct=64,ft=4194304;function dt(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,o=268435455&n;if(0!==o){var i=o&~a;0!==i?r=dt(i):0!=(l&=o)&&(r=dt(l))}else 0!=(o=n&~a)?r=dt(o):0!==l&&(r=dt(l));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(l=t&-t)||16===a&&4194240&l))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function mt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,Et,Ct,_t,Nt=!1,Pt=[],Tt=null,jt=null,zt=null,Lt=new Map,Rt=new Map,Ot=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Dt(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},null!==t&&null!==(t=ya(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function It(e){var t=ga(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void _t(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function At(e,t,n){Ut(e)&&n.delete(t)}function Bt(){Nt=!1,null!==Tt&&Ut(Tt)&&(Tt=null),null!==jt&&Ut(jt)&&(jt=null),null!==zt&&Ut(zt)&&(zt=null),Lt.forEach(At),Rt.forEach(At)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Nt||(Nt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Pt.length){$t(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&$t(Tt,e),null!==jt&&$t(jt,e),null!==zt&&$t(zt,e),Lt.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)It(n),null===n.blockedOn&&Ot.shift()}var Vt=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var a=wt,l=Vt.transition;Vt.transition=null;try{wt=1,Kt(e,t,n,r)}finally{wt=a,Vt.transition=l}}function Qt(e,t,n,r){var a=wt,l=Vt.transition;Vt.transition=null;try{wt=4,Kt(e,t,n,r)}finally{wt=a,Vt.transition=l}}function Kt(e,t,n,r){if(qt){var a=Jt(e,t,n,r);if(null===a)$r(e,t,r,Yt,n),Ft(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,a),!0;case"dragenter":return jt=Dt(jt,e,t,n,r,a),!0;case"mouseover":return zt=Dt(zt,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Lt.set(l,Dt(Lt.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Rt.set(l,Dt(Rt.get(l)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==a;){var l=ya(a);if(null!==l&&kt(l),null===(l=Jt(e,t,n,r))&&$r(e,t,r,Yt,n),l===a)break;a=l}null!==a&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Yt=null;function Jt(e,t,n,r){if(Yt=null,null!==(e=ga(e=ke(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){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"resize":case"seeked":case"submit":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"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Gt=null,Zt=null,en=null;function tn(){if(en)return en;var e,t,n=Zt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[l-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function ln(e){function t(t,n,r,a,l){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var on,un,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(cn),dn=I({},cn,{view:0,detail:0}),pn=ln(dn),mn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=ln(mn),gn=ln(I({},mn,{dataTransfer:0})),yn=ln(I({},dn,{relatedTarget:0})),vn=ln(I({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=ln(I({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(I({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var _n=ln(I({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=ln(I({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=ln(I({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=ln(I({},mn,{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})),zn=[9,13,27,32],Ln=u&&"CompositionEvent"in window,Rn=null;u&&"documentMode"in document&&(Rn=document.documentMode);var On=u&&"TextEvent"in window&&!Rn,Mn=u&&(!Ln||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Dn=!1;function In(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1,Bn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ne(r),0<(t=Vr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Wn(e){Fr(e,0)}function Qn(e){if(K(va(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),Xn="function"==typeof Gn.oninput}Jn=Xn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function Zn(){Vn&&(Vn.detachEvent("onpropertychange",er),qn=Vn=null)}function er(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Hn(t,qn,e,ke(e)),Le(Wn,t)}}function tr(e,t,n){"focusin"===e?(Zn(),qn=n,(Vn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Zn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function rr(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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 a=n[r];if(!s.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,l=Math.min(r.start,a);r=void 0===r.end?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=ur(n,l);var o=ur(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,hr=null,gr=null,yr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&or(gr,r)||(gr=r,0<(r=Vr(hr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},kr={};function Sr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Sr("animationend"),Cr=Sr("animationiteration"),_r=Sr("animationstart"),Nr=Sr("transitionend"),Pr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");function jr(e,t){Pr.set(e,t),l(t,[e])}for(var zr=0;zr<Tr.length;zr++){var Lr=Tr[zr];jr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}jr(Er,"onAnimationEnd"),jr(Cr,"onAnimationIteration"),jr(_r,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Nr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="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(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Mr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,l,o,i,u,s){if($e.apply(this,arguments),De){if(!De)throw Error(n(198));var c=Ie;De=!1,Ie=null,Ue||(Ue=!0,Ae=c)}}(a,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==l&&a.isPropagationStopped())break e;Mr(a,i,s),l=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==l&&a.isPropagationStopped())break e;Mr(a,i,s),l=u}}}if(Ue)throw e=Ae,Ue=!1,Ae=null,e}function Dr(e,t){var n=t[pa];void 0===n&&(n=t[pa]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Ir(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[Ur]){e[Ur]=!0,r.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Ir(t,!1,e),Ir(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Ir("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Xt(t)){case 1:var a=Wt;break;case 4:a=Qt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,a){var l=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;o=o.return}for(;null!==i;){if(null===(o=ga(i)))return;if(5===(u=o.tag)||6===u){r=l=o;continue e}i=i.parentNode}}r=r.return}Le((function(){var r=l,a=ke(n),o=[];e:{var i=Pr.get(e);if(void 0!==i){var u=fn,s=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":u=_n;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Er:case Cr:case _r:u=vn;break;case Nr:u=Tn;break;case"scroll":u=pn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Nn}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Re(m,d))&&c.push(Hr(m,h,p))),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,a),o.push({event:i,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!ga(s)&&!s[da])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?ga(s):null)&&(s!==(f=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?i:va(u),p=null==s?i:va(s),(i=new c(h,m+"leave",u,n,a)).target=f,i.relatedTarget=p,h=null,ga(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=qr(p))m++;for(p=0,h=d;h;h=qr(h))p++;for(;0<m-p;)c=qr(c),m--;for(;0<p-m;)d=qr(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==u&&Wr(o,i,u,c,!1),null!==s&&null!==f&&Wr(o,f,s,c,!0)}if("select"===(u=(i=r?va(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var g=Kn;else if($n(i))if(Yn)g=ar;else{g=nr;var y=tr}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=rr);switch(g&&(g=g(e,r))?Hn(o,g,n,a):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&te(i,"number",i.value)),y=r?va(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(mr=y,hr=r,gr=null);break;case"focusout":gr=hr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,vr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":vr(o,n,a)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?In(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(v=tn()):(Zt="value"in(Gt=a)?Gt.value:Gt.textContent,An=!0)),0<(y=Vr(r,b)).length&&(b=new wn(b,e,null,n,a),o.push({event:b,listeners:y}),(v||null!==(v=Un(n)))&&(b.data=v))),(v=On?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(An)return"compositionend"===e||!Ln&&In(e,t)?(e=tn(),en=Zt=Gt=null,An=!1,e):null;switch(e){case"paste":default: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 Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=v)}Fr(o,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Re(e,n))&&r.unshift(Hr(e,l,a)),null!=(l=Re(e,t))&&r.push(Hr(e,l,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var l=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,a?null!=(u=Re(n,l))&&o.unshift(Hr(n,u,i)):a||null!=(u=Re(n,l))&&o.push(Hr(n,u,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Gr=null,Zr=null;function ea(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0,ra="function"==typeof Promise?Promise:void 0,aa="function"==typeof queueMicrotask?queueMicrotask:void 0!==ra?function(e){return ra.resolve(null).then(e).catch(la)}:ta;function la(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function ia(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var sa=Math.random().toString(36).slice(2),ca="__reactFiber$"+sa,fa="__reactProps$"+sa,da="__reactContainer$"+sa,pa="__reactEvents$"+sa,ma="__reactListeners$"+sa,ha="__reactHandles$"+sa;function ga(e){var t=e[ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[da]||n[ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[ca])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[ca]||e[da])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function va(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ba(e){return e[fa]||null}var wa=[],xa=-1;function ka(e){return{current:e}}function Sa(e){0>xa||(e.current=wa[xa],wa[xa]=null,xa--)}function Ea(e,t){xa++,wa[xa]=e.current,e.current=t}var Ca={},_a=ka(Ca),Na=ka(!1),Pa=Ca;function Ta(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ja(e){return null!=e.childContextTypes}function za(){Sa(Na),Sa(_a)}function La(e,t,r){if(_a.current!==Ca)throw Error(n(168));Ea(_a,t),Ea(Na,r)}function Ra(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var l in a=a.getChildContext())if(!(l in t))throw Error(n(108,V(e)||"Unknown",l));return I({},r,a)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Pa=_a.current,Ea(_a,e),Ea(Na,Na.current),!0}function Ma(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Ra(e,t,Pa),a.__reactInternalMemoizedMergedChildContext=e,Sa(Na),Sa(_a),Ea(_a,e)):Sa(Na),Ea(Na,r)}var Fa=null,Da=!1,Ia=!1;function Ua(e){null===Fa?Fa=[e]:Fa.push(e)}function Aa(){if(!Ia&&null!==Fa){Ia=!0;var e=0,t=wt;try{var n=Fa;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fa=null,Da=!1}catch(t){throw null!==Fa&&(Fa=Fa.slice(e+1)),Ke(et,Aa),t}finally{wt=t,Ia=!1}}return null}var Ba=[],$a=0,Ha=null,Va=0,qa=[],Wa=0,Qa=null,Ka=1,Ya="";function Ja(e,t){Ba[$a++]=Va,Ba[$a++]=Ha,Ha=e,Va=t}function Xa(e,t,n){qa[Wa++]=Ka,qa[Wa++]=Ya,qa[Wa++]=Qa,Qa=e;var r=Ka;e=Ya;var a=32-it(r)-1;r&=~(1<<a),n+=1;var l=32-it(t)+a;if(30<l){var o=a-a%5;l=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ka=1<<32-it(t)+a|n<<a|r,Ya=l+e}else Ka=1<<l|n<<a|r,Ya=e}function Ga(e){null!==e.return&&(Ja(e,1),Xa(e,1,0))}function Za(e){for(;e===Ha;)Ha=Ba[--$a],Ba[$a]=null,Va=Ba[--$a],Ba[$a]=null;for(;e===Qa;)Qa=qa[--Wa],qa[Wa]=null,Ya=qa[--Wa],qa[Wa]=null,Ka=qa[--Wa],qa[Wa]=null}var el=null,tl=null,nl=!1,rl=null;function al(e,t){var n=Ts(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ll(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,el=e,tl=ia(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,el=e,tl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qa?{id:Ka,overflow:Ya}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ts(18,null,null,0)).stateNode=t,n.return=e,e.child=n,el=e,tl=null,!0);default:return!1}}function ol(e){return!(!(1&e.mode)||128&e.flags)}function il(e){if(nl){var t=tl;if(t){var r=t;if(!ll(e,t)){if(ol(e))throw Error(n(418));t=ia(r.nextSibling);var a=el;t&&ll(e,t)?al(a,r):(e.flags=-4097&e.flags|2,nl=!1,el=e)}}else{if(ol(e))throw Error(n(418));e.flags=-4097&e.flags|2,nl=!1,el=e}}}function ul(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;el=e}function sl(e){if(e!==el)return!1;if(!nl)return ul(e),nl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ea(e.type,e.memoizedProps)),t&&(t=tl)){if(ol(e))throw cl(),Error(n(418));for(;t;)al(e,t),t=ia(t.nextSibling)}if(ul(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){tl=ia(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}tl=null}}else tl=el?ia(e.stateNode.nextSibling):null;return!0}function cl(){for(var e=tl;e;)e=ia(e.nextSibling)}function fl(){tl=el=null,nl=!1}function dl(e){null===rl?rl=[e]:rl.push(e)}var pl=w.ReactCurrentBatchConfig;function ml(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var l=a,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=l.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gl(e){return(0,e._init)(e._payload)}function yl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=zs(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&gl(a)===t.type)?((r=l(t,n.props)).ref=ml(e,t,n),r.return=e,r):((r=Ls(n.type,n.key,n.props,null,e.mode,r)).ref=ml(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fs(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Rs(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Ls(t.type,t.key,t.props,null,e.mode,n)).ref=ml(e,null,t),n.return=e,n;case S:return(t=Fs(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(ne(t)||F(t))return(t=Rs(t,e.mode,n,null)).return=e,t;hl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?s(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null;case R:return p(e,t,(a=n._init)(n._payload),r)}if(ne(n)||F(n))return null!==a?null:f(e,t,n,r,null);hl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case R:return m(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||F(r))return f(t,e=e.get(n)||null,r,a,null);hl(t,r)}return null}function h(n,l,i,u){for(var s=null,c=null,f=l,h=l=0,g=null;null!==f&&h<i.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var y=p(n,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(n,f),l=o(y,l,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return r(n,f),nl&&Ja(n,h),s;if(null===f){for(;h<i.length;h++)null!==(f=d(n,i[h],u))&&(l=o(f,l,h),null===c?s=f:c.sibling=f,c=f);return nl&&Ja(n,h),s}for(f=a(n,f);h<i.length;h++)null!==(g=m(f,n,h,i[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),l=o(g,l,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(n,e)})),nl&&Ja(n,h),s}function g(l,i,u,s){var c=F(u);if("function"!=typeof c)throw Error(n(150));if(null==(u=c.call(u)))throw Error(n(151));for(var f=c=null,h=i,g=i=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),i=o(b,i,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return r(l,h),nl&&Ja(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(i=o(v,i,g),null===f?c=v:f.sibling=v,f=v);return nl&&Ja(l,g),c}for(h=a(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=o(v,i,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach((function(e){return t(l,e)})),nl&&Ja(l,g),c}return function e(n,a,o,u){if("object"==typeof o&&null!==o&&o.type===E&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var s=o.key,c=a;null!==c;){if(c.key===s){if((s=o.type)===E){if(7===c.tag){r(n,c.sibling),(a=l(c,o.props.children)).return=n,n=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&gl(s)===c.type){r(n,c.sibling),(a=l(c,o.props)).ref=ml(n,c,o),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}o.type===E?((a=Rs(o.props.children,n.mode,u,o.key)).return=n,n=a):((u=Ls(o.type,o.key,o.props,null,n.mode,u)).ref=ml(n,a,o),u.return=n,n=u)}return i(n);case S:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){r(n,a.sibling),(a=l(a,o.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Fs(o,n.mode,u)).return=n,n=a}return i(n);case R:return e(n,a,(c=o._init)(o._payload),u)}if(ne(o))return h(n,a,o,u);if(F(o))return g(n,a,o,u);hl(n,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(r(n,a.sibling),(a=l(a,o)).return=n,n=a):(r(n,a),(a=Ms(o,n.mode,u)).return=n,n=a),i(n)):r(n,a)}}var vl=yl(!0),bl=yl(!1),wl=ka(null),xl=null,kl=null,Sl=null;function El(){Sl=kl=xl=null}function Cl(e){var t=wl.current;Sa(wl),e._currentValue=t}function _l(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nl(e,t){xl=e,Sl=kl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yi=!0),e.firstContext=null)}function Pl(e){var t=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:t,next:null},null===kl){if(null===xl)throw Error(n(308));kl=e,xl.dependencies={lanes:0,firstContext:e}}else kl=kl.next=e;return t}var Tl=null;function jl(e){null===Tl?Tl=[e]:Tl.push(e)}function zl(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,jl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ll(e,r)}function Ll(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Rl=!1;function Ol(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ml(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_u){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ll(e,n)}return null===(a=r.interleaved)?(t.next=t,jl(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ll(e,n)}function Il(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ul(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=o:l=l.next=o,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Al(e,t,n,r){var a=e.updateQueue;Rl=!1;var l=a.firstBaseUpdate,o=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var u=i,s=u.next;u.next=null,null===o?l=s:o.next=s,o=u;var c=e.alternate;null!==c&&(i=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===i?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=u)}if(null!==l){var f=a.baseState;for(o=0,c=s=u=null,i=l;;){var d=i.lane,p=i.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,h=i;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=I({},f,d);break e;case 2:Rl=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[i]:d.push(i))}else p={eventTime:p,lane:d,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,o|=d;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(d=i).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(u=f),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===l&&(a.shared.lanes=0);Ou|=o,e.lanes=o,e.memoizedState=f}}function Bl(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],l=a.callback;if(null!==l){if(a.callback=null,a=r,"function"!=typeof l)throw Error(n(191,l));l.call(a)}}}var $l={},Hl=ka($l),Vl=ka($l),ql=ka($l);function Wl(e){if(e===$l)throw Error(n(174));return e}function Ql(e,t){switch(Ea(ql,t),Ea(Vl,e),Ea(Hl,$l),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Sa(Hl),Ea(Hl,t)}function Kl(){Sa(Hl),Sa(Vl),Sa(ql)}function Yl(e){Wl(ql.current);var t=Wl(Hl.current),n=se(t,e.type);t!==n&&(Ea(Vl,e),Ea(Hl,n))}function Jl(e){Vl.current===e&&(Sa(Hl),Sa(Vl))}var Xl=ka(0);function Gl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zl=[];function eo(){for(var e=0;e<Zl.length;e++)Zl[e]._workInProgressVersionPrimary=null;Zl.length=0}var to=w.ReactCurrentDispatcher,no=w.ReactCurrentBatchConfig,ro=0,ao=null,lo=null,oo=null,io=!1,uo=!1,so=0,co=0;function fo(){throw Error(n(321))}function po(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function mo(e,t,r,a,l,o){if(ro=o,ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,to.current=null===e||null===e.memoizedState?Xo:Go,e=r(a,l),uo){o=0;do{if(uo=!1,so=0,25<=o)throw Error(n(301));o+=1,oo=lo=null,t.updateQueue=null,to.current=Zo,e=r(a,l)}while(uo)}if(to.current=Jo,t=null!==lo&&null!==lo.next,ro=0,oo=lo=ao=null,io=!1,t)throw Error(n(300));return e}function ho(){var e=0!==so;return so=0,e}function go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oo?ao.memoizedState=oo=e:oo=oo.next=e,oo}function yo(){if(null===lo){var e=ao.alternate;e=null!==e?e.memoizedState:null}else e=lo.next;var t=null===oo?ao.memoizedState:oo.next;if(null!==t)oo=t,lo=e;else{if(null===e)throw Error(n(310));e={memoizedState:(lo=e).memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},null===oo?ao.memoizedState=oo=e:oo=oo.next=e}return oo}function vo(e,t){return"function"==typeof t?t(e):t}function bo(e){var t=yo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=lo,l=a.baseQueue,o=r.pending;if(null!==o){if(null!==l){var i=l.next;l.next=o.next,o.next=i}a.baseQueue=l=o,r.pending=null}if(null!==l){o=l.next,a=a.baseState;var u=i=null,s=null,c=o;do{var f=c.lane;if((ro&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,i=a):s=s.next=d,ao.lanes|=f,Ou|=f}c=c.next}while(null!==c&&c!==o);null===s?i=a:s.next=u,lr(a,t.memoizedState)||(yi=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=s,r.lastRenderedState=a}if(null!==(e=r.interleaved)){l=e;do{o=l.lane,ao.lanes|=o,Ou|=o,l=l.next}while(l!==e)}else null===l&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wo(e){var t=yo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,l=r.pending,o=t.memoizedState;if(null!==l){r.pending=null;var i=l=l.next;do{o=e(o,i.action),i=i.next}while(i!==l);lr(o,t.memoizedState)||(yi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function xo(){}function ko(e,t){var r=ao,a=yo(),l=t(),o=!lr(a.memoizedState,l);if(o&&(a.memoizedState=l,yi=!0),a=a.queue,Oo(Co.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==oo&&1&oo.memoizedState.tag){if(r.flags|=2048,To(9,Eo.bind(null,r,a,l,t),void 0,null),null===Nu)throw Error(n(349));30&ro||So(r,t,l)}return l}function So(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ao.updateQueue)?(t={lastEffect:null,stores:null},ao.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Eo(e,t,n,r){t.value=n,t.getSnapshot=r,_o(t)&&No(e)}function Co(e,t,n){return n((function(){_o(t)&&No(e)}))}function _o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function No(e){var t=Ll(e,1);null!==t&&es(t,e,1,-1)}function Po(e){var t=go();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Wo.bind(null,ao,e),[t.memoizedState,e]}function To(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ao.updateQueue)?(t={lastEffect:null,stores:null},ao.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function jo(){return yo().memoizedState}function zo(e,t,n,r){var a=go();ao.flags|=e,a.memoizedState=To(1|t,n,void 0,void 0===r?null:r)}function Lo(e,t,n,r){var a=yo();r=void 0===r?null:r;var l=void 0;if(null!==lo){var o=lo.memoizedState;if(l=o.destroy,null!==r&&po(r,o.deps))return void(a.memoizedState=To(t,n,l,r))}ao.flags|=e,a.memoizedState=To(1|t,n,l,r)}function Ro(e,t){return zo(8390656,8,e,t)}function Oo(e,t){return Lo(2048,8,e,t)}function Mo(e,t){return Lo(4,2,e,t)}function Fo(e,t){return Lo(4,4,e,t)}function Do(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Io(e,t,n){return n=null!=n?n.concat([e]):null,Lo(4,4,Do.bind(null,t,e),n)}function Uo(){}function Ao(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $o(e,t,n){return 21&ro?(lr(n,t)||(n=gt(),ao.lanes|=n,Ou|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yi=!0),e.memoizedState=n)}function Ho(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=no.transition;no.transition={};try{e(!1),t()}finally{wt=n,no.transition=r}}function Vo(){return yo().memoizedState}function qo(e,t,n){var r=Zu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qo(e)?Ko(t,n):null!==(n=zl(e,t,n,r))&&(es(n,e,r,Gu()),Yo(n,t,r))}function Wo(e,t,n){var r=Zu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qo(e))Ko(t,a);else{var l=e.alternate;if(0===e.lanes&&(null===l||0===l.lanes)&&null!==(l=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=l(o,n);if(a.hasEagerState=!0,a.eagerState=i,lr(i,o)){var u=t.interleaved;return null===u?(a.next=a,jl(t)):(a.next=u.next,u.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=zl(e,t,a,r))&&(es(n,e,r,a=Gu()),Yo(n,t,r))}}function Qo(e){var t=e.alternate;return e===ao||null!==t&&t===ao}function Ko(e,t){uo=io=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Jo={readContext:Pl,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useInsertionEffect:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useMutableSource:fo,useSyncExternalStore:fo,useId:fo,unstable_isNewReconciler:!1},Xo={readContext:Pl,useCallback:function(e,t){return go().memoizedState=[e,void 0===t?null:t],e},useContext:Pl,useEffect:Ro,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zo(4194308,4,Do.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=go();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=go();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qo.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},go().memoizedState=e},useState:Po,useDebugValue:Uo,useDeferredValue:function(e){return go().memoizedState=e},useTransition:function(){var e=Po(!1),t=e[0];return e=Ho.bind(null,e[1]),go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=ao,l=go();if(nl){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nu)throw Error(n(349));30&ro||So(a,t,r)}l.memoizedState=r;var o={value:r,getSnapshot:t};return l.queue=o,Ro(Co.bind(null,a,o,e),[e]),a.flags|=2048,To(9,Eo.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=go(),t=Nu.identifierPrefix;if(nl){var n=Ya;t=":"+t+"R"+(n=(Ka&~(1<<32-it(Ka)-1)).toString(32)+n),0<(n=so++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=co++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Go={readContext:Pl,useCallback:Ao,useContext:Pl,useEffect:Oo,useImperativeHandle:Io,useInsertionEffect:Mo,useLayoutEffect:Fo,useMemo:Bo,useReducer:bo,useRef:jo,useState:function(){return bo(vo)},useDebugValue:Uo,useDeferredValue:function(e){return $o(yo(),lo.memoizedState,e)},useTransition:function(){return[bo(vo)[0],yo().memoizedState]},useMutableSource:xo,useSyncExternalStore:ko,useId:Vo,unstable_isNewReconciler:!1},Zo={readContext:Pl,useCallback:Ao,useContext:Pl,useEffect:Oo,useImperativeHandle:Io,useInsertionEffect:Mo,useLayoutEffect:Fo,useMemo:Bo,useReducer:wo,useRef:jo,useState:function(){return wo(vo)},useDebugValue:Uo,useDeferredValue:function(e){var t=yo();return null===lo?t.memoizedState=e:$o(t,lo.memoizedState,e)},useTransition:function(){return[wo(vo)[0],yo().memoizedState]},useMutableSource:xo,useSyncExternalStore:ko,useId:Vo,unstable_isNewReconciler:!1};function ei(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ti(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ni={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gu(),a=Zu(e),l=Fl(r,a);l.payload=t,null!=n&&(l.callback=n),null!==(t=Dl(e,l,a))&&(es(t,e,a,r),Il(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gu(),a=Zu(e),l=Fl(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=Dl(e,l,a))&&(es(t,e,a,r),Il(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gu(),r=Zu(e),a=Fl(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Dl(e,a,r))&&(es(t,e,r,n),Il(t,e,r))}};function ri(e,t,n,r,a,l,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,o):!(t.prototype&&t.prototype.isPureReactComponent&&or(n,r)&&or(a,l))}function ai(e,t,n){var r=!1,a=Ca,l=t.contextType;return"object"==typeof l&&null!==l?l=Pl(l):(a=ja(t)?Pa:_a.current,l=(r=null!=(r=t.contextTypes))?Ta(e,a):Ca),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ni,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function li(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ni.enqueueReplaceState(t,t.state,null)}function oi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ol(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=Pl(l):(l=ja(t)?Pa:_a.current,a.context=Ta(e,l)),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(ti(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ni.enqueueReplaceState(a,a.state,null),Al(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function ii(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ui(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function si(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ci="function"==typeof WeakMap?WeakMap:Map;function fi(e,t,n){(n=Fl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$u||($u=!0,Hu=r),si(0,t)},n}function di(e,t,n){(n=Fl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){si(0,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){si(0,t),"function"!=typeof r&&(null===Vu?Vu=new Set([this]):Vu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function pi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ci;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function mi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hi(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fl(-1,1)).tag=2,Dl(n,t,1))),n.lanes|=1),e)}var gi=w.ReactCurrentOwner,yi=!1;function vi(e,t,n,r){t.child=null===e?bl(t,null,n,r):vl(t,e.child,n,r)}function bi(e,t,n,r,a){n=n.render;var l=t.ref;return Nl(t,a),r=mo(e,t,n,r,l,a),n=ho(),null===e||yi?(nl&&n&&Ga(t),t.flags|=1,vi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a))}function wi(e,t,n,r,a){if(null===e){var l=n.type;return"function"!=typeof l||js(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ls(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,xi(e,t,l,r,a))}if(l=e.child,!(e.lanes&a)){var o=l.memoizedProps;if((n=null!==(n=n.compare)?n:or)(o,r)&&e.ref===t.ref)return $i(e,t,a)}return t.flags|=1,(e=zs(l,r)).ref=t.ref,e.return=t,t.child=e}function xi(e,t,n,r,a){if(null!==e){var l=e.memoizedProps;if(or(l,r)&&e.ref===t.ref){if(yi=!1,t.pendingProps=r=l,!(e.lanes&a))return t.lanes=e.lanes,$i(e,t,a);131072&e.flags&&(yi=!0)}}return Ei(e,t,n,r,a)}function ki(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ea(zu,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==l?l.baseLanes:n,Ea(zu,ju),ju|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ea(zu,ju),ju|=n;else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,Ea(zu,ju),ju|=r;return vi(e,t,a,n),t.child}function Si(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ei(e,t,n,r,a){var l=ja(n)?Pa:_a.current;return l=Ta(t,l),Nl(t,a),n=mo(e,t,n,r,l,a),r=ho(),null===e||yi?(nl&&r&&Ga(t),t.flags|=1,vi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a))}function Ci(e,t,n,r,a){if(ja(n)){var l=!0;Oa(t)}else l=!1;if(Nl(t,a),null===t.stateNode)Bi(e,t),ai(t,n,r),oi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?Pl(s):Ta(t,s=ja(n)?Pa:_a.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&li(t,o,r,s),Rl=!1;var d=t.memoizedState;o.state=d,Al(t,r,o,a),u=t.memoizedState,i!==r||d!==u||Na.current||Rl?("function"==typeof c&&(ti(t,n,c,r),u=t.memoizedState),(i=Rl||ri(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ml(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:ei(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?Pl(u):Ta(t,u=ja(n)?Pa:_a.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&li(t,o,r,u),Rl=!1,d=t.memoizedState,o.state=d,Al(t,r,o,a);var m=t.memoizedState;i!==f||d!==m||Na.current||Rl?("function"==typeof p&&(ti(t,n,p,r),m=t.memoizedState),(s=Rl||ri(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _i(e,t,n,r,l,a)}function _i(e,t,n,r,a,l){Si(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ma(t,n,!1),$i(e,t,l);r=t.stateNode,gi.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=vl(t,e.child,null,l),t.child=vl(t,null,i,l)):vi(e,t,i,l),t.memoizedState=r.state,a&&Ma(t,n,!0),t.child}function Ni(e){var t=e.stateNode;t.pendingContext?La(0,t.pendingContext,t.pendingContext!==t.context):t.context&&La(0,t.context,!1),Ql(e,t.containerInfo)}function Pi(e,t,n,r,a){return fl(),dl(a),t.flags|=256,vi(e,t,n,r),t.child}var Ti,ji,zi,Li,Ri={dehydrated:null,treeContext:null,retryLane:0};function Oi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mi(e,t,r){var a,l=t.pendingProps,o=Xl.current,i=!1,u=!!(128&t.flags);if((a=u)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ea(Xl,1&o),null===e)return il(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=l.children,e=l.fallback,i?(l=t.mode,i=t.child,u={mode:"hidden",children:u},1&l||null===i?i=Os(u,l,0,null):(i.childLanes=0,i.pendingProps=u),e=Rs(e,l,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Oi(r),t.memoizedState=Ri,e):Fi(t,u));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,l,o,i){if(r)return 256&t.flags?(t.flags&=-257,Di(e,t,i,a=ui(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,l=t.mode,a=Os({mode:"visible",children:a.children},l,0,null),(o=Rs(o,l,i,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&vl(t,e.child,null,i),t.child.memoizedState=Oi(i),t.memoizedState=Ri,o);if(!(1&t.mode))return Di(e,t,i,null);if("$!"===l.data){if(a=l.nextSibling&&l.nextSibling.dataset)var u=a.dgst;return a=u,Di(e,t,i,a=ui(o=Error(n(419)),a,void 0))}if(u=!!(i&e.childLanes),yi||u){if(null!==(a=Nu)){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=l&(a.suspendedLanes|i)?0:l)&&l!==o.retryLane&&(o.retryLane=l,Ll(e,l),es(a,e,l,-1))}return ps(),Di(e,t,i,a=ui(Error(n(421))))}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=Cs.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,tl=ia(l.nextSibling),el=t,nl=!0,rl=null,null!==e&&(qa[Wa++]=Ka,qa[Wa++]=Ya,qa[Wa++]=Qa,Ka=e.id,Ya=e.overflow,Qa=t),(t=Fi(t,a.children)).flags|=4096,t)}(e,t,u,l,a,o,r);if(i){i=l.fallback,u=t.mode,a=(o=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&u||t.child===o?(l=zs(o,s)).subtreeFlags=14680064&o.subtreeFlags:((l=t.child).childLanes=0,l.pendingProps=s,t.deletions=null),null!==a?i=zs(a,i):(i=Rs(i,u,r,null)).flags|=2,i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,u=null===(u=e.child.memoizedState)?Oi(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~r,t.memoizedState=Ri,l}return e=(i=e.child).sibling,l=zs(i,{mode:"visible",children:l.children}),!(1&t.mode)&&(l.lanes=r),l.return=t,l.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Fi(e,t){return(t=Os({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Di(e,t,n,r){return null!==r&&dl(r),vl(t,e.child,null,n),(e=Fi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ii(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_l(e.return,t,n)}function Ui(e,t,n,r,a){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a)}function Ai(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(vi(e,t,r.children,n),2&(r=Xl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ii(e,n,t);else if(19===e.tag)Ii(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ea(Xl,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Gl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ui(t,!1,a,n,l);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Gl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ui(t,!0,n,null,l);break;case"together":Ui(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bi(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=zs(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=zs(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hi(e,t){if(!nl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qi(e,t,r){var l=t.pendingProps;switch(Za(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return ja(t.type)&&za(),Vi(t),null;case 3:return l=t.stateNode,Kl(),Sa(Na),Sa(_a),eo(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(sl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==rl&&(as(rl),rl=null))),ji(e,t),Vi(t),null;case 5:Jl(t);var o=Wl(ql.current);if(r=t.type,null!==e&&null!=t.stateNode)zi(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(n(166));return Vi(t),null}if(e=Wl(Hl.current),sl(t)){l=t.stateNode,r=t.type;var i=t.memoizedProps;switch(l[ca]=t,l[fa]=i,e=!!(1&t.mode),r){case"dialog":Dr("cancel",l),Dr("close",l);break;case"iframe":case"object":case"embed":Dr("load",l);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Dr(Rr[o],l);break;case"source":Dr("error",l);break;case"img":case"image":case"link":Dr("error",l),Dr("load",l);break;case"details":Dr("toggle",l);break;case"input":X(l,i),Dr("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!i.multiple},Dr("invalid",l);break;case"textarea":le(l,i),Dr("invalid",l)}for(var u in be(r,i),o=null,i)if(i.hasOwnProperty(u)){var s=i[u];"children"===u?"string"==typeof s?l.textContent!==s&&(!0!==i.suppressHydrationWarning&&Jr(l.textContent,s,e),o=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Jr(l.textContent,s,e),o=["children",""+s]):a.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Dr("scroll",l)}switch(r){case"input":Q(l),ee(l,i,!0);break;case"textarea":Q(l),ie(l);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(l.onclick=Xr)}l=o,t.updateQueue=l,null!==l&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=u.createElement(r,{is:l.is}):(e=u.createElement(r),"select"===r&&(u=e,l.multiple?u.multiple=!0:l.size&&(u.size=l.size))):e=u.createElementNS(e,r),e[ca]=t,e[fa]=l,Ti(e,t,!1,!1),t.stateNode=e;e:{switch(u=we(r,l),r){case"dialog":Dr("cancel",e),Dr("close",e),o=l;break;case"iframe":case"object":case"embed":Dr("load",e),o=l;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Dr(Rr[o],e);o=l;break;case"source":Dr("error",e),o=l;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=l;break;case"details":Dr("toggle",e),o=l;break;case"input":X(e,l),o=J(e,l),Dr("invalid",e);break;case"option":default:o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=I({},l,{value:void 0}),Dr("invalid",e);break;case"textarea":le(e,l),o=ae(e,l),Dr("invalid",e)}for(i in be(r,o),s=o)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?ye(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(a.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Dr("scroll",e):null!=c&&b(e,i,c,u))}switch(r){case"input":Q(e),ee(e,l,!1);break;case"textarea":Q(e),ie(e);break;case"option":null!=l.value&&e.setAttribute("value",""+q(l.value));break;case"select":e.multiple=!!l.multiple,null!=(i=l.value)?re(e,!!l.multiple,i,!1):null!=l.defaultValue&&re(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Li(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error(n(166));if(r=Wl(ql.current),Wl(Hl.current),sl(t)){if(l=t.stateNode,r=t.memoizedProps,l[ca]=t,(i=l.nodeValue!==r)&&null!==(e=el))switch(e.tag){case 3:Jr(l.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(l.nodeValue,r,!!(1&e.mode))}i&&(t.flags|=4)}else(l=(9===r.nodeType?r:r.ownerDocument).createTextNode(l))[ca]=t,t.stateNode=l}return Vi(t),null;case 13:if(Sa(Xl),l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(nl&&null!==tl&&1&t.mode&&!(128&t.flags))cl(),fl(),t.flags|=98560,i=!1;else if(i=sl(t),null!==l&&null!==l.dehydrated){if(null===e){if(!i)throw Error(n(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(n(317));i[ca]=t}else fl(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),i=!1}else null!==rl&&(as(rl),rl=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((l=null!==l)!=(null!==e&&null!==e.memoizedState)&&l&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Xl.current?0===Lu&&(Lu=3):ps())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return Kl(),ji(e,t),null===e&&Ar(t.stateNode.containerInfo),Vi(t),null;case 10:return Cl(t.type._context),Vi(t),null;case 19:if(Sa(Xl),null===(i=t.memoizedState))return Vi(t),null;if(l=!!(128&t.flags),null===(u=i.rendering))if(l)Hi(i,!1);else{if(0!==Lu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=Gl(e))){for(t.flags|=128,Hi(i,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;null!==r;)e=l,(i=r).flags&=14680066,null===(u=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ea(Xl,1&Xl.current|2),t.child}e=e.sibling}null!==i.tail&&Ge()>Au&&(t.flags|=128,l=!0,Hi(i,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Gl(u))){if(t.flags|=128,l=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hi(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!nl)return Vi(t),null}else 2*Ge()-i.renderingStartTime>Au&&1073741824!==r&&(t.flags|=128,l=!0,Hi(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=i.last)?r.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ge(),t.sibling=null,r=Xl.current,Ea(Xl,l?1&r|2:1&r),t):(Vi(t),null);case 22:case 23:return ss(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&1&t.mode?!!(1073741824&ju)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Wi(e,t){switch(Za(t),t.tag){case 1:return ja(t.type)&&za(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Kl(),Sa(Na),Sa(_a),eo(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jl(t),null;case 13:if(Sa(Xl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Sa(Xl),null;case 4:return Kl(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return ss(),null;default:return null}}Ti=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ji=function(){},zi=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Wl(Hl.current);var o,i=null;switch(n){case"input":l=J(e,l),r=J(e,r),i=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":l=ae(e,l),r=ae(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in be(n,r),n=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var u=l[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Dr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Li=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qi=!1,Ki=!1,Yi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function Xi(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function Gi(e,t,n){try{n()}catch(n){ks(e,t,n)}}var Zi=!1;function eu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,void 0!==l&&Gi(t,n,l)}a=a.next}while(a!==r)}}function tu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ru(e){var t=e.alternate;null!==t&&(e.alternate=null,ru(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ca],delete t[fa],delete t[pa],delete t[ma],delete t[ha]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ou(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ou(e,t,n),e=e.sibling;null!==e;)ou(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(iu(e,t,n),e=e.sibling;null!==e;)iu(e,t,n),e=e.sibling}var uu=null,su=!1;function cu(e,t,n){for(n=n.child;null!==n;)fu(e,t,n),n=n.sibling}function fu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(lt,n)}catch(e){}switch(n.tag){case 5:Ki||Xi(n,t);case 6:var r=uu,a=su;uu=null,cu(e,t,n),su=a,null!==(uu=r)&&(su?(e=uu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uu.removeChild(n.stateNode));break;case 18:null!==uu&&(su?(e=uu,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),Ht(e)):oa(uu,n.stateNode));break;case 4:r=uu,a=su,uu=n.stateNode.containerInfo,su=!0,cu(e,t,n),uu=r,su=a;break;case 0:case 11:case 14:case 15:if(!Ki&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var l=a,o=l.destroy;l=l.tag,void 0!==o&&(2&l||4&l)&&Gi(n,t,o),a=a.next}while(a!==r)}cu(e,t,n);break;case 1:if(!Ki&&(Xi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}cu(e,t,n);break;case 21:cu(e,t,n);break;case 22:1&n.mode?(Ki=(r=Ki)||null!==n.memoizedState,cu(e,t,n),Ki=r):cu(e,t,n);break;default:cu(e,t,n)}}function du(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yi),t.forEach((function(t){var r=_s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pu(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var l=r[a];try{var o=e,i=t,u=i;e:for(;null!==u;){switch(u.tag){case 5:uu=u.stateNode,su=!1;break e;case 3:case 4:uu=u.stateNode.containerInfo,su=!0;break e}u=u.return}if(null===uu)throw Error(n(160));fu(o,i,l),uu=null,su=!1;var s=l.alternate;null!==s&&(s.return=null),l.return=null}catch(e){ks(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pu(t,e),hu(e),4&a){try{eu(3,e,e.return),tu(3,e)}catch(t){ks(e,e.return,t)}try{eu(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:pu(t,e),hu(e),512&a&&null!==r&&Xi(r,r.return);break;case 5:if(pu(t,e),hu(e),512&a&&null!==r&&Xi(r,r.return),32&e.flags){var l=e.stateNode;try{pe(l,"")}catch(t){ks(e,e.return,t)}}if(4&a&&null!=(l=e.stateNode)){var o=e.memoizedProps,i=null!==r?r.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===o.type&&null!=o.name&&G(l,o),we(u,i);var c=we(u,o);for(i=0;i<s.length;i+=2){var f=s[i],d=s[i+1];"style"===f?ye(l,d):"dangerouslySetInnerHTML"===f?de(l,d):"children"===f?pe(l,d):b(l,f,d,c)}switch(u){case"input":Z(l,o);break;case"textarea":oe(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var m=o.value;null!=m?re(l,!!o.multiple,m,!1):p!==!!o.multiple&&(null!=o.defaultValue?re(l,!!o.multiple,o.defaultValue,!0):re(l,!!o.multiple,o.multiple?[]:"",!1))}l[fa]=o}catch(t){ks(e,e.return,t)}}break;case 6:if(pu(t,e),hu(e),4&a){if(null===e.stateNode)throw Error(n(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(t){ks(e,e.return,t)}}break;case 3:if(pu(t,e),hu(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:pu(t,e),hu(e);break;case 13:pu(t,e),hu(e),8192&(l=e.child).flags&&(o=null!==l.memoizedState,l.stateNode.isHidden=o,!o||null!==l.alternate&&null!==l.alternate.memoizedState||(Uu=Ge())),4&a&&du(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Ki=(c=Ki)||f,pu(t,e),Ki=c):pu(t,e),hu(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ji=e,f=e.child;null!==f;){for(d=Ji=f;null!==Ji;){switch(m=(p=Ji).child,p.tag){case 0:case 11:case 14:case 15:eu(4,p,p.return);break;case 1:Xi(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){a=p,r=p.return;try{t=a,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){ks(a,r,e)}}break;case 5:Xi(p,p.return);break;case 22:if(null!==p.memoizedState){bu(d);continue}}null!==m?(m.return=p,Ji=m):bu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{l=d.stateNode,c?"function"==typeof(o=l.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=ge("display",i))}catch(t){ks(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pu(t,e),hu(e),4&a&&du(e);case 21:}}function hu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(au(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var l=a.stateNode;32&a.flags&&(pe(l,""),a.flags&=-33),iu(e,lu(e),l);break;case 3:case 4:var o=a.stateNode.containerInfo;ou(e,lu(e),o);break;default:throw Error(n(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Ji=e,yu(e)}function yu(e,t,n){for(var r=!!(1&e.mode);null!==Ji;){var a=Ji,l=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Qi;if(!o){var i=a.alternate,u=null!==i&&null!==i.memoizedState||Ki;i=Qi;var s=Ki;if(Qi=o,(Ki=u)&&!s)for(Ji=a;null!==Ji;)u=(o=Ji).child,22===o.tag&&null!==o.memoizedState?wu(a):null!==u?(u.return=o,Ji=u):wu(a);for(;null!==l;)Ji=l,yu(l),l=l.sibling;Ji=a,Qi=i,Ki=s}vu(e)}else 8772&a.subtreeFlags&&null!==l?(l.return=a,Ji=l):vu(e)}}function vu(e){for(;null!==Ji;){var t=Ji;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ki||tu(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Ki)if(null===r)a.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:ei(t.type,r.memoizedProps);a.componentDidUpdate(l,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Bl(t,o,a);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bl(t,i,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(n(163))}Ki||512&t.flags&&nu(t)}catch(e){ks(t,t.return,e)}}if(t===e){Ji=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ji=r;break}Ji=t.return}}function bu(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function wu(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tu(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){ks(t,a,e)}}var l=t.return;try{nu(t)}catch(e){ks(t,l,e)}break;case 5:var o=t.return;try{nu(t)}catch(e){ks(t,o,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var xu,ku=Math.ceil,Su=w.ReactCurrentDispatcher,Eu=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,_u=0,Nu=null,Pu=null,Tu=0,ju=0,zu=ka(0),Lu=0,Ru=null,Ou=0,Mu=0,Fu=0,Du=null,Iu=null,Uu=0,Au=1/0,Bu=null,$u=!1,Hu=null,Vu=null,qu=!1,Wu=null,Qu=0,Ku=0,Yu=null,Ju=-1,Xu=0;function Gu(){return 6&_u?Ge():-1!==Ju?Ju:Ju=Ge()}function Zu(e){return 1&e.mode?2&_u&&0!==Tu?Tu&-Tu:null!==pl.transition?(0===Xu&&(Xu=gt()),Xu):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function es(e,t,r,a){if(50<Ku)throw Ku=0,Yu=null,Error(n(185));vt(e,r,a),2&_u&&e===Nu||(e===Nu&&(!(2&_u)&&(Mu|=r),4===Lu&&ls(e,Tu)),ts(e,a),1===r&&0===_u&&!(1&t.mode)&&(Au=Ge()+500,Da&&Aa()))}function ts(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-it(l),i=1<<o,u=a[o];-1===u?i&n&&!(i&r)||(a[o]=mt(i,t)):u<=t&&(e.expiredLanes|=i),l&=~i}}(e,t);var r=pt(e,e===Nu?Tu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Da=!0,Ua(e)}(os.bind(null,e)):Ua(os.bind(null,e)),aa((function(){!(6&_u)&&Aa()})),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=Ns(n,ns.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ns(e,t){if(Ju=-1,Xu=0,6&_u)throw Error(n(327));var r=e.callbackNode;if(ws()&&e.callbackNode!==r)return null;var a=pt(e,e===Nu?Tu:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=ms(e,a);else{t=a;var l=_u;_u|=2;var o=ds();for(Nu===e&&Tu===t||(Bu=null,Au=Ge()+500,cs(e,t));;)try{gs();break}catch(t){fs(e,t)}El(),Su.current=o,_u=l,null!==Pu?t=0:(Nu=null,Tu=0,t=Lu)}if(0!==t){if(2===t&&0!==(l=ht(e))&&(a=l,t=rs(e,l)),1===t)throw r=Ru,cs(e,0),ls(e,a),ts(e,Ge()),r;if(6===t)ls(e,a);else{if(l=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!lr(l(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)||(t=ms(e,a),2===t&&(o=ht(e),0!==o&&(a=o,t=rs(e,o))),1!==t)))throw r=Ru,cs(e,0),ls(e,a),ts(e,Ge()),r;switch(e.finishedWork=l,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:bs(e,Iu,Bu);break;case 3:if(ls(e,a),(130023424&a)===a&&10<(t=Uu+500-Ge())){if(0!==pt(e,0))break;if(((l=e.suspendedLanes)&a)!==a){Gu(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ta(bs.bind(null,e,Iu,Bu),t);break}bs(e,Iu,Bu);break;case 4:if(ls(e,a),(4194240&a)===a)break;for(t=e.eventTimes,l=-1;0<a;){var i=31-it(a);o=1<<i,(i=t[i])>l&&(l=i),a&=~o}if(a=l,10<(a=(120>(a=Ge()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*ku(a/1960))-a)){e.timeoutHandle=ta(bs.bind(null,e,Iu,Bu),a);break}bs(e,Iu,Bu);break;default:throw Error(n(329))}}}return ts(e,Ge()),e.callbackNode===r?ns.bind(null,e):null}function rs(e,t){var n=Du;return e.current.memoizedState.isDehydrated&&(cs(e,t).flags|=256),2!==(e=ms(e,t))&&(t=Iu,Iu=n,null!==t&&as(t)),e}function as(e){null===Iu?Iu=e:Iu.push.apply(Iu,e)}function ls(e,t){for(t&=~Fu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function os(e){if(6&_u)throw Error(n(327));ws();var t=pt(e,0);if(!(1&t))return ts(e,Ge()),null;var r=ms(e,t);if(0!==e.tag&&2===r){var a=ht(e);0!==a&&(t=a,r=rs(e,a))}if(1===r)throw r=Ru,cs(e,0),ls(e,t),ts(e,Ge()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bs(e,Iu,Bu),ts(e,Ge()),null}function is(e,t){var n=_u;_u|=1;try{return e(t)}finally{0===(_u=n)&&(Au=Ge()+500,Da&&Aa())}}function us(e){null!==Wu&&0===Wu.tag&&!(6&_u)&&ws();var t=_u;_u|=1;var n=Cu.transition,r=wt;try{if(Cu.transition=null,wt=1,e)return e()}finally{wt=r,Cu.transition=n,!(6&(_u=t))&&Aa()}}function ss(){ju=zu.current,Sa(zu)}function cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(Za(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&za();break;case 3:Kl(),Sa(Na),Sa(_a),eo();break;case 5:Jl(r);break;case 4:Kl();break;case 13:case 19:Sa(Xl);break;case 10:Cl(r.type._context);break;case 22:case 23:ss()}n=n.return}if(Nu=e,Pu=e=zs(e.current,null),Tu=ju=t,Lu=0,Ru=null,Fu=Mu=Ou=0,Iu=Du=null,null!==Tl){for(t=0;t<Tl.length;t++)if(null!==(r=(n=Tl[t]).interleaved)){n.interleaved=null;var a=r.next,l=n.pending;if(null!==l){var o=l.next;l.next=a,r.next=o}n.pending=r}Tl=null}return e}function fs(e,t){for(;;){var r=Pu;try{if(El(),to.current=Jo,io){for(var a=ao.memoizedState;null!==a;){var l=a.queue;null!==l&&(l.pending=null),a=a.next}io=!1}if(ro=0,oo=lo=ao=null,uo=!1,so=0,Eu.current=null,null===r||null===r.return){Lu=1,Ru=t,Pu=null;break}e:{var o=e,i=r.return,u=r,s=t;if(t=Tu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=mi(i);if(null!==m){m.flags&=-257,hi(m,i,u,0,t),1&m.mode&&pi(o,c,t),s=c;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(!(1&t)){pi(o,c,t),ps();break e}s=Error(n(426))}else if(nl&&1&u.mode){var y=mi(i);if(null!==y){!(65536&y.flags)&&(y.flags|=256),hi(y,i,u,0,t),dl(ii(s,u));break e}}o=s=ii(s,u),4!==Lu&&(Lu=2),null===Du?Du=[o]:Du.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ul(o,fi(0,s,t));break e;case 1:u=s;var v=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Vu&&Vu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ul(o,di(o,u,t));break e}}o=o.return}while(null!==o)}vs(r)}catch(e){t=e,Pu===r&&null!==r&&(Pu=r=r.return);continue}break}}function ds(){var e=Su.current;return Su.current=Jo,null===e?Jo:e}function ps(){0!==Lu&&3!==Lu&&2!==Lu||(Lu=4),null===Nu||!(268435455&Ou)&&!(268435455&Mu)||ls(Nu,Tu)}function ms(e,t){var r=_u;_u|=2;var a=ds();for(Nu===e&&Tu===t||(Bu=null,cs(e,t));;)try{hs();break}catch(t){fs(e,t)}if(El(),_u=r,Su.current=a,null!==Pu)throw Error(n(261));return Nu=null,Tu=0,Lu}function hs(){for(;null!==Pu;)ys(Pu)}function gs(){for(;null!==Pu&&!Je();)ys(Pu)}function ys(e){var t=xu(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?vs(e):Pu=t,Eu.current=null}function vs(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wi(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return Lu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qi(n,t,ju)))return void(Pu=n);if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Lu&&(Lu=5)}function bs(e,t,r){var a=wt,l=Cu.transition;try{Cu.transition=null,wt=1,function(e,t,r,a){do{ws()}while(null!==Wu);if(6&_u)throw Error(n(327));r=e.finishedWork;var l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),l=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~l}}(e,o),e===Nu&&(Pu=Nu=null,Tu=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||qu||(qu=!0,Ns(nt,(function(){return ws(),null}))),o=!!(15990&r.flags),15990&r.subtreeFlags||o){o=Cu.transition,Cu.transition=null;var i=wt;wt=1;var u=_u;_u|=4,Eu.current=null,function(e,t){if(Gr=qt,fr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var l=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch(e){r=null;break e}var i=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==r||0!==l&&3!==d.nodeType||(u=i+l),d!==o||0!==a&&3!==d.nodeType||(s=i+a),3===d.nodeType&&(i+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break t;if(p===r&&++c===l&&(u=i),p===o&&++f===a&&(s=i),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}r=-1===u||-1===s?null:{start:u,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},qt=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ei(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}h=Zi,Zi=!1}(e,r),mu(r,e),dr(Zr),qt=!!Gr,Zr=Gr=null,e.current=r,gu(r),Xe(),_u=u,wt=i,Cu.transition=o}else e.current=r;if(qu&&(qu=!1,Wu=e,Qu=l),0===(o=e.pendingLanes)&&(Vu=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(lt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ts(e,Ge()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)a((l=t[r]).value,{componentStack:l.stack,digest:l.digest});if($u)throw $u=!1,e=Hu,Hu=null,e;!!(1&Qu)&&0!==e.tag&&ws(),1&(o=e.pendingLanes)?e===Yu?Ku++:(Ku=0,Yu=e):Ku=0,Aa()}(e,t,r,a)}finally{Cu.transition=l,wt=a}return null}function ws(){if(null!==Wu){var e=xt(Qu),t=Cu.transition,r=wt;try{if(Cu.transition=null,wt=16>e?16:e,null===Wu)var a=!1;else{if(e=Wu,Wu=null,Qu=0,6&_u)throw Error(n(331));var l=_u;for(_u|=4,Ji=e.current;null!==Ji;){var o=Ji,i=o.child;if(16&Ji.flags){var u=o.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Ji=c;null!==Ji;){var f=Ji;switch(f.tag){case 0:case 11:case 15:eu(8,f,o)}var d=f.child;if(null!==d)d.return=f,Ji=d;else for(;null!==Ji;){var p=(f=Ji).sibling,m=f.return;if(ru(f),f===c){Ji=null;break}if(null!==p){p.return=m,Ji=p;break}Ji=m}}}var h=o.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ji=o}}if(2064&o.subtreeFlags&&null!==i)i.return=o,Ji=i;else e:for(;null!==Ji;){if(2048&(o=Ji).flags)switch(o.tag){case 0:case 11:case 15:eu(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,Ji=v;break e}Ji=o.return}}var b=e.current;for(Ji=b;null!==Ji;){var w=(i=Ji).child;if(2064&i.subtreeFlags&&null!==w)w.return=i,Ji=w;else e:for(i=b;null!==Ji;){if(2048&(u=Ji).flags)try{switch(u.tag){case 0:case 11:case 15:tu(9,u)}}catch(e){ks(u,u.return,e)}if(u===i){Ji=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Ji=x;break e}Ji=u.return}}if(_u=l,Aa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(lt,e)}catch(e){}a=!0}return a}finally{wt=r,Cu.transition=t}}return!1}function xs(e,t,n){e=Dl(e,t=fi(0,t=ii(n,t),1),1),t=Gu(),null!==e&&(vt(e,1,t),ts(e,t))}function ks(e,t,n){if(3===e.tag)xs(e,e,n);else for(;null!==t;){if(3===t.tag){xs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vu||!Vu.has(r))){t=Dl(t,e=di(t,e=ii(n,e),1),1),e=Gu(),null!==t&&(vt(t,1,e),ts(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gu(),e.pingedLanes|=e.suspendedLanes&n,Nu===e&&(Tu&n)===n&&(4===Lu||3===Lu&&(130023424&Tu)===Tu&&500>Ge()-Uu?cs(e,0):Fu|=n),ts(e,t)}function Es(e,t){0===t&&(1&e.mode?(t=ft,!(130023424&(ft<<=1))&&(ft=4194304)):t=1);var n=Gu();null!==(e=Ll(e,t))&&(vt(e,t,n),ts(e,n))}function Cs(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function _s(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,l=e.memoizedState;null!==l&&(r=l.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Es(e,r)}function Ns(e,t){return Ke(e,t)}function Ps(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ts(e,t,n,r){return new Ps(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zs(e,t){var n=e.alternate;return null===n?((n=Ts(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ls(e,t,r,a,l,o){var i=2;if(a=e,"function"==typeof e)js(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case E:return Rs(r.children,l,o,t);case C:i=8,l|=8;break;case _:return(e=Ts(12,r,t,2|l)).elementType=_,e.lanes=o,e;case j:return(e=Ts(13,r,t,l)).elementType=j,e.lanes=o,e;case z:return(e=Ts(19,r,t,l)).elementType=z,e.lanes=o,e;case O:return Os(r,l,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:i=10;break e;case P:i=9;break e;case T:i=11;break e;case L:i=14;break e;case R:i=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ts(i,r,t,l)).elementType=e,t.type=a,t.lanes=o,t}function Rs(e,t,n,r){return(e=Ts(7,e,r,t)).lanes=n,e}function Os(e,t,n,r){return(e=Ts(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=Ts(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=Ts(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Is(e,t,n,r,a,l,o,i,u){return e=new Ds(e,t,n,i,u),1===t?(t=1,!0===l&&(t|=8)):t=0,l=Ts(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ol(l),e}function Us(e){if(!e)return Ca;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ja(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(ja(r))return Ra(e,r,t)}return t}function As(e,t,n,r,a,l,o,i,u){return(e=Is(n,r,!0,e,0,l,0,i,u)).context=Us(null),n=e.current,(l=Fl(r=Gu(),a=Zu(n))).callback=null!=t?t:null,Dl(n,l,a),e.current.lanes=a,vt(e,a,r),ts(e,r),e}function Bs(e,t,n,r){var a=t.current,l=Gu(),o=Zu(a);return n=Us(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fl(l,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Dl(a,t,o))&&(es(e,a,o,l),Il(e,a,o)),o}function $s(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vs(e,t){Hs(e,t),(e=e.alternate)&&Hs(e,t)}xu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Na.current)yi=!0;else{if(!(e.lanes&r||128&t.flags))return yi=!1,function(e,t,n){switch(t.tag){case 3:Ni(t),fl();break;case 5:Yl(t);break;case 1:ja(t.type)&&Oa(t);break;case 4:Ql(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ea(wl,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ea(Xl,1&Xl.current),t.flags|=128,null):n&t.child.childLanes?Mi(e,t,n):(Ea(Xl,1&Xl.current),null!==(e=$i(e,t,n))?e.sibling:null);Ea(Xl,1&Xl.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ai(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ea(Xl,Xl.current),r)break;return null;case 22:case 23:return t.lanes=0,ki(e,t,n)}return $i(e,t,n)}(e,t,r);yi=!!(131072&e.flags)}else yi=!1,nl&&1048576&t.flags&&Xa(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Bi(e,t),e=t.pendingProps;var l=Ta(t,_a.current);Nl(t,r),l=mo(null,t,a,e,l,r);var o=ho();return t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ja(a)?(o=!0,Oa(t)):o=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Ol(t),l.updater=ni,t.stateNode=l,l._reactInternals=t,oi(t,a,e,r),t=_i(null,t,a,!0,o,r)):(t.tag=0,nl&&o&&Ga(t),vi(null,t,l,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Bi(e,t),e=t.pendingProps,a=(l=a._init)(a._payload),t.type=a,l=t.tag=function(e){if("function"==typeof e)return js(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===L)return 14}return 2}(a),e=ei(a,e),l){case 0:t=Ei(null,t,a,e,r);break e;case 1:t=Ci(null,t,a,e,r);break e;case 11:t=bi(null,t,a,e,r);break e;case 14:t=wi(null,t,a,ei(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,l=t.pendingProps,Ei(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 1:return a=t.type,l=t.pendingProps,Ci(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 3:e:{if(Ni(t),null===e)throw Error(n(387));a=t.pendingProps,l=(o=t.memoizedState).element,Ml(e,t),Al(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Pi(e,t,a,r,l=ii(Error(n(423)),t));break e}if(a!==l){t=Pi(e,t,a,r,l=ii(Error(n(424)),t));break e}for(tl=ia(t.stateNode.containerInfo.firstChild),el=t,nl=!0,rl=null,r=bl(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fl(),a===l){t=$i(e,t,r);break e}vi(e,t,a,r)}t=t.child}return t;case 5:return Yl(t),null===e&&il(t),a=t.type,l=t.pendingProps,o=null!==e?e.memoizedProps:null,i=l.children,ea(a,l)?i=null:null!==o&&ea(a,o)&&(t.flags|=32),Si(e,t),vi(e,t,i,r),t.child;case 6:return null===e&&il(t),null;case 13:return Mi(e,t,r);case 4:return Ql(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=vl(t,null,a,r):vi(e,t,a,r),t.child;case 11:return a=t.type,l=t.pendingProps,bi(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 7:return vi(e,t,t.pendingProps,r),t.child;case 8:case 12:return vi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Ea(wl,a._currentValue),a._currentValue=i,null!==o)if(lr(o.value,i)){if(o.children===l.children&&!Na.current){t=$i(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){i=o.child;for(var s=u.firstContext;null!==s;){if(s.context===a){if(1===o.tag){(s=Fl(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}o.lanes|=r,null!==(s=o.alternate)&&(s.lanes|=r),_l(o.return,r,t),u.lanes|=r;break}s=s.next}}else if(10===o.tag)i=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(i=o.return))throw Error(n(341));i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),_l(i,r,t),i=o.sibling}else i=o.child;if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===t){i=null;break}if(null!==(o=i.sibling)){o.return=i.return,i=o;break}i=i.return}o=i}vi(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,a=t.pendingProps.children,Nl(t,r),a=a(l=Pl(l)),t.flags|=1,vi(e,t,a,r),t.child;case 14:return l=ei(a=t.type,t.pendingProps),wi(e,t,a,l=ei(a.type,l),r);case 15:return xi(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,l=t.pendingProps,l=t.elementType===a?l:ei(a,l),Bi(e,t),t.tag=1,ja(a)?(e=!0,Oa(t)):e=!1,Nl(t,r),ai(t,a,l),oi(t,a,l,r),_i(null,t,a,!0,e,r);case 19:return Ai(e,t,r);case 22:return ki(e,t,r)}throw Error(n(156,t.tag))};var qs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}function Qs(e){this._internalRoot=e}function Ks(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function Xs(e,t,n,r,a){var l=n._reactRootContainer;if(l){var o=l;if("function"==typeof a){var i=a;a=function(){var e=$s(o);i.call(e)}}Bs(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var l=r;r=function(){var e=$s(o);l.call(e)}}var o=As(t,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=o,e[da]=o.current,Ar(8===e.nodeType?e.parentNode:e),us(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=$s(u);i.call(e)}}var u=Is(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=u,e[da]=u.current,Ar(8===e.nodeType?e.parentNode:e),us((function(){Bs(t,u,n,r)})),u}(n,t,e,a,r);return $s(o)}Qs.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bs(e,t,null,null)},Qs.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Bs(null,e,null,null)})),t[da]=null}},Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&It(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ts(t,Ge()),!(6&_u)&&(Au=Ge()+500,Aa()))}break;case 13:us((function(){var t=Ll(e,1);if(null!==t){var n=Gu();es(t,e,1,n)}})),Vs(e,1)}},St=function(e){if(13===e.tag){var t=Ll(e,134217728);null!==t&&es(t,e,134217728,Gu()),Vs(e,134217728)}},Et=function(e){if(13===e.tag){var t=Zu(e),n=Ll(e,t);null!==n&&es(n,e,t,Gu()),Vs(e,t)}},Ct=function(){return wt},_t=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Se=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var l=ba(a);if(!l)throw Error(n(90));K(a),Z(a,l)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Te=is,je=us;var Gs={usingClientEntryPoint:!1,Events:[ya,va,ba,Ne,Pe,is]},Zs={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ec={bundleType:Zs.bundleType,version:Zs.version,rendererPackageName:Zs.rendererPackageName,rendererConfig:Zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:Zs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{lt=tc.inject(ec),ot=tc}catch(fe){}}return v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gs,v.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ks(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},v.createRoot=function(e,t){if(!Ks(e))throw Error(n(299));var r=!1,a="",l=qs;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=Is(e,1,!1,null,0,r,0,a,l),e[da]=t.current,Ar(8===e.nodeType?e.parentNode:e),new Ws(t)},v.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return null===(e=We(t))?null:e.stateNode},v.flushSync=function(e){return us(e)},v.hydrate=function(e,t,r){if(!Ys(t))throw Error(n(200));return Xs(null,e,t,!0,r)},v.hydrateRoot=function(e,t,r){if(!Ks(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,l=!1,o="",i=qs;if(null!=r&&(!0===r.unstable_strictMode&&(l=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=As(t,null,e,1,null!=r?r:null,l,0,o,i),e[da]=t.current,Ar(e),a)for(e=0;e<a.length;e++)l=(l=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new Qs(t)},v.render=function(e,t,r){if(!Ys(t))throw Error(n(200));return Xs(null,e,t,!1,r)},v.unmountComponentAtNode=function(e){if(!Ys(e))throw Error(n(40));return!!e._reactRootContainer&&(us((function(){Xs(null,null,e,!1,(function(){e._reactRootContainer=null,e[da]=null}))})),!0)},v.unstable_batchedUpdates=is,v.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ys(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xs(e,t,r,!1,a)},v.version="18.3.1-next-f1338f8080-20240426",v}();var k,S=y.exports;function E(e,t){return e&&t?`${e} ${t}`:e||t}function C({children:e,title:t,subtitle:n,...r}){return u.jsxs("div",{...r,className:E(r.className,"flex justify-center items-stretch min-h-screen bg-white text-slate-900 dark:bg-slate-900 dark:text-slate-100"),children:[u.jsxs("div",{className:"w-1/2 hidden p-4 md:grid content-center justify-items-end text-right dark:bg-transparent dark:border-r bg-slate-100 dark:bg-slate-800 dark:border-slate-700",children:[t&&u.jsx("h1",{className:"text-3xl lg:text-5xl mt-4 font-semibold mb-4 text-primary",children:t}),n&&u.jsx("p",{className:"max-w-xs text-slate-500 dark:text-slate-500",children:n})]}),u.jsx("div",{className:"flex items-stretch md:items-center w-full justify-center px-6 md:justify-start md:px-12",children:e})]})}k=S.createRoot,S.hydrateRoot;var _={},N={};Object.defineProperty(N,"__esModule",{value:!0}),N.FetchError=void 0;class P extends Error{constructor(e,t,n){if(null==e||!t){const r=function(e){if("string"==typeof e&&e.length>0)return[500,e];if(!(e instanceof Error))return[500,"Failed to fetch"];const t=e.code;if("string"==typeof t)switch(!0){case"ENOTFOUND"===t:return[400,"Invalid hostname"];case"ECONNREFUSED"===t:return[502,"Connection refused"];case"DEPTH_ZERO_SELF_SIGNED_CERT"===t:return[502,"Self-signed certificate"];case t.startsWith("ERR_TLS"):return[502,"TLS error"];case t.startsWith("ECONN"):return[502,"Connection error"];default:return[500,`${t} error`]}return[500,e.message]}(function(e){if(e instanceof TypeError&&"fetch failed"===e.message&&void 0!==e.cause)return e.cause;return e}(n?.cause));e=e??r[0],t=t||r[1]}super(t,n),Object.defineProperty(this,"statusCode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.statusCode=e}}N.FetchError=P;var T={},j={};function z(e,t){return!t&&e instanceof Request?e:new Request(e,t)}Object.defineProperty(j,"__esModule",{value:!0}),j.asRequest=j.toRequestTransformer=void 0,j.toRequestTransformer=function(e){return function(t,n){return e.call(this,z(t,n))}},j.asRequest=z;var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.stringifyMessage=L.logCancellationError=L.cancelBody=L.padLines=L.MaxBytesTransformStream=L.ifString=L.ifObject=L.isIp=void 0,L.isIp=function(e){return!!e.match(/^\d+\.\d+\.\d+\.\d+$/)||!(!e.startsWith("[")||!e.endsWith("]"))};const R=Object.prototype;L.ifObject=e=>{if("object"==typeof e&&null!=e&&!Array.isArray(e)){const t=Object.getPrototypeOf(e);if(null===t||t===R)return e}};L.ifString=e=>"string"==typeof e?e:void 0;class O extends TransformStream{constructor(e){if(!(e>=0))throw new TypeError("maxBytes must be a non-negative number");let t=0;super({transform:(n,r)=>{(t+=n.length)<=e?r.enqueue(n):r.error(new Error("Response too large"))}})}}L.MaxBytesTransformStream=O;const M=/\r?\n/g;async function F(e,t){!e.body||e.bodyUsed||e.body.locked||"function"!=typeof e.body.cancel||("function"==typeof t?e.body.cancel().catch(t):"log"===t?e.body.cancel().catch(D):await e.body.cancel())}function D(e){console.warn("Failed to cancel response body",e)}L.padLines=function(e,t){return e?t+e.replace(M,`$&${t}`):e},L.cancelBody=F,L.logCancellationError=D,L.stringifyMessage=async function(e){try{const t=function(e){return Array.from(e).map((([e,t])=>`${e}: ${t}`)).join("\n")}(e.headers),n=await async function(e){try{const t=await e.blob();if(t.type?.startsWith("text/")){const e=await t.text();return JSON.stringify(e)}if(/application\/(?:\w+\+)?json/.test(t.type)){const e=await t.text();return e.includes("\n")?JSON.stringify(JSON.parse(e)):e}return`[Body size: ${t.size}, type: ${JSON.stringify(t.type)} ]`}catch{return"[Body could not be read]"}}(e);return t&&n?`${t}\n${n}`:t||n}finally{F(e,"log")}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.forbiddenDomainNameRequestTransform=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=e.requireHostHeaderTranform=e.protocolCheckRequestTransform=e.FetchRequestError=void 0;const t=N,n=j,r=L;class a extends t.FetchError{constructor(e,t,n,r){super(t,n,r),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:e})}static from(e,t){return t instanceof a?t:new a(e,void 0,void 0,{cause:t})}}e.FetchRequestError=a;const l=e=>"string"==typeof e?new URL(e):e instanceof URL?e:new URL(e.url);e.protocolCheckRequestTransform=function(e){const t=new Set(e);return(e,r)=>{const{protocol:o}=l(e),i=(0,n.asRequest)(e,r);if(!t.has(o))throw new a(i,400,`"${o}" protocol is not allowed`);return i}},e.requireHostHeaderTranform=function(){return(e,t)=>{const{protocol:o,hostname:i}=l(e),u=(0,n.asRequest)(e,t);if("http:"!==o&&"https:"!==o)throw new a(u,400,`"${o}" requests are not allowed`);if(!i||(0,r.isIp)(i))throw new a(u,400,"Invalid hostname");return u}},e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=["example.com","*.example.com","example.org","*.example.org","example.net","*.example.net","googleusercontent.com","*.googleusercontent.com"],e.forbiddenDomainNameRequestTransform=function(t=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES){const r=new Set(t);return 0===r.size?async e=>e:async(e,t)=>{const{hostname:o}=l(e),i=(0,n.asRequest)(e,t);if(r.has(o))throw new a(i,403,"Forbidden hostname");let u=o.indexOf(".");for(;-1!==u;){const e=o.slice(u+1);if(r.has(`*.${e}`))throw new a(i,403,"Forbidden hostname");u=o.indexOf(".",u+1)}return i}}}(T);var I={},U={},A={};function B(e,t){return async n=>t(await e(n))}Object.defineProperty(A,"__esModule",{value:!0}),A.pipeTwo=A.pipe=void 0,A.pipe=function(...e){return e.reduce(B)},A.pipeTwo=B,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pipeTwo=e.pipe=void 0;var t=A;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return t.pipe}}),Object.defineProperty(e,"pipeTwo",{enumerable:!0,get:function(){return t.pipeTwo}})}(U);var $,H={},V=t&&t.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},q=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(H,"__esModule",{value:!0}),H.TransformedResponse=void 0;class W extends Response{constructor(e,t){if(!e.body)throw new TypeError("Response body is not available");if(e.bodyUsed)throw new TypeError("Response body is already used");super(e.body.pipeThrough(t),{status:e.status,statusText:e.statusText,headers:e.headers}),$.set(this,void 0),V(this,$,e,"f")}get url(){return q(this,$,"f").url}get redirected(){return q(this,$,"f").redirected}get type(){return q(this,$,"f").type}get statusText(){return q(this,$,"f").statusText}}H.TransformedResponse=W,$=new WeakMap,Object.defineProperty(I,"__esModule",{value:!0}),I.fetchJsonZodProcessor=I.fetchJsonProcessor=I.fetchResponseJsonTranformer=I.fetchResponseTypeChecker=I.fetchTypeProcessor=I.fetchResponseMaxSizeChecker=I.fetchMaxSizeProcessor=I.fetchOkTransformer=I.fetchOkProcessor=I.cancelBodyOnError=I.extractMime=I.extractLength=I.checkLength=I.peekJson=I.FetchResponseError=void 0;const Q=U,K=N,Y=H,J=L;class X extends K.FetchError{constructor(e,t=e.status,n=e.statusText,r){super(t,n,r),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:e})}static async from(e,t=G,n=e.status,r){const a="string"==typeof t?t:"function"==typeof t?await t(e):void 0;return new X(e,n,a,r)}}I.FetchResponseError=X;const G=async e=>{const t=te(e);if(t)try{if("text/plain"===t)return await e.text();if(/^application\/(?:[^+]+\+)?json$/i.test(t)){const t=await e.json();if("string"==typeof t)return t;const n=(0,J.ifString)((0,J.ifObject)(t)?.error_description);if(n)return n;const r=(0,J.ifString)((0,J.ifObject)(t)?.error);if(r)return r;const a=(0,J.ifString)((0,J.ifObject)(t)?.message);if(a)return a}}catch{}};function Z(e,t){if(!(t>=0))throw new TypeError("maxBytes must be a non-negative number");const n=ee(e);if(null!=n&&n>t)throw new X(e,502,"Response too large");return n}function ee(e){const t=e.headers.get("Content-Length");if(null==t)return;if(!/^\d+$/.test(t))throw new X(e,502,"Invalid Content-Length");const n=Number(t);if(!Number.isSafeInteger(n))throw new X(e,502,"Content-Length too large");return n}function te(e){const t=e.headers.get("Content-Type");if(null!=t)return t.split(";",1)[0].trim()}function ne(e,t=J.logCancellationError){return async n=>{try{return await e(n)}catch(e){throw await(0,J.cancelBody)(n,t??void 0),e}}}async function re(e,t){if(e.ok)return e;throw await X.from(e,t)}function ae(e,t){if(t===1/0)return e;if(Z(e,t),!e.body)return e;const n=new J.MaxBytesTransformStream(t);return new Y.TransformedResponse(e,n)}function le(e,t=!0){const n="string"==typeof e?t=>t===e:e instanceof RegExp?t=>e.test(t):e;return ne((e=>oe(e,n,t)))}async function oe(e,t,n=!0){const r=te(e);if(r){if(!t(r))throw await X.from(e,`Unexpected response Content-Type (${r})`,502)}else if(n)throw await X.from(e,"Missing response Content-Type header",502);return e}async function ie(e){try{const t=await e.json();return{response:e,json:t}}catch(t){throw new X(e,502,"Unable to parse response as JSON",{cause:t})}}I.peekJson=async function(e,t=1/0){if("application/json"!==te(e))return;Z(e,t);const n=e.clone();return(e.body&&t<1/0?new Y.TransformedResponse(n,new J.MaxBytesTransformStream(t)):n).json()},I.checkLength=Z,I.extractLength=ee,I.extractMime=te,I.cancelBodyOnError=ne,I.fetchOkProcessor=function(e){return ne((t=>re(t,e)))},I.fetchOkTransformer=re,I.fetchMaxSizeProcessor=function(e){if(e===1/0)return e=>e;if(!Number.isFinite(e)||e<0)throw new TypeError("maxBytes must be a 0, Infinity or a positive number");return ne((t=>ae(t,e)))},I.fetchResponseMaxSizeChecker=ae,I.fetchTypeProcessor=le,I.fetchResponseTypeChecker=oe,I.fetchResponseJsonTranformer=ie,I.fetchJsonProcessor=function(e=/^application\/(?:[^+]+\+)?json$/,t=!0){return(0,Q.pipe)(le(e,t),ne(ie))},I.fetchJsonZodProcessor=function(e,t){return async n=>e.parseAsync(n.json,t)};var ue={};Object.defineProperty(ue,"__esModule",{value:!0}),ue.bindFetch=ue.timedFetch=ue.loggedFetch=void 0;const se=T,ce=j,fe=H,de=L;ue.loggedFetch=function(e=globalThis.fetch){return(0,ce.toRequestTransformer)((async function(t){const n=await(0,de.stringifyMessage)(t);console.info(`> ${t.method} ${t.url}\n${(0,de.padLines)(n," ")}`);try{const n=await e.call(this,t),r=await(0,de.stringifyMessage)(n.clone());return console.info(`< HTTP/1.1 ${n.status} ${n.statusText}\n${(0,de.padLines)(r," ")}`),n}catch(e){throw console.error("< Error:",e),e}}))};var pe,me,he;ue.timedFetch=(e=6e4,t=globalThis.fetch)=>{if(e===1/0)return t;if(!Number.isFinite(e)||e<=0)throw new TypeError("Timeout must be positive");return(0,ce.toRequestTransformer)((async function(n){const r=new AbortController,a=r.signal,l=()=>{r.abort()},o=()=>{clearTimeout(i),n.signal?.removeEventListener("abort",l)},i=setTimeout(l,e);"object"==typeof i&&i.unref?.(),n.signal?.addEventListener("abort",l),a.addEventListener("abort",o);const u=await t.call(this,n,{signal:a});if(u.body){const e=new TransformStream({flush:o});return new fe.TransformedResponse(u,e)}return o(),u}))},ue.bindFetch=function(e=globalThis.fetch,t=globalThis){return(0,ce.toRequestTransformer)((async n=>{try{return await e.call(t,n)}catch(e){throw se.FetchRequestError.from(n,e)}}))},pe=_,me=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),he=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||me(t,e,n)},Object.defineProperty(pe,"__esModule",{value:!0}),he(N,pe),he(T,pe),he(I,pe),he(ue,pe),he(j,pe),he(L,pe);class ge{constructor(e,t,n,r){Object.defineProperty(this,"requestUri",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"clientId",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"csrfToken",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"newSessionsRequireConsent",{enumerable:!0,configurable:!0,writable:!0,value:r})}async signIn(e){const{json:t}=await fetch("/oauth/authorize/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},mode:"same-origin",body:JSON.stringify({csrf_token:this.csrfToken,request_uri:this.requestUri,client_id:this.clientId,credentials:e})}).then(_.fetchOkProcessor()).then(_.fetchJsonProcessor());return{account:t.account,selected:!0,loginRequired:!1,consentRequired:this.newSessionsRequireConsent||t.consentRequired}}async accept(e){const t=new URL("/oauth/authorize/accept",window.origin);return t.searchParams.set("request_uri",this.requestUri),t.searchParams.set("account_sub",e.sub),t.searchParams.set("client_id",this.clientId),t.searchParams.set("csrf_token",this.csrfToken),t}async reject(){const e=new URL("/oauth/authorize/reject",window.origin);return e.searchParams.set("request_uri",this.requestUri),e.searchParams.set("client_id",this.clientId),e.searchParams.set("csrf_token",this.csrfToken),e}}const ye=(ve=document.cookie,Object.fromEntries(ve.split(";").filter(Boolean).map((e=>e.split("=",2).map((e=>decodeURIComponent(e.trim())))))));var ve;function be({clientId:e,requestUri:t,csrfCookie:n,sessions:r,newSessionsRequireConsent:a},{onRedirected:l}={}){const o=ye[n]??"<csrf-token-missing>";const[u,s]=i.useState(r),c=i.useCallback((e=>{s((t=>e===(t.find((e=>e.selected))?.account.sub||null)?t:t.map((t=>({...t,selected:t.account.sub===e})))))}),[s]),f=i.useMemo((()=>new ge(t,e,o,a)),[t,e,o,a]),d=i.useCallback((e=>{window.location.href=String(e),l&&setTimeout(l)}),[l]),p=i.useCallback((async e=>{const t=await f.signIn(e),{sub:n}=t.account;s((e=>function(e,t,n){const r=e.findIndex(n);return-1===r?[...e,t]:[...e.slice(0,r),t,...e.slice(r+1)]}(e,t,(e=>e.account.sub===n)).map((e=>e!==t&&e.selected?{...e,selected:!1}:e))))}),[f,d,e,s]);return{sessions:u,setSession:c,doSignIn:p,doSignUp:i.useCallback((e=>{throw new Error("Not implemented")}),[f]),doAccept:i.useCallback((async e=>{d(await f.accept(e))}),[f,d]),doReject:i.useCallback((async()=>{d(await f.reject())}),[f,d])}}function we(e,t){return i.useCallback((()=>e(t)),[e,t])}function xe({account:e,...t}){return u.jsx("b",{...t,children:e.preferred_username||e.email||e.sub})}function ke({url:e,proto:t=!1,host:n=!0,path:r=!1,query:a=!1,hash:l=!1,as:o="span",...s}){const c=i.useMemo((()=>new URL(e)),[e]);return u.jsxs(o,{...s,children:[t&&u.jsx(Se,{value:`${c.protocol}//`,...!0===t?null:t}),n&&u.jsx(Se,{value:c.host,...!0===n?{faded:!1,bold:!0}:n}),r&&u.jsx(Se,{value:c.pathname,...!0===r?null:r}),a&&u.jsx(Se,{value:c.search,...!0===a?null:a}),l&&u.jsx(Se,{value:c.hash,...!0===l?null:l})]})}function Se({value:e,faded:t=!0,bold:n=!1}){const r=n?"b":"span";return u.jsx(r,{className:t?"opacity-50":"",children:e})}function Ee({clientId:e,clientMetadata:t,as:n="span",...r}){return t.client_uri?u.jsx(ke,{as:n,...r,url:t.client_uri,proto:!0,path:!0}):u.jsx(n,{...r,children:e})}function Ce({clientId:e,clientMetadata:t,as:n="span",...r}){return t.client_name?u.jsx(n,{...r,children:t.client_name}):u.jsx(Ee,{clientId:e,clientMetadata:t,as:n,...r})}function _e({account:e,clientId:t,clientMetadata:n,clientTrusted:r,onAccept:a,acceptLabel:l="Accept",onReject:o,rejectLabel:i="Deny access",onBack:s,backLabel:c="Back",...f}){return u.jsxs("div",{...f,className:E("flex flex-col",f.className),children:[r&&n.logo_uri&&u.jsx("div",{className:"flex items-center justify-center mb-4",children:u.jsx("img",{crossOrigin:"anonymous",src:n.logo_uri,alt:n.client_name,className:"w-16 h-16 rounded-full"})}),u.jsx(Ce,{clientId:t,clientMetadata:n,as:"h1",className:"text-2xl font-semibold text-center text-primary"}),u.jsxs("p",{className:"mt-4",children:[u.jsx(Ee,{clientId:t,clientMetadata:n})," ","is asking for permission to access your"," ",u.jsx(xe,{account:e})," account."]}),u.jsxs("p",{className:"mt-4",children:["By clicking ",u.jsx("b",{children:l}),", you allow this application to access your information in accordance to its"," ",u.jsx("a",{href:n.tos_uri,rel:"nofollow noopener",target:"_blank",className:"text-primary underline",children:"terms of service"}),"."]}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-between",children:[u.jsx("button",{type:"button",onClick:a,className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",children:l}),s&&u.jsx("button",{type:"button",onClick:()=>s(),className:"mr-2 py-2 bg-transparent text-primary rounded-md font-light",children:c}),u.jsx("div",{className:"flex-auto"}),u.jsx("button",{type:"button",onClick:o,className:"mr-2 py-2 bg-transparent text-primary rounded-md font-light",children:i})]})]})}function Ne({clientId:e,clientMetadata:t,clientTrusted:n,session:r,onAccept:a,onReject:l,onBack:o}){const{account:i}=r;return u.jsx(C,{title:"Authorize",subtitle:u.jsxs(u.Fragment,{children:["Grant access to your"," ",u.jsx("b",{children:i.preferred_username||i.email||i.sub})," ","account."]}),children:u.jsx(_e,{className:"max-w-lg w-full",clientId:e,clientMetadata:t,clientTrusted:n,account:i,onBack:o,onAccept:a,onReject:l})})}function Pe({accounts:e,onAccount:t,accountAria:n=(e=>`Sign in as ${e.name}`),onOther:r,otherLabel:a="Other account",otherAria:l="Login to account that is not listed",onBack:o,backAria:i,backLabel:s=i,className:c,...f}){return u.jsxs("div",{...f,className:E("flex flex-col",c),children:[u.jsx("p",{className:"font-medium p-4",children:"Sign in as..."}),e.map((e=>{const[r,a]=[e.name,e.preferred_username,e.email,e.sub].filter(Boolean);return u.jsxs("button",{className:"cursor-pointer text-start flex items-center justify-between py-2 px-6 border-t border-b -mb-px hover:bg-slate-100 border-slate-200 dark:border-slate-700 dark:hover:bg-slate-900",onClick:()=>t(e),role:"button","aria-label":n(e),children:[u.jsxs("div",{className:"pr-2 flex items-center justify-start max-w-full overflow-hidden",children:[e.picture&&u.jsx("img",{crossOrigin:"anonymous",src:e.picture,alt:r,className:"w-8 h-8 mr-2 rounded-full"}),u.jsxs("div",{className:"min-w-0 my-2 flex-auto truncate",children:[u.jsx("span",{className:"font-semibold",children:r}),a&&u.jsx("span",{className:"ml-2 text-sm text-neutral-500 dark:text-neutral-400",children:a})]})]}),u.jsx("span",{className:"scale-x-50 font-semibold text-xl",children:">"})]},e.sub)})),r&&u.jsxs("button",{className:"cursor-pointer text-start flex items-center justify-between py-2 px-6 border-t border-b hover:bg-slate-100 border-slate-200 dark:border-slate-700 dark:hover:bg-slate-900",onClick:r,"aria-label":l,role:"button",children:[u.jsx("div",{className:"min-w-0 my-2 flex-auto truncate",children:a}),u.jsx("span",{className:"scale-x-50 font-semibold text-xl",children:">"})]}),u.jsx("div",{className:"flex-auto"}),o&&u.jsx("div",{className:"p-4 flex flex-wrap items-center justify-between",children:u.jsx("button",{type:"button",onClick:()=>o(),className:"py-2 bg-transparent text-primary rounded-md font-light","aria-label":i,children:s})})]})}function Te({message:e,role:t="alert",className:n,...r}){return u.jsxs("div",{...r,className:E("flex items-center rounded bg-error py-1 px-2 text-white dark:text-black shadow-md",n),role:t,children:[u.jsx("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:u.jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"})}),u.jsx("div",{className:"ml-4",children:u.jsx("p",{children:"string"==typeof e?e:"An unknown error occurred"})})]})}function je({title:e="Sign in",onSubmit:t,submitAria:n="Next",submitLabel:r=n,onCancel:a,cancelAria:l="Cancel",cancelLabel:o=l,usernameDefault:s="",usernameReadonly:c=!1,usernameLabel:f="Email address or handle",usernameAria:d=f,usernamePlaceholder:p=f,usernamePattern:m,usernameTitle:h="Username must not be empty",passwordLabel:g="Password",passwordAria:y=g,passwordPlaceholder:v=g,passwordPattern:b,passwordTitle:w="Password must not be empty",passwordWarning:x=u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"font-bold",children:"Warning"}),u.jsx("p",{className:"text-sm",children:"Please verify the domain name of the website before entering your password. Never enter your password on a domain you do not trust."})]}),rememberVisible:k=!0,rememberDefault:S=!1,rememberLabel:C="Remember this account on this device",rememberAria:_=C,className:N,...P}){const[T,j]=i.useState(!1),[z,L]=i.useState(!1),[R,O]=i.useState(null),M=i.useCallback((async e=>{e.preventDefault();const n={username:e.currentTarget.username.value,password:e.currentTarget.password.value,remember:e.currentTarget.remember?.checked};L(!0),O(null);try{await t(n)}catch(e){O(function(e){if("Invalid credentials"===(console.error("Sign-in failed:",e),e?.message))return"Invalid username or password";return"An unknown error occurred"}(e))}finally{L(!1)}}),[t,O,L]);return u.jsxs("form",{...P,className:E("flex flex-col",N),onSubmit:M,children:[u.jsx("p",{className:"font-medium p-4",children:e}),u.jsxs("fieldset",{className:"rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",disabled:z,children:[u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 text-center text-base leading-[1.6]",children:"@"}),u.jsx("input",{name:"username",type:"text",onChange:()=>O(null),className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100 disabled:text-gray-500",placeholder:p,"aria-label":d,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:s,readOnly:c,disabled:c,pattern:m,title:h})]}),u.jsx("hr",{className:"border-slate-200 dark:border-slate-700"}),u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 text-center text-2xl leading-[1.6]",children:"*"}),u.jsx("input",{name:"password",type:"password",onChange:()=>O(null),onFocus:()=>j(!0),onBlur:()=>setTimeout(j,100,!1),className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100",placeholder:v,"aria-label":y,autoCapitalize:"none",autoCorrect:"off",autoComplete:"current-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,pattern:b,title:w})]}),x&&u.jsxs(u.Fragment,{children:[u.jsx("hr",{className:"border-slate-200 dark:border-slate-700 transition-all",style:{borderTopWidth:T?"1px":"0px"}}),u.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 overflow-hidden transition-all",style:{display:"grid",gridTemplateRows:T?"1fr":"0fr"},children:u.jsxs("div",{className:"flex items-center justify-start overflow-hidden",children:[u.jsx("div",{className:"py-1 px-2",children:u.jsx("svg",{className:"fill-current h-4 w-4 text-error",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:u.jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"})})}),u.jsx("div",{className:"py-2 px-4",children:x})]})})]}),k&&u.jsxs(u.Fragment,{children:[u.jsx("hr",{className:"border-slate-200 dark:border-slate-700"}),u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 flex items-center justify-center",children:u.jsx("input",{className:"text-primary",id:"remember",name:"remember",type:"checkbox",defaultChecked:S,"aria-label":_,onChange:()=>O(null)})}),u.jsx("label",{htmlFor:"remember",className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6]",children:C})]})]})]}),R&&u.jsx(Te,{className:"mt-4",message:R}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-start",children:[u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",type:"submit",role:"Button","aria-label":n,disabled:z,children:r}),a&&u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-light",type:"button",role:"Button","aria-label":l,onClick:a,children:o}),u.jsx("div",{className:"flex-auto"})]})]})}function ze({loginHint:e,sessions:t,setSession:n,onSignIn:r,onBack:a}){const l=i.useMemo((()=>t.find((e=>e.selected))),[t]),o=i.useCallback((()=>n(null)),[n]),s=i.useMemo((()=>t.map((e=>e.account))),[t]),[c,f]=i.useState(0===t.length);return i.useEffect((()=>{l&&f(!1)}),[l]),l?l.loginRequired?u.jsx(C,{title:"Sign in",subtitle:"Confirm your password to continue",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:o,cancelAria:"Back",usernameDefault:l.account.preferred_username,usernameReadonly:!0,rememberDefault:!0})}):null:e?u.jsx(C,{title:"Sign in",subtitle:"Enter your password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:a,cancelAria:"Back",usernameDefault:e,usernameReadonly:!0})}):0===t.length?u.jsx(C,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:a,cancelAria:"Back"})}):c?u.jsx(C,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:()=>f(!1),cancelAria:"Back"})}):u.jsx(C,{title:"Sign in as...",subtitle:"Select an account to continue.",children:u.jsx(Pe,{className:"max-w-lg w-full",accounts:s,onAccount:e=>n(e.sub),onOther:()=>f(!0),onBack:a,backAria:"Back"})})}function Le({links:e,className:t,...n}){const r=e?.find((e=>"help"===e.rel));return r?u.jsxs("p",{className:E("text-sm rounded-md bg-slate-100 text-slate-800 dark:bg-slate-800 dark:text-slate-400 p-3",t),...n,children:["Having trouble?"," ",u.jsxs("a",{href:r.href,rel:r.rel,target:"_blank",className:"text-primary",children:["Contact ",r.title]})]}):null}function Re({onSubmit:e,submitAria:t="Next",submitLabel:n=t,onCancel:r,cancelAria:a="Cancel",cancelLabel:l=a,username:o="",usernameLabel:s="Username",usernameAria:c=s,usernamePlaceholder:f=s,usernamePattern:d,usernameTitle:p,passwordLabel:m="Password",passwordAria:h=m,passwordPlaceholder:g=m,passwordPattern:y,passwordTitle:v,className:b,children:w,...x}){const[k,S]=i.useState(!1),[C,_]=i.useState(null),N=i.useCallback((async t=>{t.preventDefault();const n={username:t.currentTarget.username.value,password:t.currentTarget.password.value};S(!0),_(null);try{await e(n)}catch(e){_(function(e){if("Invalid credentials"===e?.message)return"Invalid username or password";return console.error(e),"An unknown error occurred"}(e))}finally{S(!1)}}),[e,_,S]);return u.jsxs("form",{...x,className:E("flex flex-col",b),onSubmit:N,children:[u.jsxs("fieldset",{disabled:k,children:[u.jsx("label",{className:"text-sm font-medium",htmlFor:"username",children:s}),u.jsxs("div",{id:"username",className:"mb-4 relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-base",children:"@"}),u.jsx("input",{name:"username",type:"text",onChange:()=>_(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100 disabled:text-gray-500",placeholder:f,"aria-label":c,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:o,pattern:d,title:p})]}),u.jsx("label",{className:"text-sm font-medium",htmlFor:"password",children:m}),u.jsxs("div",{id:"password",className:"mb-4 relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-2xl font-light -mb-2",children:"*"}),u.jsx("input",{name:"password",type:"password",onChange:()=>_(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100",placeholder:g,"aria-label":h,autoCapitalize:"none",autoCorrect:"off",autoComplete:"new-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,pattern:y,title:v})]})]}),w&&u.jsx("div",{className:"mt-4",children:w}),C&&u.jsx(Te,{className:"mt-2",message:C}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-start",children:[u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",type:"submit",role:"Button","aria-label":t,disabled:k,children:n}),r&&u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-light",type:"button",role:"Button","aria-label":a,onClick:r,children:l}),u.jsx("div",{className:"flex-auto"})]})]})}function Oe({links:e,className:t,...n}){const r=e?.filter((e=>"privacy-policy"===e.rel||"terms-of-service"===e.rel));return u.jsxs("p",{className:E("text-sm text-slate-500",t),...n,children:["By creating an account you agree to the"," ",r&&r.length?r.map(((e,t,n)=>u.jsxs("span",{children:[t>0&&(t<n.length-1?", ":" and "),u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"text-primary underline",children:e.title})]},t))):"Terms of Service and Privacy Policy","."]})}function Me({stepName:e=((e,t)=>`Step ${e} of ${t}`),stepTitle:t=((e,t)=>1===e?"Your account":null),links:n,onSignUp:r,onBack:a}){const[l,o]=i.useState(null),[s,c]=i.useState(1),f=i.useCallback((e=>{o(e),c(2)}),[r,o,c]);return u.jsx(C,{title:"Create Account",subtitle:"We're so excited to have you join us!",children:u.jsxs("div",{className:"max-w-lg w-full flex flex-col",children:[u.jsx("p",{className:"mt-4 text-slate-400 dark:text-slate-600",children:e(s,2)}),u.jsx("h2",{className:"font-medium text-xl mb-4",children:t(s,2)}),1===s&&u.jsx(Re,{className:"flex-grow",onSubmit:f,onCancel:a,cancelLabel:"Back",children:u.jsx(Oe,{links:n})}),2===s&&u.jsx("button",{type:"button",className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-slate-700 bg-slate-100 hover:bg-slate-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",onClick:()=>c(1),children:"Back"}),u.jsx(Le,{className:"mb-4",links:n})]})})}function Fe({name:e,logo:t,logoAlt:n=e||"Logo",links:r,children:a}){return u.jsxs("div",{className:"min-h-screen w-full flex items-center justify-center flex-col bg-white text-slate-900 dark:bg-slate-900 dark:text-slate-100",children:[u.jsxs("div",{className:"w-full max-w-screen-sm overflow-hidden flex-grow flex flex-col items-center justify-center",children:[t&&u.jsx("img",{src:t,alt:n,className:"w-16 h-16 md:w-24 md:h-24 mb-8"}),e&&u.jsx("h1",{className:"text-2xl md:text-4xl mb-8 mx-4 text-center font-bold",children:e}),a]}),null!=r&&r.length>0&&u.jsx("nav",{className:"w-full max-w-screen-sm overflow-hidden mt-4 border-t border-t-slate-200 dark:border-t-slate-700 flex flex-wrap justify-center",children:r.map((e=>u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"m-2 md:m-4 text-xs md:text-sm text-primary hover:underline",children:e.title},e.href)))})]})}function De({onSignUp:e,signUpLabel:t="Create a new account",onSignIn:n,signInLabel:r="Sign in",onCancel:a,cancelLabel:l="Cancel",...o}){return u.jsxs(Fe,{...o,children:[e&&u.jsx("button",{className:E("m-1 w-60 max-w-full text-white py-2 px-4 rounded-full truncate",n?"bg-primary":"bg-slate-400"),onClick:e,children:t}),n&&u.jsx("button",{className:E("m-1 w-60 max-w-full py-2 px-4 rounded-full truncate",e?"bg-slate-100 dark:bg-slate-700":"bg-primary"),onClick:n,children:r}),a&&u.jsx("button",{className:"m-1 w-60 max-w-full bg-transparent text-primary py-2 px-4 rounded-full truncate font-light",onClick:a,children:l})]})}function Ie({authorizeData:e,customizationData:t}){const n=null!=e?.loginHint,[r,a]=i.useState(n?"sign-in":"welcome"),l=we(a,"done"),o=we(a,"sign-in"),s=we(a,"accept"),c=we(a,"welcome"),{sessions:f,setSession:d,doAccept:p,doReject:m,doSignIn:h,doSignUp:g}=be(e,{onRedirected:l}),y=f.find((e=>e.selected&&!e.loginRequired));return i.useEffect((()=>{y&&(y.consentRequired?s():p(y.account))}),[y,p,s]),"welcome"===r?u.jsx(De,{name:t?.name,logo:t?.logo,links:t?.links,onSignIn:o,onCancel:m}):"sign-up"===r?u.jsx(Me,{links:t?.links,onSignUp:g,onBack:c}):"sign-in"===r?u.jsx(ze,{loginHint:e.loginHint,sessions:f,setSession:d,onSignIn:h,onBack:n?m:c}):"accept"===r&&y?u.jsx(Ne,{session:y,clientId:e.clientId,clientMetadata:e.clientMetadata,clientTrusted:e.clientTrusted,onAccept:()=>p(y.account),onReject:m,onBack:()=>{d(null),a(f.length?"sign-in":"welcome")}}):u.jsx(C,{title:"Login complete",children:"You are being redirected..."})}function Ue({errorData:e,customizationData:t}){return u.jsx(Fe,{...t,children:u.jsx(Te,{message:Ae(e)})})}function Ae(e){const t=e?.error_description;switch(t){case"Unknown request_uri":case"This request has expired":return"This sign-in session has expired";default:return t||"An unknown error occurred"}}const{authorizeData:Be}=g;if(Be){const e=new URL(window.location.href);"/oauth/authorize"!==e.pathname||e.searchParams.has("request_uri")||(e.search="",e.searchParams.set("client_id",Be.clientId),e.searchParams.set("request_uri",Be.requestUri),window.history.replaceState(history.state,"",e.pathname+e.search))}k(document.getElementById("root")).render(u.jsx((function({authorizeData:e,customizationData:t,errorData:n}){return e&&!n?u.jsx(Ie,{customizationData:t,authorizeData:e}):u.jsx(Ue,{customizationData:t,errorData:n})}),{...g}))}();
20
+ //# sourceMappingURL=main.js.map