@bylqwjc/media-editor-react 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/index.cjs +282 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +54 -0
  6. package/dist/index.d.ts +54 -0
  7. package/dist/index.js +240 -0
  8. package/dist/index.js.map +1 -0
  9. package/filerobot.css +1669 -0
  10. package/node_modules/@media-editor/client/LICENSE +21 -0
  11. package/node_modules/@media-editor/client/README.md +27 -0
  12. package/node_modules/@media-editor/client/dist/index.cjs +60 -0
  13. package/node_modules/@media-editor/client/dist/index.cjs.map +1 -0
  14. package/node_modules/@media-editor/client/dist/index.d.cts +24 -0
  15. package/node_modules/@media-editor/client/dist/index.d.ts +24 -0
  16. package/node_modules/@media-editor/client/dist/index.js +35 -0
  17. package/node_modules/@media-editor/client/dist/index.js.map +1 -0
  18. package/node_modules/@media-editor/client/package.json +23 -0
  19. package/node_modules/@media-editor/core/LICENSE +21 -0
  20. package/node_modules/@media-editor/core/README.md +14 -0
  21. package/node_modules/@media-editor/core/dist/browser.cjs +505 -0
  22. package/node_modules/@media-editor/core/dist/browser.cjs.map +1 -0
  23. package/node_modules/@media-editor/core/dist/browser.d.cts +100 -0
  24. package/node_modules/@media-editor/core/dist/browser.d.ts +100 -0
  25. package/node_modules/@media-editor/core/dist/browser.js +883 -0
  26. package/node_modules/@media-editor/core/dist/browser.js.map +1 -0
  27. package/node_modules/@media-editor/core/dist/chunk-MGKYVYOH.js +371 -0
  28. package/node_modules/@media-editor/core/dist/chunk-MGKYVYOH.js.map +1 -0
  29. package/node_modules/@media-editor/core/dist/chunk-USY6UDGL.js +87 -0
  30. package/node_modules/@media-editor/core/dist/chunk-USY6UDGL.js.map +1 -0
  31. package/node_modules/@media-editor/core/dist/chunk-XCBM7P7N.js +592 -0
  32. package/node_modules/@media-editor/core/dist/chunk-XCBM7P7N.js.map +1 -0
  33. package/node_modules/@media-editor/core/dist/engine.cjs +540 -0
  34. package/node_modules/@media-editor/core/dist/engine.cjs.map +1 -0
  35. package/node_modules/@media-editor/core/dist/engine.d.cts +325 -0
  36. package/node_modules/@media-editor/core/dist/engine.d.ts +359 -0
  37. package/node_modules/@media-editor/core/dist/engine.js +315 -0
  38. package/node_modules/@media-editor/core/dist/engine.js.map +1 -0
  39. package/node_modules/@media-editor/core/dist/filerobot.cjs +818 -0
  40. package/node_modules/@media-editor/core/dist/filerobot.cjs.map +1 -0
  41. package/node_modules/@media-editor/core/dist/filerobot.d.cts +88 -0
  42. package/node_modules/@media-editor/core/dist/filerobot.d.ts +88 -0
  43. package/node_modules/@media-editor/core/dist/filerobot.js +473 -0
  44. package/node_modules/@media-editor/core/dist/filerobot.js.map +1 -0
  45. package/node_modules/@media-editor/core/dist/index.cjs +1276 -0
  46. package/node_modules/@media-editor/core/dist/index.cjs.map +1 -0
  47. package/node_modules/@media-editor/core/dist/index.d.cts +242 -0
  48. package/node_modules/@media-editor/core/dist/index.d.ts +264 -0
  49. package/node_modules/@media-editor/core/dist/index.js +682 -0
  50. package/node_modules/@media-editor/core/dist/index.js.map +1 -0
  51. package/node_modules/@media-editor/core/dist/platform-presets-B-o4C6uY.d.cts +80 -0
  52. package/node_modules/@media-editor/core/dist/platform-presets-B-o4C6uY.d.ts +80 -0
  53. package/node_modules/@media-editor/core/dist/state-B85vkf7_.d.cts +936 -0
  54. package/node_modules/@media-editor/core/dist/state-B85vkf7_.d.ts +1027 -0
  55. package/node_modules/@media-editor/core/node_modules/zod/LICENSE +21 -0
  56. package/node_modules/@media-editor/core/node_modules/zod/README.md +208 -0
  57. package/node_modules/@media-editor/core/node_modules/zod/index.cjs +33 -0
  58. package/node_modules/@media-editor/core/node_modules/zod/index.d.cts +4 -0
  59. package/node_modules/@media-editor/core/node_modules/zod/index.d.ts +4 -0
  60. package/node_modules/@media-editor/core/node_modules/zod/index.js +4 -0
  61. package/node_modules/@media-editor/core/node_modules/zod/package.json +118 -0
  62. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.cjs +138 -0
  63. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.d.cts +164 -0
  64. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.d.ts +164 -0
  65. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.js +133 -0
  66. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.cjs +17 -0
  67. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.d.cts +5 -0
  68. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.d.ts +5 -0
  69. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.js +9 -0
  70. package/node_modules/@media-editor/core/node_modules/zod/v3/external.cjs +22 -0
  71. package/node_modules/@media-editor/core/node_modules/zod/v3/external.d.cts +6 -0
  72. package/node_modules/@media-editor/core/node_modules/zod/v3/external.d.ts +6 -0
  73. package/node_modules/@media-editor/core/node_modules/zod/v3/external.js +6 -0
  74. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  75. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  76. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  77. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  78. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  79. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  80. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  81. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  82. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  83. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  84. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  85. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  86. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  87. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  88. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  89. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  90. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  91. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  92. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  93. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  94. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.cjs +137 -0
  95. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
  96. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.d.ts +85 -0
  97. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.js +133 -0
  98. package/node_modules/@media-editor/core/node_modules/zod/v3/index.cjs +33 -0
  99. package/node_modules/@media-editor/core/node_modules/zod/v3/index.d.cts +4 -0
  100. package/node_modules/@media-editor/core/node_modules/zod/v3/index.d.ts +4 -0
  101. package/node_modules/@media-editor/core/node_modules/zod/v3/index.js +4 -0
  102. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.cjs +111 -0
  103. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.d.cts +3 -0
  104. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.d.ts +3 -0
  105. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.js +109 -0
  106. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.cjs +2 -0
  107. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
  108. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.d.ts +102 -0
  109. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.js +1 -0
  110. package/node_modules/@media-editor/core/node_modules/zod/v3/types.cjs +3775 -0
  111. package/node_modules/@media-editor/core/node_modules/zod/v3/types.d.cts +1031 -0
  112. package/node_modules/@media-editor/core/node_modules/zod/v3/types.d.ts +1031 -0
  113. package/node_modules/@media-editor/core/node_modules/zod/v3/types.js +3693 -0
  114. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.cjs +32 -0
  115. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.d.cts +1 -0
  116. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.d.ts +1 -0
  117. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/checks.js +1 -0
  118. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.cjs +47 -0
  119. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  120. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  121. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/coerce.js +17 -0
  122. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.cjs +57 -0
  123. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.d.cts +46 -0
  124. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.d.ts +46 -0
  125. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/compat.js +27 -0
  126. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.cjs +67 -0
  127. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.d.cts +30 -0
  128. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.d.ts +30 -0
  129. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/errors.js +41 -0
  130. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.cjs +70 -0
  131. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.d.cts +13 -0
  132. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.d.ts +13 -0
  133. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/external.js +18 -0
  134. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.cjs +33 -0
  135. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.d.cts +4 -0
  136. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.d.ts +4 -0
  137. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/index.js +4 -0
  138. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.cjs +60 -0
  139. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.d.cts +22 -0
  140. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.d.ts +22 -0
  141. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/iso.js +30 -0
  142. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.cjs +32 -0
  143. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.d.cts +23 -0
  144. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.d.ts +23 -0
  145. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/parse.js +6 -0
  146. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  147. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  148. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  149. package/node_modules/@media-editor/core/node_modules/zod/v4/classic/schemas.js +1006 -0
  150. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.cjs +1039 -0
  151. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.d.cts +284 -0
  152. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.d.ts +284 -0
  153. package/node_modules/@media-editor/core/node_modules/zod/v4/core/api.js +906 -0
  154. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.cjs +591 -0
  155. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.d.cts +278 -0
  156. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.d.ts +278 -0
  157. package/node_modules/@media-editor/core/node_modules/zod/v4/core/checks.js +565 -0
  158. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.cjs +67 -0
  159. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.d.cts +49 -0
  160. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.d.ts +49 -0
  161. package/node_modules/@media-editor/core/node_modules/zod/v4/core/core.js +61 -0
  162. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.cjs +39 -0
  163. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.d.cts +14 -0
  164. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.d.ts +14 -0
  165. package/node_modules/@media-editor/core/node_modules/zod/v4/core/doc.js +35 -0
  166. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.cjs +226 -0
  167. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.d.cts +208 -0
  168. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.d.ts +208 -0
  169. package/node_modules/@media-editor/core/node_modules/zod/v4/core/errors.js +195 -0
  170. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.cjs +102 -0
  171. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.d.cts +52 -0
  172. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.d.ts +52 -0
  173. package/node_modules/@media-editor/core/node_modules/zod/v4/core/function.js +75 -0
  174. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.cjs +44 -0
  175. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.d.cts +15 -0
  176. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.d.ts +15 -0
  177. package/node_modules/@media-editor/core/node_modules/zod/v4/core/index.js +15 -0
  178. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.cjs +2 -0
  179. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  180. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  181. package/node_modules/@media-editor/core/node_modules/zod/v4/core/json-schema.js +1 -0
  182. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.cjs +87 -0
  183. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.d.cts +25 -0
  184. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.d.ts +25 -0
  185. package/node_modules/@media-editor/core/node_modules/zod/v4/core/parse.js +57 -0
  186. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.cjs +103 -0
  187. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.d.cts +62 -0
  188. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.d.ts +62 -0
  189. package/node_modules/@media-editor/core/node_modules/zod/v4/core/regexes.js +95 -0
  190. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.cjs +56 -0
  191. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.d.cts +35 -0
  192. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.d.ts +35 -0
  193. package/node_modules/@media-editor/core/node_modules/zod/v4/core/registries.js +51 -0
  194. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.cjs +1748 -0
  195. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  196. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  197. package/node_modules/@media-editor/core/node_modules/zod/v4/core/schemas.js +1717 -0
  198. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  199. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  200. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  201. package/node_modules/@media-editor/core/node_modules/zod/v4/core/standard-schema.js +1 -0
  202. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  203. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  204. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  205. package/node_modules/@media-editor/core/node_modules/zod/v4/core/to-json-schema.js +849 -0
  206. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.cjs +539 -0
  207. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.d.cts +183 -0
  208. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.d.ts +183 -0
  209. package/node_modules/@media-editor/core/node_modules/zod/v4/core/util.js +493 -0
  210. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.cjs +8 -0
  211. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.d.cts +5 -0
  212. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.d.ts +5 -0
  213. package/node_modules/@media-editor/core/node_modules/zod/v4/core/versions.js +5 -0
  214. package/node_modules/@media-editor/core/node_modules/zod/v4/index.cjs +22 -0
  215. package/node_modules/@media-editor/core/node_modules/zod/v4/index.d.cts +3 -0
  216. package/node_modules/@media-editor/core/node_modules/zod/v4/index.d.ts +3 -0
  217. package/node_modules/@media-editor/core/node_modules/zod/v4/index.js +3 -0
  218. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.cjs +142 -0
  219. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.d.cts +4 -0
  220. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.d.ts +4 -0
  221. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ar.js +116 -0
  222. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.cjs +141 -0
  223. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.d.cts +4 -0
  224. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.d.ts +4 -0
  225. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/az.js +115 -0
  226. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.cjs +190 -0
  227. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.d.cts +4 -0
  228. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.d.ts +4 -0
  229. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/be.js +164 -0
  230. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.cjs +144 -0
  231. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.d.cts +4 -0
  232. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.d.ts +4 -0
  233. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ca.js +118 -0
  234. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.cjs +161 -0
  235. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.d.cts +4 -0
  236. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.d.ts +4 -0
  237. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/cs.js +135 -0
  238. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.cjs +142 -0
  239. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.d.cts +4 -0
  240. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.d.ts +4 -0
  241. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/de.js +116 -0
  242. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.cjs +145 -0
  243. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.d.cts +5 -0
  244. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.d.ts +5 -0
  245. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/en.js +117 -0
  246. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.cjs +144 -0
  247. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.d.cts +5 -0
  248. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.d.ts +5 -0
  249. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/eo.js +116 -0
  250. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.cjs +143 -0
  251. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.d.cts +4 -0
  252. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.d.ts +4 -0
  253. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/es.js +117 -0
  254. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.cjs +148 -0
  255. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.d.cts +4 -0
  256. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.d.ts +4 -0
  257. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fa.js +122 -0
  258. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.cjs +148 -0
  259. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.d.cts +4 -0
  260. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.d.ts +4 -0
  261. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fi.js +122 -0
  262. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  263. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  264. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  265. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr-CA.js +117 -0
  266. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.cjs +142 -0
  267. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.d.cts +4 -0
  268. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.d.ts +4 -0
  269. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/fr.js +116 -0
  270. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.cjs +143 -0
  271. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.d.cts +4 -0
  272. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.d.ts +4 -0
  273. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/he.js +117 -0
  274. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.cjs +143 -0
  275. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.d.cts +4 -0
  276. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.d.ts +4 -0
  277. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/hu.js +117 -0
  278. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.cjs +142 -0
  279. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.d.cts +4 -0
  280. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.d.ts +4 -0
  281. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/id.js +116 -0
  282. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.cjs +84 -0
  283. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.d.cts +39 -0
  284. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.d.ts +39 -0
  285. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/index.js +39 -0
  286. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.cjs +143 -0
  287. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.d.cts +4 -0
  288. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.d.ts +4 -0
  289. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/it.js +117 -0
  290. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.cjs +141 -0
  291. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.d.cts +4 -0
  292. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.d.ts +4 -0
  293. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ja.js +115 -0
  294. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.cjs +143 -0
  295. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.d.cts +4 -0
  296. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.d.ts +4 -0
  297. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/kh.js +117 -0
  298. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.cjs +147 -0
  299. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.d.cts +4 -0
  300. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.d.ts +4 -0
  301. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ko.js +121 -0
  302. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.cjs +144 -0
  303. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.d.cts +4 -0
  304. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.d.ts +4 -0
  305. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/mk.js +118 -0
  306. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.cjs +142 -0
  307. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.d.cts +4 -0
  308. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.d.ts +4 -0
  309. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ms.js +116 -0
  310. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.cjs +143 -0
  311. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.d.cts +4 -0
  312. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.d.ts +4 -0
  313. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/nl.js +117 -0
  314. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.cjs +142 -0
  315. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.d.cts +4 -0
  316. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.d.ts +4 -0
  317. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/no.js +116 -0
  318. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.cjs +143 -0
  319. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.d.cts +4 -0
  320. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.d.ts +4 -0
  321. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ota.js +117 -0
  322. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.cjs +143 -0
  323. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.d.cts +4 -0
  324. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.d.ts +4 -0
  325. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pl.js +117 -0
  326. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.cjs +148 -0
  327. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.d.cts +4 -0
  328. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.d.ts +4 -0
  329. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ps.js +122 -0
  330. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.cjs +142 -0
  331. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.d.cts +4 -0
  332. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.d.ts +4 -0
  333. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/pt.js +116 -0
  334. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.cjs +190 -0
  335. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.d.cts +4 -0
  336. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.d.ts +4 -0
  337. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ru.js +164 -0
  338. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.cjs +143 -0
  339. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.d.cts +4 -0
  340. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.d.ts +4 -0
  341. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sl.js +117 -0
  342. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.cjs +144 -0
  343. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.d.cts +4 -0
  344. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.d.ts +4 -0
  345. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/sv.js +118 -0
  346. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.cjs +143 -0
  347. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.d.cts +4 -0
  348. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.d.ts +4 -0
  349. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ta.js +117 -0
  350. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.cjs +143 -0
  351. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.d.cts +4 -0
  352. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.d.ts +4 -0
  353. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/th.js +117 -0
  354. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.cjs +143 -0
  355. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.d.cts +5 -0
  356. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.d.ts +5 -0
  357. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/tr.js +115 -0
  358. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.cjs +143 -0
  359. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.d.cts +4 -0
  360. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.d.ts +4 -0
  361. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ua.js +117 -0
  362. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.cjs +143 -0
  363. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.d.cts +4 -0
  364. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.d.ts +4 -0
  365. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/ur.js +117 -0
  366. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.cjs +142 -0
  367. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.d.cts +4 -0
  368. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.d.ts +4 -0
  369. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/vi.js +116 -0
  370. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  371. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  372. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  373. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-CN.js +116 -0
  374. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  375. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  376. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  377. package/node_modules/@media-editor/core/node_modules/zod/v4/locales/zh-TW.js +117 -0
  378. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.cjs +34 -0
  379. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.d.cts +1 -0
  380. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.d.ts +1 -0
  381. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/checks.js +1 -0
  382. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.cjs +47 -0
  383. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  384. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  385. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/coerce.js +17 -0
  386. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.cjs +62 -0
  387. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.d.cts +11 -0
  388. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.d.ts +11 -0
  389. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/external.js +13 -0
  390. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.cjs +32 -0
  391. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.d.cts +3 -0
  392. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.d.ts +3 -0
  393. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/index.js +3 -0
  394. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.cjs +60 -0
  395. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.d.cts +22 -0
  396. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.d.ts +22 -0
  397. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/iso.js +30 -0
  398. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.cjs +8 -0
  399. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.d.cts +1 -0
  400. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.d.ts +1 -0
  401. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/parse.js +1 -0
  402. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.cjs +839 -0
  403. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  404. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  405. package/node_modules/@media-editor/core/node_modules/zod/v4/mini/schemas.js +732 -0
  406. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.cjs +17 -0
  407. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.d.cts +1 -0
  408. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.d.ts +1 -0
  409. package/node_modules/@media-editor/core/node_modules/zod/v4-mini/index.js +1 -0
  410. package/node_modules/@media-editor/core/package.json +42 -0
  411. package/node_modules/@media-editor/image/LICENSE +21 -0
  412. package/node_modules/@media-editor/image/README.md +48 -0
  413. package/node_modules/@media-editor/image/dist/chunk-5TBO732O.js +1 -0
  414. package/node_modules/@media-editor/image/dist/index-CU3vkvDR.d.ts +44 -0
  415. package/node_modules/@media-editor/image/dist/index.css +1 -0
  416. package/node_modules/@media-editor/image/dist/index.d.ts +2 -0
  417. package/node_modules/@media-editor/image/dist/index.js +364 -0
  418. package/node_modules/@media-editor/image/dist/lazy.css +1 -0
  419. package/node_modules/@media-editor/image/dist/lazy.d.ts +8 -0
  420. package/node_modules/@media-editor/image/dist/lazy.js +1 -0
  421. package/node_modules/@media-editor/image/package.json +29 -0
  422. package/node_modules/@media-editor/video/LICENSE +21 -0
  423. package/node_modules/@media-editor/video/README.md +55 -0
  424. package/node_modules/@media-editor/video/dist/chunk-EK7ODJWE.js +1 -0
  425. package/node_modules/@media-editor/video/dist/index-CX2iAapm.d.ts +51 -0
  426. package/node_modules/@media-editor/video/dist/index.d.ts +4 -0
  427. package/node_modules/@media-editor/video/dist/index.js +16919 -0
  428. package/node_modules/@media-editor/video/dist/lazy.d.ts +10 -0
  429. package/node_modules/@media-editor/video/dist/lazy.js +1 -0
  430. package/node_modules/@media-editor/video/dist/legacy.js +65 -0
  431. package/node_modules/@media-editor/video/package.json +29 -0
  432. package/package.json +48 -0
  433. package/style.css +1 -0
  434. package/theme.css +1214 -0
@@ -0,0 +1,65 @@
1
+ import {a,b}from'./chunk-EK7ODJWE.js';import {VideoEditorEngine}from'@media-editor/core/engine';export{VideoEditorEngine}from'@media-editor/core/engine';import {createEditorClient}from'@media-editor/client';import {createFullscreenToggle,buildVideoExportFormData,loadOverlayImages,drawVideoFrame,getOverlayRotation,drawOverlays,hitTestOverlay,translateOverlay,fitStickerBox,overlayBBox,scaleOverlay,rotateOverlay}from'@media-editor/core/browser';import {totalDuration,contentDuration,locateOutput,outputSize,rotatedSize,clipStartsAt,clipDuration,FILTER_PRESETS,evenize,tEditor,defaultVideoEditState,VIDEO_RATIO_PRESETS,centeredMaxRect,trimClipEdge,clampAudioClip,reorderClips,DEG2RAD,fitRects,clampRect}from'@media-editor/core';var Hs=a(J=>{var co=Symbol.for("react.transitional.element"),ah=Symbol.for("react.portal"),ih=Symbol.for("react.fragment"),uh=Symbol.for("react.strict_mode"),ch=Symbol.for("react.profiler"),oh=Symbol.for("react.consumer"),rh=Symbol.for("react.context"),fh=Symbol.for("react.forward_ref"),sh=Symbol.for("react.suspense"),dh=Symbol.for("react.memo"),Cs=Symbol.for("react.lazy"),mh=Symbol.for("react.activity"),Ms=Symbol.iterator;function vh(t){return t===null||typeof t!="object"?null:(t=Ms&&t[Ms]||t["@@iterator"],typeof t=="function"?t:null)}var Rs={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ws=Object.assign,Ds={};function ua(t,e,l){this.props=t,this.context=e,this.refs=Ds,this.updater=l||Rs;}ua.prototype.isReactComponent={};ua.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState");};ua.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate");};function Ns(){}Ns.prototype=ua.prototype;function oo(t,e,l){this.props=t,this.context=e,this.refs=Ds,this.updater=l||Rs;}var ro=oo.prototype=new Ns;ro.constructor=oo;ws(ro,ua.prototype);ro.isPureReactComponent=true;var zs=Array.isArray;function uo(){}var bt={H:null,A:null,T:null,S:null},_s=Object.prototype.hasOwnProperty;function fo(t,e,l){var n=l.ref;return {$$typeof:co,type:t,key:e,ref:n!==void 0?n:null,props:l}}function hh(t,e){return fo(t.type,e,t.props)}function so(t){return typeof t=="object"&&t!==null&&t.$$typeof===co}function ph(t){var e={"=":"=0",":":"=2"};return "$"+t.replace(/[=:]/g,function(l){return e[l]})}var As=/\/+/g;function io(t,e){return typeof t=="object"&&t!==null&&t.key!=null?ph(""+t.key):e.toString(36)}function yh(t){switch(t.status){case "fulfilled":return t.value;case "rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(uo,uo):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e);},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e);})),t.status){case "fulfilled":return t.value;case "rejected":throw t.reason}}throw t}function ia(t,e,l,n,a){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var u=false;if(t===null)u=true;else switch(i){case "bigint":case "string":case "number":u=true;break;case "object":switch(t.$$typeof){case co:case ah:u=true;break;case Cs:return u=t._init,ia(u(t._payload),e,l,n,a)}}if(u)return a=a(t),u=n===""?"."+io(t,0):n,zs(a)?(l="",u!=null&&(l=u.replace(As,"$&/")+"/"),ia(a,e,l,"",function(s){return s})):a!=null&&(so(a)&&(a=hh(a,l+(a.key==null||t&&t.key===a.key?"":(""+a.key).replace(As,"$&/")+"/")+u)),e.push(a)),1;u=0;var c=n===""?".":n+":";if(zs(t))for(var o=0;o<t.length;o++)n=t[o],i=c+io(n,o),u+=ia(n,e,l,i,a);else if(o=vh(t),typeof o=="function")for(t=o.call(t),o=0;!(n=t.next()).done;)n=n.value,i=c+io(n,o++),u+=ia(n,e,l,i,a);else if(i==="object"){if(typeof t.then=="function")return ia(yh(t),e,l,n,a);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return u}function du(t,e,l){if(t==null)return t;var n=[],a=0;return ia(t,n,"","",function(i){return e.call(l,i,a++)}),n}function gh(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l);},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l);}),t._status===-1&&(t._status=0,t._result=e);}if(t._status===1)return t._result.default;throw t._result}var Os=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},bh={map:du,forEach:function(t,e,l){du(t,function(){e.apply(this,arguments);},l);},count:function(t){var e=0;return du(t,function(){e++;}),e},toArray:function(t){return du(t,function(e){return e})||[]},only:function(t){if(!so(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};J.Activity=mh;J.Children=bh;J.Component=ua;J.Fragment=ih;J.Profiler=ch;J.PureComponent=oo;J.StrictMode=uh;J.Suspense=sh;J.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=bt;J.__COMPILER_RUNTIME={__proto__:null,c:function(t){return bt.H.useMemoCache(t)}};J.cache=function(t){return function(){return t.apply(null,arguments)}};J.cacheSignal=function(){return null};J.cloneElement=function(t,e,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=ws({},t.props),a=t.key;if(e!=null)for(i in e.key!==void 0&&(a=""+e.key),e)!_s.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(n[i]=e[i]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];n.children=u;}return fo(t.type,a,n)};J.createContext=function(t){return t={$$typeof:rh,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:oh,_context:t},t};J.createElement=function(t,e,l){var n,a={},i=null;if(e!=null)for(n in e.key!==void 0&&(i=""+e.key),e)_s.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=e[n]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var c=Array(u),o=0;o<u;o++)c[o]=arguments[o+2];a.children=c;}if(t&&t.defaultProps)for(n in u=t.defaultProps,u)a[n]===void 0&&(a[n]=u[n]);return fo(t,i,a)};J.createRef=function(){return {current:null}};J.forwardRef=function(t){return {$$typeof:fh,render:t}};J.isValidElement=so;J.lazy=function(t){return {$$typeof:Cs,_payload:{_status:-1,_result:t},_init:gh}};J.memo=function(t,e){return {$$typeof:dh,type:t,compare:e===void 0?null:e}};J.startTransition=function(t){var e=bt.T,l={};bt.T=l;try{var n=t(),a=bt.S;a!==null&&a(l,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(uo,Os);}catch(i){Os(i);}finally{e!==null&&l.types!==null&&(e.types=l.types),bt.T=e;}};J.unstable_useCacheRefresh=function(){return bt.H.useCacheRefresh()};J.use=function(t){return bt.H.use(t)};J.useActionState=function(t,e,l){return bt.H.useActionState(t,e,l)};J.useCallback=function(t,e){return bt.H.useCallback(t,e)};J.useContext=function(t){return bt.H.useContext(t)};J.useDebugValue=function(){};J.useDeferredValue=function(t,e){return bt.H.useDeferredValue(t,e)};J.useEffect=function(t,e){return bt.H.useEffect(t,e)};J.useEffectEvent=function(t){return bt.H.useEffectEvent(t)};J.useId=function(){return bt.H.useId()};J.useImperativeHandle=function(t,e,l){return bt.H.useImperativeHandle(t,e,l)};J.useInsertionEffect=function(t,e){return bt.H.useInsertionEffect(t,e)};J.useLayoutEffect=function(t,e){return bt.H.useLayoutEffect(t,e)};J.useMemo=function(t,e){return bt.H.useMemo(t,e)};J.useOptimistic=function(t,e){return bt.H.useOptimistic(t,e)};J.useReducer=function(t,e,l){return bt.H.useReducer(t,e,l)};J.useRef=function(t){return bt.H.useRef(t)};J.useState=function(t){return bt.H.useState(t)};J.useSyncExternalStore=function(t,e,l){return bt.H.useSyncExternalStore(t,e,l)};J.useTransition=function(){return bt.H.useTransition()};J.version="19.2.7";});var il=a((r2,Us)=>{Us.exports=Hs();});var Qs=a(Mt=>{function po(t,e){var l=t.length;t.push(e);t:for(;0<l;){var n=l-1>>>1,a=t[n];if(0<mu(a,e))t[n]=e,t[l]=a,l=n;else break t}}function hl(t){return t.length===0?null:t[0]}function hu(t){if(t.length===0)return null;var e=t[0],l=t.pop();if(l!==e){t[0]=l;t:for(var n=0,a=t.length,i=a>>>1;n<i;){var u=2*(n+1)-1,c=t[u],o=u+1,s=t[o];if(0>mu(c,l))o<a&&0>mu(s,c)?(t[n]=s,t[o]=l,n=o):(t[n]=c,t[u]=l,n=u);else if(o<a&&0>mu(s,l))t[n]=s,t[o]=l,n=o;else break t}}return e}function mu(t,e){var l=t.sortIndex-e.sortIndex;return l!==0?l:t.id-e.id}Mt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Ls=performance,Mt.unstable_now=function(){return Ls.now()}):(mo=Date,Vs=mo.now(),Mt.unstable_now=function(){return mo.now()-Vs});var Ls,mo,Vs,Cl=[],Fl=[],Sh=1,Xe=null,ae=3,yo=false,ni=false,ai=false,go=false,qs=typeof setTimeout=="function"?setTimeout:null,Xs=typeof clearTimeout=="function"?clearTimeout:null,Bs=typeof setImmediate<"u"?setImmediate:null;function vu(t){for(var e=hl(Fl);e!==null;){if(e.callback===null)hu(Fl);else if(e.startTime<=t)hu(Fl),e.sortIndex=e.expirationTime,po(Cl,e);else break;e=hl(Fl);}}function bo(t){if(ai=false,vu(t),!ni)if(hl(Cl)!==null)ni=true,oa||(oa=true,ca());else {var e=hl(Fl);e!==null&&So(bo,e.startTime-t);}}var oa=false,ii=-1,js=5,Gs=-1;function Zs(){return go?true:!(Mt.unstable_now()-Gs<js)}function vo(){if(go=false,oa){var t=Mt.unstable_now();Gs=t;var e=true;try{t:{ni=!1,ai&&(ai=!1,Xs(ii),ii=-1),yo=!0;var l=ae;try{e:{for(vu(t),Xe=hl(Cl);Xe!==null&&!(Xe.expirationTime>t&&Zs());){var n=Xe.callback;if(typeof n=="function"){Xe.callback=null,ae=Xe.priorityLevel;var a=n(Xe.expirationTime<=t);if(t=Mt.unstable_now(),typeof a=="function"){Xe.callback=a,vu(t),e=!0;break e}Xe===hl(Cl)&&hu(Cl),vu(t);}else hu(Cl);Xe=hl(Cl);}if(Xe!==null)e=!0;else {var i=hl(Fl);i!==null&&So(bo,i.startTime-t),e=!1;}}break t}finally{Xe=null,ae=l,yo=!1;}e=void 0;}}finally{e?ca():oa=false;}}}var ca;typeof Bs=="function"?ca=function(){Bs(vo);}:typeof MessageChannel<"u"?(ho=new MessageChannel,Ys=ho.port2,ho.port1.onmessage=vo,ca=function(){Ys.postMessage(null);}):ca=function(){qs(vo,0);};var ho,Ys;function So(t,e){ii=qs(function(){t(Mt.unstable_now());},e);}Mt.unstable_IdlePriority=5;Mt.unstable_ImmediatePriority=1;Mt.unstable_LowPriority=4;Mt.unstable_NormalPriority=3;Mt.unstable_Profiling=null;Mt.unstable_UserBlockingPriority=2;Mt.unstable_cancelCallback=function(t){t.callback=null;};Mt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):js=0<t?Math.floor(1e3/t):5;};Mt.unstable_getCurrentPriorityLevel=function(){return ae};Mt.unstable_next=function(t){switch(ae){case 1:case 2:case 3:var e=3;break;default:e=ae;}var l=ae;ae=e;try{return t()}finally{ae=l;}};Mt.unstable_requestPaint=function(){go=true;};Mt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3;}var l=ae;ae=t;try{return e()}finally{ae=l;}};Mt.unstable_scheduleCallback=function(t,e,l){var n=Mt.unstable_now();switch(typeof l=="object"&&l!==null?(l=l.delay,l=typeof l=="number"&&0<l?n+l:n):l=n,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3;}return a=l+a,t={id:Sh++,callback:e,priorityLevel:t,startTime:l,expirationTime:a,sortIndex:-1},l>n?(t.sortIndex=l,po(Fl,t),hl(Cl)===null&&t===hl(Fl)&&(ai?(Xs(ii),ii=-1):ai=true,So(bo,l-n))):(t.sortIndex=a,po(Cl,t),ni||yo||(ni=true,oa||(oa=true,ca()))),t};Mt.unstable_shouldYield=Zs;Mt.unstable_wrapCallback=function(t){var e=ae;return function(){var l=ae;ae=e;try{return t.apply(this,arguments)}finally{ae=l;}}};});var Js=a((s2,Ks)=>{Ks.exports=Qs();});var Ws=a(fe=>{var xh=il();function ks(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l]);}return "Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function $l(){}var re={d:{f:$l,r:function(){throw Error(ks(522))},D:$l,C:$l,L:$l,m:$l,X:$l,S:$l,M:$l},p:0,findDOMNode:null},Eh=Symbol.for("react.portal");function Th(t,e,l){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:Eh,key:n==null?null:""+n,children:t,containerInfo:e,implementation:l}}var ui=xh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function pu(t,e){if(t==="font")return "";if(typeof e=="string")return e==="use-credentials"?e:""}fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re;fe.createPortal=function(t,e){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(ks(299));return Th(t,e,null,l)};fe.flushSync=function(t){var e=ui.T,l=re.p;try{if(ui.T=null,re.p=2,t)return t()}finally{ui.T=e,re.p=l,re.d.f();}};fe.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,re.d.C(t,e));};fe.prefetchDNS=function(t){typeof t=="string"&&re.d.D(t);};fe.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var l=e.as,n=pu(l,e.crossOrigin),a=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;l==="style"?re.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):l==="script"&&re.d.X(t,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0});}};fe.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var l=pu(e.as,e.crossOrigin);re.d.M(t,{crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0});}}else e==null&&re.d.M(t);};fe.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var l=e.as,n=pu(l,e.crossOrigin);re.d.L(t,l,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0});}};fe.preloadModule=function(t,e){if(typeof t=="string")if(e){var l=pu(e.as,e.crossOrigin);re.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0});}else re.d.m(t);};fe.requestFormReset=function(t){re.d.r(t);};fe.unstable_batchedUpdates=function(t,e){return t(e)};fe.useFormState=function(t,e,l){return ui.H.useFormState(t,e,l)};fe.useFormStatus=function(){return ui.H.useHostTransitionStatus()};fe.version="19.2.7";});var Is=a((m2,$s)=>{function Fs(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fs);}catch(t){console.error(t);}}Fs(),$s.exports=Ws();});var fv=a(Xc=>{var Gt=Js(),M0=il(),Mh=Is();function z(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l]);}return "Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function z0(t){return !(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ki(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else {t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function A0(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function O0(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ps(t){if(Ki(t)!==t)throw Error(z(188))}function zh(t){var e=t.alternate;if(!e){if(e=Ki(t),e===null)throw Error(z(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return Ps(a),t;if(i===n)return Ps(a),e;i=i.sibling;}throw Error(z(188))}if(l.return!==n.return)l=a,n=i;else {for(var u=false,c=a.child;c;){if(c===l){u=true,l=a,n=i;break}if(c===n){u=true,n=a,l=i;break}c=c.sibling;}if(!u){for(c=i.child;c;){if(c===l){u=true,l=i,n=a;break}if(c===n){u=true,n=i,l=a;break}c=c.sibling;}if(!u)throw Error(z(189))}}if(l.alternate!==n)throw Error(z(190))}if(l.tag!==3)throw Error(z(188));return l.stateNode.current===l?t:e}function C0(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=C0(t),e!==null)return e;t=t.sibling;}return null}var Et=Object.assign,Ah=Symbol.for("react.element"),yu=Symbol.for("react.transitional.element"),vi=Symbol.for("react.portal"),va=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),tr=Symbol.for("react.profiler"),w0=Symbol.for("react.consumer"),Ll=Symbol.for("react.context"),Wr=Symbol.for("react.forward_ref"),er=Symbol.for("react.suspense"),lr=Symbol.for("react.suspense_list"),Fr=Symbol.for("react.memo"),Il=Symbol.for("react.lazy"),nr=Symbol.for("react.activity"),Oh=Symbol.for("react.memo_cache_sentinel"),td=Symbol.iterator;function ci(t){return t===null||typeof t!="object"?null:(t=td&&t[td]||t["@@iterator"],typeof t=="function"?t:null)}var Ch=Symbol.for("react.client.reference");function ar(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ch?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case va:return "Fragment";case tr:return "Profiler";case R0:return "StrictMode";case er:return "Suspense";case lr:return "SuspenseList";case nr:return "Activity"}if(typeof t=="object")switch(t.$$typeof){case vi:return "Portal";case Ll:return t.displayName||"Context";case w0:return (t._context.displayName||"Context")+".Consumer";case Wr:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Fr:return e=t.displayName||null,e!==null?e:ar(t.type)||"Memo";case Il:e=t._payload,t=t._init;try{return ar(t(e))}catch{}}return null}var hi=Array.isArray,Z=M0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ut=Mh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ln={pending:false,data:null,method:null,action:null},ir=[],ha=-1;function Sl(t){return {current:t}}function Kt(t){0>ha||(t.current=ir[ha],ir[ha]=null,ha--);}function gt(t,e){ha++,ir[ha]=t.current,t.current=e;}var bl=Sl(null),Ni=Sl(null),fn=Sl(null),Fu=Sl(null);function $u(t,e){switch(gt(fn,e),gt(Ni,t),gt(bl,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?c0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=c0(e),t=F1(e,t);else switch(t){case "svg":t=1;break;case "math":t=2;break;default:t=0;}}Kt(bl),gt(bl,t);}function _a(){Kt(bl),Kt(Ni),Kt(fn);}function ur(t){t.memoizedState!==null&&gt(Fu,t);var e=bl.current,l=F1(e,t.type);e!==l&&(gt(Ni,t),gt(bl,l));}function Iu(t){Ni.current===t&&(Kt(bl),Kt(Ni)),Fu.current===t&&(Kt(Fu),Gi._currentValue=Ln);}var xo,ed;function Nn(t){if(xo===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);xo=e&&e[1]||"",ed=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":"";}return `
3
+ `+xo+t+ed}var Eo=false;function To(t,e){if(!t||Eo)return "";Eo=true;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[]);}catch(g){var h=g;}Reflect.construct(t,[],S);}else {try{S.call();}catch(g){h=g;}t.call(S.prototype);}}else {try{throw Error()}catch(g){h=g;}(S=t())&&typeof S.catch=="function"&&S.catch(function(){});}}catch(g){if(g&&h&&typeof g.stack=="string")return [g.stack,h.stack]}return [null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),u=i[0],c=i[1];if(u&&c){var o=u.split(`
4
+ `),s=c.split(`
5
+ `);for(a=n=0;n<o.length&&!o[n].includes("DetermineComponentFrameRoot");)n++;for(;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;if(n===o.length||a===s.length)for(n=o.length-1,a=s.length-1;1<=n&&0<=a&&o[n]!==s[a];)a--;for(;1<=n&&0<=a;n--,a--)if(o[n]!==s[a]){if(n!==1||a!==1)do if(n--,a--,0>a||o[n]!==s[a]){var y=`
6
+ `+o[n].replace(" at new "," at ");return t.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",t.displayName)),y}while(1<=n&&0<=a);break}}}finally{Eo=false,Error.prepareStackTrace=l;}return (l=t?t.displayName||t.name:"")?Nn(l):""}function Rh(t,e){switch(t.tag){case 26:case 27:case 5:return Nn(t.type);case 16:return Nn("Lazy");case 13:return t.child!==e&&e!==null?Nn("Suspense Fallback"):Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return To(t.type,false);case 11:return To(t.type.render,false);case 1:return To(t.type,true);case 31:return Nn("Activity");default:return ""}}function ld(t){try{var e="",l=null;do e+=Rh(t,l),l=t,t=t.return;while(t);return e}catch(n){return `
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var cr=Object.prototype.hasOwnProperty,$r=Gt.unstable_scheduleCallback,Mo=Gt.unstable_cancelCallback,wh=Gt.unstable_shouldYield,Dh=Gt.unstable_requestPaint,Re=Gt.unstable_now,Nh=Gt.unstable_getCurrentPriorityLevel,D0=Gt.unstable_ImmediatePriority,N0=Gt.unstable_UserBlockingPriority,Pu=Gt.unstable_NormalPriority,_h=Gt.unstable_LowPriority,_0=Gt.unstable_IdlePriority,Hh=Gt.log,Uh=Gt.unstable_setDisableYieldValue,Ji=null,we=null;function an(t){if(typeof Hh=="function"&&Uh(t),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(Ji,t);}catch{}}var De=Math.clz32?Math.clz32:Bh,Lh=Math.log,Vh=Math.LN2;function Bh(t){return t>>>=0,t===0?32:31-(Lh(t)/Vh|0)|0}var gu=256,bu=262144,Su=4194304;function _n(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zc(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var c=n&134217727;return c!==0?(n=c&~i,n!==0?a=_n(n):(u&=c,u!==0?a=_n(u):l||(l=c&~t,l!==0&&(a=_n(l))))):(c=n&~i,c!==0?a=_n(c):u!==0?a=_n(u):l||(l=n&~t,l!==0&&(a=_n(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function ki(t,e){return (t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Yh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return -1}}function H0(){var t=Su;return Su<<=1,(Su&62914560)===0&&(Su=4194304),t}function zo(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Wi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0);}function qh(t,e,l,n,a,i){var u=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var c=t.entanglements,o=t.expirationTimes,s=t.hiddenUpdates;for(l=u&~l;0<l;){var y=31-De(l),S=1<<y;c[y]=0,o[y]=-1;var h=s[y];if(h!==null)for(s[y]=null,y=0;y<h.length;y++){var g=h[y];g!==null&&(g.lane&=-536870913);}l&=~S;}n!==0&&U0(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e));}function U0(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-De(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930;}function L0(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-De(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a;}}function V0(t,e){var l=e&-e;return l=(l&42)!==0?1:Ir(l),(l&(t.suspendedLanes|e))!==0?0:l}function Ir(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0;}return t}function Pr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function B0(){var t=ut.p;return t!==0?t:(t=window.event,t===void 0?32:cv(t.type))}function nd(t,e){var l=ut.p;try{return ut.p=t,e()}finally{ut.p=l;}}var Tn=Math.random().toString(36).slice(2),$t="__reactFiber$"+Tn,Ee="__reactProps$"+Tn,Za="__reactContainer$"+Tn,or="__reactEvents$"+Tn,Xh="__reactListeners$"+Tn,jh="__reactHandles$"+Tn,ad="__reactResources$"+Tn,Fi="__reactMarker$"+Tn;function tf(t){delete t[$t],delete t[Ee],delete t[or],delete t[Xh],delete t[jh];}function pa(t){var e=t[$t];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Za]||l[$t]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=d0(t);t!==null;){if(l=t[$t])return l;t=d0(t);}return e}t=l,l=t.parentNode;}return null}function Qa(t){if(t=t[$t]||t[Za]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function pi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(z(33))}function Aa(t){var e=t[ad];return e||(e=t[ad]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Qt(t){t[Fi]=true;}var Y0=new Set,q0={};function Kn(t,e){Ha(t,e),Ha(t+"Capture",e);}function Ha(t,e){for(q0[t]=e,t=0;t<e.length;t++)Y0.add(e[t]);}var Gh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),id={},ud={};function Zh(t){return cr.call(ud,t)?true:cr.call(id,t)?false:Gh.test(t)?ud[t]=true:(id[t]=true,false)}function Uu(t,e,l){if(Zh(e))if(l===null)t.removeAttribute(e);else {switch(typeof l){case "undefined":case "function":case "symbol":t.removeAttribute(e);return;case "boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l);}}function xu(t,e,l){if(l===null)t.removeAttribute(e);else {switch(typeof l){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l);}}function Rl(t,e,l,n){if(n===null)t.removeAttribute(l);else {switch(typeof n){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n);}}function Ge(t){switch(typeof t){case "bigint":case "boolean":case "number":case "string":case "undefined":return t;case "object":return t;default:return ""}}function X0(t){var e=t.type;return (t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qh(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:true,get:function(){return a.call(this)},set:function(u){l=""+u,i.call(this,u);}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u;},stopTracking:function(){t._valueTracker=null,delete t[e];}}}}function rr(t){if(!t._valueTracker){var e=X0(t)?"checked":"value";t._valueTracker=Qh(t,e,""+t[e]);}}function j0(t){if(!t)return false;var e=t._valueTracker;if(!e)return true;var l=e.getValue(),n="";return t&&(n=X0(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),true):false}function tc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Kh=/[\n"\\]/g;function Ke(t){return t.replace(Kh,function(e){return "\\"+e.charCodeAt(0).toString(16)+" "})}function fr(t,e,l,n,a,i,u,c){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ge(e)):t.value!==""+Ge(e)&&(t.value=""+Ge(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?sr(t,u,Ge(e)):l!=null?sr(t,u,Ge(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+Ge(c):t.removeAttribute("name");}function G0(t,e,l,n,a,i,u,c){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){rr(t);return}l=l!=null?""+Ge(l):"",e=e!=null?""+Ge(e):l,c||e===t.value||(t.value=e),t.defaultValue=e;}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=c?t.checked:!!n,t.defaultChecked=!!n,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),rr(t);}function sr(t,e,l){e==="number"&&tc(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l);}function Oa(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=true;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=true);}else {for(l=""+Ge(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=true,n&&(t[a].defaultSelected=true);return}e!==null||t[a].disabled||(e=t[a]);}e!==null&&(e.selected=true);}}function Z0(t,e,l){if(e!=null&&(e=""+Ge(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ge(l):"";}function Q0(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(z(92));if(hi(n)){if(1<n.length)throw Error(z(93));n=n[0];}l=n;}l==null&&(l=""),e=l;}l=Ge(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),rr(t);}function Ua(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e;}var Jh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cd(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Jh.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px";}function K0(t,e,l){if(e!=null&&typeof e!="object")throw Error(z(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&cd(t,a,n);}else for(var i in e)e.hasOwnProperty(i)&&cd(t,i,e[i]);}function ef(t){if(t.indexOf("-")===-1)return false;switch(t){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 false;default:return true}}var kh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Wh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lu(t){return Wh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Vl(){}var dr=null;function lf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ya=null,Ca=null;function od(t){var e=Qa(t);if(e&&(t=e.stateNode)){var l=t[Ee]||null;t:switch(t=e.stateNode,e.type){case "input":if(fr(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ke(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[Ee]||null;if(!a)throw Error(z(90));fr(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name);}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&j0(n);}break t;case "textarea":Z0(t,l.value,l.defaultValue);break t;case "select":e=l.value,e!=null&&Oa(t,!!l.multiple,e,false);}}}var Ao=false;function J0(t,e,l){if(Ao)return t(e,l);Ao=true;try{var n=t(e);return n}finally{if(Ao=false,(ya!==null||Ca!==null)&&(Vc(),ya&&(e=ya,t=Ca,Ca=ya=null,od(e),t)))for(e=0;e<t.length;e++)od(t[e]);}}function _i(t,e){var l=t.stateNode;if(l===null)return null;var n=l[Ee]||null;if(n===null)return null;l=n[e];t:switch(e){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=false;}if(t)return null;if(l&&typeof l!="function")throw Error(z(231,e,typeof l));return l}var jl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mr=false;if(jl)try{ra={},Object.defineProperty(ra,"passive",{get:function(){mr=!0;}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra);}catch{mr=false;}var ra,un=null,nf=null,Vu=null;function k0(){if(Vu)return Vu;var t,e=nf,l=e.length,n,a="value"in un?un.value:un.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var u=l-t;for(n=1;n<=u&&e[l-n]===a[i-n];n++);return Vu=a.slice(t,1<n?1-n:void 0)}function Bu(t){var e=t.keyCode;return "charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Eu(){return true}function rd(){return false}function Te(t){function e(l,n,a,i,u){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(l=t[c],this[c]=l?l(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===false)?Eu:rd,this.isPropagationStopped=rd,this}return Et(e.prototype,{preventDefault:function(){this.defaultPrevented=true;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=false),this.isDefaultPrevented=Eu);},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=true),this.isPropagationStopped=Eu);},persist:function(){},isPersistent:Eu}),e}var Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ac=Te(Jn),$i=Et({},Jn,{view:0,detail:0}),Fh=Te($i),Oo,Co,oi,Oc=Et({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:af,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return "movementX"in t?t.movementX:(t!==oi&&(oi&&t.type==="mousemove"?(Oo=t.screenX-oi.screenX,Co=t.screenY-oi.screenY):Co=Oo=0,oi=t),Oo)},movementY:function(t){return "movementY"in t?t.movementY:Co}}),fd=Te(Oc),$h=Et({},Oc,{dataTransfer:0}),Ih=Te($h),Ph=Et({},$i,{relatedTarget:0}),Ro=Te(Ph),tp=Et({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=Te(tp),lp=Et({},Jn,{clipboardData:function(t){return "clipboardData"in t?t.clipboardData:window.clipboardData}}),np=Te(lp),ap=Et({},Jn,{data:0}),sd=Te(ap),ip={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},up={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function op(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cp[t])?!!e[t]:false}function af(){return op}var rp=Et({},$i,{key:function(t){if(t.key){var e=ip[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?up[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:af,charCode:function(t){return t.type==="keypress"?Bu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fp=Te(rp),sp=Et({},Oc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=Te(sp),dp=Et({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:af}),mp=Te(dp),vp=Et({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),hp=Te(vp),pp=Et({},Oc,{deltaX:function(t){return "deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return "deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),yp=Te(pp),gp=Et({},Jn,{newState:0,oldState:0}),bp=Te(gp),Sp=[9,13,27,32],uf=jl&&"CompositionEvent"in window,bi=null;jl&&"documentMode"in document&&(bi=document.documentMode);var xp=jl&&"TextEvent"in window&&!bi,W0=jl&&(!uf||bi&&8<bi&&11>=bi),md=" ",vd=false;function F0(t,e){switch(t){case "keyup":return Sp.indexOf(e.keyCode)!==-1;case "keydown":return e.keyCode!==229;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function $0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ga=false;function Ep(t,e){switch(t){case "compositionend":return $0(e);case "keypress":return e.which!==32?null:(vd=true,md);case "textInput":return t=e.data,t===md&&vd?null:t;default:return null}}function Tp(t,e){if(ga)return t==="compositionend"||!uf&&F0(t,e)?(t=k0(),Vu=nf=un=null,ga=false,t):null;switch(t){case "paste":return null;case "keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case "compositionend":return W0&&e.locale!=="ko"?null:e.data;default:return null}}var Mp={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Mp[t.type]:e==="textarea"}function I0(t,e,l,n){ya?Ca?Ca.push(n):Ca=[n]:ya=n,e=gc(e,"onChange"),0<e.length&&(l=new Ac("onChange","change",null,l,n),t.push({event:l,listeners:e}));}var Si=null,Hi=null;function zp(t){J1(t,0);}function Cc(t){var e=pi(t);if(j0(e))return t}function pd(t,e){if(t==="change")return e}var P0=false;jl&&(jl?(Mu="oninput"in document,Mu||(wo=document.createElement("div"),wo.setAttribute("oninput","return;"),Mu=typeof wo.oninput=="function"),Tu=Mu):Tu=false,P0=Tu&&(!document.documentMode||9<document.documentMode));var Tu,Mu,wo;function yd(){Si&&(Si.detachEvent("onpropertychange",tm),Hi=Si=null);}function tm(t){if(t.propertyName==="value"&&Cc(Hi)){var e=[];I0(e,Hi,t,lf(t)),J0(zp,e);}}function Ap(t,e,l){t==="focusin"?(yd(),Si=e,Hi=l,Si.attachEvent("onpropertychange",tm)):t==="focusout"&&yd();}function Op(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cc(Hi)}function Cp(t,e){if(t==="click")return Cc(e)}function Rp(t,e){if(t==="input"||t==="change")return Cc(e)}function wp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:wp;function Ui(t,e){if(_e(t,e))return true;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return false;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return false;for(n=0;n<l.length;n++){var a=l[n];if(!cr.call(e,a)||!_e(t[a],e[a]))return false}return true}function gd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bd(t,e){var l=gd(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return {node:l,offset:e-t};t=n;}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode;}l=void 0;}l=gd(l);}}function em(t,e){return t&&e?t===e?true:t&&t.nodeType===3?false:e&&e.nodeType===3?em(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):false:false}function lm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=tc(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string";}catch{l=false;}if(l)t=e.contentWindow;else break;e=tc(t.document);}return e}function cf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dp=jl&&"documentMode"in document&&11>=document.documentMode,ba=null,vr=null,xi=null,hr=false;function Sd(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hr||ba==null||ba!==tc(n)||(n=ba,"selectionStart"in n&&cf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xi&&Ui(xi,n)||(xi=n,n=gc(vr,"onSelect"),0<n.length&&(e=new Ac("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=ba)));}function Dn(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Sa={animationend:Dn("Animation","AnimationEnd"),animationiteration:Dn("Animation","AnimationIteration"),animationstart:Dn("Animation","AnimationStart"),transitionrun:Dn("Transition","TransitionRun"),transitionstart:Dn("Transition","TransitionStart"),transitioncancel:Dn("Transition","TransitionCancel"),transitionend:Dn("Transition","TransitionEnd")},Do={},nm={};jl&&(nm=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function kn(t){if(Do[t])return Do[t];if(!Sa[t])return t;var e=Sa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in nm)return Do[t]=e[l];return t}var am=kn("animationend"),im=kn("animationiteration"),um=kn("animationstart"),Np=kn("transitionrun"),_p=kn("transitionstart"),Hp=kn("transitioncancel"),cm=kn("transitionend"),om=new Map,pr="abort auxClick beforeToggle 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(" ");pr.push("scrollEnd");function ol(t,e){om.set(t,e),Kn(e,[t]);}var ec=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},je=[],xa=0,of=0;function Rc(){for(var t=xa,e=of=xa=0;e<t;){var l=je[e];je[e++]=null;var n=je[e];je[e++]=null;var a=je[e];je[e++]=null;var i=je[e];if(je[e++]=null,n!==null&&a!==null){var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a;}i!==0&&rm(l,a,i);}}function wc(t,e,l,n){je[xa++]=t,je[xa++]=e,je[xa++]=l,je[xa++]=n,of|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n);}function rf(t,e,l,n){return wc(t,e,l,n),lc(t)}function Wn(t,e){return wc(t,null,null,e),lc(t)}function rm(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=false,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=true)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-De(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function lc(t){if(50<wi)throw wi=0,Vr=null,Error(z(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ea={};function Up(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function Oe(t,e,l,n){return new Up(t,e,l,n)}function ff(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Yl(t,e){var l=t.alternate;return l===null?(l=Oe(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function fm(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Yu(t,e,l,n,a,i){var u=0;if(n=t,typeof t=="function")ff(t)&&(u=1);else if(typeof t=="string")u=By(t,l,bl.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case nr:return t=Oe(31,l,e,a),t.elementType=nr,t.lanes=i,t;case va:return Vn(l.children,a,i,e);case R0:u=8,a|=24;break;case tr:return t=Oe(12,l,e,a|2),t.elementType=tr,t.lanes=i,t;case er:return t=Oe(13,l,e,a),t.elementType=er,t.lanes=i,t;case lr:return t=Oe(19,l,e,a),t.elementType=lr,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ll:u=10;break t;case w0:u=9;break t;case Wr:u=11;break t;case Fr:u=14;break t;case Il:u=16,n=null;break t}u=29,l=Error(z(130,t===null?"null":typeof t,"")),n=null;}return e=Oe(u,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Vn(t,e,l,n){return t=Oe(7,t,n,e),t.lanes=l,t}function No(t,e,l){return t=Oe(6,t,null,e),t.lanes=l,t}function sm(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function _o(t,e,l){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var xd=new WeakMap;function Je(t,e){if(typeof t=="object"&&t!==null){var l=xd.get(t);return l!==void 0?l:(e={value:t,source:e,stack:ld(e)},xd.set(t,e),e)}return {value:t,source:e,stack:ld(e)}}var Ta=[],Ma=0,nc=null,Li=0,Ze=[],Qe=0,bn=null,pl=1,yl="";function Hl(t,e){Ta[Ma++]=Li,Ta[Ma++]=nc,nc=t,Li=e;}function dm(t,e,l){Ze[Qe++]=pl,Ze[Qe++]=yl,Ze[Qe++]=bn,bn=t;var n=pl;t=yl;var a=32-De(n)-1;n&=~(1<<a),l+=1;var i=32-De(e)+a;if(30<i){var u=a-a%5;i=(n&(1<<u)-1).toString(32),n>>=u,a-=u,pl=1<<32-De(e)+a|l<<a|n,yl=i+t;}else pl=1<<i|l<<a|n,yl=t;}function sf(t){t.return!==null&&(Hl(t,1),dm(t,1,0));}function df(t){for(;t===nc;)nc=Ta[--Ma],Ta[Ma]=null,Li=Ta[--Ma],Ta[Ma]=null;for(;t===bn;)bn=Ze[--Qe],Ze[Qe]=null,yl=Ze[--Qe],Ze[Qe]=null,pl=Ze[--Qe],Ze[Qe]=null;}function mm(t,e){Ze[Qe++]=pl,Ze[Qe++]=yl,Ze[Qe++]=bn,pl=e.id,yl=e.overflow,bn=t;}var It=null,xt=null,lt=false,sn=null,ke=false,yr=Error(z(519));function Sn(t){var e=Error(z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vi(Je(e,t)),yr}function Ed(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[$t]=t,e[Ee]=n,l){case "dialog":P("cancel",e),P("close",e);break;case "iframe":case "object":case "embed":P("load",e);break;case "video":case "audio":for(l=0;l<Xi.length;l++)P(Xi[l],e);break;case "source":P("error",e);break;case "img":case "image":case "link":P("error",e),P("load",e);break;case "details":P("toggle",e);break;case "input":P("invalid",e),G0(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,true);break;case "select":P("invalid",e);break;case "textarea":P("invalid",e),Q0(e,n.value,n.defaultValue,n.children);}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===true||W1(e.textContent,l)?(n.popover!=null&&(P("beforetoggle",e),P("toggle",e)),n.onScroll!=null&&P("scroll",e),n.onScrollEnd!=null&&P("scrollend",e),n.onClick!=null&&(e.onclick=Vl),e=true):e=false,e||Sn(t,true);}function Td(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:ke=false;return;case 27:case 3:ke=true;return;default:It=It.return;}}function fa(t){if(t!==It)return false;if(!lt)return Td(t),lt=true,false;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||jr(t.type,t.memoizedProps)),l=!l),l&&xt&&Sn(t),Td(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(z(317));xt=s0(t);}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(z(317));xt=s0(t);}else e===27?(e=xt,Mn(t.type)?(t=Kr,Kr=null,xt=t):xt=e):xt=It?Fe(t.stateNode.nextSibling):null;return true}function Xn(){xt=It=null,lt=false;}function Ho(){var t=sn;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),sn=null),t}function Vi(t){sn===null?sn=[t]:sn.push(t);}var gr=Sl(null),Fn=null,Bl=null;function tn(t,e,l){gt(gr,e._currentValue),e._currentValue=l;}function ql(t){t._currentValue=gr.current,Kt(gr);}function br(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return;}}function Sr(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var u=a.child;i=i.firstContext;t:for(;i!==null;){var c=i;i=a;for(var o=0;o<e.length;o++)if(c.context===e[o]){i.lanes|=l,c=i.alternate,c!==null&&(c.lanes|=l),br(i.return,l,t),n||(u=null);break t}i=c.next;}}else if(a.tag===18){if(u=a.return,u===null)throw Error(z(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),br(u,l,t),u=null;}else u=a.child;if(u!==null)u.return=a;else for(u=a;u!==null;){if(u===t){u=null;break}if(a=u.sibling,a!==null){a.return=u.return,u=a;break}u=u.return;}a=u;}}function Ka(t,e,l,n){t=null;for(var a=e,i=false;a!==null;){if(!i){if((a.flags&524288)!==0)i=true;else if((a.flags&262144)!==0)break}if(a.tag===10){var u=a.alternate;if(u===null)throw Error(z(387));if(u=u.memoizedProps,u!==null){var c=a.type;_e(a.pendingProps.value,u.value)||(t!==null?t.push(c):t=[c]);}}else if(a===Fu.current){if(u=a.alternate,u===null)throw Error(z(387));u.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Gi):t=[Gi]);}a=a.return;}t!==null&&Sr(e,t,l,n),e.flags|=262144;}function ac(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return true;t=t.next;}return false}function jn(t){Fn=t,Bl=null,t=t.dependencies,t!==null&&(t.firstContext=null);}function Pt(t){return vm(Fn,t)}function zu(t,e){return Fn===null&&jn(t),vm(t,e)}function vm(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Bl===null){if(t===null)throw Error(z(308));Bl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288;}else Bl=Bl.next=e;return l}var Lp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:false,addEventListener:function(l,n){t.push(n);}};this.abort=function(){e.aborted=true,t.forEach(function(l){return l()});};},Vp=Gt.unstable_scheduleCallback,Bp=Gt.unstable_NormalPriority,Yt={$$typeof:Ll,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return {controller:new Lp,data:new Map,refCount:0}}function Ii(t){t.refCount--,t.refCount===0&&Vp(Bp,function(){t.controller.abort();});}var Ei=null,xr=0,La=0,Ra=null;function Yp(t,e){if(Ei===null){var l=Ei=[];xr=0,La=Bf(),Ra={status:"pending",value:void 0,then:function(n){l.push(n);}};}return xr++,e.then(Md,Md),e}function Md(){if(--xr===0&&Ei!==null){Ra!==null&&(Ra.status="fulfilled");var t=Ei;Ei=null,La=0,Ra=null;for(var e=0;e<t.length;e++)(0, t[e])();}}function qp(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a);}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0, l[a])(e);},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0, l[a])(void 0);}),n}var zd=Z.S;Z.S=function(t,e){C1=Re(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Yp(t,e),zd!==null&&zd(t,e);};var Bn=Sl(null);function vf(){var t=Bn.current;return t!==null?t:pt.pooledCache}function qu(t,e){e===null?gt(Bn,Bn.current):gt(Bn,e.pool);}function hm(){var t=vf();return t===null?null:{parent:Yt._currentValue,pool:t}}var Ja=Error(z(460)),hf=Error(z(474)),Dc=Error(z(542)),ic={then:function(){}};function Ad(t){return t=t.status,t==="fulfilled"||t==="rejected"}function pm(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Vl,Vl),e=l),e.status){case "fulfilled":return e.value;case "rejected":throw t=e.reason,Cd(t),t;default:if(typeof e.status=="string")e.then(Vl,Vl);else {if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(z(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n;}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n;}});}switch(e.status){case "fulfilled":return e.value;case "rejected":throw t=e.reason,Cd(t),t}throw Yn=e,Ja}}function Hn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Yn=l,Ja):l}}var Yn=null;function Od(){if(Yn===null)throw Error(z(459));var t=Yn;return Yn=null,t}function Cd(t){if(t===Ja||t===Dc)throw Error(z(483))}var wa=null,Bi=0;function Au(t){var e=Bi;return Bi+=1,wa===null&&(wa=[]),pm(wa,t,e)}function ri(t,e){e=e.props.ref,t.ref=e!==void 0?e:null;}function Ou(t,e){throw e.$$typeof===Ah?Error(z(525)):(t=Object.prototype.toString.call(e),Error(z(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ym(t){function e(d,f){if(t){var p=d.deletions;p===null?(d.deletions=[f],d.flags|=16):p.push(f);}}function l(d,f){if(!t)return null;for(;f!==null;)e(d,f),f=f.sibling;return null}function n(d){for(var f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function a(d,f){return d=Yl(d,f),d.index=0,d.sibling=null,d}function i(d,f,p){return d.index=p,t?(p=d.alternate,p!==null?(p=p.index,p<f?(d.flags|=67108866,f):p):(d.flags|=67108866,f)):(d.flags|=1048576,f)}function u(d){return t&&d.alternate===null&&(d.flags|=67108866),d}function c(d,f,p,x){return f===null||f.tag!==6?(f=No(p,d.mode,x),f.return=d,f):(f=a(f,p),f.return=d,f)}function o(d,f,p,x){var w=p.type;return w===va?y(d,f,p.props.children,x,p.key):f!==null&&(f.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Il&&Hn(w)===f.type)?(f=a(f,p.props),ri(f,p),f.return=d,f):(f=Yu(p.type,p.key,p.props,null,d.mode,x),ri(f,p),f.return=d,f)}function s(d,f,p,x){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=_o(p,d.mode,x),f.return=d,f):(f=a(f,p.children||[]),f.return=d,f)}function y(d,f,p,x,w){return f===null||f.tag!==7?(f=Vn(p,d.mode,x,w),f.return=d,f):(f=a(f,p),f.return=d,f)}function S(d,f,p){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=No(""+f,d.mode,p),f.return=d,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case yu:return p=Yu(f.type,f.key,f.props,null,d.mode,p),ri(p,f),p.return=d,p;case vi:return f=_o(f,d.mode,p),f.return=d,f;case Il:return f=Hn(f),S(d,f,p)}if(hi(f)||ci(f))return f=Vn(f,d.mode,p,null),f.return=d,f;if(typeof f.then=="function")return S(d,Au(f),p);if(f.$$typeof===Ll)return S(d,zu(d,f),p);Ou(d,f);}return null}function h(d,f,p,x){var w=f!==null?f.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return w!==null?null:c(d,f,""+p,x);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case yu:return p.key===w?o(d,f,p,x):null;case vi:return p.key===w?s(d,f,p,x):null;case Il:return p=Hn(p),h(d,f,p,x)}if(hi(p)||ci(p))return w!==null?null:y(d,f,p,x,null);if(typeof p.then=="function")return h(d,f,Au(p),x);if(p.$$typeof===Ll)return h(d,f,zu(d,p),x);Ou(d,p);}return null}function g(d,f,p,x,w){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return d=d.get(p)||null,c(f,d,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case yu:return d=d.get(x.key===null?p:x.key)||null,o(f,d,x,w);case vi:return d=d.get(x.key===null?p:x.key)||null,s(f,d,x,w);case Il:return x=Hn(x),g(d,f,p,x,w)}if(hi(x)||ci(x))return d=d.get(p)||null,y(f,d,x,w,null);if(typeof x.then=="function")return g(d,f,p,Au(x),w);if(x.$$typeof===Ll)return g(d,f,p,zu(f,x),w);Ou(f,x);}return null}function O(d,f,p,x){for(var w=null,Y=null,A=f,H=f=0,V=null;A!==null&&H<p.length;H++){A.index>H?(V=A,A=null):V=A.sibling;var X=h(d,A,p[H],x);if(X===null){A===null&&(A=V);break}t&&A&&X.alternate===null&&e(d,A),f=i(X,f,H),Y===null?w=X:Y.sibling=X,Y=X,A=V;}if(H===p.length)return l(d,A),lt&&Hl(d,H),w;if(A===null){for(;H<p.length;H++)A=S(d,p[H],x),A!==null&&(f=i(A,f,H),Y===null?w=A:Y.sibling=A,Y=A);return lt&&Hl(d,H),w}for(A=n(A);H<p.length;H++)V=g(A,d,H,p[H],x),V!==null&&(t&&V.alternate!==null&&A.delete(V.key===null?H:V.key),f=i(V,f,H),Y===null?w=V:Y.sibling=V,Y=V);return t&&A.forEach(function(G){return e(d,G)}),lt&&Hl(d,H),w}function C(d,f,p,x){if(p==null)throw Error(z(151));for(var w=null,Y=null,A=f,H=f=0,V=null,X=p.next();A!==null&&!X.done;H++,X=p.next()){A.index>H?(V=A,A=null):V=A.sibling;var G=h(d,A,X.value,x);if(G===null){A===null&&(A=V);break}t&&A&&G.alternate===null&&e(d,A),f=i(G,f,H),Y===null?w=G:Y.sibling=G,Y=G,A=V;}if(X.done)return l(d,A),lt&&Hl(d,H),w;if(A===null){for(;!X.done;H++,X=p.next())X=S(d,X.value,x),X!==null&&(f=i(X,f,H),Y===null?w=X:Y.sibling=X,Y=X);return lt&&Hl(d,H),w}for(A=n(A);!X.done;H++,X=p.next())X=g(A,d,H,X.value,x),X!==null&&(t&&X.alternate!==null&&A.delete(X.key===null?H:X.key),f=i(X,f,H),Y===null?w=X:Y.sibling=X,Y=X);return t&&A.forEach(function(kt){return e(d,kt)}),lt&&Hl(d,H),w}function B(d,f,p,x){if(typeof p=="object"&&p!==null&&p.type===va&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case yu:t:{for(var w=p.key;f!==null;){if(f.key===w){if(w=p.type,w===va){if(f.tag===7){l(d,f.sibling),x=a(f,p.props.children),x.return=d,d=x;break t}}else if(f.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Il&&Hn(w)===f.type){l(d,f.sibling),x=a(f,p.props),ri(x,p),x.return=d,d=x;break t}l(d,f);break}else e(d,f);f=f.sibling;}p.type===va?(x=Vn(p.props.children,d.mode,x,p.key),x.return=d,d=x):(x=Yu(p.type,p.key,p.props,null,d.mode,x),ri(x,p),x.return=d,d=x);}return u(d);case vi:t:{for(w=p.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){l(d,f.sibling),x=a(f,p.children||[]),x.return=d,d=x;break t}else {l(d,f);break}else e(d,f);f=f.sibling;}x=_o(p,d.mode,x),x.return=d,d=x;}return u(d);case Il:return p=Hn(p),B(d,f,p,x)}if(hi(p))return O(d,f,p,x);if(ci(p)){if(w=ci(p),typeof w!="function")throw Error(z(150));return p=w.call(p),C(d,f,p,x)}if(typeof p.then=="function")return B(d,f,Au(p),x);if(p.$$typeof===Ll)return B(d,f,zu(d,p),x);Ou(d,p);}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,f!==null&&f.tag===6?(l(d,f.sibling),x=a(f,p),x.return=d,d=x):(l(d,f),x=No(p,d.mode,x),x.return=d,d=x),u(d)):l(d,f)}return function(d,f,p,x){try{Bi=0;var w=B(d,f,p,x);return wa=null,w}catch(A){if(A===Ja||A===Dc)throw A;var Y=Oe(29,A,null,d.mode);return Y.lanes=x,Y.return=d,Y}}}var Gn=ym(true),gm=ym(false),Pl=false;function pf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function Er(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null});}function dn(t){return {lane:t,tag:0,payload:null,callback:null,next:null}}function mn(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(it&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=lc(t),rm(t,null,l),e}return wc(t,n,e,l),lc(t)}function Ti(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,L0(t,l);}}function Uo(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=u:i=i.next=u,l=l.next;}while(l!==null);i===null?a=i=e:i=i.next=e;}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e;}var Tr=false;function Mi(){if(Tr){var t=Ra;if(t!==null)throw t}}function zi(t,e,l,n){Tr=false;var a=t.updateQueue;Pl=false;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var o=c,s=o.next;o.next=null,u===null?i=s:u.next=s,u=o;var y=t.alternate;y!==null&&(y=y.updateQueue,c=y.lastBaseUpdate,c!==u&&(c===null?y.firstBaseUpdate=s:c.next=s,y.lastBaseUpdate=o));}if(i!==null){var S=a.baseState;u=0,y=s=o=null,c=i;do{var h=c.lane&-536870913,g=h!==c.lane;if(g?(et&h)===h:(n&h)===h){h!==0&&h===La&&(Tr=true),y!==null&&(y=y.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var O=t,C=c;h=e;var B=l;switch(C.tag){case 1:if(O=C.payload,typeof O=="function"){S=O.call(B,S,h);break t}S=O;break t;case 3:O.flags=O.flags&-65537|128;case 0:if(O=C.payload,h=typeof O=="function"?O.call(B,S,h):O,h==null)break t;S=Et({},S,h);break t;case 2:Pl=true;}}h=c.callback,h!==null&&(t.flags|=64,g&&(t.flags|=8192),g=a.callbacks,g===null?a.callbacks=[h]:g.push(h));}else g={lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},y===null?(s=y=g,o=S):y=y.next=g,u|=h;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;g=c,c=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null;}}while(true);y===null&&(o=S),a.baseState=o,a.firstBaseUpdate=s,a.lastBaseUpdate=y,i===null&&(a.shared.lanes=0),En|=u,t.lanes=u,t.memoizedState=S;}}function bm(t,e){if(typeof t!="function")throw Error(z(191,t));t.call(e);}function Sm(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)bm(l[t],e);}var Va=Sl(null),uc=Sl(0);function Rd(t,e){t=Kl,gt(uc,t),gt(Va,e),Kl=t|e.baseLanes;}function Mr(){gt(uc,Kl),gt(Va,Va.current);}function yf(){Kl=uc.current,Kt(Va),Kt(uc);}var He=Sl(null),We=null;function en(t){var e=t.alternate;gt(Ht,Ht.current&1),gt(He,t),We===null&&(e===null||Va.current!==null||e.memoizedState!==null)&&(We=t);}function zr(t){gt(Ht,Ht.current),gt(He,t),We===null&&(We=t);}function xm(t){t.tag===22?(gt(Ht,Ht.current),gt(He,t),We===null&&(We=t)):ln();}function ln(){gt(Ht,Ht.current),gt(He,He.current);}function Ae(t){Kt(He),We===t&&(We=null),Kt(Ht);}var Ht=Sl(0);function cc(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Zr(l)||Qr(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return;}e.sibling.return=e.return,e=e.sibling;}return null}var Gl=0,W=null,st=null,Vt=null,oc=false,Da=false,Zn=false,rc=0,Yi=0,Na=null,Xp=0;function wt(){throw Error(z(321))}function gf(t,e){if(e===null)return false;for(var l=0;l<e.length&&l<t.length;l++)if(!_e(t[l],e[l]))return false;return true}function bf(t,e,l,n,a,i){return Gl=i,W=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Z.H=t===null||t.memoizedState===null?Im:wf,Zn=false,i=l(n,a),Zn=false,Da&&(i=Tm(e,l,n,a)),Em(t),i}function Em(t){Z.H=qi;var e=st!==null&&st.next!==null;if(Gl=0,Vt=st=W=null,oc=false,Yi=0,Na=null,e)throw Error(z(300));t===null||qt||(t=t.dependencies,t!==null&&ac(t)&&(qt=true));}function Tm(t,e,l,n){W=t;var a=0;do{if(Da&&(Na=null),Yi=0,Da=false,25<=a)throw Error(z(301));if(a+=1,Vt=st=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0);}Z.H=Pm,i=e(l,n);}while(Da);return i}function jp(){var t=Z.H,e=t.useState()[0];return e=typeof e.then=="function"?Pi(e):e,t=t.useState()[0],(st!==null?st.memoizedState:null)!==t&&(W.flags|=1024),e}function Sf(){var t=rc!==0;return rc=0,t}function xf(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l;}function Ef(t){if(oc){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next;}oc=false;}Gl=0,Vt=st=W=null,Da=false,Yi=rc=0,Na=null;}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?W.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Ut(){if(st===null){var t=W.alternate;t=t!==null?t.memoizedState:null;}else t=st.next;var e=Vt===null?W.memoizedState:Vt.next;if(e!==null)Vt=e,st=t;else {if(t===null)throw W.alternate===null?Error(z(467)):Error(z(310));st=t,t={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},Vt===null?W.memoizedState=Vt=t:Vt=Vt.next=t;}return Vt}function Nc(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Pi(t){var e=Yi;return Yi+=1,Na===null&&(Na=[]),t=pm(Na,t,e),e=W,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,Z.H=e===null||e.memoizedState===null?Im:wf),t}function _c(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pi(t);if(t.$$typeof===Ll)return Pt(t)}throw Error(z(438,String(t)))}function Tf(t){var e=null,l=W.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=W.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})));}if(e==null&&(e={data:[],index:0}),l===null&&(l=Nc(),W.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=Oh;return e.index++,l}function Zl(t,e){return typeof e=="function"?e(t):e}function Xu(t){var e=Ut();return Mf(e,st,t)}function Mf(t,e,l){var n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var u=a.next;a.next=i.next,i.next=u;}e.baseQueue=a=i,n.pending=null;}if(i=t.baseState,a===null)t.memoizedState=i;else {e=a.next;var c=u=null,o=null,s=e,y=false;do{var S=s.lane&-536870913;if(S!==s.lane?(et&S)===S:(Gl&S)===S){var h=s.revertLane;if(h===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),S===La&&(y=true);else if((Gl&h)===h){s=s.next,h===La&&(y=true);continue}else S={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},o===null?(c=o=S,u=i):o=o.next=S,W.lanes|=h,En|=h;S=s.action,Zn&&l(i,S),i=s.hasEagerState?s.eagerState:l(i,S);}else h={lane:S,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},o===null?(c=o=h,u=i):o=o.next=h,W.lanes|=S,En|=S;s=s.next;}while(s!==null&&s!==e);if(o===null?u=i:o.next=c,!_e(i,t.memoizedState)&&(qt=true,y&&(l=Ra,l!==null)))throw l;t.memoizedState=i,t.baseState=u,t.baseQueue=o,n.lastRenderedState=i;}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Lo(t){var e=Ut(),l=e.queue;if(l===null)throw Error(z(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var u=a=a.next;do i=t(i,u.action),u=u.next;while(u!==a);_e(i,e.memoizedState)||(qt=true),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i;}return [i,n]}function Mm(t,e,l){var n=W,a=Ut(),i=lt;if(i){if(l===void 0)throw Error(z(407));l=l();}else l=e();var u=!_e((st||a).memoizedState,l);if(u&&(a.memoizedState=l,qt=true),a=a.queue,zf(Om.bind(null,n,a,t),[t]),a.getSnapshot!==e||u||Vt!==null&&Vt.memoizedState.tag&1){if(n.flags|=2048,Ba(9,{destroy:void 0},Am.bind(null,n,a,l,e),null),pt===null)throw Error(z(349));i||(Gl&127)!==0||zm(n,e,l);}return l}function zm(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=W.updateQueue,e===null?(e=Nc(),W.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t));}function Am(t,e,l,n){e.value=l,e.getSnapshot=n,Cm(e)&&Rm(t);}function Om(t,e,l){return l(function(){Cm(e)&&Rm(t);})}function Cm(t){var e=t.getSnapshot;t=t.value;try{var l=e();return !_e(t,l)}catch{return true}}function Rm(t){var e=Wn(t,2);e!==null&&xe(e,t,2);}function Ar(t){var e=se();if(typeof t=="function"){var l=t;if(t=l(),Zn){an(true);try{l();}finally{an(false);}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:t},e}function wm(t,e,l,n){return t.baseState=l,Mf(t,st,typeof n=="function"?n:Zl)}function Gp(t,e,l,n,a){if(Uc(t))throw Error(z(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u);}};Z.T!==null?l(true):i.isTransition=false,n(i),l=e.pending,l===null?(i.next=e.pending=i,Dm(e,i)):(i.next=l.next,e.pending=l.next=i);}}function Dm(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=Z.T,u={};Z.T=u;try{var c=l(a,n),o=Z.S;o!==null&&o(u,c),wd(t,e,c);}catch(s){Or(t,e,s);}finally{i!==null&&u.types!==null&&(i.types=u.types),Z.T=i;}}else try{i=l(a,n),wd(t,e,i);}catch(s){Or(t,e,s);}}function wd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Dd(t,e,n);},function(n){return Or(t,e,n)}):Dd(t,e,l);}function Dd(t,e,l){e.status="fulfilled",e.value=l,Nm(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Dm(t,l)));}function Or(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Nm(e),e=e.next;while(e!==n)}t.action=null;}function Nm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0, t[e])();}function _m(t,e){return e}function Nd(t,e){if(lt){var l=pt.formState;if(l!==null){t:{var n=W;if(lt){if(xt){e:{for(var a=xt,i=ke;a.nodeType!==8;){if(!i){a=null;break e}if(a=Fe(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null;}if(a){xt=Fe(a.nextSibling),n=a.data==="F!";break t}}Sn(n);}n=false;}n&&(e=l[0]);}}return l=se(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_m,lastRenderedState:e},l.queue=n,l=Wm.bind(null,W,n),n.dispatch=l,n=Ar(false),i=Rf.bind(null,W,false,n.queue),n=se(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Gp.bind(null,W,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,false]}function _d(t){var e=Ut();return Hm(e,st,t)}function Hm(t,e,l){if(e=Mf(t,e,_m)[0],t=Xu(Zl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Pi(e);}catch(u){throw u===Ja?Dc:u}else n=e;e=Ut();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(W.flags|=2048,Ba(9,{destroy:void 0},Zp.bind(null,a,l),null)),[n,i,t]}function Zp(t,e){t.action=e;}function Hd(t){var e=Ut(),l=st;if(l!==null)return Hm(e,l,t);Ut(),e=e.memoizedState,l=Ut();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,false]}function Ba(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=W.updateQueue,e===null&&(e=Nc(),W.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Um(){return Ut().memoizedState}function ju(t,e,l,n){var a=se();W.flags|=t,a.memoizedState=Ba(1|e,{destroy:void 0},l,n===void 0?null:n);}function Hc(t,e,l,n){var a=Ut();n=n===void 0?null:n;var i=a.memoizedState.inst;st!==null&&n!==null&&gf(n,st.memoizedState.deps)?a.memoizedState=Ba(e,i,l,n):(W.flags|=t,a.memoizedState=Ba(1|e,i,l,n));}function Ud(t,e){ju(8390656,8,t,e);}function zf(t,e){Hc(2048,8,t,e);}function Qp(t){W.flags|=4;var e=W.updateQueue;if(e===null)e=Nc(),W.updateQueue=e,e.events=[t];else {var l=e.events;l===null?e.events=[t]:l.push(t);}}function Lm(t){var e=Ut().memoizedState;return Qp({ref:e,nextImpl:t}),function(){if((it&2)!==0)throw Error(z(440));return e.impl.apply(void 0,arguments)}}function Vm(t,e){return Hc(4,2,t,e)}function Bm(t,e){return Hc(4,4,t,e)}function Ym(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null);}}if(e!=null)return t=t(),e.current=t,function(){e.current=null;}}function qm(t,e,l){l=l!=null?l.concat([t]):null,Hc(4,4,Ym.bind(null,e,t),l);}function Af(){}function Xm(t,e){var l=Ut();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&gf(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function jm(t,e){var l=Ut();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&gf(e,n[1]))return n[0];if(n=t(),Zn){an(true);try{t();}finally{an(false);}}return l.memoizedState=[n,e],n}function Of(t,e,l){return l===void 0||(Gl&1073741824)!==0&&(et&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=w1(),W.lanes|=t,En|=t,l)}function Gm(t,e,l,n){return _e(l,e)?l:Va.current!==null?(t=Of(t,l,n),_e(t,e)||(qt=true),t):(Gl&42)===0||(Gl&1073741824)!==0&&(et&261930)===0?(qt=true,t.memoizedState=l):(t=w1(),W.lanes|=t,En|=t,e)}function Zm(t,e,l,n,a){var i=ut.p;ut.p=i!==0&&8>i?i:8;var u=Z.T,c={};Z.T=c,Rf(t,false,e,l);try{var o=a(),s=Z.S;if(s!==null&&s(c,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var y=qp(o,n);Ai(t,e,y,Ne(t));}else Ai(t,e,n,Ne(t));}catch(S){Ai(t,e,{then:function(){},status:"rejected",reason:S},Ne());}finally{ut.p=i,u!==null&&c.types!==null&&(u.types=c.types),Z.T=u;}}function Kp(){}function Cr(t,e,l,n){if(t.tag!==5)throw Error(z(476));var a=Qm(t).queue;Zm(t,a,e,Ln,l===null?Kp:function(){return Km(t),l(n)});}function Qm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Ln,baseState:Ln,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:Ln},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Km(t){var e=Qm(t);e.next===null&&(e=t.alternate.memoizedState),Ai(t,e.next.queue,{},Ne());}function Cf(){return Pt(Gi)}function Jm(){return Ut().memoizedState}function km(){return Ut().memoizedState}function Jp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ne();t=dn(l);var n=mn(e,t,l);n!==null&&(xe(n,e,l),Ti(n,e,l)),e={cache:mf()},t.payload=e;return}e=e.return;}}function kp(t,e,l){var n=Ne();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:false,eagerState:null,next:null},Uc(t)?Fm(e,l):(l=rf(t,e,l,n),l!==null&&(xe(l,t,n),$m(l,e,n)));}function Wm(t,e,l){var n=Ne();Ai(t,e,l,n);}function Ai(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:false,eagerState:null,next:null};if(Uc(t))Fm(e,a);else {var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,c=i(u,l);if(a.hasEagerState=!0,a.eagerState=c,_e(c,u))return wc(t,e,a,0),pt===null&&Rc(),!1}catch{}if(l=rf(t,e,a,n),l!==null)return xe(l,t,n),$m(l,e,n),true}return false}function Rf(t,e,l,n){if(n={lane:2,revertLane:Bf(),gesture:null,action:n,hasEagerState:false,eagerState:null,next:null},Uc(t)){if(e)throw Error(z(479))}else e=rf(t,l,n,2),e!==null&&xe(e,t,2);}function Uc(t){var e=t.alternate;return t===W||e!==null&&e===W}function Fm(t,e){Da=oc=true;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e;}function $m(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,L0(t,l);}}var qi={readContext:Pt,use:_c,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};qi.useEffectEvent=wt;var Im={readContext:Pt,use:_c,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:Ud,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,ju(4194308,4,Ym.bind(null,e,t),l);},useLayoutEffect:function(t,e){return ju(4194308,4,t,e)},useInsertionEffect:function(t,e){ju(4,2,t,e);},useMemo:function(t,e){var l=se();e=e===void 0?null:e;var n=t();if(Zn){an(true);try{t();}finally{an(false);}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=se();if(l!==void 0){var a=l(e);if(Zn){an(true);try{l(e);}finally{an(false);}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=kp.bind(null,W,t),[n.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=Ar(t);var e=t.queue,l=Wm.bind(null,W,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Af,useDeferredValue:function(t,e){var l=se();return Of(l,t,e)},useTransition:function(){var t=Ar(false);return t=Zm.bind(null,W,t.queue,true,false),se().memoizedState=t,[false,t]},useSyncExternalStore:function(t,e,l){var n=W,a=se();if(lt){if(l===void 0)throw Error(z(407));l=l();}else {if(l=e(),pt===null)throw Error(z(349));(et&127)!==0||zm(n,e,l);}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,Ud(Om.bind(null,n,i,t),[t]),n.flags|=2048,Ba(9,{destroy:void 0},Am.bind(null,n,i,l,e),null),l},useId:function(){var t=se(),e=pt.identifierPrefix;if(lt){var l=yl,n=pl;l=(n&~(1<<32-De(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=rc++,0<l&&(e+="H"+l.toString(32)),e+="_";}else l=Xp++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cf,useFormState:Nd,useActionState:Nd,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Rf.bind(null,W,true,l),l.dispatch=e,[t,e]},useMemoCache:Tf,useCacheRefresh:function(){return se().memoizedState=Jp.bind(null,W)},useEffectEvent:function(t){var e=se(),l={impl:t};return e.memoizedState=l,function(){if((it&2)!==0)throw Error(z(440));return l.impl.apply(void 0,arguments)}}},wf={readContext:Pt,use:_c,useCallback:Xm,useContext:Pt,useEffect:zf,useImperativeHandle:qm,useInsertionEffect:Vm,useLayoutEffect:Bm,useMemo:jm,useReducer:Xu,useRef:Um,useState:function(){return Xu(Zl)},useDebugValue:Af,useDeferredValue:function(t,e){var l=Ut();return Gm(l,st.memoizedState,t,e)},useTransition:function(){var t=Xu(Zl)[0],e=Ut().memoizedState;return [typeof t=="boolean"?t:Pi(t),e]},useSyncExternalStore:Mm,useId:Jm,useHostTransitionStatus:Cf,useFormState:_d,useActionState:_d,useOptimistic:function(t,e){var l=Ut();return wm(l,st,t,e)},useMemoCache:Tf,useCacheRefresh:km};wf.useEffectEvent=Lm;var Pm={readContext:Pt,use:_c,useCallback:Xm,useContext:Pt,useEffect:zf,useImperativeHandle:qm,useInsertionEffect:Vm,useLayoutEffect:Bm,useMemo:jm,useReducer:Lo,useRef:Um,useState:function(){return Lo(Zl)},useDebugValue:Af,useDeferredValue:function(t,e){var l=Ut();return st===null?Of(l,t,e):Gm(l,st.memoizedState,t,e)},useTransition:function(){var t=Lo(Zl)[0],e=Ut().memoizedState;return [typeof t=="boolean"?t:Pi(t),e]},useSyncExternalStore:Mm,useId:Jm,useHostTransitionStatus:Cf,useFormState:Hd,useActionState:Hd,useOptimistic:function(t,e){var l=Ut();return st!==null?wm(l,st,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Tf,useCacheRefresh:km};Pm.useEffectEvent=Lm;function Vo(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:Et({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l);}var Rr={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Ne(),a=dn(n);a.payload=e,l!=null&&(a.callback=l),e=mn(t,a,n),e!==null&&(xe(e,t,n),Ti(e,t,n));},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Ne(),a=dn(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=mn(t,a,n),e!==null&&(xe(e,t,n),Ti(e,t,n));},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ne(),n=dn(l);n.tag=2,e!=null&&(n.callback=e),e=mn(t,n,l),e!==null&&(xe(e,t,l),Ti(e,t,l));}};function Ld(t,e,l,n,a,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,u):e.prototype&&e.prototype.isPureReactComponent?!Ui(l,n)||!Ui(a,i):true}function Vd(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&Rr.enqueueReplaceState(e,e.state,null);}function Qn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n]);}if(t=t.defaultProps){l===e&&(l=Et({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a]);}return l}function t1(t){ec(t);}function e1(t){console.error(t);}function l1(t){ec(t);}function fc(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack});}catch(n){setTimeout(function(){throw n});}}function Bd(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null});}catch(a){setTimeout(function(){throw a});}}function wr(t,e,l){return l=dn(l),l.tag=3,l.payload={element:null},l.callback=function(){fc(t,e);},l}function n1(t){return t=dn(t),t.tag=3,t}function a1(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){Bd(e,l,n);};}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){Bd(e,l,n),typeof a!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:""});});}function Wp(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Ka(e,l,a,true),l=He.current,l!==null){switch(l.tag){case 31:case 13:return We===null?hc():l.alternate===null&&Dt===0&&(Dt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ic?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),ko(t,n,a)),false;case 22:return l.flags|=65536,n===ic?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),ko(t,n,a)),false}throw Error(z(435,l.tag))}return ko(t,n,a),hc(),false}if(lt)return e=He.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==yr&&(t=Error(z(422),{cause:n}),Vi(Je(t,l)))):(n!==yr&&(e=Error(z(423),{cause:n}),Vi(Je(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Je(n,l),a=wr(t.stateNode,n,a),Uo(t,a),Dt!==4&&(Dt=2)),false;var i=Error(z(520),{cause:n});if(i=Je(i,l),Ri===null?Ri=[i]:Ri.push(i),Dt!==4&&(Dt=2),e===null)return true;n=Je(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=wr(l.stateNode,n,t),Uo(l,t),false;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(vn===null||!vn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=n1(a),a1(a,t,l,n),Uo(l,a),false}l=l.return;}while(l!==null);return false}var Df=Error(z(461)),qt=false;function Ft(t,e,l,n){e.child=t===null?gm(e,null,l,n):Gn(e,t.child,l,n);}function Yd(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var u={};for(var c in n)c!=="ref"&&(u[c]=n[c]);}else u=n;return jn(e),n=bf(t,e,l,u,i,a),c=Sf(),t!==null&&!qt?(xf(t,e,a),Ql(t,e,a)):(lt&&c&&sf(e),e.flags|=1,Ft(t,e,n,a),e.child)}function qd(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!ff(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,i1(t,e,i,n,a)):(t=Yu(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Nf(t,a)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ui,l(u,n)&&t.ref===e.ref)return Ql(t,e,a)}return e.flags|=1,t=Yl(i,n),t.ref=e.ref,t.return=e,e.child=t}function i1(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(Ui(i,n)&&t.ref===e.ref)if(qt=false,e.pendingProps=n=i,Nf(t,a))(t.flags&131072)!==0&&(qt=true);else return e.lanes=t.lanes,Ql(t,e,a)}return Dr(t,e,l,n,a)}function u1(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i;}else n=0,e.child=null;return Xd(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&qu(e,i!==null?i.cachePool:null),i!==null?Rd(e,i):Mr(),xm(e);else return n=e.lanes=536870912,Xd(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(qu(e,i.cachePool),Rd(e,i),ln(),e.memoizedState=null):(t!==null&&qu(e,null),Mr(),ln());return Ft(t,e,a,l),e.child}function yi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Xd(t,e,l,n,a){var i=vf();return i=i===null?null:{parent:Yt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&qu(e,null),Mr(),xm(e),t!==null&&Ka(t,e,n,true),e.childLanes=a,null}function Gu(t,e){return e=sc({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function jd(t,e,l){return Gn(e,t.child,null,l),t=Gu(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function Fp(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(lt){if(n.mode==="hidden")return t=Gu(e,n),e.lanes=536870912,yi(null,t);if(zr(e),(t=xt)?(t=I1(t,ke),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:pl,overflow:yl}:null,retryLane:536870912,hydrationErrors:null},l=sm(t),l.return=e,e.child=l,It=e,xt=null)):t=null,t===null)throw Sn(e);return e.lanes=536870912,null}return Gu(e,n)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(zr(e),a)if(e.flags&256)e.flags&=-257,e=jd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(z(558));else if(qt||Ka(t,e,l,false),a=(l&t.childLanes)!==0,qt||a){if(n=pt,n!==null&&(u=V0(n,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,Wn(t,u),xe(n,t,u),Df;hc(),e=jd(t,e,l);}else t=i.treeContext,xt=Fe(u.nextSibling),It=e,lt=true,sn=null,ke=false,t!==null&&mm(e,t),e=Gu(e,n),e.flags|=4096;return e}return t=Yl(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Zu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else {if(typeof l!="function"&&typeof l!="object")throw Error(z(284));(t===null||t.ref!==l)&&(e.flags|=4194816);}}function Dr(t,e,l,n,a){return jn(e),l=bf(t,e,l,n,void 0,a),n=Sf(),t!==null&&!qt?(xf(t,e,a),Ql(t,e,a)):(lt&&n&&sf(e),e.flags|=1,Ft(t,e,l,a),e.child)}function Gd(t,e,l,n,a,i){return jn(e),e.updateQueue=null,l=Tm(e,n,l,a),Em(t),n=Sf(),t!==null&&!qt?(xf(t,e,i),Ql(t,e,i)):(lt&&n&&sf(e),e.flags|=1,Ft(t,e,l,i),e.child)}function Zd(t,e,l,n,a){if(jn(e),e.stateNode===null){var i=Ea,u=l.contextType;typeof u=="object"&&u!==null&&(i=Pt(u)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Rr,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},pf(e),u=l.contextType,i.context=typeof u=="object"&&u!==null?Pt(u):Ea,i.state=e.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Vo(e,l,u,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Rr.enqueueReplaceState(i,i.state,null),zi(e,n,i,a),Mi(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=true;}else if(t===null){i=e.stateNode;var c=e.memoizedProps,o=Qn(l,c);i.props=o;var s=i.context,y=l.contextType;u=Ea,typeof y=="object"&&y!==null&&(u=Pt(y));var S=l.getDerivedStateFromProps;y=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function",c=e.pendingProps!==c,y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c||s!==u)&&Vd(e,i,n,u),Pl=false;var h=e.memoizedState;i.state=h,zi(e,n,i,a),Mi(),s=e.memoizedState,c||h!==s||Pl?(typeof S=="function"&&(Vo(e,l,S,n),s=e.memoizedState),(o=Pl||Ld(e,l,o,n,h,s,u))?(y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=s),i.props=n,i.state=s,i.context=u,n=o):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=false);}else {i=e.stateNode,Er(t,e),u=e.memoizedProps,y=Qn(l,u),i.props=y,S=e.pendingProps,h=i.context,s=l.contextType,o=Ea,typeof s=="object"&&s!==null&&(o=Pt(s)),c=l.getDerivedStateFromProps,(s=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==S||h!==o)&&Vd(e,i,n,o),Pl=false,h=e.memoizedState,i.state=h,zi(e,n,i,a),Mi();var g=e.memoizedState;u!==S||h!==g||Pl||t!==null&&t.dependencies!==null&&ac(t.dependencies)?(typeof c=="function"&&(Vo(e,l,c,n),g=e.memoizedState),(y=Pl||Ld(e,l,y,n,h,g,o)||t!==null&&t.dependencies!==null&&ac(t.dependencies))?(s||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,g,o),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,g,o)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=g),i.props=n,i.state=g,i.context=o,n=y):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=false);}return i=n,Zu(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=Gn(e,t.child,null,a),e.child=Gn(e,null,l,a)):Ft(t,e,l,a),e.memoizedState=i.state,t=e.child):t=Ql(t,e,a),t}function Qd(t,e,l,n){return Xn(),e.flags|=256,Ft(t,e,l,n),e.child}var Bo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yo(t){return {baseLanes:t,cachePool:hm()}}function qo(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ce),t}function c1(t,e,l){var n=e.pendingProps,a=false,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?false:(Ht.current&2)!==0),u&&(a=true,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(lt){if(a?en(e):ln(),(t=xt)?(t=I1(t,ke),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:pl,overflow:yl}:null,retryLane:536870912,hydrationErrors:null},l=sm(t),l.return=e,e.child=l,It=e,xt=null)):t=null,t===null)throw Sn(e);return Qr(t)?e.lanes=32:e.lanes=536870912,null}var c=n.children;return n=n.fallback,a?(ln(),a=e.mode,c=sc({mode:"hidden",children:c},a),n=Vn(n,a,l,null),c.return=e,n.return=e,c.sibling=n,e.child=c,n=e.child,n.memoizedState=Yo(l),n.childLanes=qo(t,u,l),e.memoizedState=Bo,yi(null,n)):(en(e),Nr(e,c))}var o=t.memoizedState;if(o!==null&&(c=o.dehydrated,c!==null)){if(i)e.flags&256?(en(e),e.flags&=-257,e=Xo(t,e,l)):e.memoizedState!==null?(ln(),e.child=t.child,e.flags|=128,e=null):(ln(),c=n.fallback,a=e.mode,n=sc({mode:"visible",children:n.children},a),c=Vn(c,a,l,null),c.flags|=2,n.return=e,c.return=e,n.sibling=c,e.child=n,Gn(e,t.child,null,l),n=e.child,n.memoizedState=Yo(l),n.childLanes=qo(t,u,l),e.memoizedState=Bo,e=yi(null,n));else if(en(e),Qr(c)){if(u=c.nextSibling&&c.nextSibling.dataset,u)var s=u.dgst;u=s,n=Error(z(419)),n.stack="",n.digest=u,Vi({value:n,source:null,stack:null}),e=Xo(t,e,l);}else if(qt||Ka(t,e,l,false),u=(l&t.childLanes)!==0,qt||u){if(u=pt,u!==null&&(n=V0(u,l),n!==0&&n!==o.retryLane))throw o.retryLane=n,Wn(t,n),xe(u,t,n),Df;Zr(c)||hc(),e=Xo(t,e,l);}else Zr(c)?(e.flags|=192,e.child=t.child,e=null):(t=o.treeContext,xt=Fe(c.nextSibling),It=e,lt=true,sn=null,ke=false,t!==null&&mm(e,t),e=Nr(e,n.children),e.flags|=4096);return e}return a?(ln(),c=n.fallback,a=e.mode,o=t.child,s=o.sibling,n=Yl(o,{mode:"hidden",children:n.children}),n.subtreeFlags=o.subtreeFlags&65011712,s!==null?c=Yl(s,c):(c=Vn(c,a,l,null),c.flags|=2),c.return=e,n.return=e,n.sibling=c,e.child=n,yi(null,n),n=e.child,c=t.child.memoizedState,c===null?c=Yo(l):(a=c.cachePool,a!==null?(o=Yt._currentValue,a=a.parent!==o?{parent:o,pool:o}:a):a=hm(),c={baseLanes:c.baseLanes|l,cachePool:a}),n.memoizedState=c,n.childLanes=qo(t,u,l),e.memoizedState=Bo,yi(t.child,n)):(en(e),l=t.child,t=l.sibling,l=Yl(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=l,e.memoizedState=null,l)}function Nr(t,e){return e=sc({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function sc(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function Xo(t,e,l){return Gn(e,t.child,null,l),t=Nr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Kd(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),br(t.return,e,l);}function jo(t,e,l,n,a,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a,u.treeForkCount=i);}function o1(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var u=Ht.current,c=(u&2)!==0;if(c?(u=u&1|2,e.flags|=128):u&=1,gt(Ht,u),Ft(t,e,n,l),n=lt?Li:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kd(t,l,e);else if(t.tag===19)Kd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return;}t.sibling.return=t.return,t=t.sibling;}switch(a){case "forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&cc(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),jo(e,false,a,l,i,n);break;case "backwards":case "unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&cc(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t;}jo(e,true,l,null,i,n);break;case "together":jo(e,false,null,null,void 0,n);break;default:e.memoizedState=null;}return e.child}function Ql(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),En|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ka(t,e,l,false),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(z(153));if(e.child!==null){for(t=e.child,l=Yl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Yl(t,t.pendingProps),l.return=e;l.sibling=null;}return e.child}function Nf(t,e){return (t.lanes&e)!==0?true:(t=t.dependencies,!!(t!==null&&ac(t)))}function $p(t,e,l){switch(e.tag){case 3:$u(e,e.stateNode.containerInfo),tn(e,Yt,t.memoizedState.cache),Xn();break;case 27:case 5:ur(e);break;case 4:$u(e,e.stateNode.containerInfo);break;case 10:tn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zr(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(en(e),e.flags|=128,null):(l&e.child.childLanes)!==0?c1(t,e,l):(en(e),t=Ql(t,e,l),t!==null?t.sibling:null);en(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Ka(t,e,l,false),n=(l&e.childLanes)!==0),a){if(n)return o1(t,e,l);e.flags|=128;}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),gt(Ht,Ht.current),n)break;return null;case 22:return e.lanes=0,u1(t,e,l,e.pendingProps);case 24:tn(e,Yt,t.memoizedState.cache);}return Ql(t,e,l)}function r1(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)qt=true;else {if(!Nf(t,l)&&(e.flags&128)===0)return qt=false,$p(t,e,l);qt=(t.flags&131072)!==0;}else qt=false,lt&&(e.flags&1048576)!==0&&dm(e,Li,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Hn(e.elementType),e.type=t,typeof t=="function")ff(t)?(n=Qn(t,n),e.tag=1,e=Zd(null,e,t,n,l)):(e.tag=0,e=Dr(null,e,t,n,l));else {if(t!=null){var a=t.$$typeof;if(a===Wr){e.tag=11,e=Yd(null,e,t,n,l);break t}else if(a===Fr){e.tag=14,e=qd(null,e,t,n,l);break t}}throw e=ar(t)||t,Error(z(306,e,""))}}return e;case 0:return Dr(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Qn(n,e.pendingProps),Zd(t,e,n,a,l);case 3:t:{if($u(e,e.stateNode.containerInfo),t===null)throw Error(z(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Er(t,e),zi(e,n,null,l);var u=e.memoizedState;if(n=u.cache,tn(e,Yt,n),n!==i.cache&&Sr(e,[Yt],l,true),Mi(),n=u.element,i.isDehydrated)if(i={element:n,isDehydrated:false,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Qd(t,e,n,l);break t}else if(n!==a){a=Je(Error(z(424)),e),Vi(a),e=Qd(t,e,n,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,xt=Fe(t.firstChild),It=e,lt=true,sn=null,ke=true,l=gm(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else {if(Xn(),n===a){e=Ql(t,e,l);break t}Ft(t,e,n,l);}e=e.child;}return e;case 26:return Zu(t,e),t===null?(l=v0(e.type,null,e.pendingProps,null))?e.memoizedState=l:lt||(l=e.type,t=e.pendingProps,n=bc(fn.current).createElement(l),n[$t]=e,n[Ee]=t,te(n,l,t),Qt(n),e.stateNode=n):e.memoizedState=v0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ur(e),t===null&&lt&&(n=e.stateNode=P1(e.type,e.pendingProps,fn.current),It=e,ke=true,a=xt,Mn(e.type)?(Kr=a,xt=Fe(n.firstChild)):xt=a),Ft(t,e,e.pendingProps.children,l),Zu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&lt&&((a=n=xt)&&(n=zy(n,e.type,e.pendingProps,ke),n!==null?(e.stateNode=n,It=e,xt=Fe(n.firstChild),ke=false,a=true):a=false),a||Sn(e)),ur(e),a=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,n=i.children,jr(a,i)?n=null:u!==null&&jr(a,u)&&(e.flags|=32),e.memoizedState!==null&&(a=bf(t,e,jp,null,null,l),Gi._currentValue=a),Zu(t,e),Ft(t,e,n,l),e.child;case 6:return t===null&&lt&&((t=l=xt)&&(l=Ay(l,e.pendingProps,ke),l!==null?(e.stateNode=l,It=e,xt=null,t=true):t=false),t||Sn(e)),null;case 13:return c1(t,e,l);case 4:return $u(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Gn(e,null,n,l):Ft(t,e,n,l),e.child;case 11:return Yd(t,e,e.type,e.pendingProps,l);case 7:return Ft(t,e,e.pendingProps,l),e.child;case 8:return Ft(t,e,e.pendingProps.children,l),e.child;case 12:return Ft(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,tn(e,e.type,n.value),Ft(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,jn(e),a=Pt(a),n=n(a),e.flags|=1,Ft(t,e,n,l),e.child;case 14:return qd(t,e,e.type,e.pendingProps,l);case 15:return i1(t,e,e.type,e.pendingProps,l);case 19:return o1(t,e,l);case 31:return Fp(t,e,l);case 22:return u1(t,e,l,e.pendingProps);case 24:return jn(e),n=Pt(Yt),t===null?(a=vf(),a===null&&(a=pt,i=mf(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},pf(e),tn(e,Yt,a)):((t.lanes&l)!==0&&(Er(t,e),zi(e,null,null,l),Mi()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),tn(e,Yt,n)):(n=i.cache,tn(e,Yt,n),n!==a.cache&&Sr(e,[Yt],l,true))),Ft(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(z(156,e.tag))}function wl(t){t.flags|=4;}function Go(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=false),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(_1())t.flags|=8192;else throw Yn=ic,hf}else t.flags&=-16777217;}function Jd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!lv(e))if(_1())t.flags|=8192;else throw Yn=ic,hf}function Cu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?H0():536870912,t.lanes|=e,Ya|=e);}function fi(t,e){if(!lt)switch(t.tailMode){case "hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case "collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null;}}function St(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Ip(t,e,l){var n=e.pendingProps;switch(df(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(e),null;case 1:return St(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ql(Yt),_a(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(fa(e)?wl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ho())),St(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(wl(e),i!==null?(St(e),Jd(e,i)):(St(e),Go(e,a,null,n,l))):i?i!==t.memoizedState?(wl(e),St(e),Jd(e,i)):(St(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&wl(e),St(e),Go(e,a,t,n,l)),null;case 27:if(Iu(e),l=fn.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wl(e);else {if(!n){if(e.stateNode===null)throw Error(z(166));return St(e),null}t=bl.current,fa(e)?Ed(e):(t=P1(a,n,l),e.stateNode=t,wl(e));}return St(e),null;case 5:if(Iu(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wl(e);else {if(!n){if(e.stateNode===null)throw Error(z(166));return St(e),null}if(i=bl.current,fa(e))Ed(e);else {var u=bc(fn.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case "svg":i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case "math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case "script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case "select":i=typeof n.is=="string"?u.createElement("select",{is:n.is}):u.createElement("select"),n.multiple?i.multiple=true:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?u.createElement(a,{is:n.is}):u.createElement(a);}}i[$t]=e,i[Ee]=n;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return;}u.sibling.return=u.return,u=u.sibling;}e.stateNode=i;t:switch(te(i,a,n),a){case "button":case "input":case "select":case "textarea":n=!!n.autoFocus;break t;case "img":n=true;break t;default:n=false;}n&&wl(e);}}return St(e),Go(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&wl(e);else {if(typeof n!="string"&&e.stateNode===null)throw Error(z(166));if(t=fn.current,fa(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=It,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps;}t[$t]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===true||W1(t.nodeValue,l)),t||Sn(e,true);}else t=bc(t).createTextNode(n),t[$t]=e,e.stateNode=t;}return St(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=fa(e),l!==null){if(t===null){if(!n)throw Error(z(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(z(557));t[$t]=e;}else Xn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),t=false;}else l=Ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=true;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(z(558))}return St(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=fa(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(z(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(z(317));a[$t]=e;}else Xn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),a=false;}else a=Ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=true;if(!a)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Cu(e,e.updateQueue),St(e),null);case 4:return _a(),t===null&&Yf(e.stateNode.containerInfo),St(e),null;case 10:return ql(e.type),St(e),null;case 19:if(Kt(Ht),n=e.memoizedState,n===null)return St(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)fi(n,false);else {if(Dt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=cc(t),i!==null){for(e.flags|=128,fi(n,false),t=i.updateQueue,e.updateQueue=t,Cu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)fm(l,t),l=l.sibling;return gt(Ht,Ht.current&1|2),lt&&Hl(e,n.treeForkCount),e.child}t=t.sibling;}n.tail!==null&&Re()>mc&&(e.flags|=128,a=true,fi(n,false),e.lanes=4194304);}else {if(!a)if(t=cc(i),t!==null){if(e.flags|=128,a=true,t=t.updateQueue,e.updateQueue=t,Cu(e,t),fi(n,true),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!lt)return St(e),null}else 2*Re()-n.renderingStartTime>mc&&l!==536870912&&(e.flags|=128,a=true,fi(n,false),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i);}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Re(),t.sibling=null,l=Ht.current,gt(Ht,a?l&1|2:l&1),lt&&Hl(e,n.treeForkCount),t):(St(e),null);case 22:case 23:return Ae(e),yf(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(St(e),e.subtreeFlags&6&&(e.flags|=8192)):St(e),l=e.updateQueue,l!==null&&Cu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&Kt(Bn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ql(Yt),St(e),null;case 25:return null;case 30:return null}throw Error(z(156,e.tag))}function Pp(t,e){switch(df(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ql(Yt),_a(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Iu(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(z(340));Xn();}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(z(340));Xn();}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Kt(Ht),null;case 4:return _a(),null;case 10:return ql(e.type),null;case 22:case 23:return Ae(e),yf(),t!==null&&Kt(Bn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ql(Yt),null;case 25:return null;default:return null}}function f1(t,e){switch(df(e),e.tag){case 3:ql(Yt),_a();break;case 26:case 27:case 5:Iu(e);break;case 4:_a();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:Kt(Ht);break;case 10:ql(e.type);break;case 22:case 23:Ae(e),yf(),t!==null&&Kt(Bn);break;case 24:ql(Yt);}}function tu(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,u=l.inst;n=i(),u.destroy=n;}l=l.next;}while(l!==a)}}catch(c){ot(e,e.return,c);}}function xn(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var u=n.inst,c=u.destroy;if(c!==void 0){u.destroy=void 0,a=e;var o=l,s=c;try{s();}catch(y){ot(a,o,y);}}}n=n.next;}while(n!==i)}}catch(y){ot(e,e.return,y);}}function s1(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Sm(e,l);}catch(n){ot(t,t.return,n);}}}function d1(t,e,l){l.props=Qn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount();}catch(n){ot(t,e,n);}}function Oi(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode;}typeof l=="function"?t.refCleanup=l(n):l.current=n;}}catch(a){ot(t,e,a);}}function gl(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n();}catch(a){ot(t,e,a);}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null);}else if(typeof l=="function")try{l(null);}catch(a){ot(t,e,a);}else l.current=null;}function m1(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case "button":case "input":case "select":case "textarea":l.autoFocus&&n.focus();break t;case "img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet);}}catch(a){ot(t,t.return,a);}}function Zo(t,e,l){try{var n=t.stateNode;by(n,t.type,l,e),n[Ee]=e;}catch(a){ot(t,t.return,a);}}function v1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Mn(t.type)||t.tag===4}function Qo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||v1(t.return))return null;t=t.return;}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Mn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child;}if(!(t.flags&2))return t.stateNode}}function _r(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Vl));else if(n!==4&&(n===27&&Mn(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(_r(t,e,l),t=t.sibling;t!==null;)_r(t,e,l),t=t.sibling;}function dc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Mn(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(dc(t,e,l),t=t.sibling;t!==null;)dc(t,e,l),t=t.sibling;}function h1(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);te(e,n,l),e[$t]=t,e[Ee]=l;}catch(i){ot(t,t.return,i);}}var Ul=false,Bt=false,Ko=false,kd=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function ty(t,e){if(t=t.containerInfo,qr=Tc,t=lm(t),cf(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType;}catch{l=null;break t}var u=0,c=-1,o=-1,s=0,y=0,S=t,h=null;e:for(;;){for(var g;S!==l||a!==0&&S.nodeType!==3||(c=u+a),S!==i||n!==0&&S.nodeType!==3||(o=u+n),S.nodeType===3&&(u+=S.nodeValue.length),(g=S.firstChild)!==null;)h=S,S=g;for(;;){if(S===t)break e;if(h===l&&++s===a&&(c=u),h===i&&++y===n&&(o=u),(g=S.nextSibling)!==null)break;S=h,h=S.parentNode;}S=g;}l=c===-1||o===-1?null:{start:c,end:o};}else l=null;}l=l||{start:0,end:0};}else l=null;for(Xr={focusedElem:t,selectionRange:l},Tc=false,Zt=e;Zt!==null;)if(e=Zt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Zt=t;else for(;Zt!==null;){switch(e=Zt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var O=Qn(l.type,a);t=n.getSnapshotBeforeUpdate(O,i),n.__reactInternalSnapshotBeforeUpdate=t;}catch(C){ot(l,l.return,C);}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Gr(t);else if(l===1)switch(t.nodeName){case "HEAD":case "HTML":case "BODY":Gr(t);break;default:t.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(z(163))}if(t=e.sibling,t!==null){t.return=e.return,Zt=t;break}Zt=e.return;}}function p1(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(t,l),n&4&&tu(5,l);break;case 1:if(Nl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount();}catch(u){ot(l,l.return,u);}else {var a=Qn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate);}catch(u){ot(l,l.return,u);}}n&64&&s1(l),n&512&&Oi(l,l.return);break;case 3:if(Nl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode;}try{Sm(t,e);}catch(u){ot(l,l.return,u);}}break;case 27:e===null&&n&4&&h1(l);case 26:case 5:Nl(t,l),e===null&&n&4&&m1(l),n&512&&Oi(l,l.return);break;case 12:Nl(t,l);break;case 31:Nl(t,l),n&4&&b1(t,l);break;case 13:Nl(t,l),n&4&&S1(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=ry.bind(null,l),Oy(t,l))));break;case 22:if(n=l.memoizedState!==null||Ul,!n){e=e!==null&&e.memoizedState!==null||Bt,a=Ul;var i=Bt;Ul=n,(Bt=e)&&!i?_l(t,l,(l.subtreeFlags&8772)!==0):Nl(t,l),Ul=a,Bt=i;}break;case 30:break;default:Nl(t,l);}}function y1(t){var e=t.alternate;e!==null&&(t.alternate=null,y1(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&tf(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null;}var zt=null,be=false;function Dl(t,e,l){for(l=l.child;l!==null;)g1(t,e,l),l=l.sibling;}function g1(t,e,l){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(Ji,l);}catch{}switch(l.tag){case 26:Bt||gl(l,e),Dl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bt||gl(l,e);var n=zt,a=be;Mn(l.type)&&(zt=l.stateNode,be=false),Dl(t,e,l),Di(l.stateNode),zt=n,be=a;break;case 5:Bt||gl(l,e);case 6:if(n=zt,a=be,zt=null,Dl(t,e,l),zt=n,be=a,zt!==null)if(be)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(l.stateNode);}catch(i){ot(l,e,i);}else try{zt.removeChild(l.stateNode);}catch(i){ot(l,e,i);}break;case 18:zt!==null&&(be?(t=zt,r0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ga(t)):r0(zt,l.stateNode));break;case 4:n=zt,a=be,zt=l.stateNode.containerInfo,be=true,Dl(t,e,l),zt=n,be=a;break;case 0:case 11:case 14:case 15:xn(2,l,e),Bt||xn(4,l,e),Dl(t,e,l);break;case 1:Bt||(gl(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&d1(l,e,n)),Dl(t,e,l);break;case 21:Dl(t,e,l);break;case 22:Bt=(n=Bt)||l.memoizedState!==null,Dl(t,e,l),Bt=n;break;default:Dl(t,e,l);}}function b1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ga(t);}catch(l){ot(e,e.return,l);}}}function S1(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ga(t);}catch(l){ot(e,e.return,l);}}function ey(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new kd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new kd),e;default:throw Error(z(435,t.tag))}}function Ru(t,e){var l=ey(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=fy.bind(null,t,n);n.then(a,a);}});}function ye(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=t,u=e,c=u;t:for(;c!==null;){switch(c.tag){case 27:if(Mn(c.type)){zt=c.stateNode,be=false;break t}break;case 5:zt=c.stateNode,be=false;break t;case 3:case 4:zt=c.stateNode.containerInfo,be=true;break t}c=c.return;}if(zt===null)throw Error(z(160));g1(i,u,a),zt=null,be=false,i=a.alternate,i!==null&&(i.return=null),a.return=null;}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)x1(e,t),e=e.sibling;}var cl=null;function x1(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),n&4&&(xn(3,t,t.return),tu(3,t),xn(5,t,t.return));break;case 1:ye(e,t),ge(t),n&512&&(Bt||l===null||gl(l,l.return)),n&64&&Ul&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=cl;if(ye(e,t),ge(t),n&512&&(Bt||l===null||gl(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case "title":i=a.getElementsByTagName("title")[0],(!i||i[Fi]||i[$t]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),te(i,n,l),i[$t]=t,Qt(i),n=i;break t;case "link":var u=p0("link","href",a).get(n+(l.href||""));if(u){for(var c=0;c<u.length;c++)if(i=u[c],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(c,1);break e}}i=a.createElement(n),te(i,n,l),a.head.appendChild(i);break;case "meta":if(u=p0("meta","content",a).get(n+(l.content||""))){for(c=0;c<u.length;c++)if(i=u[c],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(c,1);break e}}i=a.createElement(n),te(i,n,l),a.head.appendChild(i);break;default:throw Error(z(468,n))}i[$t]=t,Qt(i),n=i;}t.stateNode=n;}else y0(a,t.type,t.stateNode);else t.stateNode=h0(a,n,t.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?y0(a,t.type,t.stateNode):h0(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Zo(t,t.memoizedProps,l.memoizedProps);}break;case 27:ye(e,t),ge(t),n&512&&(Bt||l===null||gl(l,l.return)),l!==null&&n&4&&Zo(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ye(e,t),ge(t),n&512&&(Bt||l===null||gl(l,l.return)),t.flags&32){a=t.stateNode;try{Ua(a,"");}catch(O){ot(t,t.return,O);}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Zo(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Ko=true);break;case 6:if(ye(e,t),ge(t),n&4){if(t.stateNode===null)throw Error(z(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n;}catch(O){ot(t,t.return,O);}}break;case 3:if(Ju=null,a=cl,cl=Sc(e.containerInfo),ye(e,t),cl=a,ge(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(e.containerInfo);}catch(O){ot(t,t.return,O);}Ko&&(Ko=false,E1(t));break;case 4:n=cl,cl=Sc(t.stateNode.containerInfo),ye(e,t),ge(t),cl=n;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ru(t,n)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Lc=Re()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ru(t,n)));break;case 22:a=t.memoizedState!==null;var o=l!==null&&l.memoizedState!==null,s=Ul,y=Bt;if(Ul=s||a,Bt=y||o,ye(e,t),Bt=y,Ul=s,ge(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||o||Ul||Bt||Un(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){o=l=e;try{if(i=o.stateNode,a)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else {c=o.stateNode;var S=o.memoizedProps.style,h=S!=null&&S.hasOwnProperty("display")?S.display:null;c.style.display=h==null||typeof h=="boolean"?"":(""+h).trim();}}catch(O){ot(o,o.return,O);}}}else if(e.tag===6){if(l===null){o=e;try{o.stateNode.nodeValue=a?"":o.memoizedProps;}catch(O){ot(o,o.return,O);}}}else if(e.tag===18){if(l===null){o=e;try{var g=o.stateNode;a?f0(g,!0):f0(o.stateNode,!1);}catch(O){ot(o,o.return,O);}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return;}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling;}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Ru(t,l))));break;case 19:ye(e,t),ge(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ru(t,n)));break;case 30:break;case 21:break;default:ye(e,t),ge(t);}}function ge(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(v1(n)){l=n;break}n=n.return;}if(l==null)throw Error(z(160));switch(l.tag){case 27:var a=l.stateNode,i=Qo(t);dc(t,i,a);break;case 5:var u=l.stateNode;l.flags&32&&(Ua(u,""),l.flags&=-33);var c=Qo(t);dc(t,c,u);break;case 3:case 4:var o=l.stateNode.containerInfo,s=Qo(t);_r(t,s,o);break;default:throw Error(z(161))}}catch(y){ot(t,t.return,y);}t.flags&=-3;}e&4096&&(t.flags&=-4097);}function E1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;E1(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling;}}function Nl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)p1(t,e.alternate,e),e=e.sibling;}function Un(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:xn(4,e,e.return),Un(e);break;case 1:gl(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&d1(e,e.return,l),Un(e);break;case 27:Di(e.stateNode);case 26:case 5:gl(e,e.return),Un(e);break;case 22:e.memoizedState===null&&Un(e);break;case 30:Un(e);break;default:Un(e);}t=t.sibling;}}function _l(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:_l(a,i,l),tu(4,i);break;case 1:if(_l(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount();}catch(s){ot(n,n.return,s);}if(n=i,a=n.updateQueue,a!==null){var c=n.stateNode;try{var o=a.shared.hiddenCallbacks;if(o!==null)for(a.shared.hiddenCallbacks=null,a=0;a<o.length;a++)bm(o[a],c);}catch(s){ot(n,n.return,s);}}l&&u&64&&s1(i),Oi(i,i.return);break;case 27:h1(i);case 26:case 5:_l(a,i,l),l&&n===null&&u&4&&m1(i),Oi(i,i.return);break;case 12:_l(a,i,l);break;case 31:_l(a,i,l),l&&u&4&&b1(a,i);break;case 13:_l(a,i,l),l&&u&4&&S1(a,i);break;case 22:i.memoizedState===null&&_l(a,i,l),Oi(i,i.return);break;case 30:break;default:_l(a,i,l);}e=e.sibling;}}function _f(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Ii(l));}function Hf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ii(t));}function ul(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)T1(t,e,l,n),e=e.sibling;}function T1(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:ul(t,e,l,n),a&2048&&tu(9,e);break;case 1:ul(t,e,l,n);break;case 3:ul(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ii(t)));break;case 12:if(a&2048){ul(t,e,l,n),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,c=i.onPostCommit;typeof c=="function"&&c(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0);}catch(o){ot(e,e.return,o);}}else ul(t,e,l,n);break;case 31:ul(t,e,l,n);break;case 13:ul(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?ul(t,e,l,n):Ci(t,e):i._visibility&2?ul(t,e,l,n):(i._visibility|=2,da(t,e,l,n,(e.subtreeFlags&10256)!==0||false)),a&2048&&_f(u,e);break;case 24:ul(t,e,l,n),a&2048&&Hf(e.alternate,e);break;default:ul(t,e,l,n);}}function da(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||false),e=e.child;e!==null;){var i=t,u=e,c=l,o=n,s=u.flags;switch(u.tag){case 0:case 11:case 15:da(i,u,c,o,a),tu(8,u);break;case 23:break;case 22:var y=u.stateNode;u.memoizedState!==null?y._visibility&2?da(i,u,c,o,a):Ci(i,u):(y._visibility|=2,da(i,u,c,o,a)),a&&s&2048&&_f(u.alternate,u);break;case 24:da(i,u,c,o,a),a&&s&2048&&Hf(u.alternate,u);break;default:da(i,u,c,o,a);}e=e.sibling;}}function Ci(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:Ci(l,n),a&2048&&_f(n.alternate,n);break;case 24:Ci(l,n),a&2048&&Hf(n.alternate,n);break;default:Ci(l,n);}e=e.sibling;}}var gi=8192;function sa(t,e,l){if(t.subtreeFlags&gi)for(t=t.child;t!==null;)M1(t,e,l),t=t.sibling;}function M1(t,e,l){switch(t.tag){case 26:sa(t,e,l),t.flags&gi&&t.memoizedState!==null&&Yy(l,cl,t.memoizedState,t.memoizedProps);break;case 5:sa(t,e,l);break;case 3:case 4:var n=cl;cl=Sc(t.stateNode.containerInfo),sa(t,e,l),cl=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=gi,gi=16777216,sa(t,e,l),gi=n):sa(t,e,l));break;default:sa(t,e,l);}}function z1(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function si(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Zt=n,O1(n,t);}z1(t);}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)A1(t),t=t.sibling;}function A1(t){switch(t.tag){case 0:case 11:case 15:si(t),t.flags&2048&&xn(9,t,t.return);break;case 3:si(t);break;case 12:si(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Qu(t)):si(t);break;default:si(t);}}function Qu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Zt=n,O1(n,t);}z1(t);}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:xn(8,e,e.return),Qu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Qu(e));break;default:Qu(e);}t=t.sibling;}}function O1(t,e){for(;Zt!==null;){var l=Zt;switch(l.tag){case 0:case 11:case 15:xn(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++;}break;case 24:Ii(l.memoizedState.cache);}if(n=l.child,n!==null)n.return=l,Zt=n;else t:for(l=t;Zt!==null;){n=Zt;var a=n.sibling,i=n.return;if(y1(n),n===l){Zt=null;break t}if(a!==null){a.return=i,Zt=a;break t}Zt=i;}}}var ly={getCacheForType:function(t){var e=Pt(Yt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Pt(Yt).controller.signal}},ny=typeof WeakMap=="function"?WeakMap:Map,it=0,pt=null,tt=null,et=0,ct=0,ze=null,cn=false,ka=false,Uf=false,Kl=0,Dt=0,En=0,qn=0,Lf=0,Ce=0,Ya=0,Ri=null,Se=null,Hr=false,Lc=0,C1=0,mc=1/0,vc=null,vn=null,jt=0,hn=null,qa=null,Xl=0,Ur=0,Lr=null,R1=null,wi=0,Vr=null;function Ne(){return (it&2)!==0&&et!==0?et&-et:Z.T!==null?Bf():B0()}function w1(){if(Ce===0)if((et&536870912)===0||lt){var t=bu;bu<<=1,(bu&3932160)===0&&(bu=262144),Ce=t;}else Ce=536870912;return t=He.current,t!==null&&(t.flags|=32),Ce}function xe(t,e,l){(t===pt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(Xa(t,0),on(t,et,Ce,false)),Wi(t,l),((it&2)===0||t!==pt)&&(t===pt&&((it&2)===0&&(qn|=l),Dt===4&&on(t,et,Ce,false)),xl(t));}function D1(t,e,l){if((it&6)!==0)throw Error(z(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ki(t,e),a=n?uy(t,e):Jo(t,e,true),i=n;do{if(a===0){ka&&!n&&on(t,e,0,false);break}else {if(l=t.current.alternate,i&&!ay(l)){a=Jo(t,e,false),i=false;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var c=t;a=Ri;var o=c.current.memoizedState.isDehydrated;if(o&&(Xa(c,u).flags|=256),u=Jo(c,u,false),u!==2){if(Uf&&!o){c.errorRecoveryDisabledLanes|=i,qn|=i,a=4;break t}i=Se,Se=a,i!==null&&(Se===null?Se=i:Se.push.apply(Se,i));}a=u;}if(i=false,a!==2)continue}}if(a===1){Xa(t,0),on(t,e,0,true);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(z(345));case 4:if((e&4194048)!==e)break;case 6:on(n,e,Ce,!cn);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(z(329))}if((e&62914560)===e&&(a=Lc+300-Re(),10<a)){if(on(n,e,Ce,!cn),zc(n,0,true)!==0)break t;Xl=e,n.timeoutHandle=$1(Wd.bind(null,n,l,Se,vc,Hr,e,Ce,qn,Ya,cn,i,"Throttled",-0,0),a);break t}Wd(n,l,Se,vc,Hr,e,Ce,qn,Ya,cn,i,null,-0,0);}}break}while(true);xl(t);}function Wd(t,e,l,n,a,i,u,c,o,s,y,S,h,g){if(t.timeoutHandle=-1,S=e.subtreeFlags,S&8192||(S&16785408)===16785408){S={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:Vl},M1(e,i,S);var O=(i&62914560)===i?Lc-Re():(i&4194048)===i?C1-Re():0;if(O=qy(S,O),O!==null){Xl=i,t.cancelPendingCommit=O($d.bind(null,t,e,i,l,n,a,u,c,o,y,S,null,h,g)),on(t,i,u,!s);return}}$d(t,e,i,l,n,a,u,c,o);}function ay(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!_e(i(),a))return !1}catch{return false}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else {if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return true;e=e.return;}e.sibling.return=e.return,e=e.sibling;}}return true}function on(t,e,l,n){e&=~Lf,e&=~qn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-De(a),u=1<<i;n[i]=-1,a&=~u;}l!==0&&U0(t,l,e);}function Vc(){return (it&6)===0?(eu(0),false):true}function Vf(){if(tt!==null){if(ct===0)var t=tt.return;else t=tt,Bl=Fn=null,Ef(t),wa=null,Bi=0,t=tt;for(;t!==null;)f1(t.alternate,t),t=t.return;tt=null;}}function Xa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ey(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Xl=0,Vf(),pt=t,tt=l=Yl(t.current,null),et=e,ct=0,ze=null,cn=false,ka=ki(t,e),Uf=false,Ya=Ce=Lf=qn=En=Dt=0,Se=Ri=null,Hr=false,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-De(n),i=1<<a;e|=t[a],n&=~i;}return Kl=e,Rc(),l}function N1(t,e){W=null,Z.H=qi,e===Ja||e===Dc?(e=Od(),ct=3):e===hf?(e=Od(),ct=4):ct=e===Df?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ze=e,tt===null&&(Dt=1,fc(t,Je(e,t.current)));}function _1(){var t=He.current;return t===null?true:(et&4194048)===et?We===null:(et&62914560)===et||(et&536870912)!==0?t===We:false}function H1(){var t=Z.H;return Z.H=qi,t===null?qi:t}function U1(){var t=Z.A;return Z.A=ly,t}function hc(){Dt=4,cn||(et&4194048)!==et&&He.current!==null||(ka=true),(En&134217727)===0&&(qn&134217727)===0||pt===null||on(pt,et,Ce,false);}function Jo(t,e,l){var n=it;it|=2;var a=H1(),i=U1();(pt!==t||et!==e)&&(vc=null,Xa(t,e)),e=false;var u=Dt;t:do try{if(ct!==0&&tt!==null){var c=tt,o=ze;switch(ct){case 8:Vf(),u=6;break t;case 3:case 2:case 9:case 6:He.current===null&&(e=!0);var s=ct;if(ct=0,ze=null,za(t,c,o,s),l&&ka){u=0;break t}break;default:s=ct,ct=0,ze=null,za(t,c,o,s);}}iy(),u=Dt;break}catch(y){N1(t,y);}while(true);return e&&t.shellSuspendCounter++,Bl=Fn=null,it=n,Z.H=a,Z.A=i,tt===null&&(pt=null,et=0,Rc()),u}function iy(){for(;tt!==null;)L1(tt);}function uy(t,e){var l=it;it|=2;var n=H1(),a=U1();pt!==t||et!==e?(vc=null,mc=Re()+500,Xa(t,e)):ka=ki(t,e);t:do try{if(ct!==0&&tt!==null){e=tt;var i=ze;e:switch(ct){case 1:ct=0,ze=null,za(t,e,i,1);break;case 2:case 9:if(Ad(i)){ct=0,ze=null,Fd(e);break}e=function(){ct!==2&&ct!==9||pt!==t||(ct=7),xl(t);},i.then(e,e);break t;case 3:ct=7;break t;case 4:ct=5;break t;case 7:Ad(i)?(ct=0,ze=null,Fd(e)):(ct=0,ze=null,za(t,e,i,7));break;case 5:var u=null;switch(tt.tag){case 26:u=tt.memoizedState;case 5:case 27:var c=tt;if(u?lv(u):c.stateNode.complete){ct=0,ze=null;var o=c.sibling;if(o!==null)tt=o;else {var s=c.return;s!==null?(tt=s,Bc(s)):tt=null;}break e}}ct=0,ze=null,za(t,e,i,5);break;case 6:ct=0,ze=null,za(t,e,i,6);break;case 8:Vf(),Dt=6;break t;default:throw Error(z(462))}}cy();break}catch(y){N1(t,y);}while(true);return Bl=Fn=null,Z.H=n,Z.A=a,it=l,tt!==null?0:(pt=null,et=0,Rc(),Dt)}function cy(){for(;tt!==null&&!wh();)L1(tt);}function L1(t){var e=r1(t.alternate,t,Kl);t.memoizedProps=t.pendingProps,e===null?Bc(t):tt=e;}function Fd(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Gd(l,e,e.pendingProps,e.type,void 0,et);break;case 11:e=Gd(l,e,e.pendingProps,e.type.render,e.ref,et);break;case 5:Ef(e);default:f1(l,e),e=tt=fm(e,Kl),e=r1(l,e,Kl);}t.memoizedProps=t.pendingProps,e===null?Bc(t):tt=e;}function za(t,e,l,n){Bl=Fn=null,Ef(e),wa=null,Bi=0;var a=e.return;try{if(Wp(t,a,e,l,et)){Dt=1,fc(t,Je(l,t.current)),tt=null;return}}catch(i){if(a!==null)throw tt=a,i;Dt=1,fc(t,Je(l,t.current)),tt=null;return}e.flags&32768?(lt||n===1?t=true:ka||(et&536870912)!==0?t=false:(cn=t=true,(n===2||n===9||n===3||n===6)&&(n=He.current,n!==null&&n.tag===13&&(n.flags|=16384))),V1(e,t)):Bc(e);}function Bc(t){var e=t;do{if((e.flags&32768)!==0){V1(e,cn);return}t=e.return;var l=Ip(e.alternate,e,Kl);if(l!==null){tt=l;return}if(e=e.sibling,e!==null){tt=e;return}tt=e=t;}while(e!==null);Dt===0&&(Dt=5);}function V1(t,e){do{var l=Pp(t.alternate,t);if(l!==null){l.flags&=32767,tt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){tt=t;return}tt=t=l;}while(t!==null);Dt=6,tt=null;}function $d(t,e,l,n,a,i,u,c,o){t.cancelPendingCommit=null;do Yc();while(jt!==0);if((it&6)!==0)throw Error(z(327));if(e!==null){if(e===t.current)throw Error(z(177));if(i=e.lanes|e.childLanes,i|=of,qh(t,l,i,u,c,o),t===pt&&(tt=pt=null,et=0),qa=e,hn=t,Xl=l,Ur=i,Lr=a,R1=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sy(Pu,function(){return j1(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=Z.T,Z.T=null,a=ut.p,ut.p=2,u=it,it|=4;try{ty(t,e,l);}finally{it=u,ut.p=a,Z.T=n;}}jt=1,B1(),Y1(),q1();}}function B1(){if(jt===1){jt=0;var t=hn,e=qa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=Z.T,Z.T=null;var n=ut.p;ut.p=2;var a=it;it|=4;try{x1(e,t);var i=Xr,u=lm(t.containerInfo),c=i.focusedElem,o=i.selectionRange;if(u!==c&&c&&c.ownerDocument&&em(c.ownerDocument.documentElement,c)){if(o!==null&&cf(c)){var s=o.start,y=o.end;if(y===void 0&&(y=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(y,c.value.length);else {var S=c.ownerDocument||document,h=S&&S.defaultView||window;if(h.getSelection){var g=h.getSelection(),O=c.textContent.length,C=Math.min(o.start,O),B=o.end===void 0?C:Math.min(o.end,O);!g.extend&&C>B&&(u=B,B=C,C=u);var d=bd(c,C),f=bd(c,B);if(d&&f&&(g.rangeCount!==1||g.anchorNode!==d.node||g.anchorOffset!==d.offset||g.focusNode!==f.node||g.focusOffset!==f.offset)){var p=S.createRange();p.setStart(d.node,d.offset),g.removeAllRanges(),C>B?(g.addRange(p),g.extend(f.node,f.offset)):(p.setEnd(f.node,f.offset),g.addRange(p));}}}}for(S=[],g=c;g=g.parentNode;)g.nodeType===1&&S.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<S.length;c++){var x=S[c];x.element.scrollLeft=x.left,x.element.scrollTop=x.top;}}Tc=!!qr,Xr=qr=null;}finally{it=a,ut.p=n,Z.T=l;}}t.current=e,jt=2;}}function Y1(){if(jt===2){jt=0;var t=hn,e=qa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=Z.T,Z.T=null;var n=ut.p;ut.p=2;var a=it;it|=4;try{p1(t,e.alternate,e);}finally{it=a,ut.p=n,Z.T=l;}}jt=3;}}function q1(){if(jt===4||jt===3){jt=0,Dh();var t=hn,e=qa,l=Xl,n=R1;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?jt=5:(jt=0,qa=hn=null,X1(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(vn=null),Pr(l),e=e.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(Ji,e,void 0,(e.current.flags&128)===128);}catch{}if(n!==null){e=Z.T,a=ut.p,ut.p=2,Z.T=null;try{for(var i=t.onRecoverableError,u=0;u<n.length;u++){var c=n[u];i(c.value,{componentStack:c.stack});}}finally{Z.T=e,ut.p=a;}}(Xl&3)!==0&&Yc(),xl(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Vr?wi++:(wi=0,Vr=t):wi=0,eu(0);}}function X1(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ii(e)));}function Yc(){return B1(),Y1(),q1(),j1()}function j1(){if(jt!==5)return false;var t=hn,e=Ur;Ur=0;var l=Pr(Xl),n=Z.T,a=ut.p;try{ut.p=32>l?32:l,Z.T=null,l=Lr,Lr=null;var i=hn,u=Xl;if(jt=0,qa=hn=null,Xl=0,(it&6)!==0)throw Error(z(331));var c=it;if(it|=4,A1(i.current),T1(i,i.current,u,l),it=c,eu(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(Ji,i);}catch{}return !0}finally{ut.p=a,Z.T=n,X1(t,e);}}function Id(t,e,l){e=Je(l,e),e=wr(t.stateNode,e,2),t=mn(t,e,2),t!==null&&(Wi(t,2),xl(t));}function ot(t,e,l){if(t.tag===3)Id(t,t,l);else for(;e!==null;){if(e.tag===3){Id(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(vn===null||!vn.has(n))){t=Je(l,t),l=n1(2),n=mn(e,l,2),n!==null&&(a1(l,n,e,t),Wi(n,2),xl(n));break}}e=e.return;}}function ko(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new ny;var a=new Set;n.set(e,a);}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(Uf=true,a.add(l),t=oy.bind(null,t,e,l),e.then(t,t));}function oy(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,pt===t&&(et&l)===l&&(Dt===4||Dt===3&&(et&62914560)===et&&300>Re()-Lc?(it&2)===0&&Xa(t,0):Lf|=l,Ya===et&&(Ya=0)),xl(t);}function G1(t,e){e===0&&(e=H0()),t=Wn(t,e),t!==null&&(Wi(t,e),xl(t));}function ry(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),G1(t,l);}function fy(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(z(314))}n!==null&&n.delete(e),G1(t,l);}function sy(t,e){return $r(t,e)}var pc=null,ma=null,Br=false,yc=false,Wo=false,rn=0;function xl(t){t!==ma&&t.next===null&&(ma===null?pc=ma=t:ma=ma.next=t),yc=true,Br||(Br=true,my());}function eu(t,e){if(!Wo&&yc){Wo=true;do for(var l=false,n=pc;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else {var u=n.suspendedLanes,c=n.pingedLanes;i=(1<<31-De(42|t)+1)-1,i&=a&~(u&~c),i=i&201326741?i&201326741|1:i?i|2:0;}i!==0&&(l=true,Pd(n,i));}else i=et,i=zc(n,n===pt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||ki(n,i)||(l=true,Pd(n,i));n=n.next;}while(l);Wo=false;}}function dy(){Z1();}function Z1(){yc=Br=false;var t=0;rn!==0&&xy()&&(t=rn);for(var e=Re(),l=null,n=pc;n!==null;){var a=n.next,i=Q1(n,e);i===0?(n.next=null,l===null?pc=a:l.next=a,a===null&&(ma=l)):(l=n,(t!==0||(i&3)!==0)&&(yc=true)),n=a;}jt!==0&&jt!==5||eu(t),rn!==0&&(rn=0);}function Q1(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-De(i),c=1<<u,o=a[u];o===-1?((c&l)===0||(c&n)!==0)&&(a[u]=Yh(c,e)):o<=e&&(t.expiredLanes|=c),i&=~c;}if(e=pt,l=et,l=zc(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Mo(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ki(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Mo(n),Pr(l)){case 2:case 8:l=N0;break;case 32:l=Pu;break;case 268435456:l=_0;break;default:l=Pu;}return n=K1.bind(null,t),l=$r(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Mo(n),t.callbackPriority=2,t.callbackNode=null,2}function K1(t,e){if(jt!==0&&jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Yc()&&t.callbackNode!==l)return null;var n=et;return n=zc(t,t===pt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(D1(t,n,e),Q1(t,Re()),t.callbackNode!=null&&t.callbackNode===l?K1.bind(null,t):null)}function Pd(t,e){if(Yc())return null;D1(t,e,true);}function my(){Ty(function(){(it&6)!==0?$r(D0,dy):Z1();});}function Bf(){if(rn===0){var t=La;t===0&&(t=gu,gu<<=1,(gu&261888)===0&&(gu=256)),rn=t;}return rn}function t0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Lu(""+t)}function e0(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function vy(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=t0((a[Ee]||null).action),u=n.submitter;u&&(e=(e=u[Ee]||null)?t0(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var c=new Ac("action","action",null,n,a);t.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(rn!==0){var o=u?e0(a,u):new FormData(a);Cr(l,{pending:true,data:o,method:a.method,action:i},null,o);}}else typeof i=="function"&&(c.preventDefault(),o=u?e0(a,u):new FormData(a),Cr(l,{pending:true,data:o,method:a.method,action:i},i,o));},currentTarget:a}]});}}for(wu=0;wu<pr.length;wu++)Du=pr[wu],l0=Du.toLowerCase(),n0=Du[0].toUpperCase()+Du.slice(1),ol(l0,"on"+n0);var Du,l0,n0,wu;ol(am,"onAnimationEnd");ol(im,"onAnimationIteration");ol(um,"onAnimationStart");ol("dblclick","onDoubleClick");ol("focusin","onFocus");ol("focusout","onBlur");ol(Np,"onTransitionRun");ol(_p,"onTransitionStart");ol(Hp,"onTransitionCancel");ol(cm,"onTransitionEnd");Ha("onMouseEnter",["mouseout","mouseover"]);Ha("onMouseLeave",["mouseout","mouseover"]);Ha("onPointerEnter",["pointerout","pointerover"]);Ha("onPointerLeave",["pointerout","pointerover"]);Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xi));function J1(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var u=n.length-1;0<=u;u--){var c=n[u],o=c.instance,s=c.currentTarget;if(c=c.listener,o!==i&&a.isPropagationStopped())break t;i=c,a.currentTarget=s;try{i(a);}catch(y){ec(y);}a.currentTarget=null,i=o;}else for(u=0;u<n.length;u++){if(c=n[u],o=c.instance,s=c.currentTarget,c=c.listener,o!==i&&a.isPropagationStopped())break t;i=c,a.currentTarget=s;try{i(a);}catch(y){ec(y);}a.currentTarget=null,i=o;}}}}function P(t,e){var l=e[or];l===void 0&&(l=e[or]=new Set);var n=t+"__bubble";l.has(n)||(k1(e,t,2,false),l.add(n));}function Fo(t,e,l){var n=0;e&&(n|=4),k1(l,t,n,e);}var Nu="_reactListening"+Math.random().toString(36).slice(2);function Yf(t){if(!t[Nu]){t[Nu]=true,Y0.forEach(function(l){l!=="selectionchange"&&(hy.has(l)||Fo(l,false,t),Fo(l,true,t));});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Nu]||(e[Nu]=true,Fo("selectionchange",false,e));}}function k1(t,e,l,n){switch(cv(e)){case 2:var a=Gy;break;case 8:a=Zy;break;default:a=Gf;}l=a.bind(null,e,l,t),a=void 0,!mr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=true),n?a!==void 0?t.addEventListener(e,l,{capture:true,passive:a}):t.addEventListener(e,l,true):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,false);}function $o(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var u=n.tag;if(u===3||u===4){var c=n.stateNode.containerInfo;if(c===a)break;if(u===4)for(u=n.return;u!==null;){var o=u.tag;if((o===3||o===4)&&u.stateNode.containerInfo===a)return;u=u.return;}for(;c!==null;){if(u=pa(c),u===null)return;if(o=u.tag,o===5||o===6||o===26||o===27){n=i=u;continue t}c=c.parentNode;}}n=n.return;}J0(function(){var s=i,y=lf(l),S=[];t:{var h=om.get(t);if(h!==void 0){var g=Ac,O=t;switch(t){case "keypress":if(Bu(l)===0)break t;case "keydown":case "keyup":g=fp;break;case "focusin":O="focus",g=Ro;break;case "focusout":O="blur",g=Ro;break;case "beforeblur":case "afterblur":g=Ro;break;case "click":if(l.button===2)break t;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":g=fd;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":g=Ih;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":g=mp;break;case am:case im:case um:g=ep;break;case cm:g=hp;break;case "scroll":case "scrollend":g=Fh;break;case "wheel":g=yp;break;case "copy":case "cut":case "paste":g=np;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":g=dd;break;case "toggle":case "beforetoggle":g=bp;}var C=(e&4)!==0,B=!C&&(t==="scroll"||t==="scrollend"),d=C?h!==null?h+"Capture":null:h;C=[];for(var f=s,p;f!==null;){var x=f;if(p=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||p===null||d===null||(x=_i(f,d),x!=null&&C.push(ji(f,x,p))),B)break;f=f.return;}0<C.length&&(h=new g(h,O,null,l,y),S.push({event:h,listeners:C}));}}if((e&7)===0){t:{if(h=t==="mouseover"||t==="pointerover",g=t==="mouseout"||t==="pointerout",h&&l!==dr&&(O=l.relatedTarget||l.fromElement)&&(pa(O)||O[Za]))break t;if((g||h)&&(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,g?(O=l.relatedTarget||l.toElement,g=s,O=O?pa(O):null,O!==null&&(B=Ki(O),C=O.tag,O!==B||C!==5&&C!==27&&C!==6)&&(O=null)):(g=null,O=s),g!==O)){if(C=fd,x="onMouseLeave",d="onMouseEnter",f="mouse",(t==="pointerout"||t==="pointerover")&&(C=dd,x="onPointerLeave",d="onPointerEnter",f="pointer"),B=g==null?h:pi(g),p=O==null?h:pi(O),h=new C(x,f+"leave",g,l,y),h.target=B,h.relatedTarget=p,x=null,pa(y)===s&&(C=new C(d,f+"enter",O,l,y),C.target=p,C.relatedTarget=B,x=C),B=x,g&&O)e:{for(C=py,d=g,f=O,p=0,x=d;x;x=C(x))p++;x=0;for(var w=f;w;w=C(w))x++;for(;0<p-x;)d=C(d),p--;for(;0<x-p;)f=C(f),x--;for(;p--;){if(d===f||f!==null&&d===f.alternate){C=d;break e}d=C(d),f=C(f);}C=null;}else C=null;g!==null&&a0(S,h,g,C,!1),O!==null&&B!==null&&a0(S,B,O,C,!0);}}t:{if(h=s?pi(s):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var Y=pd;else if(hd(h))if(P0)Y=Rp;else {Y=Op;var A=Ap;}else g=h.nodeName,!g||g.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?s&&ef(s.elementType)&&(Y=pd):Y=Cp;if(Y&&(Y=Y(t,s))){I0(S,Y,l,y);break t}A&&A(t,h,s),t==="focusout"&&s&&h.type==="number"&&s.memoizedProps.value!=null&&sr(h,"number",h.value);}switch(A=s?pi(s):window,t){case "focusin":(hd(A)||A.contentEditable==="true")&&(ba=A,vr=s,xi=null);break;case "focusout":xi=vr=ba=null;break;case "mousedown":hr=!0;break;case "contextmenu":case "mouseup":case "dragend":hr=!1,Sd(S,l,y);break;case "selectionchange":if(Dp)break;case "keydown":case "keyup":Sd(S,l,y);}var H;if(uf)t:{switch(t){case "compositionstart":var V="onCompositionStart";break t;case "compositionend":V="onCompositionEnd";break t;case "compositionupdate":V="onCompositionUpdate";break t}V=void 0;}else ga?F0(t,l)&&(V="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(V="onCompositionStart");V&&(W0&&l.locale!=="ko"&&(ga||V!=="onCompositionStart"?V==="onCompositionEnd"&&ga&&(H=k0()):(un=y,nf="value"in un?un.value:un.textContent,ga=!0)),A=gc(s,V),0<A.length&&(V=new sd(V,t,null,l,y),S.push({event:V,listeners:A}),H?V.data=H:(H=$0(l),H!==null&&(V.data=H)))),(H=xp?Ep(t,l):Tp(t,l))&&(V=gc(s,"onBeforeInput"),0<V.length&&(A=new sd("onBeforeInput","beforeinput",null,l,y),S.push({event:A,listeners:V}),A.data=H)),vy(S,t,s,l,y);}J1(S,e);});}function ji(t,e,l){return {instance:t,listener:e,currentTarget:l}}function gc(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=_i(t,l),a!=null&&n.unshift(ji(t,a,i)),a=_i(t,e),a!=null&&n.push(ji(t,a,i))),t.tag===3)return n;t=t.return;}return []}function py(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function a0(t,e,l,n,a){for(var i=e._reactName,u=[];l!==null&&l!==n;){var c=l,o=c.alternate,s=c.stateNode;if(c=c.tag,o!==null&&o===n)break;c!==5&&c!==26&&c!==27||s===null||(o=s,a?(s=_i(l,i),s!=null&&u.unshift(ji(l,s,o))):a||(s=_i(l,i),s!=null&&u.push(ji(l,s,o)))),l=l.return;}u.length!==0&&t.push({event:e,listeners:u});}var yy=/\r\n?/g,gy=/\u0000|\uFFFD/g;function i0(t){return (typeof t=="string"?t:""+t).replace(yy,`
9
+ `).replace(gy,"")}function W1(t,e){return e=i0(e),i0(t)===e}function ft(t,e,l,n,a,i){switch(l){case "children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Ua(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Ua(t,""+n);break;case "className":xu(t,"class",n);break;case "tabIndex":xu(t,"tabindex",n);break;case "dir":case "role":case "viewBox":case "width":case "height":xu(t,l,n);break;case "style":K0(t,n,i);break;case "data":if(e!=="object"){xu(t,"data",n);break}case "src":case "href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Lu(""+n),t.setAttribute(l,n);break;case "action":case "formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(e!=="input"&&ft(t,e,"name",a.name,a,null),ft(t,e,"formEncType",a.formEncType,a,null),ft(t,e,"formMethod",a.formMethod,a,null),ft(t,e,"formTarget",a.formTarget,a,null)):(ft(t,e,"encType",a.encType,a,null),ft(t,e,"method",a.method,a,null),ft(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Lu(""+n),t.setAttribute(l,n);break;case "onClick":n!=null&&(t.onclick=Vl);break;case "onScroll":n!=null&&P("scroll",t);break;case "onScrollEnd":n!=null&&P("scrollend",t);break;case "dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(z(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(z(60));t.innerHTML=l;}}break;case "multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case "muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Lu(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case "inert":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case "capture":case "download":n===true?t.setAttribute(l,""):n!==false&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case "cols":case "rows":case "size":case "span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case "rowSpan":case "start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case "popover":P("beforetoggle",t),P("toggle",t),Uu(t,"popover",n);break;case "xlinkActuate":Rl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case "xlinkArcrole":Rl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case "xlinkRole":Rl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case "xlinkShow":Rl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case "xlinkTitle":Rl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case "xlinkType":Rl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case "xmlBase":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case "xmlLang":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case "xmlSpace":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case "is":Uu(t,"is",n);break;case "innerText":case "textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kh.get(l)||l,Uu(t,l,n));}}function Yr(t,e,l,n,a,i){switch(l){case "style":K0(t,n,i);break;case "dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(z(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(z(60));t.innerHTML=l;}}break;case "children":typeof n=="string"?Ua(t,n):(typeof n=="number"||typeof n=="bigint")&&Ua(t,""+n);break;case "onScroll":n!=null&&P("scroll",t);break;case "onScrollEnd":n!=null&&P("scrollend",t);break;case "onClick":n!=null&&(t.onclick=Vl);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!q0.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),i=t[Ee]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===true?t.setAttribute(l,""):Uu(t,l,n);}}}function te(t,e,l){switch(e){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":P("error",t),P("load",t);var n=false,a=false,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case "src":n=true;break;case "srcSet":a=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(z(137,e));default:ft(t,e,i,u,l,null);}}a&&ft(t,e,"srcSet",l.srcSet,l,null),n&&ft(t,e,"src",l.src,l,null);return;case "input":P("invalid",t);var c=i=u=a=null,o=null,s=null;for(n in l)if(l.hasOwnProperty(n)){var y=l[n];if(y!=null)switch(n){case "name":a=y;break;case "type":u=y;break;case "checked":o=y;break;case "defaultChecked":s=y;break;case "value":i=y;break;case "defaultValue":c=y;break;case "children":case "dangerouslySetInnerHTML":if(y!=null)throw Error(z(137,e));break;default:ft(t,e,n,y,l,null);}}G0(t,i,c,o,s,u,a,false);return;case "select":P("invalid",t),n=u=i=null;for(a in l)if(l.hasOwnProperty(a)&&(c=l[a],c!=null))switch(a){case "value":i=c;break;case "defaultValue":u=c;break;case "multiple":n=c;default:ft(t,e,a,c,l,null);}e=i,l=u,t.multiple=!!n,e!=null?Oa(t,!!n,e,false):l!=null&&Oa(t,!!n,l,true);return;case "textarea":P("invalid",t),i=a=n=null;for(u in l)if(l.hasOwnProperty(u)&&(c=l[u],c!=null))switch(u){case "value":n=c;break;case "defaultValue":a=c;break;case "children":i=c;break;case "dangerouslySetInnerHTML":if(c!=null)throw Error(z(91));break;default:ft(t,e,u,c,l,null);}Q0(t,n,a,i);return;case "option":for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null)&&(o==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":ft(t,e,o,n,l,null));return;case "dialog":P("beforetoggle",t),P("toggle",t),P("cancel",t),P("close",t);break;case "iframe":case "object":P("load",t);break;case "video":case "audio":for(n=0;n<Xi.length;n++)P(Xi[n],t);break;case "image":P("error",t),P("load",t);break;case "details":P("toggle",t);break;case "embed":case "source":case "link":P("error",t),P("load",t);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(s in l)if(l.hasOwnProperty(s)&&(n=l[s],n!=null))switch(s){case "children":case "dangerouslySetInnerHTML":throw Error(z(137,e));default:ft(t,e,s,n,l,null);}return;default:if(ef(e)){for(y in l)l.hasOwnProperty(y)&&(n=l[y],n!==void 0&&Yr(t,e,y,n,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(n=l[c],n!=null&&ft(t,e,c,n,l,null));}function by(t,e,l,n){switch(e){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var a=null,i=null,u=null,c=null,o=null,s=null,y=null;for(g in l){var S=l[g];if(l.hasOwnProperty(g)&&S!=null)switch(g){case "checked":break;case "value":break;case "defaultValue":o=S;default:n.hasOwnProperty(g)||ft(t,e,g,null,n,S);}}for(var h in n){var g=n[h];if(S=l[h],n.hasOwnProperty(h)&&(g!=null||S!=null))switch(h){case "type":i=g;break;case "name":a=g;break;case "checked":s=g;break;case "defaultChecked":y=g;break;case "value":u=g;break;case "defaultValue":c=g;break;case "children":case "dangerouslySetInnerHTML":if(g!=null)throw Error(z(137,e));break;default:g!==S&&ft(t,e,h,g,n,S);}}fr(t,u,c,o,s,y,i,a);return;case "select":g=u=c=h=null;for(i in l)if(o=l[i],l.hasOwnProperty(i)&&o!=null)switch(i){case "value":break;case "multiple":g=o;default:n.hasOwnProperty(i)||ft(t,e,i,null,n,o);}for(a in n)if(i=n[a],o=l[a],n.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case "value":h=i;break;case "defaultValue":c=i;break;case "multiple":u=i;default:i!==o&&ft(t,e,a,i,n,o);}e=c,l=u,n=g,h!=null?Oa(t,!!l,h,false):!!n!=!!l&&(e!=null?Oa(t,!!l,e,true):Oa(t,!!l,l?[]:"",false));return;case "textarea":g=h=null;for(c in l)if(a=l[c],l.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case "value":break;case "children":break;default:ft(t,e,c,null,n,a);}for(u in n)if(a=n[u],i=l[u],n.hasOwnProperty(u)&&(a!=null||i!=null))switch(u){case "value":h=a;break;case "defaultValue":g=a;break;case "children":break;case "dangerouslySetInnerHTML":if(a!=null)throw Error(z(91));break;default:a!==i&&ft(t,e,u,a,n,i);}Z0(t,h,g);return;case "option":for(var O in l)h=l[O],l.hasOwnProperty(O)&&h!=null&&!n.hasOwnProperty(O)&&(O==="selected"?t.selected=false:ft(t,e,O,null,n,h));for(o in n)h=n[o],g=l[o],n.hasOwnProperty(o)&&h!==g&&(h!=null||g!=null)&&(o==="selected"?t.selected=h&&typeof h!="function"&&typeof h!="symbol":ft(t,e,o,h,n,g));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var C in l)h=l[C],l.hasOwnProperty(C)&&h!=null&&!n.hasOwnProperty(C)&&ft(t,e,C,null,n,h);for(s in n)if(h=n[s],g=l[s],n.hasOwnProperty(s)&&h!==g&&(h!=null||g!=null))switch(s){case "children":case "dangerouslySetInnerHTML":if(h!=null)throw Error(z(137,e));break;default:ft(t,e,s,h,n,g);}return;default:if(ef(e)){for(var B in l)h=l[B],l.hasOwnProperty(B)&&h!==void 0&&!n.hasOwnProperty(B)&&Yr(t,e,B,void 0,n,h);for(y in n)h=n[y],g=l[y],!n.hasOwnProperty(y)||h===g||h===void 0&&g===void 0||Yr(t,e,y,h,n,g);return}}for(var d in l)h=l[d],l.hasOwnProperty(d)&&h!=null&&!n.hasOwnProperty(d)&&ft(t,e,d,null,n,h);for(S in n)h=n[S],g=l[S],!n.hasOwnProperty(S)||h===g||h==null&&g==null||ft(t,e,S,h,n,g);}function u0(t){switch(t){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function Sy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,u=a.initiatorType,c=a.duration;if(i&&c&&u0(u)){for(u=0,c=a.responseEnd,n+=1;n<l.length;n++){var o=l[n],s=o.startTime;if(s>c)break;var y=o.transferSize,S=o.initiatorType;y&&u0(S)&&(o=o.responseEnd,u+=y*(o<c?1:(c-s)/(o-s)));}if(--n,e+=8*(i+u)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var qr=null,Xr=null;function bc(t){return t.nodeType===9?t:t.ownerDocument}function c0(t){switch(t){case "http://www.w3.org/2000/svg":return 1;case "http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function F1(t,e){if(t===0)switch(e){case "svg":return 1;case "math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function jr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Io=null;function xy(){var t=window.event;return t&&t.type==="popstate"?t===Io?false:(Io=t,true):(Io=null,false)}var $1=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,o0=typeof Promise=="function"?Promise:void 0,Ty=typeof queueMicrotask=="function"?queueMicrotask:typeof o0<"u"?function(t){return o0.resolve(null).then(t).catch(My)}:$1;function My(t){setTimeout(function(){throw t});}function Mn(t){return t==="head"}function r0(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),Ga(e);return}n--;}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Di(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Di(l);for(var i=l.firstChild;i;){var u=i.nextSibling,c=i.nodeName;i[Fi]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u;}}else l==="body"&&Di(t.ownerDocument.body);l=a;}while(l);Ga(e);}function f0(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--;}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n;}while(l)}function Gr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case "HTML":case "HEAD":case "BODY":Gr(l),tf(l);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l);}}function zy(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Fi])switch(e){case "meta":if(!t.hasAttribute("itemprop"))break;return t;case "link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case "style":if(t.hasAttribute("data-precedence"))break;return t;case "script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function Ay(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Fe(t.nextSibling),t===null))return null;return t}function I1(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Fe(t.nextSibling),t===null))return null;return t}function Zr(t){return t.data==="$?"||t.data==="$~"}function Qr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Oy(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else {var n=function(){e(),l.removeEventListener("DOMContentLoaded",n);};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n;}}function Fe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Kr=null;function s0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Fe(t.nextSibling);e--;}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++;}t=t.nextSibling;}return null}function d0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--;}else l!=="/$"&&l!=="/&"||e++;}t=t.previousSibling;}return null}function P1(t,e,l){switch(e=bc(l),t){case "html":if(t=e.documentElement,!t)throw Error(z(452));return t;case "head":if(t=e.head,!t)throw Error(z(453));return t;case "body":if(t=e.body,!t)throw Error(z(454));return t;default:throw Error(z(451))}}function Di(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);tf(t);}var $e=new Map,m0=new Set;function Sc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Jl=ut.d;ut.d={f:Cy,r:Ry,D:wy,C:Dy,L:Ny,m:_y,X:Uy,S:Hy,M:Ly};function Cy(){var t=Jl.f(),e=Vc();return t||e}function Ry(t){var e=Qa(t);e!==null&&e.tag===5&&e.type==="form"?Km(e):Jl.r(t);}var Wa=typeof document>"u"?null:document;function tv(t,e,l){var n=Wa;if(n&&typeof e=="string"&&e){var a=Ke(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),m0.has(a)||(m0.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),te(e,"link",t),Qt(e),n.head.appendChild(e)));}}function wy(t){Jl.D(t),tv("dns-prefetch",t,null);}function Dy(t,e){Jl.C(t,e),tv("preconnect",t,e);}function Ny(t,e,l){Jl.L(t,e,l);var n=Wa;if(n&&t&&e){var a='link[rel="preload"][as="'+Ke(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Ke(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Ke(l.imageSizes)+'"]')):a+='[href="'+Ke(t)+'"]';var i=a;switch(e){case "style":i=ja(t);break;case "script":i=Fa(t);}$e.has(i)||(t=Et({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),$e.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(lu(i))||e==="script"&&n.querySelector(nu(i))||(e=n.createElement("link"),te(e,"link",t),Qt(e),n.head.appendChild(e)));}}function _y(t,e){Jl.m(t,e);var l=Wa;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ke(n)+'"][href="'+Ke(t)+'"]',i=a;switch(n){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":i=Fa(t);}if(!$e.has(i)&&(t=Et({rel:"modulepreload",href:t},e),$e.set(i,t),l.querySelector(a)===null)){switch(n){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(l.querySelector(nu(i)))return}n=l.createElement("link"),te(n,"link",t),Qt(n),l.head.appendChild(n);}}}function Hy(t,e,l){Jl.S(t,e,l);var n=Wa;if(n&&t){var a=Aa(n).hoistableStyles,i=ja(t);e=e||"default";var u=a.get(i);if(!u){var c={loading:0,preload:null};if(u=n.querySelector(lu(i)))c.loading=5;else {t=Et({rel:"stylesheet",href:t,"data-precedence":e},l),(l=$e.get(i))&&qf(t,l);var o=u=n.createElement("link");Qt(o),te(o,"link",t),o._p=new Promise(function(s,y){o.onload=s,o.onerror=y;}),o.addEventListener("load",function(){c.loading|=1;}),o.addEventListener("error",function(){c.loading|=2;}),c.loading|=4,Ku(u,e,n);}u={type:"stylesheet",instance:u,count:1,state:c},a.set(i,u);}}}function Uy(t,e){Jl.X(t,e);var l=Wa;if(l&&t){var n=Aa(l).hoistableScripts,a=Fa(t),i=n.get(a);i||(i=l.querySelector(nu(a)),i||(t=Et({src:t,async:true},e),(e=$e.get(a))&&Xf(t,e),i=l.createElement("script"),Qt(i),te(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i));}}function Ly(t,e){Jl.M(t,e);var l=Wa;if(l&&t){var n=Aa(l).hoistableScripts,a=Fa(t),i=n.get(a);i||(i=l.querySelector(nu(a)),i||(t=Et({src:t,async:true,type:"module"},e),(e=$e.get(a))&&Xf(t,e),i=l.createElement("script"),Qt(i),te(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i));}}function v0(t,e,l,n){var a=(a=fn.current)?Sc(a):null;if(!a)throw Error(z(446));switch(t){case "meta":case "title":return null;case "style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=ja(l.href),l=Aa(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case "link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ja(l.href);var i=Aa(a).hoistableStyles,u=i.get(t);if(u||(a=a.ownerDocument||a,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=a.querySelector(lu(t)))&&!i._p&&(u.instance=i,u.state.loading=5),$e.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$e.set(t,l),i||Vy(a,t,l,u.state))),e&&n===null)throw Error(z(528,""));return u}if(e&&n!==null)throw Error(z(529,""));return null;case "script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fa(l),l=Aa(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(z(444,t))}}function ja(t){return 'href="'+Ke(t)+'"'}function lu(t){return 'link[rel="stylesheet"]['+t+"]"}function ev(t){return Et({},t,{"data-precedence":t.precedence,precedence:null})}function Vy(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),te(e,"link",l),Qt(e),t.head.appendChild(e));}function Fa(t){return '[src="'+Ke(t)+'"]'}function nu(t){return "script[async]"+t}function h0(t,e,l){if(e.count++,e.instance===null)switch(e.type){case "style":var n=t.querySelector('style[data-href~="'+Ke(l.href)+'"]');if(n)return e.instance=n,Qt(n),n;var a=Et({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Qt(n),te(n,"style",a),Ku(n,l.precedence,t),e.instance=n;case "stylesheet":a=ja(l.href);var i=t.querySelector(lu(a));if(i)return e.state.loading|=4,e.instance=i,Qt(i),i;n=ev(l),(a=$e.get(a))&&qf(n,a),i=(t.ownerDocument||t).createElement("link"),Qt(i);var u=i;return u._p=new Promise(function(c,o){u.onload=c,u.onerror=o;}),te(i,"link",n),e.state.loading|=4,Ku(i,l.precedence,t),e.instance=i;case "script":return i=Fa(l.src),(a=t.querySelector(nu(i)))?(e.instance=a,Qt(a),a):(n=l,(a=$e.get(i))&&(n=Et({},l),Xf(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Qt(a),te(a,"link",n),t.head.appendChild(a),e.instance=a);case "void":return null;default:throw Error(z(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Ku(n,l.precedence,t));return e.instance}function Ku(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,u=0;u<n.length;u++){var c=n[u];if(c.dataset.precedence===e)i=c;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild));}function qf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title);}function Xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity);}var Ju=null;function p0(t,e,l){if(Ju===null){var n=new Map,a=Ju=new Map;a.set(l,n);}else a=Ju,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[Fi]||i[$t]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var c=n.get(u);c?c.push(i):n.set(u,[i]);}}return n}function y0(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null);}function By(t,e,l){if(l===1||e.itemProp!=null)return false;switch(t){case "meta":case "title":return true;case "style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return true;case "link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):true;case "script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return true}return false}function lv(t){return !(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Yy(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==false)&&(l.state.loading&4)===0){if(l.instance===null){var a=ja(n.href),i=e.querySelector(lu(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=xc.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Qt(i);return}i=e.ownerDocument||e,n=ev(n),(a=$e.get(a))&&qf(n,a),i=i.createElement("link"),Qt(i);var u=i;u._p=new Promise(function(c,o){u.onload=c,u.onerror=o;}),te(i,"link",n),l.instance=i;}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=xc.bind(t),e.addEventListener("load",l),e.addEventListener("error",l));}}var Po=0;function qy(t,e){return t.stylesheets&&t.count===0&&ku(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&ku(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i();}},6e4+e);0<t.imgBytes&&Po===0&&(Po=62500*Sy());var a=setTimeout(function(){if(t.waitingForImages=false,t.count===0&&(t.stylesheets&&ku(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i();}},(t.imgBytes>Po?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a);}}:null}function xc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ku(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t();}}}var Ec=null;function ku(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ec=new Map,e.forEach(Xy,t),Ec=null,xc.call(t));}function Xy(t,e){if(!(e.state.loading&4)){var l=Ec.get(t);if(l)var n=l.get(null);else {l=new Map,Ec.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var u=a[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),n=u);}n&&l.set(null,n);}a=e.instance,u=a.getAttribute("data-precedence"),i=l.get(u)||n,i===n&&l.set(null,a),l.set(u,a),this.count++,n=xc.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4;}}var Gi={$$typeof:Ll,Provider:null,Consumer:null,_currentValue:Ln,_currentValue2:Ln,_threadCount:0};function jy(t,e,l,n,a,i,u,c,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zo(0),this.hiddenUpdates=zo(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map;}function nv(t,e,l,n,a,i,u,c,o,s,y,S){return t=new jy(t,e,l,u,o,s,y,S,c),e=1,i===true&&(e|=24),i=Oe(3,null,null,e),t.current=i,i.stateNode=t,e=mf(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},pf(i),t}function av(t){return t?(t=Ea,t):Ea}function iv(t,e,l,n,a,i){a=av(a),n.context===null?n.context=a:n.pendingContext=a,n=dn(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=mn(t,n,e),l!==null&&(xe(l,t,e),Ti(l,t,e));}function g0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e;}}function jf(t,e){g0(t,e),(t=t.alternate)&&g0(t,e);}function uv(t){if(t.tag===13||t.tag===31){var e=Wn(t,67108864);e!==null&&xe(e,t,67108864),jf(t,67108864);}}function b0(t){if(t.tag===13||t.tag===31){var e=Ne();e=Ir(e);var l=Wn(t,e);l!==null&&xe(l,t,e),jf(t,e);}}var Tc=true;function Gy(t,e,l,n){var a=Z.T;Z.T=null;var i=ut.p;try{ut.p=2,Gf(t,e,l,n);}finally{ut.p=i,Z.T=a;}}function Zy(t,e,l,n){var a=Z.T;Z.T=null;var i=ut.p;try{ut.p=8,Gf(t,e,l,n);}finally{ut.p=i,Z.T=a;}}function Gf(t,e,l,n){if(Tc){var a=Jr(n);if(a===null)$o(t,e,n,Mc,l),S0(t,n);else if(Ky(a,t,e,l,n))n.stopPropagation();else if(S0(t,n),e&4&&-1<Qy.indexOf(t)){for(;a!==null;){var i=Qa(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=_n(i.pendingLanes);if(u!==0){var c=i;for(c.pendingLanes|=2,c.entangledLanes|=2;u;){var o=1<<31-De(u);c.entanglements[1]|=o,u&=~o;}xl(i),(it&6)===0&&(mc=Re()+500,eu(0));}}break;case 31:case 13:c=Wn(i,2),c!==null&&xe(c,i,2),Vc(),jf(i,2);}if(i=Jr(n),i===null&&$o(t,e,n,Mc,l),i===a)break;a=i;}a!==null&&n.stopPropagation();}else $o(t,e,n,null,l);}}function Jr(t){return t=lf(t),Zf(t)}var Mc=null;function Zf(t){if(Mc=null,t=pa(t),t!==null){var e=Ki(t);if(e===null)t=null;else {var l=e.tag;if(l===13){if(t=A0(e),t!==null)return t;t=null;}else if(l===31){if(t=O0(e),t!==null)return t;t=null;}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null;}else e!==t&&(t=null);}}return Mc=t,null}function cv(t){switch(t){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 2;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 8;case "message":switch(Nh()){case D0:return 2;case N0:return 8;case Pu:case _h:return 32;case _0:return 268435456;default:return 32}default:return 32}}var kr=false,pn=null,yn=null,gn=null,Zi=new Map,Qi=new Map,nn=[],Qy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function S0(t,e){switch(t){case "focusin":case "focusout":pn=null;break;case "dragenter":case "dragleave":yn=null;break;case "mouseover":case "mouseout":gn=null;break;case "pointerover":case "pointerout":Zi.delete(e.pointerId);break;case "gotpointercapture":case "lostpointercapture":Qi.delete(e.pointerId);}}function di(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Qa(e),e!==null&&uv(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Ky(t,e,l,n,a){switch(e){case "focusin":return pn=di(pn,t,e,l,n,a),true;case "dragenter":return yn=di(yn,t,e,l,n,a),true;case "mouseover":return gn=di(gn,t,e,l,n,a),true;case "pointerover":var i=a.pointerId;return Zi.set(i,di(Zi.get(i)||null,t,e,l,n,a)),true;case "gotpointercapture":return i=a.pointerId,Qi.set(i,di(Qi.get(i)||null,t,e,l,n,a)),true}return false}function ov(t){var e=pa(t.target);if(e!==null){var l=Ki(e);if(l!==null){if(e=l.tag,e===13){if(e=A0(l),e!==null){t.blockedOn=e,nd(t.priority,function(){b0(l);});return}}else if(e===31){if(e=O0(l),e!==null){t.blockedOn=e,nd(t.priority,function(){b0(l);});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null;}function Wu(t){if(t.blockedOn!==null)return false;for(var e=t.targetContainers;0<e.length;){var l=Jr(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);dr=n,l.target.dispatchEvent(n),dr=null;}else return e=Qa(l),e!==null&&uv(e),t.blockedOn=l,false;e.shift();}return true}function x0(t,e,l){Wu(t)&&l.delete(e);}function Jy(){kr=false,pn!==null&&Wu(pn)&&(pn=null),yn!==null&&Wu(yn)&&(yn=null),gn!==null&&Wu(gn)&&(gn=null),Zi.forEach(x0),Qi.forEach(x0);}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,kr||(kr=true,Gt.unstable_scheduleCallback(Gt.unstable_NormalPriority,Jy)));}var Hu=null;function E0(t){Hu!==t&&(Hu=t,Gt.unstable_scheduleCallback(Gt.unstable_NormalPriority,function(){Hu===t&&(Hu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Zf(n||l)===null)continue;break}var i=Qa(l);i!==null&&(t.splice(e,3),e-=3,Cr(i,{pending:true,data:a,method:l.method,action:n},n,a));}}));}function Ga(t){function e(o){return _u(o,t)}pn!==null&&_u(pn,t),yn!==null&&_u(yn,t),gn!==null&&_u(gn,t),Zi.forEach(e),Qi.forEach(e);for(var l=0;l<nn.length;l++){var n=nn[l];n.blockedOn===t&&(n.blockedOn=null);}for(;0<nn.length&&(l=nn[0],l.blockedOn===null);)ov(l),l.blockedOn===null&&nn.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],u=a[Ee]||null;if(typeof i=="function")u||E0(l);else if(u){var c=null;if(i&&i.hasAttribute("formAction")){if(a=i,u=i[Ee]||null)c=u.formAction;else if(Zf(a)!==null)continue}else c=u.action;typeof c=="function"?l[n+1]=c:(l.splice(n,3),n-=3),E0(l);}}}function rv(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return a=u})},focusReset:"manual",scroll:"manual"});}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20);}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var n=false,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=true,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null);}}}function Qf(t){this._internalRoot=t;}qc.prototype.render=Qf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(z(409));var l=e.current,n=Ne();iv(l,n,t,e,null,null);};qc.prototype.unmount=Qf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;iv(t.current,2,null,t,null,null),Vc(),e[Za]=null;}};function qc(t){this._internalRoot=t;}qc.prototype.unstable_scheduleHydration=function(t){if(t){var e=B0();t={blockedOn:null,target:t,priority:e};for(var l=0;l<nn.length&&e!==0&&e<nn[l].priority;l++);nn.splice(l,0,t),l===0&&ov(t);}};var T0=M0.version;if(T0!=="19.2.7")throw Error(z(527,T0,"19.2.7"));ut.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(z(188)):(t=Object.keys(t).join(","),Error(z(268,t)));return t=zh(e),t=t!==null?C0(t):null,t=t===null?null:t.stateNode,t};var ky={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(mi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!mi.isDisabled&&mi.supportsFiber))try{Ji=mi.inject(ky),we=mi;}catch{}var mi;Xc.createRoot=function(t,e){if(!z0(t))throw Error(z(299));var l=false,n="",a=t1,i=e1,u=l1;return e!=null&&(e.unstable_strictMode===true&&(l=true),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=nv(t,1,false,null,null,l,n,null,a,i,u,rv),t[Za]=e.current,Yf(t),new Qf(e)};Xc.hydrateRoot=function(t,e,l){if(!z0(t))throw Error(z(299));var n=false,a="",i=t1,u=e1,c=l1,o=null;return l!=null&&(l.unstable_strictMode===true&&(n=true),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),e=nv(t,1,true,e,l??null,n,a,o,i,u,c,rv),e.context=av(null),l=e.current,n=Ne(),n=Ir(n),a=dn(n),a.callback=null,mn(l,a,n),l=n,e.current.lanes=l,Wi(e,l),xl(e),t[Za]=e.current,Yf(t),new qc(e)};Xc.version="19.2.7";});var mv=a((h2,dv)=>{function sv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sv);}catch(t){console.error(t);}}sv(),dv.exports=fv();});var Sv=a(jc=>{var Fy=Symbol.for("react.transitional.element"),$y=Symbol.for("react.fragment");function bv(t,e,l){var n=null;if(l!==void 0&&(n=""+l),e.key!==void 0&&(n=""+e.key),"key"in e){l={};for(var a in e)a!=="key"&&(l[a]=e[a]);}else l=e;return e=l.ref,{$$typeof:Fy,type:t,key:n,ref:e!==void 0?e:null,props:l}}jc.Fragment=$y;jc.jsx=bv;jc.jsxs=bv;});var Ue=a((b2,xv)=>{xv.exports=Sv();});var as=b(il(),1),qv=b(mv(),1);var U=b(il(),1);var Kf=b(il(),1);var vv=b(il(),1);var hv=t=>(e,l)=>tEditor(t,e,l);function pv(t){return (0, vv.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot)}var yv=t=>e=>t.patch(e,{transient:true}),gv=t=>e=>t.commit(e),T={fg:"var(--me-fg,#ededf0)",muted:"var(--me-fg-muted,#9a9aa3)",bg:"var(--me-bg,#08080a)",surface:"var(--me-surface,#141416)",chip:"var(--me-chip,#1c1c20)",border:"var(--me-border,#26262b)",accent:"var(--me-accent,#5b5bd6)",accentFg:"var(--me-accent-fg,#fff)",green:"#34d399"};var $n=b(Ue(),1);function au({value:t,min:e,max:l,rangePerWidth:n,step:a=1,onChange:i,onCommit:u,format:c}){let o=(0, Kf.useRef)(null),s=(0, Kf.useRef)(null),y=C=>{let B=s.current,d=o.current;if(!B||!d)return;let f=n??l-e,p=B.startV+(C.clientX-B.startX)/d.clientWidth*f,x=Math.round(p/a)*a;i(Math.min(l,Math.max(e,x)));},S=()=>{s.current=null,window.removeEventListener("pointermove",y),window.removeEventListener("pointerup",S),u?.();},h=n??l-e,g=-t/h*100;return (0, $n.jsxs)("div",{ref:o,style:{position:"relative",height:36,userSelect:"none",overflow:"hidden",cursor:"ew-resize",touchAction:"none"},onPointerDown:C=>{C.preventDefault(),s.current={startX:C.clientX,startV:t},window.addEventListener("pointermove",y),window.addEventListener("pointerup",S);},children:[(0, $n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",display:"flex",alignItems:"center",gap:7,transform:`translate(calc(-50% + ${g}%), -50%)`,width:"200%",justifyContent:"center"},children:Array.from({length:81}).map((C,B)=>(0, $n.jsx)("span",{style:{flexShrink:0,borderRadius:"50%",width:B%5===0?3:2,height:B%5===0?3:2,background:B%5===0?T.muted:T.border}},B))}),(0, $n.jsx)("div",{style:{position:"absolute",left:"50%",top:0,bottom:0,width:1,background:T.fg}}),(0, $n.jsx)("span",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:-2,fontSize:10,fontVariantNumeric:"tabular-nums",padding:"0 4px",borderRadius:4,color:T.fg,background:T.surface},children:c?c(t):Math.round(t)})]})}var In=b(il(),1),Ev=b(Ue(),1);function iu({videoEl:t,srcDims:e,canvasDims:l,state:n,maxW:a=Number.POSITIVE_INFINITY,maxH:i=Number.POSITIVE_INFINITY,zoomPercent:u=null,withOverlays:c=true,onClick:o}){let s=(0, In.useRef)(null),y=(0, In.useRef)(new Map),S=(0, In.useRef)(()=>{}),h=outputSize(l,n),g=h.w?Math.min(a/h.w,i/h.h,1):1,O=u==null?g:u/100,C=Math.max(2,Math.round(h.w*O));return (0, In.useEffect)(()=>{loadOverlayImages(n.overlays??[]).then(B=>{y.current=B,S.current();});},[n.overlays]),(0, In.useEffect)(()=>{let B=0,d=0,f=Math.min(1,1100/Math.max(2,h.w)),p=()=>{let H=s.current;H&&t&&e.w&&h.w&&t.readyState>=2&&drawVideoFrame(H,t,e,l,n,f,y.current,c);},x=()=>!!t&&!t.paused&&!t.ended,w=()=>{d||B||(d=requestAnimationFrame(()=>{d=0,p();}));},Y=()=>{p(),B=x()?requestAnimationFrame(Y):0;},A=()=>{B||(B=requestAnimationFrame(Y));};return S.current=p,w(),x()&&A(),t?.addEventListener("play",A),t?.addEventListener("playing",A),t?.addEventListener("pause",w),t?.addEventListener("seeked",w),t?.addEventListener("loadeddata",w),t?.addEventListener("timeupdate",w),()=>{S.current===p&&(S.current=()=>{}),cancelAnimationFrame(B),cancelAnimationFrame(d),t?.removeEventListener("play",A),t?.removeEventListener("playing",A),t?.removeEventListener("pause",w),t?.removeEventListener("seeked",w),t?.removeEventListener("loadeddata",w),t?.removeEventListener("timeupdate",w);}},[t,e.w,e.h,l.w,l.h,h.w,h.h,n,c]),(0, Ev.jsx)("canvas",{ref:s,onClick:o,style:{display:"block",borderRadius:8,width:C,maxWidth:"none",height:"auto",cursor:o?"pointer":"default"}})}var ee=b(il(),1);var at=b(Ue(),1),$a={padding:"6px 10px",borderRadius:6,background:T.chip,color:T.fg,border:"none",cursor:"pointer",font:"inherit",fontSize:13};function Jf({ratio:t}){if(!t)return (0, at.jsx)("span",{className:"me-video-ratio-glyph",style:{width:17,height:17,border:"1.6px solid currentColor",borderRadius:999,display:"inline-block",boxSizing:"border-box",opacity:.9},"aria-hidden":"true"});let[e=1,l=1]=t.split(":").map(Number),n=l>e,a=e>l;return (0, at.jsx)("span",{className:"me-video-ratio-glyph",style:{width:a?22:n?13:17,height:n?22:a?13:17,border:"1.6px solid currentColor",borderRadius:t?3:999,display:"inline-block",boxSizing:"border-box",opacity:t?1:.9},"aria-hidden":"true"})}function kf({videoEl:t,srcDims:e,canvasDims:l,state:n,patchLive:a,commit:i,ratioPreset:u,onRatioPreset:c,onConfirm:o,maxW:s=Number.POSITIVE_INFINITY,maxH:y=Number.POSITIVE_INFINITY,zoomPercent:S=null,t:h}){let g=(0, ee.useRef)(null),O=(0, ee.useRef)(null),C=(0, ee.useRef)(null),B=(0, ee.useRef)(null),d=(0, ee.useRef)(null),f=(0, ee.useRef)({x:.5,y:.5}),[p,x]=(0, ee.useState)(false),[,w]=(0, ee.useState)(0),Y=rotatedSize(l.w,l.h,n.rotation),A=Y.w?Math.min(s/Y.w,y/Y.h,1):1,H=S==null?A:S/100,V=Math.max(2,Math.round(Y.w*H)),X=Math.max(2,Math.round(Y.h*H)),G=Y.w?V/Y.w:1,kt=Number.isFinite(y)?Math.max(180,y+24):void 0,rl=Number.isFinite(s)?Math.max(V,Math.round(s)):V,Me=Number.isFinite(y)?Math.max(X,Math.round(y)):X,Ct=n.crop??{x:0,y:0,width:Y.w,height:Y.h},de=()=>{let D=C.current;D&&(f.current={x:D.scrollWidth>D.clientWidth?(D.scrollLeft+D.clientWidth/2)/D.scrollWidth:.5,y:D.scrollHeight>D.clientHeight?(D.scrollTop+D.clientHeight/2)/D.scrollHeight:.5});};(0, ee.useEffect)(()=>{let D=C.current;if(D)return D.addEventListener("scroll",de,{passive:true}),()=>D.removeEventListener("scroll",de)},[]),(0, ee.useLayoutEffect)(()=>{let D=C.current;if(!D)return;let q=f.current,Tt=requestAnimationFrame(()=>{D.scrollLeft=Math.max(0,D.scrollWidth*q.x-D.clientWidth/2),D.scrollTop=Math.max(0,D.scrollHeight*q.y-D.clientHeight/2),de();});return ()=>cancelAnimationFrame(Tt)},[V,X,rl,Me]),(0, ee.useEffect)(()=>{if(!p)return;let D=q=>{let Tt=B.current;Tt&&!Tt.contains(q.target)&&x(false);};return window.addEventListener("pointerdown",D),()=>window.removeEventListener("pointerdown",D)},[p]),(0, ee.useEffect)(()=>{let D=0,q=0,Tt=()=>{let mt=g.current,Wt=t;if(mt&&Wt&&e.w&&Wt.readyState>=2){mt.width=Math.max(2,Math.round(Y.w*.5)),mt.height=Math.max(2,Math.round(Y.h*.5));let ve=mt.getContext("2d");if(ve){ve.save(),ve.translate(mt.width/2,mt.height/2),ve.rotate(n.rotation*DEG2RAD),ve.scale(n.flipX?-1:1,n.flipY?-1:1);let tl=fitRects({width:e.w,height:e.h},{w:l.w,h:l.h},"cover");ve.drawImage(Wt,tl.src.x,tl.src.y,tl.src.width,tl.src.height,-l.w*.5/2,-l.h*.5/2,l.w*.5,l.h*.5),ve.restore();}}},Q=()=>!!t&&!t.paused&&!t.ended,K=()=>{q||D||(q=requestAnimationFrame(()=>{q=0,Tt();}));},Xt=()=>{Tt(),D=Q()?requestAnimationFrame(Xt):0;},rt=()=>{D||(D=requestAnimationFrame(Xt));};return K(),Q()&&rt(),t?.addEventListener("play",rt),t?.addEventListener("playing",rt),t?.addEventListener("pause",K),t?.addEventListener("seeked",K),t?.addEventListener("loadeddata",K),t?.addEventListener("timeupdate",K),()=>{cancelAnimationFrame(D),cancelAnimationFrame(q),t?.removeEventListener("play",rt),t?.removeEventListener("playing",rt),t?.removeEventListener("pause",K),t?.removeEventListener("seeked",K),t?.removeEventListener("loadeddata",K),t?.removeEventListener("timeupdate",K);}},[t,e.w,e.h,l.w,l.h,n.rotation,n.flipX,n.flipY]);let k=(()=>{let D=VIDEO_RATIO_PRESETS.find(q=>q.ratio===u);return D?D.value:null})(),fl=D=>{let q=d.current,Tt=O.current;if(!q||!Tt)return;let Q=Tt.getBoundingClientRect(),K=(D.clientX-Q.left)/G,Xt=(D.clientY-Q.top)/G;if(q.kind==="move"){let ta=clampRect({x:q.orig.x+(K-q.startX),y:q.orig.y+(Xt-q.startY),width:q.orig.width,height:q.orig.height},{w:Y.w,h:Y.h});a({crop:ta});return}let rt=q.orig,mt={nw:{x:rt.x+rt.width,y:rt.y+rt.height},ne:{x:rt.x,y:rt.y+rt.height},sw:{x:rt.x+rt.width,y:rt.y},se:{x:rt.x,y:rt.y}}[q.corner],Wt=Math.max(40,Math.abs(K-mt.x)),Ve=Math.max(40,k?Wt/k:Math.abs(Xt-mt.y));k&&(Wt=Ve*k);let ve=Math.min(mt.x,K),tl=q.corner==="nw"||q.corner==="ne"?mt.y-Ve:k?mt.y:Math.min(mt.y,Xt);a({crop:clampRect({x:ve,y:tl,width:Wt,height:Ve},{w:Y.w,h:Y.h})});},Ie=()=>{d.current=null,window.removeEventListener("pointermove",fl),window.removeEventListener("pointerup",Ie),i();},me=D=>q=>{q.preventDefault(),q.stopPropagation(),d.current=D,window.addEventListener("pointermove",fl),window.addEventListener("pointerup",Ie),w(Tt=>Tt+1);},[sl,Le]=(0, ee.useState)(()=>Math.round(n.rotation/90)*90),At=n.rotation-sl,Ia=D=>{let q=D;for(;q>180;)q-=360;for(;q<-180;)q+=360;return q},An=(D,q,Tt)=>{let Q=Ia(D+q);Le(Q-q);let K=rotatedSize(l.w,l.h,Q),Xt=k?centeredMaxRect({w:K.w,h:K.h},k):{x:0,y:0,width:K.w,height:K.h};Tt?a({rotation:Q,crop:Xt}):i({rotation:Q,crop:Xt});},Pe=[{c:"nw",style:{left:-7,top:-7}},{c:"ne",style:{right:-7,top:-7}},{c:"sw",style:{left:-7,bottom:-7}},{c:"se",style:{right:-7,bottom:-7}}],El=h(u?`ratio.${u}`:"ratio.free"),ie=D=>{c(D),x(false);};return (0, at.jsxs)("div",{className:"me-video-crop-view",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0, at.jsxs)("div",{className:"me-video-fixed-controls me-video-crop-controls",style:{position:"relative",zIndex:3,display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",justifyContent:"center"},children:[(0, at.jsx)("button",{className:"me-video-crop-action","data-mobile-label":h("crop.rotateLeftShort"),onClick:()=>An(sl-90,At,false),style:$a,children:h("crop.rotateLeft")}),(0, at.jsx)("button",{className:"me-video-crop-action","data-mobile-label":h("crop.flipXShort"),onClick:()=>i({flipX:!n.flipX}),style:$a,children:h("crop.flipX")}),(0, at.jsx)("button",{className:"me-video-crop-action","data-mobile-label":h("crop.flipYShort"),onClick:()=>i({flipY:!n.flipY}),style:$a,children:h("crop.flipY")}),(0, at.jsxs)("div",{ref:B,className:"me-video-ratio-menu",style:{position:"relative",display:"inline-flex"},children:[(0, at.jsxs)("button",{type:"button",onClick:()=>x(D=>!D),style:{...$a,display:"inline-flex",alignItems:"center",gap:6,minWidth:126,justifyContent:"space-between",background:p||u?"color-mix(in srgb, var(--me-accent, #7c7cf0) 18%, transparent)":T.chip,color:p||u?T.accent:T.fg},"aria-haspopup":"menu","aria-expanded":p,children:[(0, at.jsx)(Jf,{ratio:""}),(0, at.jsx)("span",{children:El}),(0, at.jsx)("span",{"aria-hidden":"true",style:{fontSize:13,lineHeight:1},children:p?"\u2303":"\u2304"})]}),p&&(0, at.jsxs)("div",{className:"me-video-ratio-menu-panel",role:"menu",style:{position:"absolute",top:"calc(100% + 6px)",left:0,minWidth:190,padding:6,borderRadius:10,background:"rgba(28,28,32,0.98)",border:`1px solid ${T.border}`,boxShadow:"0 14px 34px rgba(0,0,0,0.35)",zIndex:12},children:[(0, at.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>ie(""),style:{...$a,width:"100%",height:34,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:8,background:u===""?"color-mix(in srgb, var(--me-accent, #7c7cf0) 18%, transparent)":"transparent",color:u===""?T.accent:T.fg},children:[(0, at.jsx)(Jf,{ratio:""}),(0, at.jsx)("span",{children:h("ratio.free")})]}),VIDEO_RATIO_PRESETS.map(D=>(0, at.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>ie(D.ratio),style:{...$a,width:"100%",height:34,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:8,background:u===D.ratio?"color-mix(in srgb, var(--me-accent, #7c7cf0) 18%, transparent)":"transparent",color:u===D.ratio?T.accent:T.fg},children:[(0, at.jsx)(Jf,{ratio:D.ratio}),(0, at.jsx)("span",{children:h(`ratio.${D.ratio}`)})]},D.ratio))]})]})]}),(0, at.jsx)("div",{ref:C,className:"me-video-canvas-scroll",style:{position:"relative",zIndex:0,width:"100%",maxWidth:"100%",maxHeight:kt,overflow:"auto",overscrollBehavior:"contain",padding:10,boxSizing:"border-box"},children:(0, at.jsx)("div",{className:"me-video-canvas-stage",style:{position:"relative",width:rl,minWidth:"100%",minHeight:Me,display:"grid",placeItems:"center"},children:(0, at.jsxs)("div",{ref:O,style:{position:"relative",width:V,flex:"0 0 auto"},onDoubleClick:()=>{i(),o?.();},title:h("tip.dblConfirm"),children:[(0, at.jsx)("canvas",{ref:g,style:{display:"block",borderRadius:8,width:"100%",height:"auto"}}),(0, at.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden",borderRadius:8},children:(0, at.jsxs)("div",{style:{position:"absolute",left:Ct.x*G,top:Ct.y*G,width:Ct.width*G,height:Ct.height*G,border:"1.5px solid rgba(255,255,255,0.9)",boxShadow:"0 0 0 9999px rgba(0,0,0,0.55)",cursor:"move",touchAction:"none"},onPointerDown:D=>{let q=O.current;if(!q)return;let Tt=q.getBoundingClientRect();me({kind:"move",startX:(D.clientX-Tt.left)/G,startY:(D.clientY-Tt.top)/G,orig:Ct})(D);},children:[[1,2].map(D=>(0, at.jsx)("div",{style:{position:"absolute",top:0,bottom:0,width:1,left:`${D/3*100}%`,background:"rgba(255,255,255,0.25)"}},`v${D}`)),[1,2].map(D=>(0, at.jsx)("div",{style:{position:"absolute",left:0,right:0,height:1,top:`${D/3*100}%`,background:"rgba(255,255,255,0.25)"}},`h${D}`)),Pe.map(({c:D,style:q})=>(0, at.jsx)("div",{style:{position:"absolute",width:14,height:14,borderRadius:"50%",...q,background:"#fff",boxShadow:"0 1px 4px rgba(0,0,0,0.5)",cursor:`${D}-resize`,touchAction:"none"},onPointerDown:me({kind:"corner",corner:D,orig:Ct})},D)),(0, at.jsxs)("span",{style:{position:"absolute",top:-20,left:0,fontSize:10,whiteSpace:"nowrap",color:"rgba(255,255,255,0.85)"},children:[Math.round(Ct.width),"\xD7",Math.round(Ct.height)]})]})})]})})}),(0, at.jsx)("div",{className:"me-video-fixed-controls me-video-crop-dial",style:{position:"relative",zIndex:3,width:"100%",maxWidth:420},children:(0, at.jsx)(au,{value:At,min:-45,max:45,rangePerWidth:90,step:.5,onChange:D=>An(sl,D,true),onCommit:()=>i(),format:D=>`${(sl+D).toFixed(1).replace(/\.0$/,"")}\xB0`})})]})}var dt=b(il(),1);var R=b(Ue(),1);function sg(t,e=1024){return new Promise((l,n)=>{let a=URL.createObjectURL(t),i=new Image;i.onload=()=>{let u=Math.min(1,e/Math.max(i.naturalWidth,i.naturalHeight)),c=document.createElement("canvas");c.width=Math.max(1,Math.round(i.naturalWidth*u)),c.height=Math.max(1,Math.round(i.naturalHeight*u));let o=c.getContext("2d");if(!o){URL.revokeObjectURL(a),n(new Error("canvas \u4E0D\u53EF\u7528"));return}o.drawImage(i,0,0,c.width,c.height),URL.revokeObjectURL(a),l({dataUrl:c.toDataURL("image/png"),w:c.width,h:c.height});},i.onerror=()=>{URL.revokeObjectURL(a),n(new Error("\u56FE\u7247\u8BFB\u53D6\u5931\u8D25,\u8BF7\u6362\u4E00\u5F20"));},i.src=a;})}var dg=["pen","eraser","line","arrow","rect","ellipse","text"],Cv=["#ffffff","#ff4d4f","#ffa940","#fadb14","#52c41a","#40a9ff","#7c7cf0","#000000"],mg=["\u{1F60D}","\u{1F602}","\u{1F600}","\u{1F64F}","\u{1F44D}","\u2764\uFE0F","\u{1F525}","\u{1F389}","\u2728","\u{1F4AF}"],Rv=t=>({height:32,padding:"0 10px",borderRadius:8,fontSize:12,border:"none",cursor:"pointer",background:t?"color-mix(in srgb, var(--me-accent, #7c7cf0) 18%, transparent)":"transparent",color:t?T.accent:T.muted,font:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6}),Ff=()=>({width:28,height:28,borderRadius:6,border:"1px solid rgba(124,124,240,0.4)",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,background:"rgba(20,20,22,0.88)",color:T.fg,boxShadow:"0 4px 14px rgba(0,0,0,0.24)",cursor:"pointer"}),vg={position:"absolute",top:34,right:0,zIndex:8,padding:8,borderRadius:8,border:"1px solid rgba(255,255,255,0.12)",background:"rgba(20,20,22,0.96)",boxShadow:"0 10px 28px rgba(0,0,0,0.32)",pointerEvents:"auto"};function Zc({children:t}){return (0, R.jsx)("svg",{className:"me-video-overlay-action-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:t})}function hg(){return (0, R.jsxs)(Zc,{children:[(0, R.jsx)("path",{d:"M5 19l4.2-1 9.1-9.1a2 2 0 0 0-2.8-2.8L6.4 15.2 5 19z"}),(0, R.jsx)("path",{d:"M13.8 7.8l2.4 2.4"})]})}function pg(){return (0, R.jsxs)(Zc,{children:[(0, R.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"1.8"}),(0, R.jsx)("path",{d:"M6 14H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1"})]})}function yg(){return (0, R.jsxs)(Zc,{children:[(0, R.jsx)("path",{d:"M5 7h14"}),(0, R.jsx)("path",{d:"M9 7V5h6v2"}),(0, R.jsx)("path",{d:"M8 10v8"}),(0, R.jsx)("path",{d:"M12 10v8"}),(0, R.jsx)("path",{d:"M16 10v8"}),(0, R.jsx)("path",{d:"M7 7l1 13h8l1-13"})]})}function gg(){return (0, R.jsxs)(Zc,{children:[(0, R.jsx)("path",{d:"M7 7a7 7 0 1 1-1.6 7.9"}),(0, R.jsx)("path",{d:"M7 3v4h4"})]})}function bg(){return (0, R.jsx)("svg",{className:"me-video-overlay-action-icon me-video-overlay-resize-icon",viewBox:"0 0 1024 1024","aria-hidden":"true",focusable:"false",children:(0, R.jsx)("path",{d:"M940.517894 1024l0.660311-0.683893h82.633135v-82.633135l0.18866-0.165078-0.18866-0.18866v-513.863019h-119.374695v394.488324L204.531159 121.049053H598.52425V1.674359H85.156464L83.482106 0l-1.674359 1.674359H1.674359v80.133388L0 83.482106l1.674359 1.674358V598.52425h119.351112V204.507577l699.433835 699.433835H426.961448v119.374695h512.872553l0.683893 0.683893z"})})}function zn({children:t}){return (0, R.jsx)("svg",{className:"me-video-overlay-tool-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:t})}function wv({id:t}){switch(t){case "pen":return (0, R.jsxs)(zn,{children:[(0, R.jsx)("path",{d:"M4 20l4.5-1 9.6-9.6a2 2 0 0 0-2.8-2.8L5.7 16.2 4 20z"}),(0, R.jsx)("path",{d:"M13.7 8.2l2.1 2.1"})]});case "eraser":return (0, R.jsxs)(zn,{children:[(0, R.jsx)("path",{d:"M4 15l8.5-8.5a2 2 0 0 1 2.8 0l2.2 2.2a2 2 0 0 1 0 2.8L10 19H6.5L4 16.5V15z"}),(0, R.jsx)("path",{d:"M9 11l4 4"}),(0, R.jsx)("path",{d:"M11 19h8"})]});case "line":return (0, R.jsx)(zn,{children:(0, R.jsx)("path",{d:"M5 19L19 5"})});case "arrow":return (0, R.jsxs)(zn,{children:[(0, R.jsx)("path",{d:"M5 19L19 5"}),(0, R.jsx)("path",{d:"M11 5h8v8"})]});case "rect":return (0, R.jsx)(zn,{children:(0, R.jsx)("rect",{x:"5",y:"6",width:"14",height:"12",rx:"1.5"})});case "ellipse":return (0, R.jsx)(zn,{children:(0, R.jsx)("ellipse",{cx:"12",cy:"12",rx:"7",ry:"5"})});case "text":return (0, R.jsxs)(zn,{children:[(0, R.jsx)("path",{d:"M5 6h14"}),(0, R.jsx)("path",{d:"M12 6v13"}),(0, R.jsx)("path",{d:"M9 19h6"})]});case "pickImage":return (0, R.jsxs)(zn,{children:[(0, R.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2"}),(0, R.jsx)("path",{d:"M8 15l2.5-2.5L13 15l2-2 3 3"}),(0, R.jsx)("circle",{cx:"9",cy:"9",r:"1"})]})}}function If({videoEl:t,srcDims:e,canvasDims:l,state:n,mode:a,patchLive:i,commit:u,maxW:c=Number.POSITIVE_INFINITY,maxH:o=Number.POSITIVE_INFINITY,zoomPercent:s=null,t:y}){let S=(0, dt.useRef)(null),h=(0, dt.useRef)(null),g=(0, dt.useRef)(null),O=(0, dt.useRef)(null),[C,B]=(0, dt.useState)("pen"),[d,f]=(0, dt.useState)("#ff4d4f"),[p,x]=(0, dt.useState)(6),[w,Y]=(0, dt.useState)(-1),[A,H]=(0, dt.useState)(""),[V,X]=(0, dt.useState)(null),[G,kt]=(0, dt.useState)(null),[rl,Me]=(0, dt.useState)(false),Ct=(0, dt.useRef)(null),de=(0, dt.useRef)(-1),k=(0, dt.useRef)(null),fl=(0, dt.useRef)(new Map),Ie=(0, dt.useRef)(()=>{}),me=(0, dt.useRef)(()=>{}),sl=(0, dt.useRef)({x:.5,y:.5}),Le=b=>{de.current=b,Y(b),me.current();},At=outputSize(l,n),Ia=At.w?Math.min(c/At.w,o/At.h,1):1,An=s==null?Ia:s/100,Pe=Math.max(2,Math.round(At.w*An)),El=Math.max(2,Math.round(At.h*An)),ie=At.w?Pe/At.w:1,D=Number.isFinite(o)?Math.max(180,o+24):void 0,q=Number.isFinite(c)?Math.max(Pe,Math.round(c)):Pe,Tt=Number.isFinite(o)?Math.max(El,Math.round(o)):El,Q=n.overlays??[],K=w>=0?Q[w]:void 0,Xt=K?Eg(K,ie):null;(0, dt.useEffect)(()=>{kt(null),Me(false);},[w]);let rt=()=>{let b=g.current;b&&(sl.current={x:b.scrollWidth>b.clientWidth?(b.scrollLeft+b.clientWidth/2)/b.scrollWidth:.5,y:b.scrollHeight>b.clientHeight?(b.scrollTop+b.clientHeight/2)/b.scrollHeight:.5});};(0, dt.useEffect)(()=>{let b=g.current;if(b)return b.addEventListener("scroll",rt,{passive:true}),()=>b.removeEventListener("scroll",rt)},[]),(0, dt.useLayoutEffect)(()=>{let b=g.current;if(!b)return;let M=sl.current,L=requestAnimationFrame(()=>{b.scrollLeft=Math.max(0,b.scrollWidth*M.x-b.clientWidth/2),b.scrollTop=Math.max(0,b.scrollHeight*M.y-b.clientHeight/2),rt();});return ()=>cancelAnimationFrame(L)},[Pe,El,q,Tt]),(0, dt.useEffect)(()=>{loadOverlayImages(Q).then(b=>{fl.current=b,me.current();});},[Q]),(0, dt.useEffect)(()=>{let b=0,M=0,L=Math.min(1,1100/At.w),F=()=>{let yt=S.current,le=t;if(yt&&le&&e.w&&At.w&&le.readyState>=2){drawVideoFrame(yt,le,e,l,n,L,void 0,false);let Wl=yt.getContext("2d");if(Wl){Wl.setTransform(L,0,0,L,0,0);let Ye=G?Q.filter((ml,al)=>al!==G.idx):Q;drawOverlays(Wl,Ye,fl.current),Ct.current&&drawOverlays(Wl,[Ct.current],fl.current),Wl.setTransform(1,0,0,1,0,0);}}},Nt=()=>!!t&&!t.paused&&!t.ended,ht=()=>{M||b||(M=requestAnimationFrame(()=>{M=0,F();}));},nl=()=>{F(),b=Nt()?requestAnimationFrame(nl):0;},ce=()=>{b||(b=requestAnimationFrame(nl));};return Ie.current=F,me.current=ht,ht(),Nt()&&ce(),t?.addEventListener("play",ce),t?.addEventListener("playing",ce),t?.addEventListener("pause",ht),t?.addEventListener("seeked",ht),t?.addEventListener("loadeddata",ht),t?.addEventListener("timeupdate",ht),()=>{Ie.current===F&&(Ie.current=()=>{}),me.current===ht&&(me.current=()=>{}),cancelAnimationFrame(b),cancelAnimationFrame(M),t?.removeEventListener("play",ce),t?.removeEventListener("playing",ce),t?.removeEventListener("pause",ht),t?.removeEventListener("seeked",ht),t?.removeEventListener("loadeddata",ht),t?.removeEventListener("timeupdate",ht);}},[t,e.w,e.h,l.w,l.h,At.w,At.h,n,Q,w,G?.idx]);let mt=b=>{let M=h.current.getBoundingClientRect();return {x:(b.clientX-M.left)/ie,y:(b.clientY-M.top)/ie}},Wt=(b,M,L)=>{let F=Q[b];if(!F)return;let Nt=Nv(F),ht=Nt.x+Nt.w/2,nl=Nt.y+Nt.h/2;k.current={startX:M.x,startY:M.y,orig:F,mode:L,baseW:Math.max(8,Nt.w),baseDistance:Math.max(8,Math.hypot(M.x-ht,M.y-nl)),centerX:ht,centerY:nl,startAngle:Math.atan2(M.y-nl,M.x-ht)*180/Math.PI,origRotation:getOverlayRotation(F)},window.addEventListener("pointermove",ti),window.addEventListener("pointerup",el);},Ve=b=>{let M=hitTestOverlay(Q,b.x,b.y,Math.max(8,12/ie));return Le(M),M>=0?(Wt(M,b,"move"),true):false},ve=b=>{let M=Q[b];return !M||M.type!=="text"?false:(Le(b),Me(false),kt({idx:b,value:M.text,original:M.text}),true)},tl=b=>{b.preventDefault(),b.stopPropagation();let M=mt(b),L=hitTestOverlay(Q,M.x,M.y,Math.max(8,12/ie));L>=0&&ve(L);},ta=b=>{if(V)return;b.preventDefault();let M=mt(b);if(C==="eraser"&&a==="annotate"){let F=hitTestOverlay(Q,M.x,M.y,Math.max(8,12/ie));F>=0&&(u({overlays:Q.filter((Nt,ht)=>ht!==F)}),Le(-1));return}if(Ve(M)||a==="sticker")return;if(C==="text"){X(M);return}if(C==="eraser")return;let L={color:d,width:p};Ct.current=C==="pen"?{type:"pen",points:[M.x,M.y,M.x+.01,M.y+.01],...L}:C==="line"||C==="arrow"?{type:C,x1:M.x,y1:M.y,x2:M.x,y2:M.y,...L}:{type:C,x:M.x,y:M.y,w:1,h:1,...L},me.current(),window.addEventListener("pointermove",ue),window.addEventListener("pointerup",Pa);},ue=b=>{let M=Ct.current;if(!M)return;let L=mt(b);M.type==="pen"?M.points=[...M.points,L.x,L.y]:M.type==="line"||M.type==="arrow"?(M.x2=L.x,M.y2=L.y):(M.type==="rect"||M.type==="ellipse")&&(M.w=L.x-M.x,M.h=L.y-M.y),me.current();},Pa=()=>{window.removeEventListener("pointermove",ue),window.removeEventListener("pointerup",Pa);let b=Ct.current;if(Ct.current=null,me.current(),!b||(b.type==="rect"||b.type==="ellipse")&&(Math.abs(b.w)<4||Math.abs(b.h)<4))return;let M=b;(b.type==="rect"||b.type==="ellipse")&&(M={...b,x:Math.min(b.x,b.x+b.w),y:Math.min(b.y,b.y+b.h),w:Math.abs(b.w),h:Math.abs(b.h)}),u({overlays:[...Q,M]});},ti=b=>{let M=k.current,L=de.current;if(!M||L<0)return;let F=mt(b),Nt=M.origRotation+Math.atan2(F.y-M.centerY,F.x-M.centerX)*180/Math.PI-M.startAngle,ht=M.mode==="scale"?scaleOverlay(M.orig,Math.hypot(F.x-M.centerX,F.y-M.centerY)/M.baseDistance):M.mode==="rotate"?rotateOverlay(M.orig,xg(Nt,M)):translateOverlay(M.orig,F.x-M.startX,F.y-M.startY);i({overlays:Q.map((nl,ce)=>ce===L?ht:nl)}),me.current();},el=()=>{window.removeEventListener("pointermove",ti),window.removeEventListener("pointerup",el),k.current&&u(),k.current=null;},dl=(b,M)=>{let L=Math.round(At.w*.14),F=M?fitStickerBox(M.w,M.h,L):{w:L,h:L},Nt={type:"sticker",x:Math.round(At.w/2-F.w/2),y:Math.round(At.h/2-F.h/2),w:F.w,h:F.h,emoji:b,src:M?.src};Le(Q.length),u({overlays:[...Q,Nt]});},Tl=b=>{if(V&&b.trim()){let M=Math.max(24,Math.round(At.w/18));u({overlays:[...Q,{type:"text",x:V.x,y:V.y,text:b.trim(),color:d,fontSize:M}]});}X(null);},Ml=(b,M)=>{let L=de.current;if(L<0||!Q[L])return;let F=Q.map((Nt,ht)=>ht===L?b(Nt):Nt);M==="commit"?u({overlays:F}):i({overlays:F});},ou=()=>{let b=de.current;if(b<0||!Q[b])return;let M=translateOverlay(Q[b],24,24);Le(Q.length),u({overlays:[...Q,M]});},On=()=>{let b=de.current;b<0||(u({overlays:Q.filter((M,L)=>L!==b)}),Le(-1));},Rt=()=>{let b=de.current,M=b>=0?Q[b]:void 0;if(!(!M||M.type==="sticker")){if(M.type==="text"){ve(b);return}kt(null),Me(L=>!L);}},ei=()=>{G&&Ml(b=>b.type==="text"?{...b,text:G.original}:b,"commit"),kt(null);},Be=()=>{G&&u(),kt(null);},vt=b=>{let M=de.current,L=Q[M];!L||!Gc(L)||Ml(F=>Gc(F)?{...F,color:b}:F,"commit");},he=(b,M)=>{K&&$f(K)&&Ml(L=>$f(L)?{...L,width:b}:L,M);},zl=b=>{f(b),vt(b);},pe=b=>{x(b);},ll=K&&Gc(K)?K.color:d;return (0, R.jsxs)("div",{className:`me-video-overlay-view me-video-overlay-view-${a}`,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12},children:[(0, R.jsx)("div",{ref:g,className:"me-video-canvas-scroll",style:{position:"relative",zIndex:0,width:"100%",maxWidth:"100%",maxHeight:D,overflow:"auto",overscrollBehavior:"contain",padding:8,boxSizing:"border-box"},children:(0, R.jsx)("div",{className:"me-video-canvas-stage",style:{position:"relative",width:q,minWidth:"100%",minHeight:Tt,display:"grid",placeItems:"center"},children:(0, R.jsxs)("div",{ref:h,style:{position:"relative",width:Pe,flex:"0 0 auto",touchAction:"none"},children:[(0, R.jsx)("canvas",{ref:S,style:{display:"block",borderRadius:8,width:"100%",height:"auto",cursor:a==="sticker"?"default":C==="eraser"?"cell":"crosshair"},onPointerDown:ta,onDoubleClick:tl}),V&&(0, R.jsx)("input",{autoFocus:true,style:{position:"absolute",left:V.x*ie,top:V.y*ie,background:"rgba(0,0,0,0.75)",border:`1px solid ${T.accent}`,color:"#fff",minWidth:120,padding:"4px 8px",borderRadius:4,fontSize:14,outline:"none"},placeholder:y("overlay.textPlaceholder"),onKeyDown:b=>{b.key==="Enter"&&Tl(b.target.value),b.key==="Escape"&&X(null);},onBlur:b=>Tl(b.target.value)}),K&&Xt&&(0, R.jsxs)("div",{className:"me-video-selection-frame",style:Xt.frameStyle,children:[(0, R.jsx)("div",{className:"me-video-selection-handle",style:Xt.handleStyle,onPointerDown:b=>{b.preventDefault(),b.stopPropagation(),Wt(w,mt(b),"scale");},children:(0, R.jsx)(bg,{})}),(0, R.jsx)("div",{className:"me-video-selection-rotate-handle",style:Xt.rotateHandleStyle,onPointerDown:b=>{b.preventDefault(),b.stopPropagation(),Wt(w,mt(b),"rotate");},children:(0, R.jsx)(gg,{})}),(0, R.jsxs)("div",{className:"me-video-overlay-actions",style:Xt.actionsStyle,onPointerDown:b=>b.stopPropagation(),children:[K.type!=="sticker"&&K.type!=="text"&&(0, R.jsx)("button",{type:"button",title:y("overlay.editSelected"),"aria-label":y("overlay.editSelected"),onClick:Rt,style:Ff(),children:(0, R.jsx)(hg,{})}),(0, R.jsx)("button",{type:"button",title:y("overlay.copySelected"),"aria-label":y("overlay.copySelected"),onClick:ou,style:Ff(),children:(0, R.jsx)(pg,{})}),(0, R.jsx)("button",{type:"button",title:y("overlay.delSelected"),"aria-label":y("overlay.delSelected"),onClick:On,style:Ff(),children:(0, R.jsx)(yg,{})})]}),G&&K.type==="text"&&(0, R.jsx)("textarea",{autoFocus:true,className:"me-video-overlay-text-editor",value:G.value,onChange:b=>{let M=b.target.value;kt(L=>L&&{...L,value:M}),Ml(L=>L.type==="text"?{...L,text:M}:L,"live");},onBlur:Be,onKeyDown:b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),b.target.blur()),b.key==="Escape"&&ei();},style:{...Xt.textEditorStyle,color:K.color,fontFamily:"inherit",fontSize:Math.max(12,K.fontSize*ie),lineHeight:1.15,outline:"none"}}),rl&&K.type!=="text"&&K.type!=="sticker"&&(0, R.jsxs)("div",{className:"me-video-overlay-style-popover",style:{...vg,...Xt.popoverCounterStyle,display:"flex",alignItems:"center",gap:8},children:[Cv.map(b=>(0, R.jsx)("button",{onClick:()=>vt(b),style:{width:18,height:18,borderRadius:"50%",background:b,outline:Gc(K)&&K.color===b?`2px solid ${T.accent}`:`1px solid ${T.border}`,outlineOffset:2,border:"none",cursor:"pointer"}},b)),$f(K)&&(0, R.jsx)("input",{type:"range",min:2,max:24,step:1,value:K.width,onChange:b=>he(Number(b.target.value),"live"),onPointerUp:()=>u(),style:{width:90}})]})]})]})})}),a==="annotate"?(0, R.jsxs)("div",{className:"me-video-fixed-controls me-video-overlay-controls",style:{position:"relative",zIndex:3,display:"flex",flexDirection:"column",alignItems:"center",gap:8,width:"100%"},children:[(0, R.jsxs)("div",{className:"me-video-overlay-style-row",style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",justifyContent:"center",fontSize:12,color:T.muted},children:[(0, R.jsx)("span",{style:{fontSize:11,color:T.muted},children:y("overlay.color")}),Cv.map(b=>(0, R.jsx)("button",{onClick:()=>zl(b),style:{width:20,height:20,borderRadius:"50%",background:b,outline:ll===b?`2px solid ${T.accent}`:`1px solid ${T.border}`,outlineOffset:2,border:"none",cursor:"pointer"}},b)),(0, R.jsx)("span",{style:{fontSize:11,marginLeft:8,color:T.muted},children:y("overlay.width")}),(0, R.jsx)("input",{type:"range",min:2,max:24,step:1,value:p,onChange:b=>pe(Number(b.target.value))})]}),(0, R.jsx)("div",{className:"me-video-overlay-tool-row",style:{display:"flex",alignItems:"center",gap:4,flexWrap:"wrap",justifyContent:"center"},children:dg.map(b=>(0, R.jsxs)("button",{onClick:()=>{B(b),Le(-1);},style:Rv(C===b),children:[(0, R.jsx)(wv,{id:b}),(0, R.jsx)("span",{children:y(`overlay.${b}`)})]},b))})]}):(0, R.jsxs)("div",{className:"me-video-fixed-controls me-video-sticker-controls",style:{position:"relative",zIndex:3,display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",justifyContent:"center",width:"100%"},children:[(0, R.jsxs)("button",{onClick:()=>O.current?.click(),style:Rv(false),children:[(0, R.jsx)(wv,{id:"pickImage"}),(0, R.jsx)("span",{children:y("overlay.pickImage")})]}),(0, R.jsx)("input",{ref:O,type:"file",accept:"image/*",style:{display:"none"},onChange:b=>{let M=b.target.files?.[0];if(b.target.value="",!!M){if(!M.type.startsWith("image/")){H(y("err.notImage"));return}H(""),sg(M).then(L=>dl(void 0,{src:L.dataUrl,w:L.w,h:L.h})).catch(L=>H(L.message));}}}),mg.map(b=>(0, R.jsx)("button",{onClick:()=>dl(b),style:{fontSize:24,lineHeight:1,padding:6,borderRadius:999,border:"none",background:"transparent",cursor:"pointer"},children:b},b)),(0, R.jsx)("span",{style:{width:"100%",textAlign:"center",fontSize:11,color:T.muted},children:y("overlay.hint")})]}),A&&(0, R.jsx)("div",{style:{padding:"6px 12px",borderRadius:6,fontSize:12,background:"rgba(239,68,68,0.12)",color:"#fca5a5"},children:A})]})}function Nv(t){return overlayBBox(t)}function Sg(t){let e=t%360;return e>180&&(e-=360),e<-180&&(e+=360),e}function xg(t,e){let a=Sg(t);return e.zeroSnapped?Math.abs(a)<=7?0:(e.zeroSnapped=false,t):Math.abs(a)<=2.5?(e.zeroSnapped=true,0):t}function Eg(t,e){let l=Nv(t),n=12/Math.max(e,.001),a=Math.max(l.w,n),i=Math.max(l.h,n),u=l.x-Math.max(0,a-l.w)/2,c=l.y-Math.max(0,i-l.h)/2,o=6,s=getOverlayRotation(t);return {bbox:{x:u,y:c,w:a,h:i},frameStyle:{position:"absolute",left:(u-o)*e,top:(c-o)*e,width:(a+o*2)*e,height:(i+o*2)*e,border:"1.5px dashed #7c7cf0",borderRadius:4,boxSizing:"border-box",pointerEvents:"none",zIndex:6,transform:s?`rotate(${s}deg)`:void 0,transformOrigin:"center"},handleStyle:{position:"absolute",width:20,height:20,right:-10,bottom:-10,borderRadius:999,background:"rgba(20,20,22,0.88)",border:"1.5px solid #7c7cf0",color:"#f4f4f7",boxShadow:"0 2px 8px rgba(0,0,0,0.32)",cursor:"nwse-resize",pointerEvents:"auto",touchAction:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",zIndex:10},rotateHandleStyle:{position:"absolute",width:20,height:20,right:-10,top:-10,borderRadius:999,background:"rgba(20,20,22,0.88)",border:"1.5px solid #7c7cf0",color:"#f4f4f7",boxShadow:"0 2px 8px rgba(0,0,0,0.32)",cursor:"grab",pointerEvents:"auto",touchAction:"none",display:"inline-flex",alignItems:"center",justifyContent:"center"},actionsStyle:{position:"absolute",top:-40,left:"50%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,pointerEvents:"auto",zIndex:9,transform:s?`translateX(-50%) rotate(${-s}deg)`:"translateX(-50%)",transformOrigin:"center bottom"},popoverCounterStyle:{transform:s?`rotate(${-s}deg)`:void 0,transformOrigin:"right top"},textEditorStyle:{position:"absolute",left:o*e,top:o*e,width:a*e,height:i*e,minWidth:40,minHeight:24,resize:"none",border:"1px solid rgba(124,124,240,0.7)",borderRadius:4,background:"rgba(20,20,22,0.22)",padding:2,boxSizing:"border-box",overflow:"hidden",pointerEvents:"auto",zIndex:11}}}function Gc(t){return t.type!=="sticker"}function $f(t){return t.type==="pen"||t.type==="line"||t.type==="arrow"||t.type==="rect"||t.type==="ellipse"}var kl=b(il(),1);var Jt=b(Ue(),1),uu=12;function _v(t){let e=Math.floor(t/60),l=t-e*60;return `${e}:${l.toFixed(2).padStart(5,"0")}`}function Pf({open:t,onClose:e,videoSrcs:l,clips:n,canvasDims:a,state:i,duration:u,sampleThumb:c,fileName:o,t:s}){let[y,S]=(0, kl.useState)(0),[h,g]=(0, kl.useState)(false),O=(0, kl.useRef)(new Map),[C,B]=(0, kl.useState)(null),[d,f]=(0, kl.useState)({w:2,h:2}),p=A=>{let H=O.current.get(A);return H||(H=document.createElement("video"),H.src=l[A]?.url??"",H.muted=true,H.playsInline=true,H.preload="auto",O.current.set(A,H)),H},x=A=>{let H=Math.min(Math.max(0,A),Math.max(0,u-.01));S(H);let V=locateOutput(n,H);if(!V)return;let X=n[V.idx].srcIdx,G=p(X);f(l[X]?.dims??{w:2,h:2}),B(G),G.readyState>=1?G.currentTime=V.srcTime:G.addEventListener("loadedmetadata",()=>{G.currentTime=V.srcTime;},{once:true});};if((0, kl.useEffect)(()=>(t&&x(y),()=>{t&&(O.current.forEach(A=>{try{A.pause(),A.removeAttribute("src"),A.load();}catch{}}),O.current.clear());}),[t]),!t)return null;let w=async()=>{if(!(!C||h)){g(true);try{let A=document.createElement("canvas"),H=await loadOverlayImages(i.overlays??[]);drawVideoFrame(A,C,d,a,i,1,H,!0);let V=await new Promise(kt=>A.toBlob(rl=>kt(rl),"image/jpeg",.92));if(!V)throw new Error(s("err.posterFailed"));let X=URL.createObjectURL(V),G=document.createElement("a");G.href=X,G.download=`${o}_poster.jpg`,document.body.appendChild(G),G.click(),G.remove(),setTimeout(()=>URL.revokeObjectURL(X),5e3),e();}finally{g(false);}}},Y={padding:"8px 16px",borderRadius:8,fontSize:13,border:"none",cursor:"pointer",background:T.chip,color:T.muted,font:"inherit"};return (0, Jt.jsx)("div",{style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",padding:24,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(4px)"},onClick:e,children:(0, Jt.jsxs)("div",{style:{borderRadius:16,padding:16,display:"flex",flexDirection:"column",gap:12,maxWidth:672,width:"100%",background:T.surface,border:`1px solid ${T.border}`},onClick:A=>A.stopPropagation(),children:[(0, Jt.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0, Jt.jsx)("span",{style:{fontSize:14,fontWeight:500,color:T.fg},children:s("poster.title")}),(0, Jt.jsxs)("span",{style:{marginLeft:8,fontSize:11,fontVariantNumeric:"tabular-nums",color:T.muted},children:[_v(y)," / ",_v(u)]}),(0, Jt.jsx)("div",{style:{flex:1}}),(0, Jt.jsx)("button",{onClick:e,style:{width:28,height:28,borderRadius:6,border:"none",background:"transparent",color:T.muted,cursor:"pointer"},children:"\u2715"})]}),(0, Jt.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0, Jt.jsx)(iu,{videoEl:C,srcDims:d,canvasDims:a,state:i,maxW:620,maxH:340})}),(0, Jt.jsx)("div",{style:{display:"flex",borderRadius:8,overflow:"hidden",height:44},children:Array.from({length:uu},(A,H)=>{let V=(H+.5)*(u/uu),X=Math.abs(y-V)<u/uu/2,G=c(V);return G?(0, Jt.jsx)("img",{src:G,alt:"",onClick:()=>x(V),style:{height:"100%",objectFit:"cover",cursor:"pointer",width:`${100/uu}%`,outline:X?`2px solid ${T.accent}`:"none",outlineOffset:-2},draggable:false},H):(0, Jt.jsx)("span",{style:{height:"100%",width:`${100/uu}%`,background:T.chip},onClick:()=>x(V)},H)})}),(0, Jt.jsx)("input",{type:"range",min:0,max:Math.max(.1,u),step:.05,value:y,onChange:A=>x(Number(A.target.value)),style:{width:"100%"}}),(0, Jt.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0, Jt.jsx)("button",{onClick:e,style:Y,children:s("act.cancel")}),(0, Jt.jsx)("button",{onClick:w,disabled:h,style:{padding:"8px 20px",borderRadius:8,fontSize:13,fontWeight:500,border:"none",cursor:"pointer",background:T.accent,color:T.accentFg,opacity:h?.6:1},children:s(h?"act.exporting":"act.exportPoster")})]})]})})}var v=b(Ue(),1),Hg=t=>Math.min(96,Math.max(12,Math.ceil(t/.5))),Ug=4,Lg=240,Vg=80,Bg=[.5,1,2,5,10,15,30,60],es=10,ls=500,Vv=[50,100,200],Yg=["trim","crop","filter","annotate","sticker","resize"];function Bv(t){return JSON.parse(JSON.stringify(t))}function Wc(t){let e=Math.floor(t/60),l=t-e*60;return `${e}:${l.toFixed(1).padStart(4,"0")}`}function Xg(t,e){if(e<1)return Wc(t);let l=Math.floor(t/60),n=Math.round(t-l*60);return `${l}:${String(n).padStart(2,"0")}`}function kc(t){return Math.min(ls,Math.max(es,Math.round(t)))}function jg(t,e,l=Hg(e)){return new Promise(n=>{let a=document.createElement("video");a.src=t,a.muted=true,a.preload="auto";let i=128,u=72,c=document.createElement("canvas");c.width=i,c.height=u;let o=c.getContext("2d");if(!o)return n([]);let s=[],y=0,S=()=>{if(y>=l)return n(s);a.currentTime=Math.min(Math.max(0,e-.05),(y+.5)*(e/l));};a.onseeked=()=>{let h=a.videoWidth/a.videoHeight||1,g=i/u,O=a.videoWidth,C=a.videoHeight,B=0,d=0;h>g?(O=a.videoHeight*g,B=(a.videoWidth-O)/2):(C=a.videoWidth/g,d=(a.videoHeight-C)/2),o.drawImage(a,B,d,O,C,0,0,i,u),s.push(c.toDataURL("image/jpeg",.5)),y++,S();},a.onloadedmetadata=S,a.onerror=()=>n(s);})}var Gg=t=>({width:"var(--me-editor-tool-button-width, 72px)",minHeight:"var(--me-editor-tool-button-height, 66px)",padding:"8px 0",borderRadius:"var(--me-editor-tool-button-radius, 8px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--me-editor-tool-button-gap, 6px)",background:t?"color-mix(in srgb, var(--me-accent, #7c7cf0) 16%, transparent)":"transparent",color:t?"var(--me-accent, #7c7cf0)":T.muted,border:"1px solid transparent",boxSizing:"border-box",cursor:"pointer",font:"inherit"}),Zg={width:"var(--me-editor-tool-icon-size, 20px)",height:"var(--me-editor-tool-icon-size, 20px)",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1},Qg={fontSize:"var(--me-editor-tool-label-size, 12px)",lineHeight:1.2},Lt={background:T.surface,color:T.fg,border:"none",borderRadius:6,cursor:"pointer",font:"inherit"};function Pn({children:t,viewBox:e="0 0 24 24"}){return (0, v.jsx)("svg",{className:"me-video-tool-icon",viewBox:e,"aria-hidden":"true",focusable:"false",children:t})}function Fc({children:t,viewBox:e="0 0 24 24"}){return (0, v.jsx)("svg",{className:"me-video-history-icon",viewBox:e,"aria-hidden":"true",focusable:"false",children:t})}function Kg(){return (0, v.jsxs)(Fc,{viewBox:"0 0 1024 1024",children:[(0, v.jsx)("path",{d:"M495.7 313.1c-16.6 0-30 13.4-30 30v182.6c0 3.3 0.5 6.4 1.5 9.3 2.1 14.5 14.6 25.7 29.7 25.7h182.6c16.6 0 30-13.4 30-30s-13.4-30-30-30H525.7V343.1c0-16.6-13.4-30-30-30z",fill:"currentColor",stroke:"none"}),(0, v.jsx)("path",{d:"M857.3 366.1c-18.9-44.6-45.9-84.7-80.3-119.1-34.4-34.4-74.5-61.4-119.1-80.3-46.2-19.5-95.3-29.5-145.9-29.5-44.8 0-88.7 7.8-130.3 23.3-40.3 14.9-77.4 36.6-110.4 64.3-47.2 39.6-83.8 90.2-106.6 146.6l-16.1-30c-7.8-14.6-26-20.1-40.6-12.2-14.6 7.8-20.1 26-12.2 40.6l51.1 95.1c0.3 0.6 0.7 1.2 1.1 1.8 0.2 0.4 0.5 0.7 0.7 1.1 0.1 0.2 0.3 0.4 0.4 0.7 5.8 7.9 14.8 12.2 24.2 12.2 4.8 0 9.7-1.2 14.2-3.6 0 0 0.1 0 0.1-0.1l95-51c14.6-7.8 20.1-26 12.2-40.6-7.8-14.6-26-20.1-40.6-12.2l-32.5 17.5c19.3-46.1 49.5-87.4 88.3-120 27.7-23.3 58.9-41.4 92.7-54 35-13 71.8-19.5 109.5-19.5 84.1 0 163.1 32.7 222.5 92.2s92.2 138.5 92.2 222.5-32.9 163.2-92.4 222.6-138.4 92.2-222.5 92.2-163.1-32.7-222.5-92.2c-11.7-11.7-30.7-11.7-42.4 0s-11.7 30.7 0 42.4c34.4 34.4 74.5 61.4 119.1 80.3 46.2 19.5 95.3 29.5 145.9 29.5s99.7-9.9 145.9-29.5c44.6-18.9 84.7-45.9 119.1-80.3 34.4-34.4 61.4-74.5 80.3-119.1 19.5-46.2 29.5-95.3 29.5-145.9s-10.1-99.5-29.6-145.8z",fill:"currentColor",stroke:"none"})]})}function Jg(){return (0, v.jsxs)(Fc,{children:[(0, v.jsx)("path",{d:"M9 7H5v4"}),(0, v.jsx)("path",{d:"M5.4 10.5a7 7 0 0 1 11.9-2.7 7 7 0 0 1 0 8.4"})]})}function kg(){return (0, v.jsxs)(Fc,{children:[(0, v.jsx)("path",{d:"M15 7h4v4"}),(0, v.jsx)("path",{d:"M18.6 10.5A7 7 0 0 0 6.7 7.8a7 7 0 0 0 0 8.4"})]})}function Wg(){return (0, v.jsx)(Fc,{children:(0, v.jsx)("path",{d:"M6 4l12 8-6 1.5L9 20 6 4z"})})}function Fg({open:t}){return (0, v.jsx)("svg",{className:"me-video-preview-caret",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",style:{width:14,height:14,transform:t?"rotate(180deg)":void 0},children:(0, v.jsx)("path",{d:"M4 6l4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Yv({dir:t}){return (0, v.jsx)("svg",{viewBox:"0 0 12 12",width:12,height:12,"aria-hidden":"true",focusable:"false",style:{display:"block",transform:t==="down"?"rotate(180deg)":void 0},children:(0, v.jsx)("path",{d:"M3 7l3-3 3 3",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}function $g({id:t}){switch(t){case "trim":return (0, v.jsx)(Pn,{viewBox:"0 0 1024 1024",children:(0, v.jsx)("path",{d:"M870.912 769.264941a26.352941 26.352941 0 0 1-23.070118 26.142118l-3.312941 0.210823h-228.382117a26.352941 26.352941 0 0 1-3.312942-52.525176l3.312942-0.180706 43.911529-0.030118V655.058824h-43.911529a26.352941 26.352941 0 0 1-3.312942-52.495059l3.312942-0.210824h202.029176v-193.264941h-202.029176a26.352941 26.352941 0 0 1-3.312942-52.495059l3.312942-0.210823h43.911529V268.528941h-43.911529a26.352941 26.352941 0 0 1-3.312942-52.495059l3.312942-0.180706h228.412235c13.432471 0 24.515765 10.029176 26.142117 23.04l0.210824 3.312942v527.058823z m-52.705882-114.206117h-105.411765v87.823058h105.411765V655.058824z m0-386.529883h-105.411765v87.853177h105.411765V268.528941zM150.588235 242.206118c0-13.432471 10.059294-24.545882 23.04-26.172236l3.312941-0.180706h228.382118a26.352941 26.352941 0 0 1 3.312941 52.495059l-3.312941 0.210824L361.411765 268.528941v87.853177h43.971764a26.352941 26.352941 0 0 1 3.312942 52.525176l-3.312942 0.180706h-202.089411V602.352941h202.089411a26.352941 26.352941 0 0 1 3.312942 52.495059l-3.312942 0.210824h-43.971764v87.823058h43.971764a26.352941 26.352941 0 0 1 3.312942 52.525177l-3.312942 0.210823H176.911059a26.352941 26.352941 0 0 1-26.142118-23.070117L150.588235 769.234824v-527.058824z m158.117647 412.852706h-105.411764v87.823058h105.411764V655.058824z m0-386.529883h-105.411764v87.853177h105.411764V268.528941zM510.735059 180.705882c13.432471 0 24.545882 10.059294 26.172235 23.04l0.180706 3.312942v70.26447a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941V207.058824c0-14.546824 11.806118-26.352941 26.352941-26.352942zM510.735059 356.382118c13.432471 0 24.545882 10.059294 26.172235 23.070117l0.180706 3.312941v70.264471a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941v-70.294588c0-14.546824 11.806118-26.352941 26.352941-26.352941zM510.735059 532.088471c13.432471 0 24.545882 10.029176 26.172235 23.04l0.180706 3.312941v70.26447a26.352941 26.352941 0 0 1-52.495059 3.312942l-0.210823-3.312942v-70.26447c0-14.576941 11.806118-26.352941 26.352941-26.352941zM510.735059 707.764706c13.432471 0 24.545882 10.059294 26.172235 23.04l0.180706 3.312941v70.264471a26.352941 26.352941 0 0 1-52.495059 3.312941l-0.210823-3.312941v-70.264471c0-14.546824 11.806118-26.352941 26.352941-26.352941z",fill:"currentColor",stroke:"none"})});case "crop":return (0, v.jsxs)(Pn,{children:[(0, v.jsx)("path",{d:"M7 3v14a4 4 0 0 0 4 4h10"}),(0, v.jsx)("path",{d:"M3 7h14a4 4 0 0 1 4 4v10"})]});case "filter":return (0, v.jsxs)(Pn,{children:[(0, v.jsx)("circle",{cx:"8.5",cy:"8.5",r:"4.2"}),(0, v.jsx)("circle",{cx:"15.5",cy:"8.5",r:"4.2"}),(0, v.jsx)("circle",{cx:"12",cy:"15.5",r:"4.2"})]});case "annotate":return (0, v.jsxs)(Pn,{children:[(0, v.jsx)("path",{d:"M4 20l4.6-1 9.8-9.8a2.1 2.1 0 0 0-3-3L5.6 16 4 20z"}),(0, v.jsx)("path",{d:"M13.8 7.8l2.4 2.4"})]});case "sticker":return (0, v.jsxs)(Pn,{children:[(0, v.jsx)("path",{d:"M6 5h12v8.5L13.5 18H6V5z"}),(0, v.jsx)("path",{d:"M13.5 18v-4.5H18"}),(0, v.jsx)("path",{d:"M9 9h.01"}),(0, v.jsx)("path",{d:"M13 9h.01"}),(0, v.jsx)("path",{d:"M9 12.5c1.4 1 2.6 1 4 0"})]});case "resize":return (0, v.jsxs)(Pn,{children:[(0, v.jsx)("path",{d:"M4 9V4h5"}),(0, v.jsx)("path",{d:"M20 15v5h-5"}),(0, v.jsx)("path",{d:"M4 4l6 6"}),(0, v.jsx)("path",{d:"M20 20l-6-6"})]})}}function ns({engine:t,client:e,source:l,t:n,onExported:a,onError:i,maxVideos:u=6,maxAudios:c=3}){let o=pv(t),s=yv(t),y=gv(t),S=(0, U.useRef)(null),h=(0, U.useRef)(null),g=(0, U.useRef)(null),O=(0, U.useRef)(null),C=(0, U.useRef)({x:.5,y:.5}),B=(0, U.useRef)(null),d=(0, U.useRef)(null),f=(0, U.useRef)(null),p=(0, U.useRef)(null),x=(0, U.useRef)(false),w=(0, U.useRef)(null),Y=(0, U.useRef)(null),[A,H]=(0, U.useState)([]),[V,X]=(0, U.useState)([]),[G,kt]=(0, U.useState)(0),[rl,Me]=(0, U.useState)(false),[Ct,de]=(0, U.useState)(0),[k,fl]=(0, U.useState)("trim"),[Ie,me]=(0, U.useState)({width:0,height:0}),[sl,Le]=(0, U.useState)(false),[At,Ia]=(0, U.useState)("brightness"),[An,Pe]=(0, U.useState)(""),[El,ie]=(0, U.useState)("fit"),[D,q]=(0, U.useState)(false),[Tt,Q]=(0, U.useState)("100"),[K,Xt]=(0, U.useState)(true),[rt,mt]=(0, U.useState)(""),[Wt,Ve]=(0, U.useState)(false),[ve,tl]=(0, U.useState)(false),[ta,ue]=(0, U.useState)(""),[Pa,ti]=(0, U.useState)(""),[el,dl]=(0, U.useState)(null),[Tl,Ml]=(0, U.useState)(null),[ou,On]=(0, U.useState)(null),[Rt,ei]=(0, U.useState)(60),Be=(0, U.useRef)(60);Be.current=Rt;let vt=(0, U.useRef)([]),he=(0, U.useRef)([]),zl=(0, U.useRef)(o),pe=(0, U.useRef)(false),ll=(0, U.useRef)(0),b=(0, U.useRef)(0),M=(0, U.useRef)(null),L=(0, U.useRef)(false),F=(0, U.useRef)(null),Nt=(0, U.useRef)(0),ht=(0, U.useRef)([]),nl=(0, U.useRef)(null),ce=(0, U.useRef)(()=>{});zl.current=o;let yt=o.clips,le=(0, U.useRef)(yt);le.current=yt;let Wl=totalDuration(yt),Ye=o.canvas,ml=o.audioClips??[],al=contentDuration(yt,ml),Ot=A.length>0&&yt.length>0,is=A[yt[Ct]?.srcIdx]??A[0]??null,$c=is?.el??null,Ic=is?.dims??{w:2,h:2},Cn=r=>{b.current=r,de(m=>m===r?m:r);},Xv=r=>{fl(r);},us=r=>{p.current==null&&(p.current=Bv(r),Le(true));};(0, U.useLayoutEffect)(()=>{let r=h.current;if(!r)return;let m=0,E=()=>{m=0;let I=r.getBoundingClientRect(),j=window.getComputedStyle(r),$=parseFloat(j.paddingLeft||"0")+parseFloat(j.paddingRight||"0"),nt=parseFloat(j.paddingTop||"0")+parseFloat(j.paddingBottom||"0"),qe=Math.max(0,Math.floor(I.width-$)),Ol=Math.max(0,Math.floor(I.height-nt));if(qe<=0||Ol<=0){let pe=r.closest(".me-video-workspace");if(pe){let he=window.getComputedStyle(pe),ge=pe.getBoundingClientRect(),ve=parseFloat(he.paddingLeft||"0")+parseFloat(he.paddingRight||"0"),xe=parseFloat(he.paddingTop||"0")+parseFloat(he.paddingBottom||"0"),ye=parseFloat(he.columnGap||he.gap||"0")||0,be=pe.querySelector(".me-video-toolrail"),Se=pe.querySelector(".me-video-inspector-rail"),Re=pe.querySelector(".me-video-trim-panel"),Te=be?be.getBoundingClientRect():null,we=Se&&!Se.hidden?Se.getBoundingClientRect():null,ze=Re?Re.getBoundingClientRect():null,De=Te&&Te.width>0?Te.width:0,Ne=we&&we.width>0&&we.height>0?we.width:0,Oe=ze&&ze.height>0?ze.height:0,Ue=De>0?ye:0,He=Ne>0?ye:0,Me=Oe>0?(parseFloat(he.rowGap||he.gap||"0")||0):0;qe=qe>0?qe:Math.max(0,Math.floor(ge.width-ve-De-Ne-Ue-He)),Ol=Ol>0?Ol:Math.max(0,Math.floor(ge.height-xe-Oe-Me));}}me(ne=>{return ne.width===qe&&ne.height===Ol?ne:{width:qe,height:Ol}});},_=()=>{m||(m=requestAnimationFrame(E));},N=new ResizeObserver(_),F=r.closest(".me-video-workspace"),P=F?F.querySelector(".me-video-toolrail"):null,L=F?F.querySelector(".me-video-inspector-rail"):null,R=F?F.querySelector(".me-video-trim-panel"):null,M=typeof MutationObserver=="function"&&F?new MutationObserver(_):null;return N.observe(r),F&&F!==r&&N.observe(F),P&&P!==r&&N.observe(P),L&&L!==r&&N.observe(L),R&&R!==r&&N.observe(R),M&&M.observe(F,{childList:true,subtree:true}),_(),()=>{m&&cancelAnimationFrame(m),M&&M.disconnect(),N.disconnect();}},[]),(0, U.useEffect)(()=>{if(!D)return;let r=m=>{O.current?.contains(m.target)||q(false);};return window.addEventListener("pointerdown",r),()=>window.removeEventListener("pointerdown",r)},[D]);let Pc=r=>{if(!r.type.startsWith("video/")){ue(n("err.notVideo"));return}if(vt.current.length>=u){ue(n("err.maxVideo",{max:u}));return}ue("");let m=URL.createObjectURL(r);ht.current.push(m);let E=document.createElement("video");E.src=m,E.muted=true,E.playsInline=true,E.preload="auto",E.style.display="none",S.current?.appendChild(E),E.addEventListener("loadedmetadata",()=>{let _={w:E.videoWidth,h:E.videoHeight},N=j=>{let $=t.registerVideoSource({duration:j,width:_.w,height:_.h});us(t.getState()),vt.current=(()=>{let nt=[...vt.current];return nt[$]={file:r,url:m,el:E,duration:j,dims:_,thumbs:[]},nt})(),H(vt.current),setTimeout(()=>ds(),0),jg(m,j).then(nt=>{vt.current=vt.current.map((ne,qe)=>qe===$?{...ne,thumbs:nt}:ne),H(vt.current);});};if(isFinite(E.duration)&&E.duration>0){N(E.duration);return}let I=()=>{isFinite(E.duration)&&E.duration>0&&(E.removeEventListener("durationchange",I),E.currentTime=0,N(E.duration));};E.addEventListener("durationchange",I),E.currentTime=1e7;},{once:true}),E.addEventListener("error",()=>ue(n("err.videoLoad")),{once:true});},jv=r=>{if(!r.type.startsWith("audio/")&&!r.type.startsWith("video/")){ue(n("err.notAudio"));return}if(he.current.length>=c){ue(n("err.maxAudio",{max:c}));return}ue("");let m=URL.createObjectURL(r);ht.current.push(m);let E=new Audio;E.src=m,E.preload="auto",E.addEventListener("loadedmetadata",()=>{let _=t.registerAudioSource({duration:E.duration});he.current=(()=>{let N=[...he.current];return N[_]={file:r,url:m,el:E,duration:E.duration},N})(),X(he.current);},{once:true}),E.addEventListener("error",()=>ue(n("err.audioLoad")),{once:true});},Gv=()=>{vt.current.forEach(r=>{r&&(r.el.pause(),r.el.remove());}),he.current.forEach(r=>r?.el.pause()),ht.current.forEach(r=>URL.revokeObjectURL(r)),ht.current=[],vt.current=[],he.current=[],pe.current=false,ll.current=0,b.current=0,L.current=false,M.current=null,F.current=null,Y.current=null,p.current=null,t.reset(defaultVideoEditState()),H([]),X([]),Me(false),kt(0),de(0),fl("trim"),Pe(""),ie("fit"),q(false),Q("100"),Le(false),ti(""),dl(null),Ml(null),On(null),Ve(false),mt(""),ue("");};(0, U.useEffect)(()=>{!l||nl.current===l||(nl.current=l,Gv(),Pc(l));},[l]),(0, U.useEffect)(()=>{let r=ht.current;return ()=>{vt.current.forEach(m=>m?.el.pause()),he.current.forEach(m=>m?.el.pause()),r.forEach(m=>URL.revokeObjectURL(m));}},[]),(0, U.useEffect)(()=>{let r=A[0]?.thumbs;r?.length&&ti(r[Math.floor(r.length/2)]);},[A]);let to=r=>vt.current[le.current[r]?.srcIdx],cs=()=>{if(L.current)return;let r=b.current,m=le.current[r],E=to(r);if(!m||!E)return;let _=Math.min(Math.max(E.el.currentTime-m.in,0),clipDuration(m)),N=clipStartsAt(le.current,r)+_;ll.current=N,kt(I=>Math.abs(I-N)>.004?N:I);},os=()=>{if(L.current)return;let r=le.current,m=b.current,E=r[m],_=to(m);if(!E||!_)return;let N=_.el;if(N.paused&&!N.ended)return;let I=N.currentTime;if(M.current!=null){let j=M.current;j.el===N&&Math.abs(I-j.t)<=.25&&(M.current=null);return}if(I>=E.out-.04){let j=r[m+1];if(j){let $=vt.current[j.srcIdx];if(!$)return;Cn(m+1),M.current={el:$.el,t:j.in},$.el===N?(N.currentTime=j.in,(N.ended||N.paused)&&N.play().catch(()=>{})):(N.muted=true,N.pause(),$.el.muted=!zl.current.keepAudio,$.el.currentTime=j.in,$.el.play().catch(()=>{}));}else {N.pause(),pe.current=false,Me(false);let $=r[0],nt=vt.current[$.srcIdx];Cn(0),nt&&(M.current={el:nt.el,t:$.in},nt.el.currentTime=$.in);}}else if(I>=E.out-1){let j=r[m+1];if(j){let $=vt.current[j.srcIdx];$&&$.el!==N&&$.el.paused&&Math.abs($.el.currentTime-j.in)>.2&&($.el.currentTime=j.in);}}},rs=()=>{let r=zl.current,m=le.current[b.current]?.srcIdx;vt.current.forEach((N,I)=>{if(!N)return;let j=!r.keepAudio||I!==m;N.el.muted!==j&&(N.el.muted=j);});let E=ll.current,_=pe.current&&!L.current;(r.audioClips??[]).forEach(N=>{let I=he.current[N.srcIdx];if(!I)return;let j=I.el,$=N.out-N.in;if(_&&E>=N.startAt&&E<N.startAt+$){let nt=N.in+(E-N.startAt);Math.abs(j.currentTime-nt)>.3&&(j.currentTime=nt),j.volume=Math.min(1,N.volume),j.paused&&j.play().catch(()=>{});}else j.paused||j.pause();});},eo=r=>{let m=le.current,E=Math.min(Math.max(0,r),totalDuration(m));ll.current=E,kt(E);let _=locateOutput(m,E);if(!_)return;let N=vt.current[m[_.idx].srcIdx];if(!N)return;vt.current.forEach(j=>{j&&j.el!==N.el&&(j.el.muted=true,j.el.paused||j.el.pause());}),N.el.muted=!zl.current.keepAudio,Cn(_.idx),M.current=null;let I=performance.now();I-Nt.current>60?(Nt.current=I,N.el.currentTime=_.srcTime,F.current=null):F.current={el:N.el,t:_.srcTime},ce.current();},lo=()=>{let r=le.current;if(!r.length)return;if(pe.current){to(b.current)?.el.pause(),he.current.forEach(N=>N?.el.pause()),pe.current=false,Me(false),ce.current();return}let m=ll.current;m>=totalDuration(r)-.05&&(m=0);let E=locateOutput(r,m);if(!E)return;let _=vt.current[r[E.idx].srcIdx];_&&(Cn(E.idx),M.current=null,_.el.muted=!zl.current.keepAudio,_.el.currentTime=E.srcTime,pe.current=true,Me(true),ce.current(),_.el.play().catch(()=>{pe.current=false,Me(false);}));};(0, U.useEffect)(()=>{let r=0,m=()=>{r=0,F.current!=null&&performance.now()-Nt.current>60&&(Nt.current=performance.now(),F.current.el.currentTime=F.current.t,F.current=null),cs(),pe.current&&os(),rs(),(pe.current||F.current)&&(r=requestAnimationFrame(m));};return ce.current=()=>{r||(r=requestAnimationFrame(m));},ce.current(),()=>{ce.current=()=>{},cancelAnimationFrame(r);}},[]),(0, U.useEffect)(()=>{let r=()=>{cs(),pe.current&&os(),rs();},m=A.map(E=>E?.el).filter(Boolean);return m.forEach(E=>{E.addEventListener("timeupdate",r),E.addEventListener("ended",r);}),()=>m.forEach(E=>{E.removeEventListener("timeupdate",r),E.removeEventListener("ended",r);})},[A]),(0, U.useEffect)(()=>{let r=locateOutput(yt,Math.min(ll.current,Math.max(0,totalDuration(yt)-.01)));Cn(r?r.idx:0),M.current=null,dl(m=>m!=null&&m>=(o.audioClips?.length??0)?null:m);},[yt,o.audioClips]),(0, U.useEffect)(()=>{p.current==null&&o.clips.length>0&&us(o);},[o]);let Rn=r=>{let m=d.current;return !m||Be.current<=0?0:Math.max(0,(r-m.getBoundingClientRect().left)/Be.current)},no=r=>Math.min(Lg,Math.max(Ug,r)),fs=(r,m,E)=>{let _=no(r);_!==Be.current&&(w.current={time:m,viewportX:E},Be.current=_,ei(_));},ss=r=>{let m=B.current;if(!m)return;let E=Be.current,_=ll.current*E,I=_>=m.scrollLeft&&_<=m.scrollLeft+m.clientWidth?ll.current:(m.scrollLeft+m.clientWidth/2)/E;fs(E*r,I,I*E-m.scrollLeft);},ds=()=>{let r=B.current,m=contentDuration(le.current,zl.current.audioClips??[]);if(!r||m<=0)return;let E=no(r.clientWidth/m);if(E===Be.current){r.scrollLeft=0;return}w.current={time:0,viewportX:0},Be.current=E,ei(E);};(0, U.useLayoutEffect)(()=>{if(x.current)return;let r=B.current;if(!r||al<=0)return;x.current=true;let m=no(r.clientWidth/al);Be.current=m,ei(m);},[Ot,k,al]),(0, U.useLayoutEffect)(()=>{let r=w.current;if(!r)return;w.current=null;let m=B.current;m&&(m.scrollLeft=Math.max(0,r.time*Rt-r.viewportX));},[Rt]),(0, U.useEffect)(()=>{let r=B.current;if(!r)return;let m=E=>{if(E.ctrlKey||E.metaKey){E.preventDefault();let _=E.clientX-r.getBoundingClientRect().left,N=Be.current;fs(N*Math.pow(1.0015,-E.deltaY),(r.scrollLeft+_)/N,_);}else Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(E.preventDefault(),r.scrollLeft+=E.deltaY);};return r.addEventListener("wheel",m,{passive:false}),()=>r.removeEventListener("wheel",m)},[Ot,k]),(0, U.useEffect)(()=>{if(!rl||L.current)return;let r=B.current;if(!r||r.scrollWidth<=r.clientWidth)return;let m=G*Rt;(m<r.scrollLeft+20||m>r.scrollLeft+r.clientWidth-60)&&(r.scrollLeft=Math.max(0,m-r.clientWidth*.3));},[G,rl,Rt]);let ms=r=>{let m=Y.current;if(!m)return;if(m.kind==="playhead"){eo(Rn(r.clientX));return}let E=Rn(r.clientX);if(m.kind==="clipIn"||m.kind==="clipOut"){let $=m.orig[m.idx],nt=vt.current[$.srcIdx],ne=nt?.duration??$.out,qe=$.in+(E-m.origStart);s({clips:trimClipEdge(m.orig,m.idx,m.kind==="clipIn"?"in":"out",qe,ne)}),nt&&(L.current=true,Cn(m.idx),nt.el.muted=true,nt.el.currentTime=Math.min(Math.max(qe,0),ne));return}let _=zl.current.audioClips??[],N=_[m.idx];if(!N)return;let I=he.current[N.srcIdx],j=totalDuration(le.current);if(m.kind==="audioMove")s({audioClips:_.map(($,nt)=>nt===m.idx?clampAudioClip({...N,startAt:m.origStartAt+(E-m.downT)},I?.duration??N.out,j):$)});else if(m.kind==="audioIn"){let $=E-m.downT,nt=clampAudioClip({...N,in:m.origIn+$,startAt:N.startAt+(Math.min(Math.max(m.origIn+$,0),N.out-.1)-N.in)},I?.duration??N.out,j);s({audioClips:_.map((ne,qe)=>qe===m.idx?nt:ne)});}else {let $=clampAudioClip({...N,out:m.origOut+(E-m.downT)},I?.duration??N.out,j);s({audioClips:_.map((nt,ne)=>ne===m.idx?$:nt)});}},vs=()=>{let r=Y.current&&Y.current.kind!=="playhead";Y.current=null,L.current=false,window.removeEventListener("pointermove",ms),window.removeEventListener("pointerup",vs),r&&y();},ea=r=>m=>{m.preventDefault(),m.stopPropagation(),Y.current=r,window.addEventListener("pointermove",ms),window.addEventListener("pointerup",vs),r.kind==="playhead"&&(L.current=true,eo(Rn(m.clientX)));},Zv=r=>m=>{m.preventDefault(),m.stopPropagation();let E=f.current,_=Array.from(E?.querySelectorAll("[data-clipblock]")??[]).map(Ol=>{let aa=Ol.getBoundingClientRect();return aa.left+aa.width/2}),N=m.clientX,I=performance.now(),j=r,$=r,nt=false;Cn(r),Ml(r),On(r);let ne=Ol=>{Math.abs(Ol.clientX-N)>4&&(nt=true);let aa=0,Es=1/0;_.forEach((lh,nh)=>{let Ts=Math.abs(Ol.clientX-lh);Ts<Es&&(Es=Ts,aa=nh);}),$=aa,On(aa);},qe=()=>{window.removeEventListener("pointermove",ne),window.removeEventListener("pointerup",qe),Ml(null),On(null),nt&&j!==$?(y({clips:reorderClips(t.getState().clips,j,$)}),Cn($)):Cn($);};window.addEventListener("pointermove",ne),window.addEventListener("pointerup",qe);},Qv=r=>{Pe(r);let m=VIDEO_RATIO_PRESETS.find(_=>_.ratio===r);if(!m||Ye.w<4){r||y({crop:void 0});return}let E=rotatedSize(Ye.w,Ye.h,o.rotation);y({crop:centeredMaxRect({w:E.w,h:E.h},m.value)});},Kv=async()=>{ue(""),mt(n("msg.processing")),Ve(true);try{let r=await buildVideoExportFormData(t,vt.current.map(I=>I?.file),he.current.map(I=>I?.file)),m=await e.exportVideo(r),E=new Date,_=[E.getHours(),E.getMinutes(),E.getSeconds()].map(I=>String(I).padStart(2,"0")).join(""),N=vt.current[0]?.file.name?.replace(/\.[^.]+$/,"")||"video";a?.(m,`${N}_edited_${_}.mp4`),Ve(!1),mt(n("msg.done")),setTimeout(()=>mt(""),1500);}catch(r){Ve(false),mt(""),ue(r.message),i?.(r);}},Jv=()=>{let r=p.current;if(!r)return;vt.current.forEach(N=>{N&&(N.el.pause(),N.el.muted=true);}),he.current.forEach(N=>N?.el.pause()),pe.current=false,Me(false),L.current=false,M.current=null,F.current=null,Y.current=null,dl(null),Ml(null),On(null),Pe(""),Ve(false),mt(""),ue("");let m=Bv(r);t.reset(m);let E=m.clips[0],_=E?vt.current[E.srcIdx]:null;Cn(0),ll.current=0,kt(0),_&&(_.el.currentTime=E?.in??0,_.el.muted=!m.keepAudio,ce.current());},kv=k==="crop"||k==="annotate"||k==="sticker",oe=outputSize(Ye,o),ru=Wl,Wv=Ie.width>0&&Ie.width<=520?k==="trim"||k==="filter"?150:k==="sticker"?132:k==="annotate"?116:k==="crop"?78:k==="resize"?82:k==="filter"?92:72:k==="trim"||k==="filter"?220:k==="resize"?116:k==="filter"?110:96,previewReserveH=h.current&&window.getComputedStyle(h.current).display==="contents"&&(k==="trim"||k==="filter")?0:Wv,dockReserveH=Ot&&!kv?76:0,li=Math.max(240,Ie.width),la=Math.max(160,Ie.height-previewReserveH-dockReserveH),ao=k==="crop"?rotatedSize(Ye.w,Ye.h,o.rotation):oe,fu=ao.w?Math.max(1,Math.round(Math.min(li/ao.w,la/ao.h,1)*100)):100,Al=El==="fit"?null:kc(El),hs=Math.max(2,Math.round(oe.w*(Al??fu)/100)),ps=Math.max(2,Math.round(oe.h*(Al??fu)/100)),ys=Al==null?"100%":Math.max(hs,li),gs=Math.max(ps,la),bs=Al??fu,wn=kc(bs),Fv=El==="fit"?`${n("act.fit")} ${fu}%`:`${bs}%`,$v=`${oe.w} x ${oe.h} px`,na=r=>{su(),ie(r==="fit"?"fit":kc(r));},Ss=r=>{let m=kc(r);Q(String(m)),na(m);},Iv=()=>{let r=Number(Tt);if(!Number.isFinite(r)){Q(String(wn));return}Ss(r);},xs=r=>{let m=Number(Tt);Ss((Number.isFinite(m)?m:wn)+r);};(0, U.useEffect)(()=>{Q(String(wn));},[wn]),(0, U.useEffect)(()=>{if(!Ot)return;let r=m=>{if(m.defaultPrevented||!m.shiftKey||m.metaKey||m.ctrlKey||m.altKey)return;let E=m.target,_=E?.tagName?.toLowerCase();if(_==="input"||_==="textarea"||_==="select"||E?.isContentEditable)return;let N=m.key.toLowerCase();if(N==="f"){m.preventDefault(),na("fit"),q(false);return}let I=Number(N)-1,j=Vv[I];j!=null&&(m.preventDefault(),na(j),q(false));};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[Ot,wn]);let su=()=>{let r=g.current;r&&(C.current={x:r.scrollWidth>r.clientWidth?(r.scrollLeft+r.clientWidth/2)/r.scrollWidth:.5,y:r.scrollHeight>r.clientHeight?(r.scrollTop+r.clientHeight/2)/r.scrollHeight:.5});};(0, U.useEffect)(()=>{let r=g.current;if(r)return r.addEventListener("scroll",su,{passive:true}),()=>r.removeEventListener("scroll",su)},[Ot,k]),(0, U.useLayoutEffect)(()=>{let r=g.current;if(!r)return;let m=C.current,E=requestAnimationFrame(()=>{r.scrollLeft=Math.max(0,r.scrollWidth*m.x-r.clientWidth/2),r.scrollTop=Math.max(0,r.scrollHeight*m.y-r.clientHeight/2),su();});return ()=>cancelAnimationFrame(E)},[hs,ps,ys,gs]);let Pv=(0, U.useMemo)(()=>{if(!isFinite(al)||al<=0||Rt<=0)return [];let r=Bg.find(E=>E*Rt>=Vg)??60;for(;al/r>1500;)r*=2;let m=[];for(let E=0;E<=al+1e-6;E+=r)m.push({x:E*Rt,label:Xg(E,r)});return m},[al,Rt]),th=r=>{let m=A[r.srcIdx];if(!m?.thumbs.length||!m.duration)return [];let E=m.thumbs.length,_=m.duration/E,N=Math.max(1,Math.ceil(8/(_*Rt))),I=Math.max(0,Math.floor(r.in/_)),j=Math.min(E,Math.ceil(r.out/_)),$=[];for(let nt=I-I%N;nt<j;nt+=N)$.push({key:nt,src:m.thumbs[Math.min(E-1,nt)],left:(nt*_-r.in)*Rt,width:_*Rt*N+.5});return $},eh=r=>{let m=locateOutput(le.current,r);if(!m)return;let E=vt.current[le.current[m.idx].srcIdx];if(!E?.thumbs.length||!E.duration)return;let _=Math.min(E.thumbs.length-1,Math.max(0,Math.floor(m.srcTime/E.duration*E.thumbs.length)));return E.thumbs[_]};return (0, v.jsxs)("div",{className:"me-video-editor",style:{position:"relative",height:"100%",minHeight:0,display:"flex",flexDirection:"column",borderRadius:12,overflow:"hidden",background:T.bg,border:`1px solid ${T.border}`,color:T.fg,fontSize:13,fontFamily:'-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif',lineHeight:1.4},children:[(0, v.jsxs)("div",{className:"me-video-topbar",style:{position:"relative",zIndex:30,overflow:"visible",display:"flex",alignItems:"center",padding:"8px 12px",borderBottom:`1px solid ${T.border}`},children:[(0, v.jsxs)("div",{className:"me-video-history",style:{display:"flex",alignItems:"center",gap:4},children:[(0, v.jsx)("button",{onClick:Jv,disabled:!sl,style:{...Lt,width:32,height:32,background:"transparent",color:T.muted,opacity:sl?1:.4,display:"inline-flex",alignItems:"center",justifyContent:"center"},title:n("tip.resetOpened"),children:(0, v.jsx)(Kg,{})}),(0, v.jsx)("button",{onClick:()=>t.undo(),disabled:!t.canUndo(),style:{...Lt,width:32,height:32,background:"transparent",color:T.muted,opacity:t.canUndo()?1:.4,display:"inline-flex",alignItems:"center",justifyContent:"center"},title:n("tip.undo"),children:(0, v.jsx)(Jg,{})}),(0, v.jsx)("button",{onClick:()=>t.redo(),disabled:!t.canRedo(),style:{...Lt,width:32,height:32,background:"transparent",color:T.muted,opacity:t.canRedo()?1:.4,display:"inline-flex",alignItems:"center",justifyContent:"center"},title:n("tip.redo"),children:(0, v.jsx)(kg,{})})]}),(0, v.jsxs)("div",{className:"me-video-preview-zoom",style:{position:"absolute",zIndex:80,left:"50%",transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:6,color:T.muted,fontSize:12},children:[(0, v.jsx)("span",{className:"me-video-preview-resolution",style:{minWidth:106,textAlign:"right",color:T.muted,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},children:Ot?$v:"-- x -- px"}),(0, v.jsx)("button",{type:"button",className:"me-video-preview-tool-button is-active",disabled:!Ot,title:n("tip.previewPointer"),"aria-label":n("tip.previewPointer"),style:{...Lt,width:32,height:32,borderRadius:10,background:"color-mix(in srgb, var(--me-accent, #7c7cf0) 16%, transparent)",color:T.accent,opacity:Ot?1:.45,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0},children:(0, v.jsx)(Wg,{})})]}),(0, v.jsx)("div",{style:{flex:1}}),(0, v.jsx)("button",{className:"me-video-poster",onClick:()=>{pe.current&&lo(),tl(true);},disabled:!Ot,style:{...Lt,padding:"6px 12px",background:T.chip,color:T.muted,marginRight:8,opacity:Ot?1:.4},title:n("tip.poster"),children:n("act.poster")}),(0, v.jsx)("button",{className:"me-video-done",onClick:Kv,disabled:Wt||!!rt||!Ot,style:{padding:"6px 20px",borderRadius:8,fontSize:13,fontWeight:600,border:"none",cursor:"pointer",background:"var(--me-video-done-bg, var(--me-accent,#5b5bd6))",color:"var(--me-video-done-fg, var(--me-accent-fg,#fff))",opacity:Wt||rt||!Ot?.6:1},children:Wt?n("act.exporting"):n("act.exportPoster").replace("\u5C01\u9762","").replace(/\s*cover/i,"").trim()||"Done"})]}),(0, v.jsxs)("div",{className:"me-video-workspace",style:{flex:"1 1 0",minHeight:0,display:"flex",alignItems:"stretch",gap:8,padding:12},children:[(0, v.jsx)("div",{className:"me-video-toolrail",style:{position:"relative",zIndex:20,display:"flex",flexDirection:"column",gap:6,flexShrink:0},children:Yg.map(r=>(0, v.jsxs)("button",{className:k===r?"is-active":void 0,onClick:()=>Xv(r),style:Gg(k===r),children:[(0, v.jsx)("span",{style:Zg,children:(0, v.jsx)($g,{id:r})}),(0, v.jsx)("span",{style:Qg,children:n(`tool.${r}`)})]},r))}),(0, v.jsxs)("div",{ref:h,className:"me-video-main",style:{position:"relative",zIndex:1,overflow:"hidden",flex:1,minWidth:0,minHeight:0,boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0, v.jsx)("div",{ref:S,style:{display:"none"}}),!Ot&&(0, v.jsxs)("label",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:8,height:320,color:T.muted,cursor:"pointer"},children:[(0, v.jsx)("span",{style:{fontSize:32},children:"\u{1F3AC}"}),(0, v.jsx)("span",{style:{...Lt,background:T.accent,color:T.accentFg,padding:"8px 16px"},children:n("panel.pick")}),(0, v.jsx)("input",{type:"file",accept:"video/*",style:{display:"none"},onChange:r=>{let m=r.target.files?.[0];m&&Pc(m),r.target.value="";}})]}),Ot&&!kv&&(0, v.jsxs)("div",{className:"me-video-preview-shell",style:{width:"100%",flex:"1 1 auto",minHeight:0,display:"flex",flexDirection:"column",alignItems:"stretch",gap:12},children:[(0, v.jsx)("div",{ref:g,className:"me-video-preview-scroll me-video-canvas-scroll",style:{position:"relative",zIndex:0,flex:"1 1 auto",minHeight:0,width:"100%",maxWidth:"100%",maxHeight:la,overflow:"auto",overscrollBehavior:"contain",padding:"14px 16px 10px",boxSizing:"border-box",background:"var(--me-surface)",borderRadius:18},children:(0, v.jsx)("div",{className:"me-video-canvas-stage",style:{position:"relative",width:ys,minWidth:"100%",minHeight:gs,display:"grid",placeItems:"center"},children:(0, v.jsx)(iu,{videoEl:$c,srcDims:Ic,canvasDims:Ye,state:o,maxW:li,maxH:la,zoomPercent:Al,onClick:k==="trim"?lo:void 0})})}),(0, v.jsxs)("div",{className:"me-video-preview-footer",style:{flexShrink:0,minHeight:58,padding:"0 14px",borderRadius:16,background:"var(--me-surface)",boxShadow:"0 12px 30px rgba(0,0,0,0.12)",display:"grid",gridTemplateColumns:"minmax(0,1fr) auto minmax(0,1fr)",alignItems:"center",gap:12,color:T.fg},children:[(0, v.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0,fontSize:13,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",overflow:"hidden"},children:[(0, v.jsx)("span",{style:{color:"#00c8ff",fontWeight:600},children:Wc(G)}),(0, v.jsx)("span",{style:{color:T.muted},children:`/ ${Wc(Wl)}`})]}),(0, v.jsx)("button",{type:"button",onClick:lo,disabled:!Ot,style:{...Lt,width:38,height:38,borderRadius:999,background:"color-mix(in srgb, var(--me-fg, #ededf0) 8%, transparent)",color:T.fg,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,opacity:Ot?1:.45},children:rl?"⏸":"▶"}),(0, v.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0, v.jsxs)("div",{className:"me-video-preview-zoom-menu",ref:O,style:{position:"relative"},children:[(0, v.jsxs)("button",{type:"button",onClick:()=>q(r=>!r),disabled:!Ot,title:n("tip.previewZoom"),"aria-label":n("tip.previewZoom"),style:{...Lt,minWidth:112,height:38,padding:"0 10px 0 14px",borderRadius:12,background:"color-mix(in srgb, var(--me-fg, #ededf0) 8%, transparent)",color:Ot?T.fg:T.muted,opacity:Ot?1:.45,display:"inline-flex",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:13,lineHeight:1},children:[(0, v.jsx)("span",{children:Fv}),(0, v.jsx)(Fg,{open:D})]}),D&&(0, v.jsxs)("div",{className:"me-video-preview-zoom-popover",style:{position:"absolute",right:0,bottom:50,zIndex:4e3,width:300,padding:14,borderRadius:12,border:`1px solid ${T.border}`,background:"var(--me-surface)",boxShadow:"0 16px 42px rgba(0,0,0,0.18)",color:T.fg},children:[(0, v.jsx)("div",{style:{color:T.muted,fontSize:12,marginBottom:10},children:n("lbl.zoomSize")}),(0, v.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) 112px",gap:12,alignItems:"center"},children:[(0, v.jsx)("input",{className:"me-video-preview-zoom-slider",type:"range",min:es,max:ls,step:1,value:wn,onChange:r=>na(Number(r.target.value)),"aria-label":n("tip.previewZoom"),style:{width:"100%",minWidth:0}}),(0, v.jsxs)("span",{className:"me-video-preview-zoom-number",style:{height:34,borderRadius:9,background:T.chip,display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto 22px",alignItems:"center",overflow:"hidden",fontVariantNumeric:"tabular-nums",color:T.fg},children:[(0, v.jsx)("input",{className:"me-video-preview-zoom-input",type:"number",min:es,max:ls,step:1,value:Tt,onChange:r=>Q(r.target.value.replace(/[^\d.]/g,"")),onBlur:Iv,onKeyDown:r=>{r.key==="Enter"&&r.currentTarget.blur(),r.key==="Escape"&&(Q(String(wn)),r.currentTarget.blur());},"aria-label":n("tip.previewZoom"),style:{width:"100%",minWidth:0,height:"100%",padding:"0 0 0 10px",border:0,outline:0,background:"transparent",color:T.fg,font:"inherit",fontSize:13,textAlign:"right",fontVariantNumeric:"tabular-nums"}}),(0, v.jsx)("span",{style:{padding:"0 4px 0 1px",fontSize:13},children:"%"}),(0, v.jsxs)("span",{className:"me-video-preview-zoom-stepper",style:{width:22,height:"100%",display:"grid",gridTemplateRows:"1fr 1fr",borderLeft:`1px solid ${T.border}`},children:[(0, v.jsx)("button",{type:"button",onClick:()=>xs(1),"aria-label":n("tip.zoomIn"),style:{...Lt,width:22,height:17,minHeight:0,padding:0,borderRadius:0,background:"transparent",color:T.muted,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0, v.jsx)(Yv,{dir:"up"})}),(0, v.jsx)("button",{type:"button",onClick:()=>xs(-1),"aria-label":n("tip.zoomOut"),style:{...Lt,width:22,height:17,minHeight:0,padding:0,borderRadius:0,background:"transparent",color:T.muted,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0, v.jsx)(Yv,{dir:"down"})})]})]})]}),(0, v.jsx)("div",{style:{height:1,background:T.border,margin:"14px 0 8px"}}),(0, v.jsxs)("button",{type:"button",className:"me-video-preview-zoom-shortcut",onClick:()=>{na("fit"),q(false);},style:{...Lt,width:"100%",height:32,justifyContent:"space-between",background:"transparent",color:T.fg,display:"flex",alignItems:"center",padding:"0 2px",fontSize:13},children:[(0, v.jsx)("span",{children:n("act.zoomFit")}),(0, v.jsx)("span",{style:{color:T.muted},children:n("kbd.fit")})]}),Vv.map((r,m)=>(0, v.jsxs)("button",{type:"button",className:"me-video-preview-zoom-shortcut",onClick:()=>{na(r),q(false);},style:{...Lt,width:"100%",height:32,justifyContent:"space-between",background:"transparent",color:T.fg,display:"flex",alignItems:"center",padding:"0 2px",fontSize:13},children:[(0, v.jsx)("span",{children:n("act.zoomTo",{value:r})}),(0, v.jsx)("span",{style:{color:T.muted},children:`⇧ ${m+1}`})]},r))]})]})})]})]}),Ot&&k==="crop"&&(0, v.jsx)(kf,{videoEl:$c,srcDims:Ic,canvasDims:Ye,state:o,patchLive:s,commit:y,ratioPreset:An,onRatioPreset:Qv,onConfirm:()=>fl("trim"),maxW:li,maxH:la,zoomPercent:Al,t:n}),Ot&&(k==="annotate"||k==="sticker")&&(0, v.jsx)(If,{videoEl:$c,srcDims:Ic,canvasDims:Ye,state:o,mode:k,patchLive:s,commit:y,maxW:li,maxH:la,zoomPercent:Al,t:n}),Ot&&(k==="trim"||k==="filter")&&(0, v.jsxs)("div",{className:"me-video-trim-panel",style:{width:"100%",marginTop:12},children:[(0, v.jsxs)("div",{className:"me-video-trim-actions",style:{position:"relative",display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 8px",borderRadius:8,background:T.chip},children:[(0, v.jsxs)("button",{className:"me-video-trim-action-btn",onClick:()=>t.splitAtPlayhead(G),style:{...Lt,padding:"0 14px",height:32,borderRadius:999,fontWeight:500},title:n("tip.split"),"aria-label":n("tip.split"),children:[(0, v.jsx)("span",{className:"me-video-trim-action-icon","aria-hidden":"true",children:"\u2702"}),(0, v.jsx)("span",{className:"me-video-trim-action-label",children:n("act.split")})]}),(0, v.jsxs)("button",{className:"me-video-trim-action-btn",onClick:()=>t.duplicateClip(Ct),disabled:!yt[Ct],style:{...Lt,padding:"0 14px",height:32,borderRadius:999,fontWeight:500,color:yt[Ct]?T.fg:T.muted,opacity:yt[Ct]?1:.5},title:n("tip.dupClip"),"aria-label":n("tip.dupClip"),children:[(0, v.jsx)("span",{className:"me-video-trim-action-icon","aria-hidden":"true",children:"\u29C9"}),(0, v.jsx)("span",{className:"me-video-trim-action-label",children:n("act.copy")})]}),(0, v.jsxs)("button",{className:"me-video-trim-action-btn",onClick:()=>t.removeClip(Ct),disabled:yt.length<=1,style:{...Lt,padding:"0 14px",height:32,borderRadius:999,fontWeight:500,color:yt.length<=1?T.muted:"#fca5a5",opacity:yt.length<=1?.5:1},title:n("tip.delClip"),"aria-label":n("tip.delClip"),children:[(0, v.jsx)("span",{className:"me-video-trim-action-icon","aria-hidden":"true",children:"\u{1F5D1}"}),(0, v.jsx)("span",{className:"me-video-trim-action-label",children:n("act.delete")})]}),(0, v.jsx)("span",{style:{flex:1}}),(0, v.jsxs)("div",{className:"me-video-timeline-zoom",style:{display:"flex",alignItems:"center",gap:4},children:[(0, v.jsx)("button",{onClick:()=>ss(1/1.4),style:{...Lt,width:24,height:24,color:T.muted},title:n("tip.zoomOut"),children:"\u2212"}),(0, v.jsx)("button",{onClick:ds,style:{...Lt,padding:"0 8px",height:24,fontSize:11,color:T.muted},title:n("tip.fit"),children:n("act.fit")}),(0, v.jsx)("button",{onClick:()=>ss(1.4),style:{...Lt,width:24,height:24,color:T.muted},title:n("tip.zoomIn"),children:"\uFF0B"})]})]}),(0, v.jsxs)("div",{className:"me-video-timeline-area",style:{display:"flex",alignItems:"flex-start",gap:4},children:[(0, v.jsxs)("div",{style:{flexShrink:0,display:"flex",flexDirection:"column",width:34},children:[(0, v.jsx)("div",{style:{height:22}}),(0, v.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:64,marginTop:4},children:(0, v.jsx)("button",{onClick:()=>t.setKeepAudio(!o.keepAudio),style:{...Lt,width:32,height:32,borderRadius:999,background:T.chip,opacity:o.keepAudio?1:.55},title:n("tip.keepAudio"),children:o.keepAudio?"\u{1F50A}":"\u{1F507}"})})]}),(0, v.jsx)("div",{ref:B,className:"me-video-timeline-scroll",style:{flex:1,minWidth:0,overflowX:"auto",overscrollBehaviorX:"contain"},children:(0, v.jsxs)("div",{ref:d,style:{position:"relative",width:al*Rt,minWidth:"100%"},children:[(0, v.jsxs)("div",{style:{position:"relative",height:22,cursor:"pointer",touchAction:"none"},onPointerDown:ea({kind:"playhead"}),children:[Pv.map(r=>(0, v.jsxs)("span",{children:[(0, v.jsx)("span",{style:{position:"absolute",bottom:2,width:1,height:6,left:r.x,background:T.border}}),(0, v.jsx)("span",{style:{position:"absolute",bottom:0,fontSize:11,fontVariantNumeric:"tabular-nums",left:r.x+3,color:T.muted},children:r.label})]},r.x)),ru>0&&(0, v.jsx)("span",{style:{position:"absolute",bottom:0,padding:"2px 6px",borderRadius:4,fontSize:11,fontVariantNumeric:"tabular-nums",fontWeight:500,whiteSpace:"nowrap",left:Math.min(Math.max(G*Rt,14),Math.max(14,ru*Rt-14)),transform:"translateX(-50%)",background:T.chip,border:`1px solid ${T.border}`,color:T.fg},children:Wc(G)})]}),(0, v.jsx)("div",{ref:f,style:{position:"relative",marginTop:4,borderRadius:8,overflow:"hidden",height:64,background:T.chip,cursor:"pointer"},onPointerDown:r=>{r.target===r.currentTarget&&ea({kind:"playhead"})(r);},children:yt.map((r,m)=>(0, v.jsxs)("div",{"data-clipblock":m,style:{position:"absolute",top:0,bottom:0,userSelect:"none",left:clipStartsAt(yt,m)*Rt,width:clipDuration(r)*Rt,cursor:Tl===m?"grabbing":"grab",opacity:Tl!==null&&Tl!==m?.72:(Ct===m?1:.82),transform:Ct===m?"translateY(-1px)":"none",zIndex:1,touchAction:"none"},onPointerDown:Zv(m),children:[(0, v.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden",borderRadius:6},children:th(r).map(E=>(0, v.jsx)("img",{src:E.src,alt:"",style:{position:"absolute",top:0,height:"100%",objectFit:"cover",left:E.left,width:E.width},draggable:false},E.key))}),(0, v.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"none",border:`${Ct===m?3:2}px solid ${Ct===m?"#fff":"rgba(255,255,255,0.18)"}`,borderRadius:6,boxShadow:Ct===m?"0 0 0 1px rgba(255,255,255,0.26),0 10px 22px rgba(0,0,0,0.28)":ou===m&&Tl!==null&&ou!==Tl?"inset 4px 0 0 #fff":"none"}}),(0, v.jsx)("span",{style:{position:"absolute",top:2,left:8,padding:"0 4px",height:16,borderRadius:999,fontSize:11,lineHeight:"16px",textAlign:"center",fontWeight:600,pointerEvents:"none",background:T.accent,color:T.accentFg},children:m+1}),(0, v.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:0,width:10,cursor:"ew-resize",background:T.accent,borderRadius:"6px 0 0 6px"},onPointerDown:ea({kind:"clipIn",idx:m,orig:yt,origStart:clipStartsAt(yt,m)}),children:(0, v.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",width:2,height:16,borderRadius:2,transform:"translate(-50%,-50%)",background:"rgba(255,255,255,0.85)"}})}),(0, v.jsx)("div",{style:{position:"absolute",top:0,bottom:0,right:0,width:10,cursor:"ew-resize",background:T.accent,borderRadius:"0 6px 6px 0"},onPointerDown:ea({kind:"clipOut",idx:m,orig:yt,origStart:clipStartsAt(yt,m)}),children:(0, v.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",width:2,height:16,borderRadius:2,transform:"translate(-50%,-50%)",background:"rgba(255,255,255,0.85)"}})})]},`clip-${m}`))}),(0, v.jsxs)("div",{style:{position:"relative",marginTop:4,borderRadius:8,height:28,background:T.chip,cursor:"pointer"},onPointerDown:r=>{r.target===r.currentTarget&&ea({kind:"playhead"})(r);},children:[ml.length===0&&(0, v.jsx)("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",paddingLeft:12,fontSize:11,color:T.muted,pointerEvents:"none"},children:n("lbl.audioTrackHint")}),ml.map((r,m)=>{let E=el===m;return (0, v.jsxs)("div",{style:{position:"absolute",top:2,bottom:2,borderRadius:4,userSelect:"none",left:r.startAt*Rt,width:Math.max(8,(r.out-r.in)*Rt),background:E?"rgba(52,211,153,0.5)":"rgba(52,211,153,0.3)",border:`1.5px solid ${T.green}`,cursor:"grab",touchAction:"none"},onPointerDown:_=>{dl(m),ea({kind:"audioMove",idx:m,origStartAt:r.startAt,downT:Rn(_.clientX)})(_);},children:[(0, v.jsxs)("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",paddingLeft:8,fontSize:11,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",pointerEvents:"none",color:"#d1fae5"},children:["\u266A ",V[r.srcIdx]?.file.name??n("lbl.music")]}),(0, v.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:0,width:6,cursor:"ew-resize",background:T.green,borderRadius:"3px 0 0 3px"},onPointerDown:_=>{dl(m),ea({kind:"audioIn",idx:m,origIn:r.in,downT:Rn(_.clientX)})(_);}}),(0, v.jsx)("div",{style:{position:"absolute",top:0,bottom:0,right:0,width:6,cursor:"ew-resize",background:T.green,borderRadius:"0 3px 3px 0"},onPointerDown:_=>{dl(m),ea({kind:"audioOut",idx:m,origOut:r.out,downT:Rn(_.clientX)})(_);}})]},`au-${m}`)})]}),ru>0&&(0, v.jsx)("div",{style:{position:"absolute",top:0,bottom:0,pointerEvents:"none",left:G*Rt-1,width:2,background:"#fff",boxShadow:"0 0 4px rgba(0,0,0,0.8)",zIndex:30}})]})}),(0, v.jsxs)("div",{style:{flexShrink:0,display:"flex",flexDirection:"column",width:44},children:[(0, v.jsx)("div",{style:{height:22}}),(0, v.jsxs)("label",{style:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8,cursor:"pointer",fontSize:18,height:64,marginTop:4,border:`1.5px dashed ${T.border}`,color:T.muted},title:n("tip.addVideo"),children:["\uFF0B",(0, v.jsx)("input",{type:"file",accept:"video/*",style:{display:"none"},onChange:r=>{let m=r.target.files?.[0];m&&Pc(m),r.target.value="";}})]}),(0, v.jsxs)("label",{style:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8,cursor:"pointer",fontSize:13,height:28,marginTop:4,border:`1.5px dashed ${T.border}`,color:T.muted},title:n("tip.addAudio"),children:["\u266A\uFF0B",(0, v.jsx)("input",{type:"file",accept:"audio/*,video/*",style:{display:"none"},onChange:r=>{let m=r.target.files?.[0];m&&jv(m),r.target.value="";}})]})]})]}),el!=null&&ml[el]&&(0, v.jsxs)("div",{style:{marginTop:8,display:"flex",alignItems:"center",gap:12,padding:"8px 12px",borderRadius:8,fontSize:13,background:T.chip,color:T.muted},children:[(0, v.jsxs)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:160},children:["\u266A ",V[ml[el].srcIdx]?.file.name??n("lbl.music")]}),(0, v.jsx)("span",{style:{flexShrink:0},children:n("lbl.volume")}),(0, v.jsx)("input",{type:"range",min:0,max:2,step:.1,value:ml[el].volume,onChange:r=>{let m=Number(r.target.value);s({audioClips:ml.map((E,_)=>_===el?{...E,volume:m}:E)});},onPointerUp:()=>y(),style:{width:144}}),(0, v.jsxs)("span",{style:{fontVariantNumeric:"tabular-nums",width:40},children:[Math.round(ml[el].volume*100),"%"]}),(0, v.jsx)("div",{style:{flex:1}}),(0, v.jsx)("button",{onClick:()=>{y({audioClips:ml.filter((r,m)=>m!==el)}),dl(null);},style:{padding:"4px 8px",borderRadius:6,border:"none",cursor:"pointer",background:"rgba(239,68,68,0.15)",color:"#fca5a5"},children:n("act.deleteMusic")})]})]}),!1&&k==="filter"&&(0, v.jsx)("div",{style:{marginTop:16,display:"flex",alignItems:"flex-start",gap:12,flexWrap:"wrap",justifyContent:"center"},children:[{id:"",css:""},...FILTER_PRESETS].map(r=>(0, v.jsxs)("button",{onClick:()=>y({filterPreset:r.id||void 0}),style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4,background:"transparent",border:"none",cursor:"pointer"},children:[Pa?(0, v.jsx)("img",{src:Pa,alt:"",style:{width:80,height:48,objectFit:"cover",borderRadius:8,filter:r.css,outline:(o.filterPreset??"")===r.id?`2px solid ${T.accent}`:`1px solid ${T.border}`,outlineOffset:2}}):(0, v.jsx)("span",{style:{width:80,height:48,borderRadius:8,background:T.chip}}),(0, v.jsx)("span",{style:{fontSize:11,color:(o.filterPreset??"")===r.id?T.fg:T.muted},children:n(`filter.${r.id||"none"}`)})]},r.id||"none"))}),Ot&&k==="resize"&&(0, v.jsxs)("div",{style:{marginTop:16,display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%"},children:[(0, v.jsx)("p",{style:{fontSize:11,marginBottom:-4,color:T.muted},children:n("lbl.sizeSection")}),(0, v.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,color:T.muted},children:[(0, v.jsx)("input",{type:"number",min:2,value:o.scale?.width??oe.w,onChange:r=>{let m=evenize(Number(r.target.value)||2),E=oe.w/oe.h;y({scale:{width:m,height:K?evenize(m/E):o.scale?.height??oe.h,fit:"cover"}});},style:{width:96,padding:"6px 8px",borderRadius:6,textAlign:"center",fontVariantNumeric:"tabular-nums",background:T.chip,color:T.fg,border:"none"}}),(0, v.jsx)("span",{style:{fontSize:11},children:"W"}),(0, v.jsx)("button",{onClick:()=>Xt(!K),style:{...Lt,padding:"6px 8px",background:T.chip},title:n("tip.lockAspect"),children:K?"\u{1F512}":"\u{1F513}"}),(0, v.jsx)("span",{style:{fontSize:11},children:"H"}),(0, v.jsx)("input",{type:"number",min:2,value:o.scale?.height??oe.h,onChange:r=>{let m=evenize(Number(r.target.value)||2),E=oe.w/oe.h;y({scale:{width:K?evenize(m*E):o.scale?.width??oe.w,height:m,fit:"cover"}});},style:{width:96,padding:"6px 8px",borderRadius:6,textAlign:"center",fontVariantNumeric:"tabular-nums",background:T.chip,color:T.fg,border:"none"}}),o.scale&&(0, v.jsx)("button",{onClick:()=>{y({scale:void 0});},style:{...Lt,padding:"6px 8px",fontSize:13,background:T.chip},children:n("act.restore")})]}),(0, v.jsxs)("p",{style:{fontSize:11,color:T.muted},children:[n("lbl.currentOut"),":",o.scale?`${o.scale.width}\xD7${o.scale.height}`:`${oe.w}\xD7${oe.h}${n("lbl.noScale")}`," ",n("lbl.coverNote")]})]}),ta&&(0, v.jsx)("div",{style:{marginTop:12,padding:"8px 12px",borderRadius:6,fontSize:13,width:"100%",background:"rgba(239,68,68,0.12)",color:"#fca5a5"},children:ta}),rt&&!Wt&&(0, v.jsx)("div",{style:{marginTop:12,fontSize:13,color:T.accent},children:rt})]})]}),Wt&&(0, v.jsx)("div",{className:"me-video-export-loading",role:"status","aria-live":"polite","aria-busy":"true",style:{position:"absolute",inset:0,zIndex:120,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(3,3,3,0.58)",backdropFilter:"blur(3px)",pointerEvents:"auto"},children:(0, v.jsxs)("div",{style:{minWidth:240,maxWidth:360,padding:"20px 24px",borderRadius:12,border:`1px solid ${T.border}`,background:"rgba(20,20,22,0.94)",boxShadow:"0 18px 60px rgba(0,0,0,0.42)",color:T.fg,display:"flex",flexDirection:"column",alignItems:"center",gap:10,textAlign:"center"},children:[(0, v.jsx)("span",{className:"me-video-export-spinner","aria-hidden":"true"}),(0, v.jsx)("strong",{style:{fontSize:15,fontWeight:600},children:rt}),(0, v.jsx)("span",{style:{fontSize:12,lineHeight:1.5,color:T.muted},children:n("msg.exportingHint")})]})}),(0, v.jsx)(Pf,{open:ve,onClose:()=>tl(false),videoSrcs:A.map(r=>({url:r.url,dims:r.dims,duration:r.duration})),clips:yt,canvasDims:Ye,state:o,duration:ru,sampleThumb:eh,fileName:A[0]?.file.name??"video",t:n})]})}var e2={"--me-fg":"#ededf0","--me-fg-muted":"#9a9aa3","--me-bg":"#08080a","--me-surface":"#141416","--me-chip":"#1c1c20","--me-border":"#26262b","--me-border-strong":"#34343a","--me-accent":"#7c7cf0","--me-accent-hover":"#8f8ff5","--me-accent-fg":"#ffffff"},l2={"--me-fg":"#0a0a0a","--me-fg-muted":"#6b6b76","--me-bg":"#ffffff","--me-surface":"#fafafa","--me-chip":"#f1f1f3","--me-border":"#e6e6e8","--me-border-strong":"#d4d4d8","--me-accent":"#5b5bd6","--me-accent-hover":"#4f4fc9","--me-accent-fg":"#ffffff"};function n2(t="auto"){return t!=="auto"?t:typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark"}function a2(t){let e=()=>{if(document.fullscreenElement===t||t.classList.contains("me-is-fullscreen")){t.style.setProperty("--me-video-done-bg","var(--me-accent,#7c7cf0)"),t.style.setProperty("--me-video-done-fg","#ffffff");return}t.style.removeProperty("--me-video-done-bg"),t.style.removeProperty("--me-video-done-fg");};return e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),t.style.removeProperty("--me-video-done-bg"),t.style.removeProperty("--me-video-done-fg");}}function eb(t,e={}){t.style.position||(t.style.position="relative");let l=document.createElement("div");l.style.cssText="width:100%;height:100%;min-height:0;flex:1 1 0",t.appendChild(l);let n=(0, qv.createRoot)(l),a=e.engine??new VideoEditorEngine,i=e.client??createEditorClient({baseUrl:e.baseUrl}),u=e,c=g=>{u={...u,...g};let O=u;O.client&&(i=O.client);let B={...n2(O.theme)==="light"?l2:e2,width:"100%",height:"100%",minHeight:0,background:"var(--me-bg)",color:"var(--me-fg)"};n.render((0, as.createElement)("div",{style:B},(0, as.createElement)(ns,{engine:a,client:i,source:O.source,t:hv(O.locale??"zh"),onExported:O.onExported,onError:O.onError,maxVideos:O.maxVideos,maxAudios:O.maxAudios})));};c(e);let o=e.fullscreen,s=o&&typeof o=="object"?o:void 0,y=s?.target??t,S=o===false?null:createFullscreenToggle(y,{mode:s?.mode,className:s?.className});S&&(s?.buttonContainer??t).appendChild(S.button);let h=S?a2(y):null;return {update(g){c(g);},destroy(){n.unmount(),h?.(),S?.dispose(),l.remove();}}}/*! Bundled license information:
10
+
11
+ react/cjs/react.production.js:
12
+ (**
13
+ * @license React
14
+ * react.production.js
15
+ *
16
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *)
21
+
22
+ scheduler/cjs/scheduler.production.js:
23
+ (**
24
+ * @license React
25
+ * scheduler.production.js
26
+ *
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *)
32
+
33
+ react-dom/cjs/react-dom.production.js:
34
+ (**
35
+ * @license React
36
+ * react-dom.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ *)
43
+
44
+ react-dom/cjs/react-dom-client.production.js:
45
+ (**
46
+ * @license React
47
+ * react-dom-client.production.js
48
+ *
49
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ *)
54
+
55
+ react/cjs/react-jsx-runtime.production.js:
56
+ (**
57
+ * @license React
58
+ * react-jsx-runtime.production.js
59
+ *
60
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ *)
65
+ */export{eb as mountVideoEditor};