@surething/cockpit 1.0.209 → 1.0.211

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 (551) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +5 -1
  3. package/.next-prod/build-manifest.json +3 -3
  4. package/.next-prod/diagnostics/framework.json +1 -1
  5. package/.next-prod/next-server.js.nft.json +1 -1
  6. package/.next-prod/prerender-manifest.json +3 -3
  7. package/.next-prod/routes-manifest.json +24 -0
  8. package/.next-prod/server/app/_global-error/page.js +3 -3
  9. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  10. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next-prod/server/app/_global-error.html +1 -1
  12. package/.next-prod/server/app/_global-error.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  16. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next-prod/server/app/_not-found/page.js +2 -2
  20. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  21. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  22. package/.next-prod/server/app/_not-found.html +1 -1
  23. package/.next-prod/server/app/_not-found.rsc +3 -3
  24. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
  25. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  26. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  27. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  28. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  29. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  30. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  31. package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
  32. package/.next-prod/server/app/api/bash/route.js +1 -1
  33. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  34. package/.next-prod/server/app/api/chat/codex/route.js +78 -4
  35. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  36. package/.next-prod/server/app/api/chat/deepseek/route.js +78 -4
  37. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  38. package/.next-prod/server/app/api/chat/kimi/route.js +87 -13
  39. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  40. package/.next-prod/server/app/api/chat/ollama/route.js +89 -15
  41. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  42. package/.next-prod/server/app/api/chat/route.js +78 -4
  43. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  44. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  45. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  46. package/.next-prod/server/app/api/commands/route.js +1 -1
  47. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  48. package/.next-prod/server/app/api/comments/route.js +1 -1
  49. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  50. package/.next-prod/server/app/api/db/columns/route.js +2 -2
  51. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  52. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  53. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  54. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  55. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  56. package/.next-prod/server/app/api/db/export/route.js +1 -1
  57. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  58. package/.next-prod/server/app/api/db/query/route.js +1 -1
  59. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  60. package/.next-prod/server/app/api/db/schemas/route.js +1 -1
  61. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  62. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  63. package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
  64. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  65. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  66. package/.next-prod/server/app/api/file/route.js +1 -1
  67. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  68. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  69. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  70. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  71. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  72. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  73. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  74. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  75. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  76. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  77. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  78. package/.next-prod/server/app/api/files/index/route.js +1 -1
  79. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  80. package/.next-prod/server/app/api/files/init/route.js +1 -1
  81. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  82. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  83. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  84. package/.next-prod/server/app/api/files/read/route.js +1 -1
  85. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  86. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  87. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  88. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  89. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  90. package/.next-prod/server/app/api/files/save/route.js +1 -1
  91. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  92. package/.next-prod/server/app/api/files/search/route.js +1 -1
  93. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  94. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  95. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  96. package/.next-prod/server/app/api/files/text/route.js +1 -1
  97. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  98. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  99. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  100. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  101. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  102. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  103. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  104. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  105. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  106. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  107. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  108. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  109. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  110. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  111. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  112. package/.next-prod/server/app/api/git/status/route.js +1 -1
  113. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  114. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  115. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  116. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  117. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  118. package/.next-prod/server/app/api/global-state/route.js +1 -1
  119. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  120. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  121. package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
  122. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  123. package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
  124. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  125. package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
  126. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  127. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  128. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  129. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  130. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  131. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  132. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  133. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  134. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  135. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  136. package/.next-prod/server/app/api/mysql/columns/route.js +1 -1
  137. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  138. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  139. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  140. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  141. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  142. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  143. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  144. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  145. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  146. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  147. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  148. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  149. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  150. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  151. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  152. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  153. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  154. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  155. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  156. package/.next-prod/server/app/api/note/route.js +1 -1
  157. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  158. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  159. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  160. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  161. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  162. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  163. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  164. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  165. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  166. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  167. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  168. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  169. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  170. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  171. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  172. package/.next-prod/server/app/api/project-state/route.js +1 -1
  173. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  174. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -0
  175. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -0
  176. package/.next-prod/server/app/api/projectGraph/callees/route_client-reference-manifest.js +1 -0
  177. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -0
  178. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -0
  179. package/.next-prod/server/app/api/projectGraph/callers/route_client-reference-manifest.js +1 -0
  180. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -0
  181. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -0
  182. package/.next-prod/server/app/api/projectGraph/coedit/route_client-reference-manifest.js +1 -0
  183. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  184. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  185. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  186. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  187. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -0
  188. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -0
  189. package/.next-prod/server/app/api/projectGraph/impact/route_client-reference-manifest.js +1 -0
  190. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  191. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  192. package/.next-prod/server/app/api/projects/route.js +1 -1
  193. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  194. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  195. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  196. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  197. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  198. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  199. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  200. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  201. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  202. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  203. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  204. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  205. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  206. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  207. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  208. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  209. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  210. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  211. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  212. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  213. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  214. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  215. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  216. package/.next-prod/server/app/api/review/order/route.js +1 -1
  217. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  218. package/.next-prod/server/app/api/review/route.js +1 -1
  219. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  220. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  221. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  222. package/.next-prod/server/app/api/review/users/route.js +1 -1
  223. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  224. package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
  225. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  226. package/.next-prod/server/app/api/services/config/route.js +1 -1
  227. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  228. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  229. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  230. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  231. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  232. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  233. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  234. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  235. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  236. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  237. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  238. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  239. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  240. package/.next-prod/server/app/api/sessions/route.js +1 -1
  241. package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
  242. package/.next-prod/server/app/api/settings/route.js +1 -1
  243. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  244. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  245. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  246. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  247. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  248. package/.next-prod/server/app/api/skills/route.js +1 -1
  249. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  250. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  251. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  252. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  253. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  254. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  255. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  256. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  257. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  258. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  259. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  260. package/.next-prod/server/app/api/version/route.js +1 -1
  261. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  262. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  263. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  264. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  265. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  266. package/.next-prod/server/app/page.js +2 -2
  267. package/.next-prod/server/app/page.js.nft.json +1 -1
  268. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  269. package/.next-prod/server/app/project/page.js +2 -2
  270. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  271. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  272. package/.next-prod/server/app/review/[id]/page.js +2 -2
  273. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  274. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  275. package/.next-prod/server/app-paths-manifest.json +5 -1
  276. package/.next-prod/server/chunks/2939.js +1 -0
  277. package/.next-prod/server/chunks/4034.js +1 -1
  278. package/.next-prod/server/chunks/4741.js +2 -2
  279. package/.next-prod/server/chunks/5616.js +1 -1
  280. package/.next-prod/server/chunks/6955.js +1 -1
  281. package/.next-prod/server/chunks/7973.js +15 -0
  282. package/.next-prod/server/chunks/8916.js +1 -1
  283. package/.next-prod/server/chunks/9658.js +6 -6
  284. package/.next-prod/server/middleware-build-manifest.js +1 -1
  285. package/.next-prod/server/pages/404.html +1 -1
  286. package/.next-prod/server/pages/500.html +1 -1
  287. package/.next-prod/server/server-reference-manifest.json +1 -1
  288. package/.next-prod/static/chunks/{3794-3fb4e6ee851037bb.js → 3794-ba2500baa4c52d55.js} +3 -3
  289. package/.next-prod/static/chunks/5188-6ad3d686c5e9fb28.js +29 -0
  290. package/.next-prod/static/chunks/6345-3da1914a1a74c1fb.js +14 -0
  291. package/.next-prod/static/chunks/app/_global-error/page-994734ef0d317687.js +1 -0
  292. package/.next-prod/static/chunks/app/api/agent/test/route-994734ef0d317687.js +1 -0
  293. package/.next-prod/static/chunks/app/api/bash/route-994734ef0d317687.js +1 -0
  294. package/.next-prod/static/chunks/app/api/chat/codex/route-994734ef0d317687.js +1 -0
  295. package/.next-prod/static/chunks/app/api/chat/deepseek/route-994734ef0d317687.js +1 -0
  296. package/.next-prod/static/chunks/app/api/chat/kimi/route-994734ef0d317687.js +1 -0
  297. package/.next-prod/static/chunks/app/api/chat/ollama/route-994734ef0d317687.js +1 -0
  298. package/.next-prod/static/chunks/app/api/chat/route-994734ef0d317687.js +1 -0
  299. package/.next-prod/static/chunks/app/api/claude-stats/route-994734ef0d317687.js +1 -0
  300. package/.next-prod/static/chunks/app/api/commands/route-994734ef0d317687.js +1 -0
  301. package/.next-prod/static/chunks/app/api/comments/route-994734ef0d317687.js +1 -0
  302. package/.next-prod/static/chunks/app/api/db/columns/route-994734ef0d317687.js +1 -0
  303. package/.next-prod/static/chunks/app/api/db/connect/route-994734ef0d317687.js +1 -0
  304. package/.next-prod/static/chunks/app/api/db/disconnect/route-994734ef0d317687.js +1 -0
  305. package/.next-prod/static/chunks/app/api/db/export/route-994734ef0d317687.js +1 -0
  306. package/.next-prod/static/chunks/app/api/db/query/route-994734ef0d317687.js +1 -0
  307. package/.next-prod/static/chunks/app/api/db/schemas/route-994734ef0d317687.js +1 -0
  308. package/.next-prod/static/chunks/app/api/dev/spans/route-994734ef0d317687.js +1 -0
  309. package/.next-prod/static/chunks/app/api/extension/version/route-994734ef0d317687.js +1 -0
  310. package/.next-prod/static/chunks/app/api/file/route-994734ef0d317687.js +1 -0
  311. package/.next-prod/static/chunks/app/api/files/blame/route-994734ef0d317687.js +1 -0
  312. package/.next-prod/static/chunks/app/api/files/clipboard/route-994734ef0d317687.js +1 -0
  313. package/.next-prod/static/chunks/app/api/files/copy/route-994734ef0d317687.js +1 -0
  314. package/.next-prod/static/chunks/app/api/files/delete/route-994734ef0d317687.js +1 -0
  315. package/.next-prod/static/chunks/app/api/files/expanded/route-994734ef0d317687.js +1 -0
  316. package/.next-prod/static/chunks/app/api/files/index/route-994734ef0d317687.js +1 -0
  317. package/.next-prod/static/chunks/app/api/files/init/route-994734ef0d317687.js +1 -0
  318. package/.next-prod/static/chunks/app/api/files/paste/route-994734ef0d317687.js +1 -0
  319. package/.next-prod/static/chunks/app/api/files/read/route-994734ef0d317687.js +1 -0
  320. package/.next-prod/static/chunks/app/api/files/readdir/route-994734ef0d317687.js +1 -0
  321. package/.next-prod/static/chunks/app/api/files/recent/route-994734ef0d317687.js +1 -0
  322. package/.next-prod/static/chunks/app/api/files/save/route-994734ef0d317687.js +1 -0
  323. package/.next-prod/static/chunks/app/api/files/search/route-994734ef0d317687.js +1 -0
  324. package/.next-prod/static/chunks/app/api/files/stat/route-994734ef0d317687.js +1 -0
  325. package/.next-prod/static/chunks/app/api/files/text/route-994734ef0d317687.js +1 -0
  326. package/.next-prod/static/chunks/app/api/git/branch-diff/route-994734ef0d317687.js +1 -0
  327. package/.next-prod/static/chunks/app/api/git/branches/route-994734ef0d317687.js +1 -0
  328. package/.next-prod/static/chunks/app/api/git/commit-diff/route-994734ef0d317687.js +1 -0
  329. package/.next-prod/static/chunks/app/api/git/commits/route-994734ef0d317687.js +1 -0
  330. package/.next-prod/static/chunks/app/api/git/diff/route-994734ef0d317687.js +1 -0
  331. package/.next-prod/static/chunks/app/api/git/discard/route-994734ef0d317687.js +1 -0
  332. package/.next-prod/static/chunks/app/api/git/stage/route-994734ef0d317687.js +1 -0
  333. package/.next-prod/static/chunks/app/api/git/status/route-994734ef0d317687.js +1 -0
  334. package/.next-prod/static/chunks/app/api/git/unstage/route-994734ef0d317687.js +1 -0
  335. package/.next-prod/static/chunks/app/api/git/worktree/route-994734ef0d317687.js +1 -0
  336. package/.next-prod/static/chunks/app/api/global-state/route-994734ef0d317687.js +1 -0
  337. package/.next-prod/static/chunks/app/api/jupyter/load/route-994734ef0d317687.js +1 -0
  338. package/.next-prod/static/chunks/app/api/jupyter/save/route-994734ef0d317687.js +1 -0
  339. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-994734ef0d317687.js +1 -0
  340. package/.next-prod/static/chunks/app/api/lsp/definition/route-994734ef0d317687.js +1 -0
  341. package/.next-prod/static/chunks/app/api/lsp/hover/route-994734ef0d317687.js +1 -0
  342. package/.next-prod/static/chunks/app/api/lsp/references/route-994734ef0d317687.js +1 -0
  343. package/.next-prod/static/chunks/app/api/lsp/status/route-994734ef0d317687.js +1 -0
  344. package/.next-prod/static/chunks/app/api/lsp/warmup/route-994734ef0d317687.js +1 -0
  345. package/.next-prod/static/chunks/app/api/mysql/columns/route-994734ef0d317687.js +1 -0
  346. package/.next-prod/static/chunks/app/api/mysql/connect/route-994734ef0d317687.js +1 -0
  347. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-994734ef0d317687.js +1 -0
  348. package/.next-prod/static/chunks/app/api/mysql/export/route-994734ef0d317687.js +1 -0
  349. package/.next-prod/static/chunks/app/api/mysql/query/route-994734ef0d317687.js +1 -0
  350. package/.next-prod/static/chunks/app/api/mysql/schemas/route-994734ef0d317687.js +1 -0
  351. package/.next-prod/static/chunks/app/api/neo4j/connect/route-994734ef0d317687.js +1 -0
  352. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-994734ef0d317687.js +1 -0
  353. package/.next-prod/static/chunks/app/api/neo4j/query/route-994734ef0d317687.js +1 -0
  354. package/.next-prod/static/chunks/app/api/neo4j/schema/route-994734ef0d317687.js +1 -0
  355. package/.next-prod/static/chunks/app/api/note/route-994734ef0d317687.js +1 -0
  356. package/.next-prod/static/chunks/app/api/ollama/models/route-994734ef0d317687.js +1 -0
  357. package/.next-prod/static/chunks/app/api/ollama/start/route-994734ef0d317687.js +1 -0
  358. package/.next-prod/static/chunks/app/api/open-cursor/route-994734ef0d317687.js +1 -0
  359. package/.next-prod/static/chunks/app/api/open-vscode/route-994734ef0d317687.js +1 -0
  360. package/.next-prod/static/chunks/app/api/pick-folder/route-994734ef0d317687.js +1 -0
  361. package/.next-prod/static/chunks/app/api/pinned-sessions/route-994734ef0d317687.js +1 -0
  362. package/.next-prod/static/chunks/app/api/project-settings/route-994734ef0d317687.js +1 -0
  363. package/.next-prod/static/chunks/app/api/project-state/route-994734ef0d317687.js +1 -0
  364. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-994734ef0d317687.js +1 -0
  365. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-994734ef0d317687.js +1 -0
  366. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-994734ef0d317687.js +1 -0
  367. package/.next-prod/static/chunks/app/api/projectGraph/file/route-994734ef0d317687.js +1 -0
  368. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-994734ef0d317687.js +1 -0
  369. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-994734ef0d317687.js +1 -0
  370. package/.next-prod/static/chunks/app/api/projectGraph/search/route-994734ef0d317687.js +1 -0
  371. package/.next-prod/static/chunks/app/api/projects/route-994734ef0d317687.js +1 -0
  372. package/.next-prod/static/chunks/app/api/redis/command/route-994734ef0d317687.js +1 -0
  373. package/.next-prod/static/chunks/app/api/redis/connect/route-994734ef0d317687.js +1 -0
  374. package/.next-prod/static/chunks/app/api/redis/delete/route-994734ef0d317687.js +1 -0
  375. package/.next-prod/static/chunks/app/api/redis/disconnect/route-994734ef0d317687.js +1 -0
  376. package/.next-prod/static/chunks/app/api/redis/get/route-994734ef0d317687.js +1 -0
  377. package/.next-prod/static/chunks/app/api/redis/keys/route-994734ef0d317687.js +1 -0
  378. package/.next-prod/static/chunks/app/api/redis/set/route-994734ef0d317687.js +1 -0
  379. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-994734ef0d317687.js +1 -0
  380. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-994734ef0d317687.js +1 -0
  381. package/.next-prod/static/chunks/app/api/review/[id]/route-994734ef0d317687.js +1 -0
  382. package/.next-prod/static/chunks/app/api/review/identify/route-994734ef0d317687.js +1 -0
  383. package/.next-prod/static/chunks/app/api/review/order/route-994734ef0d317687.js +1 -0
  384. package/.next-prod/static/chunks/app/api/review/route-994734ef0d317687.js +1 -0
  385. package/.next-prod/static/chunks/app/api/review/share-info/route-994734ef0d317687.js +1 -0
  386. package/.next-prod/static/chunks/app/api/review/users/route-994734ef0d317687.js +1 -0
  387. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-994734ef0d317687.js +1 -0
  388. package/.next-prod/static/chunks/app/api/services/config/route-994734ef0d317687.js +1 -0
  389. package/.next-prod/static/chunks/app/api/services/scripts/route-994734ef0d317687.js +1 -0
  390. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-994734ef0d317687.js +1 -0
  391. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-994734ef0d317687.js +1 -0
  392. package/.next-prod/static/chunks/app/api/session-by-path/route-994734ef0d317687.js +1 -0
  393. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-994734ef0d317687.js +1 -0
  394. package/.next-prod/static/chunks/app/api/sessions/projects/route-994734ef0d317687.js +1 -0
  395. package/.next-prod/static/chunks/app/api/sessions/route-994734ef0d317687.js +1 -0
  396. package/.next-prod/static/chunks/app/api/settings/route-994734ef0d317687.js +1 -0
  397. package/.next-prod/static/chunks/app/api/skills/[id]/route-994734ef0d317687.js +1 -0
  398. package/.next-prod/static/chunks/app/api/skills/content/route-994734ef0d317687.js +1 -0
  399. package/.next-prod/static/chunks/app/api/skills/route-994734ef0d317687.js +1 -0
  400. package/.next-prod/static/chunks/app/api/terminal/aliases/route-994734ef0d317687.js +1 -0
  401. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-994734ef0d317687.js +1 -0
  402. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-994734ef0d317687.js +1 -0
  403. package/.next-prod/static/chunks/app/api/terminal/env/route-994734ef0d317687.js +1 -0
  404. package/.next-prod/static/chunks/app/api/terminal/history/route-994734ef0d317687.js +1 -0
  405. package/.next-prod/static/chunks/app/api/version/route-994734ef0d317687.js +1 -0
  406. package/.next-prod/static/chunks/app/{layout-e3b4c334b1eceb18.js → layout-a0362651ba6e6e6f.js} +1 -1
  407. package/.next-prod/static/chunks/app/manifest.webmanifest/route-994734ef0d317687.js +1 -0
  408. package/.next-prod/static/chunks/app/{page-3d87bb74a7b3d36e.js → page-1b14cabf47df9ff7.js} +1 -1
  409. package/.next-prod/static/chunks/app/project/{page-3d87bb74a7b3d36e.js → page-1b14cabf47df9ff7.js} +1 -1
  410. package/.next-prod/static/chunks/{main-5a46314a5491113b.js → main-79827b1543335b12.js} +3 -3
  411. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-994734ef0d317687.js +1 -0
  412. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-994734ef0d317687.js +1 -0
  413. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-994734ef0d317687.js +1 -0
  414. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-994734ef0d317687.js +1 -0
  415. package/.next-prod/static/css/f9a27209b85d8e5a.css +1 -0
  416. package/.next-prod/static/pS6D6oF2RLyDG-MzgFWGm/_buildManifest.js +1 -0
  417. package/.next-prod/trace +12 -12
  418. package/.next-prod/trace-build +1 -1
  419. package/.next-prod/types/app/api/projectGraph/callees/route.ts +351 -0
  420. package/.next-prod/types/app/api/projectGraph/callers/route.ts +351 -0
  421. package/.next-prod/types/app/api/projectGraph/coedit/route.ts +351 -0
  422. package/.next-prod/types/app/api/projectGraph/impact/route.ts +351 -0
  423. package/.next-prod/types/routes.d.ts +5 -1
  424. package/.next-prod/types/validator.ts +36 -0
  425. package/README.md +5 -1
  426. package/README.zh.md +5 -1
  427. package/dist/wsServer.mjs +2730 -4
  428. package/package.json +3 -3
  429. package/.next-prod/server/chunks/5159.js +0 -1
  430. package/.next-prod/server/chunks/8465.js +0 -15
  431. package/.next-prod/static/chunks/6345-3c06cdc8c89677b8.js +0 -14
  432. package/.next-prod/static/chunks/8024-a869e23f4e8e5b38.js +0 -29
  433. package/.next-prod/static/chunks/app/_global-error/page-826847d169541fa9.js +0 -1
  434. package/.next-prod/static/chunks/app/api/agent/test/route-826847d169541fa9.js +0 -1
  435. package/.next-prod/static/chunks/app/api/bash/route-826847d169541fa9.js +0 -1
  436. package/.next-prod/static/chunks/app/api/chat/codex/route-826847d169541fa9.js +0 -1
  437. package/.next-prod/static/chunks/app/api/chat/deepseek/route-826847d169541fa9.js +0 -1
  438. package/.next-prod/static/chunks/app/api/chat/kimi/route-826847d169541fa9.js +0 -1
  439. package/.next-prod/static/chunks/app/api/chat/ollama/route-826847d169541fa9.js +0 -1
  440. package/.next-prod/static/chunks/app/api/chat/route-826847d169541fa9.js +0 -1
  441. package/.next-prod/static/chunks/app/api/claude-stats/route-826847d169541fa9.js +0 -1
  442. package/.next-prod/static/chunks/app/api/commands/route-826847d169541fa9.js +0 -1
  443. package/.next-prod/static/chunks/app/api/comments/route-826847d169541fa9.js +0 -1
  444. package/.next-prod/static/chunks/app/api/db/columns/route-826847d169541fa9.js +0 -1
  445. package/.next-prod/static/chunks/app/api/db/connect/route-826847d169541fa9.js +0 -1
  446. package/.next-prod/static/chunks/app/api/db/disconnect/route-826847d169541fa9.js +0 -1
  447. package/.next-prod/static/chunks/app/api/db/export/route-826847d169541fa9.js +0 -1
  448. package/.next-prod/static/chunks/app/api/db/query/route-826847d169541fa9.js +0 -1
  449. package/.next-prod/static/chunks/app/api/db/schemas/route-826847d169541fa9.js +0 -1
  450. package/.next-prod/static/chunks/app/api/dev/spans/route-826847d169541fa9.js +0 -1
  451. package/.next-prod/static/chunks/app/api/extension/version/route-826847d169541fa9.js +0 -1
  452. package/.next-prod/static/chunks/app/api/file/route-826847d169541fa9.js +0 -1
  453. package/.next-prod/static/chunks/app/api/files/blame/route-826847d169541fa9.js +0 -1
  454. package/.next-prod/static/chunks/app/api/files/clipboard/route-826847d169541fa9.js +0 -1
  455. package/.next-prod/static/chunks/app/api/files/copy/route-826847d169541fa9.js +0 -1
  456. package/.next-prod/static/chunks/app/api/files/delete/route-826847d169541fa9.js +0 -1
  457. package/.next-prod/static/chunks/app/api/files/expanded/route-826847d169541fa9.js +0 -1
  458. package/.next-prod/static/chunks/app/api/files/index/route-826847d169541fa9.js +0 -1
  459. package/.next-prod/static/chunks/app/api/files/init/route-826847d169541fa9.js +0 -1
  460. package/.next-prod/static/chunks/app/api/files/paste/route-826847d169541fa9.js +0 -1
  461. package/.next-prod/static/chunks/app/api/files/read/route-826847d169541fa9.js +0 -1
  462. package/.next-prod/static/chunks/app/api/files/readdir/route-826847d169541fa9.js +0 -1
  463. package/.next-prod/static/chunks/app/api/files/recent/route-826847d169541fa9.js +0 -1
  464. package/.next-prod/static/chunks/app/api/files/save/route-826847d169541fa9.js +0 -1
  465. package/.next-prod/static/chunks/app/api/files/search/route-826847d169541fa9.js +0 -1
  466. package/.next-prod/static/chunks/app/api/files/stat/route-826847d169541fa9.js +0 -1
  467. package/.next-prod/static/chunks/app/api/files/text/route-826847d169541fa9.js +0 -1
  468. package/.next-prod/static/chunks/app/api/git/branch-diff/route-826847d169541fa9.js +0 -1
  469. package/.next-prod/static/chunks/app/api/git/branches/route-826847d169541fa9.js +0 -1
  470. package/.next-prod/static/chunks/app/api/git/commit-diff/route-826847d169541fa9.js +0 -1
  471. package/.next-prod/static/chunks/app/api/git/commits/route-826847d169541fa9.js +0 -1
  472. package/.next-prod/static/chunks/app/api/git/diff/route-826847d169541fa9.js +0 -1
  473. package/.next-prod/static/chunks/app/api/git/discard/route-826847d169541fa9.js +0 -1
  474. package/.next-prod/static/chunks/app/api/git/stage/route-826847d169541fa9.js +0 -1
  475. package/.next-prod/static/chunks/app/api/git/status/route-826847d169541fa9.js +0 -1
  476. package/.next-prod/static/chunks/app/api/git/unstage/route-826847d169541fa9.js +0 -1
  477. package/.next-prod/static/chunks/app/api/git/worktree/route-826847d169541fa9.js +0 -1
  478. package/.next-prod/static/chunks/app/api/global-state/route-826847d169541fa9.js +0 -1
  479. package/.next-prod/static/chunks/app/api/jupyter/load/route-826847d169541fa9.js +0 -1
  480. package/.next-prod/static/chunks/app/api/jupyter/save/route-826847d169541fa9.js +0 -1
  481. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-826847d169541fa9.js +0 -1
  482. package/.next-prod/static/chunks/app/api/lsp/definition/route-826847d169541fa9.js +0 -1
  483. package/.next-prod/static/chunks/app/api/lsp/hover/route-826847d169541fa9.js +0 -1
  484. package/.next-prod/static/chunks/app/api/lsp/references/route-826847d169541fa9.js +0 -1
  485. package/.next-prod/static/chunks/app/api/lsp/status/route-826847d169541fa9.js +0 -1
  486. package/.next-prod/static/chunks/app/api/lsp/warmup/route-826847d169541fa9.js +0 -1
  487. package/.next-prod/static/chunks/app/api/mysql/columns/route-826847d169541fa9.js +0 -1
  488. package/.next-prod/static/chunks/app/api/mysql/connect/route-826847d169541fa9.js +0 -1
  489. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-826847d169541fa9.js +0 -1
  490. package/.next-prod/static/chunks/app/api/mysql/export/route-826847d169541fa9.js +0 -1
  491. package/.next-prod/static/chunks/app/api/mysql/query/route-826847d169541fa9.js +0 -1
  492. package/.next-prod/static/chunks/app/api/mysql/schemas/route-826847d169541fa9.js +0 -1
  493. package/.next-prod/static/chunks/app/api/neo4j/connect/route-826847d169541fa9.js +0 -1
  494. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-826847d169541fa9.js +0 -1
  495. package/.next-prod/static/chunks/app/api/neo4j/query/route-826847d169541fa9.js +0 -1
  496. package/.next-prod/static/chunks/app/api/neo4j/schema/route-826847d169541fa9.js +0 -1
  497. package/.next-prod/static/chunks/app/api/note/route-826847d169541fa9.js +0 -1
  498. package/.next-prod/static/chunks/app/api/ollama/models/route-826847d169541fa9.js +0 -1
  499. package/.next-prod/static/chunks/app/api/ollama/start/route-826847d169541fa9.js +0 -1
  500. package/.next-prod/static/chunks/app/api/open-cursor/route-826847d169541fa9.js +0 -1
  501. package/.next-prod/static/chunks/app/api/open-vscode/route-826847d169541fa9.js +0 -1
  502. package/.next-prod/static/chunks/app/api/pick-folder/route-826847d169541fa9.js +0 -1
  503. package/.next-prod/static/chunks/app/api/pinned-sessions/route-826847d169541fa9.js +0 -1
  504. package/.next-prod/static/chunks/app/api/project-settings/route-826847d169541fa9.js +0 -1
  505. package/.next-prod/static/chunks/app/api/project-state/route-826847d169541fa9.js +0 -1
  506. package/.next-prod/static/chunks/app/api/projectGraph/file/route-826847d169541fa9.js +0 -1
  507. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-826847d169541fa9.js +0 -1
  508. package/.next-prod/static/chunks/app/api/projectGraph/search/route-826847d169541fa9.js +0 -1
  509. package/.next-prod/static/chunks/app/api/projects/route-826847d169541fa9.js +0 -1
  510. package/.next-prod/static/chunks/app/api/redis/command/route-826847d169541fa9.js +0 -1
  511. package/.next-prod/static/chunks/app/api/redis/connect/route-826847d169541fa9.js +0 -1
  512. package/.next-prod/static/chunks/app/api/redis/delete/route-826847d169541fa9.js +0 -1
  513. package/.next-prod/static/chunks/app/api/redis/disconnect/route-826847d169541fa9.js +0 -1
  514. package/.next-prod/static/chunks/app/api/redis/get/route-826847d169541fa9.js +0 -1
  515. package/.next-prod/static/chunks/app/api/redis/keys/route-826847d169541fa9.js +0 -1
  516. package/.next-prod/static/chunks/app/api/redis/set/route-826847d169541fa9.js +0 -1
  517. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-826847d169541fa9.js +0 -1
  518. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-826847d169541fa9.js +0 -1
  519. package/.next-prod/static/chunks/app/api/review/[id]/route-826847d169541fa9.js +0 -1
  520. package/.next-prod/static/chunks/app/api/review/identify/route-826847d169541fa9.js +0 -1
  521. package/.next-prod/static/chunks/app/api/review/order/route-826847d169541fa9.js +0 -1
  522. package/.next-prod/static/chunks/app/api/review/route-826847d169541fa9.js +0 -1
  523. package/.next-prod/static/chunks/app/api/review/share-info/route-826847d169541fa9.js +0 -1
  524. package/.next-prod/static/chunks/app/api/review/users/route-826847d169541fa9.js +0 -1
  525. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-826847d169541fa9.js +0 -1
  526. package/.next-prod/static/chunks/app/api/services/config/route-826847d169541fa9.js +0 -1
  527. package/.next-prod/static/chunks/app/api/services/scripts/route-826847d169541fa9.js +0 -1
  528. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-826847d169541fa9.js +0 -1
  529. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-826847d169541fa9.js +0 -1
  530. package/.next-prod/static/chunks/app/api/session-by-path/route-826847d169541fa9.js +0 -1
  531. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-826847d169541fa9.js +0 -1
  532. package/.next-prod/static/chunks/app/api/sessions/projects/route-826847d169541fa9.js +0 -1
  533. package/.next-prod/static/chunks/app/api/sessions/route-826847d169541fa9.js +0 -1
  534. package/.next-prod/static/chunks/app/api/settings/route-826847d169541fa9.js +0 -1
  535. package/.next-prod/static/chunks/app/api/skills/[id]/route-826847d169541fa9.js +0 -1
  536. package/.next-prod/static/chunks/app/api/skills/content/route-826847d169541fa9.js +0 -1
  537. package/.next-prod/static/chunks/app/api/skills/route-826847d169541fa9.js +0 -1
  538. package/.next-prod/static/chunks/app/api/terminal/aliases/route-826847d169541fa9.js +0 -1
  539. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-826847d169541fa9.js +0 -1
  540. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-826847d169541fa9.js +0 -1
  541. package/.next-prod/static/chunks/app/api/terminal/env/route-826847d169541fa9.js +0 -1
  542. package/.next-prod/static/chunks/app/api/terminal/history/route-826847d169541fa9.js +0 -1
  543. package/.next-prod/static/chunks/app/api/version/route-826847d169541fa9.js +0 -1
  544. package/.next-prod/static/chunks/app/manifest.webmanifest/route-826847d169541fa9.js +0 -1
  545. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-826847d169541fa9.js +0 -1
  546. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-826847d169541fa9.js +0 -1
  547. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-826847d169541fa9.js +0 -1
  548. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-826847d169541fa9.js +0 -1
  549. package/.next-prod/static/css/dcde719317bea028.css +0 -1
  550. package/.next-prod/static/zlybFiR-nH1wBW1--beGo/_buildManifest.js +0 -1
  551. /package/.next-prod/static/{zlybFiR-nH1wBW1--beGo → pS6D6oF2RLyDG-MzgFWGm}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- exports.id=4034,exports.ids=[4034],exports.modules={529:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>U});let d=a=>"string"==typeof a,e=()=>{let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.resolve=a,c.reject=b,c},f=a=>null==a?"":""+a,g=/###/g,h=a=>a&&a.indexOf("###")>-1?a.replace(g,"."):a,i=a=>!a||d(a),j=(a,b,c)=>{let e=d(b)?b.split("."):b,f=0;for(;f<e.length-1;){if(i(a))return{};let b=h(e[f]);!a[b]&&c&&(a[b]=new c),a=Object.prototype.hasOwnProperty.call(a,b)?a[b]:{},++f}return i(a)?{}:{obj:a,k:h(e[f])}},k=(a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);if(void 0!==d||1===b.length){d[e]=c;return}let f=b[b.length-1],g=b.slice(0,b.length-1),h=j(a,g,Object);for(;void 0===h.obj&&g.length;)f=`${g[g.length-1]}.${f}`,h=j(a,g=g.slice(0,g.length-1),Object),h?.obj&&void 0!==h.obj[`${h.k}.${f}`]&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=c},l=(a,b)=>{let{obj:c,k:d}=j(a,b);if(c&&Object.prototype.hasOwnProperty.call(c,d))return c[d]},m=(a,b,c)=>{for(let e in b)"__proto__"!==e&&"constructor"!==e&&(e in a?d(a[e])||a[e]instanceof String||d(b[e])||b[e]instanceof String?c&&(a[e]=b[e]):m(a[e],b[e],c):a[e]=b[e]);return a};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let o=a=>d(a)?a.replace(/[&<>"'\/]/g,a=>n[a]):a;class p{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let b=this.regExpMap.get(a);if(void 0!==b)return b;let c=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,c),this.regExpQueue.push(a),c}}let q=[" ",",","?","!",";"],r=new p(20),s=(a,b,c=".")=>{if(!a)return;if(a[b]){if(!Object.prototype.hasOwnProperty.call(a,b))return;return a[b]}let d=b.split(c),e=a;for(let a=0;a<d.length;){let b;if(!e||"object"!=typeof e)return;let f="";for(let g=a;g<d.length;++g)if(g!==a&&(f+=c),f+=d[g],void 0!==(b=e[f])){if(["string","number","boolean"].indexOf(typeof b)>-1&&g<d.length-1)continue;a+=g-a+1;break}e=b}return e},t=a=>a?.replace(/_/g,"-"),u={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,b){console?.[a]?.apply?.(console,b)}};class v{constructor(a,b={}){this.init(a,b)}init(a,b={}){this.prefix=b.prefix||"i18next:",this.logger=a||u,this.options=b,this.debug=b.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,b,c,e){return e&&!this.debug?null:(d(a[0])&&(a[0]=`${c}${this.prefix} ${a[0]}`),this.logger[b](a))}create(a){return new v(this.logger,{...{prefix:`${this.prefix}:${a}:`},...this.options})}clone(a){return(a=a||this.options).prefix=a.prefix||this.prefix,new v(this.logger,a)}}var w=new v;class x{constructor(){this.observers={}}on(a,b){return a.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let c=this.observers[a].get(b)||0;this.observers[a].set(b,c+1)}),this}off(a,b){if(this.observers[a]){if(!b)return void delete this.observers[a];this.observers[a].delete(b)}}emit(a,...b){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(...b)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,d])=>{for(let e=0;e<d;e++)c.apply(c,[a,...b])})}}class y extends x{constructor(a,b={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}removeNamespaces(a){let b=this.options.ns.indexOf(a);b>-1&&this.options.ns.splice(b,1)}getResource(a,b,c,e={}){let f,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,h=void 0!==e.ignoreJSONStructure?e.ignoreJSONStructure:this.options.ignoreJSONStructure;a.indexOf(".")>-1?f=a.split("."):(f=[a,b],c&&(Array.isArray(c)?f.push(...c):d(c)&&g?f.push(...c.split(g)):f.push(c)));let i=l(this.data,f);return(!i&&!b&&!c&&a.indexOf(".")>-1&&(a=f[0],b=f[1],c=f.slice(2).join(".")),!i&&h&&d(c))?s(this.data?.[a]?.[b],c,g):i}addResource(a,b,c,d,e={silent:!1}){let f=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,g=[a,b];c&&(g=g.concat(f?c.split(f):c)),a.indexOf(".")>-1&&(g=a.split("."),d=b,b=g[1]),this.addNamespaces(b),k(this.data,g,d),e.silent||this.emit("added",a,b,c,d)}addResources(a,b,c,e={silent:!1}){for(let e in c)(d(c[e])||Array.isArray(c[e]))&&this.addResource(a,b,e,c[e],{silent:!0});e.silent||this.emit("added",a,b,c)}addResourceBundle(a,b,c,d,e,f={silent:!1,skipCopy:!1}){let g=[a,b];a.indexOf(".")>-1&&(g=a.split("."),d=c,c=b,b=g[1]),this.addNamespaces(b);let h=l(this.data,g)||{};f.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?m(h,c,e):h={...h,...c},k(this.data,g,h),f.silent||this.emit("added",a,b,c)}removeResourceBundle(a,b){this.hasResourceBundle(a,b)&&delete this.data[a][b],this.removeNamespaces(b),this.emit("removed",a,b)}hasResourceBundle(a,b){return void 0!==this.getResource(a,b)}getResourceBundle(a,b){return b||(b=this.options.defaultNS),this.getResource(a,b)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let b=this.getDataByLanguage(a);return!!(b&&Object.keys(b)||[]).find(a=>b[a]&&Object.keys(b[a]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,b,c,d,e){return a.forEach(a=>{b=this.processors[a]?.process(b,c,d,e)??b}),b}};let A=Symbol("i18next/PATH_KEY");function B(a,b){let c,d,e,{[A]:f}=a((d=[],(e=Object.create(null)).get=(a,b)=>(c?.revoke?.(),b===A)?d:(d.push(b),(c=Proxy.revocable(a,e)).proxy),Proxy.revocable(Object.create(null),e).proxy)),g=b?.keySeparator??".",h=b?.nsSeparator??":";if(f.length>1&&h){let a=b?.ns,c=Array.isArray(a)?a:null;if(c&&c.length>1&&c.slice(1).includes(f[0]))return`${f[0]}${h}${f.slice(1).join(g)}`}return f.join(g)}let C={},D=a=>!d(a)&&"boolean"!=typeof a&&"number"!=typeof a;class E extends x{constructor(a,b={}){super(),((a,b,c)=>{a.forEach(a=>{b[a]&&(c[a]=b[a])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,b={interpolation:{}}){let c={...b};if(null==a)return!1;let d=this.resolve(a,c);if(d?.res===void 0)return!1;let e=D(d.res);return!1!==c.returnObjects||!e}extractFromKey(a,b){let c=void 0!==b.nsSeparator?b.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let e=void 0!==b.keySeparator?b.keySeparator:this.options.keySeparator,f=b.ns||this.options.defaultNS||[],g=c&&a.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!b.keySeparator&&!this.options.userDefinedNsSeparator&&!b.nsSeparator&&!((a,b,c)=>{b=b||"",c=c||"";let d=q.filter(a=>0>b.indexOf(a)&&0>c.indexOf(a));if(0===d.length)return!0;let e=r.getRegExp(`(${d.map(a=>"?"===a?"\\?":a).join("|")})`),f=!e.test(a);if(!f){let b=a.indexOf(c);b>0&&!e.test(a.substring(0,b))&&(f=!0)}return f})(a,c,e);if(g&&!h){let b=a.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:a,namespaces:d(f)?[f]:f};let g=a.split(c);(c!==e||c===e&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),a=g.join(e)}return{key:a,namespaces:d(f)?[f]:f}}translate(a,b,c){let e="object"==typeof b?{...b}:b;if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==a)return"";"function"==typeof a&&(a=B(a,{...this.options,...e})),Array.isArray(a)||(a=[String(a)]),a=a.map(a=>"function"==typeof a?B(a,{...this.options,...e}):String(a));let f=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:h,namespaces:i}=this.extractFromKey(a[a.length-1],e),j=i[i.length-1],k=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===k&&(k=":");let l=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?f?{res:`${j}${k}${h}`,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:`${j}${k}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:h;let n=this.resolve(a,e),o=n?.res,p=n?.usedKey||h,q=n?.exactUsedKey||h,r=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,s=!this.i18nFormat||this.i18nFormat.handleAsObject,t=void 0!==e.count&&!d(e.count),u=E.hasDefaultValue(e),v=t?this.pluralResolver.getSuffix(l,e.count,e):"",w=e.ordinal&&t?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",x=t&&!e.ordinal&&0===e.count,y=x&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${v}`]||e[`defaultValue${w}`]||e.defaultValue,z=o;s&&!o&&u&&(z=y);let A=D(z),C=Object.prototype.toString.apply(z);if(s&&z&&A&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(C)&&!(d(r)&&Array.isArray(z))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let a=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,z,{...e,ns:i}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(n.res=a,n.usedParams=this.getUsedParamsDetails(e),n):a}if(g){let a=Array.isArray(z),b=a?[]:{},c=a?q:p;for(let a in z)if(Object.prototype.hasOwnProperty.call(z,a)){let d=`${c}${g}${a}`;u&&!o?b[a]=this.translate(d,{...e,defaultValue:D(y)?y[a]:void 0,...{joinArrays:!1,ns:i}}):b[a]=this.translate(d,{...e,joinArrays:!1,ns:i}),b[a]===d&&(b[a]=z[a])}o=b}}else if(s&&d(r)&&Array.isArray(o))(o=o.join(r))&&(o=this.extendTranslation(o,a,e,c));else{let b=!1,d=!1;!this.isValidLookup(o)&&u&&(b=!0,o=y),this.isValidLookup(o)||(d=!0,o=h);let f=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:o,i=u&&y!==o&&this.options.updateMissing;if(d||b||i){if(this.logger.log(i?"updateKey":"missingKey",l,j,h,i?y:o),g){let a=this.resolve(h,{...e,keySeparator:!1});a&&a.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let a=[],b=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&b&&b[0])for(let c=0;c<b.length;c++)a.push(b[c]);else"all"===this.options.saveMissingTo?a=this.languageUtils.toResolveHierarchy(e.lng||this.language):a.push(e.lng||this.language);let c=(a,b,c)=>{let d=u&&c!==o?c:f;this.options.missingKeyHandler?this.options.missingKeyHandler(a,j,b,d,i,e):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(a,j,b,d,i,e),this.emit("missingKey",a,j,b,o)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t?a.forEach(a=>{let b=this.pluralResolver.getSuffixes(a,e);x&&e[`defaultValue${this.options.pluralSeparator}zero`]&&0>b.indexOf(`${this.options.pluralSeparator}zero`)&&b.push(`${this.options.pluralSeparator}zero`),b.forEach(b=>{c([a],h+b,e[`defaultValue${b}`]||y)})}):c(a,h,y))}o=this.extendTranslation(o,a,e,n,c),d&&o===h&&this.options.appendNamespaceToMissingKey&&(o=`${j}${k}${h}`),(d||b)&&this.options.parseMissingKeyHandler&&(o=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${j}${k}${h}`:h,b?o:void 0,e))}return f?(n.res=o,n.usedParams=this.getUsedParamsDetails(e),n):o}extendTranslation(a,b,c,e,f){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||e.usedLng,e.usedNS,e.usedKey,{resolved:e});else if(!c.skipInterpolation){let g;c.interpolation&&this.interpolator.init({...c,...{interpolation:{...this.options.interpolation,...c.interpolation}}});let h=d(a)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(h){let b=a.match(this.interpolator.nestingRegexp);g=b&&b.length}let i=c.replace&&!d(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),a=this.interpolator.interpolate(a,i,c.lng||this.language||e.usedLng,c),h){let b=a.match(this.interpolator.nestingRegexp);g<(b&&b.length)&&(c.nest=!1)}!c.lng&&e&&e.res&&(c.lng=this.language||e.usedLng),!1!==c.nest&&(a=this.interpolator.nest(a,(...a)=>f?.[0]!==a[0]||c.context?this.translate(...a,b):(this.logger.warn(`It seems you are nesting recursively key: ${a[0]} in key: ${b[0]}`),null),c)),c.interpolation&&this.interpolator.reset()}let g=c.postProcess||this.options.postProcess,h=d(g)?[g]:g;return null!=a&&h?.length&&!1!==c.applyPostProcessor&&(a=z.handle(h,a,b,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...e,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),a}resolve(a,b={}){let c,e,f,g,h;return d(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(a=>"function"==typeof a?B(a,{...this.options,...b}):a)),a.forEach(a=>{if(this.isValidLookup(c))return;let i=this.extractFromKey(a,b),j=i.key;e=j;let k=i.namespaces;this.options.fallbackNS&&(k=k.concat(this.options.fallbackNS));let l=void 0!==b.count&&!d(b.count),m=l&&!b.ordinal&&0===b.count,n=void 0!==b.context&&(d(b.context)||"number"==typeof b.context)&&""!==b.context,o=b.lngs?b.lngs:this.languageUtils.toResolveHierarchy(b.lng||this.language,b.fallbackLng);k.forEach(a=>{this.isValidLookup(c)||(h=a,!C[`${o[0]}-${a}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(C[`${o[0]}-${a}`]=!0,this.logger.warn(`key "${e}" for languages "${o.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),o.forEach(d=>{let e;if(this.isValidLookup(c))return;g=d;let h=[j];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(h,j,d,a,b);else{let a;l&&(a=this.pluralResolver.getSuffix(d,b.count,b));let c=`${this.options.pluralSeparator}zero`,e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.ordinal&&0===a.indexOf(e)&&h.push(j+a.replace(e,this.options.pluralSeparator)),h.push(j+a),m&&h.push(j+c)),n){let d=`${j}${this.options.contextSeparator||"_"}${b.context}`;h.push(d),l&&(b.ordinal&&0===a.indexOf(e)&&h.push(d+a.replace(e,this.options.pluralSeparator)),h.push(d+a),m&&h.push(d+c))}}for(;e=h.pop();)this.isValidLookup(c)||(f=e,c=this.getResource(d,a,e,b))}))})}),{res:c,usedKey:e,exactUsedKey:f,usedLng:g,usedNS:h}}isValidLookup(a){return void 0!==a&&!(!this.options.returnNull&&null===a)&&!(!this.options.returnEmptyString&&""===a)}getResource(a,b,c,d={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,b,c,d):this.resourceStore.getResource(a,b,c,d)}getUsedParamsDetails(a={}){let b=a.replace&&!d(a.replace),c=b?a.replace:a;if(b&&void 0!==a.count&&(c.count=a.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!b)for(let a of(c={...c},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete c[a];return c}static hasDefaultValue(a){let b="defaultValue";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b===c.substring(0,b.length)&&void 0!==a[c])return!0;return!1}}class F{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return null;let b=a.split("-");return 2===b.length||(b.pop(),"x"===b[b.length-1].toLowerCase())?null:this.formatLanguageCode(b.join("-"))}getLanguagePartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return a;let b=a.split("-");return this.formatLanguageCode(b[0])}formatLanguageCode(a){if(d(a)&&a.indexOf("-")>-1){let b;try{b=Intl.getCanonicalLocales(a)[0]}catch(a){}return(b&&this.options.lowerCaseLng&&(b=b.toLowerCase()),b)?b:this.options.lowerCaseLng?a.toLowerCase():a}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){let b;return a?(a.forEach(a=>{if(b)return;let c=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(c))&&(b=c)}),!b&&this.options.supportedLngs&&a.forEach(a=>{if(b)return;let c=this.getScriptPartFromCode(a);if(this.isSupportedCode(c))return b=c;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return b=d;b=this.options.supportedLngs.find(a=>{if(a===d||!(0>a.indexOf("-")&&0>d.indexOf("-"))&&(a.indexOf("-")>0&&0>d.indexOf("-")&&a.substring(0,a.indexOf("-"))===d||0===a.indexOf(d)&&d.length>1))return a})}),b||(b=this.getFallbackCodes(this.options.fallbackLng)[0]),b):null}getFallbackCodes(a,b){if(!a)return[];if("function"==typeof a&&(a=a(b)),d(a)&&(a=[a]),Array.isArray(a))return a;if(!b)return a.default||[];let c=a[b];return c||(c=a[this.getScriptPartFromCode(b)]),c||(c=a[this.formatLanguageCode(b)]),c||(c=a[this.getLanguagePartFromCode(b)]),c||(c=a.default),c||[]}toResolveHierarchy(a,b){let c=this.getFallbackCodes((!1===b?[]:b)||this.options.fallbackLng||[],a),e=[],f=a=>{a&&(this.isSupportedCode(a)?e.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return d(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?("languageOnly"!==this.options.load&&f(this.formatLanguageCode(a)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&f(this.getScriptPartFromCode(a)),"currentOnly"!==this.options.load&&f(this.getLanguagePartFromCode(a))):d(a)&&f(this.formatLanguageCode(a)),c.forEach(a=>{0>e.indexOf(a)&&f(this.formatLanguageCode(a))}),e}}let G={zero:0,one:1,two:2,few:3,many:4,other:5},H={select:a=>1===a?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class I{constructor(a,b={}){this.languageUtils=a,this.options=b,this.logger=w.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,b={}){let c,d=t("dev"===a?"en":a),e=b.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:d,type:e});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];try{c=new Intl.PluralRules(d,{type:e})}catch(e){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),H;if(!a.match(/-|_/))return H;let d=this.languageUtils.getLanguagePartFromCode(a);c=this.getRule(d,b)}return this.pluralRulesCache[f]=c,c}needsPlural(a,b={}){let c=this.getRule(a,b);return c||(c=this.getRule("dev",b)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,b,c={}){return this.getSuffixes(a,c).map(a=>`${b}${a}`)}getSuffixes(a,b={}){let c=this.getRule(a,b);return(c||(c=this.getRule("dev",b)),c)?c.resolvedOptions().pluralCategories.sort((a,b)=>G[a]-G[b]).map(a=>`${this.options.prepend}${b.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(a,b,c={}){let d=this.getRule(a,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(b)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",b,c))}}let J=(a,b,c,e=".",f=!0)=>{let g,h=void 0!==(g=l(a,c))?g:l(b,c);return!h&&f&&d(c)&&void 0===(h=s(a,c,e))&&(h=s(b,c,e)),h};class K{constructor(a={}){this.logger=w.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(a=>a),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:b,escapeValue:c,useRawValueToEscape:d,prefix:e,prefixEscaped:f,suffix:g,suffixEscaped:h,formatSeparator:i,unescapeSuffix:j,unescapePrefix:k,nestingPrefix:l,nestingPrefixEscaped:m,nestingSuffix:n,nestingSuffixEscaped:p,nestingOptionsSeparator:q,maxReplaces:r,alwaysFormat:s}=a.interpolation;this.escape=void 0!==b?b:o,this.escapeValue=void 0===c||c,this.useRawValueToEscape=void 0!==d&&d,this.prefix=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||"{{",this.suffix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||"}}",this.formatSeparator=i||",",this.unescapePrefix=j?"":k||"-",this.unescapeSuffix=this.unescapePrefix?"":j||"",this.nestingPrefix=l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=q||",",this.maxReplaces=r||1e3,this.alwaysFormat=void 0!==s&&s,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(a,b)=>a?.source===b?(a.lastIndex=0,a):RegExp(b,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,b,c,e){let g,h,i,j=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},k=a=>{if(0>a.indexOf(this.formatSeparator)){let d=J(b,j,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,c,{...e,...b,interpolationkey:a}):d}let d=a.split(this.formatSeparator),f=d.shift().trim(),g=d.join(this.formatSeparator).trim();return this.format(J(b,j,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,c,{...e,...b,interpolationkey:f})};this.resetRegExp();let l=e?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=e?.interpolation?.skipOnVariables!==void 0?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>a.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:a=>this.escapeValue?this.escape(a).replace(/\$/g,"$$$$"):a.replace(/\$/g,"$$$$")}].forEach(b=>{for(i=0;g=b.regex.exec(a);){let c=g[1].trim();if(void 0===(h=k(c)))if("function"==typeof l){let b=l(a,g,e);h=d(b)?b:""}else if(e&&Object.prototype.hasOwnProperty.call(e,c))h="";else if(m){h=g[0];continue}else this.logger.warn(`missed to pass in variable ${c} for interpolating ${a}`),h="";else d(h)||this.useRawValueToEscape||(h=f(h));let j=b.safeValue(h);if(a=a.replace(g[0],j),m?(b.regex.lastIndex+=h.length,b.regex.lastIndex-=g[0].length):b.regex.lastIndex=0,++i>=this.maxReplaces)break}}),a}nest(a,b,c={}){let e,g,h,i=(a,b)=>{let c=this.nestingOptionsSeparator;if(0>a.indexOf(c))return a;let d=a.split(RegExp(`${c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),e=`{${d[1]}`;a=d[0];let f=(e=this.interpolate(e,h)).match(/'/g),g=e.match(/"/g);((f?.length??0)%2!=0||g)&&(g?.length??0)%2==0||(e=e.replace(/'/g,'"'));try{h=JSON.parse(e),b&&(h={...b,...h})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,b),`${a}${c}${e}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,a};for(;e=this.nestingRegexp.exec(a);){let j=[];(h=(h={...c}).replace&&!d(h.replace)?h.replace:h).applyPostProcessor=!1,delete h.defaultValue;let k=/{.*}/.test(e[1])?e[1].lastIndexOf("}")+1:e[1].indexOf(this.formatSeparator);if(-1!==k&&(j=e[1].slice(k).split(this.formatSeparator).map(a=>a.trim()).filter(Boolean),e[1]=e[1].slice(0,k)),(g=b(i.call(this,e[1].trim(),h),h))&&e[0]===a&&!d(g))return g;d(g)||(g=f(g)),g||(this.logger.warn(`missed to resolve ${e[1]} for nesting ${a}`),g=""),j.length&&(g=j.reduce((a,b)=>this.format(a,b,c.lng,{...c,interpolationkey:e[1].trim()}),g.trim())),a=a.replace(e[0],g),this.regexp.lastIndex=0}return a}}let L=a=>{let b={};return(c,d,e)=>{let f=e;e&&e.interpolationkey&&e.formatParams&&e.formatParams[e.interpolationkey]&&e[e.interpolationkey]&&(f={...f,[e.interpolationkey]:void 0});let g=d+JSON.stringify(f),h=b[g];return h||(h=a(t(d),e),b[g]=h),h(c)}},M=a=>(b,c,d)=>a(t(c),d)(b);class N{constructor(a={}){this.logger=w.create("formatter"),this.options=a,this.init(a)}init(a,b={interpolation:{}}){this.formatSeparator=b.interpolation.formatSeparator||",";let c=b.cacheInBuiltFormats?L:M;this.formats={number:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b});return a=>c.format(a)}),currency:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b,style:"currency"});return a=>c.format(a)}),datetime:c((a,b)=>{let c=new Intl.DateTimeFormat(a,{...b});return a=>c.format(a)}),relativetime:c((a,b)=>{let c=new Intl.RelativeTimeFormat(a,{...b});return a=>c.format(a,b.range||"day")}),list:c((a,b)=>{let c=new Intl.ListFormat(a,{...b});return a=>c.format(a)})}}add(a,b){this.formats[a.toLowerCase().trim()]=b}addCached(a,b){this.formats[a.toLowerCase().trim()]=L(b)}format(a,b,c,d={}){let e=b.split(this.formatSeparator);if(e.length>1&&e[0].indexOf("(")>1&&0>e[0].indexOf(")")&&e.find(a=>a.indexOf(")")>-1)){let a=e.findIndex(a=>a.indexOf(")")>-1);e[0]=[e[0],...e.splice(1,a)].join(this.formatSeparator)}return e.reduce((a,b)=>{let{formatName:e,formatOptions:f}=(a=>{let b=a.toLowerCase().trim(),c={};if(a.indexOf("(")>-1){let d=a.split("(");b=d[0].toLowerCase().trim();let e=d[1].substring(0,d[1].length-1);"currency"===b&&0>e.indexOf(":")?c.currency||(c.currency=e.trim()):"relativetime"===b&&0>e.indexOf(":")?c.range||(c.range=e.trim()):e.split(";").forEach(a=>{if(a){let[b,...d]=a.split(":"),e=d.join(":").trim().replace(/^'+|'+$/g,""),f=b.trim();c[f]||(c[f]=e),"false"===e&&(c[f]=!1),"true"===e&&(c[f]=!0),isNaN(e)||(c[f]=parseInt(e,10))}})}return{formatName:b,formatOptions:c}})(b);if(this.formats[e]){let b=a;try{let g=d?.formatParams?.[d.interpolationkey]||{},h=g.locale||g.lng||d.locale||d.lng||c;b=this.formats[e](a,h,{...f,...d,...g})}catch(a){this.logger.warn(a)}return b}return this.logger.warn(`there was no format function for ${e}`),a},a)}}class O extends x{constructor(a,b,c,d={}){super(),this.backend=a,this.store=b,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,d.backend,d)}queueLoad(a,b,c,d){let e={},f={},g={},h={};return a.forEach(a=>{let d=!0;b.forEach(b=>{let g=`${a}|${b}`;!c.reload&&this.store.hasResourceBundle(a,b)?this.state[g]=2:this.state[g]<0||(1===this.state[g]?void 0===f[g]&&(f[g]=!0):(this.state[g]=1,d=!1,void 0===f[g]&&(f[g]=!0),void 0===e[g]&&(e[g]=!0),void 0===h[b]&&(h[b]=!0)))}),d||(g[a]=!0)}),(Object.keys(e).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(e),pending:Object.keys(f),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(h)}}loaded(a,b,c){let d=a.split("|"),e=d[0],f=d[1];b&&this.emit("failedLoading",e,f,b),!b&&c&&this.store.addResourceBundle(e,f,c,void 0,void 0,{skipCopy:!0}),this.state[a]=b?-1:2,b&&c&&(this.state[a]=0);let g={};this.queue.forEach(c=>{((a,b,c,d)=>{let{obj:e,k:f}=j(a,b,Object);e[f]=e[f]||[],e[f].push(c)})(c.loaded,[e],f),void 0!==c.pending[a]&&(delete c.pending[a],c.pendingCount--),b&&c.errors.push(b),0!==c.pendingCount||c.done||(Object.keys(c.loaded).forEach(a=>{g[a]||(g[a]={});let b=c.loaded[a];b.length&&b.forEach(b=>{void 0===g[a][b]&&(g[a][b]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(a=>!a.done)}read(a,b,c,d=0,e=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:a,ns:b,fcName:c,tried:d,wait:e,callback:f});this.readingCalls++;let g=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let a=this.waitingReads.shift();this.read(a.lng,a.ns,a.fcName,a.tried,a.wait,a.callback)}g&&h&&d<this.maxRetries?setTimeout(()=>{this.read.call(this,a,b,c,d+1,2*e,f)},e):f(g,h)},h=this.backend[c].bind(this.backend);if(2===h.length){try{let c=h(a,b);c&&"function"==typeof c.then?c.then(a=>g(null,a)).catch(g):g(null,c)}catch(a){g(a)}return}return h(a,b,g)}prepareLoading(a,b,c={},e){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),e&&e();d(a)&&(a=this.languageUtils.toResolveHierarchy(a)),d(b)&&(b=[b]);let f=this.queueLoad(a,b,c,e);if(!f.toLoad.length)return f.pending.length||e(),null;f.toLoad.forEach(a=>{this.loadOne(a)})}load(a,b,c){this.prepareLoading(a,b,{},c)}reload(a,b,c){this.prepareLoading(a,b,{reload:!0},c)}loadOne(a,b=""){let c=a.split("|"),d=c[0],e=c[1];this.read(d,e,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${b}loading namespace ${e} for language ${d} failed`,c),!c&&f&&this.logger.log(`${b}loaded namespace ${e} for language ${d}`,f),this.loaded(a,c,f)})}saveMissing(a,b,c,d,e,f={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(b))return void this.logger.warn(`did not save key "${c}" as the namespace "${b}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=c&&""!==c){if(this.backend?.create){let h={...f,isUpdate:e},i=this.backend.create.bind(this.backend);if(i.length<6)try{let e;(e=5===i.length?i(a,b,c,d,h):i(a,b,c,d))&&"function"==typeof e.then?e.then(a=>g(null,a)).catch(g):g(null,e)}catch(a){g(a)}else i(a,b,c,d,g,h)}a&&a[0]&&this.store.addResource(a[0],b,c,d)}}}let P=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let b={};if("object"==typeof a[1]&&(b=a[1]),d(a[1])&&(b.defaultValue=a[1]),d(a[2])&&(b.tDescription=a[2]),"object"==typeof a[2]||"object"==typeof a[3]){let c=a[3]||a[2];Object.keys(c).forEach(a=>{b[a]=c[a]})}return b},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Q=a=>(d(a.ns)&&(a.ns=[a.ns]),d(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),d(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),"boolean"==typeof a.initImmediate&&(a.initAsync=a.initImmediate),a),R=()=>{},S="__i18next_supportNoticeShown";class T extends x{constructor(a={},b){if(super(),this.options=Q(a),this.services={},this.logger=w,this.modules={external:[]},(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(b=>{"function"==typeof a[b]&&(a[b]=a[b].bind(a))})})(this),b&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,b),this;setTimeout(()=>{this.init(a,b)},0)}}init(a={},b){this.isInitializing=!0,"function"==typeof a&&(b=a,a={}),null==a.defaultNS&&a.ns&&(d(a.ns)?a.defaultNS=a.ns:0>a.ns.indexOf("translation")&&(a.defaultNS=a.ns[0]));let c=P();this.options={...c,...this.options,...Q(a)},this.options.interpolation={...c.interpolation,...this.options.interpolation},void 0!==a.keySeparator&&(this.options.userDefinedKeySeparator=a.keySeparator),void 0!==a.nsSeparator&&(this.options.userDefinedNsSeparator=a.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),!1!==this.options.showSupportNotice&&!(this?.modules?.backend?.name?.indexOf("Locize")>0||this?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||this?.options?.backend?.backends&&this.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||this?.options?.backend?.projectId||this?.options?.backend?.backendOptions&&this.options.backend.backendOptions.some(a=>a?.projectId))&&1&&!("u">typeof globalThis&&globalThis[S]||"u">typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"u">typeof process&&process.env&&1)&&("u">typeof console&&void 0!==console.info&&console.info("\uD83C\uDF10 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \uD83D\uDC99"),"u">typeof globalThis&&(globalThis[S]=!0));let f=a=>a?"function"==typeof a?new a:a:null;if(!this.options.isClone){let a;this.modules.logger?w.init(f(this.modules.logger),this.options):w.init(null,this.options),a=this.modules.formatter?this.modules.formatter:N;let b=new F(this.options);this.store=new y(this.options.resources,this.options);let d=this.services;d.logger=w,d.resourceStore=this.store,d.languageUtils=b,d.pluralResolver=new I(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),a&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(d.formatter=f(a),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new K(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new O(f(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.languageDetector&&(d.languageDetector=f(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=f(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.external.forEach(a=>{a.init&&a.init(this)})}if(this.format=this.options.interpolation.format,b||(b=R),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(a=>{this[a]=(...b)=>this.store[a](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(a=>{this[a]=(...b)=>(this.store[a](...b),this)});let g=e(),h=()=>{let a=(a,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(c),b(a,c)};if(this.languages&&!this.isInitialized)return a(null,this.t.bind(this));this.changeLanguage(this.options.lng,a)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),g}loadResources(a,b=R){let c=b,e=d(a)?a:this.language;if("function"==typeof a&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(e?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return c();let a=[],b=b=>{b&&"cimode"!==b&&this.services.languageUtils.toResolveHierarchy(b).forEach(b=>{"cimode"!==b&&0>a.indexOf(b)&&a.push(b)})};e?b(e):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>b(a)),this.options.preload?.forEach?.(a=>b(a)),this.services.backendConnector.load(a,this.options.ns,a=>{a||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),c(a)})}else c(null)}reloadResources(a,b,c){let d=e();return"function"==typeof a&&(c=a,a=void 0),"function"==typeof b&&(c=b,b=void 0),a||(a=this.languages),b||(b=this.options.ns),c||(c=R),this.services.backendConnector.reload(a,b,a=>{d.resolve(),c(a)}),d}use(a){if(!a)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===a.type&&(this.modules.backend=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"i18nFormat"===a.type&&(this.modules.i18nFormat=a),"postProcessor"===a.type&&z.addPostProcessor(a),"formatter"===a.type&&(this.modules.formatter=a),"3rdParty"===a.type&&this.modules.external.push(a),this}setResolvedLanguage(a){if(a&&this.languages&&!(["cimode","dev"].indexOf(a)>-1)){for(let a=0;a<this.languages.length;a++){let b=this.languages[a];if(!(["cimode","dev"].indexOf(b)>-1)&&this.store.hasLanguageSomeTranslations(b)){this.resolvedLanguage=b;break}}!this.resolvedLanguage&&0>this.languages.indexOf(a)&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,b){this.isLanguageChangingTo=a;let c=e();this.emit("languageChanging",a);let f=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},g=(d,e)=>{e?this.isLanguageChangingTo===a&&(f(e),this.translator.changeLanguage(e),this.isLanguageChangingTo=void 0,this.emit("languageChanged",e),this.logger.log("languageChanged",e)):this.isLanguageChangingTo=void 0,c.resolve((...a)=>this.t(...a)),b&&b(d,(...a)=>this.t(...a))},h=b=>{a||b||!this.services.languageDetector||(b=[]);let c=d(b)?b:b&&b[0],e=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(d(b)?[b]:b);e&&(this.language||f(e),this.translator.language||this.translator.changeLanguage(e),this.services.languageDetector?.cacheUserLanguage?.(e)),this.loadResources(e,a=>{g(a,e)})};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a):h(this.services.languageDetector.detect()),c}getFixedT(a,b,c){let e=(a,b,...d)=>{let f,g;(f="object"!=typeof b?this.options.overloadTranslationOptionHandler([a,b].concat(d)):{...b}).lng=f.lng||e.lng,f.lngs=f.lngs||e.lngs,f.ns=f.ns||e.ns,""!==f.keyPrefix&&(f.keyPrefix=f.keyPrefix||c||e.keyPrefix);let h={...this.options,...f};"function"==typeof f.keyPrefix&&(f.keyPrefix=B(f.keyPrefix,h));let i=this.options.keySeparator||".";return f.keyPrefix&&Array.isArray(a)?g=a.map(a=>("function"==typeof a&&(a=B(a,h)),`${f.keyPrefix}${i}${a}`)):("function"==typeof a&&(a=B(a,h)),g=f.keyPrefix?`${f.keyPrefix}${i}${a}`:a),this.t(g,f)};return d(a)?e.lng=a:e.lngs=a,e.ns=b,e.keyPrefix=c,e}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,b={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let c=b.lng||this.resolvedLanguage||this.languages[0],d=!!this.options&&this.options.fallbackLng,e=this.languages[this.languages.length-1];if("cimode"===c.toLowerCase())return!0;let f=(a,b)=>{let c=this.services.backendConnector.state[`${a}|${b}`];return -1===c||0===c||2===c};if(b.precheck){let a=b.precheck(this,f);if(void 0!==a)return a}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(c,a)&&(!d||f(e,a)))}loadNamespaces(a,b){let c=e();return this.options.ns?(d(a)&&(a=[a]),a.forEach(a=>{0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}loadLanguages(a,b){let c=e();d(a)&&(a=[a]);let f=this.options.preload||[],g=a.filter(a=>0>f.indexOf(a)&&this.services.languageUtils.isSupportedCode(a));return g.length?(this.options.preload=f.concat(g),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{let b=new Intl.Locale(a);if(b&&b.getTextInfo){let a=b.getTextInfo();if(a&&a.direction)return a.direction}}catch(a){}let b=this.services?.languageUtils||new F(P());return a.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(b.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},b){let c=new T(a,b);return c.createInstance=T.createInstance,c}cloneInstance(a={},b=R){let c=a.forkResourceStore;c&&delete a.forkResourceStore;let d={...this.options,...a,isClone:!0},e=new T(d);if((void 0!==a.debug||void 0!==a.prefix)&&(e.logger=e.logger.clone(a)),["store","services","language"].forEach(a=>{e[a]=this[a]}),e.services={...this.services},e.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},c&&(e.store=new y(Object.keys(this.store.data).reduce((a,b)=>(a[b]={...this.store.data[b]},a[b]=Object.keys(a[b]).reduce((c,d)=>(c[d]={...a[b][d]},c),a[b]),a),{}),d),e.services.resourceStore=e.store),a.interpolation){let b={...P().interpolation,...this.options.interpolation,...a.interpolation},c={...d,interpolation:b};e.services.interpolator=new K(c)}return e.translator=new E(e.services,d),e.translator.on("*",(a,...b)=>{e.emit(a,...b)}),e.init(d,b),e.translator.options=d,e.translator.backendConnector.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},e}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let U=T.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages},890:(a,b,c)=>{"use strict";c.d(b,{L2:()=>D,Rg:()=>h,_0:()=>E,_J:()=>B,ck:()=>i,it:()=>w});var d=c(32891),e=Object.defineProperty,f="textStyle",g=/^\s*([-+*])\s$/,h=d.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:a}){return["ul",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list",parseMarkdown:(a,b)=>"list"!==a.type||a.ordered?[]:{type:"bulletList",content:a.items?b.parseChildren(a.items):[]},renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:a,chain:b})=>this.options.keepAttributes?b().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(f)).run():a.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let a=(0,d.tG)({find:g,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(a=(0,d.tG)({find:g,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(f),editor:this.editor})),[a]}}),i=d.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:a}){return["li",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list_item",parseMarkdown:(a,b)=>{var c;if("list_item"!==a.type)return[];let d=null!=(c=b.parseBlockChildren)?c:b.parseChildren,e=[];if(a.tokens&&a.tokens.length>0)if(a.tokens.some(a=>"paragraph"===a.type))e=d(a.tokens);else{let c=a.tokens[0];if(c&&"text"===c.type&&c.tokens&&c.tokens.length>0){if(e=[{type:"paragraph",content:b.parseInline(c.tokens)}],a.tokens.length>1){let b=d(a.tokens.slice(1));e.push(...b)}}else e=d(a.tokens)}return 0===e.length&&(e=[{type:"paragraph",content:[]}]),{type:"listItem",content:e}},renderMarkdown:(a,b,c)=>(0,d.kj)(a,b,a=>{var b,c;if("bulletList"===a.parentType)return"- ";if("orderedList"===a.parentType){let d=(null==(c=null==(b=a.meta)?void 0:b.parentAttrs)?void 0:c.start)||1;return`${d+a.index}. `}return"- "},c),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),j={},k={findListItemPos:()=>m,getNextListDepth:()=>n,handleBackspace:()=>r,handleDelete:()=>u,hasListBefore:()=>o,hasListItemAfter:()=>v,hasListItemBefore:()=>p,listItemHasSubList:()=>q,nextListIsDeeper:()=>s,nextListIsHigher:()=>t};for(var l in k)e(j,l,{get:k[l],enumerable:!0});var m=(a,b)=>{let{$from:c}=b.selection,e=(0,d.Pg)(a,b.schema),f=c.depth,g=c.pos,h=null;for(;f>0&&null===h;)c.node(f).type===e?h=f:(f-=1,g-=1);return null===h?null:{$pos:b.doc.resolve(g),depth:h}},n=(a,b)=>{let c=m(a,b);if(!c)return!1;let[,e]=(0,d.fl)(b,a,c.$pos.pos+4);return e},o=(a,b,c)=>{let{$anchor:d}=a.selection,e=Math.max(0,d.pos-2),f=a.doc.resolve(e).node();return!!f&&!!c.includes(f.type.name)},p=(a,b)=>{var c;let{$anchor:d}=b.selection,e=b.doc.resolve(d.pos-2);return 0!==e.index()&&(null==(c=e.nodeBefore)?void 0:c.type.name)===a},q=(a,b,c)=>{if(!c)return!1;let e=(0,d.Pg)(a,b.schema),f=!1;return c.descendants(a=>{a.type===e&&(f=!0)}),f},r=(a,b,c)=>{if(a.commands.undoInputRule())return!0;if(a.state.selection.from!==a.state.selection.to)return!1;if(!(0,d.rU)(a.state,b)&&o(a.state,b,c)){let{$anchor:c}=a.state.selection,d=a.state.doc.resolve(c.before()-1),e=[];d.node().descendants((a,c)=>{a.type.name===b&&e.push({node:a,pos:c})});let f=e.at(-1);if(!f)return!1;let g=a.state.doc.resolve(d.start()+f.pos+1);return a.chain().cut({from:c.start()-1,to:c.end()+1},g.end()).joinForward().run()}if(!(0,d.rU)(a.state,b)||!(0,d.J_)(a.state))return!1;let e=m(b,a.state);if(!e)return!1;let f=a.state.doc.resolve(e.$pos.pos-2).node(e.depth),g=q(b,a.state,f);return p(b,a.state)&&!g?a.commands.joinItemBackward():a.chain().liftListItem(b).run()},s=(a,b)=>{let c=n(a,b),d=m(a,b);return!!d&&!!c&&c>d.depth},t=(a,b)=>{let c=n(a,b),d=m(a,b);return!!d&&!!c&&c<d.depth},u=(a,b)=>{if(!(0,d.rU)(a.state,b)||!(0,d.QN)(a.state,b))return!1;let{selection:c}=a.state,{$from:e,$to:f}=c;return!(!c.empty&&e.sameParent(f))&&(s(b,a.state)?a.chain().focus(a.state.selection.from+4).lift(b).joinBackward().run():t(b,a.state)?a.chain().joinForward().joinBackward().run():a.commands.joinItemForward())},v=(a,b)=>{var c;let{$anchor:d}=b.selection,e=b.doc.resolve(d.pos-d.parentOffset-2);return e.index()!==e.parent.childCount-1&&(null==(c=e.nodeAfter)?void 0:c.type.name)===a},w=d.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c})=>{void 0!==a.state.schema.nodes[c]&&u(a,c)&&(b=!0)}),b},"Mod-Delete":({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c})=>{void 0!==a.state.schema.nodes[c]&&u(a,c)&&(b=!0)}),b},Backspace:({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c,wrapperNames:d})=>{void 0!==a.state.schema.nodes[c]&&r(a,c,d)&&(b=!0)}),b},"Mod-Backspace":({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c,wrapperNames:d})=>{void 0!==a.state.schema.nodes[c]&&r(a,c,d)&&(b=!0)}),b}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,y=/^\s/,z="textStyle",A=/^(\d+)\.\s$/,B=d.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:a=>a.hasAttribute("start")?parseInt(a.getAttribute("start")||"",10):1},type:{default:null,parseHTML:a=>a.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:a}){let{start:b,...c}=a;return 1===b?["ol",(0,d.KV)(this.options.HTMLAttributes,c),0]:["ol",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list",parseMarkdown:(a,b)=>{var c;if("list"!==a.type||!a.ordered)return[];let d=a.start||1,e=a.items?(c=a.items,c.map(a=>{if("list_item"!==a.type)return b.parseChildren([a])[0];let c=[];return a.tokens&&a.tokens.length>0&&a.tokens.forEach(a=>{if("paragraph"===a.type||"list"===a.type||"blockquote"===a.type||"code"===a.type)c.push(...b.parseChildren([a]));else if("text"===a.type&&a.tokens){let d=b.parseChildren([a]);c.push({type:"paragraph",content:d})}else{let d=b.parseChildren([a]);d.length>0&&c.push(...d)}}),{type:"listItem",content:c}})):[];return 1!==d?{type:"orderedList",attrs:{start:d},content:e}:{type:"orderedList",content:e}},renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:a=>{let b=a.match(/^(\s*)(\d+)\.\s+/),c=null==b?void 0:b.index;return void 0!==c?c:-1},tokenize:(a,b,c)=>{var d;let e=a.split("\n"),[f,g]=function(a){let b=[],c=0,d=0;for(;c<a.length;){let e=a[c],f=e.match(x);if(!f)break;let[,g,h,i]=f,j=g.length,k=[i],l=c+1,m=[e],n=!1;for(;l<a.length;){let b=a[l];if(b.match(x))break;if(""===b.trim())m.push(b),k.push(""),n=!0,l+=1;else if(b.match(y))m.push(b),k.push(b.slice(j+2)),l+=1;else{if(n)break;m.push(b),k.push(b),l+=1}}b.push({indent:j,number:parseInt(h,10),content:k.join("\n").trim(),contentLines:k,raw:m.join("\n")}),d=l,c=l}return[b,d]}(e);if(0===f.length)return;let h=function a(b,c,d){let e=[],f=0;for(;f<b.length;){let g=b[f];if(g.indent===c){let{paragraphLines:h,blockLines:i}=function(a){let b=[],c=[],d=!1;return a.forEach(a=>{let e;if(d)return void c.push(a);if(""===a.trim()||b.length>0&&(e=a.trimStart(),/^[-+*]\s+/.test(e)||/^\d+\.\s+/.test(e)||/^>\s?/.test(e)||/^```/.test(e)||/^~~~/.test(e))){d=!0,c.push(a);return}b.push(a)}),{paragraphLines:b,blockLines:c}}(g.contentLines),j=h.join("\n").trim(),k=[];j&&k.push({type:"paragraph",raw:j,tokens:d.inlineTokens(j)});let l=i.join("\n").trim();if(l){let a=d.blockTokens(l);k.push(...a)}let m=f+1,n=[];for(;m<b.length&&b[m].indent>c;)n.push(b[m]),m+=1;if(n.length>0){let b=Math.min(...n.map(a=>a.indent)),c=a(n,b,d);k.push({type:"list",ordered:!0,start:n[0].number,items:c,raw:n.map(a=>a.raw).join("\n")})}e.push({type:"list_item",raw:g.raw,tokens:k}),f=m}else f+=1}return e}(f,0,c);if(0!==h.length)return{type:"list",ordered:!0,start:(null==(d=f[0])?void 0:d.number)||1,items:h,raw:e.slice(0,g).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:a,chain:b})=>this.options.keepAttributes?b().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(z)).run():a.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let a=(0,d.tG)({find:A,type:this.type,getAttributes:a=>({start:+a[1]}),joinPredicate:(a,b)=>b.childCount+b.attrs.start===+a[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(a=(0,d.tG)({find:A,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:a=>({start:+a[1],...this.editor.getAttributes(z)}),joinPredicate:(a,b)=>b.childCount+b.attrs.start===+a[1],editor:this.editor})),[a]}}),C=/^\s*(\[([( |x])?\])\s$/,D=d.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:a=>{let b=a.getAttribute("data-checked");return""===b||"true"===b},renderHTML:a=>({"data-checked":a.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:a,HTMLAttributes:b}){return["li",(0,d.KV)(this.options.HTMLAttributes,b,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:a.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(a,b)=>{let c=[];if(a.tokens&&a.tokens.length>0?c.push(b.createNode("paragraph",{},b.parseInline(a.tokens))):a.text?c.push(b.createNode("paragraph",{},[b.createNode("text",{text:a.text})])):c.push(b.createNode("paragraph",{},[])),a.nestedTokens&&a.nestedTokens.length>0){let d=b.parseChildren(a.nestedTokens);c.push(...d)}return b.createNode("taskItem",{checked:a.checked||!1},c)},renderMarkdown:(a,b)=>{var c;let e=(null==(c=a.attrs)?void 0:c.checked)?"x":" ",f=`- [${e}] `;return(0,d.kj)(a,b,f)},addKeyboardShortcuts(){let a={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...a,Tab:()=>this.editor.commands.sinkListItem(this.name)}:a},addNodeView(){return({node:a,HTMLAttributes:b,getPos:c,editor:e})=>{let f=document.createElement("li"),g=document.createElement("label"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("div"),k=a=>{var b,c;i.ariaLabel=(null==(c=null==(b=this.options.a11y)?void 0:b.checkboxLabel)?void 0:c.call(b,a,i.checked))||`Task item checkbox for ${a.textContent||"empty task item"}`};k(a),g.contentEditable="false",i.type="checkbox",i.addEventListener("mousedown",a=>a.preventDefault()),i.addEventListener("change",b=>{if(!e.isEditable&&!this.options.onReadOnlyChecked){i.checked=!i.checked;return}let{checked:d}=b.target;e.isEditable&&"function"==typeof c&&e.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:a})=>{let b=c();if("number"!=typeof b)return!1;let e=a.doc.nodeAt(b);return a.setNodeMarkup(b,void 0,{...null==e?void 0:e.attrs,checked:d}),!0}).run(),e.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(a,d)||(i.checked=!i.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([a,b])=>{f.setAttribute(a,b)}),f.dataset.checked=a.attrs.checked,i.checked=a.attrs.checked,g.append(i,h),f.append(g,j),Object.entries(b).forEach(([a,b])=>{f.setAttribute(a,b)});let l=new Set(Object.keys(b));return{dom:f,contentDOM:j,update:a=>{if(a.type!==this.type)return!1;f.dataset.checked=a.attrs.checked,i.checked=a.attrs.checked,k(a);let b=e.extensionManager.attributes,c=(0,d.zU)(a,b),g=new Set(Object.keys(c)),h=this.options.HTMLAttributes;return l.forEach(a=>{g.has(a)||(a in h?f.setAttribute(a,h[a]):f.removeAttribute(a))}),Object.entries(c).forEach(([a,b])=>{null==b?a in h?f.setAttribute(a,h[a]):f.removeAttribute(a):f.setAttribute(a,b)}),l=g,!0}}}},addInputRules(){return[(0,d.tG)({find:C,type:this.type,getAttributes:a=>({checked:"x"===a[a.length-1]})})]}}),E=d.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:a}){return["ul",(0,d.KV)(this.options.HTMLAttributes,a,{"data-type":this.name}),0]},parseMarkdown:(a,b)=>b.createNode("taskList",{},b.parseChildren(a.items||[])),renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(a){var b;let c=null==(b=a.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:b.index;return void 0!==c?c:-1},tokenize(a,b,c){let e=a=>{let b=(0,d.Dd)(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:"x"===a[3].toLowerCase()}),createToken:(a,b)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:c.inlineTokens(a.mainContent),nestedTokens:b}),customNestedParser:e},c);return b?[{type:"taskList",raw:b.raw,items:b.items}]:c.blockTokens(a)},f=(0,d.Dd)(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:"x"===a[3].toLowerCase()}),createToken:(a,b)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:c.inlineTokens(a.mainContent),nestedTokens:b}),customNestedParser:e},c);if(f)return{type:"taskList",raw:f.raw,items:f.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:a})=>a.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});d.YY.create({name:"listKit",addExtensions(){let a=[];return!1!==this.options.bulletList&&a.push(h.configure(this.options.bulletList)),!1!==this.options.listItem&&a.push(i.configure(this.options.listItem)),!1!==this.options.listKeymap&&a.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&a.push(B.configure(this.options.orderedList)),!1!==this.options.taskItem&&a.push(D.configure(this.options.taskItem)),!1!==this.options.taskList&&a.push(E.configure(this.options.taskList)),a}})},1239:(a,b,c)=>{"use strict";let d;c.d(b,{$I:()=>k,$r:()=>w,IB:()=>s,NW:()=>o,Ru:()=>l,Tj:()=>u,WL:()=>n,XQ:()=>y,Y6:()=>r,YW:()=>m,ZK:()=>p,dv:()=>i,gR:()=>x,k$:()=>q,n4:()=>t,qI:()=>v,zN:()=>j});var e=c(40316),f=c(91238),g=c(79775),h=c(59687);let i=()=>h.dv,j=h.zN;h.oL;let k=h.$I,l=h.Ru,m=(0,f.XY)(2,(a,{onNone:b,onSome:c})=>k(a)?b():c(a.value));g.j4,g.Gp;let n=(0,f.XY)(2,(a,b)=>k(a)?b():a.value),o=(0,f.XY)(2,(a,b)=>k(a)?b():a),p=(0,f.XY)(2,(a,b)=>k(a)?j(b()):a),q=a=>null==a?i():j(a),r=n(f.MN),s=a=>(...b)=>{try{return j(a(...b))}catch{return i()}},t=(0,f.XY)(2,(a,b)=>{if(l(a))return a.value;throw b()})(()=>Error("getOrThrow called on a None")),u=(0,f.XY)(2,(a,b)=>k(a)?i():j(b(a.value))),v=(0,f.XY)(2,(a,b)=>k(a)?i():b(a.value)),w=a=>k(a)?[]:[a.value],x=(d=e.XY(),(0,f.XY)(2,(a,b)=>!k(a)&&d(a.value,b))),y=a=>(b,c)=>k(b)?c:k(c)?b:j(a(b.value,c.value))},1370:(a,b,c)=>{"use strict";function d(a){this.content=a}c.d(b,{S4:()=>O,ZF:()=>X,FK:()=>e,CU:()=>i,sX:()=>L,bP:()=>x,u$:()=>v,vI:()=>j,Sj:()=>M,Ji:()=>k}),d.prototype={constructor:d,find:function(a){for(var b=0;b<this.content.length;b+=2)if(this.content[b]===a)return b;return -1},get:function(a){var b=this.find(a);return -1==b?void 0:this.content[b+1]},update:function(a,b,c){var e=c&&c!=a?this.remove(c):this,f=e.find(a),g=e.content.slice();return -1==f?g.push(c||a,b):(g[f+1]=b,c&&(g[f]=c)),new d(g)},remove:function(a){var b=this.find(a);if(-1==b)return this;var c=this.content.slice();return c.splice(b,2),new d(c)},addToStart:function(a,b){return new d([a,b].concat(this.remove(a).content))},addToEnd:function(a,b){var c=this.remove(a).content.slice();return c.push(a,b),new d(c)},addBefore:function(a,b,c){var e=this.remove(b),f=e.content.slice(),g=e.find(a);return f.splice(-1==g?f.length:g,0,b,c),new d(f)},forEach:function(a){for(var b=0;b<this.content.length;b+=2)a(this.content[b],this.content[b+1])},prepend:function(a){return(a=d.from(a)).size?new d(a.content.concat(this.subtract(a).content)):this},append:function(a){return(a=d.from(a)).size?new d(this.subtract(a).content.concat(a.content)):this},subtract:function(a){var b=this;a=d.from(a);for(var c=0;c<a.content.length;c+=2)b=b.remove(a.content[c]);return b},toObject:function(){var a={};return this.forEach(function(b,c){a[b]=c}),a},get size(){return this.content.length>>1}},d.from=function(a){if(a instanceof d)return a;var b=[];if(a)for(var c in a)b.push(c,a[c]);return new d(b)};class e{constructor(a,b){if(this.content=a,this.size=b||0,null==b)for(let b=0;b<a.length;b++)this.size+=a[b].nodeSize}nodesBetween(a,b,c,d=0,e){for(let f=0,g=0;g<b;f++){let h=this.content[f],i=g+h.nodeSize;if(i>a&&!1!==c(h,d+g,e||null,f)&&h.content.size){let e=g+1;h.nodesBetween(Math.max(0,a-e),Math.min(h.content.size,b-e),c,d+e)}g=i}}descendants(a){this.nodesBetween(0,this.size,a)}textBetween(a,b,c,d){let e="",f=!0;return this.nodesBetween(a,b,(g,h)=>{let i=g.isText?g.text.slice(Math.max(a,h)-h,b-h):g.isLeaf?d?"function"==typeof d?d(g):d:g.type.spec.leafText?g.type.spec.leafText(g):"":"";g.isBlock&&(g.isLeaf&&i||g.isTextblock)&&c&&(f?f=!1:e+=c),e+=i},0),e}append(a){if(!a.size)return this;if(!this.size)return a;let b=this.lastChild,c=a.firstChild,d=this.content.slice(),f=0;for(b.isText&&b.sameMarkup(c)&&(d[d.length-1]=b.withText(b.text+c.text),f=1);f<a.content.length;f++)d.push(a.content[f]);return new e(d,this.size+a.size)}cut(a,b=this.size){if(0==a&&b==this.size)return this;let c=[],d=0;if(b>a)for(let e=0,f=0;f<b;e++){let g=this.content[e],h=f+g.nodeSize;h>a&&((f<a||h>b)&&(g=g.isText?g.cut(Math.max(0,a-f),Math.min(g.text.length,b-f)):g.cut(Math.max(0,a-f-1),Math.min(g.content.size,b-f-1))),c.push(g),d+=g.nodeSize),f=h}return new e(c,d)}cutByIndex(a,b){return a==b?e.empty:0==a&&b==this.content.length?this:new e(this.content.slice(a,b))}replaceChild(a,b){let c=this.content[a];if(c==b)return this;let d=this.content.slice(),f=this.size+b.nodeSize-c.nodeSize;return d[a]=b,new e(d,f)}addToStart(a){return new e([a].concat(this.content),this.size+a.nodeSize)}addToEnd(a){return new e(this.content.concat(a),this.size+a.nodeSize)}eq(a){if(this.content.length!=a.content.length)return!1;for(let b=0;b<this.content.length;b++)if(!this.content[b].eq(a.content[b]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(a){let b=this.content[a];if(!b)throw RangeError("Index "+a+" out of range for "+this);return b}maybeChild(a){return this.content[a]||null}forEach(a){for(let b=0,c=0;b<this.content.length;b++){let d=this.content[b];a(d,c,b),c+=d.nodeSize}}findDiffStart(a,b=0){return function a(b,c,d){for(let e=0;;e++){if(e==b.childCount||e==c.childCount)return b.childCount==c.childCount?null:d;let f=b.child(e),g=c.child(e);if(f==g){d+=f.nodeSize;continue}if(!f.sameMarkup(g))return d;if(f.isText&&f.text!=g.text){for(let a=0;f.text[a]==g.text[a];a++)d++;return d}if(f.content.size||g.content.size){let b=a(f.content,g.content,d+1);if(null!=b)return b}d+=f.nodeSize}}(this,a,b)}findDiffEnd(a,b=this.size,c=a.size){return function a(b,c,d,e){for(let f=b.childCount,g=c.childCount;;){if(0==f||0==g)return f==g?null:{a:d,b:e};let h=b.child(--f),i=c.child(--g),j=h.nodeSize;if(h==i){d-=j,e-=j;continue}if(!h.sameMarkup(i))return{a:d,b:e};if(h.isText&&h.text!=i.text){let a=0,b=Math.min(h.text.length,i.text.length);for(;a<b&&h.text[h.text.length-a-1]==i.text[i.text.length-a-1];)a++,d--,e--;return{a:d,b:e}}if(h.content.size||i.content.size){let b=a(h.content,i.content,d-1,e-1);if(b)return b}d-=j,e-=j}}(this,a,b,c)}findIndex(a){if(0==a)return g(0,a);if(a==this.size)return g(this.content.length,a);if(a>this.size||a<0)throw RangeError(`Position ${a} outside of fragment (${this})`);for(let b=0,c=0;;b++){let d=c+this.child(b).nodeSize;if(d>=a){if(d==a)return g(b+1,d);return g(b,c)}c=d}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(a=>a.toJSON()):null}static fromJSON(a,b){if(!b)return e.empty;if(!Array.isArray(b))throw RangeError("Invalid input for Fragment.fromJSON");return new e(b.map(a.nodeFromJSON))}static fromArray(a){if(!a.length)return e.empty;let b,c=0;for(let d=0;d<a.length;d++){let e=a[d];c+=e.nodeSize,d&&e.isText&&a[d-1].sameMarkup(e)?(b||(b=a.slice(0,d)),b[b.length-1]=e.withText(b[b.length-1].text+e.text)):b&&b.push(e)}return new e(b||a,c)}static from(a){if(!a)return e.empty;if(a instanceof e)return a;if(Array.isArray(a))return this.fromArray(a);if(a.attrs)return new e([a],a.nodeSize);throw RangeError("Can not convert "+a+" to a Fragment"+(a.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}e.empty=new e([],0);let f={index:0,offset:0};function g(a,b){return f.index=a,f.offset=b,f}function h(a,b){if(a===b)return!0;if(!(a&&"object"==typeof a)||!(b&&"object"==typeof b))return!1;let c=Array.isArray(a);if(Array.isArray(b)!=c)return!1;if(c){if(a.length!=b.length)return!1;for(let c=0;c<a.length;c++)if(!h(a[c],b[c]))return!1}else{for(let c in a)if(!(c in b)||!h(a[c],b[c]))return!1;for(let c in b)if(!(c in a))return!1}return!0}class i{constructor(a,b){this.type=a,this.attrs=b}addToSet(a){let b,c=!1;for(let d=0;d<a.length;d++){let e=a[d];if(this.eq(e))return a;if(this.type.excludes(e.type))b||(b=a.slice(0,d));else{if(e.type.excludes(this.type))return a;!c&&e.type.rank>this.type.rank&&(b||(b=a.slice(0,d)),b.push(this),c=!0),b&&b.push(e)}}return b||(b=a.slice()),c||b.push(this),b}removeFromSet(a){for(let b=0;b<a.length;b++)if(this.eq(a[b]))return a.slice(0,b).concat(a.slice(b+1));return a}isInSet(a){for(let b=0;b<a.length;b++)if(this.eq(a[b]))return!0;return!1}eq(a){return this==a||this.type==a.type&&h(this.attrs,a.attrs)}toJSON(){let a={type:this.type.name};for(let b in this.attrs){a.attrs=this.attrs;break}return a}static fromJSON(a,b){if(!b)throw RangeError("Invalid input for Mark.fromJSON");let c=a.marks[b.type];if(!c)throw RangeError(`There is no mark type ${b.type} in this schema`);let d=c.create(b.attrs);return c.checkAttrs(d.attrs),d}static sameSet(a,b){if(a==b)return!0;if(a.length!=b.length)return!1;for(let c=0;c<a.length;c++)if(!a[c].eq(b[c]))return!1;return!0}static setFrom(a){if(!a||Array.isArray(a)&&0==a.length)return i.none;if(a instanceof i)return[a];let b=a.slice();return b.sort((a,b)=>a.type.rank-b.type.rank),b}}i.none=[];class j extends Error{}class k{constructor(a,b,c){this.content=a,this.openStart=b,this.openEnd=c}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(a,b){let c=function a(b,c,d,e){let{index:f,offset:g}=b.findIndex(c),h=b.maybeChild(f);if(g==c||h.isText)return e&&!e.canReplace(f,f,d)?null:b.cut(0,c).append(d).append(b.cut(c));let i=a(h.content,c-g-1,d,h);return i&&b.replaceChild(f,h.copy(i))}(this.content,a+this.openStart,b);return c&&new k(c,this.openStart,this.openEnd)}removeBetween(a,b){return new k(function a(b,c,d){let{index:e,offset:f}=b.findIndex(c),g=b.maybeChild(e),{index:h,offset:i}=b.findIndex(d);if(f==c||g.isText){if(i!=d&&!b.child(h).isText)throw RangeError("Removing non-flat range");return b.cut(0,c).append(b.cut(d))}if(e!=h)throw RangeError("Removing non-flat range");return b.replaceChild(e,g.copy(a(g.content,c-f-1,d-f-1)))}(this.content,a+this.openStart,b+this.openStart),this.openStart,this.openEnd)}eq(a){return this.content.eq(a.content)&&this.openStart==a.openStart&&this.openEnd==a.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let a={content:this.content.toJSON()};return this.openStart>0&&(a.openStart=this.openStart),this.openEnd>0&&(a.openEnd=this.openEnd),a}static fromJSON(a,b){if(!b)return k.empty;let c=b.openStart||0,d=b.openEnd||0;if("number"!=typeof c||"number"!=typeof d)throw RangeError("Invalid input for Slice.fromJSON");return new k(e.fromJSON(a,b.content),c,d)}static maxOpen(a,b=!0){let c=0,d=0;for(let d=a.firstChild;d&&!d.isLeaf&&(b||!d.type.spec.isolating);d=d.firstChild)c++;for(let c=a.lastChild;c&&!c.isLeaf&&(b||!c.type.spec.isolating);c=c.lastChild)d++;return new k(a,c,d)}}function l(a,b){if(!b.type.compatibleContent(a.type))throw new j("Cannot join "+b.type.name+" onto "+a.type.name)}function m(a,b,c){let d=a.node(c);return l(d,b.node(c)),d}function n(a,b){let c=b.length-1;c>=0&&a.isText&&a.sameMarkup(b[c])?b[c]=a.withText(b[c].text+a.text):b.push(a)}function o(a,b,c,d){let e=(b||a).node(c),f=0,g=b?b.index(c):e.childCount;a&&(f=a.index(c),a.depth>c?f++:a.textOffset&&(n(a.nodeAfter,d),f++));for(let a=f;a<g;a++)n(e.child(a),d);b&&b.depth==c&&b.textOffset&&n(b.nodeBefore,d)}function p(a,b){return a.type.checkContent(b),a.copy(b)}function q(a,b,c){let d=[];return o(null,a,c,d),a.depth>c&&n(p(m(a,b,c+1),q(a,b,c+1)),d),o(b,null,c,d),new e(d)}k.empty=new k(e.empty,0,0);class r{constructor(a,b,c){this.pos=a,this.path=b,this.parentOffset=c,this.depth=b.length/3-1}resolveDepth(a){return null==a?this.depth:a<0?this.depth+a:a}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(a){return this.path[3*this.resolveDepth(a)]}index(a){return this.path[3*this.resolveDepth(a)+1]}indexAfter(a){return a=this.resolveDepth(a),this.index(a)+(a!=this.depth||this.textOffset?1:0)}start(a){return 0==(a=this.resolveDepth(a))?0:this.path[3*a-1]+1}end(a){return a=this.resolveDepth(a),this.start(a)+this.node(a).content.size}before(a){if(!(a=this.resolveDepth(a)))throw RangeError("There is no position before the top-level node");return a==this.depth+1?this.pos:this.path[3*a-1]}after(a){if(!(a=this.resolveDepth(a)))throw RangeError("There is no position after the top-level node");return a==this.depth+1?this.pos:this.path[3*a-1]+this.path[3*a].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let a=this.parent,b=this.index(this.depth);if(b==a.childCount)return null;let c=this.pos-this.path[this.path.length-1],d=a.child(b);return c?a.child(b).cut(c):d}get nodeBefore(){let a=this.index(this.depth),b=this.pos-this.path[this.path.length-1];return b?this.parent.child(a).cut(0,b):0==a?null:this.parent.child(a-1)}posAtIndex(a,b){b=this.resolveDepth(b);let c=this.path[3*b],d=0==b?0:this.path[3*b-1]+1;for(let b=0;b<a;b++)d+=c.child(b).nodeSize;return d}marks(){let a=this.parent,b=this.index();if(0==a.content.size)return i.none;if(this.textOffset)return a.child(b).marks;let c=a.maybeChild(b-1),d=a.maybeChild(b);if(!c){let a=c;c=d,d=a}let e=c.marks;for(var f=0;f<e.length;f++)!1!==e[f].type.spec.inclusive||d&&e[f].isInSet(d.marks)||(e=e[f--].removeFromSet(e));return e}marksAcross(a){let b=this.parent.maybeChild(this.index());if(!b||!b.isInline)return null;let c=b.marks,d=a.parent.maybeChild(a.index());for(var e=0;e<c.length;e++)!1!==c[e].type.spec.inclusive||d&&c[e].isInSet(d.marks)||(c=c[e--].removeFromSet(c));return c}sharedDepth(a){for(let b=this.depth;b>0;b--)if(this.start(b)<=a&&this.end(b)>=a)return b;return 0}blockRange(a=this,b){if(a.pos<this.pos)return a.blockRange(this);for(let c=this.depth-(this.parent.inlineContent||this.pos==a.pos?1:0);c>=0;c--)if(a.pos<=this.end(c)&&(!b||b(this.node(c))))return new v(this,a,c);return null}sameParent(a){return this.pos-this.parentOffset==a.pos-a.parentOffset}max(a){return a.pos>this.pos?a:this}min(a){return a.pos<this.pos?a:this}toString(){let a="";for(let b=1;b<=this.depth;b++)a+=(a?"/":"")+this.node(b).type.name+"_"+this.index(b-1);return a+":"+this.parentOffset}static resolve(a,b){if(!(b>=0&&b<=a.content.size))throw RangeError("Position "+b+" out of range");let c=[],d=0,e=b;for(let b=a;;){let{index:a,offset:f}=b.content.findIndex(e),g=e-f;if(c.push(b,a,d+f),!g||(b=b.child(a)).isText)break;e=g-1,d+=f+1}return new r(b,c,e)}static resolveCached(a,b){let c=u.get(a);if(c)for(let a=0;a<c.elts.length;a++){let d=c.elts[a];if(d.pos==b)return d}else u.set(a,c=new s);let d=c.elts[c.i]=r.resolve(a,b);return c.i=(c.i+1)%t,d}}class s{constructor(){this.elts=[],this.i=0}}let t=12,u=new WeakMap;class v{constructor(a,b,c){this.$from=a,this.$to=b,this.depth=c}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let w=Object.create(null);class x{constructor(a,b,c,d=i.none){this.type=a,this.attrs=b,this.marks=d,this.content=c||e.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(a){return this.content.child(a)}maybeChild(a){return this.content.maybeChild(a)}forEach(a){this.content.forEach(a)}nodesBetween(a,b,c,d=0){this.content.nodesBetween(a,b,c,d,this)}descendants(a){this.nodesBetween(0,this.content.size,a)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(a,b,c,d){return this.content.textBetween(a,b,c,d)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(a){return this==a||this.sameMarkup(a)&&this.content.eq(a.content)}sameMarkup(a){return this.hasMarkup(a.type,a.attrs,a.marks)}hasMarkup(a,b,c){return this.type==a&&h(this.attrs,b||a.defaultAttrs||w)&&i.sameSet(this.marks,c||i.none)}copy(a=null){return a==this.content?this:new x(this.type,this.attrs,a,this.marks)}mark(a){return a==this.marks?this:new x(this.type,this.attrs,this.content,a)}cut(a,b=this.content.size){return 0==a&&b==this.content.size?this:this.copy(this.content.cut(a,b))}slice(a,b=this.content.size,c=!1){if(a==b)return k.empty;let d=this.resolve(a),e=this.resolve(b),f=c?0:d.sharedDepth(b),g=d.start(f);return new k(d.node(f).content.cut(d.pos-g,e.pos-g),d.depth-f,e.depth-f)}replace(a,b,c){var d=this.resolve(a),f=this.resolve(b);if(c.openStart>d.depth)throw new j("Inserted content deeper than insertion position");if(d.depth-c.openStart!=f.depth-c.openEnd)throw new j("Inconsistent open depths");return function a(b,c,d,f){let g=b.index(f),h=b.node(f);if(g==c.index(f)&&f<b.depth-d.openStart){let e=a(b,c,d,f+1);return h.copy(h.content.replaceChild(g,e))}if(!d.content.size)return p(h,q(b,c,f));if(d.openStart||d.openEnd||b.depth!=f||c.depth!=f){let{start:a,end:g}=function(a,b){let c=b.depth-a.openStart,d=b.node(c).copy(a.content);for(let a=c-1;a>=0;a--)d=b.node(a).copy(e.from(d));return{start:d.resolveNoCache(a.openStart+c),end:d.resolveNoCache(d.content.size-a.openEnd-c)}}(d,b);return p(h,function a(b,c,d,f,g){let h=b.depth>g&&m(b,c,g+1),i=f.depth>g&&m(d,f,g+1),j=[];return o(null,b,g,j),h&&i&&c.index(g)==d.index(g)?(l(h,i),n(p(h,a(b,c,d,f,g+1)),j)):(h&&n(p(h,q(b,c,g+1)),j),o(c,d,g,j),i&&n(p(i,q(d,f,g+1)),j)),o(f,null,g,j),new e(j)}(b,a,g,c,f))}{let a=b.parent,e=a.content;return p(a,e.cut(0,b.parentOffset).append(d.content).append(e.cut(c.parentOffset)))}}(d,f,c,0)}nodeAt(a){for(let b=this;;){let{index:c,offset:d}=b.content.findIndex(a);if(!(b=b.maybeChild(c)))return null;if(d==a||b.isText)return b;a-=d+1}}childAfter(a){let{index:b,offset:c}=this.content.findIndex(a);return{node:this.content.maybeChild(b),index:b,offset:c}}childBefore(a){if(0==a)return{node:null,index:0,offset:0};let{index:b,offset:c}=this.content.findIndex(a);if(c<a)return{node:this.content.child(b),index:b,offset:c};let d=this.content.child(b-1);return{node:d,index:b-1,offset:c-d.nodeSize}}resolve(a){return r.resolveCached(this,a)}resolveNoCache(a){return r.resolve(this,a)}rangeHasMark(a,b,c){let d=!1;return b>a&&this.nodesBetween(a,b,a=>(c.isInSet(a.marks)&&(d=!0),!d)),d}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let a=this.type.name;return this.content.size&&(a+="("+this.content.toStringInner()+")"),z(this.marks,a)}contentMatchAt(a){let b=this.type.contentMatch.matchFragment(this.content,0,a);if(!b)throw Error("Called contentMatchAt on a node with invalid content");return b}canReplace(a,b,c=e.empty,d=0,f=c.childCount){let g=this.contentMatchAt(a).matchFragment(c,d,f),h=g&&g.matchFragment(this.content,b);if(!h||!h.validEnd)return!1;for(let a=d;a<f;a++)if(!this.type.allowsMarks(c.child(a).marks))return!1;return!0}canReplaceWith(a,b,c,d){if(d&&!this.type.allowsMarks(d))return!1;let e=this.contentMatchAt(a).matchType(c),f=e&&e.matchFragment(this.content,b);return!!f&&f.validEnd}canAppend(a){return a.content.size?this.canReplace(this.childCount,this.childCount,a.content):this.type.compatibleContent(a.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let a=i.none;for(let b=0;b<this.marks.length;b++){let c=this.marks[b];c.type.checkAttrs(c.attrs),a=c.addToSet(a)}if(!i.sameSet(a,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(a=>a.type.name)}`);this.content.forEach(a=>a.check())}toJSON(){let a={type:this.type.name};for(let b in this.attrs){a.attrs=this.attrs;break}return this.content.size&&(a.content=this.content.toJSON()),this.marks.length&&(a.marks=this.marks.map(a=>a.toJSON())),a}static fromJSON(a,b){let c;if(!b)throw RangeError("Invalid input for Node.fromJSON");if(b.marks){if(!Array.isArray(b.marks))throw RangeError("Invalid mark data for Node.fromJSON");c=b.marks.map(a.markFromJSON)}if("text"==b.type){if("string"!=typeof b.text)throw RangeError("Invalid text node in JSON");return a.text(b.text,c)}let d=e.fromJSON(a,b.content),f=a.nodeType(b.type).create(b.attrs,d,c);return f.type.checkAttrs(f.attrs),f}}x.prototype.text=void 0;class y extends x{constructor(a,b,c,d){if(super(a,b,null,d),!c)throw RangeError("Empty text nodes are not allowed");this.text=c}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):z(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(a,b){return this.text.slice(a,b)}get nodeSize(){return this.text.length}mark(a){return a==this.marks?this:new y(this.type,this.attrs,this.text,a)}withText(a){return a==this.text?this:new y(this.type,this.attrs,a,this.marks)}cut(a=0,b=this.text.length){return 0==a&&b==this.text.length?this:this.withText(this.text.slice(a,b))}eq(a){return this.sameMarkup(a)&&this.text==a.text}toJSON(){let a=super.toJSON();return a.text=this.text,a}}function z(a,b){for(let c=a.length-1;c>=0;c--)b=a[c].type.name+"("+b+")";return b}class A{constructor(a){this.validEnd=a,this.next=[],this.wrapCache=[]}static parse(a,b){var c;let d,e=new B(a,b);if(null==e.next)return A.empty;let f=function a(b){let c=[];do c.push(function(b){let c=[];do c.push(function(b){let c=function(b){if(b.eat("(")){let c=a(b);return b.eat(")")||b.err("Missing closing paren"),c}if(/\W/.test(b.next))b.err("Unexpected token '"+b.next+"'");else{let a=(function(a,b){let c=a.nodeTypes,d=c[b];if(d)return[d];let e=[];for(let a in c){let d=c[a];d.isInGroup(b)&&e.push(d)}return 0==e.length&&a.err("No node type or group '"+b+"' found"),e})(b,b.next).map(a=>(null==b.inline?b.inline=a.isInline:b.inline!=a.isInline&&b.err("Mixing inline and block content"),{type:"name",value:a}));return b.pos++,1==a.length?a[0]:{type:"choice",exprs:a}}}(b);for(;;)if(b.eat("+"))c={type:"plus",expr:c};else if(b.eat("*"))c={type:"star",expr:c};else if(b.eat("?"))c={type:"opt",expr:c};else if(b.eat("{"))c=function(a,b){let c=C(a),d=c;return a.eat(",")&&(d="}"!=a.next?C(a):-1),a.eat("}")||a.err("Unclosed braced range"),{type:"range",min:c,max:d,expr:b}}(b,c);else break;return c}(b));while(b.next&&")"!=b.next&&"|"!=b.next);return 1==c.length?c[0]:{type:"seq",exprs:c}}(b));while(b.eat("|"));return 1==c.length?c[0]:{type:"choice",exprs:c}}(e);e.next&&e.err("Unexpected trailing text");let g=(c=function(a){let b=[[]];return e(function a(b,f){if("choice"==b.type)return b.exprs.reduce((b,c)=>b.concat(a(c,f)),[]);if("seq"==b.type)for(let d=0;;d++){let g=a(b.exprs[d],f);if(d==b.exprs.length-1)return g;e(g,f=c())}else if("star"==b.type){let g=c();return d(f,g),e(a(b.expr,g),g),[d(g)]}else if("plus"==b.type){let g=c();return e(a(b.expr,f),g),e(a(b.expr,g),g),[d(g)]}else if("opt"==b.type)return[d(f)].concat(a(b.expr,f));else if("range"==b.type){let g=f;for(let d=0;d<b.min;d++){let d=c();e(a(b.expr,g),d),g=d}if(-1==b.max)e(a(b.expr,g),g);else for(let f=b.min;f<b.max;f++){let f=c();d(g,f),e(a(b.expr,g),f),g=f}return[d(g)]}else if("name"==b.type)return[d(f,void 0,b.value)];else throw Error("Unknown expr type")}(a,0),c()),b;function c(){return b.push([])-1}function d(a,c,d){let e={term:d,to:c};return b[a].push(e),e}function e(a,b){a.forEach(a=>a.to=b)}}(f),d=Object.create(null),function a(b){let e=[];b.forEach(a=>{c[a].forEach(({term:a,to:b})=>{let d;if(a){for(let b=0;b<e.length;b++)e[b][0]==a&&(d=e[b][1]);E(c,b).forEach(b=>{d||e.push([a,d=[]]),-1==d.indexOf(b)&&d.push(b)})}})});let f=d[b.join(",")]=new A(b.indexOf(c.length-1)>-1);for(let b=0;b<e.length;b++){let c=e[b][1].sort(D);f.next.push({type:e[b][0],next:d[c.join(",")]||a(c)})}return f}(E(c,0)));return function(a,b){for(let c=0,d=[a];c<d.length;c++){let a=d[c],e=!a.validEnd,f=[];for(let b=0;b<a.next.length;b++){let{type:c,next:g}=a.next[b];f.push(c.name),e&&!(c.isText||c.hasRequiredAttrs())&&(e=!1),-1==d.indexOf(g)&&d.push(g)}e&&b.err("Only non-generatable nodes ("+f.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(g,e),g}matchType(a){for(let b=0;b<this.next.length;b++)if(this.next[b].type==a)return this.next[b].next;return null}matchFragment(a,b=0,c=a.childCount){let d=this;for(let e=b;d&&e<c;e++)d=d.matchType(a.child(e).type);return d}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let a=0;a<this.next.length;a++){let{type:b}=this.next[a];if(!(b.isText||b.hasRequiredAttrs()))return b}return null}compatible(a){for(let b=0;b<this.next.length;b++)for(let c=0;c<a.next.length;c++)if(this.next[b].type==a.next[c].type)return!0;return!1}fillBefore(a,b=!1,c=0){let d=[this];return function f(g,h){let i=g.matchFragment(a,c);if(i&&(!b||i.validEnd))return e.from(h.map(a=>a.createAndFill()));for(let a=0;a<g.next.length;a++){let{type:b,next:c}=g.next[a];if(!(b.isText||b.hasRequiredAttrs())&&-1==d.indexOf(c)){d.push(c);let a=f(c,h.concat(b));if(a)return a}}return null}(this,[])}findWrapping(a){for(let b=0;b<this.wrapCache.length;b+=2)if(this.wrapCache[b]==a)return this.wrapCache[b+1];let b=this.computeWrapping(a);return this.wrapCache.push(a,b),b}computeWrapping(a){let b=Object.create(null),c=[{match:this,type:null,via:null}];for(;c.length;){let d=c.shift(),e=d.match;if(e.matchType(a)){let a=[];for(let b=d;b.type;b=b.via)a.push(b.type);return a.reverse()}for(let a=0;a<e.next.length;a++){let{type:f,next:g}=e.next[a];f.isLeaf||f.hasRequiredAttrs()||f.name in b||d.type&&!g.validEnd||(c.push({match:f.contentMatch,type:f,via:d}),b[f.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(a){if(a>=this.next.length)throw RangeError(`There's no ${a}th edge in this content match`);return this.next[a]}toString(){let a=[];return!function b(c){a.push(c);for(let d=0;d<c.next.length;d++)-1==a.indexOf(c.next[d].next)&&b(c.next[d].next)}(this),a.map((b,c)=>{let d=c+(b.validEnd?"*":" ")+" ";for(let c=0;c<b.next.length;c++)d+=(c?", ":"")+b.next[c].type.name+"->"+a.indexOf(b.next[c].next);return d}).join("\n")}}A.empty=new A(!0);class B{constructor(a,b){this.string=a,this.nodeTypes=b,this.inline=null,this.pos=0,this.tokens=a.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(a){return this.next==a&&(this.pos++||!0)}err(a){throw SyntaxError(a+" (in content expression '"+this.string+"')")}}function C(a){/\D/.test(a.next)&&a.err("Expected number, got '"+a.next+"'");let b=Number(a.next);return a.pos++,b}function D(a,b){return b-a}function E(a,b){let c=[];return function b(d){let e=a[d];if(1==e.length&&!e[0].term)return b(e[0].to);c.push(d);for(let a=0;a<e.length;a++){let{term:d,to:f}=e[a];d||-1!=c.indexOf(f)||b(f)}}(b),c.sort(D)}function F(a){let b=Object.create(null);for(let c in a){let d=a[c];if(!d.hasDefault)return null;b[c]=d.default}return b}function G(a,b){let c=Object.create(null);for(let d in a){let e=b&&b[d];if(void 0===e){let b=a[d];if(b.hasDefault)e=b.default;else throw RangeError("No value supplied for attribute "+d)}c[d]=e}return c}function H(a,b,c,d){for(let d in b)if(!(d in a))throw RangeError(`Unsupported attribute ${d} for ${c} of type ${d}`);for(let c in a){let d=a[c];d.validate&&d.validate(b[c])}}function I(a,b){let c=Object.create(null);if(b)for(let d in b)c[d]=new K(a,d,b[d]);return c}class J{constructor(a,b,c){this.name=a,this.schema=b,this.spec=c,this.markSet=null,this.groups=c.group?c.group.split(" "):[],this.attrs=I(a,c.attrs),this.defaultAttrs=F(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(c.inline||"text"==a),this.isText="text"==a}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==A.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(a){return this.groups.indexOf(a)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let a in this.attrs)if(this.attrs[a].isRequired)return!0;return!1}compatibleContent(a){return this==a||this.contentMatch.compatible(a.contentMatch)}computeAttrs(a){return!a&&this.defaultAttrs?this.defaultAttrs:G(this.attrs,a)}create(a=null,b,c){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new x(this,this.computeAttrs(a),e.from(b),i.setFrom(c))}createChecked(a=null,b,c){return b=e.from(b),this.checkContent(b),new x(this,this.computeAttrs(a),b,i.setFrom(c))}createAndFill(a=null,b,c){if(a=this.computeAttrs(a),(b=e.from(b)).size){let a=this.contentMatch.fillBefore(b);if(!a)return null;b=a.append(b)}let d=this.contentMatch.matchFragment(b),f=d&&d.fillBefore(e.empty,!0);return f?new x(this,a,b.append(f),i.setFrom(c)):null}validContent(a){let b=this.contentMatch.matchFragment(a);if(!b||!b.validEnd)return!1;for(let b=0;b<a.childCount;b++)if(!this.allowsMarks(a.child(b).marks))return!1;return!0}checkContent(a){if(!this.validContent(a))throw RangeError(`Invalid content for node ${this.name}: ${a.toString().slice(0,50)}`)}checkAttrs(a){H(this.attrs,a,"node",this.name)}allowsMarkType(a){return null==this.markSet||this.markSet.indexOf(a)>-1}allowsMarks(a){if(null==this.markSet)return!0;for(let b=0;b<a.length;b++)if(!this.allowsMarkType(a[b].type))return!1;return!0}allowedMarks(a){let b;if(null==this.markSet)return a;for(let c=0;c<a.length;c++)this.allowsMarkType(a[c].type)?b&&b.push(a[c]):b||(b=a.slice(0,c));return b?b.length?b:i.none:a}static compile(a,b){let c=Object.create(null);a.forEach((a,d)=>c[a]=new J(a,b,d));let d=b.spec.topNode||"doc";if(!c[d])throw RangeError("Schema is missing its top node type ('"+d+"')");if(!c.text)throw RangeError("Every schema needs a 'text' type");for(let a in c.text.attrs)throw RangeError("The text node type should not have attributes");return c}}class K{constructor(a,b,c){this.hasDefault=Object.prototype.hasOwnProperty.call(c,"default"),this.default=c.default,this.validate="string"==typeof c.validate?function(a,b,c){let d=c.split("|");return c=>{let e=null===c?"null":typeof c;if(0>d.indexOf(e))throw RangeError(`Expected value of type ${d} for attribute ${b} on type ${a}, got ${e}`)}}(a,b,c.validate):c.validate}get isRequired(){return!this.hasDefault}}class L{constructor(a,b,c,d){this.name=a,this.rank=b,this.schema=c,this.spec=d,this.attrs=I(a,d.attrs),this.excluded=null;let e=F(this.attrs);this.instance=e?new i(this,e):null}create(a=null){return!a&&this.instance?this.instance:new i(this,G(this.attrs,a))}static compile(a,b){let c=Object.create(null),d=0;return a.forEach((a,e)=>c[a]=new L(a,d++,b,e)),c}removeFromSet(a){for(var b=0;b<a.length;b++)a[b].type==this&&(a=a.slice(0,b).concat(a.slice(b+1)),b--);return a}isInSet(a){for(let b=0;b<a.length;b++)if(a[b].type==this)return a[b]}checkAttrs(a){H(this.attrs,a,"mark",this.name)}excludes(a){return this.excluded.indexOf(a)>-1}}class M{constructor(a){this.linebreakReplacement=null,this.cached=Object.create(null);let b=this.spec={};for(let c in a)b[c]=a[c];b.nodes=d.from(a.nodes),b.marks=d.from(a.marks||{}),this.nodes=J.compile(this.spec.nodes,this),this.marks=L.compile(this.spec.marks,this);let c=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw RangeError(a+" can not be both a node and a mark");let b=this.nodes[a],d=b.spec.content||"",e=b.spec.marks;if(b.contentMatch=c[d]||(c[d]=A.parse(d,this.nodes)),b.inlineContent=b.contentMatch.inlineContent,b.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!b.isInline||!b.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=b}b.markSet="_"==e?null:e?N(this,e.split(" ")):""!=e&&b.inlineContent?null:[]}for(let a in this.marks){let b=this.marks[a],c=b.spec.excludes;b.excluded=null==c?[b]:""==c?[]:N(this,c.split(" "))}this.nodeFromJSON=a=>x.fromJSON(this,a),this.markFromJSON=a=>i.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(a,b=null,c,d){if("string"==typeof a)a=this.nodeType(a);else if(a instanceof J){if(a.schema!=this)throw RangeError("Node type from different schema used ("+a.name+")")}else throw RangeError("Invalid node type: "+a);return a.createChecked(b,c,d)}text(a,b){let c=this.nodes.text;return new y(c,c.defaultAttrs,a,i.setFrom(b))}mark(a,b){return"string"==typeof a&&(a=this.marks[a]),a.create(b)}nodeType(a){let b=this.nodes[a];if(!b)throw RangeError("Unknown node type: "+a);return b}}function N(a,b){let c=[];for(let d=0;d<b.length;d++){let e=b[d],f=a.marks[e],g=f;if(f)c.push(f);else for(let b in a.marks){let d=a.marks[b];("_"==e||d.spec.group&&d.spec.group.split(" ").indexOf(e)>-1)&&c.push(g=d)}if(!g)throw SyntaxError("Unknown mark type: '"+b[d]+"'")}return c}class O{constructor(a,b){this.schema=a,this.rules=b,this.tags=[],this.styles=[];let c=this.matchedStyles=[];b.forEach(a=>{if(null!=a.tag)this.tags.push(a);else if(null!=a.style){let b=/[^=]*/.exec(a.style)[0];0>c.indexOf(b)&&c.push(b),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(b=>{if(!/^(ul|ol)\b/.test(b.tag)||!b.node)return!1;let c=a.nodes[b.node];return c.contentMatch.matchType(c)})}parse(a,b={}){let c=new U(this,b,!1);return c.addAll(a,i.none,b.from,b.to),c.finish()}parseSlice(a,b={}){let c=new U(this,b,!0);return c.addAll(a,i.none,b.from,b.to),k.maxOpen(c.finish())}matchTag(a,b,c){for(let f=c?this.tags.indexOf(c)+1:0;f<this.tags.length;f++){var d,e;let c=this.tags[f];if(d=a,e=c.tag,(d.matches||d.msMatchesSelector||d.webkitMatchesSelector||d.mozMatchesSelector).call(d,e)&&(void 0===c.namespace||a.namespaceURI==c.namespace)&&(!c.context||b.matchesContext(c.context))){if(c.getAttrs){let b=c.getAttrs(a);if(!1===b)continue;c.attrs=b||void 0}return c}}}matchStyle(a,b,c,d){for(let e=d?this.styles.indexOf(d)+1:0;e<this.styles.length;e++){let d=this.styles[e],f=d.style;if(0==f.indexOf(a)&&(!d.context||c.matchesContext(d.context))&&(!(f.length>a.length)||61==f.charCodeAt(a.length)&&f.slice(a.length+1)==b)){if(d.getAttrs){let a=d.getAttrs(b);if(!1===a)continue;d.attrs=a||void 0}return d}}}static schemaRules(a){let b=[];function c(a){let c=null==a.priority?50:a.priority,d=0;for(;d<b.length;d++){let a=b[d];if((null==a.priority?50:a.priority)<c)break}b.splice(d,0,a)}for(let b in a.marks){let d=a.marks[b].spec.parseDOM;d&&d.forEach(a=>{c(a=V(a)),a.mark||a.ignore||a.clearMark||(a.mark=b)})}for(let b in a.nodes){let d=a.nodes[b].spec.parseDOM;d&&d.forEach(a=>{c(a=V(a)),a.node||a.ignore||a.mark||(a.node=b)})}return b}static fromSchema(a){return a.cached.domParser||(a.cached.domParser=new O(a,O.schemaRules(a)))}}let P={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Q={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},R={ol:!0,ul:!0};function S(a,b,c){return null!=b?!!b|2*("full"===b):a&&"pre"==a.whitespace?3:-5&c}class T{constructor(a,b,c,d,e,f){this.type=a,this.attrs=b,this.marks=c,this.solid=d,this.options=f,this.content=[],this.activeMarks=i.none,this.match=e||(4&f?null:a.contentMatch)}findWrapping(a){if(!this.match){if(!this.type)return[];let b=this.type.contentMatch.fillBefore(e.from(a));if(b)this.match=this.type.contentMatch.matchFragment(b);else{let b=this.type.contentMatch,c;return(c=b.findWrapping(a.type))?(this.match=b,c):null}}return this.match.findWrapping(a.type)}finish(a){if(!(1&this.options)){let a=this.content[this.content.length-1],b;a&&a.isText&&(b=/[ \t\r\n\u000c]+$/.exec(a.text))&&(a.text.length==b[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-b[0].length)))}let b=e.from(this.content);return!a&&this.match&&(b=b.append(this.match.fillBefore(e.empty,!0))),this.type?this.type.create(this.attrs,b,this.marks):b}inlineContext(a){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:a.parentNode&&!P.hasOwnProperty(a.parentNode.nodeName.toLowerCase())}}class U{constructor(a,b,c){this.parser=a,this.options=b,this.isOpen=c,this.open=0,this.localPreserveWS=!1;let d=b.topNode,e,f=S(null,b.preserveWhitespace,0)|4*!!c;e=d?new T(d.type,d.attrs,i.none,!0,b.topMatch||d.type.contentMatch,f):c?new T(null,null,i.none,!0,null,f):new T(a.schema.topNodeType,null,i.none,!0,null,f),this.nodes=[e],this.find=b.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(a,b){3==a.nodeType?this.addTextNode(a,b):1==a.nodeType&&this.addElement(a,b)}addTextNode(a,b){let c=a.nodeValue,d=this.top,e=2&d.options?"full":this.localPreserveWS||(1&d.options)>0,{schema:f}=this.parser;if("full"===e||d.inlineContext(a)||/[^ \t\r\n\u000c]/.test(c)){if(e)if("full"===e)c=c.replace(/\r\n?/g,"\n");else if(f.linebreakReplacement&&/[\r\n]/.test(c)&&this.top.findWrapping(f.linebreakReplacement.create())){let a=c.split(/\r?\n|\r/);for(let c=0;c<a.length;c++)c&&this.insertNode(f.linebreakReplacement.create(),b,!0),a[c]&&this.insertNode(f.text(a[c]),b,!/\S/.test(a[c]));c=""}else c=c.replace(/\r?\n|\r/g," ");else if(c=c.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(c)&&this.open==this.nodes.length-1){let b=d.content[d.content.length-1],e=a.previousSibling;(!b||e&&"BR"==e.nodeName||b.isText&&/[ \t\r\n\u000c]$/.test(b.text))&&(c=c.slice(1))}c&&this.insertNode(f.text(c),b,!/\S/.test(c)),this.findInText(a)}else this.findInside(a)}addElement(a,b,c){let d=this.localPreserveWS,e=this.top;("PRE"==a.tagName||/pre/.test(a.style&&a.style.whiteSpace))&&(this.localPreserveWS=!0);let f=a.nodeName.toLowerCase(),g;R.hasOwnProperty(f)&&this.parser.normalizeLists&&function(a){for(let b=a.firstChild,c=null;b;b=b.nextSibling){let a=1==b.nodeType?b.nodeName.toLowerCase():null;a&&R.hasOwnProperty(a)&&c?(c.appendChild(b),b=c):"li"==a?c=b:a&&(c=null)}}(a);let h=this.options.ruleFromNode&&this.options.ruleFromNode(a)||(g=this.parser.matchTag(a,this,c));a:if(h?h.ignore:Q.hasOwnProperty(f))this.findInside(a),this.ignoreFallback(a,b);else if(!h||h.skip||h.closeParent){h&&h.closeParent?this.open=Math.max(0,this.open-1):h&&h.skip.nodeType&&(a=h.skip);let c,d=this.needsBlock;if(P.hasOwnProperty(f))e.content.length&&e.content[0].isInline&&this.open&&(this.open--,e=this.top),c=!0,e.type||(this.needsBlock=!0);else if(!a.firstChild){this.leafFallback(a,b);break a}let g=h&&h.skip?b:this.readStyles(a,b);g&&this.addAll(a,g),c&&this.sync(e),this.needsBlock=d}else{let c=this.readStyles(a,b);c&&this.addElementByRule(a,h,c,!1===h.consuming?g:void 0)}this.localPreserveWS=d}leafFallback(a,b){"BR"==a.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(a.ownerDocument.createTextNode("\n"),b)}ignoreFallback(a,b){"BR"!=a.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),b,!0)}readStyles(a,b){let c=a.style;if(c&&c.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let d=this.parser.matchedStyles[a],e=c.getPropertyValue(d);if(e)for(let a;;){let c=this.parser.matchStyle(d,e,this,a);if(!c)break;if(c.ignore)return null;if(b=c.clearMark?b.filter(a=>!c.clearMark(a)):b.concat(this.parser.schema.marks[c.mark].create(c.attrs)),!1===c.consuming)a=c;else break}}return b}addElementByRule(a,b,c,d){let e,f;if(b.node)if((f=this.parser.schema.nodes[b.node]).isLeaf)this.insertNode(f.create(b.attrs),c,"BR"==a.nodeName)||this.leafFallback(a,c);else{let a=this.enter(f,b.attrs||null,c,b.preserveWhitespace);a&&(e=!0,c=a)}else{let a=this.parser.schema.marks[b.mark];c=c.concat(a.create(b.attrs))}let g=this.top;if(f&&f.isLeaf)this.findInside(a);else if(d)this.addElement(a,c,d);else if(b.getContent)this.findInside(a),b.getContent(a,this.parser.schema).forEach(a=>this.insertNode(a,c,!1));else{let d=a;"string"==typeof b.contentElement?d=a.querySelector(b.contentElement):"function"==typeof b.contentElement?d=b.contentElement(a):b.contentElement&&(d=b.contentElement),this.findAround(a,d,!0),this.addAll(d,c),this.findAround(a,d,!1)}e&&this.sync(g)&&this.open--}addAll(a,b,c,d){let e=c||0;for(let f=c?a.childNodes[c]:a.firstChild,g=null==d?null:a.childNodes[d];f!=g;f=f.nextSibling,++e)this.findAtPoint(a,e),this.addDOM(f,b);this.findAtPoint(a,e)}findPlace(a,b,c){let d,e;for(let b=this.open,f=0;b>=0;b--){let g=this.nodes[b],h=g.findWrapping(a);if(h&&(!d||d.length>h.length+f)&&(d=h,e=g,!h.length))break;if(g.solid){if(c)break;f+=2}}if(!d)return null;this.sync(e);for(let a=0;a<d.length;a++)b=this.enterInner(d[a],null,b,!1);return b}insertNode(a,b,c){if(a.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(b=this.enterInner(a,null,b))}let d=this.findPlace(a,b,c);if(d){this.closeExtra();let b=this.top;b.match&&(b.match=b.match.matchType(a.type));let c=i.none;for(let e of d.concat(a.marks))(b.type?b.type.allowsMarkType(e.type):W(e.type,a.type))&&(c=e.addToSet(c));return b.content.push(a.mark(c)),!0}return!1}enter(a,b,c,d){let e=this.findPlace(a.create(b),c,!1);return e&&(e=this.enterInner(a,b,c,!0,d)),e}enterInner(a,b,c,d=!1,e){this.closeExtra();let f=this.top;f.match=f.match&&f.match.matchType(a);let g=S(a,e,f.options);4&f.options&&0==f.content.length&&(g|=4);let h=i.none;return c=c.filter(b=>(f.type?!f.type.allowsMarkType(b.type):!W(b.type,a))||(h=b.addToSet(h),!1)),this.nodes.push(new T(a,b,h,d,null,g)),this.open++,c}closeExtra(a=!1){let b=this.nodes.length-1;if(b>this.open){for(;b>this.open;b--)this.nodes[b-1].content.push(this.nodes[b].finish(a));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(a){for(let b=this.open;b>=0;b--)if(this.nodes[b]==a)return this.open=b,!0;else this.localPreserveWS&&(this.nodes[b].options|=1);return!1}get currentPos(){this.closeExtra();let a=0;for(let b=this.open;b>=0;b--){let c=this.nodes[b].content;for(let b=c.length-1;b>=0;b--)a+=c[b].nodeSize;b&&a++}return a}findAtPoint(a,b){if(this.find)for(let c=0;c<this.find.length;c++)this.find[c].node==a&&this.find[c].offset==b&&(this.find[c].pos=this.currentPos)}findInside(a){if(this.find)for(let b=0;b<this.find.length;b++)null==this.find[b].pos&&1==a.nodeType&&a.contains(this.find[b].node)&&(this.find[b].pos=this.currentPos)}findAround(a,b,c){if(a!=b&&this.find)for(let d=0;d<this.find.length;d++)null==this.find[d].pos&&1==a.nodeType&&a.contains(this.find[d].node)&&b.compareDocumentPosition(this.find[d].node)&(c?2:4)&&(this.find[d].pos=this.currentPos)}findInText(a){if(this.find)for(let b=0;b<this.find.length;b++)this.find[b].node==a&&(this.find[b].pos=this.currentPos-(a.nodeValue.length-this.find[b].offset))}matchesContext(a){if(a.indexOf("|")>-1)return a.split(/\s*\|\s*/).some(this.matchesContext,this);let b=a.split("/"),c=this.options.context,d=!this.isOpen&&(!c||c.parent.type==this.nodes[0].type),e=-(c?c.depth+1:0)+ +!d,f=(a,g)=>{for(;a>=0;a--){let h=b[a];if(""==h){if(a==b.length-1||0==a)continue;for(;g>=e;g--)if(f(a-1,g))return!0;return!1}{let a=g>0||0==g&&d?this.nodes[g].type:c&&g>=e?c.node(g-e).type:null;if(!a||a.name!=h&&!a.isInGroup(h))return!1;g--}}return!0};return f(b.length-1,this.open)}textblockFromContext(){let a=this.options.context;if(a)for(let b=a.depth;b>=0;b--){let c=a.node(b).contentMatchAt(a.indexAfter(b)).defaultType;if(c&&c.isTextblock&&c.defaultAttrs)return c}for(let a in this.parser.schema.nodes){let b=this.parser.schema.nodes[a];if(b.isTextblock&&b.defaultAttrs)return b}}}function V(a){let b={};for(let c in a)b[c]=a[c];return b}function W(a,b){let c=b.schema.nodes;for(let d in c){let e=c[d];if(!e.allowsMarkType(a))continue;let f=[],g=a=>{f.push(a);for(let c=0;c<a.edgeCount;c++){let{type:d,next:e}=a.edge(c);if(d==b||0>f.indexOf(e)&&g(e))return!0}};if(g(e.contentMatch))return!0}}class X{constructor(a,b){this.nodes=a,this.marks=b}serializeFragment(a,b={},c){c||(c=Z(b).createDocumentFragment());let d=c,e=[];return a.forEach(a=>{if(e.length||a.marks.length){let c=0,f=0;for(;c<e.length&&f<a.marks.length;){let b=a.marks[f];if(!this.marks[b.type.name]){f++;continue}if(!b.eq(e[c][0])||!1===b.type.spec.spanning)break;c++,f++}for(;c<e.length;)d=e.pop()[1];for(;f<a.marks.length;){let c=a.marks[f++],g=this.serializeMark(c,a.isInline,b);g&&(e.push([c,d]),d.appendChild(g.dom),d=g.contentDOM||g.dom)}}d.appendChild(this.serializeNodeInner(a,b))}),c}serializeNodeInner(a,b){let{dom:c,contentDOM:d}=_(Z(b),this.nodes[a.type.name](a),null,a.attrs);if(d){if(a.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(a.content,b,d)}return c}serializeNode(a,b={}){let c=this.serializeNodeInner(a,b);for(let d=a.marks.length-1;d>=0;d--){let e=this.serializeMark(a.marks[d],a.isInline,b);e&&((e.contentDOM||e.dom).appendChild(c),c=e.dom)}return c}serializeMark(a,b,c={}){let d=this.marks[a.type.name];return d&&_(Z(c),d(a,b),null,a.attrs)}static renderSpec(a,b,c=null,d){return _(a,b,c,d)}static fromSchema(a){return a.cached.domSerializer||(a.cached.domSerializer=new X(this.nodesFromSchema(a),this.marksFromSchema(a)))}static nodesFromSchema(a){let b=Y(a.nodes);return b.text||(b.text=a=>a.text),b}static marksFromSchema(a){return Y(a.marks)}}function Y(a){let b={};for(let c in a){let d=a[c].spec.toDOM;d&&(b[c]=d)}return b}function Z(a){return a.document||window.document}let $=new WeakMap;function _(a,b,c,d){let e,f,g;if("string"==typeof b)return{dom:a.createTextNode(b)};if(null!=b.nodeType)return{dom:b};if(b.dom&&null!=b.dom.nodeType)return b;let h=b[0],i;if("string"!=typeof h)throw RangeError("Invalid array passed to renderSpec");if(d&&(void 0===(f=$.get(d))&&$.set(d,(g=null,!function a(b){if(b&&"object"==typeof b)if(Array.isArray(b))if("string"==typeof b[0])g||(g=[]),g.push(b);else for(let c=0;c<b.length;c++)a(b[c]);else for(let c in b)a(b[c])}(d),f=g)),i=f)&&i.indexOf(b)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let j=h.indexOf(" ");j>0&&(c=h.slice(0,j),h=h.slice(j+1));let k=c?a.createElementNS(c,h):a.createElement(h),l=b[1],m=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){for(let a in m=2,l)if(null!=l[a]){let b=a.indexOf(" ");b>0?k.setAttributeNS(a.slice(0,b),a.slice(b+1),l[a]):"style"==a&&k.style?k.style.cssText=l[a]:k.setAttribute(a,l[a])}}for(let f=m;f<b.length;f++){let g=b[f];if(0===g){if(f<b.length-1||f>m)throw RangeError("Content hole must be the only child of its parent node");return{dom:k,contentDOM:k}}{let{dom:b,contentDOM:f}=_(a,g,c,d);if(k.appendChild(b),f){if(e)throw RangeError("Multiple content holes");e=f}}}return{dom:k,contentDOM:e}}},2203:(a,b,c)=>{"use strict";c.d(b,{CW:()=>h,FR:()=>g,Ry:()=>i,U:()=>j,VH:()=>d,dT:()=>e,m9:()=>k,yo:()=>f});let d="InterruptSignal",e="Stateful",f="Resume",g="YieldNow",h=a=>({_tag:d,cause:a}),i=a=>({_tag:e,onFiber:a}),j=a=>({_tag:f,effect:a}),k=()=>({_tag:g})},3174:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},4820:(a,b,c)=>{"use strict";c.d(b,{F6:()=>u,Ie:()=>m,Ui:()=>s,dh:()=>i,kg:()=>t});var d=c(87893),e=c(25551),f=c(40316),g=c(91238),h=c(64434);let i=Symbol.for("effect/DifferOrPatch");function j(a){return a}let k={...h.wC.prototype,[i]:{_Value:j,_Key:j,_Patch:j}},l=Object.create(Object.assign(Object.create(k),{_tag:"Empty"})),m=()=>l,n=Object.assign(Object.create(k),{_tag:"AndThen"}),o=Object.assign(Object.create(k),{_tag:"SetLeft"}),p=Object.assign(Object.create(k),{_tag:"SetRight"}),q=Object.assign(Object.create(k),{_tag:"UpdateLeft"}),r=Object.assign(Object.create(k),{_tag:"UpdateRight"}),s=a=>{var b,c;switch(a.oldValue._tag){case"Left":switch(a.newValue._tag){case"Left":{let b,c=a.left.diff(a.oldValue.left,a.newValue.left);if(f.aI(c,a.left.empty))return m();return(b=Object.create(q)).patch=c,b}case"Right":let d;return b=a.newValue.right,(d=Object.create(p)).value=b,d}case"Right":switch(a.newValue._tag){case"Left":let e;return c=a.newValue.left,(e=Object.create(o)).value=c,e;case"Right":{let b,c=a.right.diff(a.oldValue.right,a.newValue.right);if(f.aI(c,a.right.empty))return m();return(b=Object.create(r)).patch=c,b}}}},t=g.XY(2,(a,b)=>{let c;return(c=Object.create(n)).first=a,c.second=b,c}),u=g.XY(2,(a,{left:b,oldValue:c,right:f})=>{if("Empty"===a._tag)return c;let g=d.of(a),h=c;for(;d.J_(g);){let a=d.v4(g),c=d.Rx(g);switch(a._tag){case"Empty":g=c;break;case"AndThen":g=d.Hs(a.first)(d.Hs(a.second)(c));break;case"UpdateLeft":"Left"===h._tag&&(h=e.kb(b.patch(a.patch,h.left))),g=c;break;case"UpdateRight":"Right"===h._tag&&(h=e.pG(f.patch(a.patch,h.right))),g=c;break;case"SetLeft":h=e.kb(a.value),g=c;break;case"SetRight":h=e.pG(a.value),g=c}}return h})},5439:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={getPreviouslyRevalidatedTags:function(){return w},getServerUtils:function(){return v},interpolateDynamicPath:function(){return t},normalizeCdnUrl:function(){return s},normalizeDynamicRouteParams:function(){return u}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(13973),g=c(41659),h=c(31797),i=c(71544),j=c(89964),k=c(77165),l=c(66796),m=c(47929),n=c(62018),o=c(23101),p=c(37525),q=c(95491);function r(a,b){for(let c in delete a.nextInternalLocale,a){let d=c!==m.NEXT_QUERY_PARAM_PREFIX&&c.startsWith(m.NEXT_QUERY_PARAM_PREFIX),e=c!==m.NEXT_INTERCEPTION_MARKER_PREFIX&&c.startsWith(m.NEXT_INTERCEPTION_MARKER_PREFIX);(d||e||b.includes(c))&&delete a[c]}}function s(a,b){let c=(0,p.parseReqUrl)(a.url);if(!c)return a.url;delete c.search,r(c.query,b),a.url=(0,q.formatUrl)(c)}function t(a,b,c){if(!c)return a;for(let d of Object.keys(c.groups)){let e,{optional:f,repeat:g}=c.groups[d],h=`[${g?"...":""}${d}]`;f&&(h=`[${h}]`);let i=b[d];((e=Array.isArray(i)?i.map(a=>a&&encodeURIComponent(a)).join("/"):i?encodeURIComponent(i):"")||f)&&(a=a.replaceAll(h,e))}return a}function u(a,b,c,d){let e={};for(let f of Object.keys(b.groups)){let g=a[f];"string"==typeof g?g=(0,l.normalizeRscURL)(g):Array.isArray(g)&&(g=g.map(l.normalizeRscURL));let h=c[f],i=b.groups[f].optional;if((Array.isArray(h)?h.some(a=>Array.isArray(g)?g.some(b=>b.includes(a)):null==g?void 0:g.includes(a)):null==g?void 0:g.includes(h))||void 0===g&&!(i&&d))return{params:{},hasValidParams:!1};i&&(!g||Array.isArray(g)&&1===g.length&&("index"===g[0]||g[0]===`[[...${f}]]`)||"index"===g||g===`[[...${f}]]`)&&(g=void 0,delete a[f]),g&&"string"==typeof g&&b.groups[f].repeat&&(g=g.split("/")),g&&(e[f]=g)}return{params:e,hasValidParams:!0}}function v({page:a,i18n:b,basePath:c,rewrites:d,pageIsDynamic:e,trailingSlash:l,caseSensitive:m}){let p,q,w;return e&&(p=(0,h.getNamedRouteRegex)(a,{prefixRouteKeys:!1}),w=(q=(0,i.getRouteMatcher)(p))(a)),{handleRewrites:function(h,i){let n=structuredClone(i),o={},p=n.pathname,r=d=>{let i=(0,g.getPathMatch)(d.source+(l?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!m});if(!n.pathname)return!1;let k=i(n.pathname);if((d.has||d.missing)&&k){let a=(0,j.matchHas)(h,n.query,d.has,d.missing);a?Object.assign(k,a):k=!1}if(k){let{parsedDestination:g,destQuery:h}=(0,j.prepareDestination)({appendParamsToQuery:!0,destination:d.destination,params:k,query:n.query});if(g.protocol)return!0;if(Object.assign(o,h,k),Object.assign(n.query,g.query),delete g.query,Object.assign(n,g),!(p=n.pathname))return!1;if(c&&(p=p.replace(RegExp(`^${c}`),"")||"/"),b){let a=(0,f.normalizeLocalePath)(p,b.locales);p=a.pathname,n.query.nextInternalLocale=a.detectedLocale||k.nextInternalLocale}if(p===a)return!0;if(e&&q){let a=q(p);if(a)return n.query={...n.query,...a},!0}}return!1};for(let a of d.beforeFiles||[])r(a);if(p!==a){let b,c=!1;for(let a of d.afterFiles||[])if(c=r(a))break;if(!c&&!((b=(0,k.removeTrailingSlash)(p||""))===(0,k.removeTrailingSlash)(a)||(null==q?void 0:q(b)))){for(let a of d.fallback||[])if(c=r(a))break}}return{rewriteParams:o,rewrittenParsedUrl:n}},defaultRouteRegex:p,dynamicRouteMatcher:q,defaultRouteMatches:w,normalizeQueryParams:function(a,b){for(let[c,d]of(delete a.nextInternalLocale,Object.entries(a))){let e=(0,n.normalizeNextQueryParam)(c);e&&(delete a[c],b.add(e),void 0!==d&&(a[e]=Array.isArray(d)?d.map(a=>(0,o.decodeQueryPathParameter)(a)):(0,o.decodeQueryPathParameter)(d)))}},getParamsFromRouteMatches:function(a){if(!p)return null;let{groups:b,routeKeys:c}=p,d=(0,i.getRouteMatcher)({re:{exec:a=>{let d=Object.fromEntries(new URLSearchParams(a));for(let[a,b]of Object.entries(d)){let c=(0,n.normalizeNextQueryParam)(a);c&&(d[c]=b,delete d[a])}let e={};for(let a of Object.keys(c)){let f=c[a];if(!f)continue;let g=b[f],h=d[a];if(!g.optional&&!h)return null;e[g.pos]=h}return e}},groups:b})(a);return d||null},normalizeDynamicRouteParams:(a,b)=>p&&w?u(a,p,w,b):{params:{},hasValidParams:!1},normalizeCdnUrl:(a,b)=>s(a,b),interpolateDynamicPath:(a,b)=>t(a,b,p),filterInternalQuery:(a,b)=>r(a,b)}}function w(a,b){return"string"==typeof a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER]&&a[m.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER]===b?a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER].split(","):[]}},5827:a=>{"use strict";var b=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"===c.call(a)},g=function(a){if(!a||"[object Object]"!==c.call(a))return!1;var d,e=b.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&b.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!f)return!1;for(d in a);return void 0===d||b.call(a,d)},h=function(a,b){d&&"__proto__"===b.name?d(a,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):a[b.name]=b.newValue},i=function(a,c){if("__proto__"===c){if(!b.call(a,c))return;else if(e)return e(a,c).value}return a[c]};a.exports=function a(){var b,c,d,e,j,k,l=arguments[0],m=1,n=arguments.length,o=!1;for("boolean"==typeof l&&(o=l,l=arguments[1]||{},m=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});m<n;++m)if(b=arguments[m],null!=b)for(c in b)d=i(l,c),l!==(e=i(b,c))&&(o&&e&&(g(e)||(j=f(e)))?(j?(j=!1,k=d&&f(d)?d:[]):k=d&&g(d)?d:{},h(l,{name:c,newValue:a(o,k,e)})):void 0!==e&&h(l,{name:c,newValue:e}));return l}},6736:(a,b,c)=>{"use strict";c.d(b,{CN:()=>n,BC:()=>s,u2:()=>t,gR:()=>Q,Ou:()=>O,Qq:()=>aj,gv:()=>F,Ie:()=>W,D8:()=>q,Si:()=>af,pb:()=>ac,x1:()=>$,mA:()=>_,i8:()=>I,g9:()=>G,Uk:()=>J,Kl:()=>H,Bq:()=>Z,Ts:()=>p,bt:()=>ah,Yz:()=>ab,d5:()=>z,v4:()=>A,EI:()=>u,iI:()=>v,fj:()=>ak,HV:()=>B,Rm:()=>C,Y6:()=>o,Tj:()=>Y,OM:()=>al,of:()=>X,rT:()=>aa,Hs:()=>r,TS:()=>ad,XK:()=>ae,BE:()=>K,di:()=>L,Ln:()=>E,gI:()=>R,Rx:()=>D,t8:()=>ag,KC:()=>V,$v:()=>y,yU:()=>M,OY:()=>N});var d=c(25551),e=c(40316),f=c(82956),g=c(91238);let h=a=>a.length>0;var i=c(1239),j=c(21393);let k=(0,g.XY)(2,(a,b)=>{let c=0;for(let d of a){let a=b(d,c);if((0,j.Lm)(a)){if(a)return i.zN(d)}else if(i.Ru(a))return a;c++}return i.dv()});var l=c(17412),m=c(84294);let n=a=>Array(a),o=(0,g.XY)(2,(a,b)=>{let c=Math.max(1,Math.floor(a)),d=Array(c);for(let a=0;a<c;a++)d[a]=b(a);return d}),p=a=>Array.isArray(a)?a:Array.from(a),q=a=>Array.isArray(a)?a:[a];i.$r;let r=(0,g.XY)(2,(a,b)=>[b,...a]),s=(0,g.XY)(2,(a,b)=>[...a,b]),t=(0,g.XY)(2,(a,b)=>p(a).concat(p(b))),u=h,v=h,w=(a,b)=>a<0||a>=b.length,x=(0,g.XY)(2,(a,b)=>{let c=Math.floor(b);return w(c,a)?i.dv():i.zN(a[c])}),y=(0,g.XY)(2,(a,b)=>{let c=Math.floor(b);if(w(c,a))throw Error(`Index ${c} out of bounds`);return a[c]}),z=x(0),A=y(0),B=a=>v(a)?i.zN(C(a)):i.dv(),C=a=>a[a.length-1],D=a=>a.slice(1),E=(0,g.XY)(2,(a,b)=>R(a,((a,b)=>{let c=0;for(let d of a){if(!b(d,c))break;c++}return c})(a,b))),F=(0,g.XY)(2,(a,b)=>{let c=p(a);return c.slice(Math.floor(Math.min(Math.max(0,b),c.length)),c.length)}),G=(0,g.XY)(2,(a,b)=>{let c=0;for(let d of a){if(b(d,c))return i.zN(c);c++}return i.dv()}),H=(0,g.XY)(2,(a,b)=>{let c=p(a);for(let a=c.length-1;a>=0;a--)if(b(c[a],a))return i.zN(a);return i.dv()}),I=k,J=(0,g.XY)(2,(a,b)=>{let c=p(a);for(let a=c.length-1;a>=0;a--){let d=c[a],e=b(d,a);if(j.Lm(e)){if(e)return i.zN(d)}else if(i.Ru(e))return e}return i.dv()}),K=a=>Array.from(a).reverse(),L=(0,g.XY)(2,(a,b)=>{let c=Array.from(a);return c.sort(b),c}),M=(0,g.XY)(2,(a,b)=>N(a,b,m.L8)),N=(0,g.XY)(3,(a,b,c)=>{let d=p(a),e=p(b);if(v(d)&&v(e)){let a=[c(A(d),A(e))],b=Math.min(d.length,e.length);for(let f=1;f<b;f++)a[f]=c(d[f],e[f]);return a}return[]}),O=a=>(0,g.XY)(2,(b,c)=>{for(let d of b)if(a(c,d))return!0;return!1}),P=e.XY(),Q=O(P),R=(0,g.XY)(2,(a,b)=>{let c=Array.from(a),d=Math.floor(b);return v(c)?d>=1?S(c,d):[[],c]:[c,[]]}),S=(0,g.XY)(2,(a,b)=>{let c=Math.max(1,Math.floor(b));return c>=a.length?[T(a),[]]:[r(a.slice(1,c),A(a)),a.slice(c)]}),T=a=>a.slice(),U=(0,g.XY)(3,(a,b,c)=>{let d=p(a),e=p(b);return v(d)?v(e)?ai(c)(t(d,e)):d:e}),V=(0,g.XY)(2,(a,b)=>U(a,b,P)),W=()=>[],X=a=>[a],Y=(0,g.XY)(2,(a,b)=>a.map(b)),Z=(0,g.XY)(2,(a,b)=>{if(0===a.length)return[];let c=[];for(let d=0;d<a.length;d++){let e=b(a[d],d);for(let a=0;a<e.length;a++)c.push(e[a])}return c})(g.D_),$=(0,g.XY)(2,(a,b)=>{let c=p(a),d=[];for(let a=0;a<c.length;a++){let e=b(c[a],a);i.Ru(e)&&d.push(e.value)}return d}),_=(0,g.XY)(2,(a,b)=>{let c=0,d=[];for(let e of a){let a=b(e,c);if(i.Ru(a))d.push(a.value);else break;c++}return d}),aa=(0,g.XY)(2,(a,b)=>{let c=[],e=[],f=p(a);for(let a=0;a<f.length;a++){let g=b(f[a],a);d.OC(g)?c.push(g.left):e.push(g.right)}return[c,e]}),ab=$(g.D_),ac=(0,g.XY)(2,(a,b)=>{let c=p(a),d=[];for(let a=0;a<c.length;a++)b(c[a],a)&&d.push(c[a]);return d}),ad=(0,g.XY)(3,(a,b,c)=>p(a).reduce((a,b,d)=>c(a,b,d),b)),ae=(0,g.XY)(3,(a,b,c)=>p(a).reduceRight((a,b,d)=>c(a,b,d),b)),af=(0,g.XY)(2,(a,b)=>a.every(b)),ag=(a,b)=>{let c,d=[],e=a;for(;i.Ru(c=b(e));){let[a,b]=c.value;d.push(a),e=b}return d};l.YO;let ah=f.YO,ai=(0,g.XY)(2,(a,b)=>{let c=p(a);if(v(c)){let a=[A(c)];for(let d of D(c))a.every(a=>!b(d,a))&&a.push(d);return a}return[]}),aj=a=>ai(a,e.XY()),ak=(0,g.XY)(2,(a,b)=>p(a).join(b)),al=(0,g.XY)(3,(a,b,c)=>{let d=0,e=b,f=[];for(let b of a){let a=c(e,b,d);e=a[0],f.push(a[1]),d++}return[e,f]})},6993:(a,b,c)=>{"use strict";c.d(b,{L:()=>d.L2});var d=c(890)},7846:(a,b,c)=>{"use strict";let d,e,f;c.d(b,{Mm:()=>$,Ke:()=>_,mk:()=>ad,n_:()=>ac,p2:()=>aa,B1:()=>ae,dT:()=>ab});var g=c(87893),h=c(74247),i=c(91238),j=c(15615),k=c(43729),l=c(25571),m=c(1239),n=c(73934),o=c(11449),p=c(60639),q=c(25440),r=c(79331);let s=Symbol.for("effect/PubSub/AbsentValue"),t=(a,b)=>c=>{c.has(a)||c.set(a,new Set),c.get(a).add(b)},u=(a,b)=>c=>{if(!c.has(a))return;let d=c.get(a);d.delete(b),0===d.size&&c.delete(a)},v=(0,i.XY)(2,(a,b)=>a.publish(b)),w=a=>{let b="number"==typeof a?{capacity:a}:a;K(b.capacity);let c=b.replay&&b.replay>0?new X(Math.ceil(b.replay)):void 0;return 1===b.capacity?new B(c):(0,l.U5)(b.capacity)===b.capacity?new z(b.capacity,c):new x(b.capacity,c)};class x{constructor(a,b){this.publisherIndex=0,this.subscriberCount=0,this.subscribersIndex=0,this.capacity=a,this.replayBuffer=b,this.array=Array.from({length:a}),this.subscribers=Array.from({length:a})}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherIndex===this.subscribersIndex}isFull(){return this.publisherIndex===this.subscribersIndex+this.capacity}size(){return this.publisherIndex-this.subscribersIndex}publish(a){if(this.isFull())return!1;if(0!==this.subscriberCount){let b=this.publisherIndex%this.capacity;this.array[b]=a,this.subscribers[b]=this.subscriberCount,this.publisherIndex+=1}return this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a),c=b.length,d=this.publisherIndex-this.subscribersIndex,e=Math.min(c,this.capacity-d);if(0===e)return b;let f=0,h=this.publisherIndex+e;for(;this.publisherIndex!==h;){let a=g.$v(b,f++),c=this.publisherIndex%this.capacity;this.array[c]=a,this.subscribers[c]=this.subscriberCount,this.publisherIndex+=1,this.replayBuffer&&this.replayBuffer.offer(a)}return g.gv(b,f)}slide(){if(this.subscribersIndex!==this.publisherIndex){let a=this.subscribersIndex%this.capacity;this.array[a]=s,this.subscribers[a]=0,this.subscribersIndex+=1}this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new y(this,this.publisherIndex,!1)}}class y{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||this.self.publisherIndex===this.subscriberIndex||this.self.publisherIndex===this.self.subscribersIndex}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;if(this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex),this.subscriberIndex!==this.self.publisherIndex){let a=this.subscriberIndex%this.self.capacity,b=this.self.array[a];return this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1,b}return a}pollUpTo(a){if(this.unsubscribed)return g.Ie();this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);let b=Math.min(a,this.self.publisherIndex-this.subscriberIndex);if(b<=0)return g.Ie();let c=[],d=this.subscriberIndex+b;for(;this.subscriberIndex!==d;){let a=this.subscriberIndex%this.self.capacity,b=this.self.array[a];this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),c.push(b),this.subscriberIndex+=1}return g.Ts(c)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);this.subscriberIndex!==this.self.publisherIndex;){let a=this.subscriberIndex%this.self.capacity;this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1}}}class z{constructor(a,b){this.publisherIndex=0,this.subscriberCount=0,this.subscribersIndex=0,this.capacity=a,this.replayBuffer=b,this.array=Array.from({length:a}),this.mask=a-1,this.subscribers=Array.from({length:a})}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherIndex===this.subscribersIndex}isFull(){return this.publisherIndex===this.subscribersIndex+this.capacity}size(){return this.publisherIndex-this.subscribersIndex}publish(a){if(this.isFull())return!1;if(0!==this.subscriberCount){let b=this.publisherIndex&this.mask;this.array[b]=a,this.subscribers[b]=this.subscriberCount,this.publisherIndex+=1}return this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a),c=b.length,d=this.publisherIndex-this.subscribersIndex,e=Math.min(c,this.capacity-d);if(0===e)return b;let f=0,h=this.publisherIndex+e;for(;this.publisherIndex!==h;){let a=g.$v(b,f++),c=this.publisherIndex&this.mask;this.array[c]=a,this.subscribers[c]=this.subscriberCount,this.publisherIndex+=1,this.replayBuffer&&this.replayBuffer.offer(a)}return g.gv(b,f)}slide(){if(this.subscribersIndex!==this.publisherIndex){let a=this.subscribersIndex&this.mask;this.array[a]=s,this.subscribers[a]=0,this.subscribersIndex+=1}this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new A(this,this.publisherIndex,!1)}}class A{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||this.self.publisherIndex===this.subscriberIndex||this.self.publisherIndex===this.self.subscribersIndex}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;if(this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex),this.subscriberIndex!==this.self.publisherIndex){let a=this.subscriberIndex&this.self.mask,b=this.self.array[a];return this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1,b}return a}pollUpTo(a){if(this.unsubscribed)return g.Ie();this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);let b=Math.min(a,this.self.publisherIndex-this.subscriberIndex);if(b<=0)return g.Ie();let c=[],d=this.subscriberIndex+b;for(;this.subscriberIndex!==d;){let a=this.subscriberIndex&this.self.mask,b=this.self.array[a];this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),c.push(b),this.subscriberIndex+=1}return g.Ts(c)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);this.subscriberIndex!==this.self.publisherIndex;){let a=this.subscriberIndex&this.self.mask;this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1}}}class B{constructor(a){this.publisherIndex=0,this.subscriberCount=0,this.subscribers=0,this.value=s,this.capacity=1,this.replayBuffer=a}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}pipe(){return(0,n.tT)(this,arguments)}isEmpty(){return 0===this.subscribers}isFull(){return!this.isEmpty()}size(){return+!this.isEmpty()}publish(a){return!this.isFull()&&(0!==this.subscriberCount&&(this.value=a,this.subscribers=this.subscriberCount,this.publisherIndex+=1),this.replayBuffer&&this.replayBuffer.offer(a),!0)}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a);return g.Im(b)?b:this.publish(g.z1(b))?g.gv(b,1):b}slide(){this.isFull()&&(this.subscribers=0,this.value=s),this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new C(this,this.publisherIndex,!1)}}class C{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||0===this.self.subscribers||this.subscriberIndex===this.self.publisherIndex}size(){return+!this.isEmpty()}poll(a){if(this.isEmpty())return a;let b=this.self.value;return this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s),this.subscriberIndex+=1,b}pollUpTo(a){if(this.isEmpty()||a<1)return g.Ie();let b=this.self.value;return this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s),this.subscriberIndex+=1,g.of(b)}unsubscribe(){this.unsubscribed||(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex!==this.self.publisherIndex&&(this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s)))}}class D{constructor(a){this.publisherHead={value:s,subscribers:0,next:null},this.publisherTail=this.publisherHead,this.publisherIndex=0,this.subscribersIndex=0,this.capacity=Number.MAX_SAFE_INTEGER,this.replayBuffer=a}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherHead===this.publisherTail}isFull(){return!1}size(){return this.publisherIndex-this.subscribersIndex}publish(a){let b=this.publisherTail.subscribers;return 0!==b&&(this.publisherTail.next={value:a,subscribers:b,next:null},this.publisherTail=this.publisherTail.next,this.publisherIndex+=1),this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0!==this.publisherTail.subscribers)for(let b of a)this.publish(b);else this.replayBuffer&&this.replayBuffer.offerAll(a);return g.Ie()}slide(){this.publisherHead!==this.publisherTail&&(this.publisherHead=this.publisherHead.next,this.publisherHead.value=s,this.subscribersIndex+=1),this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.publisherTail.subscribers+=1,new E(this,this.publisherTail,this.publisherIndex,!1)}}class E{constructor(a,b,c,d){this.self=a,this.subscriberHead=b,this.subscriberIndex=c,this.unsubscribed=d}isEmpty(){if(this.unsubscribed)return!0;let a=!0,b=!0;for(;b;)this.subscriberHead===this.self.publisherTail?b=!1:this.subscriberHead.next.value!==s?(a=!1,b=!1):(this.subscriberHead=this.subscriberHead.next,this.subscriberIndex+=1);return a}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;let b=!0,c=a;for(;b;)if(this.subscriberHead===this.self.publisherTail)b=!1;else{let a=this.subscriberHead.next.value;a!==s&&(c=a,this.subscriberHead.subscribers-=1,0===this.subscriberHead.subscribers&&(this.self.publisherHead=this.self.publisherHead.next,this.self.publisherHead.value=s,this.self.subscribersIndex+=1),b=!1),this.subscriberHead=this.subscriberHead.next,this.subscriberIndex+=1}return c}pollUpTo(a){let b=[],c=0;for(;c!==a;){let d=this.poll(s);d===s?c=a:(b.push(d),c+=1)}return g.Ts(b)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.publisherTail.subscribers-=1;this.subscriberHead!==this.self.publisherTail;)this.subscriberHead.next.value!==s&&(this.subscriberHead.subscribers-=1,0===this.subscriberHead.subscribers&&(this.self.publisherHead=this.self.publisherHead.next,this.self.publisherHead.value=s,this.self.subscribersIndex+=1)),this.subscriberHead=this.subscriberHead.next}}class F extends h.Xs{static{d=r.aK}constructor(a,b,c,e,f,g,h,i){super(),this[d]=r.Es,this.pubsub=a,this.subscribers=b,this.subscription=c,this.pollers=e,this.shutdownHook=f,this.shutdownFlag=g,this.strategy=h,this.replayWindow=i}commit(){return this.take}pipe(){return(0,n.tT)(this,arguments)}capacity(){return this.pubsub.capacity}isActive(){return!k.Jt(this.shutdownFlag)}get size(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.PyW(this.subscription.size()+this.replayWindow.remaining))}unsafeSize(){return k.Jt(this.shutdownFlag)?m.dv():m.zN(this.subscription.size()+this.replayWindow.remaining)}get isFull(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.PyW(this.subscription.size()===this.capacity()))}get isEmpty(){return o.TjK(this.size,a=>0===a)}get shutdown(){return o.rfi(o.$we(a=>(k.hZ(this.shutdownFlag,!0),(0,i.Fs)(q.L7(N(this.pollers),b=>o.bdM(b,a.id()),!1),o.aNH(o.OH5(()=>{this.subscribers.delete(this.subscription),this.subscription.unsubscribe(),this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers)})),o.iK2(o.syF(this.shutdownHook,void 0)),o.NLW))))}get isShutdown(){return o.OH5(()=>k.Jt(this.shutdownFlag))}get awaitShutdown(){return o.gn0(this.shutdownHook)}get take(){return o.$we(a=>{if(k.Jt(this.shutdownFlag))return o.GaK;if(this.replayWindow.remaining>0){let a=this.replayWindow.take();return o.PyW(a)}let b=j.Im(this.pollers)?this.subscription.poll(j.r_):j.r_;if(b!==j.r_)return this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),o.PyW(b);{let b=o.MIt(a.id());return(0,i.Fs)(o.DYE(()=>((0,i.Fs)(this.pollers,j.x(b)),(0,i.Fs)(this.subscribers,t(this.subscription,this.pollers)),this.strategy.unsafeCompletePollers(this.pubsub,this.subscribers,this.subscription,this.pollers),k.Jt(this.shutdownFlag)?o.GaK:o.gn0(b))),o.nAr(()=>o.OH5(()=>R(this.pollers,b))))}})}get takeAll(){return o.DYE(()=>{if(k.Jt(this.shutdownFlag))return o.GaK;let a=j.Im(this.pollers)?O(this.subscription):g.Ie();return(this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),this.replayWindow.remaining>0)?o.PyW(g.u2(this.replayWindow.takeAll(),a)):o.PyW(a)})}takeUpTo(a){return o.DYE(()=>{let b;if(k.Jt(this.shutdownFlag))return o.GaK;if(this.replayWindow.remaining>=a){let b=this.replayWindow.takeN(a);return o.PyW(b)}this.replayWindow.remaining>0&&(b=this.replayWindow.takeAll(),a-=b.length);let c=j.Im(this.pollers)?P(this.subscription,a):g.Ie();return this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),b?o.PyW(g.u2(b,c)):o.PyW(c)})}takeBetween(a,b){return o.DYE(()=>G(this,a,b,g.Ie()))}}let G=(a,b,c,d)=>c<b?o.PyW(d):(0,i.Fs)(a.takeUpTo(c),o.qIB(e=>{let f=b-e.length;return 1===f?(0,i.Fs)(a.take,o.TjK(a=>(0,i.Fs)(d,g.u2(e),g.BC(a)))):f>1?(0,i.Fs)(a.take,o.qIB(b=>G(a,f-1,c-e.length-1,(0,i.Fs)(d,g.u2(e),g.BC(b))))):o.PyW((0,i.Fs)(d,g.u2(e)))}));class H{static{e=r.e6,f=r.aK}constructor(a,b,c,d,g,h){this[e]=r.GR,this[f]=r.Es,this.pubsub=a,this.subscribers=b,this.scope=c,this.shutdownHook=d,this.shutdownFlag=g,this.strategy=h}capacity(){return this.pubsub.capacity}get size(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.OH5(()=>this.pubsub.size()))}unsafeSize(){return k.Jt(this.shutdownFlag)?m.dv():m.zN(this.pubsub.size())}get isFull(){return o.TjK(this.size,a=>a===this.capacity())}get isEmpty(){return o.TjK(this.size,a=>0===a)}get awaitShutdown(){return o.gn0(this.shutdownHook)}get isShutdown(){return o.OH5(()=>k.Jt(this.shutdownFlag))}get shutdown(){return o.rfi(o.$we(a=>((0,i.Fs)(this.shutdownFlag,k.hZ(!0)),(0,i.Fs)(this.scope.close(o._sz(a.id())),o.aNH(this.strategy.shutdown),o.iK2(o.syF(this.shutdownHook,void 0)),o.NLW))))}publish(a){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:this.pubsub.publish(a)?(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),o.PyW(!0)):this.strategy.handleSurplus(this.pubsub,this.subscribers,g.of(a),this.shutdownFlag))}isActive(){return!k.Jt(this.shutdownFlag)}unsafeOffer(a){return!k.Jt(this.shutdownFlag)&&!!this.pubsub.publish(a)&&(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),!0)}publishAll(a){return o.DYE(()=>{if(k.Jt(this.shutdownFlag))return o.GaK;let b=Q(this.pubsub,a);return(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),g.Im(b))?o.PyW(!0):this.strategy.handleSurplus(this.pubsub,this.subscribers,b,this.shutdownFlag)})}get subscribe(){let a,b,c,d=o.Mim(q.Q7([this.scope.fork(p.il),(a=this.pubsub,b=this.subscribers,c=this.strategy,o.TjK(o.WW4(),d=>{let e,f,g,h,i,l;return e=a,f=b,g=a.subscribe(),h=j.dT(),i=d,l=k.L8(!1),new F(e,f,g,h,i,l,c,e.replayWindow())}))]),a=>a[0].addFinalizer(()=>a[1].shutdown));return o.TjK(q.Q5(d,(a,b)=>a[0].close(b)),a=>a[1])}offer(a){return this.publish(a)}offerAll(a){return this.publishAll(a)}pipe(){return(0,n.tT)(this,arguments)}}let I=(a,b)=>o.qIB(q.RW(),c=>o.TjK(o.WW4(),d=>J(a,new Map,c,d,k.L8(!1),b))),J=(a,b,c,d,e,f)=>new H(a,b,c,d,e,f),K=a=>{if(a<=0)throw new o.uwm(`Cannot construct PubSub with capacity of ${a}`)},L=(a,b)=>{o.q_p(a,o.PyW(b))},M=(a,b)=>(0,i.Fs)(a,j.iI(b)),N=a=>(0,i.Fs)(a,j.KK(1/0)),O=a=>a.pollUpTo(1/0),P=(a,b)=>a.pollUpTo(b),Q=(a,b)=>a.publishAll(b),R=(a,b)=>{M(a,(0,i.Fs)(N(a),g.pb(a=>a!==b)))};class S{get shutdown(){return o.qIB(o.ABT,a=>o.qIB(o.OH5(()=>N(this.publishers)),b=>q.Kd(b,([b,c,d])=>d?(0,i.Fs)(o.bdM(c,a),o.NLW):o.rIH,!1,!1)))}handleSurplus(a,b,c,d){return o.$we(e=>{let f=o.MIt(e.id());return(0,i.Fs)(o.DYE(()=>(this.unsafeOffer(c,f),this.unsafeOnPubSubEmptySpace(a,b),this.unsafeCompleteSubscribers(a,b),k.Jt(d)?o.GaK:o.gn0(f))),o.nAr(()=>o.OH5(()=>this.unsafeRemove(f))))})}unsafeOnPubSubEmptySpace(a,b){let c=!0;for(;c&&!a.isFull();){let d=(0,i.Fs)(this.publishers,j.wt(j.r_));if(d===j.r_)c=!1;else{let c=a.publish(d[0]);c&&d[2]?L(d[1],!0):c||M(this.publishers,(0,i.Fs)(N(this.publishers),g.Hs(d))),this.unsafeCompleteSubscribers(a,b)}}}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}unsafeOffer(a,b){let c=a[Symbol.iterator](),d=c.next();if(!d.done)for(;;){let a=d.value;if((d=c.next()).done){(0,i.Fs)(this.publishers,j.x([a,b,!0]));break}(0,i.Fs)(this.publishers,j.x([a,b,!1]))}}unsafeRemove(a){M(this.publishers,(0,i.Fs)(N(this.publishers),g.pb(([b,c])=>c!==a)))}constructor(){this.publishers=j.dT()}}class T{get shutdown(){return o.rIH}handleSurplus(a,b,c,d){return o.PyW(!1)}unsafeOnPubSubEmptySpace(a,b){}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}}class U{get shutdown(){return o.rIH}handleSurplus(a,b,c,d){return o.OH5(()=>(this.unsafeSlidingPublish(a,c),this.unsafeCompleteSubscribers(a,b),!0))}unsafeOnPubSubEmptySpace(a,b){}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}unsafeSlidingPublish(a,b){let c=b[Symbol.iterator](),d=c.next();if(!d.done&&a.capacity>0){let b=d.value,e=!0;for(;e;){a.slide();let f=a.publish(b);f&&(d=c.next())&&!d.done?b=d.value:f&&(e=!1)}}}}let V=(a,b,c,d,e)=>{let f=!0;for(;f&&!d.isEmpty();){let h=(0,i.Fs)(e,j.wt(j.r_));if(h===j.r_)(0,i.Fs)(c,u(d,e)),j.Im(e)?f=!1:(0,i.Fs)(c,t(d,e));else{let f=d.poll(j.r_);f===j.r_?M(e,(0,i.Fs)(N(e),g.Hs(h))):(L(h,f),a.unsafeOnPubSubEmptySpace(b,c))}}},W=(a,b,c)=>{for(let[d,e]of c)for(let f of e)a.unsafeCompletePollers(b,c,d,f)};class X{constructor(a){this.head={value:s,next:null},this.tail=this.head,this.size=0,this.index=0,this.capacity=a}slide(){this.index++}offer(a){this.tail.value=a,this.tail.next={value:s,next:null},this.tail=this.tail.next,this.size===this.capacity?this.head=this.head.next:this.size+=1}offerAll(a){for(let b of a)this.offer(b)}}class Y{constructor(a){this.buffer=a,this.index=a.index,this.remaining=a.size,this.head=a.head}fastForward(){for(;this.index<this.buffer.index;)this.head=this.head.next,this.index++}take(){if(0===this.remaining)return;this.index<this.buffer.index&&this.fastForward(),this.remaining--;let a=this.head.value;return this.head=this.head.next,a}takeN(a){if(0===this.remaining)return g.Ie();this.index<this.buffer.index&&this.fastForward();let b=Math.min(a,this.remaining),c=Array(b);for(let a=0;a<b;a++){let b=this.head.value;this.head=this.head.next,c[a]=b}return this.remaining-=b,g.Iv(c)}takeAll(){return this.takeN(this.remaining)}}let Z={remaining:0,take:()=>void 0,takeN:()=>g.Ie(),takeAll:()=>g.Ie()},$=a=>o.DYE(()=>I(w(a),new S)),_=a=>o.DYE(()=>I(w(a),new T)),aa=a=>o.DYE(()=>I(w(a),new U)),ab=a=>o.DYE(()=>{let b;return I((b=a,new D(b?.replay?new X(b.replay):void 0)),new T)}),ac=a=>a.shutdown,ad=v,ae=a=>a.subscribe},7904:(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}function e(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}c.r(b),c.d(b,{_:()=>e})},8057:(a,b,c)=>{"use strict";c.d(b,{BW:()=>g,Cz:()=>h,Hi:()=>m,WT:()=>k,ku:()=>l,sn:()=>o,yp:()=>q}),c(91238);var d=c(89876),e=c(21041),f=c(21393);class g{constructor(a){this.called=!1,this.self=a}next(a){return this.called?{value:a,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(a){return{value:a,done:!0}}throw(a){throw a}[Symbol.iterator](){return new g(this.self)}}class h{constructor(a,b,c,d){return(0,f.wD)(b)&&(0,f.wD)(a)?(b=0xffffffff*Math.random()>>>0,a=0):(0,f.wD)(b)&&(b=a,a=0),(0,f.wD)(d)&&(0,f.wD)(c)?(d=this._state?this._state[3]:0xf767814f,c=this._state?this._state[2]:0x14057b7e):(0,f.wD)(d)&&(d=c,c=0),this._state=new Int32Array([0,0,c>>>0,(1|(d||0))>>>0]),this._next(),i(this._state,this._state[0],this._state[1],a>>>0,b>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(a){this._state[0]=a[0],this._state[1]=a[1],this._state[2]=a[2],this._state[3]=1|a[3]}integer(a){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%a}number(){return(0x8000000*((0x3ffffff&this._next())*1)+(0x7ffffff&this._next())*1)/0x20000000000000}_next(){var a,b,c;let d,e,f,g,h=this._state[0]>>>0,j=this._state[1]>>>0;a=this._state,b=h,d=((c=j)>>>16)*32557>>>0,e=(65535&c)*19605>>>0,f=(65535&c)*32557>>>0,g=(c>>>16)*19605+((e>>>16)+(d>>>16))>>>0,(f=f+(e=e<<16>>>0)>>>0)>>>0<e>>>0&&(g=g+1>>>0),(f=f+(d=d<<16>>>0)>>>0)>>>0<d>>>0&&(g=g+1>>>0),g=(g=g+Math.imul(c,0x5851f42d)>>>0)+Math.imul(b,0x4c957f2d)>>>0,a[0]=g,a[1]=f,i(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let k=h>>>18,l=(j>>>18|h<<14)>>>0;k=(k^h)>>>0;let m=((l=(l^j)>>>0)>>>27|k<<5)>>>0,n=h>>>27;return(m>>>n|m<<((-n>>>0&31)>>>0))>>>0}}function i(a,b,c,d,e){let f=b+d>>>0,g=c+e>>>0;g>>>0<c>>>0&&(f=f+1|0),a[0]=f,a[1]=g}let j=Symbol.for("effect/Utils/YieldWrap");class k{#a;constructor(a){this.#a=a}[j](){return this.#a}}function l(a){if("object"==typeof a&&null!==a&&j in a)return a[j]();throw Error((0,e.k)("yieldWrapGet"))}let m=(0,d.V)("effect/Utils/isStructuralRegion",()=>({enabled:!1,tester:void 0})),n=a=>a(),o=n(()=>Error().stack)?.includes("effect_internal_function")===!0?n:a=>a(),p=(function*(){}).constructor,q=a=>(0,f.Gv)(a)&&a.constructor===p},8082:(a,b,c)=>{"use strict";function d(a){return a&&"object"==typeof a?"position"in a||"type"in a?f(a.position):"start"in a||"end"in a?f(a):"line"in a||"column"in a?e(a):"":""}function e(a){return g(a&&a.line)+":"+g(a&&a.column)}function f(a){return e(a&&a.start)+"-"+e(a&&a.end)}function g(a){return a&&"number"==typeof a?a:1}c.d(b,{L:()=>d})},9731:(a,b,c)=>{"use strict";c.d(b,{H:()=>d.Hj});var d=c(48197)},10259:(a,b,c)=>{"use strict";c.d(b,{$t:()=>x,LN:()=>g,U3:()=>k,hs:()=>B,i5:()=>o,k_:()=>y,nh:()=>m,yn:()=>h});var d=c(1370),e=c(87748);let f=Object.create(null);class g{constructor(a,b,c){this.$anchor=a,this.$head=b,this.ranges=c||[new h(a.min(b),a.max(b))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let a=this.ranges;for(let b=0;b<a.length;b++)if(a[b].$from.pos!=a[b].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(a,b=d.Ji.empty){let c=b.content.lastChild,e=null;for(let a=0;a<b.openEnd;a++)e=c,c=c.lastChild;let f=a.steps.length,g=this.ranges;for(let h=0;h<g.length;h++){let{$from:i,$to:j}=g[h],k=a.mapping.slice(f);a.replaceRange(k.map(i.pos),k.map(j.pos),h?d.Ji.empty:b),0==h&&r(a,f,(c?c.isInline:e&&e.isTextblock)?-1:1)}}replaceWith(a,b){let c=a.steps.length,d=this.ranges;for(let e=0;e<d.length;e++){let{$from:f,$to:g}=d[e],h=a.mapping.slice(c),i=h.map(f.pos),j=h.map(g.pos);e?a.deleteRange(i,j):(a.replaceRangeWith(i,j,b),r(a,c,b.isInline?-1:1))}}static findFrom(a,b,c=!1){let d=a.parent.inlineContent?new k(a):q(a.node(0),a.parent,a.pos,a.index(),b,c);if(d)return d;for(let d=a.depth-1;d>=0;d--){let e=b<0?q(a.node(0),a.node(d),a.before(d+1),a.index(d),b,c):q(a.node(0),a.node(d),a.after(d+1),a.index(d)+1,b,c);if(e)return e}return null}static near(a,b=1){return this.findFrom(a,b)||this.findFrom(a,-b)||new o(a.node(0))}static atStart(a){return q(a,a,0,0,1)||new o(a)}static atEnd(a){return q(a,a,a.content.size,a.childCount,-1)||new o(a)}static fromJSON(a,b){if(!b||!b.type)throw RangeError("Invalid input for Selection.fromJSON");let c=f[b.type];if(!c)throw RangeError(`No selection type ${b.type} defined`);return c.fromJSON(a,b)}static jsonID(a,b){if(a in f)throw RangeError("Duplicate use of selection JSON ID "+a);return f[a]=b,b.prototype.jsonID=a,b}getBookmark(){return k.between(this.$anchor,this.$head).getBookmark()}}g.prototype.visible=!0;class h{constructor(a,b){this.$from=a,this.$to=b}}let i=!1;function j(a){i||a.parent.inlineContent||(i=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+a.parent.type.name+")"))}class k extends g{constructor(a,b=a){j(a),j(b),super(a,b)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(a,b){let c=a.resolve(b.map(this.head));if(!c.parent.inlineContent)return g.near(c);let d=a.resolve(b.map(this.anchor));return new k(d.parent.inlineContent?d:c,c)}replace(a,b=d.Ji.empty){if(super.replace(a,b),b==d.Ji.empty){let b=this.$from.marksAcross(this.$to);b&&a.ensureMarks(b)}}eq(a){return a instanceof k&&a.anchor==this.anchor&&a.head==this.head}getBookmark(){return new l(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(a,b){if("number"!=typeof b.anchor||"number"!=typeof b.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new k(a.resolve(b.anchor),a.resolve(b.head))}static create(a,b,c=b){let d=a.resolve(b);return new this(d,c==b?d:a.resolve(c))}static between(a,b,c){let d=a.pos-b.pos;if((!c||d)&&(c=d>=0?1:-1),!b.parent.inlineContent){let a=g.findFrom(b,c,!0)||g.findFrom(b,-c,!0);if(!a)return g.near(b,c);b=a.$head}return a.parent.inlineContent||(0==d?a=b:(a=(g.findFrom(a,-c,!0)||g.findFrom(a,c,!0)).$anchor).pos<b.pos!=d<0&&(a=b)),new k(a,b)}}g.jsonID("text",k);class l{constructor(a,b){this.anchor=a,this.head=b}map(a){return new l(a.map(this.anchor),a.map(this.head))}resolve(a){return k.between(a.resolve(this.anchor),a.resolve(this.head))}}class m extends g{constructor(a){let b=a.nodeAfter,c=a.node(0).resolve(a.pos+b.nodeSize);super(a,c),this.node=b}map(a,b){let{deleted:c,pos:d}=b.mapResult(this.anchor),e=a.resolve(d);return c?g.near(e):new m(e)}content(){return new d.Ji(d.FK.from(this.node),0,0)}eq(a){return a instanceof m&&a.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new n(this.anchor)}static fromJSON(a,b){if("number"!=typeof b.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new m(a.resolve(b.anchor))}static create(a,b){return new m(a.resolve(b))}static isSelectable(a){return!a.isText&&!1!==a.type.spec.selectable}}m.prototype.visible=!1,g.jsonID("node",m);class n{constructor(a){this.anchor=a}map(a){let{deleted:b,pos:c}=a.mapResult(this.anchor);return b?new l(c,c):new n(c)}resolve(a){let b=a.resolve(this.anchor),c=b.nodeAfter;return c&&m.isSelectable(c)?new m(b):g.near(b)}}class o extends g{constructor(a){super(a.resolve(0),a.resolve(a.content.size))}replace(a,b=d.Ji.empty){if(b==d.Ji.empty){a.delete(0,a.doc.content.size);let b=g.atStart(a.doc);b.eq(a.selection)||a.setSelection(b)}else super.replace(a,b)}toJSON(){return{type:"all"}}static fromJSON(a){return new o(a)}map(a){return new o(a)}eq(a){return a instanceof o}getBookmark(){return p}}g.jsonID("all",o);let p={map(){return this},resolve:a=>new o(a)};function q(a,b,c,d,e,f=!1){if(b.inlineContent)return k.create(a,c);for(let g=d-(e>0?0:1);e>0?g<b.childCount:g>=0;g+=e){let d=b.child(g);if(d.isAtom){if(!f&&m.isSelectable(d))return m.create(a,c-(e<0?d.nodeSize:0))}else{let b=q(a,d,c+e,e<0?d.childCount:0,e,f);if(b)return b}c+=d.nodeSize*e}return null}function r(a,b,c){let d,f=a.steps.length-1;if(f<b)return;let h=a.steps[f];(h instanceof e.Ln||h instanceof e.Wg)&&(a.mapping.maps[f].forEach((a,b,c,e)=>{null==d&&(d=e)}),a.setSelection(g.near(a.doc.resolve(d),c)))}class s extends e.dL{constructor(a){super(a.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=a.selection,this.storedMarks=a.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(a){if(a.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=a,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(a){return this.storedMarks=a,this.updated|=2,this}ensureMarks(a){return d.CU.sameSet(this.storedMarks||this.selection.$from.marks(),a)||this.setStoredMarks(a),this}addStoredMark(a){return this.ensureMarks(a.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(a){return this.ensureMarks(a.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(a,b){super.addStep(a,b),this.updated=-3&this.updated,this.storedMarks=null}setTime(a){return this.time=a,this}replaceSelection(a){return this.selection.replace(this,a),this}replaceSelectionWith(a,b=!0){let c=this.selection;return b&&(a=a.mark(this.storedMarks||(c.empty?c.$from.marks():c.$from.marksAcross(c.$to)||d.CU.none))),c.replaceWith(this,a),this}deleteSelection(){return this.selection.replace(this),this}insertText(a,b,c){let d=this.doc.type.schema;if(null==b)return a?this.replaceSelectionWith(d.text(a),!0):this.deleteSelection();{if(null==c&&(c=b),!a)return this.deleteRange(b,c);let e=this.storedMarks;if(!e){let a=this.doc.resolve(b);e=c==b?a.marks():a.marksAcross(this.doc.resolve(c))}return this.replaceRangeWith(b,c,d.text(a,e)),this.selection.empty||this.selection.to!=b+a.length||this.setSelection(g.near(this.selection.$to)),this}}setMeta(a,b){return this.meta["string"==typeof a?a:a.key]=b,this}getMeta(a){return this.meta["string"==typeof a?a:a.key]}get isGeneric(){for(let a in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function t(a,b){return b&&a?a.bind(b):a}class u{constructor(a,b,c){this.name=a,this.init=t(b.init,c),this.apply=t(b.apply,c)}}let v=[new u("doc",{init:a=>a.doc||a.schema.topNodeType.createAndFill(),apply:a=>a.doc}),new u("selection",{init:(a,b)=>a.selection||g.atStart(b.doc),apply:a=>a.selection}),new u("storedMarks",{init:a=>a.storedMarks||null,apply:(a,b,c,d)=>d.selection.$cursor?a.storedMarks:null}),new u("scrollToSelection",{init:()=>0,apply:(a,b)=>a.scrolledIntoView?b+1:b})];class w{constructor(a,b){this.schema=a,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=v.slice(),b&&b.forEach(a=>{if(this.pluginsByKey[a.key])throw RangeError("Adding different instances of a keyed plugin ("+a.key+")");this.plugins.push(a),this.pluginsByKey[a.key]=a,a.spec.state&&this.fields.push(new u(a.key,a.spec.state,a))})}}class x{constructor(a){this.config=a}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(a){return this.applyTransaction(a).state}filterTransaction(a,b=-1){for(let c=0;c<this.config.plugins.length;c++)if(c!=b){let b=this.config.plugins[c];if(b.spec.filterTransaction&&!b.spec.filterTransaction.call(b,a,this))return!1}return!0}applyTransaction(a){if(!this.filterTransaction(a))return{state:this,transactions:[]};let b=[a],c=this.applyInner(a),d=null;for(;;){let e=!1;for(let f=0;f<this.config.plugins.length;f++){let g=this.config.plugins[f];if(g.spec.appendTransaction){let h=d?d[f].n:0,i=d?d[f].state:this,j=h<b.length&&g.spec.appendTransaction.call(g,h?b.slice(h):b,i,c);if(j&&c.filterTransaction(j,f)){if(j.setMeta("appendedTransaction",a),!d){d=[];for(let a=0;a<this.config.plugins.length;a++)d.push(a<f?{state:c,n:b.length}:{state:this,n:0})}b.push(j),c=c.applyInner(j),e=!0}d&&(d[f]={state:c,n:b.length})}}if(!e)return{state:c,transactions:b}}}applyInner(a){if(!a.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let b=new x(this.config),c=this.config.fields;for(let d=0;d<c.length;d++){let e=c[d];b[e.name]=e.apply(a,this[e.name],this,b)}return b}get tr(){return new s(this)}static create(a){let b=new w(a.doc?a.doc.type.schema:a.schema,a.plugins),c=new x(b);for(let d=0;d<b.fields.length;d++)c[b.fields[d].name]=b.fields[d].init(a,c);return c}reconfigure(a){let b=new w(this.schema,a.plugins),c=b.fields,d=new x(b);for(let b=0;b<c.length;b++){let e=c[b].name;d[e]=this.hasOwnProperty(e)?this[e]:c[b].init(a,d)}return d}toJSON(a){let b={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(b.storedMarks=this.storedMarks.map(a=>a.toJSON())),a&&"object"==typeof a)for(let c in a){if("doc"==c||"selection"==c)throw RangeError("The JSON fields `doc` and `selection` are reserved");let d=a[c],e=d.spec.state;e&&e.toJSON&&(b[c]=e.toJSON.call(d,this[d.key]))}return b}static fromJSON(a,b,c){if(!b)throw RangeError("Invalid input for EditorState.fromJSON");if(!a.schema)throw RangeError("Required config field 'schema' missing");let e=new w(a.schema,a.plugins),f=new x(e);return e.fields.forEach(e=>{if("doc"==e.name)f.doc=d.bP.fromJSON(a.schema,b.doc);else if("selection"==e.name)f.selection=g.fromJSON(f.doc,b.selection);else if("storedMarks"==e.name)b.storedMarks&&(f.storedMarks=b.storedMarks.map(a.schema.markFromJSON));else{if(c)for(let d in c){let g=c[d],h=g.spec.state;if(g.key==e.name&&h&&h.fromJSON&&Object.prototype.hasOwnProperty.call(b,d)){f[e.name]=h.fromJSON.call(g,a,b[d],f);return}}f[e.name]=e.init(a,f)}}),f}}class y{constructor(a){this.spec=a,this.props={},a.props&&function a(b,c,d){for(let e in b){let f=b[e];f instanceof Function?f=f.bind(c):"handleDOMEvents"==e&&(f=a(f,c,{})),d[e]=f}return d}(a.props,this,this.props),this.key=a.key?a.key.key:A("plugin")}getState(a){return a[this.key]}}let z=Object.create(null);function A(a){return a in z?a+"$"+ ++z[a]:(z[a]=0,a+"$")}class B{constructor(a="key"){this.key=A(a)}get(a){return a.config.pluginsByKey[this.key]}getState(a){return a[this.key]}}},10316:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},10684:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c={PARAM_SEPARATOR:function(){return e},hasAdjacentParameterIssues:function(){return f},normalizeAdjacentParameters:function(){return g},normalizeTokensForRegexp:function(){return h},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return j}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});let e="_NEXTSEP_";function f(a){return"string"==typeof a&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(a)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(a))}function g(a){let b=a;return(b=b.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${e}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${e}`)}function h(a){return a.map(a=>"object"==typeof a&&null!==a&&"modifier"in a&&("*"===a.modifier||"+"===a.modifier)&&"prefix"in a&&"suffix"in a&&""===a.prefix&&""===a.suffix?{...a,prefix:"/"}:a)}function i(a){return a.replace(RegExp(`\\)${e}`,"g"),")")}function j(a){let b={};for(let[c,d]of Object.entries(a))"string"==typeof d?b[c]=d.replace(RegExp(`^${e}`),""):Array.isArray(d)?b[c]=d.map(a=>"string"==typeof a?a.replace(RegExp(`^${e}`),""):a):b[c]=d;return b}},10841:(a,b,c)=>{"use strict";c.d(b,{jb:()=>g});var d=c(50300);let e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,f=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,g=({legacyTitle:a=!1,tagName:b="div",classNames:c=""}={})=>g=>{(0,d.YR)(g,"blockquote",(d,g,i)=>{let j="",k="",l=!0,m=d.children.map(b=>{if(l&&"paragraph"===b.type){let c=b.children[0],d="text"===c.type?c.value:"",g=a?f:e,h=d.match(g);if(h&&(l=!1,j=h[1].toLocaleLowerCase(),k=a&&h[2]||j.toLocaleUpperCase(),d.includes("\n")&&(b.children[0]={type:"text",value:d.replace(g,"").replace(/^\n+/,"")}),!d.includes("\n"))){let a=[];b.children.forEach((b,c)=>{0==c||(1!=c||"break"!==b.type)&&a.push(b)}),b.children=[...a]}}return b});j&&(d.data={hName:b,hProperties:{className:["markdown-alert",`markdown-alert-${j}`,...c.split(" ").filter(a=>a.length)],dir:"auto"}},m.unshift({type:"paragraph",children:[{type:"emphasis",data:{hName:"svg",hProperties:{className:["octicon"],viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:h[j]??""}},children:[]}]},{type:"text",value:k.replace(/^\//,"")}],data:{hProperties:{className:"markdown-alert-title",dir:"auto"}}})),d.children=[...m]})},h={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"}},11449:(a,b,c)=>{"use strict";c.d(b,{$1O:()=>dg,$1l:()=>dC,$QS:()=>aW,$n1:()=>H,$sd:()=>c9,$we:()=>N,ABT:()=>ak,APi:()=>b7,AR8:()=>dn,ATB:()=>ai,AlI:()=>ch,Ao:()=>dj,AsN:()=>di,BCV:()=>dv,Bqz:()=>ap,BzD:()=>b4,CFK:()=>au,Cau:()=>cV,CdZ:()=>b0,CoE:()=>cG,CrW:()=>c8,D$$:()=>ar,D$Q:()=>bV,D9k:()=>a_,DYE:()=>aO,DxM:()=>bf,EYO:()=>bZ,EbJ:()=>bw,Ecz:()=>bt,EkE:()=>cZ,FIO:()=>dl,FRe:()=>bT,F_Q:()=>ab,FcF:()=>aU,FgE:()=>aa,Fi1:()=>bN,G2Y:()=>bY,GSS:()=>ac,GaK:()=>ax,GyC:()=>bB,HTn:()=>bl,Hox:()=>cJ,HyR:()=>dF,INx:()=>bA,IPo:()=>ay,IeY:()=>R,Inz:()=>az,JGl:()=>bp,JUF:()=>cN,JkU:()=>a$,KAb:()=>bP,Kbz:()=>ad,Kpo:()=>br,KyM:()=>a0,LGt:()=>b1,MIt:()=>dc,MP9:()=>b2,MaT:()=>a4,Mim:()=>aQ,MrQ:()=>ci,NG:()=>cR,NLW:()=>Q,NS5:()=>af,NWQ:()=>aI,OH5:()=>aP,OLv:()=>bb,OM4:()=>bi,OTT:()=>cl,OYO:()=>a9,PDv:()=>cs,PMw:()=>ao,PNH:()=>bu,PpN:()=>dB,PuW:()=>bg,PyW:()=>aN,Q9S:()=>cL,QID:()=>bI,QPU:()=>bO,QRo:()=>cr,QUl:()=>T,QYw:()=>b3,QZV:()=>av,QcH:()=>bq,QgK:()=>aJ,R8K:()=>cg,R_7:()=>cd,ReC:()=>cc,RkE:()=>_,Rkt:()=>cO,S5A:()=>aF,SLb:()=>b_,S_H:()=>dG,T12:()=>cS,TBR:()=>c5,THF:()=>cv,TjK:()=>aC,TsL:()=>bz,TyW:()=>aZ,U8_:()=>bo,UFt:()=>G,UUz:()=>aq,UcN:()=>aD,Uio:()=>b9,Uis:()=>cC,Umi:()=>bQ,V2G:()=>cM,VE1:()=>cF,VEq:()=>bh,VbV:()=>cB,VuY:()=>cI,VwM:()=>cp,WW4:()=>dd,Wc6:()=>ce,Wtn:()=>c0,XOb:()=>bm,XWm:()=>X,Z$R:()=>cb,Z5i:()=>F,ZI2:()=>dh,ZM1:()=>dq,ZmZ:()=>ba,_$:()=>bj,_5X:()=>Z,_OA:()=>dz,_Oy:()=>Y,_Pd:()=>bJ,_fI:()=>ds,_ig:()=>aB,_sz:()=>cX,_tB:()=>bc,_z2:()=>dE,aNH:()=>a8,as:()=>P,b1P:()=>b$,bIC:()=>U,bRS:()=>bX,bVS:()=>dI,bdM:()=>dr,bzD:()=>bK,cay:()=>a2,cbD:()=>cP,cfM:()=>aG,cpb:()=>c4,dDX:()=>c1,dWJ:()=>cH,d_m:()=>dA,eMl:()=>aA,eec:()=>cU,fJG:()=>ag,g1G:()=>al,g1R:()=>cu,gOk:()=>ah,gPK:()=>ae,gn0:()=>df,h0c:()=>cE,h9N:()=>W,hgn:()=>an,iK2:()=>aX,iLB:()=>b8,iMI:()=>aY,igQ:()=>cx,il9:()=>c6,jDN:()=>bU,jGc:()=>O,jo7:()=>cj,jxG:()=>dk,kJg:()=>cq,kS9:()=>aK,kWD:()=>b6,khu:()=>as,krO:()=>bS,kyh:()=>dD,lN4:()=>dp,lOA:()=>bv,m$m:()=>aM,m9E:()=>a5,mHP:()=>a1,m_i:()=>cT,n9O:()=>cK,nAV:()=>cn,nAr:()=>aH,nDN:()=>a3,nlF:()=>bM,nv8:()=>cy,o7R:()=>c_,owM:()=>cm,p2e:()=>cw,pLZ:()=>c7,pVV:()=>aj,pX6:()=>bW,piH:()=>a7,q1t:()=>bH,qIB:()=>am,q_p:()=>dw,qoC:()=>bx,rIH:()=>aV,rTm:()=>aL,rfi:()=>aT,s$T:()=>b5,s2:()=>ck,sAm:()=>cD,sDf:()=>de,sH6:()=>bL,sK9:()=>aR,syF:()=>du,t04:()=>S,t9n:()=>cW,tDT:()=>aw,tNQ:()=>by,tvg:()=>at,uPR:()=>bs,uPo:()=>V,un1:()=>dm,uwm:()=>ct,v9O:()=>cY,vDJ:()=>ca,vwO:()=>dt,w6U:()=>bR,whK:()=>bd,wnO:()=>da,woH:()=>bG,x5l:()=>c3,x6Q:()=>cz,xUJ:()=>cA,xah:()=>be,xm_:()=>aE,xt1:()=>co,xtk:()=>c2,yPL:()=>I,yU6:()=>a6,ygP:()=>cQ,yw5:()=>M,zPu:()=>c$,zg6:()=>bk});var d=c(6736),e=c(87893),f=c(28031),g=c(21586),h=c(25551),i=c(40316),j=c(69943),k=c(91238),l=c(89876),m=c(56606),n=c(69481),o=c(89904),p=c(37214),q=c(43729),r=c(1239),s=c(73934),t=c(21393),u=c(15707),v=c(8057),w=c(90329),x=c(20245),y=c(84906),z=c(42615),A=c(21041),B=c(55633),C=c(79555),D=c(83709),E=c(47846);let F=(a,b)=>{let c=new J("Blocked");return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c},G=a=>{let b=new J("RunBlocked");return b.effect_instruction_i0=a,b},H=Symbol.for("effect/Effect");class I{constructor(a,b){this._op=C.Ni,this.patch=a,this.op=b}}class J{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a}[i.HR](a){return this===a}[m.HR](){return m.PO(this,m.yT(this))}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,effect_instruction_i0:(0,o.U2)(this.effect_instruction_i0),effect_instruction_i1:(0,o.U2)(this.effect_instruction_i1),effect_instruction_i2:(0,o.U2)(this.effect_instruction_i2)}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}class K{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a,this._tag=a}[i.HR](a){return cE(a)&&"Failure"===a._op&&i.aI(this.effect_instruction_i0,a.effect_instruction_i0)}[m.HR](){return(0,k.Fs)(m.Yj(this._tag),m.kg(m.tW(this.effect_instruction_i0)),m.PO(this))}get cause(){return this.effect_instruction_i0}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}class L{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a,this._tag=a}[i.HR](a){return cE(a)&&"Success"===a._op&&i.aI(this.effect_instruction_i0,a.effect_instruction_i0)}[m.HR](){return(0,k.Fs)(m.Yj(this._tag),m.kg(m.tW(this.effect_instruction_i0)),m.PO(this))}get value(){return this.effect_instruction_i0}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:(0,o.U2)(this.value)}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}let M=a=>(0,t.i5)(a,H),N=a=>{let b=new J(C.mm);return b.effect_instruction_i0=a,b},O=(0,k.XY)(3,(a,b,c)=>aU(d=>am(a,a=>am(af(aO(()=>d(b(a)))),b=>aO(()=>c(a,b)).pipe(as({onFailure:a=>{switch(b._tag){case C.N9:return ai(w.il(b.effect_instruction_i0,a));case C._l:return ai(a)}},onSuccess:()=>b})))))),P=(0,k.XY)(2,(a,b)=>am(a,()=>aN(b))),Q=a=>P(a,void 0),R=function(){let a=new J(C.kK);switch(arguments.length){case 2:a.effect_instruction_i0=arguments[0],a.commit=arguments[1];break;case 3:a.effect_instruction_i0=arguments[0],a.effect_instruction_i1=arguments[1],a.commit=arguments[2];break;case 4:a.effect_instruction_i0=arguments[0],a.effect_instruction_i1=arguments[1],a.effect_instruction_i2=arguments[2],a.commit=arguments[3];break;default:throw Error((0,A.k)("you're not supposed to end up here"))}return a},S=(a,b=j.dv)=>{let c,d=new J(C.ZO);return d.effect_instruction_i0=b=>{c=a(b)},d.effect_instruction_i1=b,aH(d,a=>M(c)?c:aV)},T=(a,b=j.dv)=>aO(()=>S(a,b)),U=(a,b=j.dv)=>R(a,function(){let a,c,d,e;function f(b){a?a(b):void 0===c&&(c=b)}let g=new J(C.ZO);return g.effect_instruction_i0=b=>{a=b,c&&b(c)},g.effect_instruction_i1=b,1!==this.effect_instruction_i0.length?(e=new AbortController,d=(0,v.sn)(()=>this.effect_instruction_i0(f,e.signal))):d=(0,v.sn)(()=>this.effect_instruction_i0(f)),d||e?aH(g,a=>(e&&e.abort(),d??aV)):g}),V=(0,k.XY)(2,(a,b)=>{let c=new J(C.JJ);return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c}),W=(0,k.XY)(2,(a,b)=>at(a,{onFailure:b,onSuccess:aN})),X=(0,k.XY)(3,(a,b,c)=>V(a,a=>{let d=w.vE(a);switch(d._tag){case"Left":return b(d.left)?c(d.left):ai(a);case"Right":return ai(d.right)}})),Y=(0,k.XY)(2,(a,b)=>V(a,a=>{let c=w.vE(a);switch(c._tag){case"Left":return(0,k.Fs)(b(c.left),r.WL(()=>ai(a)));case"Right":return ai(c.right)}})),Z=a=>N((b,c)=>a(D.YW(c.runtimeFlags))),$=Symbol.for("effect/OriginalAnnotation"),_=a=>(0,t.i5)(a,$)?a[$]:a,aa=(a,b)=>r.Ru(b)?new Proxy(a,{has:(a,b)=>b===w.Hn||b===$||b in a,get:(c,d)=>d===w.Hn?b.value:d===$?a:c[d]}):a,ab=a=>!(0,t.Gv)(a)||w.Hn in a?ai(w.F_(a)):N(b=>ai(w.F_(aa(a,dG(b))))),ac=a=>aj(()=>w.F_(new ch(a))),ad=a=>am(aP(a),ab),ae=a=>at(a,{onFailure:a=>aN(h.kb(a)),onSuccess:a=>aN(h.pG(a))}),af=a=>ar(a,{onFailure:cP,onSuccess:c2}),ag=a=>!(0,t.Gv)(a)||w.Hn in a?ai(w.fJ(a)):N(b=>ai(w.fJ(aa(a,dG(b))))),ah=a=>am(aP(a),ag),ai=a=>{let b=new K(C.N9);return b.effect_instruction_i0=a,b},aj=a=>am(aP(a),ai),ak=N(a=>aN(a.id())),al=a=>N(b=>a(b.id())),am=(0,k.XY)(2,(a,b)=>{let c=new J(C.Gj);return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c}),an=(0,k.XY)(2,(a,b)=>am(a,a=>{let c="function"==typeof b?b(a):b;return M(c)?c:(0,t.$X)(c)?S(a=>{c.then(b=>a(aN(b)),b=>a(ag(new cC(b,"An unknown error occurred in Effect.andThen"))))}):aN(c)})),ao=a=>{let b=new J("OnStep");return b.effect_instruction_i0=a,b},ap=a=>am(a,k.D_),aq=a=>at(a,{onFailure:aN,onSuccess:ag}),ar=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>aN(b.onFailure(a)),onSuccess:a=>aN(b.onSuccess(a))})),as=(0,k.XY)(2,(a,b)=>{let c=new J(C.du);return c.effect_instruction_i0=a,c.effect_instruction_i1=b.onFailure,c.effect_instruction_i2=b.onSuccess,c}),at=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>{if(w.RU(a).length>0)return ai(w.rA(a));let c=w.e9(a);return c.length>0?b.onFailure(e.z1(c)):ai(a)},onSuccess:b.onSuccess})),au=(0,k.XY)(2,(a,b)=>aO(()=>{let c=d.Ts(a),e=d.CN(c.length),f=0;return P(aY({while:()=>f<c.length,body:()=>b(c[f],f),step:a=>{e[f++]=a}}),e)})),av=(0,k.XY)(2,(a,b)=>aO(()=>{let c=d.Ts(a),e=0;return aY({while:()=>e<c.length,body:()=>b(c[e],e),step:()=>{e++}})})),aw=(0,k.XY)(a=>"boolean"==typeof a[0]||M(a[0]),(a,b)=>M(a)?am(a,a=>a?b.onTrue():b.onFalse()):a?b.onTrue():b.onFalse()),ax=am(ak,a=>ay(a)),ay=a=>ai(w.G(a)),az=a=>{let b=new J(C.NM);return b.effect_instruction_i0=u.sS(D._n),b.effect_instruction_i1=()=>a,b},aA=a=>R(a,function(){let a=new J(C.NM);return a.effect_instruction_i0=u.sS(D._n),a.effect_instruction_i1=a=>D.YW(a)?(0,v.sn)(()=>this.effect_instruction_i0(az)):(0,v.sn)(()=>this.effect_instruction_i0(aT)),a}),aB=(0,k.XY)(2,(a,b)=>aU(c=>am(af(c(a)),a=>di(b,a)))),aC=(0,k.XY)(2,(a,b)=>am(a,a=>aP(()=>b(a)))),aD=(0,k.XY)(2,(a,b)=>at(a,{onFailure:a=>ah(()=>b.onFailure(a)),onSuccess:a=>aP(()=>b.onSuccess(a))})),aE=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>{let c=w.vE(a);switch(c._tag){case"Left":return ah(()=>b(c.left));case"Right":return ai(c.right)}},onSuccess:aN})),aF=(0,k.XY)(2,(a,b)=>aG(a,a=>cG(a)?aV:b(a.effect_instruction_i0))),aG=(0,k.XY)(2,(a,b)=>aU(c=>as(c(a),{onFailure:a=>{let c=cP(a);return as(b(c),{onFailure:b=>cP(w.il(a,b)),onSuccess:()=>c})},onSuccess:a=>{let c=c2(a);return a8(b(c),c)}}))),aH=(0,k.XY)(2,(a,b)=>aG(a,c0({onFailure:a=>w.t9(a)?Q(b(w.ml(a))):aV,onSuccess:()=>aV}))),aI=(0,k.XY)(2,(a,b)=>aS(a,b,aN)),aJ=a=>aK(a,k.D_),aK=(0,k.XY)(2,(a,b)=>at(a,{onFailure:a=>ab(b(a)),onSuccess:aN})),aL=d.rT,aM=N((a,b)=>aN(b.runtimeFlags)),aN=a=>{let b=new L(C._l);return b.effect_instruction_i0=a,b},aO=a=>{let b=new J(C.kK);return b.commit=a,b},aP=a=>{let b=new J(C.EF);return b.effect_instruction_i0=a,b},aQ=(0,k.XY)(a=>3===a.length||2===a.length&&!((0,t.Gv)(a[1])&&"onlyEffect"in a[1]),(a,b)=>am(a,a=>{let c="function"==typeof b?b(a):b;return M(c)?P(c,a):(0,t.$X)(c)?S(b=>{c.then(c=>b(aN(a)),a=>b(ag(new cC(a,"An unknown error occurred in Effect.tap"))))}):aN(a)})),aR=a=>N(b=>{let c=b.getFiberRef(b0),d=(0,k.Fs)(c,r.WL(()=>b.scope()));return a(bG(b0,r.zN(d)))}),aS=(0,k.XY)(3,(a,b,c)=>as(a,{onFailure:a=>w.RU(a).length>0?ai(r.n4(w.$7(a))):b(),onSuccess:c})),aT=a=>{let b=new J(C.NM);return b.effect_instruction_i0=u.b8(D._n),b.effect_instruction_i1=()=>a,b},aU=a=>R(a,function(){let a=new J(C.NM);return a.effect_instruction_i0=u.b8(D._n),a.effect_instruction_i1=a=>D.YW(a)?(0,v.sn)(()=>this.effect_instruction_i0(az)):(0,v.sn)(()=>this.effect_instruction_i0(aT)),a}),aV=aN(void 0),aW=a=>{let b=new J(C.NM);return b.effect_instruction_i0=a,b.effect_instruction_i1=void 0,b},aX=(0,k.XY)(2,(a,b)=>am(b,b=>b?(0,k.Fs)(a,aC(r.zN)):aN(r.dv()))),aY=a=>{let b=new J(C.mM);return b.effect_instruction_i0=a.while,b.effect_instruction_i1=a.body,b.effect_instruction_i2=a.step,b},aZ=a=>aO(()=>{let b=new J(C.xS);return b.effect_instruction_i0=a(),b}),a$=function(){let a=1==arguments.length?arguments[0]:arguments[1].bind(arguments[0]);return aZ(()=>a(k.Fs))},a_=(a,...b)=>Object.defineProperty(0===b.length?function(...b){return aZ(()=>a.apply(this,b))}:function(...c){let d=aZ(()=>a.apply(this,c));for(let a of b)d=a(d,...c);return d},"length",{value:a.length,configurable:!0}),a0=(0,k.XY)(2,(a,b)=>bG(a,bV,b)),a1=(0,k.XY)(2,(a,b)=>bG(a,bW,b)),a2=(0,k.XY)(2,(a,b)=>{let c=new J(C.NM);return c.effect_instruction_i0=b,c.effect_instruction_i1=()=>a,c}),a3=(0,k.XY)(2,(a,b)=>bG(a,b2,b)),a4=(0,k.XY)(2,(a,b)=>bG(a,b3,b)),a5=a=>{let b=new J(C.u4);return void 0!==a?.priority?bT(b,a.priority):b},a6=(0,k.XY)(2,(a,b)=>am(a,a=>aC(b,b=>[a,b]))),a7=(0,k.XY)(2,(a,b)=>am(a,a=>P(b,a))),a8=(0,k.XY)(2,(a,b)=>am(a,()=>b)),a9=(0,k.XY)(3,(a,b,c)=>am(a,a=>aC(b,b=>c(a,b)))),ba=T(()=>{let a=setInterval(()=>{},0x80000000-1);return aP(()=>clearInterval(a))}),bb=a=>am(ak,b=>(0,k.Fs)(a,bc(b))),bc=(0,k.XY)(2,(a,b)=>am(a.interruptAsFork(b),()=>a.await)),bd={_tag:"All",syslog:0,label:"ALL",ordinal:Number.MIN_SAFE_INTEGER,pipe(){return(0,s.tT)(this,arguments)}},be={_tag:"Fatal",syslog:2,label:"FATAL",ordinal:5e4,pipe(){return(0,s.tT)(this,arguments)}},bf={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return(0,s.tT)(this,arguments)}},bg={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return(0,s.tT)(this,arguments)}},bh={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return(0,s.tT)(this,arguments)}},bi={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return(0,s.tT)(this,arguments)}},bj={_tag:"Trace",syslog:7,label:"TRACE",ordinal:0,pipe(){return(0,s.tT)(this,arguments)}},bk={_tag:"None",syslog:7,label:"OFF",ordinal:Number.MAX_SAFE_INTEGER,pipe(){return(0,s.tT)(this,arguments)}},bl=[bd,bj,bi,bh,bg,bf,be,bk],bm=Symbol.for("effect/FiberRef"),bn={_A:a=>a},bo=a=>N(b=>c2(b.getFiberRef(a))),bp=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,b])),bq=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,b(a)])),br=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,r.WL(b(a),()=>a)])),bs=(0,k.XY)(2,(a,b)=>am(bo(a),b)),bt=(0,k.XY)(2,(a,b)=>bw(a,()=>[void 0,b])),bu=a=>N(b=>(b.unsafeDeleteFiberRef(a),aV)),bv=a=>bt(a,a.initial),bw=(0,k.XY)(2,(a,b)=>N(c=>{let[d,e]=b(c.getFiberRef(a));return c.setFiberRef(a,e),aN(d)})),bx=(a,b,c)=>bw(a,a=>r.WL(c(a),()=>[b,a])),by=(0,k.XY)(2,(a,b)=>bw(a,a=>[void 0,b(a)])),bz=(0,k.XY)(2,(a,b)=>bw(a,a=>[void 0,r.WL(b(a),()=>a)])),bA=(0,k.XY)(2,(a,b)=>bw(a,a=>{let c=b(a);return[c,c]})),bB=(0,k.XY)(2,(a,b)=>bw(a,a=>{let c=r.WL(b(a),()=>a);return[c,c]})),bC=Symbol.for("effect/RequestResolver"),bD={_A:a=>a,_R:a=>a};class bE{constructor(a,b){this[bC]=bD,this.runAll=a,this.target=b}[m.HR](){return m.PO(this,this.target?m.tW(this.target):m.yT(this))}[i.HR](a){return this.target?bF(a)&&i.aI(this.target,a.target):this===a}identified(...a){return new bE(this.runAll,e.Ts(a))}pipe(){return(0,s.tT)(this,arguments)}}let bF=a=>(0,t.i5)(a,bC),bG=(0,k.XY)(3,(a,b,c)=>O(a7(bo(b),bt(b,c)),()=>a,a=>bt(b,a))),bH=(0,k.XY)(3,(a,b,c)=>bs(b,d=>bG(a,b,c(d)))),bI=(a,b)=>bL(a,{differ:y.yo(),fork:b?.fork??k.D_,join:b?.join}),bJ=a=>{let b=y.zI();return bL(a,{differ:b,fork:b.empty})},bK=a=>{let b=y.cA();return bL(a,{differ:b,fork:b.empty})},bL=(a,b)=>({...z.Em,[bm]:bn,initial:a,commit(){return bo(this)},diff:(a,c)=>b.differ.diff(a,c),combine:(a,c)=>b.differ.combine(a,c),patch:a=>c=>b.differ.patch(a,c),fork:b.fork,join:b.join??((a,b)=>b)}),bM=a=>bL(a,{differ:D.Tx,fork:D.Tx.empty}),bN=(0,l.V)(Symbol.for("effect/FiberRef/currentContext"),()=>bK(f.Ie())),bO=(0,l.V)(Symbol.for("effect/FiberRef/currentSchedulingPriority"),()=>bI(0)),bP=(0,l.V)(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),()=>bI(2048)),bQ=(0,l.V)(Symbol.for("effect/FiberRef/currentLogAnnotation"),()=>bI(n.Ie())),bR=(0,l.V)(Symbol.for("effect/FiberRef/currentLogLevel"),()=>bI(bh)),bS=(0,l.V)(Symbol.for("effect/FiberRef/currentLogSpan"),()=>bI(p.Ie())),bT=(0,k.XY)(2,(a,b)=>bG(a,bO,b)),bU=(0,k.XY)(2,(a,b)=>bG(a,bP,b)),bV=(0,l.V)(Symbol.for("effect/FiberRef/currentConcurrency"),()=>bI("unbounded")),bW=(0,l.V)(Symbol.for("effect/FiberRef/currentRequestBatching"),()=>bI(!0)),bX=(0,l.V)(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),()=>bI(r.zN(bi))),bY=(0,l.V)(Symbol.for("effect/FiberRef/versionMismatchErrorLogLevel"),()=>bI(r.zN(bg))),bZ=(0,k.XY)(2,(a,b)=>bG(a,bX,b)),b$=(0,l.V)(Symbol.for("effect/FiberRef/currentMetricLabels"),()=>{var a;let b;return a=d.Ie(),bL(a,{differ:b=y.QZ(y.yo()),fork:b.empty})}),b_=bo(b$),b0=(0,l.V)(Symbol.for("effect/FiberRef/currentForkScopeOverride"),()=>bI(r.dv(),{fork:()=>r.dv(),join:(a,b)=>a})),b1=(0,l.V)(Symbol.for("effect/FiberRef/currentInterruptedCause"),()=>bI(w.Ie,{fork:()=>w.Ie,join:(a,b)=>a})),b2=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerEnabled"),()=>bI(!0)),b3=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerTiming"),()=>bI(!0)),b4=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerSpanAnnotations"),()=>bI(n.Ie())),b5=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerSpanLinks"),()=>bI(e.Ie())),b6=Symbol.for("effect/Scope"),b7=Symbol.for("effect/CloseableScope"),b8=(a,b)=>a.addFinalizer(()=>Q(b)),b9=(a,b)=>a.addFinalizer(b),ca=(a,b)=>a.close(b),cb=(a,b)=>a.fork(b),cc=a=>cd(k.D_)(a),cd=(0,k.XY)(2,(a,b)=>{let c=(0,k.Fs)(a,w.od,r.Tj(b));switch(c._tag){case"None":return(0,k.Fs)(w.RU(a),e.d5,r.YW({onNone:()=>{let b=d.Ts(w.ml(a)).flatMap(a=>d.Ts(j.dK(a)).map(a=>`#${a}`));return new ck(b?`Interrupted by fibers: ${b.join(", ")}`:void 0)},onSome:k.D_}));case"Some":return c.value}}),ce=function(){class a extends globalThis.Error{commit(){return ag(this)}toJSON(){let a={...this};return this.message&&(a.message=this.message),this.cause&&(a.cause=this.cause),a}[o.FX](){return this.toString!==globalThis.Error.prototype.toString?this.stack?`${this.toString()}
1
+ exports.id=4034,exports.ids=[4034],exports.modules={529:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>U});let d=a=>"string"==typeof a,e=()=>{let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.resolve=a,c.reject=b,c},f=a=>null==a?"":""+a,g=/###/g,h=a=>a&&a.indexOf("###")>-1?a.replace(g,"."):a,i=a=>!a||d(a),j=(a,b,c)=>{let e=d(b)?b.split("."):b,f=0;for(;f<e.length-1;){if(i(a))return{};let b=h(e[f]);!a[b]&&c&&(a[b]=new c),a=Object.prototype.hasOwnProperty.call(a,b)?a[b]:{},++f}return i(a)?{}:{obj:a,k:h(e[f])}},k=(a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);if(void 0!==d||1===b.length){d[e]=c;return}let f=b[b.length-1],g=b.slice(0,b.length-1),h=j(a,g,Object);for(;void 0===h.obj&&g.length;)f=`${g[g.length-1]}.${f}`,h=j(a,g=g.slice(0,g.length-1),Object),h?.obj&&void 0!==h.obj[`${h.k}.${f}`]&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=c},l=(a,b)=>{let{obj:c,k:d}=j(a,b);if(c&&Object.prototype.hasOwnProperty.call(c,d))return c[d]},m=(a,b,c)=>{for(let e in b)"__proto__"!==e&&"constructor"!==e&&(e in a?d(a[e])||a[e]instanceof String||d(b[e])||b[e]instanceof String?c&&(a[e]=b[e]):m(a[e],b[e],c):a[e]=b[e]);return a};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let o=a=>d(a)?a.replace(/[&<>"'\/]/g,a=>n[a]):a;class p{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let b=this.regExpMap.get(a);if(void 0!==b)return b;let c=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,c),this.regExpQueue.push(a),c}}let q=[" ",",","?","!",";"],r=new p(20),s=(a,b,c=".")=>{if(!a)return;if(a[b]){if(!Object.prototype.hasOwnProperty.call(a,b))return;return a[b]}let d=b.split(c),e=a;for(let a=0;a<d.length;){let b;if(!e||"object"!=typeof e)return;let f="";for(let g=a;g<d.length;++g)if(g!==a&&(f+=c),f+=d[g],void 0!==(b=e[f])){if(["string","number","boolean"].indexOf(typeof b)>-1&&g<d.length-1)continue;a+=g-a+1;break}e=b}return e},t=a=>a?.replace(/_/g,"-"),u={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,b){console?.[a]?.apply?.(console,b)}};class v{constructor(a,b={}){this.init(a,b)}init(a,b={}){this.prefix=b.prefix||"i18next:",this.logger=a||u,this.options=b,this.debug=b.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,b,c,e){return e&&!this.debug?null:(d(a[0])&&(a[0]=`${c}${this.prefix} ${a[0]}`),this.logger[b](a))}create(a){return new v(this.logger,{...{prefix:`${this.prefix}:${a}:`},...this.options})}clone(a){return(a=a||this.options).prefix=a.prefix||this.prefix,new v(this.logger,a)}}var w=new v;class x{constructor(){this.observers={}}on(a,b){return a.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let c=this.observers[a].get(b)||0;this.observers[a].set(b,c+1)}),this}off(a,b){if(this.observers[a]){if(!b)return void delete this.observers[a];this.observers[a].delete(b)}}emit(a,...b){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(...b)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,d])=>{for(let e=0;e<d;e++)c.apply(c,[a,...b])})}}class y extends x{constructor(a,b={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}removeNamespaces(a){let b=this.options.ns.indexOf(a);b>-1&&this.options.ns.splice(b,1)}getResource(a,b,c,e={}){let f,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,h=void 0!==e.ignoreJSONStructure?e.ignoreJSONStructure:this.options.ignoreJSONStructure;a.indexOf(".")>-1?f=a.split("."):(f=[a,b],c&&(Array.isArray(c)?f.push(...c):d(c)&&g?f.push(...c.split(g)):f.push(c)));let i=l(this.data,f);return(!i&&!b&&!c&&a.indexOf(".")>-1&&(a=f[0],b=f[1],c=f.slice(2).join(".")),!i&&h&&d(c))?s(this.data?.[a]?.[b],c,g):i}addResource(a,b,c,d,e={silent:!1}){let f=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,g=[a,b];c&&(g=g.concat(f?c.split(f):c)),a.indexOf(".")>-1&&(g=a.split("."),d=b,b=g[1]),this.addNamespaces(b),k(this.data,g,d),e.silent||this.emit("added",a,b,c,d)}addResources(a,b,c,e={silent:!1}){for(let e in c)(d(c[e])||Array.isArray(c[e]))&&this.addResource(a,b,e,c[e],{silent:!0});e.silent||this.emit("added",a,b,c)}addResourceBundle(a,b,c,d,e,f={silent:!1,skipCopy:!1}){let g=[a,b];a.indexOf(".")>-1&&(g=a.split("."),d=c,c=b,b=g[1]),this.addNamespaces(b);let h=l(this.data,g)||{};f.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?m(h,c,e):h={...h,...c},k(this.data,g,h),f.silent||this.emit("added",a,b,c)}removeResourceBundle(a,b){this.hasResourceBundle(a,b)&&delete this.data[a][b],this.removeNamespaces(b),this.emit("removed",a,b)}hasResourceBundle(a,b){return void 0!==this.getResource(a,b)}getResourceBundle(a,b){return b||(b=this.options.defaultNS),this.getResource(a,b)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let b=this.getDataByLanguage(a);return!!(b&&Object.keys(b)||[]).find(a=>b[a]&&Object.keys(b[a]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,b,c,d,e){return a.forEach(a=>{b=this.processors[a]?.process(b,c,d,e)??b}),b}};let A=Symbol("i18next/PATH_KEY");function B(a,b){let c,d,e,{[A]:f}=a((d=[],(e=Object.create(null)).get=(a,b)=>(c?.revoke?.(),b===A)?d:(d.push(b),(c=Proxy.revocable(a,e)).proxy),Proxy.revocable(Object.create(null),e).proxy)),g=b?.keySeparator??".",h=b?.nsSeparator??":";if(f.length>1&&h){let a=b?.ns,c=Array.isArray(a)?a:null;if(c&&c.length>1&&c.slice(1).includes(f[0]))return`${f[0]}${h}${f.slice(1).join(g)}`}return f.join(g)}let C={},D=a=>!d(a)&&"boolean"!=typeof a&&"number"!=typeof a;class E extends x{constructor(a,b={}){super(),((a,b,c)=>{a.forEach(a=>{b[a]&&(c[a]=b[a])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,b={interpolation:{}}){let c={...b};if(null==a)return!1;let d=this.resolve(a,c);if(d?.res===void 0)return!1;let e=D(d.res);return!1!==c.returnObjects||!e}extractFromKey(a,b){let c=void 0!==b.nsSeparator?b.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let e=void 0!==b.keySeparator?b.keySeparator:this.options.keySeparator,f=b.ns||this.options.defaultNS||[],g=c&&a.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!b.keySeparator&&!this.options.userDefinedNsSeparator&&!b.nsSeparator&&!((a,b,c)=>{b=b||"",c=c||"";let d=q.filter(a=>0>b.indexOf(a)&&0>c.indexOf(a));if(0===d.length)return!0;let e=r.getRegExp(`(${d.map(a=>"?"===a?"\\?":a).join("|")})`),f=!e.test(a);if(!f){let b=a.indexOf(c);b>0&&!e.test(a.substring(0,b))&&(f=!0)}return f})(a,c,e);if(g&&!h){let b=a.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:a,namespaces:d(f)?[f]:f};let g=a.split(c);(c!==e||c===e&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),a=g.join(e)}return{key:a,namespaces:d(f)?[f]:f}}translate(a,b,c){let e="object"==typeof b?{...b}:b;if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==a)return"";"function"==typeof a&&(a=B(a,{...this.options,...e})),Array.isArray(a)||(a=[String(a)]),a=a.map(a=>"function"==typeof a?B(a,{...this.options,...e}):String(a));let f=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:h,namespaces:i}=this.extractFromKey(a[a.length-1],e),j=i[i.length-1],k=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===k&&(k=":");let l=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?f?{res:`${j}${k}${h}`,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:`${j}${k}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:h;let n=this.resolve(a,e),o=n?.res,p=n?.usedKey||h,q=n?.exactUsedKey||h,r=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,s=!this.i18nFormat||this.i18nFormat.handleAsObject,t=void 0!==e.count&&!d(e.count),u=E.hasDefaultValue(e),v=t?this.pluralResolver.getSuffix(l,e.count,e):"",w=e.ordinal&&t?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",x=t&&!e.ordinal&&0===e.count,y=x&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${v}`]||e[`defaultValue${w}`]||e.defaultValue,z=o;s&&!o&&u&&(z=y);let A=D(z),C=Object.prototype.toString.apply(z);if(s&&z&&A&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(C)&&!(d(r)&&Array.isArray(z))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let a=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,z,{...e,ns:i}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(n.res=a,n.usedParams=this.getUsedParamsDetails(e),n):a}if(g){let a=Array.isArray(z),b=a?[]:{},c=a?q:p;for(let a in z)if(Object.prototype.hasOwnProperty.call(z,a)){let d=`${c}${g}${a}`;u&&!o?b[a]=this.translate(d,{...e,defaultValue:D(y)?y[a]:void 0,...{joinArrays:!1,ns:i}}):b[a]=this.translate(d,{...e,joinArrays:!1,ns:i}),b[a]===d&&(b[a]=z[a])}o=b}}else if(s&&d(r)&&Array.isArray(o))(o=o.join(r))&&(o=this.extendTranslation(o,a,e,c));else{let b=!1,d=!1;!this.isValidLookup(o)&&u&&(b=!0,o=y),this.isValidLookup(o)||(d=!0,o=h);let f=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:o,i=u&&y!==o&&this.options.updateMissing;if(d||b||i){if(this.logger.log(i?"updateKey":"missingKey",l,j,h,i?y:o),g){let a=this.resolve(h,{...e,keySeparator:!1});a&&a.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let a=[],b=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&b&&b[0])for(let c=0;c<b.length;c++)a.push(b[c]);else"all"===this.options.saveMissingTo?a=this.languageUtils.toResolveHierarchy(e.lng||this.language):a.push(e.lng||this.language);let c=(a,b,c)=>{let d=u&&c!==o?c:f;this.options.missingKeyHandler?this.options.missingKeyHandler(a,j,b,d,i,e):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(a,j,b,d,i,e),this.emit("missingKey",a,j,b,o)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t?a.forEach(a=>{let b=this.pluralResolver.getSuffixes(a,e);x&&e[`defaultValue${this.options.pluralSeparator}zero`]&&0>b.indexOf(`${this.options.pluralSeparator}zero`)&&b.push(`${this.options.pluralSeparator}zero`),b.forEach(b=>{c([a],h+b,e[`defaultValue${b}`]||y)})}):c(a,h,y))}o=this.extendTranslation(o,a,e,n,c),d&&o===h&&this.options.appendNamespaceToMissingKey&&(o=`${j}${k}${h}`),(d||b)&&this.options.parseMissingKeyHandler&&(o=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${j}${k}${h}`:h,b?o:void 0,e))}return f?(n.res=o,n.usedParams=this.getUsedParamsDetails(e),n):o}extendTranslation(a,b,c,e,f){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||e.usedLng,e.usedNS,e.usedKey,{resolved:e});else if(!c.skipInterpolation){let g;c.interpolation&&this.interpolator.init({...c,...{interpolation:{...this.options.interpolation,...c.interpolation}}});let h=d(a)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(h){let b=a.match(this.interpolator.nestingRegexp);g=b&&b.length}let i=c.replace&&!d(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),a=this.interpolator.interpolate(a,i,c.lng||this.language||e.usedLng,c),h){let b=a.match(this.interpolator.nestingRegexp);g<(b&&b.length)&&(c.nest=!1)}!c.lng&&e&&e.res&&(c.lng=this.language||e.usedLng),!1!==c.nest&&(a=this.interpolator.nest(a,(...a)=>f?.[0]!==a[0]||c.context?this.translate(...a,b):(this.logger.warn(`It seems you are nesting recursively key: ${a[0]} in key: ${b[0]}`),null),c)),c.interpolation&&this.interpolator.reset()}let g=c.postProcess||this.options.postProcess,h=d(g)?[g]:g;return null!=a&&h?.length&&!1!==c.applyPostProcessor&&(a=z.handle(h,a,b,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...e,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),a}resolve(a,b={}){let c,e,f,g,h;return d(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(a=>"function"==typeof a?B(a,{...this.options,...b}):a)),a.forEach(a=>{if(this.isValidLookup(c))return;let i=this.extractFromKey(a,b),j=i.key;e=j;let k=i.namespaces;this.options.fallbackNS&&(k=k.concat(this.options.fallbackNS));let l=void 0!==b.count&&!d(b.count),m=l&&!b.ordinal&&0===b.count,n=void 0!==b.context&&(d(b.context)||"number"==typeof b.context)&&""!==b.context,o=b.lngs?b.lngs:this.languageUtils.toResolveHierarchy(b.lng||this.language,b.fallbackLng);k.forEach(a=>{this.isValidLookup(c)||(h=a,!C[`${o[0]}-${a}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(C[`${o[0]}-${a}`]=!0,this.logger.warn(`key "${e}" for languages "${o.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),o.forEach(d=>{let e;if(this.isValidLookup(c))return;g=d;let h=[j];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(h,j,d,a,b);else{let a;l&&(a=this.pluralResolver.getSuffix(d,b.count,b));let c=`${this.options.pluralSeparator}zero`,e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.ordinal&&0===a.indexOf(e)&&h.push(j+a.replace(e,this.options.pluralSeparator)),h.push(j+a),m&&h.push(j+c)),n){let d=`${j}${this.options.contextSeparator||"_"}${b.context}`;h.push(d),l&&(b.ordinal&&0===a.indexOf(e)&&h.push(d+a.replace(e,this.options.pluralSeparator)),h.push(d+a),m&&h.push(d+c))}}for(;e=h.pop();)this.isValidLookup(c)||(f=e,c=this.getResource(d,a,e,b))}))})}),{res:c,usedKey:e,exactUsedKey:f,usedLng:g,usedNS:h}}isValidLookup(a){return void 0!==a&&!(!this.options.returnNull&&null===a)&&!(!this.options.returnEmptyString&&""===a)}getResource(a,b,c,d={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,b,c,d):this.resourceStore.getResource(a,b,c,d)}getUsedParamsDetails(a={}){let b=a.replace&&!d(a.replace),c=b?a.replace:a;if(b&&void 0!==a.count&&(c.count=a.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!b)for(let a of(c={...c},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete c[a];return c}static hasDefaultValue(a){let b="defaultValue";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b===c.substring(0,b.length)&&void 0!==a[c])return!0;return!1}}class F{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return null;let b=a.split("-");return 2===b.length||(b.pop(),"x"===b[b.length-1].toLowerCase())?null:this.formatLanguageCode(b.join("-"))}getLanguagePartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return a;let b=a.split("-");return this.formatLanguageCode(b[0])}formatLanguageCode(a){if(d(a)&&a.indexOf("-")>-1){let b;try{b=Intl.getCanonicalLocales(a)[0]}catch(a){}return(b&&this.options.lowerCaseLng&&(b=b.toLowerCase()),b)?b:this.options.lowerCaseLng?a.toLowerCase():a}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){let b;return a?(a.forEach(a=>{if(b)return;let c=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(c))&&(b=c)}),!b&&this.options.supportedLngs&&a.forEach(a=>{if(b)return;let c=this.getScriptPartFromCode(a);if(this.isSupportedCode(c))return b=c;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return b=d;b=this.options.supportedLngs.find(a=>{if(a===d||!(0>a.indexOf("-")&&0>d.indexOf("-"))&&(a.indexOf("-")>0&&0>d.indexOf("-")&&a.substring(0,a.indexOf("-"))===d||0===a.indexOf(d)&&d.length>1))return a})}),b||(b=this.getFallbackCodes(this.options.fallbackLng)[0]),b):null}getFallbackCodes(a,b){if(!a)return[];if("function"==typeof a&&(a=a(b)),d(a)&&(a=[a]),Array.isArray(a))return a;if(!b)return a.default||[];let c=a[b];return c||(c=a[this.getScriptPartFromCode(b)]),c||(c=a[this.formatLanguageCode(b)]),c||(c=a[this.getLanguagePartFromCode(b)]),c||(c=a.default),c||[]}toResolveHierarchy(a,b){let c=this.getFallbackCodes((!1===b?[]:b)||this.options.fallbackLng||[],a),e=[],f=a=>{a&&(this.isSupportedCode(a)?e.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return d(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?("languageOnly"!==this.options.load&&f(this.formatLanguageCode(a)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&f(this.getScriptPartFromCode(a)),"currentOnly"!==this.options.load&&f(this.getLanguagePartFromCode(a))):d(a)&&f(this.formatLanguageCode(a)),c.forEach(a=>{0>e.indexOf(a)&&f(this.formatLanguageCode(a))}),e}}let G={zero:0,one:1,two:2,few:3,many:4,other:5},H={select:a=>1===a?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class I{constructor(a,b={}){this.languageUtils=a,this.options=b,this.logger=w.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,b={}){let c,d=t("dev"===a?"en":a),e=b.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:d,type:e});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];try{c=new Intl.PluralRules(d,{type:e})}catch(e){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),H;if(!a.match(/-|_/))return H;let d=this.languageUtils.getLanguagePartFromCode(a);c=this.getRule(d,b)}return this.pluralRulesCache[f]=c,c}needsPlural(a,b={}){let c=this.getRule(a,b);return c||(c=this.getRule("dev",b)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,b,c={}){return this.getSuffixes(a,c).map(a=>`${b}${a}`)}getSuffixes(a,b={}){let c=this.getRule(a,b);return(c||(c=this.getRule("dev",b)),c)?c.resolvedOptions().pluralCategories.sort((a,b)=>G[a]-G[b]).map(a=>`${this.options.prepend}${b.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(a,b,c={}){let d=this.getRule(a,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(b)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",b,c))}}let J=(a,b,c,e=".",f=!0)=>{let g,h=void 0!==(g=l(a,c))?g:l(b,c);return!h&&f&&d(c)&&void 0===(h=s(a,c,e))&&(h=s(b,c,e)),h};class K{constructor(a={}){this.logger=w.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(a=>a),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:b,escapeValue:c,useRawValueToEscape:d,prefix:e,prefixEscaped:f,suffix:g,suffixEscaped:h,formatSeparator:i,unescapeSuffix:j,unescapePrefix:k,nestingPrefix:l,nestingPrefixEscaped:m,nestingSuffix:n,nestingSuffixEscaped:p,nestingOptionsSeparator:q,maxReplaces:r,alwaysFormat:s}=a.interpolation;this.escape=void 0!==b?b:o,this.escapeValue=void 0===c||c,this.useRawValueToEscape=void 0!==d&&d,this.prefix=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||"{{",this.suffix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||"}}",this.formatSeparator=i||",",this.unescapePrefix=j?"":k||"-",this.unescapeSuffix=this.unescapePrefix?"":j||"",this.nestingPrefix=l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=q||",",this.maxReplaces=r||1e3,this.alwaysFormat=void 0!==s&&s,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(a,b)=>a?.source===b?(a.lastIndex=0,a):RegExp(b,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,b,c,e){let g,h,i,j=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},k=a=>{if(0>a.indexOf(this.formatSeparator)){let d=J(b,j,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,c,{...e,...b,interpolationkey:a}):d}let d=a.split(this.formatSeparator),f=d.shift().trim(),g=d.join(this.formatSeparator).trim();return this.format(J(b,j,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,c,{...e,...b,interpolationkey:f})};this.resetRegExp();let l=e?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=e?.interpolation?.skipOnVariables!==void 0?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>a.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:a=>this.escapeValue?this.escape(a).replace(/\$/g,"$$$$"):a.replace(/\$/g,"$$$$")}].forEach(b=>{for(i=0;g=b.regex.exec(a);){let c=g[1].trim();if(void 0===(h=k(c)))if("function"==typeof l){let b=l(a,g,e);h=d(b)?b:""}else if(e&&Object.prototype.hasOwnProperty.call(e,c))h="";else if(m){h=g[0];continue}else this.logger.warn(`missed to pass in variable ${c} for interpolating ${a}`),h="";else d(h)||this.useRawValueToEscape||(h=f(h));let j=b.safeValue(h);if(a=a.replace(g[0],j),m?(b.regex.lastIndex+=h.length,b.regex.lastIndex-=g[0].length):b.regex.lastIndex=0,++i>=this.maxReplaces)break}}),a}nest(a,b,c={}){let e,g,h,i=(a,b)=>{let c=this.nestingOptionsSeparator;if(0>a.indexOf(c))return a;let d=a.split(RegExp(`${c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),e=`{${d[1]}`;a=d[0];let f=(e=this.interpolate(e,h)).match(/'/g),g=e.match(/"/g);((f?.length??0)%2!=0||g)&&(g?.length??0)%2==0||(e=e.replace(/'/g,'"'));try{h=JSON.parse(e),b&&(h={...b,...h})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,b),`${a}${c}${e}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,a};for(;e=this.nestingRegexp.exec(a);){let j=[];(h=(h={...c}).replace&&!d(h.replace)?h.replace:h).applyPostProcessor=!1,delete h.defaultValue;let k=/{.*}/.test(e[1])?e[1].lastIndexOf("}")+1:e[1].indexOf(this.formatSeparator);if(-1!==k&&(j=e[1].slice(k).split(this.formatSeparator).map(a=>a.trim()).filter(Boolean),e[1]=e[1].slice(0,k)),(g=b(i.call(this,e[1].trim(),h),h))&&e[0]===a&&!d(g))return g;d(g)||(g=f(g)),g||(this.logger.warn(`missed to resolve ${e[1]} for nesting ${a}`),g=""),j.length&&(g=j.reduce((a,b)=>this.format(a,b,c.lng,{...c,interpolationkey:e[1].trim()}),g.trim())),a=a.replace(e[0],g),this.regexp.lastIndex=0}return a}}let L=a=>{let b={};return(c,d,e)=>{let f=e;e&&e.interpolationkey&&e.formatParams&&e.formatParams[e.interpolationkey]&&e[e.interpolationkey]&&(f={...f,[e.interpolationkey]:void 0});let g=d+JSON.stringify(f),h=b[g];return h||(h=a(t(d),e),b[g]=h),h(c)}},M=a=>(b,c,d)=>a(t(c),d)(b);class N{constructor(a={}){this.logger=w.create("formatter"),this.options=a,this.init(a)}init(a,b={interpolation:{}}){this.formatSeparator=b.interpolation.formatSeparator||",";let c=b.cacheInBuiltFormats?L:M;this.formats={number:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b});return a=>c.format(a)}),currency:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b,style:"currency"});return a=>c.format(a)}),datetime:c((a,b)=>{let c=new Intl.DateTimeFormat(a,{...b});return a=>c.format(a)}),relativetime:c((a,b)=>{let c=new Intl.RelativeTimeFormat(a,{...b});return a=>c.format(a,b.range||"day")}),list:c((a,b)=>{let c=new Intl.ListFormat(a,{...b});return a=>c.format(a)})}}add(a,b){this.formats[a.toLowerCase().trim()]=b}addCached(a,b){this.formats[a.toLowerCase().trim()]=L(b)}format(a,b,c,d={}){let e=b.split(this.formatSeparator);if(e.length>1&&e[0].indexOf("(")>1&&0>e[0].indexOf(")")&&e.find(a=>a.indexOf(")")>-1)){let a=e.findIndex(a=>a.indexOf(")")>-1);e[0]=[e[0],...e.splice(1,a)].join(this.formatSeparator)}return e.reduce((a,b)=>{let{formatName:e,formatOptions:f}=(a=>{let b=a.toLowerCase().trim(),c={};if(a.indexOf("(")>-1){let d=a.split("(");b=d[0].toLowerCase().trim();let e=d[1].substring(0,d[1].length-1);"currency"===b&&0>e.indexOf(":")?c.currency||(c.currency=e.trim()):"relativetime"===b&&0>e.indexOf(":")?c.range||(c.range=e.trim()):e.split(";").forEach(a=>{if(a){let[b,...d]=a.split(":"),e=d.join(":").trim().replace(/^'+|'+$/g,""),f=b.trim();c[f]||(c[f]=e),"false"===e&&(c[f]=!1),"true"===e&&(c[f]=!0),isNaN(e)||(c[f]=parseInt(e,10))}})}return{formatName:b,formatOptions:c}})(b);if(this.formats[e]){let b=a;try{let g=d?.formatParams?.[d.interpolationkey]||{},h=g.locale||g.lng||d.locale||d.lng||c;b=this.formats[e](a,h,{...f,...d,...g})}catch(a){this.logger.warn(a)}return b}return this.logger.warn(`there was no format function for ${e}`),a},a)}}class O extends x{constructor(a,b,c,d={}){super(),this.backend=a,this.store=b,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,d.backend,d)}queueLoad(a,b,c,d){let e={},f={},g={},h={};return a.forEach(a=>{let d=!0;b.forEach(b=>{let g=`${a}|${b}`;!c.reload&&this.store.hasResourceBundle(a,b)?this.state[g]=2:this.state[g]<0||(1===this.state[g]?void 0===f[g]&&(f[g]=!0):(this.state[g]=1,d=!1,void 0===f[g]&&(f[g]=!0),void 0===e[g]&&(e[g]=!0),void 0===h[b]&&(h[b]=!0)))}),d||(g[a]=!0)}),(Object.keys(e).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(e),pending:Object.keys(f),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(h)}}loaded(a,b,c){let d=a.split("|"),e=d[0],f=d[1];b&&this.emit("failedLoading",e,f,b),!b&&c&&this.store.addResourceBundle(e,f,c,void 0,void 0,{skipCopy:!0}),this.state[a]=b?-1:2,b&&c&&(this.state[a]=0);let g={};this.queue.forEach(c=>{((a,b,c,d)=>{let{obj:e,k:f}=j(a,b,Object);e[f]=e[f]||[],e[f].push(c)})(c.loaded,[e],f),void 0!==c.pending[a]&&(delete c.pending[a],c.pendingCount--),b&&c.errors.push(b),0!==c.pendingCount||c.done||(Object.keys(c.loaded).forEach(a=>{g[a]||(g[a]={});let b=c.loaded[a];b.length&&b.forEach(b=>{void 0===g[a][b]&&(g[a][b]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(a=>!a.done)}read(a,b,c,d=0,e=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:a,ns:b,fcName:c,tried:d,wait:e,callback:f});this.readingCalls++;let g=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let a=this.waitingReads.shift();this.read(a.lng,a.ns,a.fcName,a.tried,a.wait,a.callback)}g&&h&&d<this.maxRetries?setTimeout(()=>{this.read.call(this,a,b,c,d+1,2*e,f)},e):f(g,h)},h=this.backend[c].bind(this.backend);if(2===h.length){try{let c=h(a,b);c&&"function"==typeof c.then?c.then(a=>g(null,a)).catch(g):g(null,c)}catch(a){g(a)}return}return h(a,b,g)}prepareLoading(a,b,c={},e){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),e&&e();d(a)&&(a=this.languageUtils.toResolveHierarchy(a)),d(b)&&(b=[b]);let f=this.queueLoad(a,b,c,e);if(!f.toLoad.length)return f.pending.length||e(),null;f.toLoad.forEach(a=>{this.loadOne(a)})}load(a,b,c){this.prepareLoading(a,b,{},c)}reload(a,b,c){this.prepareLoading(a,b,{reload:!0},c)}loadOne(a,b=""){let c=a.split("|"),d=c[0],e=c[1];this.read(d,e,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${b}loading namespace ${e} for language ${d} failed`,c),!c&&f&&this.logger.log(`${b}loaded namespace ${e} for language ${d}`,f),this.loaded(a,c,f)})}saveMissing(a,b,c,d,e,f={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(b))return void this.logger.warn(`did not save key "${c}" as the namespace "${b}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=c&&""!==c){if(this.backend?.create){let h={...f,isUpdate:e},i=this.backend.create.bind(this.backend);if(i.length<6)try{let e;(e=5===i.length?i(a,b,c,d,h):i(a,b,c,d))&&"function"==typeof e.then?e.then(a=>g(null,a)).catch(g):g(null,e)}catch(a){g(a)}else i(a,b,c,d,g,h)}a&&a[0]&&this.store.addResource(a[0],b,c,d)}}}let P=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let b={};if("object"==typeof a[1]&&(b=a[1]),d(a[1])&&(b.defaultValue=a[1]),d(a[2])&&(b.tDescription=a[2]),"object"==typeof a[2]||"object"==typeof a[3]){let c=a[3]||a[2];Object.keys(c).forEach(a=>{b[a]=c[a]})}return b},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Q=a=>(d(a.ns)&&(a.ns=[a.ns]),d(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),d(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),"boolean"==typeof a.initImmediate&&(a.initAsync=a.initImmediate),a),R=()=>{},S="__i18next_supportNoticeShown";class T extends x{constructor(a={},b){if(super(),this.options=Q(a),this.services={},this.logger=w,this.modules={external:[]},(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(b=>{"function"==typeof a[b]&&(a[b]=a[b].bind(a))})})(this),b&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,b),this;setTimeout(()=>{this.init(a,b)},0)}}init(a={},b){this.isInitializing=!0,"function"==typeof a&&(b=a,a={}),null==a.defaultNS&&a.ns&&(d(a.ns)?a.defaultNS=a.ns:0>a.ns.indexOf("translation")&&(a.defaultNS=a.ns[0]));let c=P();this.options={...c,...this.options,...Q(a)},this.options.interpolation={...c.interpolation,...this.options.interpolation},void 0!==a.keySeparator&&(this.options.userDefinedKeySeparator=a.keySeparator),void 0!==a.nsSeparator&&(this.options.userDefinedNsSeparator=a.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),!1!==this.options.showSupportNotice&&!(this?.modules?.backend?.name?.indexOf("Locize")>0||this?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||this?.options?.backend?.backends&&this.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||this?.options?.backend?.projectId||this?.options?.backend?.backendOptions&&this.options.backend.backendOptions.some(a=>a?.projectId))&&1&&!("u">typeof globalThis&&globalThis[S]||"u">typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"u">typeof process&&process.env&&1)&&("u">typeof console&&void 0!==console.info&&console.info("\uD83C\uDF10 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \uD83D\uDC99"),"u">typeof globalThis&&(globalThis[S]=!0));let f=a=>a?"function"==typeof a?new a:a:null;if(!this.options.isClone){let a;this.modules.logger?w.init(f(this.modules.logger),this.options):w.init(null,this.options),a=this.modules.formatter?this.modules.formatter:N;let b=new F(this.options);this.store=new y(this.options.resources,this.options);let d=this.services;d.logger=w,d.resourceStore=this.store,d.languageUtils=b,d.pluralResolver=new I(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),a&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(d.formatter=f(a),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new K(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new O(f(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.languageDetector&&(d.languageDetector=f(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=f(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.external.forEach(a=>{a.init&&a.init(this)})}if(this.format=this.options.interpolation.format,b||(b=R),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(a=>{this[a]=(...b)=>this.store[a](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(a=>{this[a]=(...b)=>(this.store[a](...b),this)});let g=e(),h=()=>{let a=(a,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(c),b(a,c)};if(this.languages&&!this.isInitialized)return a(null,this.t.bind(this));this.changeLanguage(this.options.lng,a)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),g}loadResources(a,b=R){let c=b,e=d(a)?a:this.language;if("function"==typeof a&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(e?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return c();let a=[],b=b=>{b&&"cimode"!==b&&this.services.languageUtils.toResolveHierarchy(b).forEach(b=>{"cimode"!==b&&0>a.indexOf(b)&&a.push(b)})};e?b(e):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>b(a)),this.options.preload?.forEach?.(a=>b(a)),this.services.backendConnector.load(a,this.options.ns,a=>{a||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),c(a)})}else c(null)}reloadResources(a,b,c){let d=e();return"function"==typeof a&&(c=a,a=void 0),"function"==typeof b&&(c=b,b=void 0),a||(a=this.languages),b||(b=this.options.ns),c||(c=R),this.services.backendConnector.reload(a,b,a=>{d.resolve(),c(a)}),d}use(a){if(!a)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===a.type&&(this.modules.backend=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"i18nFormat"===a.type&&(this.modules.i18nFormat=a),"postProcessor"===a.type&&z.addPostProcessor(a),"formatter"===a.type&&(this.modules.formatter=a),"3rdParty"===a.type&&this.modules.external.push(a),this}setResolvedLanguage(a){if(a&&this.languages&&!(["cimode","dev"].indexOf(a)>-1)){for(let a=0;a<this.languages.length;a++){let b=this.languages[a];if(!(["cimode","dev"].indexOf(b)>-1)&&this.store.hasLanguageSomeTranslations(b)){this.resolvedLanguage=b;break}}!this.resolvedLanguage&&0>this.languages.indexOf(a)&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,b){this.isLanguageChangingTo=a;let c=e();this.emit("languageChanging",a);let f=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},g=(d,e)=>{e?this.isLanguageChangingTo===a&&(f(e),this.translator.changeLanguage(e),this.isLanguageChangingTo=void 0,this.emit("languageChanged",e),this.logger.log("languageChanged",e)):this.isLanguageChangingTo=void 0,c.resolve((...a)=>this.t(...a)),b&&b(d,(...a)=>this.t(...a))},h=b=>{a||b||!this.services.languageDetector||(b=[]);let c=d(b)?b:b&&b[0],e=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(d(b)?[b]:b);e&&(this.language||f(e),this.translator.language||this.translator.changeLanguage(e),this.services.languageDetector?.cacheUserLanguage?.(e)),this.loadResources(e,a=>{g(a,e)})};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a):h(this.services.languageDetector.detect()),c}getFixedT(a,b,c){let e=(a,b,...d)=>{let f,g;(f="object"!=typeof b?this.options.overloadTranslationOptionHandler([a,b].concat(d)):{...b}).lng=f.lng||e.lng,f.lngs=f.lngs||e.lngs,f.ns=f.ns||e.ns,""!==f.keyPrefix&&(f.keyPrefix=f.keyPrefix||c||e.keyPrefix);let h={...this.options,...f};"function"==typeof f.keyPrefix&&(f.keyPrefix=B(f.keyPrefix,h));let i=this.options.keySeparator||".";return f.keyPrefix&&Array.isArray(a)?g=a.map(a=>("function"==typeof a&&(a=B(a,h)),`${f.keyPrefix}${i}${a}`)):("function"==typeof a&&(a=B(a,h)),g=f.keyPrefix?`${f.keyPrefix}${i}${a}`:a),this.t(g,f)};return d(a)?e.lng=a:e.lngs=a,e.ns=b,e.keyPrefix=c,e}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,b={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let c=b.lng||this.resolvedLanguage||this.languages[0],d=!!this.options&&this.options.fallbackLng,e=this.languages[this.languages.length-1];if("cimode"===c.toLowerCase())return!0;let f=(a,b)=>{let c=this.services.backendConnector.state[`${a}|${b}`];return -1===c||0===c||2===c};if(b.precheck){let a=b.precheck(this,f);if(void 0!==a)return a}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(c,a)&&(!d||f(e,a)))}loadNamespaces(a,b){let c=e();return this.options.ns?(d(a)&&(a=[a]),a.forEach(a=>{0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}loadLanguages(a,b){let c=e();d(a)&&(a=[a]);let f=this.options.preload||[],g=a.filter(a=>0>f.indexOf(a)&&this.services.languageUtils.isSupportedCode(a));return g.length?(this.options.preload=f.concat(g),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{let b=new Intl.Locale(a);if(b&&b.getTextInfo){let a=b.getTextInfo();if(a&&a.direction)return a.direction}}catch(a){}let b=this.services?.languageUtils||new F(P());return a.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(b.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},b){let c=new T(a,b);return c.createInstance=T.createInstance,c}cloneInstance(a={},b=R){let c=a.forkResourceStore;c&&delete a.forkResourceStore;let d={...this.options,...a,isClone:!0},e=new T(d);if((void 0!==a.debug||void 0!==a.prefix)&&(e.logger=e.logger.clone(a)),["store","services","language"].forEach(a=>{e[a]=this[a]}),e.services={...this.services},e.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},c&&(e.store=new y(Object.keys(this.store.data).reduce((a,b)=>(a[b]={...this.store.data[b]},a[b]=Object.keys(a[b]).reduce((c,d)=>(c[d]={...a[b][d]},c),a[b]),a),{}),d),e.services.resourceStore=e.store),a.interpolation){let b={...P().interpolation,...this.options.interpolation,...a.interpolation},c={...d,interpolation:b};e.services.interpolator=new K(c)}return e.translator=new E(e.services,d),e.translator.on("*",(a,...b)=>{e.emit(a,...b)}),e.init(d,b),e.translator.options=d,e.translator.backendConnector.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},e}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let U=T.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages},890:(a,b,c)=>{"use strict";c.d(b,{L2:()=>D,Rg:()=>h,_0:()=>E,_J:()=>B,ck:()=>i,it:()=>w});var d=c(32891),e=Object.defineProperty,f="textStyle",g=/^\s*([-+*])\s$/,h=d.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:a}){return["ul",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list",parseMarkdown:(a,b)=>"list"!==a.type||a.ordered?[]:{type:"bulletList",content:a.items?b.parseChildren(a.items):[]},renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:a,chain:b})=>this.options.keepAttributes?b().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(f)).run():a.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let a=(0,d.tG)({find:g,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(a=(0,d.tG)({find:g,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(f),editor:this.editor})),[a]}}),i=d.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:a}){return["li",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list_item",parseMarkdown:(a,b)=>{var c;if("list_item"!==a.type)return[];let d=null!=(c=b.parseBlockChildren)?c:b.parseChildren,e=[];if(a.tokens&&a.tokens.length>0)if(a.tokens.some(a=>"paragraph"===a.type))e=d(a.tokens);else{let c=a.tokens[0];if(c&&"text"===c.type&&c.tokens&&c.tokens.length>0){if(e=[{type:"paragraph",content:b.parseInline(c.tokens)}],a.tokens.length>1){let b=d(a.tokens.slice(1));e.push(...b)}}else e=d(a.tokens)}return 0===e.length&&(e=[{type:"paragraph",content:[]}]),{type:"listItem",content:e}},renderMarkdown:(a,b,c)=>(0,d.kj)(a,b,a=>{var b,c;if("bulletList"===a.parentType)return"- ";if("orderedList"===a.parentType){let d=(null==(c=null==(b=a.meta)?void 0:b.parentAttrs)?void 0:c.start)||1;return`${d+a.index}. `}return"- "},c),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),j={},k={findListItemPos:()=>m,getNextListDepth:()=>n,handleBackspace:()=>r,handleDelete:()=>u,hasListBefore:()=>o,hasListItemAfter:()=>v,hasListItemBefore:()=>p,listItemHasSubList:()=>q,nextListIsDeeper:()=>s,nextListIsHigher:()=>t};for(var l in k)e(j,l,{get:k[l],enumerable:!0});var m=(a,b)=>{let{$from:c}=b.selection,e=(0,d.Pg)(a,b.schema),f=c.depth,g=c.pos,h=null;for(;f>0&&null===h;)c.node(f).type===e?h=f:(f-=1,g-=1);return null===h?null:{$pos:b.doc.resolve(g),depth:h}},n=(a,b)=>{let c=m(a,b);if(!c)return!1;let[,e]=(0,d.fl)(b,a,c.$pos.pos+4);return e},o=(a,b,c)=>{let{$anchor:d}=a.selection,e=Math.max(0,d.pos-2),f=a.doc.resolve(e).node();return!!f&&!!c.includes(f.type.name)},p=(a,b)=>{var c;let{$anchor:d}=b.selection,e=b.doc.resolve(d.pos-2);return 0!==e.index()&&(null==(c=e.nodeBefore)?void 0:c.type.name)===a},q=(a,b,c)=>{if(!c)return!1;let e=(0,d.Pg)(a,b.schema),f=!1;return c.descendants(a=>{a.type===e&&(f=!0)}),f},r=(a,b,c)=>{if(a.commands.undoInputRule())return!0;if(a.state.selection.from!==a.state.selection.to)return!1;if(!(0,d.rU)(a.state,b)&&o(a.state,b,c)){let{$anchor:c}=a.state.selection,d=a.state.doc.resolve(c.before()-1),e=[];d.node().descendants((a,c)=>{a.type.name===b&&e.push({node:a,pos:c})});let f=e.at(-1);if(!f)return!1;let g=a.state.doc.resolve(d.start()+f.pos+1);return a.chain().cut({from:c.start()-1,to:c.end()+1},g.end()).joinForward().run()}if(!(0,d.rU)(a.state,b)||!(0,d.J_)(a.state))return!1;let e=m(b,a.state);if(!e)return!1;let f=a.state.doc.resolve(e.$pos.pos-2).node(e.depth),g=q(b,a.state,f);return p(b,a.state)&&!g?a.commands.joinItemBackward():a.chain().liftListItem(b).run()},s=(a,b)=>{let c=n(a,b),d=m(a,b);return!!d&&!!c&&c>d.depth},t=(a,b)=>{let c=n(a,b),d=m(a,b);return!!d&&!!c&&c<d.depth},u=(a,b)=>{if(!(0,d.rU)(a.state,b)||!(0,d.QN)(a.state,b))return!1;let{selection:c}=a.state,{$from:e,$to:f}=c;return!(!c.empty&&e.sameParent(f))&&(s(b,a.state)?a.chain().focus(a.state.selection.from+4).lift(b).joinBackward().run():t(b,a.state)?a.chain().joinForward().joinBackward().run():a.commands.joinItemForward())},v=(a,b)=>{var c;let{$anchor:d}=b.selection,e=b.doc.resolve(d.pos-d.parentOffset-2);return e.index()!==e.parent.childCount-1&&(null==(c=e.nodeAfter)?void 0:c.type.name)===a},w=d.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c})=>{void 0!==a.state.schema.nodes[c]&&u(a,c)&&(b=!0)}),b},"Mod-Delete":({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c})=>{void 0!==a.state.schema.nodes[c]&&u(a,c)&&(b=!0)}),b},Backspace:({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c,wrapperNames:d})=>{void 0!==a.state.schema.nodes[c]&&r(a,c,d)&&(b=!0)}),b},"Mod-Backspace":({editor:a})=>{let b=!1;return this.options.listTypes.forEach(({itemName:c,wrapperNames:d})=>{void 0!==a.state.schema.nodes[c]&&r(a,c,d)&&(b=!0)}),b}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,y=/^\s/,z="textStyle",A=/^(\d+)\.\s$/,B=d.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:a=>a.hasAttribute("start")?parseInt(a.getAttribute("start")||"",10):1},type:{default:null,parseHTML:a=>a.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:a}){let{start:b,...c}=a;return 1===b?["ol",(0,d.KV)(this.options.HTMLAttributes,c),0]:["ol",(0,d.KV)(this.options.HTMLAttributes,a),0]},markdownTokenName:"list",parseMarkdown:(a,b)=>{var c;if("list"!==a.type||!a.ordered)return[];let d=a.start||1,e=a.items?(c=a.items,c.map(a=>{if("list_item"!==a.type)return b.parseChildren([a])[0];let c=[];return a.tokens&&a.tokens.length>0&&a.tokens.forEach(a=>{if("paragraph"===a.type||"list"===a.type||"blockquote"===a.type||"code"===a.type)c.push(...b.parseChildren([a]));else if("text"===a.type&&a.tokens){let d=b.parseChildren([a]);c.push({type:"paragraph",content:d})}else{let d=b.parseChildren([a]);d.length>0&&c.push(...d)}}),{type:"listItem",content:c}})):[];return 1!==d?{type:"orderedList",attrs:{start:d},content:e}:{type:"orderedList",content:e}},renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:a=>{let b=a.match(/^(\s*)(\d+)\.\s+/),c=null==b?void 0:b.index;return void 0!==c?c:-1},tokenize:(a,b,c)=>{var d;let e=a.split("\n"),[f,g]=function(a){let b=[],c=0,d=0;for(;c<a.length;){let e=a[c],f=e.match(x);if(!f)break;let[,g,h,i]=f,j=g.length,k=[i],l=c+1,m=[e],n=!1;for(;l<a.length;){let b=a[l];if(b.match(x))break;if(""===b.trim())m.push(b),k.push(""),n=!0,l+=1;else if(b.match(y))m.push(b),k.push(b.slice(j+2)),l+=1;else{if(n)break;m.push(b),k.push(b),l+=1}}b.push({indent:j,number:parseInt(h,10),content:k.join("\n").trim(),contentLines:k,raw:m.join("\n")}),d=l,c=l}return[b,d]}(e);if(0===f.length)return;let h=function a(b,c,d){let e=[],f=0;for(;f<b.length;){let g=b[f];if(g.indent===c){let{paragraphLines:h,blockLines:i}=function(a){let b=[],c=[],d=!1;return a.forEach(a=>{let e;if(d)return void c.push(a);if(""===a.trim()||b.length>0&&(e=a.trimStart(),/^[-+*]\s+/.test(e)||/^\d+\.\s+/.test(e)||/^>\s?/.test(e)||/^```/.test(e)||/^~~~/.test(e))){d=!0,c.push(a);return}b.push(a)}),{paragraphLines:b,blockLines:c}}(g.contentLines),j=h.join("\n").trim(),k=[];j&&k.push({type:"paragraph",raw:j,tokens:d.inlineTokens(j)});let l=i.join("\n").trim();if(l){let a=d.blockTokens(l);k.push(...a)}let m=f+1,n=[];for(;m<b.length&&b[m].indent>c;)n.push(b[m]),m+=1;if(n.length>0){let b=Math.min(...n.map(a=>a.indent)),c=a(n,b,d);k.push({type:"list",ordered:!0,start:n[0].number,items:c,raw:n.map(a=>a.raw).join("\n")})}e.push({type:"list_item",raw:g.raw,tokens:k}),f=m}else f+=1}return e}(f,0,c);if(0!==h.length)return{type:"list",ordered:!0,start:(null==(d=f[0])?void 0:d.number)||1,items:h,raw:e.slice(0,g).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:a,chain:b})=>this.options.keepAttributes?b().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(z)).run():a.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let a=(0,d.tG)({find:A,type:this.type,getAttributes:a=>({start:+a[1]}),joinPredicate:(a,b)=>b.childCount+b.attrs.start===+a[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(a=(0,d.tG)({find:A,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:a=>({start:+a[1],...this.editor.getAttributes(z)}),joinPredicate:(a,b)=>b.childCount+b.attrs.start===+a[1],editor:this.editor})),[a]}}),C=/^\s*(\[([( |x])?\])\s$/,D=d.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:a=>{let b=a.getAttribute("data-checked");return""===b||"true"===b},renderHTML:a=>({"data-checked":a.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:a,HTMLAttributes:b}){return["li",(0,d.KV)(this.options.HTMLAttributes,b,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:a.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(a,b)=>{let c=[];if(a.tokens&&a.tokens.length>0?c.push(b.createNode("paragraph",{},b.parseInline(a.tokens))):a.text?c.push(b.createNode("paragraph",{},[b.createNode("text",{text:a.text})])):c.push(b.createNode("paragraph",{},[])),a.nestedTokens&&a.nestedTokens.length>0){let d=b.parseChildren(a.nestedTokens);c.push(...d)}return b.createNode("taskItem",{checked:a.checked||!1},c)},renderMarkdown:(a,b)=>{var c;let e=(null==(c=a.attrs)?void 0:c.checked)?"x":" ",f=`- [${e}] `;return(0,d.kj)(a,b,f)},addKeyboardShortcuts(){let a={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...a,Tab:()=>this.editor.commands.sinkListItem(this.name)}:a},addNodeView(){return({node:a,HTMLAttributes:b,getPos:c,editor:e})=>{let f=document.createElement("li"),g=document.createElement("label"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("div"),k=a=>{var b,c;i.ariaLabel=(null==(c=null==(b=this.options.a11y)?void 0:b.checkboxLabel)?void 0:c.call(b,a,i.checked))||`Task item checkbox for ${a.textContent||"empty task item"}`};k(a),g.contentEditable="false",i.type="checkbox",i.addEventListener("mousedown",a=>a.preventDefault()),i.addEventListener("change",b=>{if(!e.isEditable&&!this.options.onReadOnlyChecked){i.checked=!i.checked;return}let{checked:d}=b.target;e.isEditable&&"function"==typeof c&&e.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:a})=>{let b=c();if("number"!=typeof b)return!1;let e=a.doc.nodeAt(b);return a.setNodeMarkup(b,void 0,{...null==e?void 0:e.attrs,checked:d}),!0}).run(),e.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(a,d)||(i.checked=!i.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([a,b])=>{f.setAttribute(a,b)}),f.dataset.checked=a.attrs.checked,i.checked=a.attrs.checked,g.append(i,h),f.append(g,j),Object.entries(b).forEach(([a,b])=>{f.setAttribute(a,b)});let l=new Set(Object.keys(b));return{dom:f,contentDOM:j,update:a=>{if(a.type!==this.type)return!1;f.dataset.checked=a.attrs.checked,i.checked=a.attrs.checked,k(a);let b=e.extensionManager.attributes,c=(0,d.zU)(a,b),g=new Set(Object.keys(c)),h=this.options.HTMLAttributes;return l.forEach(a=>{g.has(a)||(a in h?f.setAttribute(a,h[a]):f.removeAttribute(a))}),Object.entries(c).forEach(([a,b])=>{null==b?a in h?f.setAttribute(a,h[a]):f.removeAttribute(a):f.setAttribute(a,b)}),l=g,!0}}}},addInputRules(){return[(0,d.tG)({find:C,type:this.type,getAttributes:a=>({checked:"x"===a[a.length-1]})})]}}),E=d.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:a}){return["ul",(0,d.KV)(this.options.HTMLAttributes,a,{"data-type":this.name}),0]},parseMarkdown:(a,b)=>b.createNode("taskList",{},b.parseChildren(a.items||[])),renderMarkdown:(a,b)=>a.content?b.renderChildren(a.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(a){var b;let c=null==(b=a.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:b.index;return void 0!==c?c:-1},tokenize(a,b,c){let e=a=>{let b=(0,d.Dd)(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:"x"===a[3].toLowerCase()}),createToken:(a,b)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:c.inlineTokens(a.mainContent),nestedTokens:b}),customNestedParser:e},c);return b?[{type:"taskList",raw:b.raw,items:b.items}]:c.blockTokens(a)},f=(0,d.Dd)(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:"x"===a[3].toLowerCase()}),createToken:(a,b)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:c.inlineTokens(a.mainContent),nestedTokens:b}),customNestedParser:e},c);if(f)return{type:"taskList",raw:f.raw,items:f.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:a})=>a.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});d.YY.create({name:"listKit",addExtensions(){let a=[];return!1!==this.options.bulletList&&a.push(h.configure(this.options.bulletList)),!1!==this.options.listItem&&a.push(i.configure(this.options.listItem)),!1!==this.options.listKeymap&&a.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&a.push(B.configure(this.options.orderedList)),!1!==this.options.taskItem&&a.push(D.configure(this.options.taskItem)),!1!==this.options.taskList&&a.push(E.configure(this.options.taskList)),a}})},1239:(a,b,c)=>{"use strict";let d;c.d(b,{$I:()=>k,$r:()=>w,IB:()=>s,NW:()=>o,Ru:()=>l,Tj:()=>u,WL:()=>n,XQ:()=>y,Y6:()=>r,YW:()=>m,ZK:()=>p,dv:()=>i,gR:()=>x,k$:()=>q,n4:()=>t,qI:()=>v,zN:()=>j});var e=c(40316),f=c(91238),g=c(79775),h=c(59687);let i=()=>h.dv,j=h.zN;h.oL;let k=h.$I,l=h.Ru,m=(0,f.XY)(2,(a,{onNone:b,onSome:c})=>k(a)?b():c(a.value));g.j4,g.Gp;let n=(0,f.XY)(2,(a,b)=>k(a)?b():a.value),o=(0,f.XY)(2,(a,b)=>k(a)?b():a),p=(0,f.XY)(2,(a,b)=>k(a)?j(b()):a),q=a=>null==a?i():j(a),r=n(f.MN),s=a=>(...b)=>{try{return j(a(...b))}catch{return i()}},t=(0,f.XY)(2,(a,b)=>{if(l(a))return a.value;throw b()})(()=>Error("getOrThrow called on a None")),u=(0,f.XY)(2,(a,b)=>k(a)?i():j(b(a.value))),v=(0,f.XY)(2,(a,b)=>k(a)?i():b(a.value)),w=a=>k(a)?[]:[a.value],x=(d=e.XY(),(0,f.XY)(2,(a,b)=>!k(a)&&d(a.value,b))),y=a=>(b,c)=>k(b)?c:k(c)?b:j(a(b.value,c.value))},1370:(a,b,c)=>{"use strict";function d(a){this.content=a}c.d(b,{S4:()=>O,ZF:()=>X,FK:()=>e,CU:()=>i,sX:()=>L,bP:()=>x,u$:()=>v,vI:()=>j,Sj:()=>M,Ji:()=>k}),d.prototype={constructor:d,find:function(a){for(var b=0;b<this.content.length;b+=2)if(this.content[b]===a)return b;return -1},get:function(a){var b=this.find(a);return -1==b?void 0:this.content[b+1]},update:function(a,b,c){var e=c&&c!=a?this.remove(c):this,f=e.find(a),g=e.content.slice();return -1==f?g.push(c||a,b):(g[f+1]=b,c&&(g[f]=c)),new d(g)},remove:function(a){var b=this.find(a);if(-1==b)return this;var c=this.content.slice();return c.splice(b,2),new d(c)},addToStart:function(a,b){return new d([a,b].concat(this.remove(a).content))},addToEnd:function(a,b){var c=this.remove(a).content.slice();return c.push(a,b),new d(c)},addBefore:function(a,b,c){var e=this.remove(b),f=e.content.slice(),g=e.find(a);return f.splice(-1==g?f.length:g,0,b,c),new d(f)},forEach:function(a){for(var b=0;b<this.content.length;b+=2)a(this.content[b],this.content[b+1])},prepend:function(a){return(a=d.from(a)).size?new d(a.content.concat(this.subtract(a).content)):this},append:function(a){return(a=d.from(a)).size?new d(this.subtract(a).content.concat(a.content)):this},subtract:function(a){var b=this;a=d.from(a);for(var c=0;c<a.content.length;c+=2)b=b.remove(a.content[c]);return b},toObject:function(){var a={};return this.forEach(function(b,c){a[b]=c}),a},get size(){return this.content.length>>1}},d.from=function(a){if(a instanceof d)return a;var b=[];if(a)for(var c in a)b.push(c,a[c]);return new d(b)};class e{constructor(a,b){if(this.content=a,this.size=b||0,null==b)for(let b=0;b<a.length;b++)this.size+=a[b].nodeSize}nodesBetween(a,b,c,d=0,e){for(let f=0,g=0;g<b;f++){let h=this.content[f],i=g+h.nodeSize;if(i>a&&!1!==c(h,d+g,e||null,f)&&h.content.size){let e=g+1;h.nodesBetween(Math.max(0,a-e),Math.min(h.content.size,b-e),c,d+e)}g=i}}descendants(a){this.nodesBetween(0,this.size,a)}textBetween(a,b,c,d){let e="",f=!0;return this.nodesBetween(a,b,(g,h)=>{let i=g.isText?g.text.slice(Math.max(a,h)-h,b-h):g.isLeaf?d?"function"==typeof d?d(g):d:g.type.spec.leafText?g.type.spec.leafText(g):"":"";g.isBlock&&(g.isLeaf&&i||g.isTextblock)&&c&&(f?f=!1:e+=c),e+=i},0),e}append(a){if(!a.size)return this;if(!this.size)return a;let b=this.lastChild,c=a.firstChild,d=this.content.slice(),f=0;for(b.isText&&b.sameMarkup(c)&&(d[d.length-1]=b.withText(b.text+c.text),f=1);f<a.content.length;f++)d.push(a.content[f]);return new e(d,this.size+a.size)}cut(a,b=this.size){if(0==a&&b==this.size)return this;let c=[],d=0;if(b>a)for(let e=0,f=0;f<b;e++){let g=this.content[e],h=f+g.nodeSize;h>a&&((f<a||h>b)&&(g=g.isText?g.cut(Math.max(0,a-f),Math.min(g.text.length,b-f)):g.cut(Math.max(0,a-f-1),Math.min(g.content.size,b-f-1))),c.push(g),d+=g.nodeSize),f=h}return new e(c,d)}cutByIndex(a,b){return a==b?e.empty:0==a&&b==this.content.length?this:new e(this.content.slice(a,b))}replaceChild(a,b){let c=this.content[a];if(c==b)return this;let d=this.content.slice(),f=this.size+b.nodeSize-c.nodeSize;return d[a]=b,new e(d,f)}addToStart(a){return new e([a].concat(this.content),this.size+a.nodeSize)}addToEnd(a){return new e(this.content.concat(a),this.size+a.nodeSize)}eq(a){if(this.content.length!=a.content.length)return!1;for(let b=0;b<this.content.length;b++)if(!this.content[b].eq(a.content[b]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(a){let b=this.content[a];if(!b)throw RangeError("Index "+a+" out of range for "+this);return b}maybeChild(a){return this.content[a]||null}forEach(a){for(let b=0,c=0;b<this.content.length;b++){let d=this.content[b];a(d,c,b),c+=d.nodeSize}}findDiffStart(a,b=0){return function a(b,c,d){for(let e=0;;e++){if(e==b.childCount||e==c.childCount)return b.childCount==c.childCount?null:d;let f=b.child(e),g=c.child(e);if(f==g){d+=f.nodeSize;continue}if(!f.sameMarkup(g))return d;if(f.isText&&f.text!=g.text){for(let a=0;f.text[a]==g.text[a];a++)d++;return d}if(f.content.size||g.content.size){let b=a(f.content,g.content,d+1);if(null!=b)return b}d+=f.nodeSize}}(this,a,b)}findDiffEnd(a,b=this.size,c=a.size){return function a(b,c,d,e){for(let f=b.childCount,g=c.childCount;;){if(0==f||0==g)return f==g?null:{a:d,b:e};let h=b.child(--f),i=c.child(--g),j=h.nodeSize;if(h==i){d-=j,e-=j;continue}if(!h.sameMarkup(i))return{a:d,b:e};if(h.isText&&h.text!=i.text){let a=0,b=Math.min(h.text.length,i.text.length);for(;a<b&&h.text[h.text.length-a-1]==i.text[i.text.length-a-1];)a++,d--,e--;return{a:d,b:e}}if(h.content.size||i.content.size){let b=a(h.content,i.content,d-1,e-1);if(b)return b}d-=j,e-=j}}(this,a,b,c)}findIndex(a){if(0==a)return g(0,a);if(a==this.size)return g(this.content.length,a);if(a>this.size||a<0)throw RangeError(`Position ${a} outside of fragment (${this})`);for(let b=0,c=0;;b++){let d=c+this.child(b).nodeSize;if(d>=a){if(d==a)return g(b+1,d);return g(b,c)}c=d}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(a=>a.toJSON()):null}static fromJSON(a,b){if(!b)return e.empty;if(!Array.isArray(b))throw RangeError("Invalid input for Fragment.fromJSON");return new e(b.map(a.nodeFromJSON))}static fromArray(a){if(!a.length)return e.empty;let b,c=0;for(let d=0;d<a.length;d++){let e=a[d];c+=e.nodeSize,d&&e.isText&&a[d-1].sameMarkup(e)?(b||(b=a.slice(0,d)),b[b.length-1]=e.withText(b[b.length-1].text+e.text)):b&&b.push(e)}return new e(b||a,c)}static from(a){if(!a)return e.empty;if(a instanceof e)return a;if(Array.isArray(a))return this.fromArray(a);if(a.attrs)return new e([a],a.nodeSize);throw RangeError("Can not convert "+a+" to a Fragment"+(a.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}e.empty=new e([],0);let f={index:0,offset:0};function g(a,b){return f.index=a,f.offset=b,f}function h(a,b){if(a===b)return!0;if(!(a&&"object"==typeof a)||!(b&&"object"==typeof b))return!1;let c=Array.isArray(a);if(Array.isArray(b)!=c)return!1;if(c){if(a.length!=b.length)return!1;for(let c=0;c<a.length;c++)if(!h(a[c],b[c]))return!1}else{for(let c in a)if(!(c in b)||!h(a[c],b[c]))return!1;for(let c in b)if(!(c in a))return!1}return!0}class i{constructor(a,b){this.type=a,this.attrs=b}addToSet(a){let b,c=!1;for(let d=0;d<a.length;d++){let e=a[d];if(this.eq(e))return a;if(this.type.excludes(e.type))b||(b=a.slice(0,d));else{if(e.type.excludes(this.type))return a;!c&&e.type.rank>this.type.rank&&(b||(b=a.slice(0,d)),b.push(this),c=!0),b&&b.push(e)}}return b||(b=a.slice()),c||b.push(this),b}removeFromSet(a){for(let b=0;b<a.length;b++)if(this.eq(a[b]))return a.slice(0,b).concat(a.slice(b+1));return a}isInSet(a){for(let b=0;b<a.length;b++)if(this.eq(a[b]))return!0;return!1}eq(a){return this==a||this.type==a.type&&h(this.attrs,a.attrs)}toJSON(){let a={type:this.type.name};for(let b in this.attrs){a.attrs=this.attrs;break}return a}static fromJSON(a,b){if(!b)throw RangeError("Invalid input for Mark.fromJSON");let c=a.marks[b.type];if(!c)throw RangeError(`There is no mark type ${b.type} in this schema`);let d=c.create(b.attrs);return c.checkAttrs(d.attrs),d}static sameSet(a,b){if(a==b)return!0;if(a.length!=b.length)return!1;for(let c=0;c<a.length;c++)if(!a[c].eq(b[c]))return!1;return!0}static setFrom(a){if(!a||Array.isArray(a)&&0==a.length)return i.none;if(a instanceof i)return[a];let b=a.slice();return b.sort((a,b)=>a.type.rank-b.type.rank),b}}i.none=[];class j extends Error{}class k{constructor(a,b,c){this.content=a,this.openStart=b,this.openEnd=c}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(a,b){let c=function a(b,c,d,e){let{index:f,offset:g}=b.findIndex(c),h=b.maybeChild(f);if(g==c||h.isText)return e&&!e.canReplace(f,f,d)?null:b.cut(0,c).append(d).append(b.cut(c));let i=a(h.content,c-g-1,d,h);return i&&b.replaceChild(f,h.copy(i))}(this.content,a+this.openStart,b);return c&&new k(c,this.openStart,this.openEnd)}removeBetween(a,b){return new k(function a(b,c,d){let{index:e,offset:f}=b.findIndex(c),g=b.maybeChild(e),{index:h,offset:i}=b.findIndex(d);if(f==c||g.isText){if(i!=d&&!b.child(h).isText)throw RangeError("Removing non-flat range");return b.cut(0,c).append(b.cut(d))}if(e!=h)throw RangeError("Removing non-flat range");return b.replaceChild(e,g.copy(a(g.content,c-f-1,d-f-1)))}(this.content,a+this.openStart,b+this.openStart),this.openStart,this.openEnd)}eq(a){return this.content.eq(a.content)&&this.openStart==a.openStart&&this.openEnd==a.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let a={content:this.content.toJSON()};return this.openStart>0&&(a.openStart=this.openStart),this.openEnd>0&&(a.openEnd=this.openEnd),a}static fromJSON(a,b){if(!b)return k.empty;let c=b.openStart||0,d=b.openEnd||0;if("number"!=typeof c||"number"!=typeof d)throw RangeError("Invalid input for Slice.fromJSON");return new k(e.fromJSON(a,b.content),c,d)}static maxOpen(a,b=!0){let c=0,d=0;for(let d=a.firstChild;d&&!d.isLeaf&&(b||!d.type.spec.isolating);d=d.firstChild)c++;for(let c=a.lastChild;c&&!c.isLeaf&&(b||!c.type.spec.isolating);c=c.lastChild)d++;return new k(a,c,d)}}function l(a,b){if(!b.type.compatibleContent(a.type))throw new j("Cannot join "+b.type.name+" onto "+a.type.name)}function m(a,b,c){let d=a.node(c);return l(d,b.node(c)),d}function n(a,b){let c=b.length-1;c>=0&&a.isText&&a.sameMarkup(b[c])?b[c]=a.withText(b[c].text+a.text):b.push(a)}function o(a,b,c,d){let e=(b||a).node(c),f=0,g=b?b.index(c):e.childCount;a&&(f=a.index(c),a.depth>c?f++:a.textOffset&&(n(a.nodeAfter,d),f++));for(let a=f;a<g;a++)n(e.child(a),d);b&&b.depth==c&&b.textOffset&&n(b.nodeBefore,d)}function p(a,b){return a.type.checkContent(b),a.copy(b)}function q(a,b,c){let d=[];return o(null,a,c,d),a.depth>c&&n(p(m(a,b,c+1),q(a,b,c+1)),d),o(b,null,c,d),new e(d)}k.empty=new k(e.empty,0,0);class r{constructor(a,b,c){this.pos=a,this.path=b,this.parentOffset=c,this.depth=b.length/3-1}resolveDepth(a){return null==a?this.depth:a<0?this.depth+a:a}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(a){return this.path[3*this.resolveDepth(a)]}index(a){return this.path[3*this.resolveDepth(a)+1]}indexAfter(a){return a=this.resolveDepth(a),this.index(a)+(a!=this.depth||this.textOffset?1:0)}start(a){return 0==(a=this.resolveDepth(a))?0:this.path[3*a-1]+1}end(a){return a=this.resolveDepth(a),this.start(a)+this.node(a).content.size}before(a){if(!(a=this.resolveDepth(a)))throw RangeError("There is no position before the top-level node");return a==this.depth+1?this.pos:this.path[3*a-1]}after(a){if(!(a=this.resolveDepth(a)))throw RangeError("There is no position after the top-level node");return a==this.depth+1?this.pos:this.path[3*a-1]+this.path[3*a].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let a=this.parent,b=this.index(this.depth);if(b==a.childCount)return null;let c=this.pos-this.path[this.path.length-1],d=a.child(b);return c?a.child(b).cut(c):d}get nodeBefore(){let a=this.index(this.depth),b=this.pos-this.path[this.path.length-1];return b?this.parent.child(a).cut(0,b):0==a?null:this.parent.child(a-1)}posAtIndex(a,b){b=this.resolveDepth(b);let c=this.path[3*b],d=0==b?0:this.path[3*b-1]+1;for(let b=0;b<a;b++)d+=c.child(b).nodeSize;return d}marks(){let a=this.parent,b=this.index();if(0==a.content.size)return i.none;if(this.textOffset)return a.child(b).marks;let c=a.maybeChild(b-1),d=a.maybeChild(b);if(!c){let a=c;c=d,d=a}let e=c.marks;for(var f=0;f<e.length;f++)!1!==e[f].type.spec.inclusive||d&&e[f].isInSet(d.marks)||(e=e[f--].removeFromSet(e));return e}marksAcross(a){let b=this.parent.maybeChild(this.index());if(!b||!b.isInline)return null;let c=b.marks,d=a.parent.maybeChild(a.index());for(var e=0;e<c.length;e++)!1!==c[e].type.spec.inclusive||d&&c[e].isInSet(d.marks)||(c=c[e--].removeFromSet(c));return c}sharedDepth(a){for(let b=this.depth;b>0;b--)if(this.start(b)<=a&&this.end(b)>=a)return b;return 0}blockRange(a=this,b){if(a.pos<this.pos)return a.blockRange(this);for(let c=this.depth-(this.parent.inlineContent||this.pos==a.pos?1:0);c>=0;c--)if(a.pos<=this.end(c)&&(!b||b(this.node(c))))return new v(this,a,c);return null}sameParent(a){return this.pos-this.parentOffset==a.pos-a.parentOffset}max(a){return a.pos>this.pos?a:this}min(a){return a.pos<this.pos?a:this}toString(){let a="";for(let b=1;b<=this.depth;b++)a+=(a?"/":"")+this.node(b).type.name+"_"+this.index(b-1);return a+":"+this.parentOffset}static resolve(a,b){if(!(b>=0&&b<=a.content.size))throw RangeError("Position "+b+" out of range");let c=[],d=0,e=b;for(let b=a;;){let{index:a,offset:f}=b.content.findIndex(e),g=e-f;if(c.push(b,a,d+f),!g||(b=b.child(a)).isText)break;e=g-1,d+=f+1}return new r(b,c,e)}static resolveCached(a,b){let c=u.get(a);if(c)for(let a=0;a<c.elts.length;a++){let d=c.elts[a];if(d.pos==b)return d}else u.set(a,c=new s);let d=c.elts[c.i]=r.resolve(a,b);return c.i=(c.i+1)%t,d}}class s{constructor(){this.elts=[],this.i=0}}let t=12,u=new WeakMap;class v{constructor(a,b,c){this.$from=a,this.$to=b,this.depth=c}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let w=Object.create(null);class x{constructor(a,b,c,d=i.none){this.type=a,this.attrs=b,this.marks=d,this.content=c||e.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(a){return this.content.child(a)}maybeChild(a){return this.content.maybeChild(a)}forEach(a){this.content.forEach(a)}nodesBetween(a,b,c,d=0){this.content.nodesBetween(a,b,c,d,this)}descendants(a){this.nodesBetween(0,this.content.size,a)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(a,b,c,d){return this.content.textBetween(a,b,c,d)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(a){return this==a||this.sameMarkup(a)&&this.content.eq(a.content)}sameMarkup(a){return this.hasMarkup(a.type,a.attrs,a.marks)}hasMarkup(a,b,c){return this.type==a&&h(this.attrs,b||a.defaultAttrs||w)&&i.sameSet(this.marks,c||i.none)}copy(a=null){return a==this.content?this:new x(this.type,this.attrs,a,this.marks)}mark(a){return a==this.marks?this:new x(this.type,this.attrs,this.content,a)}cut(a,b=this.content.size){return 0==a&&b==this.content.size?this:this.copy(this.content.cut(a,b))}slice(a,b=this.content.size,c=!1){if(a==b)return k.empty;let d=this.resolve(a),e=this.resolve(b),f=c?0:d.sharedDepth(b),g=d.start(f);return new k(d.node(f).content.cut(d.pos-g,e.pos-g),d.depth-f,e.depth-f)}replace(a,b,c){var d=this.resolve(a),f=this.resolve(b);if(c.openStart>d.depth)throw new j("Inserted content deeper than insertion position");if(d.depth-c.openStart!=f.depth-c.openEnd)throw new j("Inconsistent open depths");return function a(b,c,d,f){let g=b.index(f),h=b.node(f);if(g==c.index(f)&&f<b.depth-d.openStart){let e=a(b,c,d,f+1);return h.copy(h.content.replaceChild(g,e))}if(!d.content.size)return p(h,q(b,c,f));if(d.openStart||d.openEnd||b.depth!=f||c.depth!=f){let{start:a,end:g}=function(a,b){let c=b.depth-a.openStart,d=b.node(c).copy(a.content);for(let a=c-1;a>=0;a--)d=b.node(a).copy(e.from(d));return{start:d.resolveNoCache(a.openStart+c),end:d.resolveNoCache(d.content.size-a.openEnd-c)}}(d,b);return p(h,function a(b,c,d,f,g){let h=b.depth>g&&m(b,c,g+1),i=f.depth>g&&m(d,f,g+1),j=[];return o(null,b,g,j),h&&i&&c.index(g)==d.index(g)?(l(h,i),n(p(h,a(b,c,d,f,g+1)),j)):(h&&n(p(h,q(b,c,g+1)),j),o(c,d,g,j),i&&n(p(i,q(d,f,g+1)),j)),o(f,null,g,j),new e(j)}(b,a,g,c,f))}{let a=b.parent,e=a.content;return p(a,e.cut(0,b.parentOffset).append(d.content).append(e.cut(c.parentOffset)))}}(d,f,c,0)}nodeAt(a){for(let b=this;;){let{index:c,offset:d}=b.content.findIndex(a);if(!(b=b.maybeChild(c)))return null;if(d==a||b.isText)return b;a-=d+1}}childAfter(a){let{index:b,offset:c}=this.content.findIndex(a);return{node:this.content.maybeChild(b),index:b,offset:c}}childBefore(a){if(0==a)return{node:null,index:0,offset:0};let{index:b,offset:c}=this.content.findIndex(a);if(c<a)return{node:this.content.child(b),index:b,offset:c};let d=this.content.child(b-1);return{node:d,index:b-1,offset:c-d.nodeSize}}resolve(a){return r.resolveCached(this,a)}resolveNoCache(a){return r.resolve(this,a)}rangeHasMark(a,b,c){let d=!1;return b>a&&this.nodesBetween(a,b,a=>(c.isInSet(a.marks)&&(d=!0),!d)),d}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let a=this.type.name;return this.content.size&&(a+="("+this.content.toStringInner()+")"),z(this.marks,a)}contentMatchAt(a){let b=this.type.contentMatch.matchFragment(this.content,0,a);if(!b)throw Error("Called contentMatchAt on a node with invalid content");return b}canReplace(a,b,c=e.empty,d=0,f=c.childCount){let g=this.contentMatchAt(a).matchFragment(c,d,f),h=g&&g.matchFragment(this.content,b);if(!h||!h.validEnd)return!1;for(let a=d;a<f;a++)if(!this.type.allowsMarks(c.child(a).marks))return!1;return!0}canReplaceWith(a,b,c,d){if(d&&!this.type.allowsMarks(d))return!1;let e=this.contentMatchAt(a).matchType(c),f=e&&e.matchFragment(this.content,b);return!!f&&f.validEnd}canAppend(a){return a.content.size?this.canReplace(this.childCount,this.childCount,a.content):this.type.compatibleContent(a.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let a=i.none;for(let b=0;b<this.marks.length;b++){let c=this.marks[b];c.type.checkAttrs(c.attrs),a=c.addToSet(a)}if(!i.sameSet(a,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(a=>a.type.name)}`);this.content.forEach(a=>a.check())}toJSON(){let a={type:this.type.name};for(let b in this.attrs){a.attrs=this.attrs;break}return this.content.size&&(a.content=this.content.toJSON()),this.marks.length&&(a.marks=this.marks.map(a=>a.toJSON())),a}static fromJSON(a,b){let c;if(!b)throw RangeError("Invalid input for Node.fromJSON");if(b.marks){if(!Array.isArray(b.marks))throw RangeError("Invalid mark data for Node.fromJSON");c=b.marks.map(a.markFromJSON)}if("text"==b.type){if("string"!=typeof b.text)throw RangeError("Invalid text node in JSON");return a.text(b.text,c)}let d=e.fromJSON(a,b.content),f=a.nodeType(b.type).create(b.attrs,d,c);return f.type.checkAttrs(f.attrs),f}}x.prototype.text=void 0;class y extends x{constructor(a,b,c,d){if(super(a,b,null,d),!c)throw RangeError("Empty text nodes are not allowed");this.text=c}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):z(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(a,b){return this.text.slice(a,b)}get nodeSize(){return this.text.length}mark(a){return a==this.marks?this:new y(this.type,this.attrs,this.text,a)}withText(a){return a==this.text?this:new y(this.type,this.attrs,a,this.marks)}cut(a=0,b=this.text.length){return 0==a&&b==this.text.length?this:this.withText(this.text.slice(a,b))}eq(a){return this.sameMarkup(a)&&this.text==a.text}toJSON(){let a=super.toJSON();return a.text=this.text,a}}function z(a,b){for(let c=a.length-1;c>=0;c--)b=a[c].type.name+"("+b+")";return b}class A{constructor(a){this.validEnd=a,this.next=[],this.wrapCache=[]}static parse(a,b){var c;let d,e=new B(a,b);if(null==e.next)return A.empty;let f=function a(b){let c=[];do c.push(function(b){let c=[];do c.push(function(b){let c=function(b){if(b.eat("(")){let c=a(b);return b.eat(")")||b.err("Missing closing paren"),c}if(/\W/.test(b.next))b.err("Unexpected token '"+b.next+"'");else{let a=(function(a,b){let c=a.nodeTypes,d=c[b];if(d)return[d];let e=[];for(let a in c){let d=c[a];d.isInGroup(b)&&e.push(d)}return 0==e.length&&a.err("No node type or group '"+b+"' found"),e})(b,b.next).map(a=>(null==b.inline?b.inline=a.isInline:b.inline!=a.isInline&&b.err("Mixing inline and block content"),{type:"name",value:a}));return b.pos++,1==a.length?a[0]:{type:"choice",exprs:a}}}(b);for(;;)if(b.eat("+"))c={type:"plus",expr:c};else if(b.eat("*"))c={type:"star",expr:c};else if(b.eat("?"))c={type:"opt",expr:c};else if(b.eat("{"))c=function(a,b){let c=C(a),d=c;return a.eat(",")&&(d="}"!=a.next?C(a):-1),a.eat("}")||a.err("Unclosed braced range"),{type:"range",min:c,max:d,expr:b}}(b,c);else break;return c}(b));while(b.next&&")"!=b.next&&"|"!=b.next);return 1==c.length?c[0]:{type:"seq",exprs:c}}(b));while(b.eat("|"));return 1==c.length?c[0]:{type:"choice",exprs:c}}(e);e.next&&e.err("Unexpected trailing text");let g=(c=function(a){let b=[[]];return e(function a(b,f){if("choice"==b.type)return b.exprs.reduce((b,c)=>b.concat(a(c,f)),[]);if("seq"==b.type)for(let d=0;;d++){let g=a(b.exprs[d],f);if(d==b.exprs.length-1)return g;e(g,f=c())}else if("star"==b.type){let g=c();return d(f,g),e(a(b.expr,g),g),[d(g)]}else if("plus"==b.type){let g=c();return e(a(b.expr,f),g),e(a(b.expr,g),g),[d(g)]}else if("opt"==b.type)return[d(f)].concat(a(b.expr,f));else if("range"==b.type){let g=f;for(let d=0;d<b.min;d++){let d=c();e(a(b.expr,g),d),g=d}if(-1==b.max)e(a(b.expr,g),g);else for(let f=b.min;f<b.max;f++){let f=c();d(g,f),e(a(b.expr,g),f),g=f}return[d(g)]}else if("name"==b.type)return[d(f,void 0,b.value)];else throw Error("Unknown expr type")}(a,0),c()),b;function c(){return b.push([])-1}function d(a,c,d){let e={term:d,to:c};return b[a].push(e),e}function e(a,b){a.forEach(a=>a.to=b)}}(f),d=Object.create(null),function a(b){let e=[];b.forEach(a=>{c[a].forEach(({term:a,to:b})=>{let d;if(a){for(let b=0;b<e.length;b++)e[b][0]==a&&(d=e[b][1]);E(c,b).forEach(b=>{d||e.push([a,d=[]]),-1==d.indexOf(b)&&d.push(b)})}})});let f=d[b.join(",")]=new A(b.indexOf(c.length-1)>-1);for(let b=0;b<e.length;b++){let c=e[b][1].sort(D);f.next.push({type:e[b][0],next:d[c.join(",")]||a(c)})}return f}(E(c,0)));return function(a,b){for(let c=0,d=[a];c<d.length;c++){let a=d[c],e=!a.validEnd,f=[];for(let b=0;b<a.next.length;b++){let{type:c,next:g}=a.next[b];f.push(c.name),e&&!(c.isText||c.hasRequiredAttrs())&&(e=!1),-1==d.indexOf(g)&&d.push(g)}e&&b.err("Only non-generatable nodes ("+f.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(g,e),g}matchType(a){for(let b=0;b<this.next.length;b++)if(this.next[b].type==a)return this.next[b].next;return null}matchFragment(a,b=0,c=a.childCount){let d=this;for(let e=b;d&&e<c;e++)d=d.matchType(a.child(e).type);return d}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let a=0;a<this.next.length;a++){let{type:b}=this.next[a];if(!(b.isText||b.hasRequiredAttrs()))return b}return null}compatible(a){for(let b=0;b<this.next.length;b++)for(let c=0;c<a.next.length;c++)if(this.next[b].type==a.next[c].type)return!0;return!1}fillBefore(a,b=!1,c=0){let d=[this];return function f(g,h){let i=g.matchFragment(a,c);if(i&&(!b||i.validEnd))return e.from(h.map(a=>a.createAndFill()));for(let a=0;a<g.next.length;a++){let{type:b,next:c}=g.next[a];if(!(b.isText||b.hasRequiredAttrs())&&-1==d.indexOf(c)){d.push(c);let a=f(c,h.concat(b));if(a)return a}}return null}(this,[])}findWrapping(a){for(let b=0;b<this.wrapCache.length;b+=2)if(this.wrapCache[b]==a)return this.wrapCache[b+1];let b=this.computeWrapping(a);return this.wrapCache.push(a,b),b}computeWrapping(a){let b=Object.create(null),c=[{match:this,type:null,via:null}];for(;c.length;){let d=c.shift(),e=d.match;if(e.matchType(a)){let a=[];for(let b=d;b.type;b=b.via)a.push(b.type);return a.reverse()}for(let a=0;a<e.next.length;a++){let{type:f,next:g}=e.next[a];f.isLeaf||f.hasRequiredAttrs()||f.name in b||d.type&&!g.validEnd||(c.push({match:f.contentMatch,type:f,via:d}),b[f.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(a){if(a>=this.next.length)throw RangeError(`There's no ${a}th edge in this content match`);return this.next[a]}toString(){let a=[];return!function b(c){a.push(c);for(let d=0;d<c.next.length;d++)-1==a.indexOf(c.next[d].next)&&b(c.next[d].next)}(this),a.map((b,c)=>{let d=c+(b.validEnd?"*":" ")+" ";for(let c=0;c<b.next.length;c++)d+=(c?", ":"")+b.next[c].type.name+"->"+a.indexOf(b.next[c].next);return d}).join("\n")}}A.empty=new A(!0);class B{constructor(a,b){this.string=a,this.nodeTypes=b,this.inline=null,this.pos=0,this.tokens=a.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(a){return this.next==a&&(this.pos++||!0)}err(a){throw SyntaxError(a+" (in content expression '"+this.string+"')")}}function C(a){/\D/.test(a.next)&&a.err("Expected number, got '"+a.next+"'");let b=Number(a.next);return a.pos++,b}function D(a,b){return b-a}function E(a,b){let c=[];return function b(d){let e=a[d];if(1==e.length&&!e[0].term)return b(e[0].to);c.push(d);for(let a=0;a<e.length;a++){let{term:d,to:f}=e[a];d||-1!=c.indexOf(f)||b(f)}}(b),c.sort(D)}function F(a){let b=Object.create(null);for(let c in a){let d=a[c];if(!d.hasDefault)return null;b[c]=d.default}return b}function G(a,b){let c=Object.create(null);for(let d in a){let e=b&&b[d];if(void 0===e){let b=a[d];if(b.hasDefault)e=b.default;else throw RangeError("No value supplied for attribute "+d)}c[d]=e}return c}function H(a,b,c,d){for(let d in b)if(!(d in a))throw RangeError(`Unsupported attribute ${d} for ${c} of type ${d}`);for(let c in a){let d=a[c];d.validate&&d.validate(b[c])}}function I(a,b){let c=Object.create(null);if(b)for(let d in b)c[d]=new K(a,d,b[d]);return c}class J{constructor(a,b,c){this.name=a,this.schema=b,this.spec=c,this.markSet=null,this.groups=c.group?c.group.split(" "):[],this.attrs=I(a,c.attrs),this.defaultAttrs=F(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(c.inline||"text"==a),this.isText="text"==a}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==A.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(a){return this.groups.indexOf(a)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let a in this.attrs)if(this.attrs[a].isRequired)return!0;return!1}compatibleContent(a){return this==a||this.contentMatch.compatible(a.contentMatch)}computeAttrs(a){return!a&&this.defaultAttrs?this.defaultAttrs:G(this.attrs,a)}create(a=null,b,c){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new x(this,this.computeAttrs(a),e.from(b),i.setFrom(c))}createChecked(a=null,b,c){return b=e.from(b),this.checkContent(b),new x(this,this.computeAttrs(a),b,i.setFrom(c))}createAndFill(a=null,b,c){if(a=this.computeAttrs(a),(b=e.from(b)).size){let a=this.contentMatch.fillBefore(b);if(!a)return null;b=a.append(b)}let d=this.contentMatch.matchFragment(b),f=d&&d.fillBefore(e.empty,!0);return f?new x(this,a,b.append(f),i.setFrom(c)):null}validContent(a){let b=this.contentMatch.matchFragment(a);if(!b||!b.validEnd)return!1;for(let b=0;b<a.childCount;b++)if(!this.allowsMarks(a.child(b).marks))return!1;return!0}checkContent(a){if(!this.validContent(a))throw RangeError(`Invalid content for node ${this.name}: ${a.toString().slice(0,50)}`)}checkAttrs(a){H(this.attrs,a,"node",this.name)}allowsMarkType(a){return null==this.markSet||this.markSet.indexOf(a)>-1}allowsMarks(a){if(null==this.markSet)return!0;for(let b=0;b<a.length;b++)if(!this.allowsMarkType(a[b].type))return!1;return!0}allowedMarks(a){let b;if(null==this.markSet)return a;for(let c=0;c<a.length;c++)this.allowsMarkType(a[c].type)?b&&b.push(a[c]):b||(b=a.slice(0,c));return b?b.length?b:i.none:a}static compile(a,b){let c=Object.create(null);a.forEach((a,d)=>c[a]=new J(a,b,d));let d=b.spec.topNode||"doc";if(!c[d])throw RangeError("Schema is missing its top node type ('"+d+"')");if(!c.text)throw RangeError("Every schema needs a 'text' type");for(let a in c.text.attrs)throw RangeError("The text node type should not have attributes");return c}}class K{constructor(a,b,c){this.hasDefault=Object.prototype.hasOwnProperty.call(c,"default"),this.default=c.default,this.validate="string"==typeof c.validate?function(a,b,c){let d=c.split("|");return c=>{let e=null===c?"null":typeof c;if(0>d.indexOf(e))throw RangeError(`Expected value of type ${d} for attribute ${b} on type ${a}, got ${e}`)}}(a,b,c.validate):c.validate}get isRequired(){return!this.hasDefault}}class L{constructor(a,b,c,d){this.name=a,this.rank=b,this.schema=c,this.spec=d,this.attrs=I(a,d.attrs),this.excluded=null;let e=F(this.attrs);this.instance=e?new i(this,e):null}create(a=null){return!a&&this.instance?this.instance:new i(this,G(this.attrs,a))}static compile(a,b){let c=Object.create(null),d=0;return a.forEach((a,e)=>c[a]=new L(a,d++,b,e)),c}removeFromSet(a){for(var b=0;b<a.length;b++)a[b].type==this&&(a=a.slice(0,b).concat(a.slice(b+1)),b--);return a}isInSet(a){for(let b=0;b<a.length;b++)if(a[b].type==this)return a[b]}checkAttrs(a){H(this.attrs,a,"mark",this.name)}excludes(a){return this.excluded.indexOf(a)>-1}}class M{constructor(a){this.linebreakReplacement=null,this.cached=Object.create(null);let b=this.spec={};for(let c in a)b[c]=a[c];b.nodes=d.from(a.nodes),b.marks=d.from(a.marks||{}),this.nodes=J.compile(this.spec.nodes,this),this.marks=L.compile(this.spec.marks,this);let c=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw RangeError(a+" can not be both a node and a mark");let b=this.nodes[a],d=b.spec.content||"",e=b.spec.marks;if(b.contentMatch=c[d]||(c[d]=A.parse(d,this.nodes)),b.inlineContent=b.contentMatch.inlineContent,b.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!b.isInline||!b.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=b}b.markSet="_"==e?null:e?N(this,e.split(" ")):""!=e&&b.inlineContent?null:[]}for(let a in this.marks){let b=this.marks[a],c=b.spec.excludes;b.excluded=null==c?[b]:""==c?[]:N(this,c.split(" "))}this.nodeFromJSON=a=>x.fromJSON(this,a),this.markFromJSON=a=>i.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(a,b=null,c,d){if("string"==typeof a)a=this.nodeType(a);else if(a instanceof J){if(a.schema!=this)throw RangeError("Node type from different schema used ("+a.name+")")}else throw RangeError("Invalid node type: "+a);return a.createChecked(b,c,d)}text(a,b){let c=this.nodes.text;return new y(c,c.defaultAttrs,a,i.setFrom(b))}mark(a,b){return"string"==typeof a&&(a=this.marks[a]),a.create(b)}nodeType(a){let b=this.nodes[a];if(!b)throw RangeError("Unknown node type: "+a);return b}}function N(a,b){let c=[];for(let d=0;d<b.length;d++){let e=b[d],f=a.marks[e],g=f;if(f)c.push(f);else for(let b in a.marks){let d=a.marks[b];("_"==e||d.spec.group&&d.spec.group.split(" ").indexOf(e)>-1)&&c.push(g=d)}if(!g)throw SyntaxError("Unknown mark type: '"+b[d]+"'")}return c}class O{constructor(a,b){this.schema=a,this.rules=b,this.tags=[],this.styles=[];let c=this.matchedStyles=[];b.forEach(a=>{if(null!=a.tag)this.tags.push(a);else if(null!=a.style){let b=/[^=]*/.exec(a.style)[0];0>c.indexOf(b)&&c.push(b),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(b=>{if(!/^(ul|ol)\b/.test(b.tag)||!b.node)return!1;let c=a.nodes[b.node];return c.contentMatch.matchType(c)})}parse(a,b={}){let c=new U(this,b,!1);return c.addAll(a,i.none,b.from,b.to),c.finish()}parseSlice(a,b={}){let c=new U(this,b,!0);return c.addAll(a,i.none,b.from,b.to),k.maxOpen(c.finish())}matchTag(a,b,c){for(let f=c?this.tags.indexOf(c)+1:0;f<this.tags.length;f++){var d,e;let c=this.tags[f];if(d=a,e=c.tag,(d.matches||d.msMatchesSelector||d.webkitMatchesSelector||d.mozMatchesSelector).call(d,e)&&(void 0===c.namespace||a.namespaceURI==c.namespace)&&(!c.context||b.matchesContext(c.context))){if(c.getAttrs){let b=c.getAttrs(a);if(!1===b)continue;c.attrs=b||void 0}return c}}}matchStyle(a,b,c,d){for(let e=d?this.styles.indexOf(d)+1:0;e<this.styles.length;e++){let d=this.styles[e],f=d.style;if(0==f.indexOf(a)&&(!d.context||c.matchesContext(d.context))&&(!(f.length>a.length)||61==f.charCodeAt(a.length)&&f.slice(a.length+1)==b)){if(d.getAttrs){let a=d.getAttrs(b);if(!1===a)continue;d.attrs=a||void 0}return d}}}static schemaRules(a){let b=[];function c(a){let c=null==a.priority?50:a.priority,d=0;for(;d<b.length;d++){let a=b[d];if((null==a.priority?50:a.priority)<c)break}b.splice(d,0,a)}for(let b in a.marks){let d=a.marks[b].spec.parseDOM;d&&d.forEach(a=>{c(a=V(a)),a.mark||a.ignore||a.clearMark||(a.mark=b)})}for(let b in a.nodes){let d=a.nodes[b].spec.parseDOM;d&&d.forEach(a=>{c(a=V(a)),a.node||a.ignore||a.mark||(a.node=b)})}return b}static fromSchema(a){return a.cached.domParser||(a.cached.domParser=new O(a,O.schemaRules(a)))}}let P={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Q={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},R={ol:!0,ul:!0};function S(a,b,c){return null!=b?!!b|2*("full"===b):a&&"pre"==a.whitespace?3:-5&c}class T{constructor(a,b,c,d,e,f){this.type=a,this.attrs=b,this.marks=c,this.solid=d,this.options=f,this.content=[],this.activeMarks=i.none,this.match=e||(4&f?null:a.contentMatch)}findWrapping(a){if(!this.match){if(!this.type)return[];let b=this.type.contentMatch.fillBefore(e.from(a));if(b)this.match=this.type.contentMatch.matchFragment(b);else{let b=this.type.contentMatch,c;return(c=b.findWrapping(a.type))?(this.match=b,c):null}}return this.match.findWrapping(a.type)}finish(a){if(!(1&this.options)){let a=this.content[this.content.length-1],b;a&&a.isText&&(b=/[ \t\r\n\u000c]+$/.exec(a.text))&&(a.text.length==b[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-b[0].length)))}let b=e.from(this.content);return!a&&this.match&&(b=b.append(this.match.fillBefore(e.empty,!0))),this.type?this.type.create(this.attrs,b,this.marks):b}inlineContext(a){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:a.parentNode&&!P.hasOwnProperty(a.parentNode.nodeName.toLowerCase())}}class U{constructor(a,b,c){this.parser=a,this.options=b,this.isOpen=c,this.open=0,this.localPreserveWS=!1;let d=b.topNode,e,f=S(null,b.preserveWhitespace,0)|4*!!c;e=d?new T(d.type,d.attrs,i.none,!0,b.topMatch||d.type.contentMatch,f):c?new T(null,null,i.none,!0,null,f):new T(a.schema.topNodeType,null,i.none,!0,null,f),this.nodes=[e],this.find=b.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(a,b){3==a.nodeType?this.addTextNode(a,b):1==a.nodeType&&this.addElement(a,b)}addTextNode(a,b){let c=a.nodeValue,d=this.top,e=2&d.options?"full":this.localPreserveWS||(1&d.options)>0,{schema:f}=this.parser;if("full"===e||d.inlineContext(a)||/[^ \t\r\n\u000c]/.test(c)){if(e)if("full"===e)c=c.replace(/\r\n?/g,"\n");else if(f.linebreakReplacement&&/[\r\n]/.test(c)&&this.top.findWrapping(f.linebreakReplacement.create())){let a=c.split(/\r?\n|\r/);for(let c=0;c<a.length;c++)c&&this.insertNode(f.linebreakReplacement.create(),b,!0),a[c]&&this.insertNode(f.text(a[c]),b,!/\S/.test(a[c]));c=""}else c=c.replace(/\r?\n|\r/g," ");else if(c=c.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(c)&&this.open==this.nodes.length-1){let b=d.content[d.content.length-1],e=a.previousSibling;(!b||e&&"BR"==e.nodeName||b.isText&&/[ \t\r\n\u000c]$/.test(b.text))&&(c=c.slice(1))}c&&this.insertNode(f.text(c),b,!/\S/.test(c)),this.findInText(a)}else this.findInside(a)}addElement(a,b,c){let d=this.localPreserveWS,e=this.top;("PRE"==a.tagName||/pre/.test(a.style&&a.style.whiteSpace))&&(this.localPreserveWS=!0);let f=a.nodeName.toLowerCase(),g;R.hasOwnProperty(f)&&this.parser.normalizeLists&&function(a){for(let b=a.firstChild,c=null;b;b=b.nextSibling){let a=1==b.nodeType?b.nodeName.toLowerCase():null;a&&R.hasOwnProperty(a)&&c?(c.appendChild(b),b=c):"li"==a?c=b:a&&(c=null)}}(a);let h=this.options.ruleFromNode&&this.options.ruleFromNode(a)||(g=this.parser.matchTag(a,this,c));a:if(h?h.ignore:Q.hasOwnProperty(f))this.findInside(a),this.ignoreFallback(a,b);else if(!h||h.skip||h.closeParent){h&&h.closeParent?this.open=Math.max(0,this.open-1):h&&h.skip.nodeType&&(a=h.skip);let c,d=this.needsBlock;if(P.hasOwnProperty(f))e.content.length&&e.content[0].isInline&&this.open&&(this.open--,e=this.top),c=!0,e.type||(this.needsBlock=!0);else if(!a.firstChild){this.leafFallback(a,b);break a}let g=h&&h.skip?b:this.readStyles(a,b);g&&this.addAll(a,g),c&&this.sync(e),this.needsBlock=d}else{let c=this.readStyles(a,b);c&&this.addElementByRule(a,h,c,!1===h.consuming?g:void 0)}this.localPreserveWS=d}leafFallback(a,b){"BR"==a.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(a.ownerDocument.createTextNode("\n"),b)}ignoreFallback(a,b){"BR"!=a.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),b,!0)}readStyles(a,b){let c=a.style;if(c&&c.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let d=this.parser.matchedStyles[a],e=c.getPropertyValue(d);if(e)for(let a;;){let c=this.parser.matchStyle(d,e,this,a);if(!c)break;if(c.ignore)return null;if(b=c.clearMark?b.filter(a=>!c.clearMark(a)):b.concat(this.parser.schema.marks[c.mark].create(c.attrs)),!1===c.consuming)a=c;else break}}return b}addElementByRule(a,b,c,d){let e,f;if(b.node)if((f=this.parser.schema.nodes[b.node]).isLeaf)this.insertNode(f.create(b.attrs),c,"BR"==a.nodeName)||this.leafFallback(a,c);else{let a=this.enter(f,b.attrs||null,c,b.preserveWhitespace);a&&(e=!0,c=a)}else{let a=this.parser.schema.marks[b.mark];c=c.concat(a.create(b.attrs))}let g=this.top;if(f&&f.isLeaf)this.findInside(a);else if(d)this.addElement(a,c,d);else if(b.getContent)this.findInside(a),b.getContent(a,this.parser.schema).forEach(a=>this.insertNode(a,c,!1));else{let d=a;"string"==typeof b.contentElement?d=a.querySelector(b.contentElement):"function"==typeof b.contentElement?d=b.contentElement(a):b.contentElement&&(d=b.contentElement),this.findAround(a,d,!0),this.addAll(d,c),this.findAround(a,d,!1)}e&&this.sync(g)&&this.open--}addAll(a,b,c,d){let e=c||0;for(let f=c?a.childNodes[c]:a.firstChild,g=null==d?null:a.childNodes[d];f!=g;f=f.nextSibling,++e)this.findAtPoint(a,e),this.addDOM(f,b);this.findAtPoint(a,e)}findPlace(a,b,c){let d,e;for(let b=this.open,f=0;b>=0;b--){let g=this.nodes[b],h=g.findWrapping(a);if(h&&(!d||d.length>h.length+f)&&(d=h,e=g,!h.length))break;if(g.solid){if(c)break;f+=2}}if(!d)return null;this.sync(e);for(let a=0;a<d.length;a++)b=this.enterInner(d[a],null,b,!1);return b}insertNode(a,b,c){if(a.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(b=this.enterInner(a,null,b))}let d=this.findPlace(a,b,c);if(d){this.closeExtra();let b=this.top;b.match&&(b.match=b.match.matchType(a.type));let c=i.none;for(let e of d.concat(a.marks))(b.type?b.type.allowsMarkType(e.type):W(e.type,a.type))&&(c=e.addToSet(c));return b.content.push(a.mark(c)),!0}return!1}enter(a,b,c,d){let e=this.findPlace(a.create(b),c,!1);return e&&(e=this.enterInner(a,b,c,!0,d)),e}enterInner(a,b,c,d=!1,e){this.closeExtra();let f=this.top;f.match=f.match&&f.match.matchType(a);let g=S(a,e,f.options);4&f.options&&0==f.content.length&&(g|=4);let h=i.none;return c=c.filter(b=>(f.type?!f.type.allowsMarkType(b.type):!W(b.type,a))||(h=b.addToSet(h),!1)),this.nodes.push(new T(a,b,h,d,null,g)),this.open++,c}closeExtra(a=!1){let b=this.nodes.length-1;if(b>this.open){for(;b>this.open;b--)this.nodes[b-1].content.push(this.nodes[b].finish(a));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(a){for(let b=this.open;b>=0;b--)if(this.nodes[b]==a)return this.open=b,!0;else this.localPreserveWS&&(this.nodes[b].options|=1);return!1}get currentPos(){this.closeExtra();let a=0;for(let b=this.open;b>=0;b--){let c=this.nodes[b].content;for(let b=c.length-1;b>=0;b--)a+=c[b].nodeSize;b&&a++}return a}findAtPoint(a,b){if(this.find)for(let c=0;c<this.find.length;c++)this.find[c].node==a&&this.find[c].offset==b&&(this.find[c].pos=this.currentPos)}findInside(a){if(this.find)for(let b=0;b<this.find.length;b++)null==this.find[b].pos&&1==a.nodeType&&a.contains(this.find[b].node)&&(this.find[b].pos=this.currentPos)}findAround(a,b,c){if(a!=b&&this.find)for(let d=0;d<this.find.length;d++)null==this.find[d].pos&&1==a.nodeType&&a.contains(this.find[d].node)&&b.compareDocumentPosition(this.find[d].node)&(c?2:4)&&(this.find[d].pos=this.currentPos)}findInText(a){if(this.find)for(let b=0;b<this.find.length;b++)this.find[b].node==a&&(this.find[b].pos=this.currentPos-(a.nodeValue.length-this.find[b].offset))}matchesContext(a){if(a.indexOf("|")>-1)return a.split(/\s*\|\s*/).some(this.matchesContext,this);let b=a.split("/"),c=this.options.context,d=!this.isOpen&&(!c||c.parent.type==this.nodes[0].type),e=-(c?c.depth+1:0)+ +!d,f=(a,g)=>{for(;a>=0;a--){let h=b[a];if(""==h){if(a==b.length-1||0==a)continue;for(;g>=e;g--)if(f(a-1,g))return!0;return!1}{let a=g>0||0==g&&d?this.nodes[g].type:c&&g>=e?c.node(g-e).type:null;if(!a||a.name!=h&&!a.isInGroup(h))return!1;g--}}return!0};return f(b.length-1,this.open)}textblockFromContext(){let a=this.options.context;if(a)for(let b=a.depth;b>=0;b--){let c=a.node(b).contentMatchAt(a.indexAfter(b)).defaultType;if(c&&c.isTextblock&&c.defaultAttrs)return c}for(let a in this.parser.schema.nodes){let b=this.parser.schema.nodes[a];if(b.isTextblock&&b.defaultAttrs)return b}}}function V(a){let b={};for(let c in a)b[c]=a[c];return b}function W(a,b){let c=b.schema.nodes;for(let d in c){let e=c[d];if(!e.allowsMarkType(a))continue;let f=[],g=a=>{f.push(a);for(let c=0;c<a.edgeCount;c++){let{type:d,next:e}=a.edge(c);if(d==b||0>f.indexOf(e)&&g(e))return!0}};if(g(e.contentMatch))return!0}}class X{constructor(a,b){this.nodes=a,this.marks=b}serializeFragment(a,b={},c){c||(c=Z(b).createDocumentFragment());let d=c,e=[];return a.forEach(a=>{if(e.length||a.marks.length){let c=0,f=0;for(;c<e.length&&f<a.marks.length;){let b=a.marks[f];if(!this.marks[b.type.name]){f++;continue}if(!b.eq(e[c][0])||!1===b.type.spec.spanning)break;c++,f++}for(;c<e.length;)d=e.pop()[1];for(;f<a.marks.length;){let c=a.marks[f++],g=this.serializeMark(c,a.isInline,b);g&&(e.push([c,d]),d.appendChild(g.dom),d=g.contentDOM||g.dom)}}d.appendChild(this.serializeNodeInner(a,b))}),c}serializeNodeInner(a,b){let{dom:c,contentDOM:d}=_(Z(b),this.nodes[a.type.name](a),null,a.attrs);if(d){if(a.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(a.content,b,d)}return c}serializeNode(a,b={}){let c=this.serializeNodeInner(a,b);for(let d=a.marks.length-1;d>=0;d--){let e=this.serializeMark(a.marks[d],a.isInline,b);e&&((e.contentDOM||e.dom).appendChild(c),c=e.dom)}return c}serializeMark(a,b,c={}){let d=this.marks[a.type.name];return d&&_(Z(c),d(a,b),null,a.attrs)}static renderSpec(a,b,c=null,d){return _(a,b,c,d)}static fromSchema(a){return a.cached.domSerializer||(a.cached.domSerializer=new X(this.nodesFromSchema(a),this.marksFromSchema(a)))}static nodesFromSchema(a){let b=Y(a.nodes);return b.text||(b.text=a=>a.text),b}static marksFromSchema(a){return Y(a.marks)}}function Y(a){let b={};for(let c in a){let d=a[c].spec.toDOM;d&&(b[c]=d)}return b}function Z(a){return a.document||window.document}let $=new WeakMap;function _(a,b,c,d){let e,f,g;if("string"==typeof b)return{dom:a.createTextNode(b)};if(null!=b.nodeType)return{dom:b};if(b.dom&&null!=b.dom.nodeType)return b;let h=b[0],i;if("string"!=typeof h)throw RangeError("Invalid array passed to renderSpec");if(d&&(void 0===(f=$.get(d))&&$.set(d,(g=null,!function a(b){if(b&&"object"==typeof b)if(Array.isArray(b))if("string"==typeof b[0])g||(g=[]),g.push(b);else for(let c=0;c<b.length;c++)a(b[c]);else for(let c in b)a(b[c])}(d),f=g)),i=f)&&i.indexOf(b)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let j=h.indexOf(" ");j>0&&(c=h.slice(0,j),h=h.slice(j+1));let k=c?a.createElementNS(c,h):a.createElement(h),l=b[1],m=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){for(let a in m=2,l)if(null!=l[a]){let b=a.indexOf(" ");b>0?k.setAttributeNS(a.slice(0,b),a.slice(b+1),l[a]):"style"==a&&k.style?k.style.cssText=l[a]:k.setAttribute(a,l[a])}}for(let f=m;f<b.length;f++){let g=b[f];if(0===g){if(f<b.length-1||f>m)throw RangeError("Content hole must be the only child of its parent node");return{dom:k,contentDOM:k}}{let{dom:b,contentDOM:f}=_(a,g,c,d);if(k.appendChild(b),f){if(e)throw RangeError("Multiple content holes");e=f}}}return{dom:k,contentDOM:e}}},2203:(a,b,c)=>{"use strict";c.d(b,{CW:()=>h,FR:()=>g,Ry:()=>i,U:()=>j,VH:()=>d,dT:()=>e,m9:()=>k,yo:()=>f});let d="InterruptSignal",e="Stateful",f="Resume",g="YieldNow",h=a=>({_tag:d,cause:a}),i=a=>({_tag:e,onFiber:a}),j=a=>({_tag:f,effect:a}),k=()=>({_tag:g})},3174:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},4820:(a,b,c)=>{"use strict";c.d(b,{F6:()=>u,Ie:()=>m,Ui:()=>s,dh:()=>i,kg:()=>t});var d=c(87893),e=c(25551),f=c(40316),g=c(91238),h=c(64434);let i=Symbol.for("effect/DifferOrPatch");function j(a){return a}let k={...h.wC.prototype,[i]:{_Value:j,_Key:j,_Patch:j}},l=Object.create(Object.assign(Object.create(k),{_tag:"Empty"})),m=()=>l,n=Object.assign(Object.create(k),{_tag:"AndThen"}),o=Object.assign(Object.create(k),{_tag:"SetLeft"}),p=Object.assign(Object.create(k),{_tag:"SetRight"}),q=Object.assign(Object.create(k),{_tag:"UpdateLeft"}),r=Object.assign(Object.create(k),{_tag:"UpdateRight"}),s=a=>{var b,c;switch(a.oldValue._tag){case"Left":switch(a.newValue._tag){case"Left":{let b,c=a.left.diff(a.oldValue.left,a.newValue.left);if(f.aI(c,a.left.empty))return m();return(b=Object.create(q)).patch=c,b}case"Right":let d;return b=a.newValue.right,(d=Object.create(p)).value=b,d}case"Right":switch(a.newValue._tag){case"Left":let e;return c=a.newValue.left,(e=Object.create(o)).value=c,e;case"Right":{let b,c=a.right.diff(a.oldValue.right,a.newValue.right);if(f.aI(c,a.right.empty))return m();return(b=Object.create(r)).patch=c,b}}}},t=g.XY(2,(a,b)=>{let c;return(c=Object.create(n)).first=a,c.second=b,c}),u=g.XY(2,(a,{left:b,oldValue:c,right:f})=>{if("Empty"===a._tag)return c;let g=d.of(a),h=c;for(;d.J_(g);){let a=d.v4(g),c=d.Rx(g);switch(a._tag){case"Empty":g=c;break;case"AndThen":g=d.Hs(a.first)(d.Hs(a.second)(c));break;case"UpdateLeft":"Left"===h._tag&&(h=e.kb(b.patch(a.patch,h.left))),g=c;break;case"UpdateRight":"Right"===h._tag&&(h=e.pG(f.patch(a.patch,h.right))),g=c;break;case"SetLeft":h=e.kb(a.value),g=c;break;case"SetRight":h=e.pG(a.value),g=c}}return h})},5439:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={getPreviouslyRevalidatedTags:function(){return w},getServerUtils:function(){return v},interpolateDynamicPath:function(){return t},normalizeCdnUrl:function(){return s},normalizeDynamicRouteParams:function(){return u}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(13973),g=c(41659),h=c(31797),i=c(71544),j=c(89964),k=c(77165),l=c(66796),m=c(47929),n=c(62018),o=c(23101),p=c(37525),q=c(95491);function r(a,b){for(let c in delete a.nextInternalLocale,a){let d=c!==m.NEXT_QUERY_PARAM_PREFIX&&c.startsWith(m.NEXT_QUERY_PARAM_PREFIX),e=c!==m.NEXT_INTERCEPTION_MARKER_PREFIX&&c.startsWith(m.NEXT_INTERCEPTION_MARKER_PREFIX);(d||e||b.includes(c))&&delete a[c]}}function s(a,b){let c=(0,p.parseReqUrl)(a.url);if(!c)return a.url;delete c.search,r(c.query,b),a.url=(0,q.formatUrl)(c)}function t(a,b,c){if(!c)return a;for(let d of Object.keys(c.groups)){let e,{optional:f,repeat:g}=c.groups[d],h=`[${g?"...":""}${d}]`;f&&(h=`[${h}]`);let i=b[d];((e=Array.isArray(i)?i.map(a=>a&&encodeURIComponent(a)).join("/"):i?encodeURIComponent(i):"")||f)&&(a=a.replaceAll(h,e))}return a}function u(a,b,c,d){let e=(a,b)=>{if(!a)return!1;let c=(0,l.normalizeRscURL)(a);for(let a=0;a<3;a++){if(c===b)return!0;let a=(0,o.decodeQueryPathParameter)(c);if(a===c)break;c=a}return!1},f={};for(let g of Object.keys(b.groups)){let h=a[g];"string"==typeof h?h=(0,l.normalizeRscURL)(h):Array.isArray(h)&&(h=h.map(l.normalizeRscURL));let i=c[g],j=b.groups[g].optional;if((Array.isArray(i)?i.some(a=>Array.isArray(h)?h.some(b=>e(b,a)):e(h,a)):Array.isArray(h)?h.some(a=>e(a,i)):e(h,i))||void 0===h&&!(j&&d))return{params:{},hasValidParams:!1};j&&(!h||Array.isArray(h)&&1===h.length&&("index"===h[0]||h[0]===`[[...${g}]]`)||"index"===h||h===`[[...${g}]]`)&&(h=void 0,delete a[g]),h&&"string"==typeof h&&b.groups[g].repeat&&(h=h.split("/")),h&&(f[g]=h)}return{params:f,hasValidParams:!0}}function v({page:a,i18n:b,basePath:c,rewrites:d,pageIsDynamic:e,trailingSlash:l,caseSensitive:m}){let p,q,w;return e&&(p=(0,h.getNamedRouteRegex)(a,{prefixRouteKeys:!1}),w=(q=(0,i.getRouteMatcher)(p))(a)),{handleRewrites:function(h,i){let n=structuredClone(i),o={},p=n.pathname,r=d=>{let i=(0,g.getPathMatch)(d.source+(l?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!m});if(!n.pathname)return!1;let k=i(n.pathname);if((d.has||d.missing)&&k){let a=(0,j.matchHas)(h,n.query,d.has,d.missing);a?Object.assign(k,a):k=!1}if(k){let{parsedDestination:g,destQuery:h}=(0,j.prepareDestination)({appendParamsToQuery:!0,destination:d.destination,params:k,query:n.query});if(g.protocol)return!0;if(Object.assign(o,h,k),Object.assign(n.query,g.query),delete g.query,Object.assign(n,g),!(p=n.pathname))return!1;if(c&&(p=p.replace(RegExp(`^${c}`),"")||"/"),b){let a=(0,f.normalizeLocalePath)(p,b.locales);p=a.pathname,n.query.nextInternalLocale=a.detectedLocale||k.nextInternalLocale}if(p===a)return!0;if(e&&q){let a=q(p);if(a)return n.query={...n.query,...a},!0}}return!1};for(let a of d.beforeFiles||[])r(a);if(p!==a){let b,c=!1;for(let a of d.afterFiles||[])if(c=r(a))break;if(!c&&!((b=(0,k.removeTrailingSlash)(p||""))===(0,k.removeTrailingSlash)(a)||(null==q?void 0:q(b)))){for(let a of d.fallback||[])if(c=r(a))break}}return{rewriteParams:o,rewrittenParsedUrl:n}},defaultRouteRegex:p,dynamicRouteMatcher:q,defaultRouteMatches:w,normalizeQueryParams:function(a,b){for(let[c,d]of(delete a.nextInternalLocale,Object.entries(a))){let e=(0,n.normalizeNextQueryParam)(c);e&&(delete a[c],b.add(e),void 0!==d&&(a[e]=Array.isArray(d)?d.map(a=>(0,o.decodeQueryPathParameter)(a)):(0,o.decodeQueryPathParameter)(d)))}},getParamsFromRouteMatches:function(a){if(!p)return null;let{groups:b,routeKeys:c}=p,d=(0,i.getRouteMatcher)({re:{exec:a=>{let d=Object.fromEntries(new URLSearchParams(a));for(let[a,b]of Object.entries(d)){let c=(0,n.normalizeNextQueryParam)(a);c&&(d[c]=b,delete d[a])}let e={};for(let a of Object.keys(c)){let f=c[a];if(!f)continue;let g=b[f],h=d[a];if(!g.optional&&!h)return null;e[g.pos]=h}return e}},groups:b})(a);return d||null},normalizeDynamicRouteParams:(a,b)=>p&&w?u(a,p,w,b):{params:{},hasValidParams:!1},normalizeCdnUrl:(a,b)=>s(a,b),interpolateDynamicPath:(a,b)=>t(a,b,p),filterInternalQuery:(a,b)=>r(a,b)}}function w(a,b){return"string"==typeof a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER]&&a[m.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER]===b?a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER].split(","):[]}},5827:a=>{"use strict";var b=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"===c.call(a)},g=function(a){if(!a||"[object Object]"!==c.call(a))return!1;var d,e=b.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&b.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!f)return!1;for(d in a);return void 0===d||b.call(a,d)},h=function(a,b){d&&"__proto__"===b.name?d(a,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):a[b.name]=b.newValue},i=function(a,c){if("__proto__"===c){if(!b.call(a,c))return;else if(e)return e(a,c).value}return a[c]};a.exports=function a(){var b,c,d,e,j,k,l=arguments[0],m=1,n=arguments.length,o=!1;for("boolean"==typeof l&&(o=l,l=arguments[1]||{},m=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});m<n;++m)if(b=arguments[m],null!=b)for(c in b)d=i(l,c),l!==(e=i(b,c))&&(o&&e&&(g(e)||(j=f(e)))?(j?(j=!1,k=d&&f(d)?d:[]):k=d&&g(d)?d:{},h(l,{name:c,newValue:a(o,k,e)})):void 0!==e&&h(l,{name:c,newValue:e}));return l}},6736:(a,b,c)=>{"use strict";c.d(b,{CN:()=>n,BC:()=>s,u2:()=>t,gR:()=>Q,Ou:()=>O,Qq:()=>aj,gv:()=>F,Ie:()=>W,D8:()=>q,Si:()=>af,pb:()=>ac,x1:()=>$,mA:()=>_,i8:()=>I,g9:()=>G,Uk:()=>J,Kl:()=>H,Bq:()=>Z,Ts:()=>p,bt:()=>ah,Yz:()=>ab,d5:()=>z,v4:()=>A,EI:()=>u,iI:()=>v,fj:()=>ak,HV:()=>B,Rm:()=>C,Y6:()=>o,Tj:()=>Y,OM:()=>al,of:()=>X,rT:()=>aa,Hs:()=>r,TS:()=>ad,XK:()=>ae,BE:()=>K,di:()=>L,Ln:()=>E,gI:()=>R,Rx:()=>D,t8:()=>ag,KC:()=>V,$v:()=>y,yU:()=>M,OY:()=>N});var d=c(25551),e=c(40316),f=c(82956),g=c(91238);let h=a=>a.length>0;var i=c(1239),j=c(21393);let k=(0,g.XY)(2,(a,b)=>{let c=0;for(let d of a){let a=b(d,c);if((0,j.Lm)(a)){if(a)return i.zN(d)}else if(i.Ru(a))return a;c++}return i.dv()});var l=c(17412),m=c(84294);let n=a=>Array(a),o=(0,g.XY)(2,(a,b)=>{let c=Math.max(1,Math.floor(a)),d=Array(c);for(let a=0;a<c;a++)d[a]=b(a);return d}),p=a=>Array.isArray(a)?a:Array.from(a),q=a=>Array.isArray(a)?a:[a];i.$r;let r=(0,g.XY)(2,(a,b)=>[b,...a]),s=(0,g.XY)(2,(a,b)=>[...a,b]),t=(0,g.XY)(2,(a,b)=>p(a).concat(p(b))),u=h,v=h,w=(a,b)=>a<0||a>=b.length,x=(0,g.XY)(2,(a,b)=>{let c=Math.floor(b);return w(c,a)?i.dv():i.zN(a[c])}),y=(0,g.XY)(2,(a,b)=>{let c=Math.floor(b);if(w(c,a))throw Error(`Index ${c} out of bounds`);return a[c]}),z=x(0),A=y(0),B=a=>v(a)?i.zN(C(a)):i.dv(),C=a=>a[a.length-1],D=a=>a.slice(1),E=(0,g.XY)(2,(a,b)=>R(a,((a,b)=>{let c=0;for(let d of a){if(!b(d,c))break;c++}return c})(a,b))),F=(0,g.XY)(2,(a,b)=>{let c=p(a);return c.slice(Math.floor(Math.min(Math.max(0,b),c.length)),c.length)}),G=(0,g.XY)(2,(a,b)=>{let c=0;for(let d of a){if(b(d,c))return i.zN(c);c++}return i.dv()}),H=(0,g.XY)(2,(a,b)=>{let c=p(a);for(let a=c.length-1;a>=0;a--)if(b(c[a],a))return i.zN(a);return i.dv()}),I=k,J=(0,g.XY)(2,(a,b)=>{let c=p(a);for(let a=c.length-1;a>=0;a--){let d=c[a],e=b(d,a);if(j.Lm(e)){if(e)return i.zN(d)}else if(i.Ru(e))return e}return i.dv()}),K=a=>Array.from(a).reverse(),L=(0,g.XY)(2,(a,b)=>{let c=Array.from(a);return c.sort(b),c}),M=(0,g.XY)(2,(a,b)=>N(a,b,m.L8)),N=(0,g.XY)(3,(a,b,c)=>{let d=p(a),e=p(b);if(v(d)&&v(e)){let a=[c(A(d),A(e))],b=Math.min(d.length,e.length);for(let f=1;f<b;f++)a[f]=c(d[f],e[f]);return a}return[]}),O=a=>(0,g.XY)(2,(b,c)=>{for(let d of b)if(a(c,d))return!0;return!1}),P=e.XY(),Q=O(P),R=(0,g.XY)(2,(a,b)=>{let c=Array.from(a),d=Math.floor(b);return v(c)?d>=1?S(c,d):[[],c]:[c,[]]}),S=(0,g.XY)(2,(a,b)=>{let c=Math.max(1,Math.floor(b));return c>=a.length?[T(a),[]]:[r(a.slice(1,c),A(a)),a.slice(c)]}),T=a=>a.slice(),U=(0,g.XY)(3,(a,b,c)=>{let d=p(a),e=p(b);return v(d)?v(e)?ai(c)(t(d,e)):d:e}),V=(0,g.XY)(2,(a,b)=>U(a,b,P)),W=()=>[],X=a=>[a],Y=(0,g.XY)(2,(a,b)=>a.map(b)),Z=(0,g.XY)(2,(a,b)=>{if(0===a.length)return[];let c=[];for(let d=0;d<a.length;d++){let e=b(a[d],d);for(let a=0;a<e.length;a++)c.push(e[a])}return c})(g.D_),$=(0,g.XY)(2,(a,b)=>{let c=p(a),d=[];for(let a=0;a<c.length;a++){let e=b(c[a],a);i.Ru(e)&&d.push(e.value)}return d}),_=(0,g.XY)(2,(a,b)=>{let c=0,d=[];for(let e of a){let a=b(e,c);if(i.Ru(a))d.push(a.value);else break;c++}return d}),aa=(0,g.XY)(2,(a,b)=>{let c=[],e=[],f=p(a);for(let a=0;a<f.length;a++){let g=b(f[a],a);d.OC(g)?c.push(g.left):e.push(g.right)}return[c,e]}),ab=$(g.D_),ac=(0,g.XY)(2,(a,b)=>{let c=p(a),d=[];for(let a=0;a<c.length;a++)b(c[a],a)&&d.push(c[a]);return d}),ad=(0,g.XY)(3,(a,b,c)=>p(a).reduce((a,b,d)=>c(a,b,d),b)),ae=(0,g.XY)(3,(a,b,c)=>p(a).reduceRight((a,b,d)=>c(a,b,d),b)),af=(0,g.XY)(2,(a,b)=>a.every(b)),ag=(a,b)=>{let c,d=[],e=a;for(;i.Ru(c=b(e));){let[a,b]=c.value;d.push(a),e=b}return d};l.YO;let ah=f.YO,ai=(0,g.XY)(2,(a,b)=>{let c=p(a);if(v(c)){let a=[A(c)];for(let d of D(c))a.every(a=>!b(d,a))&&a.push(d);return a}return[]}),aj=a=>ai(a,e.XY()),ak=(0,g.XY)(2,(a,b)=>p(a).join(b)),al=(0,g.XY)(3,(a,b,c)=>{let d=0,e=b,f=[];for(let b of a){let a=c(e,b,d);e=a[0],f.push(a[1]),d++}return[e,f]})},6993:(a,b,c)=>{"use strict";c.d(b,{L:()=>d.L2});var d=c(890)},7846:(a,b,c)=>{"use strict";let d,e,f;c.d(b,{Mm:()=>$,Ke:()=>_,mk:()=>ad,n_:()=>ac,p2:()=>aa,B1:()=>ae,dT:()=>ab});var g=c(87893),h=c(74247),i=c(91238),j=c(15615),k=c(43729),l=c(25571),m=c(1239),n=c(73934),o=c(11449),p=c(60639),q=c(25440),r=c(79331);let s=Symbol.for("effect/PubSub/AbsentValue"),t=(a,b)=>c=>{c.has(a)||c.set(a,new Set),c.get(a).add(b)},u=(a,b)=>c=>{if(!c.has(a))return;let d=c.get(a);d.delete(b),0===d.size&&c.delete(a)},v=(0,i.XY)(2,(a,b)=>a.publish(b)),w=a=>{let b="number"==typeof a?{capacity:a}:a;K(b.capacity);let c=b.replay&&b.replay>0?new X(Math.ceil(b.replay)):void 0;return 1===b.capacity?new B(c):(0,l.U5)(b.capacity)===b.capacity?new z(b.capacity,c):new x(b.capacity,c)};class x{constructor(a,b){this.publisherIndex=0,this.subscriberCount=0,this.subscribersIndex=0,this.capacity=a,this.replayBuffer=b,this.array=Array.from({length:a}),this.subscribers=Array.from({length:a})}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherIndex===this.subscribersIndex}isFull(){return this.publisherIndex===this.subscribersIndex+this.capacity}size(){return this.publisherIndex-this.subscribersIndex}publish(a){if(this.isFull())return!1;if(0!==this.subscriberCount){let b=this.publisherIndex%this.capacity;this.array[b]=a,this.subscribers[b]=this.subscriberCount,this.publisherIndex+=1}return this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a),c=b.length,d=this.publisherIndex-this.subscribersIndex,e=Math.min(c,this.capacity-d);if(0===e)return b;let f=0,h=this.publisherIndex+e;for(;this.publisherIndex!==h;){let a=g.$v(b,f++),c=this.publisherIndex%this.capacity;this.array[c]=a,this.subscribers[c]=this.subscriberCount,this.publisherIndex+=1,this.replayBuffer&&this.replayBuffer.offer(a)}return g.gv(b,f)}slide(){if(this.subscribersIndex!==this.publisherIndex){let a=this.subscribersIndex%this.capacity;this.array[a]=s,this.subscribers[a]=0,this.subscribersIndex+=1}this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new y(this,this.publisherIndex,!1)}}class y{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||this.self.publisherIndex===this.subscriberIndex||this.self.publisherIndex===this.self.subscribersIndex}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;if(this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex),this.subscriberIndex!==this.self.publisherIndex){let a=this.subscriberIndex%this.self.capacity,b=this.self.array[a];return this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1,b}return a}pollUpTo(a){if(this.unsubscribed)return g.Ie();this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);let b=Math.min(a,this.self.publisherIndex-this.subscriberIndex);if(b<=0)return g.Ie();let c=[],d=this.subscriberIndex+b;for(;this.subscriberIndex!==d;){let a=this.subscriberIndex%this.self.capacity,b=this.self.array[a];this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),c.push(b),this.subscriberIndex+=1}return g.Ts(c)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);this.subscriberIndex!==this.self.publisherIndex;){let a=this.subscriberIndex%this.self.capacity;this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1}}}class z{constructor(a,b){this.publisherIndex=0,this.subscriberCount=0,this.subscribersIndex=0,this.capacity=a,this.replayBuffer=b,this.array=Array.from({length:a}),this.mask=a-1,this.subscribers=Array.from({length:a})}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherIndex===this.subscribersIndex}isFull(){return this.publisherIndex===this.subscribersIndex+this.capacity}size(){return this.publisherIndex-this.subscribersIndex}publish(a){if(this.isFull())return!1;if(0!==this.subscriberCount){let b=this.publisherIndex&this.mask;this.array[b]=a,this.subscribers[b]=this.subscriberCount,this.publisherIndex+=1}return this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a),c=b.length,d=this.publisherIndex-this.subscribersIndex,e=Math.min(c,this.capacity-d);if(0===e)return b;let f=0,h=this.publisherIndex+e;for(;this.publisherIndex!==h;){let a=g.$v(b,f++),c=this.publisherIndex&this.mask;this.array[c]=a,this.subscribers[c]=this.subscriberCount,this.publisherIndex+=1,this.replayBuffer&&this.replayBuffer.offer(a)}return g.gv(b,f)}slide(){if(this.subscribersIndex!==this.publisherIndex){let a=this.subscribersIndex&this.mask;this.array[a]=s,this.subscribers[a]=0,this.subscribersIndex+=1}this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new A(this,this.publisherIndex,!1)}}class A{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||this.self.publisherIndex===this.subscriberIndex||this.self.publisherIndex===this.self.subscribersIndex}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;if(this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex),this.subscriberIndex!==this.self.publisherIndex){let a=this.subscriberIndex&this.self.mask,b=this.self.array[a];return this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1,b}return a}pollUpTo(a){if(this.unsubscribed)return g.Ie();this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);let b=Math.min(a,this.self.publisherIndex-this.subscriberIndex);if(b<=0)return g.Ie();let c=[],d=this.subscriberIndex+b;for(;this.subscriberIndex!==d;){let a=this.subscriberIndex&this.self.mask,b=this.self.array[a];this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),c.push(b),this.subscriberIndex+=1}return g.Ts(c)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex=Math.max(this.subscriberIndex,this.self.subscribersIndex);this.subscriberIndex!==this.self.publisherIndex;){let a=this.subscriberIndex&this.self.mask;this.self.subscribers[a]-=1,0===this.self.subscribers[a]&&(this.self.array[a]=s,this.self.subscribersIndex+=1),this.subscriberIndex+=1}}}class B{constructor(a){this.publisherIndex=0,this.subscriberCount=0,this.subscribers=0,this.value=s,this.capacity=1,this.replayBuffer=a}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}pipe(){return(0,n.tT)(this,arguments)}isEmpty(){return 0===this.subscribers}isFull(){return!this.isEmpty()}size(){return+!this.isEmpty()}publish(a){return!this.isFull()&&(0!==this.subscriberCount&&(this.value=a,this.subscribers=this.subscriberCount,this.publisherIndex+=1),this.replayBuffer&&this.replayBuffer.offer(a),!0)}publishAll(a){if(0===this.subscriberCount)return this.replayBuffer&&this.replayBuffer.offerAll(a),g.Ie();let b=g.Ts(a);return g.Im(b)?b:this.publish(g.z1(b))?g.gv(b,1):b}slide(){this.isFull()&&(this.subscribers=0,this.value=s),this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.subscriberCount+=1,new C(this,this.publisherIndex,!1)}}class C{constructor(a,b,c){this.self=a,this.subscriberIndex=b,this.unsubscribed=c}isEmpty(){return this.unsubscribed||0===this.self.subscribers||this.subscriberIndex===this.self.publisherIndex}size(){return+!this.isEmpty()}poll(a){if(this.isEmpty())return a;let b=this.self.value;return this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s),this.subscriberIndex+=1,b}pollUpTo(a){if(this.isEmpty()||a<1)return g.Ie();let b=this.self.value;return this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s),this.subscriberIndex+=1,g.of(b)}unsubscribe(){this.unsubscribed||(this.unsubscribed=!0,this.self.subscriberCount-=1,this.subscriberIndex!==this.self.publisherIndex&&(this.self.subscribers-=1,0===this.self.subscribers&&(this.self.value=s)))}}class D{constructor(a){this.publisherHead={value:s,subscribers:0,next:null},this.publisherTail=this.publisherHead,this.publisherIndex=0,this.subscribersIndex=0,this.capacity=Number.MAX_SAFE_INTEGER,this.replayBuffer=a}replayWindow(){return this.replayBuffer?new Y(this.replayBuffer):Z}isEmpty(){return this.publisherHead===this.publisherTail}isFull(){return!1}size(){return this.publisherIndex-this.subscribersIndex}publish(a){let b=this.publisherTail.subscribers;return 0!==b&&(this.publisherTail.next={value:a,subscribers:b,next:null},this.publisherTail=this.publisherTail.next,this.publisherIndex+=1),this.replayBuffer&&this.replayBuffer.offer(a),!0}publishAll(a){if(0!==this.publisherTail.subscribers)for(let b of a)this.publish(b);else this.replayBuffer&&this.replayBuffer.offerAll(a);return g.Ie()}slide(){this.publisherHead!==this.publisherTail&&(this.publisherHead=this.publisherHead.next,this.publisherHead.value=s,this.subscribersIndex+=1),this.replayBuffer&&this.replayBuffer.slide()}subscribe(){return this.publisherTail.subscribers+=1,new E(this,this.publisherTail,this.publisherIndex,!1)}}class E{constructor(a,b,c,d){this.self=a,this.subscriberHead=b,this.subscriberIndex=c,this.unsubscribed=d}isEmpty(){if(this.unsubscribed)return!0;let a=!0,b=!0;for(;b;)this.subscriberHead===this.self.publisherTail?b=!1:this.subscriberHead.next.value!==s?(a=!1,b=!1):(this.subscriberHead=this.subscriberHead.next,this.subscriberIndex+=1);return a}size(){return this.unsubscribed?0:this.self.publisherIndex-Math.max(this.subscriberIndex,this.self.subscribersIndex)}poll(a){if(this.unsubscribed)return a;let b=!0,c=a;for(;b;)if(this.subscriberHead===this.self.publisherTail)b=!1;else{let a=this.subscriberHead.next.value;a!==s&&(c=a,this.subscriberHead.subscribers-=1,0===this.subscriberHead.subscribers&&(this.self.publisherHead=this.self.publisherHead.next,this.self.publisherHead.value=s,this.self.subscribersIndex+=1),b=!1),this.subscriberHead=this.subscriberHead.next,this.subscriberIndex+=1}return c}pollUpTo(a){let b=[],c=0;for(;c!==a;){let d=this.poll(s);d===s?c=a:(b.push(d),c+=1)}return g.Ts(b)}unsubscribe(){if(!this.unsubscribed)for(this.unsubscribed=!0,this.self.publisherTail.subscribers-=1;this.subscriberHead!==this.self.publisherTail;)this.subscriberHead.next.value!==s&&(this.subscriberHead.subscribers-=1,0===this.subscriberHead.subscribers&&(this.self.publisherHead=this.self.publisherHead.next,this.self.publisherHead.value=s,this.self.subscribersIndex+=1)),this.subscriberHead=this.subscriberHead.next}}class F extends h.Xs{static{d=r.aK}constructor(a,b,c,e,f,g,h,i){super(),this[d]=r.Es,this.pubsub=a,this.subscribers=b,this.subscription=c,this.pollers=e,this.shutdownHook=f,this.shutdownFlag=g,this.strategy=h,this.replayWindow=i}commit(){return this.take}pipe(){return(0,n.tT)(this,arguments)}capacity(){return this.pubsub.capacity}isActive(){return!k.Jt(this.shutdownFlag)}get size(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.PyW(this.subscription.size()+this.replayWindow.remaining))}unsafeSize(){return k.Jt(this.shutdownFlag)?m.dv():m.zN(this.subscription.size()+this.replayWindow.remaining)}get isFull(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.PyW(this.subscription.size()===this.capacity()))}get isEmpty(){return o.TjK(this.size,a=>0===a)}get shutdown(){return o.rfi(o.$we(a=>(k.hZ(this.shutdownFlag,!0),(0,i.Fs)(q.L7(N(this.pollers),b=>o.bdM(b,a.id()),!1),o.aNH(o.OH5(()=>{this.subscribers.delete(this.subscription),this.subscription.unsubscribe(),this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers)})),o.iK2(o.syF(this.shutdownHook,void 0)),o.NLW))))}get isShutdown(){return o.OH5(()=>k.Jt(this.shutdownFlag))}get awaitShutdown(){return o.gn0(this.shutdownHook)}get take(){return o.$we(a=>{if(k.Jt(this.shutdownFlag))return o.GaK;if(this.replayWindow.remaining>0){let a=this.replayWindow.take();return o.PyW(a)}let b=j.Im(this.pollers)?this.subscription.poll(j.r_):j.r_;if(b!==j.r_)return this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),o.PyW(b);{let b=o.MIt(a.id());return(0,i.Fs)(o.DYE(()=>((0,i.Fs)(this.pollers,j.x(b)),(0,i.Fs)(this.subscribers,t(this.subscription,this.pollers)),this.strategy.unsafeCompletePollers(this.pubsub,this.subscribers,this.subscription,this.pollers),k.Jt(this.shutdownFlag)?o.GaK:o.gn0(b))),o.nAr(()=>o.OH5(()=>R(this.pollers,b))))}})}get takeAll(){return o.DYE(()=>{if(k.Jt(this.shutdownFlag))return o.GaK;let a=j.Im(this.pollers)?O(this.subscription):g.Ie();return(this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),this.replayWindow.remaining>0)?o.PyW(g.u2(this.replayWindow.takeAll(),a)):o.PyW(a)})}takeUpTo(a){return o.DYE(()=>{let b;if(k.Jt(this.shutdownFlag))return o.GaK;if(this.replayWindow.remaining>=a){let b=this.replayWindow.takeN(a);return o.PyW(b)}this.replayWindow.remaining>0&&(b=this.replayWindow.takeAll(),a-=b.length);let c=j.Im(this.pollers)?P(this.subscription,a):g.Ie();return this.strategy.unsafeOnPubSubEmptySpace(this.pubsub,this.subscribers),b?o.PyW(g.u2(b,c)):o.PyW(c)})}takeBetween(a,b){return o.DYE(()=>G(this,a,b,g.Ie()))}}let G=(a,b,c,d)=>c<b?o.PyW(d):(0,i.Fs)(a.takeUpTo(c),o.qIB(e=>{let f=b-e.length;return 1===f?(0,i.Fs)(a.take,o.TjK(a=>(0,i.Fs)(d,g.u2(e),g.BC(a)))):f>1?(0,i.Fs)(a.take,o.qIB(b=>G(a,f-1,c-e.length-1,(0,i.Fs)(d,g.u2(e),g.BC(b))))):o.PyW((0,i.Fs)(d,g.u2(e)))}));class H{static{e=r.e6,f=r.aK}constructor(a,b,c,d,g,h){this[e]=r.GR,this[f]=r.Es,this.pubsub=a,this.subscribers=b,this.scope=c,this.shutdownHook=d,this.shutdownFlag=g,this.strategy=h}capacity(){return this.pubsub.capacity}get size(){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:o.OH5(()=>this.pubsub.size()))}unsafeSize(){return k.Jt(this.shutdownFlag)?m.dv():m.zN(this.pubsub.size())}get isFull(){return o.TjK(this.size,a=>a===this.capacity())}get isEmpty(){return o.TjK(this.size,a=>0===a)}get awaitShutdown(){return o.gn0(this.shutdownHook)}get isShutdown(){return o.OH5(()=>k.Jt(this.shutdownFlag))}get shutdown(){return o.rfi(o.$we(a=>((0,i.Fs)(this.shutdownFlag,k.hZ(!0)),(0,i.Fs)(this.scope.close(o._sz(a.id())),o.aNH(this.strategy.shutdown),o.iK2(o.syF(this.shutdownHook,void 0)),o.NLW))))}publish(a){return o.DYE(()=>k.Jt(this.shutdownFlag)?o.GaK:this.pubsub.publish(a)?(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),o.PyW(!0)):this.strategy.handleSurplus(this.pubsub,this.subscribers,g.of(a),this.shutdownFlag))}isActive(){return!k.Jt(this.shutdownFlag)}unsafeOffer(a){return!k.Jt(this.shutdownFlag)&&!!this.pubsub.publish(a)&&(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),!0)}publishAll(a){return o.DYE(()=>{if(k.Jt(this.shutdownFlag))return o.GaK;let b=Q(this.pubsub,a);return(this.strategy.unsafeCompleteSubscribers(this.pubsub,this.subscribers),g.Im(b))?o.PyW(!0):this.strategy.handleSurplus(this.pubsub,this.subscribers,b,this.shutdownFlag)})}get subscribe(){let a,b,c,d=o.Mim(q.Q7([this.scope.fork(p.il),(a=this.pubsub,b=this.subscribers,c=this.strategy,o.TjK(o.WW4(),d=>{let e,f,g,h,i,l;return e=a,f=b,g=a.subscribe(),h=j.dT(),i=d,l=k.L8(!1),new F(e,f,g,h,i,l,c,e.replayWindow())}))]),a=>a[0].addFinalizer(()=>a[1].shutdown));return o.TjK(q.Q5(d,(a,b)=>a[0].close(b)),a=>a[1])}offer(a){return this.publish(a)}offerAll(a){return this.publishAll(a)}pipe(){return(0,n.tT)(this,arguments)}}let I=(a,b)=>o.qIB(q.RW(),c=>o.TjK(o.WW4(),d=>J(a,new Map,c,d,k.L8(!1),b))),J=(a,b,c,d,e,f)=>new H(a,b,c,d,e,f),K=a=>{if(a<=0)throw new o.uwm(`Cannot construct PubSub with capacity of ${a}`)},L=(a,b)=>{o.q_p(a,o.PyW(b))},M=(a,b)=>(0,i.Fs)(a,j.iI(b)),N=a=>(0,i.Fs)(a,j.KK(1/0)),O=a=>a.pollUpTo(1/0),P=(a,b)=>a.pollUpTo(b),Q=(a,b)=>a.publishAll(b),R=(a,b)=>{M(a,(0,i.Fs)(N(a),g.pb(a=>a!==b)))};class S{get shutdown(){return o.qIB(o.ABT,a=>o.qIB(o.OH5(()=>N(this.publishers)),b=>q.Kd(b,([b,c,d])=>d?(0,i.Fs)(o.bdM(c,a),o.NLW):o.rIH,!1,!1)))}handleSurplus(a,b,c,d){return o.$we(e=>{let f=o.MIt(e.id());return(0,i.Fs)(o.DYE(()=>(this.unsafeOffer(c,f),this.unsafeOnPubSubEmptySpace(a,b),this.unsafeCompleteSubscribers(a,b),k.Jt(d)?o.GaK:o.gn0(f))),o.nAr(()=>o.OH5(()=>this.unsafeRemove(f))))})}unsafeOnPubSubEmptySpace(a,b){let c=!0;for(;c&&!a.isFull();){let d=(0,i.Fs)(this.publishers,j.wt(j.r_));if(d===j.r_)c=!1;else{let c=a.publish(d[0]);c&&d[2]?L(d[1],!0):c||M(this.publishers,(0,i.Fs)(N(this.publishers),g.Hs(d))),this.unsafeCompleteSubscribers(a,b)}}}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}unsafeOffer(a,b){let c=a[Symbol.iterator](),d=c.next();if(!d.done)for(;;){let a=d.value;if((d=c.next()).done){(0,i.Fs)(this.publishers,j.x([a,b,!0]));break}(0,i.Fs)(this.publishers,j.x([a,b,!1]))}}unsafeRemove(a){M(this.publishers,(0,i.Fs)(N(this.publishers),g.pb(([b,c])=>c!==a)))}constructor(){this.publishers=j.dT()}}class T{get shutdown(){return o.rIH}handleSurplus(a,b,c,d){return o.PyW(!1)}unsafeOnPubSubEmptySpace(a,b){}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}}class U{get shutdown(){return o.rIH}handleSurplus(a,b,c,d){return o.OH5(()=>(this.unsafeSlidingPublish(a,c),this.unsafeCompleteSubscribers(a,b),!0))}unsafeOnPubSubEmptySpace(a,b){}unsafeCompletePollers(a,b,c,d){return V(this,a,b,c,d)}unsafeCompleteSubscribers(a,b){return W(this,a,b)}unsafeSlidingPublish(a,b){let c=b[Symbol.iterator](),d=c.next();if(!d.done&&a.capacity>0){let b=d.value,e=!0;for(;e;){a.slide();let f=a.publish(b);f&&(d=c.next())&&!d.done?b=d.value:f&&(e=!1)}}}}let V=(a,b,c,d,e)=>{let f=!0;for(;f&&!d.isEmpty();){let h=(0,i.Fs)(e,j.wt(j.r_));if(h===j.r_)(0,i.Fs)(c,u(d,e)),j.Im(e)?f=!1:(0,i.Fs)(c,t(d,e));else{let f=d.poll(j.r_);f===j.r_?M(e,(0,i.Fs)(N(e),g.Hs(h))):(L(h,f),a.unsafeOnPubSubEmptySpace(b,c))}}},W=(a,b,c)=>{for(let[d,e]of c)for(let f of e)a.unsafeCompletePollers(b,c,d,f)};class X{constructor(a){this.head={value:s,next:null},this.tail=this.head,this.size=0,this.index=0,this.capacity=a}slide(){this.index++}offer(a){this.tail.value=a,this.tail.next={value:s,next:null},this.tail=this.tail.next,this.size===this.capacity?this.head=this.head.next:this.size+=1}offerAll(a){for(let b of a)this.offer(b)}}class Y{constructor(a){this.buffer=a,this.index=a.index,this.remaining=a.size,this.head=a.head}fastForward(){for(;this.index<this.buffer.index;)this.head=this.head.next,this.index++}take(){if(0===this.remaining)return;this.index<this.buffer.index&&this.fastForward(),this.remaining--;let a=this.head.value;return this.head=this.head.next,a}takeN(a){if(0===this.remaining)return g.Ie();this.index<this.buffer.index&&this.fastForward();let b=Math.min(a,this.remaining),c=Array(b);for(let a=0;a<b;a++){let b=this.head.value;this.head=this.head.next,c[a]=b}return this.remaining-=b,g.Iv(c)}takeAll(){return this.takeN(this.remaining)}}let Z={remaining:0,take:()=>void 0,takeN:()=>g.Ie(),takeAll:()=>g.Ie()},$=a=>o.DYE(()=>I(w(a),new S)),_=a=>o.DYE(()=>I(w(a),new T)),aa=a=>o.DYE(()=>I(w(a),new U)),ab=a=>o.DYE(()=>{let b;return I((b=a,new D(b?.replay?new X(b.replay):void 0)),new T)}),ac=a=>a.shutdown,ad=v,ae=a=>a.subscribe},7904:(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}function e(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}c.r(b),c.d(b,{_:()=>e})},8057:(a,b,c)=>{"use strict";c.d(b,{BW:()=>g,Cz:()=>h,Hi:()=>m,WT:()=>k,ku:()=>l,sn:()=>o,yp:()=>q}),c(91238);var d=c(89876),e=c(21041),f=c(21393);class g{constructor(a){this.called=!1,this.self=a}next(a){return this.called?{value:a,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(a){return{value:a,done:!0}}throw(a){throw a}[Symbol.iterator](){return new g(this.self)}}class h{constructor(a,b,c,d){return(0,f.wD)(b)&&(0,f.wD)(a)?(b=0xffffffff*Math.random()>>>0,a=0):(0,f.wD)(b)&&(b=a,a=0),(0,f.wD)(d)&&(0,f.wD)(c)?(d=this._state?this._state[3]:0xf767814f,c=this._state?this._state[2]:0x14057b7e):(0,f.wD)(d)&&(d=c,c=0),this._state=new Int32Array([0,0,c>>>0,(1|(d||0))>>>0]),this._next(),i(this._state,this._state[0],this._state[1],a>>>0,b>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(a){this._state[0]=a[0],this._state[1]=a[1],this._state[2]=a[2],this._state[3]=1|a[3]}integer(a){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%a}number(){return(0x8000000*((0x3ffffff&this._next())*1)+(0x7ffffff&this._next())*1)/0x20000000000000}_next(){var a,b,c;let d,e,f,g,h=this._state[0]>>>0,j=this._state[1]>>>0;a=this._state,b=h,d=((c=j)>>>16)*32557>>>0,e=(65535&c)*19605>>>0,f=(65535&c)*32557>>>0,g=(c>>>16)*19605+((e>>>16)+(d>>>16))>>>0,(f=f+(e=e<<16>>>0)>>>0)>>>0<e>>>0&&(g=g+1>>>0),(f=f+(d=d<<16>>>0)>>>0)>>>0<d>>>0&&(g=g+1>>>0),g=(g=g+Math.imul(c,0x5851f42d)>>>0)+Math.imul(b,0x4c957f2d)>>>0,a[0]=g,a[1]=f,i(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let k=h>>>18,l=(j>>>18|h<<14)>>>0;k=(k^h)>>>0;let m=((l=(l^j)>>>0)>>>27|k<<5)>>>0,n=h>>>27;return(m>>>n|m<<((-n>>>0&31)>>>0))>>>0}}function i(a,b,c,d,e){let f=b+d>>>0,g=c+e>>>0;g>>>0<c>>>0&&(f=f+1|0),a[0]=f,a[1]=g}let j=Symbol.for("effect/Utils/YieldWrap");class k{#a;constructor(a){this.#a=a}[j](){return this.#a}}function l(a){if("object"==typeof a&&null!==a&&j in a)return a[j]();throw Error((0,e.k)("yieldWrapGet"))}let m=(0,d.V)("effect/Utils/isStructuralRegion",()=>({enabled:!1,tester:void 0})),n=a=>a(),o=n(()=>Error().stack)?.includes("effect_internal_function")===!0?n:a=>a(),p=(function*(){}).constructor,q=a=>(0,f.Gv)(a)&&a.constructor===p},8082:(a,b,c)=>{"use strict";function d(a){return a&&"object"==typeof a?"position"in a||"type"in a?f(a.position):"start"in a||"end"in a?f(a):"line"in a||"column"in a?e(a):"":""}function e(a){return g(a&&a.line)+":"+g(a&&a.column)}function f(a){return e(a&&a.start)+"-"+e(a&&a.end)}function g(a){return a&&"number"==typeof a?a:1}c.d(b,{L:()=>d})},9731:(a,b,c)=>{"use strict";c.d(b,{H:()=>d.Hj});var d=c(48197)},10259:(a,b,c)=>{"use strict";c.d(b,{$t:()=>x,LN:()=>g,U3:()=>k,hs:()=>B,i5:()=>o,k_:()=>y,nh:()=>m,yn:()=>h});var d=c(1370),e=c(87748);let f=Object.create(null);class g{constructor(a,b,c){this.$anchor=a,this.$head=b,this.ranges=c||[new h(a.min(b),a.max(b))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let a=this.ranges;for(let b=0;b<a.length;b++)if(a[b].$from.pos!=a[b].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(a,b=d.Ji.empty){let c=b.content.lastChild,e=null;for(let a=0;a<b.openEnd;a++)e=c,c=c.lastChild;let f=a.steps.length,g=this.ranges;for(let h=0;h<g.length;h++){let{$from:i,$to:j}=g[h],k=a.mapping.slice(f);a.replaceRange(k.map(i.pos),k.map(j.pos),h?d.Ji.empty:b),0==h&&r(a,f,(c?c.isInline:e&&e.isTextblock)?-1:1)}}replaceWith(a,b){let c=a.steps.length,d=this.ranges;for(let e=0;e<d.length;e++){let{$from:f,$to:g}=d[e],h=a.mapping.slice(c),i=h.map(f.pos),j=h.map(g.pos);e?a.deleteRange(i,j):(a.replaceRangeWith(i,j,b),r(a,c,b.isInline?-1:1))}}static findFrom(a,b,c=!1){let d=a.parent.inlineContent?new k(a):q(a.node(0),a.parent,a.pos,a.index(),b,c);if(d)return d;for(let d=a.depth-1;d>=0;d--){let e=b<0?q(a.node(0),a.node(d),a.before(d+1),a.index(d),b,c):q(a.node(0),a.node(d),a.after(d+1),a.index(d)+1,b,c);if(e)return e}return null}static near(a,b=1){return this.findFrom(a,b)||this.findFrom(a,-b)||new o(a.node(0))}static atStart(a){return q(a,a,0,0,1)||new o(a)}static atEnd(a){return q(a,a,a.content.size,a.childCount,-1)||new o(a)}static fromJSON(a,b){if(!b||!b.type)throw RangeError("Invalid input for Selection.fromJSON");let c=f[b.type];if(!c)throw RangeError(`No selection type ${b.type} defined`);return c.fromJSON(a,b)}static jsonID(a,b){if(a in f)throw RangeError("Duplicate use of selection JSON ID "+a);return f[a]=b,b.prototype.jsonID=a,b}getBookmark(){return k.between(this.$anchor,this.$head).getBookmark()}}g.prototype.visible=!0;class h{constructor(a,b){this.$from=a,this.$to=b}}let i=!1;function j(a){i||a.parent.inlineContent||(i=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+a.parent.type.name+")"))}class k extends g{constructor(a,b=a){j(a),j(b),super(a,b)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(a,b){let c=a.resolve(b.map(this.head));if(!c.parent.inlineContent)return g.near(c);let d=a.resolve(b.map(this.anchor));return new k(d.parent.inlineContent?d:c,c)}replace(a,b=d.Ji.empty){if(super.replace(a,b),b==d.Ji.empty){let b=this.$from.marksAcross(this.$to);b&&a.ensureMarks(b)}}eq(a){return a instanceof k&&a.anchor==this.anchor&&a.head==this.head}getBookmark(){return new l(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(a,b){if("number"!=typeof b.anchor||"number"!=typeof b.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new k(a.resolve(b.anchor),a.resolve(b.head))}static create(a,b,c=b){let d=a.resolve(b);return new this(d,c==b?d:a.resolve(c))}static between(a,b,c){let d=a.pos-b.pos;if((!c||d)&&(c=d>=0?1:-1),!b.parent.inlineContent){let a=g.findFrom(b,c,!0)||g.findFrom(b,-c,!0);if(!a)return g.near(b,c);b=a.$head}return a.parent.inlineContent||(0==d?a=b:(a=(g.findFrom(a,-c,!0)||g.findFrom(a,c,!0)).$anchor).pos<b.pos!=d<0&&(a=b)),new k(a,b)}}g.jsonID("text",k);class l{constructor(a,b){this.anchor=a,this.head=b}map(a){return new l(a.map(this.anchor),a.map(this.head))}resolve(a){return k.between(a.resolve(this.anchor),a.resolve(this.head))}}class m extends g{constructor(a){let b=a.nodeAfter,c=a.node(0).resolve(a.pos+b.nodeSize);super(a,c),this.node=b}map(a,b){let{deleted:c,pos:d}=b.mapResult(this.anchor),e=a.resolve(d);return c?g.near(e):new m(e)}content(){return new d.Ji(d.FK.from(this.node),0,0)}eq(a){return a instanceof m&&a.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new n(this.anchor)}static fromJSON(a,b){if("number"!=typeof b.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new m(a.resolve(b.anchor))}static create(a,b){return new m(a.resolve(b))}static isSelectable(a){return!a.isText&&!1!==a.type.spec.selectable}}m.prototype.visible=!1,g.jsonID("node",m);class n{constructor(a){this.anchor=a}map(a){let{deleted:b,pos:c}=a.mapResult(this.anchor);return b?new l(c,c):new n(c)}resolve(a){let b=a.resolve(this.anchor),c=b.nodeAfter;return c&&m.isSelectable(c)?new m(b):g.near(b)}}class o extends g{constructor(a){super(a.resolve(0),a.resolve(a.content.size))}replace(a,b=d.Ji.empty){if(b==d.Ji.empty){a.delete(0,a.doc.content.size);let b=g.atStart(a.doc);b.eq(a.selection)||a.setSelection(b)}else super.replace(a,b)}toJSON(){return{type:"all"}}static fromJSON(a){return new o(a)}map(a){return new o(a)}eq(a){return a instanceof o}getBookmark(){return p}}g.jsonID("all",o);let p={map(){return this},resolve:a=>new o(a)};function q(a,b,c,d,e,f=!1){if(b.inlineContent)return k.create(a,c);for(let g=d-(e>0?0:1);e>0?g<b.childCount:g>=0;g+=e){let d=b.child(g);if(d.isAtom){if(!f&&m.isSelectable(d))return m.create(a,c-(e<0?d.nodeSize:0))}else{let b=q(a,d,c+e,e<0?d.childCount:0,e,f);if(b)return b}c+=d.nodeSize*e}return null}function r(a,b,c){let d,f=a.steps.length-1;if(f<b)return;let h=a.steps[f];(h instanceof e.Ln||h instanceof e.Wg)&&(a.mapping.maps[f].forEach((a,b,c,e)=>{null==d&&(d=e)}),a.setSelection(g.near(a.doc.resolve(d),c)))}class s extends e.dL{constructor(a){super(a.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=a.selection,this.storedMarks=a.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(a){if(a.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=a,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(a){return this.storedMarks=a,this.updated|=2,this}ensureMarks(a){return d.CU.sameSet(this.storedMarks||this.selection.$from.marks(),a)||this.setStoredMarks(a),this}addStoredMark(a){return this.ensureMarks(a.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(a){return this.ensureMarks(a.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(a,b){super.addStep(a,b),this.updated=-3&this.updated,this.storedMarks=null}setTime(a){return this.time=a,this}replaceSelection(a){return this.selection.replace(this,a),this}replaceSelectionWith(a,b=!0){let c=this.selection;return b&&(a=a.mark(this.storedMarks||(c.empty?c.$from.marks():c.$from.marksAcross(c.$to)||d.CU.none))),c.replaceWith(this,a),this}deleteSelection(){return this.selection.replace(this),this}insertText(a,b,c){let d=this.doc.type.schema;if(null==b)return a?this.replaceSelectionWith(d.text(a),!0):this.deleteSelection();{if(null==c&&(c=b),!a)return this.deleteRange(b,c);let e=this.storedMarks;if(!e){let a=this.doc.resolve(b);e=c==b?a.marks():a.marksAcross(this.doc.resolve(c))}return this.replaceRangeWith(b,c,d.text(a,e)),this.selection.empty||this.selection.to!=b+a.length||this.setSelection(g.near(this.selection.$to)),this}}setMeta(a,b){return this.meta["string"==typeof a?a:a.key]=b,this}getMeta(a){return this.meta["string"==typeof a?a:a.key]}get isGeneric(){for(let a in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function t(a,b){return b&&a?a.bind(b):a}class u{constructor(a,b,c){this.name=a,this.init=t(b.init,c),this.apply=t(b.apply,c)}}let v=[new u("doc",{init:a=>a.doc||a.schema.topNodeType.createAndFill(),apply:a=>a.doc}),new u("selection",{init:(a,b)=>a.selection||g.atStart(b.doc),apply:a=>a.selection}),new u("storedMarks",{init:a=>a.storedMarks||null,apply:(a,b,c,d)=>d.selection.$cursor?a.storedMarks:null}),new u("scrollToSelection",{init:()=>0,apply:(a,b)=>a.scrolledIntoView?b+1:b})];class w{constructor(a,b){this.schema=a,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=v.slice(),b&&b.forEach(a=>{if(this.pluginsByKey[a.key])throw RangeError("Adding different instances of a keyed plugin ("+a.key+")");this.plugins.push(a),this.pluginsByKey[a.key]=a,a.spec.state&&this.fields.push(new u(a.key,a.spec.state,a))})}}class x{constructor(a){this.config=a}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(a){return this.applyTransaction(a).state}filterTransaction(a,b=-1){for(let c=0;c<this.config.plugins.length;c++)if(c!=b){let b=this.config.plugins[c];if(b.spec.filterTransaction&&!b.spec.filterTransaction.call(b,a,this))return!1}return!0}applyTransaction(a){if(!this.filterTransaction(a))return{state:this,transactions:[]};let b=[a],c=this.applyInner(a),d=null;for(;;){let e=!1;for(let f=0;f<this.config.plugins.length;f++){let g=this.config.plugins[f];if(g.spec.appendTransaction){let h=d?d[f].n:0,i=d?d[f].state:this,j=h<b.length&&g.spec.appendTransaction.call(g,h?b.slice(h):b,i,c);if(j&&c.filterTransaction(j,f)){if(j.setMeta("appendedTransaction",a),!d){d=[];for(let a=0;a<this.config.plugins.length;a++)d.push(a<f?{state:c,n:b.length}:{state:this,n:0})}b.push(j),c=c.applyInner(j),e=!0}d&&(d[f]={state:c,n:b.length})}}if(!e)return{state:c,transactions:b}}}applyInner(a){if(!a.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let b=new x(this.config),c=this.config.fields;for(let d=0;d<c.length;d++){let e=c[d];b[e.name]=e.apply(a,this[e.name],this,b)}return b}get tr(){return new s(this)}static create(a){let b=new w(a.doc?a.doc.type.schema:a.schema,a.plugins),c=new x(b);for(let d=0;d<b.fields.length;d++)c[b.fields[d].name]=b.fields[d].init(a,c);return c}reconfigure(a){let b=new w(this.schema,a.plugins),c=b.fields,d=new x(b);for(let b=0;b<c.length;b++){let e=c[b].name;d[e]=this.hasOwnProperty(e)?this[e]:c[b].init(a,d)}return d}toJSON(a){let b={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(b.storedMarks=this.storedMarks.map(a=>a.toJSON())),a&&"object"==typeof a)for(let c in a){if("doc"==c||"selection"==c)throw RangeError("The JSON fields `doc` and `selection` are reserved");let d=a[c],e=d.spec.state;e&&e.toJSON&&(b[c]=e.toJSON.call(d,this[d.key]))}return b}static fromJSON(a,b,c){if(!b)throw RangeError("Invalid input for EditorState.fromJSON");if(!a.schema)throw RangeError("Required config field 'schema' missing");let e=new w(a.schema,a.plugins),f=new x(e);return e.fields.forEach(e=>{if("doc"==e.name)f.doc=d.bP.fromJSON(a.schema,b.doc);else if("selection"==e.name)f.selection=g.fromJSON(f.doc,b.selection);else if("storedMarks"==e.name)b.storedMarks&&(f.storedMarks=b.storedMarks.map(a.schema.markFromJSON));else{if(c)for(let d in c){let g=c[d],h=g.spec.state;if(g.key==e.name&&h&&h.fromJSON&&Object.prototype.hasOwnProperty.call(b,d)){f[e.name]=h.fromJSON.call(g,a,b[d],f);return}}f[e.name]=e.init(a,f)}}),f}}class y{constructor(a){this.spec=a,this.props={},a.props&&function a(b,c,d){for(let e in b){let f=b[e];f instanceof Function?f=f.bind(c):"handleDOMEvents"==e&&(f=a(f,c,{})),d[e]=f}return d}(a.props,this,this.props),this.key=a.key?a.key.key:A("plugin")}getState(a){return a[this.key]}}let z=Object.create(null);function A(a){return a in z?a+"$"+ ++z[a]:(z[a]=0,a+"$")}class B{constructor(a="key"){this.key=A(a)}get(a){return a.config.pluginsByKey[this.key]}getState(a){return a[this.key]}}},10316:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},10684:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c={PARAM_SEPARATOR:function(){return e},hasAdjacentParameterIssues:function(){return f},normalizeAdjacentParameters:function(){return g},normalizeTokensForRegexp:function(){return h},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return j}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});let e="_NEXTSEP_";function f(a){return"string"==typeof a&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(a)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(a))}function g(a){let b=a;return(b=b.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${e}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${e}`)}function h(a){return a.map(a=>"object"==typeof a&&null!==a&&"modifier"in a&&("*"===a.modifier||"+"===a.modifier)&&"prefix"in a&&"suffix"in a&&""===a.prefix&&""===a.suffix?{...a,prefix:"/"}:a)}function i(a){return a.replace(RegExp(`\\)${e}`,"g"),")")}function j(a){let b={};for(let[c,d]of Object.entries(a))"string"==typeof d?b[c]=d.replace(RegExp(`^${e}`),""):Array.isArray(d)?b[c]=d.map(a=>"string"==typeof a?a.replace(RegExp(`^${e}`),""):a):b[c]=d;return b}},10841:(a,b,c)=>{"use strict";c.d(b,{jb:()=>g});var d=c(50300);let e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,f=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,g=({legacyTitle:a=!1,tagName:b="div",classNames:c=""}={})=>g=>{(0,d.YR)(g,"blockquote",(d,g,i)=>{let j="",k="",l=!0,m=d.children.map(b=>{if(l&&"paragraph"===b.type){let c=b.children[0],d="text"===c.type?c.value:"",g=a?f:e,h=d.match(g);if(h&&(l=!1,j=h[1].toLocaleLowerCase(),k=a&&h[2]||j.toLocaleUpperCase(),d.includes("\n")&&(b.children[0]={type:"text",value:d.replace(g,"").replace(/^\n+/,"")}),!d.includes("\n"))){let a=[];b.children.forEach((b,c)=>{0==c||(1!=c||"break"!==b.type)&&a.push(b)}),b.children=[...a]}}return b});j&&(d.data={hName:b,hProperties:{className:["markdown-alert",`markdown-alert-${j}`,...c.split(" ").filter(a=>a.length)],dir:"auto"}},m.unshift({type:"paragraph",children:[{type:"emphasis",data:{hName:"svg",hProperties:{className:["octicon"],viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:h[j]??""}},children:[]}]},{type:"text",value:k.replace(/^\//,"")}],data:{hProperties:{className:"markdown-alert-title",dir:"auto"}}})),d.children=[...m]})},h={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"}},11449:(a,b,c)=>{"use strict";c.d(b,{$1O:()=>dg,$1l:()=>dC,$QS:()=>aW,$n1:()=>H,$sd:()=>c9,$we:()=>N,ABT:()=>ak,APi:()=>b7,AR8:()=>dn,ATB:()=>ai,AlI:()=>ch,Ao:()=>dj,AsN:()=>di,BCV:()=>dv,Bqz:()=>ap,BzD:()=>b4,CFK:()=>au,Cau:()=>cV,CdZ:()=>b0,CoE:()=>cG,CrW:()=>c8,D$$:()=>ar,D$Q:()=>bV,D9k:()=>a_,DYE:()=>aO,DxM:()=>bf,EYO:()=>bZ,EbJ:()=>bw,Ecz:()=>bt,EkE:()=>cZ,FIO:()=>dl,FRe:()=>bT,F_Q:()=>ab,FcF:()=>aU,FgE:()=>aa,Fi1:()=>bN,G2Y:()=>bY,GSS:()=>ac,GaK:()=>ax,GyC:()=>bB,HTn:()=>bl,Hox:()=>cJ,HyR:()=>dF,INx:()=>bA,IPo:()=>ay,IeY:()=>R,Inz:()=>az,JGl:()=>bp,JUF:()=>cN,JkU:()=>a$,KAb:()=>bP,Kbz:()=>ad,Kpo:()=>br,KyM:()=>a0,LGt:()=>b1,MIt:()=>dc,MP9:()=>b2,MaT:()=>a4,Mim:()=>aQ,MrQ:()=>ci,NG:()=>cR,NLW:()=>Q,NS5:()=>af,NWQ:()=>aI,OH5:()=>aP,OLv:()=>bb,OM4:()=>bi,OTT:()=>cl,OYO:()=>a9,PDv:()=>cs,PMw:()=>ao,PNH:()=>bu,PpN:()=>dB,PuW:()=>bg,PyW:()=>aN,Q9S:()=>cL,QID:()=>bI,QPU:()=>bO,QRo:()=>cr,QUl:()=>T,QYw:()=>b3,QZV:()=>av,QcH:()=>bq,QgK:()=>aJ,R8K:()=>cg,R_7:()=>cd,ReC:()=>cc,RkE:()=>_,Rkt:()=>cO,S5A:()=>aF,SLb:()=>b_,S_H:()=>dG,T12:()=>cS,TBR:()=>c5,THF:()=>cv,TjK:()=>aC,TsL:()=>bz,TyW:()=>aZ,U8_:()=>bo,UFt:()=>G,UUz:()=>aq,UcN:()=>aD,Uio:()=>b9,Uis:()=>cC,Umi:()=>bQ,V2G:()=>cM,VE1:()=>cF,VEq:()=>bh,VbV:()=>cB,VuY:()=>cI,VwM:()=>cp,WW4:()=>dd,Wc6:()=>ce,Wtn:()=>c0,XOb:()=>bm,XWm:()=>X,Z$R:()=>cb,Z5i:()=>F,ZI2:()=>dh,ZM1:()=>dq,ZmZ:()=>ba,_$:()=>bj,_5X:()=>Z,_OA:()=>dz,_Oy:()=>Y,_Pd:()=>bJ,_fI:()=>ds,_ig:()=>aB,_sz:()=>cX,_tB:()=>bc,_z2:()=>dE,aNH:()=>a8,as:()=>P,b1P:()=>b$,bIC:()=>U,bRS:()=>bX,bVS:()=>dI,bdM:()=>dr,bzD:()=>bK,cay:()=>a2,cbD:()=>cP,cfM:()=>aG,cpb:()=>c4,dDX:()=>c1,dWJ:()=>cH,d_m:()=>dA,eMl:()=>aA,eec:()=>cU,fJG:()=>ag,g1G:()=>al,g1R:()=>cu,gOk:()=>ah,gPK:()=>ae,gn0:()=>df,h0c:()=>cE,h9N:()=>W,hgn:()=>an,iK2:()=>aX,iLB:()=>b8,iMI:()=>aY,igQ:()=>cx,il9:()=>c6,jDN:()=>bU,jGc:()=>O,jo7:()=>cj,jxG:()=>dk,kJg:()=>cq,kS9:()=>aK,kWD:()=>b6,khu:()=>as,krO:()=>bS,kyh:()=>dD,lN4:()=>dp,lOA:()=>bv,m$m:()=>aM,m9E:()=>a5,mHP:()=>a1,m_i:()=>cT,n9O:()=>cK,nAV:()=>cn,nAr:()=>aH,nDN:()=>a3,nlF:()=>bM,nv8:()=>cy,o7R:()=>c_,owM:()=>cm,p2e:()=>cw,pLZ:()=>c7,pVV:()=>aj,pX6:()=>bW,piH:()=>a7,q1t:()=>bH,qIB:()=>am,q_p:()=>dw,qoC:()=>bx,rIH:()=>aV,rTm:()=>aL,rfi:()=>aT,s$T:()=>b5,s2:()=>ck,sAm:()=>cD,sDf:()=>de,sH6:()=>bL,sK9:()=>aR,syF:()=>du,t04:()=>S,t9n:()=>cW,tDT:()=>aw,tNQ:()=>by,tvg:()=>at,uPR:()=>bs,uPo:()=>V,un1:()=>dm,uwm:()=>ct,v9O:()=>cY,vDJ:()=>ca,vwO:()=>dt,w6U:()=>bR,whK:()=>bd,wnO:()=>da,woH:()=>bG,x5l:()=>c3,x6Q:()=>cz,xUJ:()=>cA,xah:()=>be,xm_:()=>aE,xt1:()=>co,xtk:()=>c2,yPL:()=>I,yU6:()=>a6,ygP:()=>cQ,yw5:()=>M,zPu:()=>c$,zg6:()=>bk});var d=c(6736),e=c(87893),f=c(28031),g=c(21586),h=c(25551),i=c(40316),j=c(69943),k=c(91238),l=c(89876),m=c(56606),n=c(69481),o=c(89904),p=c(37214),q=c(43729),r=c(1239),s=c(73934),t=c(21393),u=c(15707),v=c(8057),w=c(90329),x=c(20245),y=c(84906),z=c(42615),A=c(21041),B=c(55633),C=c(79555),D=c(83709),E=c(47846);let F=(a,b)=>{let c=new J("Blocked");return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c},G=a=>{let b=new J("RunBlocked");return b.effect_instruction_i0=a,b},H=Symbol.for("effect/Effect");class I{constructor(a,b){this._op=C.Ni,this.patch=a,this.op=b}}class J{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a}[i.HR](a){return this===a}[m.HR](){return m.PO(this,m.yT(this))}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,effect_instruction_i0:(0,o.U2)(this.effect_instruction_i0),effect_instruction_i1:(0,o.U2)(this.effect_instruction_i1),effect_instruction_i2:(0,o.U2)(this.effect_instruction_i2)}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}class K{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a,this._tag=a}[i.HR](a){return cE(a)&&"Failure"===a._op&&i.aI(this.effect_instruction_i0,a.effect_instruction_i0)}[m.HR](){return(0,k.Fs)(m.Yj(this._tag),m.kg(m.tW(this.effect_instruction_i0)),m.PO(this))}get cause(){return this.effect_instruction_i0}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}class L{constructor(a){this.effect_instruction_i0=void 0,this.effect_instruction_i1=void 0,this.effect_instruction_i2=void 0,this.trace=void 0,this[H]=z.Hs,this._op=a,this._tag=a}[i.HR](a){return cE(a)&&"Success"===a._op&&i.aI(this.effect_instruction_i0,a.effect_instruction_i0)}[m.HR](){return(0,k.Fs)(m.Yj(this._tag),m.kg(m.tW(this.effect_instruction_i0)),m.PO(this))}get value(){return this.effect_instruction_i0}pipe(){return(0,s.tT)(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:(0,o.U2)(this.value)}}toString(){return(0,o.GP)(this.toJSON())}[o.FX](){return this.toJSON()}[Symbol.iterator](){return new E.B(new v.WT(this))}}let M=a=>(0,t.i5)(a,H),N=a=>{let b=new J(C.mm);return b.effect_instruction_i0=a,b},O=(0,k.XY)(3,(a,b,c)=>aU(d=>am(a,a=>am(af(aO(()=>d(b(a)))),b=>aO(()=>c(a,b)).pipe(as({onFailure:a=>{switch(b._tag){case C.N9:return ai(w.il(b.effect_instruction_i0,a));case C._l:return ai(a)}},onSuccess:()=>b})))))),P=(0,k.XY)(2,(a,b)=>am(a,()=>aN(b))),Q=a=>P(a,void 0),R=function(){let a=new J(C.kK);switch(arguments.length){case 2:a.effect_instruction_i0=arguments[0],a.commit=arguments[1];break;case 3:a.effect_instruction_i0=arguments[0],a.effect_instruction_i1=arguments[1],a.commit=arguments[2];break;case 4:a.effect_instruction_i0=arguments[0],a.effect_instruction_i1=arguments[1],a.effect_instruction_i2=arguments[2],a.commit=arguments[3];break;default:throw Error((0,A.k)("you're not supposed to end up here"))}return a},S=(a,b=j.dv)=>{let c,d=new J(C.ZO);return d.effect_instruction_i0=b=>{c=a(b)},d.effect_instruction_i1=b,aH(d,a=>M(c)?c:aV)},T=(a,b=j.dv)=>aO(()=>S(a,b)),U=(a,b=j.dv)=>R(a,function(){let a,c,d,e;function f(b){a?a(b):void 0===c&&(c=b)}let g=new J(C.ZO);return g.effect_instruction_i0=b=>{a=b,c&&b(c)},g.effect_instruction_i1=b,1!==this.effect_instruction_i0.length?(e=new AbortController,d=(0,v.sn)(()=>this.effect_instruction_i0(f,e.signal))):d=(0,v.sn)(()=>this.effect_instruction_i0(f)),d||e?aH(g,a=>(e&&e.abort(),d??aV)):g}),V=(0,k.XY)(2,(a,b)=>{let c=new J(C.JJ);return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c}),W=(0,k.XY)(2,(a,b)=>at(a,{onFailure:b,onSuccess:aN})),X=(0,k.XY)(3,(a,b,c)=>V(a,a=>{let d=w.vE(a);switch(d._tag){case"Left":return b(d.left)?c(d.left):ai(a);case"Right":return ai(d.right)}})),Y=(0,k.XY)(2,(a,b)=>V(a,a=>{let c=w.vE(a);switch(c._tag){case"Left":return(0,k.Fs)(b(c.left),r.WL(()=>ai(a)));case"Right":return ai(c.right)}})),Z=a=>N((b,c)=>a(D.YW(c.runtimeFlags))),$=Symbol.for("effect/OriginalAnnotation"),_=a=>(0,t.i5)(a,$)?a[$]:a,aa=(a,b)=>r.Ru(b)?new Proxy(a,{has:(a,b)=>b===w.Hn||b===$||b in a,get:(c,d)=>d===w.Hn?b.value:d===$?a:c[d]}):a,ab=a=>!(0,t.Gv)(a)||w.Hn in a?ai(w.F_(a)):N(b=>ai(w.F_(aa(a,dG(b))))),ac=a=>aj(()=>w.F_(new ch(a))),ad=a=>am(aP(a),ab),ae=a=>at(a,{onFailure:a=>aN(h.kb(a)),onSuccess:a=>aN(h.pG(a))}),af=a=>ar(a,{onFailure:cP,onSuccess:c2}),ag=a=>!(0,t.Gv)(a)||w.Hn in a?ai(w.fJ(a)):N(b=>ai(w.fJ(aa(a,dG(b))))),ah=a=>am(aP(a),ag),ai=a=>{let b=new K(C.N9);return b.effect_instruction_i0=a,b},aj=a=>am(aP(a),ai),ak=N(a=>aN(a.id())),al=a=>N(b=>a(b.id())),am=(0,k.XY)(2,(a,b)=>{let c=new J(C.Gj);return c.effect_instruction_i0=a,c.effect_instruction_i1=b,c}),an=(0,k.XY)(2,(a,b)=>am(a,a=>{let c="function"==typeof b?b(a):b;return M(c)?c:(0,t.$X)(c)?S(a=>{c.then(b=>a(aN(b)),b=>a(ag(new cC(b,"An unknown error occurred in Effect.andThen"))))}):aN(c)})),ao=a=>{let b=new J("OnStep");return b.effect_instruction_i0=a,b},ap=a=>am(a,k.D_),aq=a=>at(a,{onFailure:aN,onSuccess:ag}),ar=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>aN(b.onFailure(a)),onSuccess:a=>aN(b.onSuccess(a))})),as=(0,k.XY)(2,(a,b)=>{let c=new J(C.du);return c.effect_instruction_i0=a,c.effect_instruction_i1=b.onFailure,c.effect_instruction_i2=b.onSuccess,c}),at=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>{if(w.RU(a).length>0)return ai(w.rA(a));let c=w.e9(a);return c.length>0?b.onFailure(e.z1(c)):ai(a)},onSuccess:b.onSuccess})),au=(0,k.XY)(2,(a,b)=>aO(()=>{let c=d.Ts(a),e=d.CN(c.length),f=0;return P(aY({while:()=>f<c.length,body:()=>b(c[f],f),step:a=>{e[f++]=a}}),e)})),av=(0,k.XY)(2,(a,b)=>aO(()=>{let c=d.Ts(a),e=0;return aY({while:()=>e<c.length,body:()=>b(c[e],e),step:()=>{e++}})})),aw=(0,k.XY)(a=>"boolean"==typeof a[0]||M(a[0]),(a,b)=>M(a)?am(a,a=>a?b.onTrue():b.onFalse()):a?b.onTrue():b.onFalse()),ax=am(ak,a=>ay(a)),ay=a=>ai(w.G(a)),az=a=>{let b=new J(C.NM);return b.effect_instruction_i0=u.sS(D._n),b.effect_instruction_i1=()=>a,b},aA=a=>R(a,function(){let a=new J(C.NM);return a.effect_instruction_i0=u.sS(D._n),a.effect_instruction_i1=a=>D.YW(a)?(0,v.sn)(()=>this.effect_instruction_i0(az)):(0,v.sn)(()=>this.effect_instruction_i0(aT)),a}),aB=(0,k.XY)(2,(a,b)=>aU(c=>am(af(c(a)),a=>di(b,a)))),aC=(0,k.XY)(2,(a,b)=>am(a,a=>aP(()=>b(a)))),aD=(0,k.XY)(2,(a,b)=>at(a,{onFailure:a=>ah(()=>b.onFailure(a)),onSuccess:a=>aP(()=>b.onSuccess(a))})),aE=(0,k.XY)(2,(a,b)=>as(a,{onFailure:a=>{let c=w.vE(a);switch(c._tag){case"Left":return ah(()=>b(c.left));case"Right":return ai(c.right)}},onSuccess:aN})),aF=(0,k.XY)(2,(a,b)=>aG(a,a=>cG(a)?aV:b(a.effect_instruction_i0))),aG=(0,k.XY)(2,(a,b)=>aU(c=>as(c(a),{onFailure:a=>{let c=cP(a);return as(b(c),{onFailure:b=>cP(w.il(a,b)),onSuccess:()=>c})},onSuccess:a=>{let c=c2(a);return a8(b(c),c)}}))),aH=(0,k.XY)(2,(a,b)=>aG(a,c0({onFailure:a=>w.t9(a)?Q(b(w.ml(a))):aV,onSuccess:()=>aV}))),aI=(0,k.XY)(2,(a,b)=>aS(a,b,aN)),aJ=a=>aK(a,k.D_),aK=(0,k.XY)(2,(a,b)=>at(a,{onFailure:a=>ab(b(a)),onSuccess:aN})),aL=d.rT,aM=N((a,b)=>aN(b.runtimeFlags)),aN=a=>{let b=new L(C._l);return b.effect_instruction_i0=a,b},aO=a=>{let b=new J(C.kK);return b.commit=a,b},aP=a=>{let b=new J(C.EF);return b.effect_instruction_i0=a,b},aQ=(0,k.XY)(a=>3===a.length||2===a.length&&!((0,t.Gv)(a[1])&&"onlyEffect"in a[1]),(a,b)=>am(a,a=>{let c="function"==typeof b?b(a):b;return M(c)?P(c,a):(0,t.$X)(c)?S(b=>{c.then(c=>b(aN(a)),a=>b(ag(new cC(a,"An unknown error occurred in Effect.tap"))))}):aN(a)})),aR=a=>N(b=>{let c=b.getFiberRef(b0),d=(0,k.Fs)(c,r.WL(()=>b.scope()));return a(bG(b0,r.zN(d)))}),aS=(0,k.XY)(3,(a,b,c)=>as(a,{onFailure:a=>w.RU(a).length>0?ai(r.n4(w.$7(a))):b(),onSuccess:c})),aT=a=>{let b=new J(C.NM);return b.effect_instruction_i0=u.b8(D._n),b.effect_instruction_i1=()=>a,b},aU=a=>R(a,function(){let a=new J(C.NM);return a.effect_instruction_i0=u.b8(D._n),a.effect_instruction_i1=a=>D.YW(a)?(0,v.sn)(()=>this.effect_instruction_i0(az)):(0,v.sn)(()=>this.effect_instruction_i0(aT)),a}),aV=aN(void 0),aW=a=>{let b=new J(C.NM);return b.effect_instruction_i0=a,b.effect_instruction_i1=void 0,b},aX=(0,k.XY)(2,(a,b)=>am(b,b=>b?(0,k.Fs)(a,aC(r.zN)):aN(r.dv()))),aY=a=>{let b=new J(C.mM);return b.effect_instruction_i0=a.while,b.effect_instruction_i1=a.body,b.effect_instruction_i2=a.step,b},aZ=a=>aO(()=>{let b=new J(C.xS);return b.effect_instruction_i0=a(),b}),a$=function(){let a=1==arguments.length?arguments[0]:arguments[1].bind(arguments[0]);return aZ(()=>a(k.Fs))},a_=(a,...b)=>Object.defineProperty(0===b.length?function(...b){return aZ(()=>a.apply(this,b))}:function(...c){let d=aZ(()=>a.apply(this,c));for(let a of b)d=a(d,...c);return d},"length",{value:a.length,configurable:!0}),a0=(0,k.XY)(2,(a,b)=>bG(a,bV,b)),a1=(0,k.XY)(2,(a,b)=>bG(a,bW,b)),a2=(0,k.XY)(2,(a,b)=>{let c=new J(C.NM);return c.effect_instruction_i0=b,c.effect_instruction_i1=()=>a,c}),a3=(0,k.XY)(2,(a,b)=>bG(a,b2,b)),a4=(0,k.XY)(2,(a,b)=>bG(a,b3,b)),a5=a=>{let b=new J(C.u4);return void 0!==a?.priority?bT(b,a.priority):b},a6=(0,k.XY)(2,(a,b)=>am(a,a=>aC(b,b=>[a,b]))),a7=(0,k.XY)(2,(a,b)=>am(a,a=>P(b,a))),a8=(0,k.XY)(2,(a,b)=>am(a,()=>b)),a9=(0,k.XY)(3,(a,b,c)=>am(a,a=>aC(b,b=>c(a,b)))),ba=T(()=>{let a=setInterval(()=>{},0x80000000-1);return aP(()=>clearInterval(a))}),bb=a=>am(ak,b=>(0,k.Fs)(a,bc(b))),bc=(0,k.XY)(2,(a,b)=>am(a.interruptAsFork(b),()=>a.await)),bd={_tag:"All",syslog:0,label:"ALL",ordinal:Number.MIN_SAFE_INTEGER,pipe(){return(0,s.tT)(this,arguments)}},be={_tag:"Fatal",syslog:2,label:"FATAL",ordinal:5e4,pipe(){return(0,s.tT)(this,arguments)}},bf={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return(0,s.tT)(this,arguments)}},bg={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return(0,s.tT)(this,arguments)}},bh={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return(0,s.tT)(this,arguments)}},bi={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return(0,s.tT)(this,arguments)}},bj={_tag:"Trace",syslog:7,label:"TRACE",ordinal:0,pipe(){return(0,s.tT)(this,arguments)}},bk={_tag:"None",syslog:7,label:"OFF",ordinal:Number.MAX_SAFE_INTEGER,pipe(){return(0,s.tT)(this,arguments)}},bl=[bd,bj,bi,bh,bg,bf,be,bk],bm=Symbol.for("effect/FiberRef"),bn={_A:a=>a},bo=a=>N(b=>c2(b.getFiberRef(a))),bp=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,b])),bq=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,b(a)])),br=(0,k.XY)(2,(a,b)=>bw(a,a=>[a,r.WL(b(a),()=>a)])),bs=(0,k.XY)(2,(a,b)=>am(bo(a),b)),bt=(0,k.XY)(2,(a,b)=>bw(a,()=>[void 0,b])),bu=a=>N(b=>(b.unsafeDeleteFiberRef(a),aV)),bv=a=>bt(a,a.initial),bw=(0,k.XY)(2,(a,b)=>N(c=>{let[d,e]=b(c.getFiberRef(a));return c.setFiberRef(a,e),aN(d)})),bx=(a,b,c)=>bw(a,a=>r.WL(c(a),()=>[b,a])),by=(0,k.XY)(2,(a,b)=>bw(a,a=>[void 0,b(a)])),bz=(0,k.XY)(2,(a,b)=>bw(a,a=>[void 0,r.WL(b(a),()=>a)])),bA=(0,k.XY)(2,(a,b)=>bw(a,a=>{let c=b(a);return[c,c]})),bB=(0,k.XY)(2,(a,b)=>bw(a,a=>{let c=r.WL(b(a),()=>a);return[c,c]})),bC=Symbol.for("effect/RequestResolver"),bD={_A:a=>a,_R:a=>a};class bE{constructor(a,b){this[bC]=bD,this.runAll=a,this.target=b}[m.HR](){return m.PO(this,this.target?m.tW(this.target):m.yT(this))}[i.HR](a){return this.target?bF(a)&&i.aI(this.target,a.target):this===a}identified(...a){return new bE(this.runAll,e.Ts(a))}pipe(){return(0,s.tT)(this,arguments)}}let bF=a=>(0,t.i5)(a,bC),bG=(0,k.XY)(3,(a,b,c)=>O(a7(bo(b),bt(b,c)),()=>a,a=>bt(b,a))),bH=(0,k.XY)(3,(a,b,c)=>bs(b,d=>bG(a,b,c(d)))),bI=(a,b)=>bL(a,{differ:y.yo(),fork:b?.fork??k.D_,join:b?.join}),bJ=a=>{let b=y.zI();return bL(a,{differ:b,fork:b.empty})},bK=a=>{let b=y.cA();return bL(a,{differ:b,fork:b.empty})},bL=(a,b)=>({...z.Em,[bm]:bn,initial:a,commit(){return bo(this)},diff:(a,c)=>b.differ.diff(a,c),combine:(a,c)=>b.differ.combine(a,c),patch:a=>c=>b.differ.patch(a,c),fork:b.fork,join:b.join??((a,b)=>b)}),bM=a=>bL(a,{differ:D.Tx,fork:D.Tx.empty}),bN=(0,l.V)(Symbol.for("effect/FiberRef/currentContext"),()=>bK(f.Ie())),bO=(0,l.V)(Symbol.for("effect/FiberRef/currentSchedulingPriority"),()=>bI(0)),bP=(0,l.V)(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),()=>bI(2048)),bQ=(0,l.V)(Symbol.for("effect/FiberRef/currentLogAnnotation"),()=>bI(n.Ie())),bR=(0,l.V)(Symbol.for("effect/FiberRef/currentLogLevel"),()=>bI(bh)),bS=(0,l.V)(Symbol.for("effect/FiberRef/currentLogSpan"),()=>bI(p.Ie())),bT=(0,k.XY)(2,(a,b)=>bG(a,bO,b)),bU=(0,k.XY)(2,(a,b)=>bG(a,bP,b)),bV=(0,l.V)(Symbol.for("effect/FiberRef/currentConcurrency"),()=>bI("unbounded")),bW=(0,l.V)(Symbol.for("effect/FiberRef/currentRequestBatching"),()=>bI(!0)),bX=(0,l.V)(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),()=>bI(r.zN(bi))),bY=(0,l.V)(Symbol.for("effect/FiberRef/versionMismatchErrorLogLevel"),()=>bI(r.zN(bg))),bZ=(0,k.XY)(2,(a,b)=>bG(a,bX,b)),b$=(0,l.V)(Symbol.for("effect/FiberRef/currentMetricLabels"),()=>{var a;let b;return a=d.Ie(),bL(a,{differ:b=y.QZ(y.yo()),fork:b.empty})}),b_=bo(b$),b0=(0,l.V)(Symbol.for("effect/FiberRef/currentForkScopeOverride"),()=>bI(r.dv(),{fork:()=>r.dv(),join:(a,b)=>a})),b1=(0,l.V)(Symbol.for("effect/FiberRef/currentInterruptedCause"),()=>bI(w.Ie,{fork:()=>w.Ie,join:(a,b)=>a})),b2=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerEnabled"),()=>bI(!0)),b3=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerTiming"),()=>bI(!0)),b4=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerSpanAnnotations"),()=>bI(n.Ie())),b5=(0,l.V)(Symbol.for("effect/FiberRef/currentTracerSpanLinks"),()=>bI(e.Ie())),b6=Symbol.for("effect/Scope"),b7=Symbol.for("effect/CloseableScope"),b8=(a,b)=>a.addFinalizer(()=>Q(b)),b9=(a,b)=>a.addFinalizer(b),ca=(a,b)=>a.close(b),cb=(a,b)=>a.fork(b),cc=a=>cd(k.D_)(a),cd=(0,k.XY)(2,(a,b)=>{let c=(0,k.Fs)(a,w.od,r.Tj(b));switch(c._tag){case"None":return(0,k.Fs)(w.RU(a),e.d5,r.YW({onNone:()=>{let b=d.Ts(w.ml(a)).flatMap(a=>d.Ts(j.dK(a)).map(a=>`#${a}`));return new ck(b?`Interrupted by fibers: ${b.join(", ")}`:void 0)},onSome:k.D_}));case"Some":return c.value}}),ce=function(){class a extends globalThis.Error{commit(){return ag(this)}toJSON(){let a={...this};return this.message&&(a.message=this.message),this.cause&&(a.cause=this.cause),a}[o.FX](){return this.toString!==globalThis.Error.prototype.toString?this.stack?`${this.toString()}
2
2
  ${this.stack.split("\n").slice(1).join("\n")}`:this.toString():"Bun"in globalThis?w.j9(w.fJ(this),{renderErrorCause:!0}):this}}return Object.assign(a.prototype,z.Pe),a}(),cf=(a,b)=>{class c extends ce{constructor(...a){super(...a),this._tag=b}}return Object.assign(c.prototype,a),c.prototype.name=b,c},cg=Symbol.for("effect/Cause/errors/RuntimeException"),ch=cf({[cg]:cg},"RuntimeException"),ci=a=>(0,t.i5)(a,cg),cj=Symbol.for("effect/Cause/errors/InterruptedException"),ck=cf({[cj]:cj},"InterruptedException"),cl=a=>(0,t.i5)(a,cj),cm=Symbol.for("effect/Cause/errors/IllegalArgument"),cn=cf({[cm]:cm},"IllegalArgumentException"),co=a=>(0,t.i5)(a,cm),cp=Symbol.for("effect/Cause/errors/NoSuchElement"),cq=cf({[cp]:cp},"NoSuchElementException"),cr=a=>(0,t.i5)(a,cp),cs=Symbol.for("effect/Cause/errors/InvalidPubSubCapacityException"),ct=cf({[cs]:cs},"InvalidPubSubCapacityException"),cu=Symbol.for("effect/Cause/errors/ExceededCapacityException"),cv=cf({[cu]:cu},"ExceededCapacityException"),cw=a=>(0,t.i5)(a,cu),cx=Symbol.for("effect/Cause/errors/Timeout"),cy=cf({[cx]:cx},"TimeoutException"),cz=a=>new cy(`Operation timed out after '${g.GP(a)}'`),cA=a=>(0,t.i5)(a,cx),cB=Symbol.for("effect/Cause/errors/UnknownException"),cC=function(){class a extends ce{constructor(a,b){super(b??"An unknown error occurred",{cause:a}),this._tag="UnknownException",this.error=a}}return Object.assign(a.prototype,{[cB]:cB,name:"UnknownException"}),a}(),cD=a=>(0,t.i5)(a,cB),cE=a=>M(a)&&"_tag"in a&&("Success"===a._tag||"Failure"===a._tag),cF=a=>"Failure"===a._tag,cG=a=>"Success"===a._tag,cH=a=>{switch(a._tag){case C.N9:return w.fT(a.effect_instruction_i0);case C._l:return!1}},cI=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return cP(a.effect_instruction_i0);case C._l:return c2(b)}}),cJ=a=>cI(a,void 0),cK=a=>{switch(a._tag){case C.N9:return r.zN(a.effect_instruction_i0);case C._l:return r.dv()}},cL=(a,b)=>db(a,b?.parallel?w._7:w.il),cM=a=>cP(w.F_(a)),cN=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return!1;case C._l:return b(a.effect_instruction_i0)}}),cO=a=>cP(w.fJ(a)),cP=a=>{let b=new K(C.N9);return b.effect_instruction_i0=a,b},cQ=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return cP(a.effect_instruction_i0);case C._l:return b(a.effect_instruction_i0)}}),cR=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return aN(cP(a.effect_instruction_i0));case C._l:return b(a.effect_instruction_i0)}}),cS=a=>(0,k.Fs)(a,cQ(k.D_)),cT=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return aN(cP(a.effect_instruction_i0));case C._l:return af(b(a.effect_instruction_i0))}}),cU=a=>{switch(a._tag){case"Left":return cO(a.left);case"Right":return c2(a.right)}},cV=a=>{switch(a._tag){case"None":return cO(void 0);case"Some":return c2(a.value)}},cW=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return b(a.effect_instruction_i0);case C._l:return a.effect_instruction_i0}}),cX=a=>cP(w.G(a)),cY=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return cP(a.effect_instruction_i0);case C._l:return c2(b(a.effect_instruction_i0))}}),cZ=(0,k.XY)(2,(a,{onFailure:b,onSuccess:c})=>{switch(a._tag){case C.N9:return cP((0,k.Fs)(a.effect_instruction_i0,w.Tj(b)));case C._l:return c2(c(a.effect_instruction_i0))}}),c$=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return cP((0,k.Fs)(a.effect_instruction_i0,w.Tj(b)));case C._l:return c2(a.effect_instruction_i0)}}),c_=(0,k.XY)(2,(a,b)=>{switch(a._tag){case C.N9:return cP(b(a.effect_instruction_i0));case C._l:return c2(a.effect_instruction_i0)}}),c0=(0,k.XY)(2,(a,{onFailure:b,onSuccess:c})=>{switch(a._tag){case C.N9:return b(a.effect_instruction_i0);case C._l:return c(a.effect_instruction_i0)}}),c1=(0,k.XY)(2,(a,{onFailure:b,onSuccess:c})=>{switch(a._tag){case C.N9:return b(a.effect_instruction_i0);case C._l:return c(a.effect_instruction_i0)}}),c2=a=>{let b=new L(C._l);return b.effect_instruction_i0=a,b},c3=c2(void 0),c4=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>[a,b],onFailure:w.il})),c5=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>a,onFailure:w.il})),c6=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>b,onFailure:w.il})),c7=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>[a,b],onFailure:w._7})),c8=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>a,onFailure:w._7})),c9=(0,k.XY)(2,(a,b)=>da(a,b,{onSuccess:(a,b)=>b,onFailure:w._7})),da=(0,k.XY)(3,(a,b,{onFailure:c,onSuccess:d})=>{switch(a._tag){case C.N9:switch(b._tag){case C._l:return cP(a.effect_instruction_i0);case C.N9:return cP(c(a.effect_instruction_i0,b.effect_instruction_i0))}case C._l:switch(b._tag){case C._l:return c2(d(a.effect_instruction_i0,b.effect_instruction_i0));case C.N9:return cP(b.effect_instruction_i0)}}}),db=(a,b)=>{let c=e.Ts(a);return e.J_(c)?(0,k.Fs)(e.Rx(c),d.TS((0,k.Fs)(e.v4(c),cY(e.of)),(a,c)=>(0,k.Fs)(a,da(c,{onSuccess:(a,b)=>(0,k.Fs)(a,e.Hs(b)),onFailure:b}))),cY(e.BE),cY(a=>e.h3(a)),r.zN):r.dv()},dc=a=>({...z.Em,[x.FX]:x.do,state:q.L8(x.Ub([])),commit(){return df(this)},blockingOn:a}),dd=()=>am(ak,a=>de(a)),de=a=>aP(()=>dc(a)),df=a=>T(b=>{let c=q.Jt(a.state);switch(c._tag){case B.R:return b(c.effect);case B.i:return c.joiners.push(b),dx(a,b)}},a.blockingOn),dg=(0,k.XY)(2,(a,b)=>aB(b,a)),dh=(0,k.XY)(2,(a,b)=>aP(()=>{let c=q.Jt(a.state);switch(c._tag){case B.R:return!1;case B.i:q.hZ(a.state,x.Vw(b));for(let a=0,d=c.joiners.length;a<d;a++)c.joiners[a](b);return!0}})),di=(0,k.XY)(2,(a,b)=>dh(a,b)),dj=(0,k.XY)(2,(a,b)=>dh(a,ag(b))),dk=(0,k.XY)(2,(a,b)=>dh(a,ah(b))),dl=(0,k.XY)(2,(a,b)=>dh(a,ai(b))),dm=(0,k.XY)(2,(a,b)=>dh(a,aj(b))),dn=(0,k.XY)(2,(a,b)=>dh(a,ab(b))),dp=(0,k.XY)(2,(a,b)=>dh(a,ad(b))),dq=a=>am(ak,b=>dh(a,ay(b))),dr=(0,k.XY)(2,(a,b)=>dh(a,ay(b))),ds=a=>aP(()=>q.Jt(a.state)._tag===B.R),dt=a=>aP(()=>{let b=q.Jt(a.state);switch(b._tag){case B.R:return r.zN(b.effect);case B.i:return r.dv()}}),du=(0,k.XY)(2,(a,b)=>dh(a,aN(b))),dv=(0,k.XY)(2,(a,b)=>dh(a,aP(b))),dw=(a,b)=>{let c=q.Jt(a.state);if(c._tag===B.i){q.hZ(a.state,x.Vw(b));for(let a=0,d=c.joiners.length;a<d;a++)c.joiners[a](b)}},dx=(a,b)=>aP(()=>{let c=q.Jt(a.state);if(c._tag===B.i){let a=c.joiners.indexOf(b);a>=0&&c.joiners.splice(a,1)}}),dy=N(a=>c2(a.currentContext)),dz=()=>dy,dA=a=>am(dz(),a),dB=(0,k.XY)(2,(a,b)=>bG(bN,b)(a)),dC=(0,k.XY)(2,(a,b)=>bH(bN,a=>f.h1(a,b))(a)),dD=(0,k.XY)(2,(a,b)=>dA(c=>dB(a,b(c)))),dE=(0,k.XY)(2,(a,b)=>am(a,a=>am(b.predicate(a),c=>c?aN(a):b.orElse(a)))),dF=(0,k.XY)(2,(a,b)=>dE(a,{predicate:b.predicate,orElse:a=>ag(b.orFailWith(a))})),dG=a=>{let b=a.currentSpan;return void 0!==b&&"Span"===b._tag?r.zN(b):r.dv()},dH={_tag:"Span",spanId:"noop",traceId:"noop",sampled:!1,status:{_tag:"Ended",startTime:BigInt(0),endTime:BigInt(0),exit:c3},attributes:new Map,links:[],kind:"internal",attribute(){},event(){},end(){},addLinks(){}},dI=a=>Object.assign(Object.create(dH),a)},11537:(a,b,c)=>{"use strict";c.d(b,{N_:()=>aT,Ay:()=>aU});var d=c(32891);let e="numeric",f="ascii",g="alpha",h="asciinumeric",i="alphanumeric",j="domain",k="emoji",l="whitespace";function m(a,b,c){for(let d in b[e]&&(b[h]=!0,b[i]=!0),b[f]&&(b[h]=!0,b[g]=!0),b[h]&&(b[i]=!0),b[g]&&(b[i]=!0),b[i]&&(b[j]=!0),b[k]&&(b[j]=!0),b){let b=(d in c||(c[d]=[]),c[d]);0>b.indexOf(a)&&b.push(a)}}function n(a=null){this.j={},this.jr=[],this.jd=null,this.t=a}n.groups={},n.prototype={accepts(){return!!this.t},go(a){let b=this.j[a];if(b)return b;for(let b=0;b<this.jr.length;b++){let c=this.jr[b][0],d=this.jr[b][1];if(d&&c.test(a))return d}return this.jd},has(a,b=!1){return b?a in this.j:!!this.go(a)},ta(a,b,c,d){for(let e=0;e<a.length;e++)this.tt(a[e],b,c,d)},tr(a,b,c,d){let e;return d=d||n.groups,b&&b.j?e=b:(e=new n(b),c&&d&&m(b,c,d)),this.jr.push([a,e]),e},ts(a,b,c,d){let e=this,f=a.length;if(!f)return e;for(let b=0;b<f-1;b++)e=e.tt(a[b]);return e.tt(a[f-1],b,c,d)},tt(a,b,c,d){if(d=d||n.groups,b&&b.j)return this.j[a]=b,b;let e,f=this.go(a);return f?(Object.assign((e=new n).j,f.j),e.jr.push.apply(e.jr,f.jr),e.jd=f.jd,e.t=f.t):e=new n,b&&(d&&(e.t&&"string"==typeof e.t?m(b,Object.assign(function(a,b){let c={};for(let d in b)b[d].indexOf(a)>=0&&(c[d]=!0);return c}(e.t,d),c),d):c&&m(b,c,d)),e.t=b),this.j[a]=e,e}};let o=(a,b,c,d,e)=>a.ta(b,c,d,e),p=(a,b,c,d,e)=>a.tr(b,c,d,e),q=(a,b,c,d,e)=>a.ts(b,c,d,e),r=(a,b,c,d,e)=>a.tt(b,c,d,e),s="WORD",t="UWORD",u="ASCIINUMERICAL",v="ALPHANUMERICAL",w="LOCALHOST",x="UTLD",y="SCHEME",z="SLASH_SCHEME",A="OPENBRACE",B="CLOSEBRACE",C="OPENBRACKET",D="CLOSEBRACKET",E="OPENPAREN",F="CLOSEPAREN",G="OPENANGLEBRACKET",H="CLOSEANGLEBRACKET",I="FULLWIDTHLEFTPAREN",J="FULLWIDTHRIGHTPAREN",K="LEFTCORNERBRACKET",L="RIGHTCORNERBRACKET",M="LEFTWHITECORNERBRACKET",N="RIGHTWHITECORNERBRACKET",O="FULLWIDTHLESSTHAN",P="FULLWIDTHGREATERTHAN",Q="AMPERSAND",R="APOSTROPHE",S="ASTERISK",T="BACKSLASH",U="BACKTICK",V="CARET",W="COLON",X="COMMA",Y="DOLLAR",Z="EQUALS",$="EXCLAMATION",_="HYPHEN",aa="PERCENT",ab="PIPE",ac="PLUS",ad="POUND",ae="QUERY",af="QUOTE",ag="FULLWIDTHMIDDLEDOT",ah="SEMI",ai="SLASH",aj="TILDE",ak="UNDERSCORE",al="EMOJI";var am=Object.freeze({__proto__:null,ALPHANUMERICAL:v,AMPERSAND:Q,APOSTROPHE:R,ASCIINUMERICAL:u,ASTERISK:S,AT:"AT",BACKSLASH:T,BACKTICK:U,CARET:V,CLOSEANGLEBRACKET:H,CLOSEBRACE:B,CLOSEBRACKET:D,CLOSEPAREN:F,COLON:W,COMMA:X,DOLLAR:Y,DOT:"DOT",EMOJI:al,EQUALS:Z,EXCLAMATION:$,FULLWIDTHGREATERTHAN:P,FULLWIDTHLEFTPAREN:I,FULLWIDTHLESSTHAN:O,FULLWIDTHMIDDLEDOT:ag,FULLWIDTHRIGHTPAREN:J,HYPHEN:_,LEFTCORNERBRACKET:K,LEFTWHITECORNERBRACKET:M,LOCALHOST:w,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:G,OPENBRACE:A,OPENBRACKET:C,OPENPAREN:E,PERCENT:aa,PIPE:ab,PLUS:ac,POUND:ad,QUERY:ae,QUOTE:af,RIGHTCORNERBRACKET:L,RIGHTWHITECORNERBRACKET:N,SCHEME:y,SEMI:ah,SLASH:ai,SLASH_SCHEME:z,SYM:"SYM",TILDE:aj,TLD:"TLD",UNDERSCORE:ak,UTLD:x,UWORD:t,WORD:s,WS:"WS"});let an=/[a-z]/,ao=/\p{L}/u,ap=/\p{Emoji}/u,aq=/\d/,ar=/\s/,as=null,at=null;function au(a,b){let c=function(a){let b=[],c=a.length,d=0;for(;d<c;){let e,f=a.charCodeAt(d),g=f<55296||f>56319||d+1===c||(e=a.charCodeAt(d+1))<56320||e>57343?a[d]:a.slice(d,d+2);b.push(g),d+=g.length}return b}(b.replace(/[A-Z]/g,a=>a.toLowerCase())),d=c.length,e=[],f=0,g=0;for(;g<d;){let h=a,i=null,j=0,k=null,l=-1,m=-1;for(;g<d&&(i=h.go(c[g]));)(h=i).accepts()?(l=0,m=0,k=h):l>=0&&(l+=c[g].length,m++),j+=c[g].length,f+=c[g].length,g++;f-=l,g-=m,j-=l,e.push({t:k.t,v:b.slice(f-j,f),s:f-j,e:f})}return e}function av(a,b,c,d,e){let f,g=b.length;for(let c=0;c<g-1;c++){let g=b[c];a.j[g]?f=a.j[g]:((f=new n(d)).jr=e.slice(),a.j[g]=f),a=f}return(f=new n(c)).jr=e.slice(),a.j[b[g-1]]=f,f}function aw(a){let b=[],c=[],d=0;for(;d<a.length;){let e=0;for(;"0123456789".indexOf(a[d+e])>=0;)e++;if(e>0){b.push(c.join(""));for(let b=parseInt(a.substring(d,d+e),10);b>0;b--)c.pop();d+=e}else c.push(a[d]),d++}return b}let ax={defaultProtocol:"http",events:null,format:az,formatHref:az,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ay(a,b=null){let c=Object.assign({},ax);a&&(c=Object.assign(c,a instanceof ay?a.o:a));let d=c.ignoreTags,e=[];for(let a=0;a<d.length;a++)e.push(d[a].toUpperCase());this.o=c,b&&(this.defaultRender=b),this.ignoreTags=e}function az(a){return a}function aA(a,b){this.t="token",this.v=a,this.tk=b}function aB(a,b){class c extends aA{constructor(b,c){super(b,c),this.t=a}}for(let a in b)c.prototype[a]=b[a];return c.t=a,c}ay.prototype={o:ax,ignoreTags:[],defaultRender:a=>a,check(a){return this.get("validate",a.toString(),a)},get(a,b,c){let d=null!=b,e=this.o[a];return e&&("object"==typeof e?"function"==typeof(e=c.t in e?e[c.t]:ax[a])&&d&&(e=e(b,c)):"function"==typeof e&&d&&(e=e(b,c.t,c))),e},getObj(a,b,c){let d=this.o[a];return"function"==typeof d&&null!=b&&(d=d(b,c.t,c)),d},render(a){let b=a.render(this);return(this.get("render",null,a)||this.defaultRender)(b,a.t,a)}},aA.prototype={isLink:!1,toString(){return this.v},toHref(a){return this.toString()},toFormattedString(a){let b=this.toString(),c=a.get("truncate",b,this),d=a.get("format",b,this);return c&&d.length>c?d.substring(0,c)+"…":d},toFormattedHref(a){return a.get("formatHref",this.toHref(a.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(a=ax.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(a),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(a){return{type:this.t,value:this.toFormattedString(a),isLink:this.isLink,href:this.toFormattedHref(a),start:this.startIndex(),end:this.endIndex()}},validate(a){return a.get("validate",this.toString(),this)},render(a){let b=this.toHref(a.get("defaultProtocol")),c=a.get("formatHref",b,this),d=a.get("tagName",b,this),e=this.toFormattedString(a),f={},g=a.get("className",b,this),h=a.get("target",b,this),i=a.get("rel",b,this),j=a.getObj("attributes",b,this),k=a.getObj("events",b,this);return f.href=c,g&&(f.class=g),h&&(f.target=h),i&&(f.rel=i),j&&Object.assign(f,j),{tagName:d,attributes:f,content:e,eventListeners:k}}};let aC=aB("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),aD=aB("text"),aE=aB("nl"),aF=aB("url",{isLink:!0,toHref(a=ax.defaultProtocol){return this.hasProtocol()?this.v:`${a}://${this.v}`},hasProtocol(){let a=this.tk;return a.length>=2&&a[0].t!==w&&a[1].t===W}}),aG=a=>new n(a);function aH(a,b,c){let d=c[0].s,e=c[c.length-1].e;return new a(b.slice(d,e),c)}let aI="u">typeof console&&console&&console.warn||(()=>{}),aJ={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function aK(a,b=!1){if(aJ.initialized&&aI(`linkifyjs: already initialized - will not register custom scheme "${a}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(a))throw Error(`linkifyjs: incorrect scheme format.
3
3
  1. Must only contain digits, lowercase ASCII letters or "-"
4
4
  2. Cannot start or end with "-"