windows-development-sandbox 1.7.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/config.example.json +12 -1
  2. package/dist/app/context.d.ts +8 -0
  3. package/dist/app/context.js +12 -0
  4. package/dist/app/features/defs.d.ts +322 -0
  5. package/dist/app/features/defs.js +28 -0
  6. package/dist/app/features/sandbox/index.d.ts +2 -0
  7. package/dist/app/features/sandbox/index.js +3 -0
  8. package/dist/app/features/sandbox/sandbox.def.d.ts +193 -0
  9. package/dist/app/features/sandbox/sandbox.def.js +245 -0
  10. package/dist/app/features/sandbox/sandbox.run.d.ts +72 -0
  11. package/dist/app/features/sandbox/sandbox.run.js +98 -0
  12. package/dist/app/features/sessions/index.d.ts +2 -0
  13. package/dist/app/features/sessions/index.js +3 -0
  14. package/dist/app/features/sessions/sessions.def.d.ts +141 -0
  15. package/dist/app/features/sessions/sessions.def.js +176 -0
  16. package/dist/app/features/sessions/sessions.run.d.ts +39 -0
  17. package/dist/app/features/sessions/sessions.run.js +58 -0
  18. package/dist/{cli/menu/settings/categories.d.ts → app/features/settings/categories.def.d.ts} +2 -0
  19. package/dist/{cli/menu/settings/categories.js → app/features/settings/categories.def.js} +24 -5
  20. package/dist/app/features/settings/index.d.ts +5 -0
  21. package/dist/app/features/settings/index.js +6 -0
  22. package/dist/{cli/menu/settings/config-file.d.ts → app/features/settings/settings-file.d.ts} +1 -1
  23. package/dist/{cli/menu/settings/config-file.js → app/features/settings/settings-file.js} +1 -1
  24. package/dist/app/features/settings/settings-rows.d.ts +35 -0
  25. package/dist/app/features/settings/settings-rows.js +94 -0
  26. package/dist/app/features/settings/settings.def.d.ts +157 -0
  27. package/dist/app/features/settings/settings.def.js +179 -0
  28. package/dist/app/features/settings/settings.run.d.ts +67 -0
  29. package/dist/app/features/settings/settings.run.js +84 -0
  30. package/dist/app/kernel/define.d.ts +143 -0
  31. package/dist/app/kernel/define.js +42 -0
  32. package/dist/app/kernel/errors.d.ts +34 -0
  33. package/dist/app/kernel/errors.js +45 -0
  34. package/dist/app/kernel/fields.d.ts +70 -0
  35. package/dist/app/kernel/fields.js +243 -0
  36. package/dist/app/kernel/index.d.ts +8 -0
  37. package/dist/app/kernel/index.js +10 -0
  38. package/dist/app/kernel/io.d.ts +193 -0
  39. package/dist/app/kernel/io.js +126 -0
  40. package/dist/app/kernel/rpc.d.ts +156 -0
  41. package/dist/app/kernel/rpc.js +47 -0
  42. package/dist/app/kernel/text.d.ts +6 -0
  43. package/dist/app/kernel/text.js +57 -0
  44. package/dist/app/kernel/view.d.ts +146 -0
  45. package/dist/app/kernel/view.js +28 -0
  46. package/dist/app/registry.d.ts +10 -0
  47. package/dist/app/registry.js +50 -0
  48. package/dist/cli/args.d.ts +5 -0
  49. package/dist/cli/args.js +6 -0
  50. package/dist/cli/commands/engine.d.ts +2 -0
  51. package/dist/cli/commands/engine.js +60 -0
  52. package/dist/cli/commands/index.d.ts +1 -1
  53. package/dist/cli/commands/index.js +1 -1
  54. package/dist/cli/commands/launch/launch.js +49 -7
  55. package/dist/cli/commands/launch/prepare.js +3 -3
  56. package/dist/cli/commands/launch/running.js +2 -1
  57. package/dist/cli/commands/launch/summary.d.ts +2 -0
  58. package/dist/cli/commands/maintenance/config-share.d.ts +12 -0
  59. package/dist/cli/commands/maintenance/config-share.js +80 -0
  60. package/dist/cli/commands/maintenance/config.js +8 -82
  61. package/dist/cli/commands/maintenance/logs.js +14 -0
  62. package/dist/cli/commands/registry.js +3 -7
  63. package/dist/cli/commands/repair/checks/contained.d.ts +2 -0
  64. package/dist/cli/commands/repair/checks/contained.js +139 -0
  65. package/dist/cli/commands/repair/checks/hcs.d.ts +7 -0
  66. package/dist/cli/commands/repair/checks/hcs.js +28 -0
  67. package/dist/cli/commands/repair/checks/index.js +4 -0
  68. package/dist/cli/commands/repair/checks/pc.js +32 -1
  69. package/dist/cli/commands/repair/checks/sandbox.js +16 -1
  70. package/dist/cli/commands/repair/checks/vpn.js +34 -9
  71. package/dist/cli/commands/repair/env.js +2 -1
  72. package/dist/cli/commands/sessions/index.d.ts +0 -4
  73. package/dist/cli/commands/sessions/index.js +3 -7
  74. package/dist/cli/commands/shared-use.d.ts +5 -2
  75. package/dist/cli/commands/shared-use.js +11 -8
  76. package/dist/cli/commands/storage/contained.d.ts +3 -0
  77. package/dist/cli/commands/storage/contained.js +179 -0
  78. package/dist/cli/commands/storage/offer.js +7 -1
  79. package/dist/cli/commands/storage/storage.js +10 -2
  80. package/dist/cli/commands/user-config.js +1 -1
  81. package/dist/cli/commands/vpn.js +20 -3
  82. package/dist/cli/commands/web.d.ts +5 -0
  83. package/dist/cli/commands/web.js +40 -0
  84. package/dist/cli/index.js +2 -1
  85. package/dist/cli/manifest.d.ts +72 -104
  86. package/dist/cli/manifest.js +64 -39
  87. package/dist/cli/menu/add-agent.d.ts +1 -1
  88. package/dist/cli/menu/add-agent.js +1 -1
  89. package/dist/cli/menu/apps.d.ts +7 -1
  90. package/dist/cli/menu/apps.js +36 -0
  91. package/dist/cli/menu/command-fields.d.ts +1 -1
  92. package/dist/cli/menu/command-form.js +2 -2
  93. package/dist/cli/menu/io-menu.d.ts +29 -0
  94. package/dist/cli/menu/io-menu.js +126 -0
  95. package/dist/cli/menu/live.d.ts +27 -0
  96. package/dist/cli/menu/live.js +69 -0
  97. package/dist/cli/menu/memory.d.ts +19 -0
  98. package/dist/cli/menu/memory.js +53 -0
  99. package/dist/cli/menu/menu.d.ts +10 -1
  100. package/dist/cli/menu/menu.js +27 -9
  101. package/dist/cli/menu/pages/agents-page.d.ts +3 -1
  102. package/dist/cli/menu/pages/agents-page.js +12 -5
  103. package/dist/cli/menu/pages/apps-page.d.ts +3 -1
  104. package/dist/cli/menu/pages/apps-page.js +19 -2
  105. package/dist/cli/menu/pages/list-page.d.ts +27 -0
  106. package/dist/cli/menu/pages/list-page.js +109 -7
  107. package/dist/cli/menu/pages/maintenance-page.d.ts +0 -5
  108. package/dist/cli/menu/pages/maintenance-page.js +17 -19
  109. package/dist/cli/menu/pages/sandbox-page.d.ts +4 -6
  110. package/dist/cli/menu/pages/sandbox-page.js +26 -118
  111. package/dist/cli/menu/pages/scopes.d.ts +1 -1
  112. package/dist/cli/menu/pages/sessions-page.d.ts +5 -11
  113. package/dist/cli/menu/pages/sessions-page.js +19 -88
  114. package/dist/cli/menu/pages/settings-page.d.ts +2 -10
  115. package/dist/cli/menu/pages/settings-page.js +64 -94
  116. package/dist/cli/menu/render-view.d.ts +28 -0
  117. package/dist/cli/menu/render-view.js +112 -0
  118. package/dist/cli/menu/settings/{path-kind.d.ts → ask-path.d.ts} +1 -7
  119. package/dist/cli/menu/settings/ask-path.js +14 -0
  120. package/dist/cli/menu/settings/collections/collection-editor.d.ts +1 -1
  121. package/dist/cli/menu/settings/collections/string-list-editor.d.ts +1 -2
  122. package/dist/cli/menu/settings/collections/string-list-editor.js +1 -1
  123. package/dist/cli/menu/settings/draft.d.ts +1 -1
  124. package/dist/cli/menu/settings/format.d.ts +1 -3
  125. package/dist/cli/menu/settings/format.js +6 -36
  126. package/dist/cli/menu/settings/index.d.ts +1 -3
  127. package/dist/cli/menu/settings/index.js +3 -3
  128. package/dist/cli/menu/settings/object-editor.d.ts +1 -1
  129. package/dist/cli/menu/settings/share.d.ts +36 -0
  130. package/dist/cli/menu/settings/share.js +131 -0
  131. package/dist/cli/menu/settings/value-editor.d.ts +5 -1
  132. package/dist/cli/menu/settings/value-editor.js +57 -54
  133. package/dist/cli/menu/several.js +1 -1
  134. package/dist/cli/menu/share-settings.d.ts +21 -0
  135. package/dist/cli/menu/share-settings.js +112 -0
  136. package/dist/cli/menu/shell.d.ts +21 -5
  137. package/dist/cli/menu/shell.js +31 -6
  138. package/dist/cli/menu/views.d.ts +7 -0
  139. package/dist/cli/menu/views.js +11 -0
  140. package/dist/cli/menu/vpn-login.js +8 -0
  141. package/dist/cli/operations/handler.d.ts +6 -0
  142. package/dist/cli/operations/handler.js +61 -0
  143. package/dist/cli/operations/index.d.ts +4 -0
  144. package/dist/cli/operations/index.js +5 -0
  145. package/dist/cli/operations/input.d.ts +6 -0
  146. package/dist/cli/operations/input.js +37 -0
  147. package/dist/cli/operations/io-cli.d.ts +7 -0
  148. package/dist/cli/operations/io-cli.js +62 -0
  149. package/dist/cli/operations/spec.d.ts +18 -0
  150. package/dist/cli/operations/spec.js +108 -0
  151. package/dist/cli/output/colors.d.ts +2 -2
  152. package/dist/cli/output/colors.js +2 -11
  153. package/dist/cli/output/index.d.ts +1 -0
  154. package/dist/cli/output/index.js +1 -0
  155. package/dist/cli/output/print.d.ts +3 -1
  156. package/dist/cli/output/print.js +7 -3
  157. package/dist/cli/output/progress.d.ts +15 -0
  158. package/dist/cli/output/progress.js +44 -0
  159. package/dist/cli/output/render-view.d.ts +4 -0
  160. package/dist/cli/output/render-view.js +63 -0
  161. package/dist/cli/services/agent-commands-service.d.ts +2 -0
  162. package/dist/cli/services/agent-commands-service.js +11 -2
  163. package/dist/cli/services/logs-service.js +4 -3
  164. package/dist/cli/tui/app.d.ts +6 -1
  165. package/dist/cli/tui/app.js +26 -4
  166. package/dist/cli/tui/list/list-screen.d.ts +14 -0
  167. package/dist/cli/tui/list/list-screen.js +64 -36
  168. package/dist/cli/tui/list/list-types.d.ts +2 -0
  169. package/dist/cli/tui/terminal.d.ts +7 -0
  170. package/dist/cli/tui/terminal.js +30 -10
  171. package/dist/core/config/defaults.js +9 -1
  172. package/dist/core/schema/config.d.ts +14 -0
  173. package/dist/core/schema/config.js +16 -1
  174. package/dist/core/schema/harness.d.ts +1 -0
  175. package/dist/core/schema/harness.js +5 -0
  176. package/dist/core/schema/sandbox.d.ts +6 -0
  177. package/dist/core/schema/sandbox.js +20 -3
  178. package/dist/core/schema/vpn.d.ts +2 -1
  179. package/dist/core/schema/vpn.js +4 -4
  180. package/dist/core/schema/web.d.ts +1 -0
  181. package/dist/core/schema/web.js +4 -1
  182. package/dist/core/types.d.ts +23 -5
  183. package/dist/core/util/fs.d.ts +2 -0
  184. package/dist/core/util/fs.js +9 -0
  185. package/dist/core/util/index.d.ts +1 -1
  186. package/dist/core/util/index.js +1 -1
  187. package/dist/guest/agents/agent-files.d.ts +5 -0
  188. package/dist/guest/agents/agent-files.js +4 -0
  189. package/dist/guest/agents/local-state.d.ts +2 -0
  190. package/dist/guest/agents/local-state.js +21 -1
  191. package/dist/guest/boot/boot.js +5 -2
  192. package/dist/guest/daemon/daemon.js +4 -0
  193. package/dist/guest/daemon/sessions.d.ts +5 -0
  194. package/dist/guest/daemon/sessions.js +17 -3
  195. package/dist/guest/entries/daemon.js +3 -0
  196. package/dist/guest/governor/decide.d.ts +71 -0
  197. package/dist/guest/governor/decide.js +211 -0
  198. package/dist/guest/governor/governor.d.ts +45 -0
  199. package/dist/guest/governor/governor.js +230 -0
  200. package/dist/guest/governor/index.d.ts +2 -0
  201. package/dist/guest/governor/index.js +2 -0
  202. package/dist/guest/network/firewall.d.ts +1 -0
  203. package/dist/guest/network/firewall.js +65 -23
  204. package/dist/guest/runtime/csc.d.ts +1 -0
  205. package/dist/guest/runtime/csc.js +1 -0
  206. package/dist/guest/runtime/process.js +53 -5
  207. package/dist/guest/sessions/viewer.js +3 -1
  208. package/dist/guest/setup/claude-mem.js +12 -4
  209. package/dist/guest/toolchains/languages/node.js +29 -3
  210. package/dist/guest/toolchains/native/rust-extras.js +4 -2
  211. package/dist/guest/vpn/vpn.js +69 -21
  212. package/dist/guest/vpn/wireguard.d.ts +32 -0
  213. package/dist/guest/vpn/wireguard.js +132 -0
  214. package/dist/host/agent-commands/commands.d.ts +4 -0
  215. package/dist/host/agent-commands/commands.js +31 -7
  216. package/dist/host/audit/log.d.ts +1 -1
  217. package/dist/host/channel/attach.d.ts +3 -1
  218. package/dist/host/channel/attach.js +5 -2
  219. package/dist/host/channel/channel.d.ts +2 -0
  220. package/dist/host/channel/channel.js +4 -0
  221. package/dist/host/engines/engine.d.ts +12 -0
  222. package/dist/host/engines/engine.js +1 -0
  223. package/dist/host/engines/hcs/check.d.ts +25 -0
  224. package/dist/host/engines/hcs/check.js +95 -0
  225. package/dist/host/engines/hcs/documents.d.ts +44 -0
  226. package/dist/host/engines/hcs/documents.js +155 -0
  227. package/dist/host/engines/hcs/engine.d.ts +39 -0
  228. package/dist/host/engines/hcs/engine.js +171 -0
  229. package/dist/host/engines/hcs/helper.d.ts +43 -0
  230. package/dist/host/engines/hcs/helper.js +173 -0
  231. package/dist/host/engines/hcs/images.d.ts +37 -0
  232. package/dist/host/engines/hcs/images.js +152 -0
  233. package/dist/host/engines/index.d.ts +7 -0
  234. package/dist/host/engines/index.js +5 -0
  235. package/dist/host/engines/registry.d.ts +16 -0
  236. package/dist/host/engines/registry.js +30 -0
  237. package/dist/host/engines/types.d.ts +58 -0
  238. package/dist/host/engines/types.js +1 -0
  239. package/dist/host/engines/windows-sandbox/engine.d.ts +16 -0
  240. package/dist/host/engines/windows-sandbox/engine.js +63 -0
  241. package/dist/host/engines/windows-sandbox/wsb-text.d.ts +2 -0
  242. package/dist/host/engines/windows-sandbox/wsb-text.js +29 -0
  243. package/dist/host/launch/generate.d.ts +5 -1
  244. package/dist/host/launch/generate.js +50 -8
  245. package/dist/host/launch/index.d.ts +3 -1
  246. package/dist/host/launch/index.js +3 -1
  247. package/dist/host/launch/launch-plan.d.ts +13 -0
  248. package/dist/host/launch/launch-plan.js +26 -0
  249. package/dist/host/launch/mappings.js +2 -1
  250. package/dist/host/launch/risk-notes.d.ts +10 -0
  251. package/dist/host/launch/risk-notes.js +18 -0
  252. package/dist/host/launch/session-file.d.ts +2 -0
  253. package/dist/host/launch/session-file.js +7 -1
  254. package/dist/host/launch/wsb-file.d.ts +28 -4
  255. package/dist/host/launch/wsb-file.js +61 -42
  256. package/dist/host/life/crash-report.d.ts +27 -1
  257. package/dist/host/life/crash-report.js +173 -7
  258. package/dist/host/life/host-memory.d.ts +41 -0
  259. package/dist/host/life/host-memory.js +140 -0
  260. package/dist/host/life/index.d.ts +2 -0
  261. package/dist/host/life/index.js +2 -0
  262. package/dist/host/life/stop-events.d.ts +2 -0
  263. package/dist/host/life/stop-events.js +20 -3
  264. package/dist/host/life/stop-warning.js +1 -1
  265. package/dist/host/life/watchdog.d.ts +56 -0
  266. package/dist/host/life/watchdog.js +124 -0
  267. package/dist/host/native.d.ts +3 -2
  268. package/dist/host/native.js +22 -3
  269. package/dist/host/profile/claude-login.js +3 -2
  270. package/dist/host/sandbox/contained-deps.d.ts +2 -0
  271. package/dist/host/sandbox/contained-deps.js +17 -0
  272. package/dist/host/sandbox/index.d.ts +2 -0
  273. package/dist/host/sandbox/index.js +2 -0
  274. package/dist/host/sandbox/platform.d.ts +2 -0
  275. package/dist/host/sandbox/platform.js +7 -7
  276. package/dist/host/sandbox/tasklist.d.ts +13 -0
  277. package/dist/host/sandbox/tasklist.js +47 -0
  278. package/dist/host/secrets/launch-secrets.js +2 -1
  279. package/dist/host/sharing/current.js +2 -6
  280. package/dist/host/storage/contained/check.d.ts +9 -0
  281. package/dist/host/storage/contained/check.js +37 -0
  282. package/dist/host/storage/contained/contained-storage.d.ts +66 -0
  283. package/dist/host/storage/contained/contained-storage.js +168 -0
  284. package/dist/host/storage/contained/disk-port.d.ts +43 -0
  285. package/dist/host/storage/contained/disk-port.js +122 -0
  286. package/dist/host/storage/contained/index.d.ts +9 -0
  287. package/dist/host/storage/contained/index.js +8 -0
  288. package/dist/host/storage/contained/layout.d.ts +28 -0
  289. package/dist/host/storage/contained/layout.js +45 -0
  290. package/dist/host/storage/contained/resolve.d.ts +4 -0
  291. package/dist/host/storage/contained/resolve.js +30 -0
  292. package/dist/host/storage/contained/setting.d.ts +1 -0
  293. package/dist/host/storage/contained/setting.js +5 -0
  294. package/dist/host/storage/contained/state.d.ts +89 -0
  295. package/dist/host/storage/contained/state.js +166 -0
  296. package/dist/host/storage/contained/transfer.d.ts +24 -0
  297. package/dist/host/storage/contained/transfer.js +121 -0
  298. package/dist/host/storage/index.d.ts +2 -0
  299. package/dist/host/storage/index.js +2 -0
  300. package/dist/host/storage/providers/contained.d.ts +15 -0
  301. package/dist/host/storage/providers/contained.js +39 -0
  302. package/dist/host/storage/providers/folder.d.ts +12 -0
  303. package/dist/host/storage/providers/folder.js +20 -0
  304. package/dist/host/storage/providers/index.d.ts +4 -0
  305. package/dist/host/storage/providers/index.js +3 -0
  306. package/dist/host/storage/providers/registry.d.ts +9 -0
  307. package/dist/host/storage/providers/registry.js +14 -0
  308. package/dist/host/storage/providers/types.d.ts +33 -0
  309. package/dist/host/storage/providers/types.js +1 -0
  310. package/dist/host/tools/conpty.js +3 -2
  311. package/dist/host/tools/windows-terminal.js +8 -7
  312. package/dist/host/vpn/index.d.ts +1 -1
  313. package/dist/host/vpn/index.js +1 -1
  314. package/dist/host/vpn/prepare.d.ts +2 -0
  315. package/dist/host/vpn/prepare.js +63 -2
  316. package/dist/host/web/browser.d.ts +2 -0
  317. package/dist/host/web/browser.js +14 -1
  318. package/dist/host/web/index.d.ts +3 -2
  319. package/dist/host/web/index.js +3 -2
  320. package/dist/host/web/rpc.d.ts +24 -0
  321. package/dist/host/web/rpc.js +149 -0
  322. package/dist/host/web/runner.d.ts +2 -0
  323. package/dist/host/web/runner.js +1 -2
  324. package/dist/host/web/server.d.ts +7 -0
  325. package/dist/host/web/server.js +23 -3
  326. package/dist/runtime/agent.js +83 -18
  327. package/dist/runtime/daemon.js +1805 -1221
  328. package/dist/runtime/db.js +83 -18
  329. package/dist/runtime/main.js +779 -219
  330. package/dist/runtime/netproxy.js +73 -11
  331. package/dist/runtime/view.js +91 -16
  332. package/dist/selftest/agent-paths.test.js +11 -1
  333. package/dist/selftest/app.test.d.ts +2 -0
  334. package/dist/selftest/app.test.js +324 -0
  335. package/dist/selftest/channel.test.js +13 -0
  336. package/dist/selftest/cli.test.js +2 -1
  337. package/dist/selftest/config.test.js +59 -0
  338. package/dist/selftest/contained.test.d.ts +2 -0
  339. package/dist/selftest/contained.test.js +544 -0
  340. package/dist/selftest/credentials.test.js +1 -1
  341. package/dist/selftest/engine.test.d.ts +2 -0
  342. package/dist/selftest/engine.test.js +127 -0
  343. package/dist/selftest/guest-boot.test.js +47 -1
  344. package/dist/selftest/hcs.test.d.ts +2 -0
  345. package/dist/selftest/hcs.test.js +482 -0
  346. package/dist/selftest/heavy-load.test.d.ts +2 -0
  347. package/dist/selftest/heavy-load.test.js +355 -0
  348. package/dist/selftest/index.js +12 -0
  349. package/dist/selftest/layout.test.js +12 -0
  350. package/dist/selftest/menu-perf.test.d.ts +2 -0
  351. package/dist/selftest/menu-perf.test.js +248 -0
  352. package/dist/selftest/menu-screens.js +4 -2
  353. package/dist/selftest/menu.test.js +36 -8
  354. package/dist/selftest/network.test.js +20 -1
  355. package/dist/selftest/support/engine-cases.d.ts +8 -0
  356. package/dist/selftest/support/engine-cases.js +65 -0
  357. package/dist/selftest/support/engine-golden.d.ts +3 -0
  358. package/dist/selftest/support/engine-golden.js +66 -0
  359. package/dist/selftest/support/fixtures.d.ts +8 -1
  360. package/dist/selftest/support/hcs-probes.d.ts +17 -0
  361. package/dist/selftest/support/hcs-probes.js +41 -0
  362. package/dist/selftest/vpn.test.js +136 -3
  363. package/dist/selftest/web.test.js +101 -3
  364. package/dist/shared/channel/run-dir.d.ts +4 -1
  365. package/dist/shared/channel/run-dir.js +7 -1
  366. package/dist/shared/channel/schema.d.ts +35 -1
  367. package/dist/shared/channel/schema.js +27 -0
  368. package/dist/shared/channel/secrets.d.ts +1 -0
  369. package/dist/shared/channel/secrets.js +6 -0
  370. package/dist/shared/io/copy-tree.d.ts +7 -0
  371. package/dist/shared/io/copy-tree.js +45 -0
  372. package/dist/shared/io/index.d.ts +2 -0
  373. package/dist/shared/io/index.js +2 -0
  374. package/dist/shared/io/robocopy-result.d.ts +6 -0
  375. package/dist/shared/io/robocopy-result.js +23 -0
  376. package/dist/shared/memory/index.d.ts +1 -0
  377. package/dist/shared/memory/index.js +1 -0
  378. package/dist/shared/memory/policy.d.ts +38 -0
  379. package/dist/shared/memory/policy.js +63 -0
  380. package/dist/shared/network/firewall-rules.d.ts +8 -0
  381. package/dist/shared/network/firewall-rules.js +28 -0
  382. package/dist/shared/pty/output-filter.d.ts +14 -1
  383. package/dist/shared/pty/output-filter.js +22 -4
  384. package/dist/shared/pty/terminal.d.ts +4 -1
  385. package/dist/shared/pty/terminal.js +4 -2
  386. package/dist/shared/system.d.ts +1 -0
  387. package/dist/shared/system.js +1 -0
  388. package/dist/shared/vpn/download.d.ts +16 -0
  389. package/dist/shared/vpn/download.js +16 -0
  390. package/dist/shared/vpn/wireguard.d.ts +51 -0
  391. package/dist/shared/vpn/wireguard.js +227 -0
  392. package/dist/sync/sync-cycle.js +5 -5
  393. package/dist/sync/watcher.d.ts +13 -0
  394. package/dist/sync/watcher.js +92 -3
  395. package/dist/web/index.html +4 -3
  396. package/dist/web/main-NRRS5O6Z.js +157 -0
  397. package/dist/web/main-T5DMCHYV.css +1 -0
  398. package/native/csharp/HcsHost/AssemblyInfo.cs +14 -0
  399. package/native/csharp/HcsHost/Guard.cs +100 -0
  400. package/native/csharp/HcsHost/Hcs.cs +256 -0
  401. package/native/csharp/HcsHost/Json.cs +78 -0
  402. package/native/csharp/HcsHost/Program.cs +185 -0
  403. package/native/csharp/HcsHost/VirtualDisk.cs +95 -0
  404. package/native/csharp/HostTools/AssemblyInfo.cs +14 -0
  405. package/native/csharp/HostTools/MemoryStatus.cs +128 -0
  406. package/native/csharp/HostTools/Program.cs +58 -17
  407. package/native/scripts/check-contained.ps1 +28 -0
  408. package/native/scripts/contained-common.ps1 +241 -0
  409. package/native/scripts/dismount-contained.ps1 +66 -0
  410. package/native/scripts/memory-status.ps1 +42 -0
  411. package/native/scripts/mount-contained.ps1 +139 -0
  412. package/native/scripts/run-elevated.ps1 +17 -4
  413. package/native/scripts/stop-events.ps1 +23 -8
  414. package/package.json +9 -2
  415. package/sandbox/csharp/MemGov.cs +466 -0
  416. package/sandbox/csharp/PtyHost.cs +111 -5
  417. package/sandbox/scripts/new-shortcuts.ps1 +3 -1
  418. package/schemas/config.schema.json +66 -8
  419. package/schemas/sandbox-config.schema.json +3 -3
  420. package/dist/cli/commands/sessions/control.d.ts +0 -4
  421. package/dist/cli/commands/sessions/control.js +0 -66
  422. package/dist/cli/commands/sessions/list.d.ts +0 -2
  423. package/dist/cli/commands/sessions/list.js +0 -48
  424. package/dist/cli/commands/sessions/status.d.ts +0 -4
  425. package/dist/cli/commands/sessions/status.js +0 -114
  426. package/dist/cli/commands/sessions/window.d.ts +0 -3
  427. package/dist/cli/commands/sessions/window.js +0 -18
  428. package/dist/cli/menu/settings/path-kind.js +0 -44
  429. package/dist/web/main-CXESL347.js +0 -45
  430. package/dist/web/main-VLR7DVQ4.css +0 -1
  431. /package/dist/{cli/menu/settings → app/kernel}/schema-node.d.ts +0 -0
  432. /package/dist/{cli/menu/settings → app/kernel}/schema-node.js +0 -0
@@ -0,0 +1,157 @@
1
+ var Pq=Object.create;var Wv=Object.defineProperty;var $q=Object.getOwnPropertyDescriptor;var Rq=Object.getOwnPropertyNames;var Dq=Object.getPrototypeOf,Eq=Object.prototype.hasOwnProperty;var d4=e=>{throw TypeError(e)};var Tq=(e,t,r)=>t in e?Wv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Pi=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},xa=(e,t)=>{for(var r in t)Wv(e,r,{get:t[r],enumerable:!0})},Oq=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rq(t))!Eq.call(e,o)&&o!==r&&Wv(e,o,{get:()=>t[o],enumerable:!(n=$q(t,o))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?Pq(Dq(e)):{},Oq(t||!e||!e.__esModule?Wv(r,"default",{value:e,enumerable:!0}):r,e));var Kt=(e,t,r)=>Tq(e,typeof t!="symbol"?t+"":t,r),sS=(e,t,r)=>t.has(e)||d4("Cannot "+r);var D=(e,t,r)=>(sS(e,t,"read from private field"),r?r.call(e):t.get(e)),_e=(e,t,r)=>t.has(e)?d4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ue=(e,t,r,n)=>(sS(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),We=(e,t,r)=>(sS(e,t,"access private method"),r);var Km=(e,t,r,n)=>({set _(o){ue(e,t,o,r)},get _(){return D(e,t,n)}});var S4=Pi(qe=>{"use strict";var Gm=Symbol.for("react.element"),zq=Symbol.for("react.portal"),Aq=Symbol.for("react.fragment"),Fq=Symbol.for("react.strict_mode"),Nq=Symbol.for("react.profiler"),Bq=Symbol.for("react.provider"),Lq=Symbol.for("react.context"),Mq=Symbol.for("react.forward_ref"),jq=Symbol.for("react.suspense"),Uq=Symbol.for("react.memo"),Vq=Symbol.for("react.lazy"),m4=Symbol.iterator;function Hq(e){return e===null||typeof e!="object"?null:(e=m4&&e[m4]||e["@@iterator"],typeof e=="function"?e:null)}var g4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v4=Object.assign,x4={};function ju(e,t,r){this.props=e,this.context=t,this.refs=x4,this.updater=r||g4}ju.prototype.isReactComponent={};ju.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ju.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b4(){}b4.prototype=ju.prototype;function cS(e,t,r){this.props=e,this.context=t,this.refs=x4,this.updater=r||g4}var uS=cS.prototype=new b4;uS.constructor=cS;v4(uS,ju.prototype);uS.isPureReactComponent=!0;var p4=Array.isArray,y4=Object.prototype.hasOwnProperty,dS={current:null},_4={key:!0,ref:!0,__self:!0,__source:!0};function I4(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)y4.call(t,n)&&!_4.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Gm,type:e,key:i,ref:a,props:o,_owner:dS.current}}function Wq(e,t){return{$$typeof:Gm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gm}function Zq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var h4=/\/+/g;function lS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zq(""+e.key):t.toString(36)}function Kv(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Gm:case zq:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+lS(a,0):n,p4(o)?(r="",e!=null&&(r=e.replace(h4,"$&/")+"/"),Kv(o,t,r,"",function(c){return c})):o!=null&&(fS(o)&&(o=Wq(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(h4,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",p4(e))for(var s=0;s<e.length;s++){i=e[s];var l=n+lS(i,s);a+=Kv(i,t,r,l,o)}else if(l=Hq(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=n+lS(i,s++),a+=Kv(i,t,r,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qv(e,t,r){if(e==null)return e;var n=[],o=0;return Kv(e,n,"","",function(i){return t.call(r,i,o++)}),n}function qq(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fo={current:null},Gv={transition:null},Kq={ReactCurrentDispatcher:fo,ReactCurrentBatchConfig:Gv,ReactCurrentOwner:dS};function w4(){throw Error("act(...) is not supported in production builds of React.")}qe.Children={map:qv,forEach:function(e,t,r){qv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return qv(e,function(){t++}),t},toArray:function(e){return qv(e,function(t){return t})||[]},only:function(e){if(!fS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qe.Component=ju;qe.Fragment=Aq;qe.Profiler=Nq;qe.PureComponent=cS;qe.StrictMode=Fq;qe.Suspense=jq;qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kq;qe.act=w4;qe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=v4({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=dS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)y4.call(t,l)&&!_4.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:Gm,type:e.type,key:o,ref:i,props:n,_owner:a}};qe.createContext=function(e){return e={$$typeof:Lq,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bq,_context:e},e.Consumer=e};qe.createElement=I4;qe.createFactory=function(e){var t=I4.bind(null,e);return t.type=e,t};qe.createRef=function(){return{current:null}};qe.forwardRef=function(e){return{$$typeof:Mq,render:e}};qe.isValidElement=fS;qe.lazy=function(e){return{$$typeof:Vq,_payload:{_status:-1,_result:e},_init:qq}};qe.memo=function(e,t){return{$$typeof:Uq,type:e,compare:t===void 0?null:t}};qe.startTransition=function(e){var t=Gv.transition;Gv.transition={};try{e()}finally{Gv.transition=t}};qe.unstable_act=w4;qe.useCallback=function(e,t){return fo.current.useCallback(e,t)};qe.useContext=function(e){return fo.current.useContext(e)};qe.useDebugValue=function(){};qe.useDeferredValue=function(e){return fo.current.useDeferredValue(e)};qe.useEffect=function(e,t){return fo.current.useEffect(e,t)};qe.useId=function(){return fo.current.useId()};qe.useImperativeHandle=function(e,t,r){return fo.current.useImperativeHandle(e,t,r)};qe.useInsertionEffect=function(e,t){return fo.current.useInsertionEffect(e,t)};qe.useLayoutEffect=function(e,t){return fo.current.useLayoutEffect(e,t)};qe.useMemo=function(e,t){return fo.current.useMemo(e,t)};qe.useReducer=function(e,t,r){return fo.current.useReducer(e,t,r)};qe.useRef=function(e){return fo.current.useRef(e)};qe.useState=function(e){return fo.current.useState(e)};qe.useSyncExternalStore=function(e,t,r){return fo.current.useSyncExternalStore(e,t,r)};qe.useTransition=function(){return fo.current.useTransition()};qe.version="18.3.1"});var S=Pi((ofe,k4)=>{"use strict";k4.exports=S4()});var K4=Pi(rx=>{"use strict";var vK=S(),xK=Symbol.for("react.element"),bK=Symbol.for("react.fragment"),yK=Object.prototype.hasOwnProperty,_K=vK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,IK={key:!0,ref:!0,__self:!0,__source:!0};function q4(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)yK.call(t,n)&&!IK.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:xK,type:e,key:i,ref:a,props:o,_owner:_K.current}}rx.Fragment=bK;rx.jsx=q4;rx.jsxs=q4});var R=Pi((yme,G4)=>{"use strict";G4.exports=K4()});var T5=Pi(gt=>{"use strict";function o1(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<wx(o,t))e[n]=t,e[r]=o,r=n;else break e}}function oi(e){return e.length===0?null:e[0]}function kx(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var a=2*(n+1)-1,s=e[a],l=a+1,c=e[l];if(0>wx(s,r))l<o&&0>wx(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(l<o&&0>wx(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function wx(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(w5=performance,gt.unstable_now=function(){return w5.now()}):(e1=Date,S5=e1.now(),gt.unstable_now=function(){return e1.now()-S5});var w5,e1,S5,Ti=[],ws=[],tG=1,Sn=null,Qr=3,Cx=!1,nc=!1,gp=!1,P5=typeof setTimeout=="function"?setTimeout:null,$5=typeof clearTimeout=="function"?clearTimeout:null,k5=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function n1(e){for(var t=oi(ws);t!==null;){if(t.callback===null)kx(ws);else if(t.startTime<=e)kx(ws),t.sortIndex=t.expirationTime,o1(Ti,t);else break;t=oi(ws)}}function i1(e){if(gp=!1,n1(e),!nc)if(oi(Ti)!==null)nc=!0,s1(a1);else{var t=oi(ws);t!==null&&l1(i1,t.startTime-e)}}function a1(e,t){nc=!1,gp&&(gp=!1,$5(vp),vp=-1),Cx=!0;var r=Qr;try{for(n1(t),Sn=oi(Ti);Sn!==null&&(!(Sn.expirationTime>t)||e&&!E5());){var n=Sn.callback;if(typeof n=="function"){Sn.callback=null,Qr=Sn.priorityLevel;var o=n(Sn.expirationTime<=t);t=gt.unstable_now(),typeof o=="function"?Sn.callback=o:Sn===oi(Ti)&&kx(Ti),n1(t)}else kx(Ti);Sn=oi(Ti)}if(Sn!==null)var i=!0;else{var a=oi(ws);a!==null&&l1(i1,a.startTime-t),i=!1}return i}finally{Sn=null,Qr=r,Cx=!1}}var Px=!1,Sx=null,vp=-1,R5=5,D5=-1;function E5(){return!(gt.unstable_now()-D5<R5)}function t1(){if(Sx!==null){var e=gt.unstable_now();D5=e;var t=!0;try{t=Sx(!0,e)}finally{t?hp():(Px=!1,Sx=null)}}else Px=!1}var hp;typeof k5=="function"?hp=function(){k5(t1)}:typeof MessageChannel<"u"?(r1=new MessageChannel,C5=r1.port2,r1.port1.onmessage=t1,hp=function(){C5.postMessage(null)}):hp=function(){P5(t1,0)};var r1,C5;function s1(e){Sx=e,Px||(Px=!0,hp())}function l1(e,t){vp=P5(function(){e(gt.unstable_now())},t)}gt.unstable_IdlePriority=5;gt.unstable_ImmediatePriority=1;gt.unstable_LowPriority=4;gt.unstable_NormalPriority=3;gt.unstable_Profiling=null;gt.unstable_UserBlockingPriority=2;gt.unstable_cancelCallback=function(e){e.callback=null};gt.unstable_continueExecution=function(){nc||Cx||(nc=!0,s1(a1))};gt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R5=0<e?Math.floor(1e3/e):5};gt.unstable_getCurrentPriorityLevel=function(){return Qr};gt.unstable_getFirstCallbackNode=function(){return oi(Ti)};gt.unstable_next=function(e){switch(Qr){case 1:case 2:case 3:var t=3;break;default:t=Qr}var r=Qr;Qr=t;try{return e()}finally{Qr=r}};gt.unstable_pauseExecution=function(){};gt.unstable_requestPaint=function(){};gt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Qr;Qr=e;try{return t()}finally{Qr=r}};gt.unstable_scheduleCallback=function(e,t,r){var n=gt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:tG++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,o1(ws,e),oi(Ti)===null&&e===oi(ws)&&(gp?($5(vp),vp=-1):gp=!0,l1(i1,r-n))):(e.sortIndex=o,o1(Ti,e),nc||Cx||(nc=!0,s1(a1))),e};gt.unstable_shouldYield=E5;gt.unstable_wrapCallback=function(e){var t=Qr;return function(){var r=Qr;Qr=t;try{return e.apply(this,arguments)}finally{Qr=r}}}});var z5=Pi((Ebe,O5)=>{"use strict";O5.exports=T5()});var BN=Pi(un=>{"use strict";var rG=S(),ln=z5();function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var jA=new Set,Lp={};function vc(e,t){Sd(e,t),Sd(e+"Capture",t)}function Sd(e,t){for(Lp[e]=t,e=0;e<t.length;e++)jA.add(t[e])}var $a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E1=Object.prototype.hasOwnProperty,oG=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A5={},F5={};function nG(e){return E1.call(F5,e)?!0:E1.call(A5,e)?!1:oG.test(e)?F5[e]=!0:(A5[e]=!0,!1)}function iG(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aG(e,t,r,n){if(t===null||typeof t>"u"||iG(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function go(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new go(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new go(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new go(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new go(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lr[e]=new go(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new go(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new go(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new go(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new go(e,5,!1,e.toLowerCase(),null,!1,!1)});var wk=/[\-:]([a-z])/g;function Sk(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wk,Sk);Lr[t]=new go(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wk,Sk);Lr[t]=new go(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wk,Sk);Lr[t]=new go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new go(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new go(e,1,!1,e.toLowerCase(),null,!0,!0)});function kk(e,t,r,n){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aG(t,r,o,n)&&(r=null),n||o===null?nG(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Ta=rG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$x=Symbol.for("react.element"),ad=Symbol.for("react.portal"),sd=Symbol.for("react.fragment"),Ck=Symbol.for("react.strict_mode"),T1=Symbol.for("react.profiler"),UA=Symbol.for("react.provider"),VA=Symbol.for("react.context"),Pk=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),z1=Symbol.for("react.suspense_list"),$k=Symbol.for("react.memo"),ks=Symbol.for("react.lazy"),HA=Symbol.for("react.offscreen"),N5=Symbol.iterator;function xp(e){return e===null||typeof e!="object"?null:(e=N5&&e[N5]||e["@@iterator"],typeof e=="function"?e:null)}var Vt=Object.assign,c1;function Cp(e){if(c1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);c1=t&&t[1]||""}return`
2
+ `+c1+e}var u1=!1;function d1(e,t){if(!e||u1)return"";u1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
3
+ `),i=n.stack.split(`
4
+ `),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
5
+ `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{u1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cp(e):""}function sG(e){switch(e.tag){case 5:return Cp(e.type);case 16:return Cp("Lazy");case 13:return Cp("Suspense");case 19:return Cp("SuspenseList");case 0:case 2:case 15:return e=d1(e.type,!1),e;case 11:return e=d1(e.type.render,!1),e;case 1:return e=d1(e.type,!0),e;default:return""}}function A1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sd:return"Fragment";case ad:return"Portal";case T1:return"Profiler";case Ck:return"StrictMode";case O1:return"Suspense";case z1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VA:return(e.displayName||"Context")+".Consumer";case UA:return(e._context.displayName||"Context")+".Provider";case Pk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $k:return t=e.displayName||null,t!==null?t:A1(e.type)||"Memo";case ks:t=e._payload,e=e._init;try{return A1(e(t))}catch{}}return null}function lG(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A1(t);case 8:return t===Ck?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ls(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cG(e){var t=WA(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rx(e){e._valueTracker||(e._valueTracker=cG(e))}function ZA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=WA(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ob(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function F1(e,t){var r=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function B5(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ls(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qA(e,t){t=t.checked,t!=null&&kk(e,"checked",t,!1)}function N1(e,t){qA(e,t);var r=Ls(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?B1(e,t.type,r):t.hasOwnProperty("defaultValue")&&B1(e,t.type,Ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function L5(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function B1(e,t,r){(t!=="number"||ob(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Pp=Array.isArray;function xd(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ls(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function L1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return Vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function M5(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(re(92));if(Pp(r)){if(1<r.length)throw Error(re(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ls(r)}}function KA(e,t){var r=Ls(t.value),n=Ls(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function j5(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function GA(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function M1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?GA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dx,XA=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dx=Dx||document.createElement("div"),Dx.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dx.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Dp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uG=["Webkit","ms","Moz","O"];Object.keys(Dp).forEach(function(e){uG.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dp[t]=Dp[e]})});function QA(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Dp.hasOwnProperty(e)&&Dp[e]?(""+t).trim():t+"px"}function JA(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=QA(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var dG=Vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function j1(e,t){if(t){if(dG[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function U1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var V1=null;function Rk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var H1=null,bd=null,yd=null;function U5(e){if(e=nh(e)){if(typeof H1!="function")throw Error(re(280));var t=e.stateNode;t&&(t=Eb(t),H1(e.stateNode,e.type,t))}}function YA(e){bd?yd?yd.push(e):yd=[e]:bd=e}function eF(){if(bd){var e=bd,t=yd;if(yd=bd=null,U5(e),t)for(e=0;e<t.length;e++)U5(t[e])}}function tF(e,t){return e(t)}function rF(){}var f1=!1;function oF(e,t,r){if(f1)return e(t,r);f1=!0;try{return tF(e,t,r)}finally{f1=!1,(bd!==null||yd!==null)&&(rF(),eF())}}function jp(e,t){var r=e.stateNode;if(r===null)return null;var n=Eb(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(re(231,t,typeof r));return r}var W1=!1;if($a)try{nd={},Object.defineProperty(nd,"passive",{get:function(){W1=!0}}),window.addEventListener("test",nd,nd),window.removeEventListener("test",nd,nd)}catch{W1=!1}var nd;function fG(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Ep=!1,nb=null,ib=!1,Z1=null,mG={onError:function(e){Ep=!0,nb=e}};function pG(e,t,r,n,o,i,a,s,l){Ep=!1,nb=null,fG.apply(mG,arguments)}function hG(e,t,r,n,o,i,a,s,l){if(pG.apply(this,arguments),Ep){if(Ep){var c=nb;Ep=!1,nb=null}else throw Error(re(198));ib||(ib=!0,Z1=c)}}function xc(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function nF(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function V5(e){if(xc(e)!==e)throw Error(re(188))}function gG(e){var t=e.alternate;if(!t){if(t=xc(e),t===null)throw Error(re(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return V5(o),e;if(i===n)return V5(o),t;i=i.sibling}throw Error(re(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(re(189))}}if(r.alternate!==n)throw Error(re(190))}if(r.tag!==3)throw Error(re(188));return r.stateNode.current===r?e:t}function iF(e){return e=gG(e),e!==null?aF(e):null}function aF(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aF(e);if(t!==null)return t;e=e.sibling}return null}var sF=ln.unstable_scheduleCallback,H5=ln.unstable_cancelCallback,vG=ln.unstable_shouldYield,xG=ln.unstable_requestPaint,er=ln.unstable_now,bG=ln.unstable_getCurrentPriorityLevel,Dk=ln.unstable_ImmediatePriority,lF=ln.unstable_UserBlockingPriority,ab=ln.unstable_NormalPriority,yG=ln.unstable_LowPriority,cF=ln.unstable_IdlePriority,Pb=null,Fi=null;function _G(e){if(Fi&&typeof Fi.onCommitFiberRoot=="function")try{Fi.onCommitFiberRoot(Pb,e,void 0,(e.current.flags&128)===128)}catch{}}var li=Math.clz32?Math.clz32:SG,IG=Math.log,wG=Math.LN2;function SG(e){return e>>>=0,e===0?32:31-(IG(e)/wG|0)|0}var Ex=64,Tx=4194304;function $p(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sb(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=$p(s):(i&=a,i!==0&&(n=$p(i)))}else a=r&~o,a!==0?n=$p(a):i!==0&&(n=$p(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-li(t),o=1<<r,n|=e[r],t&=~o;return n}function kG(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function CG(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-li(i),s=1<<a,l=o[a];l===-1?((s&r)===0||(s&n)!==0)&&(o[a]=kG(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function q1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uF(){var e=Ex;return Ex<<=1,(Ex&4194240)===0&&(Ex=64),e}function m1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rh(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-li(t),e[t]=r}function PG(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-li(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Ek(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-li(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ct=0;function dF(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var fF,Tk,mF,pF,hF,K1=!1,Ox=[],Es=null,Ts=null,Os=null,Up=new Map,Vp=new Map,Ps=[],$G="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function W5(e,t){switch(e){case"focusin":case"focusout":Es=null;break;case"dragenter":case"dragleave":Ts=null;break;case"mouseover":case"mouseout":Os=null;break;case"pointerover":case"pointerout":Up.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vp.delete(t.pointerId)}}function bp(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=nh(t),t!==null&&Tk(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function RG(e,t,r,n,o){switch(t){case"focusin":return Es=bp(Es,e,t,r,n,o),!0;case"dragenter":return Ts=bp(Ts,e,t,r,n,o),!0;case"mouseover":return Os=bp(Os,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Up.set(i,bp(Up.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Vp.set(i,bp(Vp.get(i)||null,e,t,r,n,o)),!0}return!1}function gF(e){var t=sc(e.target);if(t!==null){var r=xc(t);if(r!==null){if(t=r.tag,t===13){if(t=nF(r),t!==null){e.blockedOn=t,hF(e.priority,function(){mF(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qx(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=G1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);V1=n,r.target.dispatchEvent(n),V1=null}else return t=nh(r),t!==null&&Tk(t),e.blockedOn=r,!1;t.shift()}return!0}function Z5(e,t,r){qx(e)&&r.delete(t)}function DG(){K1=!1,Es!==null&&qx(Es)&&(Es=null),Ts!==null&&qx(Ts)&&(Ts=null),Os!==null&&qx(Os)&&(Os=null),Up.forEach(Z5),Vp.forEach(Z5)}function yp(e,t){e.blockedOn===t&&(e.blockedOn=null,K1||(K1=!0,ln.unstable_scheduleCallback(ln.unstable_NormalPriority,DG)))}function Hp(e){function t(o){return yp(o,e)}if(0<Ox.length){yp(Ox[0],e);for(var r=1;r<Ox.length;r++){var n=Ox[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Es!==null&&yp(Es,e),Ts!==null&&yp(Ts,e),Os!==null&&yp(Os,e),Up.forEach(t),Vp.forEach(t),r=0;r<Ps.length;r++)n=Ps[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ps.length&&(r=Ps[0],r.blockedOn===null);)gF(r),r.blockedOn===null&&Ps.shift()}var _d=Ta.ReactCurrentBatchConfig,lb=!0;function EG(e,t,r,n){var o=ct,i=_d.transition;_d.transition=null;try{ct=1,Ok(e,t,r,n)}finally{ct=o,_d.transition=i}}function TG(e,t,r,n){var o=ct,i=_d.transition;_d.transition=null;try{ct=4,Ok(e,t,r,n)}finally{ct=o,_d.transition=i}}function Ok(e,t,r,n){if(lb){var o=G1(e,t,r,n);if(o===null)y1(e,t,n,cb,r),W5(e,n);else if(RG(o,e,t,r,n))n.stopPropagation();else if(W5(e,n),t&4&&-1<$G.indexOf(e)){for(;o!==null;){var i=nh(o);if(i!==null&&fF(i),i=G1(e,t,r,n),i===null&&y1(e,t,n,cb,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else y1(e,t,n,null,r)}}var cb=null;function G1(e,t,r,n){if(cb=null,e=Rk(n),e=sc(e),e!==null)if(t=xc(e),t===null)e=null;else if(r=t.tag,r===13){if(e=nF(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cb=e,null}function vF(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bG()){case Dk:return 1;case lF:return 4;case ab:case yG:return 16;case cF:return 536870912;default:return 16}default:return 16}}var Rs=null,zk=null,Kx=null;function xF(){if(Kx)return Kx;var e,t=zk,r=t.length,n,o="value"in Rs?Rs.value:Rs.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return Kx=o.slice(e,1<n?1-n:void 0)}function Gx(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zx(){return!0}function q5(){return!1}function cn(e){function t(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zx:q5,this.isPropagationStopped=q5,this}return Vt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=zx)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=zx)},persist:function(){},isPersistent:zx}),t}var Ed={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ak=cn(Ed),oh=Vt({},Ed,{view:0,detail:0}),OG=cn(oh),p1,h1,_p,$b=Vt({},oh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fk,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_p&&(_p&&e.type==="mousemove"?(p1=e.screenX-_p.screenX,h1=e.screenY-_p.screenY):h1=p1=0,_p=e),p1)},movementY:function(e){return"movementY"in e?e.movementY:h1}}),K5=cn($b),zG=Vt({},$b,{dataTransfer:0}),AG=cn(zG),FG=Vt({},oh,{relatedTarget:0}),g1=cn(FG),NG=Vt({},Ed,{animationName:0,elapsedTime:0,pseudoElement:0}),BG=cn(NG),LG=Vt({},Ed,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),MG=cn(LG),jG=Vt({},Ed,{data:0}),G5=cn(jG),UG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VG={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HG[e])?!!t[e]:!1}function Fk(){return WG}var ZG=Vt({},oh,{key:function(e){if(e.key){var t=UG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gx(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VG[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fk,charCode:function(e){return e.type==="keypress"?Gx(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gx(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qG=cn(ZG),KG=Vt({},$b,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X5=cn(KG),GG=Vt({},oh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fk}),XG=cn(GG),QG=Vt({},Ed,{propertyName:0,elapsedTime:0,pseudoElement:0}),JG=cn(QG),YG=Vt({},$b,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eX=cn(YG),tX=[9,13,27,32],Nk=$a&&"CompositionEvent"in window,Tp=null;$a&&"documentMode"in document&&(Tp=document.documentMode);var rX=$a&&"TextEvent"in window&&!Tp,bF=$a&&(!Nk||Tp&&8<Tp&&11>=Tp),Q5=" ",J5=!1;function yF(e,t){switch(e){case"keyup":return tX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _F(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ld=!1;function oX(e,t){switch(e){case"compositionend":return _F(t);case"keypress":return t.which!==32?null:(J5=!0,Q5);case"textInput":return e=t.data,e===Q5&&J5?null:e;default:return null}}function nX(e,t){if(ld)return e==="compositionend"||!Nk&&yF(e,t)?(e=xF(),Kx=zk=Rs=null,ld=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bF&&t.locale!=="ko"?null:t.data;default:return null}}var iX={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Y5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iX[e.type]:t==="textarea"}function IF(e,t,r,n){YA(n),t=ub(t,"onChange"),0<t.length&&(r=new Ak("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Op=null,Wp=null;function aX(e){OF(e,0)}function Rb(e){var t=dd(e);if(ZA(t))return e}function sX(e,t){if(e==="change")return t}var wF=!1;$a&&($a?(Fx="oninput"in document,Fx||(v1=document.createElement("div"),v1.setAttribute("oninput","return;"),Fx=typeof v1.oninput=="function"),Ax=Fx):Ax=!1,wF=Ax&&(!document.documentMode||9<document.documentMode));var Ax,Fx,v1;function eA(){Op&&(Op.detachEvent("onpropertychange",SF),Wp=Op=null)}function SF(e){if(e.propertyName==="value"&&Rb(Wp)){var t=[];IF(t,Wp,e,Rk(e)),oF(aX,t)}}function lX(e,t,r){e==="focusin"?(eA(),Op=t,Wp=r,Op.attachEvent("onpropertychange",SF)):e==="focusout"&&eA()}function cX(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rb(Wp)}function uX(e,t){if(e==="click")return Rb(t)}function dX(e,t){if(e==="input"||e==="change")return Rb(t)}function fX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ui=typeof Object.is=="function"?Object.is:fX;function Zp(e,t){if(ui(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!E1.call(t,o)||!ui(e[o],t[o]))return!1}return!0}function tA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rA(e,t){var r=tA(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tA(r)}}function kF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function CF(){for(var e=window,t=ob();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ob(e.document)}return t}function Bk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mX(e){var t=CF(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kF(r.ownerDocument.documentElement,r)){if(n!==null&&Bk(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=rA(r,i);var a=rA(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pX=$a&&"documentMode"in document&&11>=document.documentMode,cd=null,X1=null,zp=null,Q1=!1;function oA(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Q1||cd==null||cd!==ob(n)||(n=cd,"selectionStart"in n&&Bk(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zp&&Zp(zp,n)||(zp=n,n=ub(X1,"onSelect"),0<n.length&&(t=new Ak("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=cd)))}function Nx(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ud={animationend:Nx("Animation","AnimationEnd"),animationiteration:Nx("Animation","AnimationIteration"),animationstart:Nx("Animation","AnimationStart"),transitionend:Nx("Transition","TransitionEnd")},x1={},PF={};$a&&(PF=document.createElement("div").style,"AnimationEvent"in window||(delete ud.animationend.animation,delete ud.animationiteration.animation,delete ud.animationstart.animation),"TransitionEvent"in window||delete ud.transitionend.transition);function Db(e){if(x1[e])return x1[e];if(!ud[e])return e;var t=ud[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in PF)return x1[e]=t[r];return e}var $F=Db("animationend"),RF=Db("animationiteration"),DF=Db("animationstart"),EF=Db("transitionend"),TF=new Map,nA="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function js(e,t){TF.set(e,t),vc(t,[e])}for(Bx=0;Bx<nA.length;Bx++)Lx=nA[Bx],iA=Lx.toLowerCase(),aA=Lx[0].toUpperCase()+Lx.slice(1),js(iA,"on"+aA);var Lx,iA,aA,Bx;js($F,"onAnimationEnd");js(RF,"onAnimationIteration");js(DF,"onAnimationStart");js("dblclick","onDoubleClick");js("focusin","onFocus");js("focusout","onBlur");js(EF,"onTransitionEnd");Sd("onMouseEnter",["mouseout","mouseover"]);Sd("onMouseLeave",["mouseout","mouseover"]);Sd("onPointerEnter",["pointerout","pointerover"]);Sd("onPointerLeave",["pointerout","pointerover"]);vc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vc("onBeforeInput",["compositionend","keypress","textInput","paste"]);vc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hX=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rp));function sA(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,hG(n,t,void 0,e),e.currentTarget=null}function OF(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;sA(o,s,c),i=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;sA(o,s,c),i=l}}}if(ib)throw e=Z1,ib=!1,Z1=null,e}function Ct(e,t){var r=t[rk];r===void 0&&(r=t[rk]=new Set);var n=e+"__bubble";r.has(n)||(zF(t,e,2,!1),r.add(n))}function b1(e,t,r){var n=0;t&&(n|=4),zF(r,e,n,t)}var Mx="_reactListening"+Math.random().toString(36).slice(2);function qp(e){if(!e[Mx]){e[Mx]=!0,jA.forEach(function(r){r!=="selectionchange"&&(hX.has(r)||b1(r,!1,e),b1(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mx]||(t[Mx]=!0,b1("selectionchange",!1,t))}}function zF(e,t,r,n){switch(vF(t)){case 1:var o=EG;break;case 4:o=TG;break;default:o=Ok}r=o.bind(null,t,r,e),o=void 0,!W1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function y1(e,t,r,n,o){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=sc(s),a===null)return;if(l=a.tag,l===5||l===6){n=i=a;continue e}s=s.parentNode}}n=n.return}oF(function(){var c=i,u=Rk(r),d=[];e:{var f=TF.get(e);if(f!==void 0){var m=Ak,p=e;switch(e){case"keypress":if(Gx(r)===0)break e;case"keydown":case"keyup":m=qG;break;case"focusin":p="focus",m=g1;break;case"focusout":p="blur",m=g1;break;case"beforeblur":case"afterblur":m=g1;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=K5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=AG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=XG;break;case $F:case RF:case DF:m=BG;break;case EF:m=JG;break;case"scroll":m=OG;break;case"wheel":m=eX;break;case"copy":case"cut":case"paste":m=MG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=X5}var h=(t&4)!==0,y=!h&&e==="scroll",v=h?f!==null?f+"Capture":null:f;h=[];for(var g=c,x;g!==null;){x=g;var _=x.stateNode;if(x.tag===5&&_!==null&&(x=_,v!==null&&(_=jp(g,v),_!=null&&h.push(Kp(g,_,x)))),y)break;g=g.return}0<h.length&&(f=new m(f,p,null,r,u),d.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==V1&&(p=r.relatedTarget||r.fromElement)&&(sc(p)||p[Ra]))break e;if((m||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,m?(p=r.relatedTarget||r.toElement,m=c,p=p?sc(p):null,p!==null&&(y=xc(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(m=null,p=c),m!==p)){if(h=K5,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=X5,_="onPointerLeave",v="onPointerEnter",g="pointer"),y=m==null?f:dd(m),x=p==null?f:dd(p),f=new h(_,g+"leave",m,r,u),f.target=y,f.relatedTarget=x,_=null,sc(u)===c&&(h=new h(v,g+"enter",p,r,u),h.target=x,h.relatedTarget=y,_=h),y=_,m&&p)t:{for(h=m,v=p,g=0,x=h;x;x=id(x))g++;for(x=0,_=v;_;_=id(_))x++;for(;0<g-x;)h=id(h),g--;for(;0<x-g;)v=id(v),x--;for(;g--;){if(h===v||v!==null&&h===v.alternate)break t;h=id(h),v=id(v)}h=null}else h=null;m!==null&&lA(d,f,m,h,!1),p!==null&&y!==null&&lA(d,y,p,h,!0)}}e:{if(f=c?dd(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var w=sX;else if(Y5(f))if(wF)w=dX;else{w=cX;var I=lX}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=uX);if(w&&(w=w(e,c))){IF(d,w,r,u);break e}I&&I(e,f,c),e==="focusout"&&(I=f._wrapperState)&&I.controlled&&f.type==="number"&&B1(f,"number",f.value)}switch(I=c?dd(c):window,e){case"focusin":(Y5(I)||I.contentEditable==="true")&&(cd=I,X1=c,zp=null);break;case"focusout":zp=X1=cd=null;break;case"mousedown":Q1=!0;break;case"contextmenu":case"mouseup":case"dragend":Q1=!1,oA(d,r,u);break;case"selectionchange":if(pX)break;case"keydown":case"keyup":oA(d,r,u)}var k;if(Nk)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ld?yF(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(bF&&r.locale!=="ko"&&(ld||C!=="onCompositionStart"?C==="onCompositionEnd"&&ld&&(k=xF()):(Rs=u,zk="value"in Rs?Rs.value:Rs.textContent,ld=!0)),I=ub(c,C),0<I.length&&(C=new G5(C,e,null,r,u),d.push({event:C,listeners:I}),k?C.data=k:(k=_F(r),k!==null&&(C.data=k)))),(k=rX?oX(e,r):nX(e,r))&&(c=ub(c,"onBeforeInput"),0<c.length&&(u=new G5("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=k))}OF(d,t)})}function Kp(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ub(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=jp(e,r),i!=null&&n.unshift(Kp(e,i,o)),i=jp(e,t),i!=null&&n.push(Kp(e,i,o))),e=e.return}return n}function id(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lA(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,o?(l=jp(r,i),l!=null&&a.unshift(Kp(r,l,s))):o||(l=jp(r,i),l!=null&&a.push(Kp(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var gX=/\r\n?/g,vX=/\u0000|\uFFFD/g;function cA(e){return(typeof e=="string"?e:""+e).replace(gX,`
6
+ `).replace(vX,"")}function jx(e,t,r){if(t=cA(t),cA(e)!==t&&r)throw Error(re(425))}function db(){}var J1=null,Y1=null;function ek(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tk=typeof setTimeout=="function"?setTimeout:void 0,xX=typeof clearTimeout=="function"?clearTimeout:void 0,uA=typeof Promise=="function"?Promise:void 0,bX=typeof queueMicrotask=="function"?queueMicrotask:typeof uA<"u"?function(e){return uA.resolve(null).then(e).catch(yX)}:tk;function yX(e){setTimeout(function(){throw e})}function _1(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Hp(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Hp(t)}function zs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function dA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Td=Math.random().toString(36).slice(2),Ai="__reactFiber$"+Td,Gp="__reactProps$"+Td,Ra="__reactContainer$"+Td,rk="__reactEvents$"+Td,_X="__reactListeners$"+Td,IX="__reactHandles$"+Td;function sc(e){var t=e[Ai];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ra]||r[Ai]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=dA(e);e!==null;){if(r=e[Ai])return r;e=dA(e)}return t}e=r,r=e.parentNode}return null}function nh(e){return e=e[Ai]||e[Ra],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function dd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function Eb(e){return e[Gp]||null}var ok=[],fd=-1;function Us(e){return{current:e}}function Pt(e){0>fd||(e.current=ok[fd],ok[fd]=null,fd--)}function vt(e,t){fd++,ok[fd]=e.current,e.current=t}var Ms={},to=Us(Ms),Uo=Us(!1),fc=Ms;function kd(e,t){var r=e.type.contextTypes;if(!r)return Ms;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Vo(e){return e=e.childContextTypes,e!=null}function fb(){Pt(Uo),Pt(to)}function fA(e,t,r){if(to.current!==Ms)throw Error(re(168));vt(to,t),vt(Uo,r)}function AF(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(re(108,lG(e)||"Unknown",o));return Vt({},r,n)}function mb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ms,fc=to.current,vt(to,e),vt(Uo,Uo.current),!0}function mA(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=AF(e,t,fc),n.__reactInternalMemoizedMergedChildContext=e,Pt(Uo),Pt(to),vt(to,e)):Pt(Uo),vt(Uo,r)}var Sa=null,Tb=!1,I1=!1;function FF(e){Sa===null?Sa=[e]:Sa.push(e)}function wX(e){Tb=!0,FF(e)}function Vs(){if(!I1&&Sa!==null){I1=!0;var e=0,t=ct;try{var r=Sa;for(ct=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Sa=null,Tb=!1}catch(o){throw Sa!==null&&(Sa=Sa.slice(e+1)),sF(Dk,Vs),o}finally{ct=t,I1=!1}}return null}var md=[],pd=0,pb=null,hb=0,kn=[],Cn=0,mc=null,ka=1,Ca="";function ic(e,t){md[pd++]=hb,md[pd++]=pb,pb=e,hb=t}function NF(e,t,r){kn[Cn++]=ka,kn[Cn++]=Ca,kn[Cn++]=mc,mc=e;var n=ka;e=Ca;var o=32-li(n)-1;n&=~(1<<o),r+=1;var i=32-li(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,ka=1<<32-li(t)+o|r<<o|n,Ca=i+e}else ka=1<<i|r<<o|n,Ca=e}function Lk(e){e.return!==null&&(ic(e,1),NF(e,1,0))}function Mk(e){for(;e===pb;)pb=md[--pd],md[pd]=null,hb=md[--pd],md[pd]=null;for(;e===mc;)mc=kn[--Cn],kn[Cn]=null,Ca=kn[--Cn],kn[Cn]=null,ka=kn[--Cn],kn[Cn]=null}var sn=null,an=null,zt=!1,si=null;function BF(e,t){var r=Pn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function pA(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,an=zs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,an=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=mc!==null?{id:ka,overflow:Ca}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Pn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,sn=e,an=null,!0):!1;default:return!1}}function nk(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ik(e){if(zt){var t=an;if(t){var r=t;if(!pA(e,t)){if(nk(e))throw Error(re(418));t=zs(r.nextSibling);var n=sn;t&&pA(e,t)?BF(n,r):(e.flags=e.flags&-4097|2,zt=!1,sn=e)}}else{if(nk(e))throw Error(re(418));e.flags=e.flags&-4097|2,zt=!1,sn=e}}}function hA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function Ux(e){if(e!==sn)return!1;if(!zt)return hA(e),zt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ek(e.type,e.memoizedProps)),t&&(t=an)){if(nk(e))throw LF(),Error(re(418));for(;t;)BF(e,t),t=zs(t.nextSibling)}if(hA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){an=zs(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}an=null}}else an=sn?zs(e.stateNode.nextSibling):null;return!0}function LF(){for(var e=an;e;)e=zs(e.nextSibling)}function Cd(){an=sn=null,zt=!1}function jk(e){si===null?si=[e]:si.push(e)}var SX=Ta.ReactCurrentBatchConfig;function Ip(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(re(309));var n=r.stateNode}if(!n)throw Error(re(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(re(284));if(!r._owner)throw Error(re(290,e))}return e}function Vx(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gA(e){var t=e._init;return t(e._payload)}function MF(e){function t(v,g){if(e){var x=v.deletions;x===null?(v.deletions=[g],v.flags|=16):x.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=Bs(v,g),v.index=0,v.sibling=null,v}function i(v,g,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<g?(v.flags|=2,g):x):(v.flags|=2,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,x,_){return g===null||g.tag!==6?(g=R1(x,v.mode,_),g.return=v,g):(g=o(g,x),g.return=v,g)}function l(v,g,x,_){var w=x.type;return w===sd?u(v,g,x.props.children,_,x.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ks&&gA(w)===g.type)?(_=o(g,x.props),_.ref=Ip(v,g,x),_.return=v,_):(_=rb(x.type,x.key,x.props,null,v.mode,_),_.ref=Ip(v,g,x),_.return=v,_)}function c(v,g,x,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=D1(x,v.mode,_),g.return=v,g):(g=o(g,x.children||[]),g.return=v,g)}function u(v,g,x,_,w){return g===null||g.tag!==7?(g=dc(x,v.mode,_,w),g.return=v,g):(g=o(g,x),g.return=v,g)}function d(v,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=R1(""+g,v.mode,x),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case $x:return x=rb(g.type,g.key,g.props,null,v.mode,x),x.ref=Ip(v,null,g),x.return=v,x;case ad:return g=D1(g,v.mode,x),g.return=v,g;case ks:var _=g._init;return d(v,_(g._payload),x)}if(Pp(g)||xp(g))return g=dc(g,v.mode,x,null),g.return=v,g;Vx(v,g)}return null}function f(v,g,x,_){var w=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:s(v,g,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case $x:return x.key===w?l(v,g,x,_):null;case ad:return x.key===w?c(v,g,x,_):null;case ks:return w=x._init,f(v,g,w(x._payload),_)}if(Pp(x)||xp(x))return w!==null?null:u(v,g,x,_,null);Vx(v,x)}return null}function m(v,g,x,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(x)||null,s(g,v,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case $x:return v=v.get(_.key===null?x:_.key)||null,l(g,v,_,w);case ad:return v=v.get(_.key===null?x:_.key)||null,c(g,v,_,w);case ks:var I=_._init;return m(v,g,x,I(_._payload),w)}if(Pp(_)||xp(_))return v=v.get(x)||null,u(g,v,_,w,null);Vx(g,_)}return null}function p(v,g,x,_){for(var w=null,I=null,k=g,C=g=0,U=null;k!==null&&C<x.length;C++){k.index>C?(U=k,k=null):U=k.sibling;var H=f(v,k,x[C],_);if(H===null){k===null&&(k=U);break}e&&k&&H.alternate===null&&t(v,k),g=i(H,g,C),I===null?w=H:I.sibling=H,I=H,k=U}if(C===x.length)return r(v,k),zt&&ic(v,C),w;if(k===null){for(;C<x.length;C++)k=d(v,x[C],_),k!==null&&(g=i(k,g,C),I===null?w=k:I.sibling=k,I=k);return zt&&ic(v,C),w}for(k=n(v,k);C<x.length;C++)U=m(k,v,C,x[C],_),U!==null&&(e&&U.alternate!==null&&k.delete(U.key===null?C:U.key),g=i(U,g,C),I===null?w=U:I.sibling=U,I=U);return e&&k.forEach(function(W){return t(v,W)}),zt&&ic(v,C),w}function h(v,g,x,_){var w=xp(x);if(typeof w!="function")throw Error(re(150));if(x=w.call(x),x==null)throw Error(re(151));for(var I=w=null,k=g,C=g=0,U=null,H=x.next();k!==null&&!H.done;C++,H=x.next()){k.index>C?(U=k,k=null):U=k.sibling;var W=f(v,k,H.value,_);if(W===null){k===null&&(k=U);break}e&&k&&W.alternate===null&&t(v,k),g=i(W,g,C),I===null?w=W:I.sibling=W,I=W,k=U}if(H.done)return r(v,k),zt&&ic(v,C),w;if(k===null){for(;!H.done;C++,H=x.next())H=d(v,H.value,_),H!==null&&(g=i(H,g,C),I===null?w=H:I.sibling=H,I=H);return zt&&ic(v,C),w}for(k=n(v,k);!H.done;C++,H=x.next())H=m(k,v,C,H.value,_),H!==null&&(e&&H.alternate!==null&&k.delete(H.key===null?C:H.key),g=i(H,g,C),I===null?w=H:I.sibling=H,I=H);return e&&k.forEach(function(X){return t(v,X)}),zt&&ic(v,C),w}function y(v,g,x,_){if(typeof x=="object"&&x!==null&&x.type===sd&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case $x:e:{for(var w=x.key,I=g;I!==null;){if(I.key===w){if(w=x.type,w===sd){if(I.tag===7){r(v,I.sibling),g=o(I,x.props.children),g.return=v,v=g;break e}}else if(I.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ks&&gA(w)===I.type){r(v,I.sibling),g=o(I,x.props),g.ref=Ip(v,I,x),g.return=v,v=g;break e}r(v,I);break}else t(v,I);I=I.sibling}x.type===sd?(g=dc(x.props.children,v.mode,_,x.key),g.return=v,v=g):(_=rb(x.type,x.key,x.props,null,v.mode,_),_.ref=Ip(v,g,x),_.return=v,v=_)}return a(v);case ad:e:{for(I=x.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(v,g.sibling),g=o(g,x.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=D1(x,v.mode,_),g.return=v,v=g}return a(v);case ks:return I=x._init,y(v,g,I(x._payload),_)}if(Pp(x))return p(v,g,x,_);if(xp(x))return h(v,g,x,_);Vx(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(v,g.sibling),g=o(g,x),g.return=v,v=g):(r(v,g),g=R1(x,v.mode,_),g.return=v,v=g),a(v)):r(v,g)}return y}var Pd=MF(!0),jF=MF(!1),gb=Us(null),vb=null,hd=null,Uk=null;function Vk(){Uk=hd=vb=null}function Hk(e){var t=gb.current;Pt(gb),e._currentValue=t}function ak(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Id(e,t){vb=e,Uk=hd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(jo=!0),e.firstContext=null)}function Rn(e){var t=e._currentValue;if(Uk!==e)if(e={context:e,memoizedValue:t,next:null},hd===null){if(vb===null)throw Error(re(308));hd=e,vb.dependencies={lanes:0,firstContext:e}}else hd=hd.next=e;return t}var lc=null;function Wk(e){lc===null?lc=[e]:lc.push(e)}function UF(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Wk(t)):(r.next=o.next,o.next=r),t.interleaved=r,Da(e,n)}function Da(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Cs=!1;function Zk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function As(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ye&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Da(e,r)}return o=n.interleaved,o===null?(t.next=t,Wk(n)):(t.next=o.next,o.next=t),n.interleaved=t,Da(e,r)}function Xx(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ek(e,r)}}function vA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function xb(e,t,r,n){var o=e.updateQueue;Cs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,m=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,h=s;switch(f=t,m=r,h.tag){case 1:if(p=h.payload,typeof p=="function"){d=p.call(m,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=h.payload,f=typeof p=="function"?p.call(m,d,f):p,f==null)break e;d=Vt({},d,f);break e;case 2:Cs=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);hc|=a,e.lanes=a,e.memoizedState=d}}function xA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(re(191,o));o.call(n)}}}var ih={},Ni=Us(ih),Xp=Us(ih),Qp=Us(ih);function cc(e){if(e===ih)throw Error(re(174));return e}function qk(e,t){switch(vt(Qp,t),vt(Xp,e),vt(Ni,ih),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:M1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=M1(t,e)}Pt(Ni),vt(Ni,t)}function $d(){Pt(Ni),Pt(Xp),Pt(Qp)}function HF(e){cc(Qp.current);var t=cc(Ni.current),r=M1(t,e.type);t!==r&&(vt(Xp,e),vt(Ni,r))}function Kk(e){Xp.current===e&&(Pt(Ni),Pt(Xp))}var jt=Us(0);function bb(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var w1=[];function Gk(){for(var e=0;e<w1.length;e++)w1[e]._workInProgressVersionPrimary=null;w1.length=0}var Qx=Ta.ReactCurrentDispatcher,S1=Ta.ReactCurrentBatchConfig,pc=0,Ut=null,cr=null,wr=null,yb=!1,Ap=!1,Jp=0,kX=0;function Jr(){throw Error(re(321))}function Xk(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ui(e[r],t[r]))return!1;return!0}function Qk(e,t,r,n,o,i){if(pc=i,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qx.current=e===null||e.memoizedState===null?RX:DX,e=r(n,o),Ap){i=0;do{if(Ap=!1,Jp=0,25<=i)throw Error(re(301));i+=1,wr=cr=null,t.updateQueue=null,Qx.current=EX,e=r(n,o)}while(Ap)}if(Qx.current=_b,t=cr!==null&&cr.next!==null,pc=0,wr=cr=Ut=null,yb=!1,t)throw Error(re(300));return e}function Jk(){var e=Jp!==0;return Jp=0,e}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wr===null?Ut.memoizedState=wr=e:wr=wr.next=e,wr}function Dn(){if(cr===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=cr.next;var t=wr===null?Ut.memoizedState:wr.next;if(t!==null)wr=t,cr=e;else{if(e===null)throw Error(re(310));cr=e,e={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null},wr===null?Ut.memoizedState=wr=e:wr=wr.next=e}return wr}function Yp(e,t){return typeof t=="function"?t(e):t}function k1(e){var t=Dn(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=cr,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((pc&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=n):l=l.next=d,Ut.lanes|=u,hc|=u}c=c.next}while(c!==null&&c!==i);l===null?a=n:l.next=s,ui(n,t.memoizedState)||(jo=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Ut.lanes|=i,hc|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function C1(e){var t=Dn(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ui(i,t.memoizedState)||(jo=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function WF(){}function ZF(e,t){var r=Ut,n=Dn(),o=t(),i=!ui(n.memoizedState,o);if(i&&(n.memoizedState=o,jo=!0),n=n.queue,Yk(GF.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||wr!==null&&wr.memoizedState.tag&1){if(r.flags|=2048,eh(9,KF.bind(null,r,n,o,t),void 0,null),Sr===null)throw Error(re(349));(pc&30)!==0||qF(r,t,o)}return o}function qF(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function KF(e,t,r,n){t.value=r,t.getSnapshot=n,XF(t)&&QF(e)}function GF(e,t,r){return r(function(){XF(t)&&QF(e)})}function XF(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ui(e,r)}catch{return!0}}function QF(e){var t=Da(e,1);t!==null&&ci(t,e,1,-1)}function bA(e){var t=zi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yp,lastRenderedState:e},t.queue=e,e=e.dispatch=$X.bind(null,Ut,e),[t.memoizedState,e]}function eh(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function JF(){return Dn().memoizedState}function Jx(e,t,r,n){var o=zi();Ut.flags|=e,o.memoizedState=eh(1|t,r,void 0,n===void 0?null:n)}function Ob(e,t,r,n){var o=Dn();n=n===void 0?null:n;var i=void 0;if(cr!==null){var a=cr.memoizedState;if(i=a.destroy,n!==null&&Xk(n,a.deps)){o.memoizedState=eh(t,r,i,n);return}}Ut.flags|=e,o.memoizedState=eh(1|t,r,i,n)}function yA(e,t){return Jx(8390656,8,e,t)}function Yk(e,t){return Ob(2048,8,e,t)}function YF(e,t){return Ob(4,2,e,t)}function eN(e,t){return Ob(4,4,e,t)}function tN(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rN(e,t,r){return r=r!=null?r.concat([e]):null,Ob(4,4,tN.bind(null,t,e),r)}function eC(){}function oN(e,t){var r=Dn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Xk(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function nN(e,t){var r=Dn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Xk(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function iN(e,t,r){return(pc&21)===0?(e.baseState&&(e.baseState=!1,jo=!0),e.memoizedState=r):(ui(r,t)||(r=uF(),Ut.lanes|=r,hc|=r,e.baseState=!0),t)}function CX(e,t){var r=ct;ct=r!==0&&4>r?r:4,e(!0);var n=S1.transition;S1.transition={};try{e(!1),t()}finally{ct=r,S1.transition=n}}function aN(){return Dn().memoizedState}function PX(e,t,r){var n=Ns(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sN(e))lN(t,r);else if(r=UF(e,t,r,n),r!==null){var o=ho();ci(r,e,n,o),cN(r,t,n)}}function $X(e,t,r){var n=Ns(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sN(e))lN(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,ui(s,a)){var l=t.interleaved;l===null?(o.next=o,Wk(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}r=UF(e,t,o,n),r!==null&&(o=ho(),ci(r,e,n,o),cN(r,t,n))}}function sN(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function lN(e,t){Ap=yb=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function cN(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ek(e,r)}}var _b={readContext:Rn,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},RX={readContext:Rn,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Rn,useEffect:yA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Jx(4194308,4,tN.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Jx(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jx(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PX.bind(null,Ut,e),[n.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:bA,useDebugValue:eC,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=bA(!1),t=e[0];return e=CX.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ut,o=zi();if(zt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),Sr===null)throw Error(re(349));(pc&30)!==0||qF(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,yA(GF.bind(null,n,i,e),[e]),n.flags|=2048,eh(9,KF.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=Sr.identifierPrefix;if(zt){var r=Ca,n=ka;r=(n&~(1<<32-li(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Jp++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=kX++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DX={readContext:Rn,useCallback:oN,useContext:Rn,useEffect:Yk,useImperativeHandle:rN,useInsertionEffect:YF,useLayoutEffect:eN,useMemo:nN,useReducer:k1,useRef:JF,useState:function(){return k1(Yp)},useDebugValue:eC,useDeferredValue:function(e){var t=Dn();return iN(t,cr.memoizedState,e)},useTransition:function(){var e=k1(Yp)[0],t=Dn().memoizedState;return[e,t]},useMutableSource:WF,useSyncExternalStore:ZF,useId:aN,unstable_isNewReconciler:!1},EX={readContext:Rn,useCallback:oN,useContext:Rn,useEffect:Yk,useImperativeHandle:rN,useInsertionEffect:YF,useLayoutEffect:eN,useMemo:nN,useReducer:C1,useRef:JF,useState:function(){return C1(Yp)},useDebugValue:eC,useDeferredValue:function(e){var t=Dn();return cr===null?t.memoizedState=e:iN(t,cr.memoizedState,e)},useTransition:function(){var e=C1(Yp)[0],t=Dn().memoizedState;return[e,t]},useMutableSource:WF,useSyncExternalStore:ZF,useId:aN,unstable_isNewReconciler:!1};function ii(e,t){if(e&&e.defaultProps){t=Vt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function sk(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Vt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var zb={isMounted:function(e){return(e=e._reactInternals)?xc(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ho(),o=Ns(e),i=Pa(n,o);i.payload=t,r!=null&&(i.callback=r),t=As(e,i,o),t!==null&&(ci(t,e,o,n),Xx(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ho(),o=Ns(e),i=Pa(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=As(e,i,o),t!==null&&(ci(t,e,o,n),Xx(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ho(),n=Ns(e),o=Pa(r,n);o.tag=2,t!=null&&(o.callback=t),t=As(e,o,n),t!==null&&(ci(t,e,n,r),Xx(t,e,n))}};function _A(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!Zp(r,n)||!Zp(o,i):!0}function uN(e,t,r){var n=!1,o=Ms,i=t.contextType;return typeof i=="object"&&i!==null?i=Rn(i):(o=Vo(t)?fc:to.current,n=t.contextTypes,i=(n=n!=null)?kd(e,o):Ms),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zb,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function IA(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&zb.enqueueReplaceState(t,t.state,null)}function lk(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Zk(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Rn(i):(i=Vo(t)?fc:to.current,o.context=kd(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(sk(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&zb.enqueueReplaceState(o,o.state,null),xb(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Rd(e,t){try{var r="",n=t;do r+=sG(n),n=n.return;while(n);var o=r}catch(i){o=`
7
+ Error generating stack: `+i.message+`
8
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function P1(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ck(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var TX=typeof WeakMap=="function"?WeakMap:Map;function dN(e,t,r){r=Pa(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){wb||(wb=!0,bk=n),ck(e,t)},r}function fN(e,t,r){r=Pa(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ck(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ck(e,t),typeof n!="function"&&(Fs===null?Fs=new Set([this]):Fs.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function wA(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new TX;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=ZX.bind(null,e,t,r),t.then(e,e))}function SA(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kA(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Pa(-1,1),t.tag=2,As(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var OX=Ta.ReactCurrentOwner,jo=!1;function po(e,t,r,n){t.child=e===null?jF(t,null,r,n):Pd(t,e.child,r,n)}function CA(e,t,r,n,o){r=r.render;var i=t.ref;return Id(t,o),n=Qk(e,t,r,n,i,o),r=Jk(),e!==null&&!jo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ea(e,t,o)):(zt&&r&&Lk(t),t.flags|=1,po(e,t,n,o),t.child)}function PA(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!lC(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,mN(e,t,i,n,o)):(e=rb(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Zp,r(a,n)&&e.ref===t.ref)return Ea(e,t,o)}return t.flags|=1,e=Bs(i,n),e.ref=t.ref,e.return=t,t.child=e}function mN(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Zp(i,n)&&e.ref===t.ref)if(jo=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(jo=!0);else return t.lanes=e.lanes,Ea(e,t,o)}return uk(e,t,r,n,o)}function pN(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},vt(vd,nn),nn|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,vt(vd,nn),nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,vt(vd,nn),nn|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,vt(vd,nn),nn|=n;return po(e,t,o,r),t.child}function hN(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function uk(e,t,r,n,o){var i=Vo(r)?fc:to.current;return i=kd(t,i),Id(t,o),r=Qk(e,t,r,n,i,o),n=Jk(),e!==null&&!jo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ea(e,t,o)):(zt&&n&&Lk(t),t.flags|=1,po(e,t,r,o),t.child)}function $A(e,t,r,n,o){if(Vo(r)){var i=!0;mb(t)}else i=!1;if(Id(t,o),t.stateNode===null)Yx(e,t),uN(t,r,n),lk(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Rn(c):(c=Vo(r)?fc:to.current,c=kd(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&IA(t,a,n,c),Cs=!1;var f=t.memoizedState;a.state=f,xb(t,n,a,o),l=t.memoizedState,s!==n||f!==l||Uo.current||Cs?(typeof u=="function"&&(sk(t,r,u,n),l=t.memoizedState),(s=Cs||_A(t,r,s,n,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,VF(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ii(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Rn(l):(l=Vo(r)?fc:to.current,l=kd(t,l));var m=r.getDerivedStateFromProps;(u=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&IA(t,a,n,l),Cs=!1,f=t.memoizedState,a.state=f,xb(t,n,a,o);var p=t.memoizedState;s!==d||f!==p||Uo.current||Cs?(typeof m=="function"&&(sk(t,r,m,n),p=t.memoizedState),(c=Cs||_A(t,r,c,n,f,p,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return dk(e,t,r,n,i,o)}function dk(e,t,r,n,o,i){hN(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&mA(t,r,!1),Ea(e,t,i);n=t.stateNode,OX.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Pd(t,e.child,null,i),t.child=Pd(t,null,s,i)):po(e,t,s,i),t.memoizedState=n.state,o&&mA(t,r,!0),t.child}function gN(e){var t=e.stateNode;t.pendingContext?fA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fA(e,t.context,!1),qk(e,t.containerInfo)}function RA(e,t,r,n,o){return Cd(),jk(o),t.flags|=256,po(e,t,r,n),t.child}var fk={dehydrated:null,treeContext:null,retryLane:0};function mk(e){return{baseLanes:e,cachePool:null,transitions:null}}function vN(e,t,r){var n=t.pendingProps,o=jt.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),vt(jt,o&1),e===null)return ik(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Nb(a,n,0,null),e=dc(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=mk(r),t.memoizedState=fk,e):tC(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return zX(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Bs(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Bs(s,i):(i=dc(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?mk(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=fk,n}return i=e.child,e=i.sibling,n=Bs(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function tC(e,t){return t=Nb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hx(e,t,r,n){return n!==null&&jk(n),Pd(t,e.child,null,r),e=tC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zX(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=P1(Error(re(422))),Hx(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Nb({mode:"visible",children:n.children},o,0,null),i=dc(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Pd(t,e.child,null,a),t.child.memoizedState=mk(a),t.memoizedState=fk,i);if((t.mode&1)===0)return Hx(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(re(419)),n=P1(i,n,void 0),Hx(e,t,a,n)}if(s=(a&e.childLanes)!==0,jo||s){if(n=Sr,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Da(e,o),ci(n,e,o,-1))}return sC(),n=P1(Error(re(421))),Hx(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=qX.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,an=zs(o.nextSibling),sn=t,zt=!0,si=null,e!==null&&(kn[Cn++]=ka,kn[Cn++]=Ca,kn[Cn++]=mc,ka=e.id,Ca=e.overflow,mc=t),t=tC(t,n.children),t.flags|=4096,t)}function DA(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ak(e.return,t,r)}function $1(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function xN(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(po(e,t,n.children,r),n=jt.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&DA(e,r,t);else if(e.tag===19)DA(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(vt(jt,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&bb(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),$1(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&bb(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}$1(t,!0,r,null,i);break;case"together":$1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yx(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ea(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hc|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,r=Bs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Bs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function AX(e,t,r){switch(t.tag){case 3:gN(t),Cd();break;case 5:HF(t);break;case 1:Vo(t.type)&&mb(t);break;case 4:qk(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;vt(gb,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(vt(jt,jt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?vN(e,t,r):(vt(jt,jt.current&1),e=Ea(e,t,r),e!==null?e.sibling:null);vt(jt,jt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return xN(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),vt(jt,jt.current),n)break;return null;case 22:case 23:return t.lanes=0,pN(e,t,r)}return Ea(e,t,r)}var bN,pk,yN,_N;bN=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};pk=function(){};yN=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,cc(Ni.current);var i=null;switch(r){case"input":o=F1(e,o),n=F1(e,n),i=[];break;case"select":o=Vt({},o,{value:void 0}),n=Vt({},n,{value:void 0}),i=[];break;case"textarea":o=L1(e,o),n=L1(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=db)}j1(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lp.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=o?.[c],n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lp.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ct("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};_N=function(e,t,r,n){r!==n&&(t.flags|=4)};function wp(e,t){if(!zt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Yr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function FX(e,t,r){var n=t.pendingProps;switch(Mk(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(t),null;case 1:return Vo(t.type)&&fb(),Yr(t),null;case 3:return n=t.stateNode,$d(),Pt(Uo),Pt(to),Gk(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ux(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,si!==null&&(Ik(si),si=null))),pk(e,t),Yr(t),null;case 5:Kk(t);var o=cc(Qp.current);if(r=t.type,e!==null&&t.stateNode!=null)yN(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(re(166));return Yr(t),null}if(e=cc(Ni.current),Ux(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Ai]=t,n[Gp]=i,e=(t.mode&1)!==0,r){case"dialog":Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":case"embed":Ct("load",n);break;case"video":case"audio":for(o=0;o<Rp.length;o++)Ct(Rp[o],n);break;case"source":Ct("error",n);break;case"img":case"image":case"link":Ct("error",n),Ct("load",n);break;case"details":Ct("toggle",n);break;case"input":B5(n,i),Ct("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Ct("invalid",n);break;case"textarea":M5(n,i),Ct("invalid",n)}j1(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&jx(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&jx(n.textContent,s,e),o=["children",""+s]):Lp.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ct("scroll",n)}switch(r){case"input":Rx(n),L5(n,i,!0);break;case"textarea":Rx(n),j5(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=db)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=GA(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ai]=t,e[Gp]=n,bN(e,t,!1,!1),t.stateNode=e;e:{switch(a=U1(r,n),r){case"dialog":Ct("cancel",e),Ct("close",e),o=n;break;case"iframe":case"object":case"embed":Ct("load",e),o=n;break;case"video":case"audio":for(o=0;o<Rp.length;o++)Ct(Rp[o],e);o=n;break;case"source":Ct("error",e),o=n;break;case"img":case"image":case"link":Ct("error",e),Ct("load",e),o=n;break;case"details":Ct("toggle",e),o=n;break;case"input":B5(e,n),o=F1(e,n),Ct("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Vt({},n,{value:void 0}),Ct("invalid",e);break;case"textarea":M5(e,n),o=L1(e,n),Ct("invalid",e);break;default:o=n}j1(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?JA(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&XA(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Mp(e,l):typeof l=="number"&&Mp(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Lp.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ct("scroll",e):l!=null&&kk(e,i,l,a))}switch(r){case"input":Rx(e),L5(e,n,!1);break;case"textarea":Rx(e),j5(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ls(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?xd(e,!!n.multiple,i,!1):n.defaultValue!=null&&xd(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=db)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Yr(t),null;case 6:if(e&&t.stateNode!=null)_N(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(re(166));if(r=cc(Qp.current),cc(Ni.current),Ux(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ai]=t,(i=n.nodeValue!==r)&&(e=sn,e!==null))switch(e.tag){case 3:jx(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jx(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ai]=t,t.stateNode=n}return Yr(t),null;case 13:if(Pt(jt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(zt&&an!==null&&(t.mode&1)!==0&&(t.flags&128)===0)LF(),Cd(),t.flags|=98560,i=!1;else if(i=Ux(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(re(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(re(317));i[Ai]=t}else Cd(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Yr(t),i=!1}else si!==null&&(Ik(si),si=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(jt.current&1)!==0?ur===0&&(ur=3):sC())),t.updateQueue!==null&&(t.flags|=4),Yr(t),null);case 4:return $d(),pk(e,t),e===null&&qp(t.stateNode.containerInfo),Yr(t),null;case 10:return Hk(t.type._context),Yr(t),null;case 17:return Vo(t.type)&&fb(),Yr(t),null;case 19:if(Pt(jt),i=t.memoizedState,i===null)return Yr(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)wp(i,!1);else{if(ur!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=bb(e),a!==null){for(t.flags|=128,wp(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return vt(jt,jt.current&1|2),t.child}e=e.sibling}i.tail!==null&&er()>Dd&&(t.flags|=128,n=!0,wp(i,!1),t.lanes=4194304)}else{if(!n)if(e=bb(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wp(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!zt)return Yr(t),null}else 2*er()-i.renderingStartTime>Dd&&r!==1073741824&&(t.flags|=128,n=!0,wp(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=er(),t.sibling=null,r=jt.current,vt(jt,n?r&1|2:r&1),t):(Yr(t),null);case 22:case 23:return aC(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(nn&1073741824)!==0&&(Yr(t),t.subtreeFlags&6&&(t.flags|=8192)):Yr(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function NX(e,t){switch(Mk(t),t.tag){case 1:return Vo(t.type)&&fb(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $d(),Pt(Uo),Pt(to),Gk(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Kk(t),null;case 13:if(Pt(jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));Cd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pt(jt),null;case 4:return $d(),null;case 10:return Hk(t.type._context),null;case 22:case 23:return aC(),null;case 24:return null;default:return null}}var Wx=!1,eo=!1,BX=typeof WeakSet=="function"?WeakSet:Set,he=null;function gd(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Gt(e,t,n)}else r.current=null}function hk(e,t,r){try{r()}catch(n){Gt(e,t,n)}}var EA=!1;function LX(e,t){if(J1=lb,e=CF(),Bk(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var m;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=a),f===i&&++u===n&&(l=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Y1={focusedElem:e,selectionRange:r},lb=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var p=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,y=p.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:ii(t.type,h),y);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(_){Gt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return p=EA,EA=!1,p}function Fp(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&hk(t,r,i)}o=o.next}while(o!==n)}}function Ab(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function gk(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function IN(e){var t=e.alternate;t!==null&&(e.alternate=null,IN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[Gp],delete t[rk],delete t[_X],delete t[IX])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wN(e){return e.tag===5||e.tag===3||e.tag===4}function TA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wN(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=db));else if(n!==4&&(e=e.child,e!==null))for(vk(e,t,r),e=e.sibling;e!==null;)vk(e,t,r),e=e.sibling}function xk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(xk(e,t,r),e=e.sibling;e!==null;)xk(e,t,r),e=e.sibling}var Nr=null,ai=!1;function Ss(e,t,r){for(r=r.child;r!==null;)SN(e,t,r),r=r.sibling}function SN(e,t,r){if(Fi&&typeof Fi.onCommitFiberUnmount=="function")try{Fi.onCommitFiberUnmount(Pb,r)}catch{}switch(r.tag){case 5:eo||gd(r,t);case 6:var n=Nr,o=ai;Nr=null,Ss(e,t,r),Nr=n,ai=o,Nr!==null&&(ai?(e=Nr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Nr.removeChild(r.stateNode));break;case 18:Nr!==null&&(ai?(e=Nr,r=r.stateNode,e.nodeType===8?_1(e.parentNode,r):e.nodeType===1&&_1(e,r),Hp(e)):_1(Nr,r.stateNode));break;case 4:n=Nr,o=ai,Nr=r.stateNode.containerInfo,ai=!0,Ss(e,t,r),Nr=n,ai=o;break;case 0:case 11:case 14:case 15:if(!eo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&hk(r,t,a),o=o.next}while(o!==n)}Ss(e,t,r);break;case 1:if(!eo&&(gd(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Gt(r,t,s)}Ss(e,t,r);break;case 21:Ss(e,t,r);break;case 22:r.mode&1?(eo=(n=eo)||r.memoizedState!==null,Ss(e,t,r),eo=n):Ss(e,t,r);break;default:Ss(e,t,r)}}function OA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BX),t.forEach(function(n){var o=KX.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ni(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Nr=s.stateNode,ai=!1;break e;case 3:Nr=s.stateNode.containerInfo,ai=!0;break e;case 4:Nr=s.stateNode.containerInfo,ai=!0;break e}s=s.return}if(Nr===null)throw Error(re(160));SN(i,a,o),Nr=null,ai=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Gt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kN(t,e),t=t.sibling}function kN(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ni(t,e),Oi(e),n&4){try{Fp(3,e,e.return),Ab(3,e)}catch(h){Gt(e,e.return,h)}try{Fp(5,e,e.return)}catch(h){Gt(e,e.return,h)}}break;case 1:ni(t,e),Oi(e),n&512&&r!==null&&gd(r,r.return);break;case 5:if(ni(t,e),Oi(e),n&512&&r!==null&&gd(r,r.return),e.flags&32){var o=e.stateNode;try{Mp(o,"")}catch(h){Gt(e,e.return,h)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&qA(o,i),U1(s,a);var c=U1(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?JA(o,d):u==="dangerouslySetInnerHTML"?XA(o,d):u==="children"?Mp(o,d):kk(o,u,d,c)}switch(s){case"input":N1(o,i);break;case"textarea":KA(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?xd(o,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?xd(o,!!i.multiple,i.defaultValue,!0):xd(o,!!i.multiple,i.multiple?[]:"",!1))}o[Gp]=i}catch(h){Gt(e,e.return,h)}}break;case 6:if(ni(t,e),Oi(e),n&4){if(e.stateNode===null)throw Error(re(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){Gt(e,e.return,h)}}break;case 3:if(ni(t,e),Oi(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(h){Gt(e,e.return,h)}break;case 4:ni(t,e),Oi(e);break;case 13:ni(t,e),Oi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(nC=er())),n&4&&OA(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(eo=(c=eo)||u,ni(t,e),eo=c):ni(t,e),Oi(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(e.mode&1)!==0)for(he=e,u=e.child;u!==null;){for(d=he=u;he!==null;){switch(f=he,m=f.child,f.tag){case 0:case 11:case 14:case 15:Fp(4,f,f.return);break;case 1:gd(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(h){Gt(n,r,h)}}break;case 5:gd(f,f.return);break;case 22:if(f.memoizedState!==null){AA(d);continue}}m!==null?(m.return=f,he=m):AA(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=QA("display",a))}catch(h){Gt(e,e.return,h)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(h){Gt(e,e.return,h)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ni(t,e),Oi(e),n&4&&OA(e);break;case 21:break;default:ni(t,e),Oi(e)}}function Oi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(wN(r)){var n=r;break e}r=r.return}throw Error(re(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Mp(o,""),n.flags&=-33);var i=TA(e);xk(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=TA(e);vk(e,s,a);break;default:throw Error(re(161))}}catch(l){Gt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function MX(e,t,r){he=e,CN(e,t,r)}function CN(e,t,r){for(var n=(e.mode&1)!==0;he!==null;){var o=he,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Wx;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||eo;s=Wx;var c=eo;if(Wx=a,(eo=l)&&!c)for(he=o;he!==null;)a=he,l=a.child,a.tag===22&&a.memoizedState!==null?FA(o):l!==null?(l.return=a,he=l):FA(o);for(;i!==null;)he=i,CN(i,t,r),i=i.sibling;he=o,Wx=s,eo=c}zA(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,he=i):zA(e,t,r)}}function zA(e){for(;he!==null;){var t=he;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:eo||Ab(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!eo)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ii(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&xA(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}xA(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Hp(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}eo||t.flags&512&&gk(t)}catch(f){Gt(t,t.return,f)}}if(t===e){he=null;break}if(r=t.sibling,r!==null){r.return=t.return,he=r;break}he=t.return}}function AA(e){for(;he!==null;){var t=he;if(t===e){he=null;break}var r=t.sibling;if(r!==null){r.return=t.return,he=r;break}he=t.return}}function FA(e){for(;he!==null;){var t=he;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ab(4,t)}catch(l){Gt(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){Gt(t,o,l)}}var i=t.return;try{gk(t)}catch(l){Gt(t,i,l)}break;case 5:var a=t.return;try{gk(t)}catch(l){Gt(t,a,l)}}}catch(l){Gt(t,t.return,l)}if(t===e){he=null;break}var s=t.sibling;if(s!==null){s.return=t.return,he=s;break}he=t.return}}var jX=Math.ceil,Ib=Ta.ReactCurrentDispatcher,rC=Ta.ReactCurrentOwner,$n=Ta.ReactCurrentBatchConfig,Ye=0,Sr=null,ar=null,Br=0,nn=0,vd=Us(0),ur=0,th=null,hc=0,Fb=0,oC=0,Np=null,Mo=null,nC=0,Dd=1/0,wa=null,wb=!1,bk=null,Fs=null,Zx=!1,Ds=null,Sb=0,Bp=0,yk=null,eb=-1,tb=0;function ho(){return(Ye&6)!==0?er():eb!==-1?eb:eb=er()}function Ns(e){return(e.mode&1)===0?1:(Ye&2)!==0&&Br!==0?Br&-Br:SX.transition!==null?(tb===0&&(tb=uF()),tb):(e=ct,e!==0||(e=window.event,e=e===void 0?16:vF(e.type)),e)}function ci(e,t,r,n){if(50<Bp)throw Bp=0,yk=null,Error(re(185));rh(e,r,n),((Ye&2)===0||e!==Sr)&&(e===Sr&&((Ye&2)===0&&(Fb|=r),ur===4&&$s(e,Br)),Ho(e,n),r===1&&Ye===0&&(t.mode&1)===0&&(Dd=er()+500,Tb&&Vs()))}function Ho(e,t){var r=e.callbackNode;CG(e,t);var n=sb(e,e===Sr?Br:0);if(n===0)r!==null&&H5(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&H5(r),t===1)e.tag===0?wX(NA.bind(null,e)):FF(NA.bind(null,e)),bX(function(){(Ye&6)===0&&Vs()}),r=null;else{switch(dF(n)){case 1:r=Dk;break;case 4:r=lF;break;case 16:r=ab;break;case 536870912:r=cF;break;default:r=ab}r=zN(r,PN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function PN(e,t){if(eb=-1,tb=0,(Ye&6)!==0)throw Error(re(327));var r=e.callbackNode;if(wd()&&e.callbackNode!==r)return null;var n=sb(e,e===Sr?Br:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=kb(e,n);else{t=n;var o=Ye;Ye|=2;var i=RN();(Sr!==e||Br!==t)&&(wa=null,Dd=er()+500,uc(e,t));do try{HX();break}catch(s){$N(e,s)}while(!0);Vk(),Ib.current=i,Ye=o,ar!==null?t=0:(Sr=null,Br=0,t=ur)}if(t!==0){if(t===2&&(o=q1(e),o!==0&&(n=o,t=_k(e,o))),t===1)throw r=th,uc(e,0),$s(e,n),Ho(e,er()),r;if(t===6)$s(e,n);else{if(o=e.current.alternate,(n&30)===0&&!UX(o)&&(t=kb(e,n),t===2&&(i=q1(e),i!==0&&(n=i,t=_k(e,i))),t===1))throw r=th,uc(e,0),$s(e,n),Ho(e,er()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(re(345));case 2:ac(e,Mo,wa);break;case 3:if($s(e,n),(n&130023424)===n&&(t=nC+500-er(),10<t)){if(sb(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){ho(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=tk(ac.bind(null,e,Mo,wa),t);break}ac(e,Mo,wa);break;case 4:if($s(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-li(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=er()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jX(n/1960))-n,10<n){e.timeoutHandle=tk(ac.bind(null,e,Mo,wa),n);break}ac(e,Mo,wa);break;case 5:ac(e,Mo,wa);break;default:throw Error(re(329))}}}return Ho(e,er()),e.callbackNode===r?PN.bind(null,e):null}function _k(e,t){var r=Np;return e.current.memoizedState.isDehydrated&&(uc(e,t).flags|=256),e=kb(e,t),e!==2&&(t=Mo,Mo=r,t!==null&&Ik(t)),e}function Ik(e){Mo===null?Mo=e:Mo.push.apply(Mo,e)}function UX(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!ui(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $s(e,t){for(t&=~oC,t&=~Fb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-li(t),n=1<<r;e[r]=-1,t&=~n}}function NA(e){if((Ye&6)!==0)throw Error(re(327));wd();var t=sb(e,0);if((t&1)===0)return Ho(e,er()),null;var r=kb(e,t);if(e.tag!==0&&r===2){var n=q1(e);n!==0&&(t=n,r=_k(e,n))}if(r===1)throw r=th,uc(e,0),$s(e,t),Ho(e,er()),r;if(r===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ac(e,Mo,wa),Ho(e,er()),null}function iC(e,t){var r=Ye;Ye|=1;try{return e(t)}finally{Ye=r,Ye===0&&(Dd=er()+500,Tb&&Vs())}}function gc(e){Ds!==null&&Ds.tag===0&&(Ye&6)===0&&wd();var t=Ye;Ye|=1;var r=$n.transition,n=ct;try{if($n.transition=null,ct=1,e)return e()}finally{ct=n,$n.transition=r,Ye=t,(Ye&6)===0&&Vs()}}function aC(){nn=vd.current,Pt(vd)}function uc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,xX(r)),ar!==null)for(r=ar.return;r!==null;){var n=r;switch(Mk(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&fb();break;case 3:$d(),Pt(Uo),Pt(to),Gk();break;case 5:Kk(n);break;case 4:$d();break;case 13:Pt(jt);break;case 19:Pt(jt);break;case 10:Hk(n.type._context);break;case 22:case 23:aC()}r=r.return}if(Sr=e,ar=e=Bs(e.current,null),Br=nn=t,ur=0,th=null,oC=Fb=hc=0,Mo=Np=null,lc!==null){for(t=0;t<lc.length;t++)if(r=lc[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}lc=null}return e}function $N(e,t){do{var r=ar;try{if(Vk(),Qx.current=_b,yb){for(var n=Ut.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}yb=!1}if(pc=0,wr=cr=Ut=null,Ap=!1,Jp=0,rC.current=null,r===null||r.return===null){ur=1,th=t,ar=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=Br,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=SA(a);if(m!==null){m.flags&=-257,kA(m,a,s,i,t),m.mode&1&&wA(i,c,t),t=m,l=c;var p=t.updateQueue;if(p===null){var h=new Set;h.add(l),t.updateQueue=h}else p.add(l);break e}else{if((t&1)===0){wA(i,c,t),sC();break e}l=Error(re(426))}}else if(zt&&s.mode&1){var y=SA(a);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),kA(y,a,s,i,t),jk(Rd(l,s));break e}}i=l=Rd(l,s),ur!==4&&(ur=2),Np===null?Np=[i]:Np.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=dN(i,l,t);vA(i,v);break e;case 1:s=l;var g=i.type,x=i.stateNode;if((i.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Fs===null||!Fs.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=fN(i,s,t);vA(i,_);break e}}i=i.return}while(i!==null)}EN(r)}catch(w){t=w,ar===r&&r!==null&&(ar=r=r.return);continue}break}while(!0)}function RN(){var e=Ib.current;return Ib.current=_b,e===null?_b:e}function sC(){(ur===0||ur===3||ur===2)&&(ur=4),Sr===null||(hc&268435455)===0&&(Fb&268435455)===0||$s(Sr,Br)}function kb(e,t){var r=Ye;Ye|=2;var n=RN();(Sr!==e||Br!==t)&&(wa=null,uc(e,t));do try{VX();break}catch(o){$N(e,o)}while(!0);if(Vk(),Ye=r,Ib.current=n,ar!==null)throw Error(re(261));return Sr=null,Br=0,ur}function VX(){for(;ar!==null;)DN(ar)}function HX(){for(;ar!==null&&!vG();)DN(ar)}function DN(e){var t=ON(e.alternate,e,nn);e.memoizedProps=e.pendingProps,t===null?EN(e):ar=t,rC.current=null}function EN(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=FX(r,t,nn),r!==null){ar=r;return}}else{if(r=NX(r,t),r!==null){r.flags&=32767,ar=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ur=6,ar=null;return}}if(t=t.sibling,t!==null){ar=t;return}ar=t=e}while(t!==null);ur===0&&(ur=5)}function ac(e,t,r){var n=ct,o=$n.transition;try{$n.transition=null,ct=1,WX(e,t,r,n)}finally{$n.transition=o,ct=n}return null}function WX(e,t,r,n){do wd();while(Ds!==null);if((Ye&6)!==0)throw Error(re(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(PG(e,i),e===Sr&&(ar=Sr=null,Br=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Zx||(Zx=!0,zN(ab,function(){return wd(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=$n.transition,$n.transition=null;var a=ct;ct=1;var s=Ye;Ye|=4,rC.current=null,LX(e,r),kN(r,e),mX(Y1),lb=!!J1,Y1=J1=null,e.current=r,MX(r,e,o),xG(),Ye=s,ct=a,$n.transition=i}else e.current=r;if(Zx&&(Zx=!1,Ds=e,Sb=o),i=e.pendingLanes,i===0&&(Fs=null),_G(r.stateNode,n),Ho(e,er()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(wb)throw wb=!1,e=bk,bk=null,e;return(Sb&1)!==0&&e.tag!==0&&wd(),i=e.pendingLanes,(i&1)!==0?e===yk?Bp++:(Bp=0,yk=e):Bp=0,Vs(),null}function wd(){if(Ds!==null){var e=dF(Sb),t=$n.transition,r=ct;try{if($n.transition=null,ct=16>e?16:e,Ds===null)var n=!1;else{if(e=Ds,Ds=null,Sb=0,(Ye&6)!==0)throw Error(re(331));var o=Ye;for(Ye|=4,he=e.current;he!==null;){var i=he,a=i.child;if((he.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(he=c;he!==null;){var u=he;switch(u.tag){case 0:case 11:case 15:Fp(8,u,i)}var d=u.child;if(d!==null)d.return=u,he=d;else for(;he!==null;){u=he;var f=u.sibling,m=u.return;if(IN(u),u===c){he=null;break}if(f!==null){f.return=m,he=f;break}he=m}}}var p=i.alternate;if(p!==null){var h=p.child;if(h!==null){p.child=null;do{var y=h.sibling;h.sibling=null,h=y}while(h!==null)}}he=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,he=a;else e:for(;he!==null;){if(i=he,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Fp(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,he=v;break e}he=i.return}}var g=e.current;for(he=g;he!==null;){a=he;var x=a.child;if((a.subtreeFlags&2064)!==0&&x!==null)x.return=a,he=x;else e:for(a=g;he!==null;){if(s=he,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Ab(9,s)}}catch(w){Gt(s,s.return,w)}if(s===a){he=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,he=_;break e}he=s.return}}if(Ye=o,Vs(),Fi&&typeof Fi.onPostCommitFiberRoot=="function")try{Fi.onPostCommitFiberRoot(Pb,e)}catch{}n=!0}return n}finally{ct=r,$n.transition=t}}return!1}function BA(e,t,r){t=Rd(r,t),t=dN(e,t,1),e=As(e,t,1),t=ho(),e!==null&&(rh(e,1,t),Ho(e,t))}function Gt(e,t,r){if(e.tag===3)BA(e,e,r);else for(;t!==null;){if(t.tag===3){BA(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Fs===null||!Fs.has(n))){e=Rd(r,e),e=fN(t,e,1),t=As(t,e,1),e=ho(),t!==null&&(rh(t,1,e),Ho(t,e));break}}t=t.return}}function ZX(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ho(),e.pingedLanes|=e.suspendedLanes&r,Sr===e&&(Br&r)===r&&(ur===4||ur===3&&(Br&130023424)===Br&&500>er()-nC?uc(e,0):oC|=r),Ho(e,t)}function TN(e,t){t===0&&((e.mode&1)===0?t=1:(t=Tx,Tx<<=1,(Tx&130023424)===0&&(Tx=4194304)));var r=ho();e=Da(e,t),e!==null&&(rh(e,t,r),Ho(e,r))}function qX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TN(e,r)}function KX(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(t),TN(e,r)}var ON;ON=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Uo.current)jo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return jo=!1,AX(e,t,r);jo=(e.flags&131072)!==0}else jo=!1,zt&&(t.flags&1048576)!==0&&NF(t,hb,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yx(e,t),e=t.pendingProps;var o=kd(t,to.current);Id(t,r),o=Qk(null,t,n,e,o,r);var i=Jk();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vo(n)?(i=!0,mb(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zk(t),o.updater=zb,t.stateNode=o,o._reactInternals=t,lk(t,n,e,r),t=dk(null,t,n,!0,i,r)):(t.tag=0,zt&&i&&Lk(t),po(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yx(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=XX(n),e=ii(n,e),o){case 0:t=uk(null,t,n,e,r);break e;case 1:t=$A(null,t,n,e,r);break e;case 11:t=CA(null,t,n,e,r);break e;case 14:t=PA(null,t,n,ii(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ii(n,o),uk(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ii(n,o),$A(e,t,n,o,r);case 3:e:{if(gN(t),e===null)throw Error(re(387));n=t.pendingProps,i=t.memoizedState,o=i.element,VF(e,t),xb(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Rd(Error(re(423)),t),t=RA(e,t,n,r,o);break e}else if(n!==o){o=Rd(Error(re(424)),t),t=RA(e,t,n,r,o);break e}else for(an=zs(t.stateNode.containerInfo.firstChild),sn=t,zt=!0,si=null,r=jF(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Cd(),n===o){t=Ea(e,t,r);break e}po(e,t,n,r)}t=t.child}return t;case 5:return HF(t),e===null&&ik(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ek(n,o)?a=null:i!==null&&ek(n,i)&&(t.flags|=32),hN(e,t),po(e,t,a,r),t.child;case 6:return e===null&&ik(t),null;case 13:return vN(e,t,r);case 4:return qk(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Pd(t,null,n,r):po(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ii(n,o),CA(e,t,n,o,r);case 7:return po(e,t,t.pendingProps,r),t.child;case 8:return po(e,t,t.pendingProps.children,r),t.child;case 12:return po(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,vt(gb,n._currentValue),n._currentValue=a,i!==null)if(ui(i.value,a)){if(i.children===o.children&&!Uo.current){t=Ea(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Pa(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),ak(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(re(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),ak(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}po(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Id(t,r),o=Rn(o),n=n(o),t.flags|=1,po(e,t,n,r),t.child;case 14:return n=t.type,o=ii(n,t.pendingProps),o=ii(n.type,o),PA(e,t,n,o,r);case 15:return mN(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ii(n,o),Yx(e,t),t.tag=1,Vo(n)?(e=!0,mb(t)):e=!1,Id(t,r),uN(t,n,o),lk(t,n,o,r),dk(null,t,n,!0,e,r);case 19:return xN(e,t,r);case 22:return pN(e,t,r)}throw Error(re(156,t.tag))};function zN(e,t){return sF(e,t)}function GX(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(e,t,r,n){return new GX(e,t,r,n)}function lC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XX(e){if(typeof e=="function")return lC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pk)return 11;if(e===$k)return 14}return 2}function Bs(e,t){var r=e.alternate;return r===null?(r=Pn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")lC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case sd:return dc(r.children,o,i,t);case Ck:a=8,o|=8;break;case T1:return e=Pn(12,r,t,o|2),e.elementType=T1,e.lanes=i,e;case O1:return e=Pn(13,r,t,o),e.elementType=O1,e.lanes=i,e;case z1:return e=Pn(19,r,t,o),e.elementType=z1,e.lanes=i,e;case HA:return Nb(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case UA:a=10;break e;case VA:a=9;break e;case Pk:a=11;break e;case $k:a=14;break e;case ks:a=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Pn(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function dc(e,t,r,n){return e=Pn(7,e,n,t),e.lanes=r,e}function Nb(e,t,r,n){return e=Pn(22,e,n,t),e.elementType=HA,e.lanes=r,e.stateNode={isHidden:!1},e}function R1(e,t,r){return e=Pn(6,e,null,t),e.lanes=r,e}function D1(e,t,r){return t=Pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QX(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=m1(0),this.expirationTimes=m1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cC(e,t,r,n,o,i,a,s,l){return e=new QX(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zk(i),e}function JX(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ad,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function AN(e){if(!e)return Ms;e=e._reactInternals;e:{if(xc(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Vo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var r=e.type;if(Vo(r))return AF(e,r,t)}return t}function FN(e,t,r,n,o,i,a,s,l){return e=cC(r,n,!0,e,o,i,a,s,l),e.context=AN(null),r=e.current,n=ho(),o=Ns(r),i=Pa(n,o),i.callback=t??null,As(r,i,o),e.current.lanes=o,rh(e,o,n),Ho(e,n),e}function Bb(e,t,r,n){var o=t.current,i=ho(),a=Ns(o);return r=AN(r),t.context===null?t.context=r:t.pendingContext=r,t=Pa(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=As(o,t,a),e!==null&&(ci(e,o,a,i),Xx(e,o,a)),a}function Cb(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function LA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function uC(e,t){LA(e,t),(e=e.alternate)&&LA(e,t)}function YX(){return null}var NN=typeof reportError=="function"?reportError:function(e){console.error(e)};function dC(e){this._internalRoot=e}Lb.prototype.render=dC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));Bb(e,t,null,null)};Lb.prototype.unmount=dC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gc(function(){Bb(null,e,null,null)}),t[Ra]=null}};function Lb(e){this._internalRoot=e}Lb.prototype.unstable_scheduleHydration=function(e){if(e){var t=pF();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ps.length&&t!==0&&t<Ps[r].priority;r++);Ps.splice(r,0,e),r===0&&gF(e)}};function fC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mb(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function MA(){}function eQ(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=Cb(a);i.call(c)}}var a=FN(t,n,e,0,null,!1,!1,"",MA);return e._reactRootContainer=a,e[Ra]=a.current,qp(e.nodeType===8?e.parentNode:e),gc(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var c=Cb(l);s.call(c)}}var l=cC(e,0,!1,null,null,!1,!1,"",MA);return e._reactRootContainer=l,e[Ra]=l.current,qp(e.nodeType===8?e.parentNode:e),gc(function(){Bb(t,l,r,n)}),l}function jb(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Cb(a);s.call(l)}}Bb(t,a,e,o)}else a=eQ(r,t,e,o,n);return Cb(a)}fF=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=$p(t.pendingLanes);r!==0&&(Ek(t,r|1),Ho(t,er()),(Ye&6)===0&&(Dd=er()+500,Vs()))}break;case 13:gc(function(){var n=Da(e,1);if(n!==null){var o=ho();ci(n,e,1,o)}}),uC(e,1)}};Tk=function(e){if(e.tag===13){var t=Da(e,134217728);if(t!==null){var r=ho();ci(t,e,134217728,r)}uC(e,134217728)}};mF=function(e){if(e.tag===13){var t=Ns(e),r=Da(e,t);if(r!==null){var n=ho();ci(r,e,t,n)}uC(e,t)}};pF=function(){return ct};hF=function(e,t){var r=ct;try{return ct=e,t()}finally{ct=r}};H1=function(e,t,r){switch(t){case"input":if(N1(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Eb(n);if(!o)throw Error(re(90));ZA(n),N1(n,o)}}}break;case"textarea":KA(e,r);break;case"select":t=r.value,t!=null&&xd(e,!!r.multiple,t,!1)}};tF=iC;rF=gc;var tQ={usingClientEntryPoint:!1,Events:[nh,dd,Eb,YA,eF,iC]},Sp={findFiberByHostInstance:sc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rQ={bundleType:Sp.bundleType,version:Sp.version,rendererPackageName:Sp.rendererPackageName,rendererConfig:Sp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ta.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iF(e),e===null?null:e.stateNode},findFiberByHostInstance:Sp.findFiberByHostInstance||YX,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(kp=__REACT_DEVTOOLS_GLOBAL_HOOK__,!kp.isDisabled&&kp.supportsFiber))try{Pb=kp.inject(rQ),Fi=kp}catch{}var kp;un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tQ;un.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fC(t))throw Error(re(200));return JX(e,t,null,r)};un.createRoot=function(e,t){if(!fC(e))throw Error(re(299));var r=!1,n="",o=NN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=cC(e,1,!1,null,null,r,!1,n,o),e[Ra]=t.current,qp(e.nodeType===8?e.parentNode:e),new dC(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=iF(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return gc(e)};un.hydrate=function(e,t,r){if(!Mb(t))throw Error(re(200));return jb(null,e,t,!0,r)};un.hydrateRoot=function(e,t,r){if(!fC(e))throw Error(re(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=NN;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=FN(t,null,e,1,r??null,o,!1,i,a),e[Ra]=t.current,qp(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Lb(t)};un.render=function(e,t,r){if(!Mb(t))throw Error(re(200));return jb(null,e,t,!1,r)};un.unmountComponentAtNode=function(e){if(!Mb(e))throw Error(re(40));return e._reactRootContainer?(gc(function(){jb(null,null,e,!1,function(){e._reactRootContainer=null,e[Ra]=null})}),!0):!1};un.unstable_batchedUpdates=iC;un.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Mb(r))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return jb(e,t,r,!1,n)};un.version="18.3.1-next-f1338f8080-20240426"});var Hs=Pi((Obe,MN)=>{"use strict";function LN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LN)}catch(e){console.error(e)}}LN(),MN.exports=BN()});var s9=Pi(i$=>{"use strict";var a9=Hs();i$.createRoot=a9.createRoot,i$.hydrateRoot=a9.hydrateRoot;var TVe});var sq=Pi((LJe,aq)=>{"use strict";aq.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var No=function(){return No=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},No.apply(this,arguments)};function Zv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function f4(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var ex=b(S());var Kr=b(S());var Hl="right-scroll-bar-position",Wl="width-before-scroll-bar",mS="with-scroll-bars-hidden",pS="--removed-body-scroll-bar-size";function Xv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var C4=b(S());function P4(e,t){var r=(0,C4.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Qv=b(S());var Gq=typeof window<"u"?Qv.useLayoutEffect:Qv.useEffect,$4=new WeakMap;function hS(e,t){var r=P4(t||null,function(n){return e.forEach(function(o){return Xv(o,n)})});return Gq(function(){var n=$4.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Xv(s,null)}),i.forEach(function(s){o.has(s)||Xv(s,a)})}$4.set(r,e)},[e]),r}function Xq(e){return e}function Qq(e,t){t===void 0&&(t=Xq);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),r}}}};return o}function gS(e){e===void 0&&(e={});var t=Qq(null);return t.options=No({async:!0,ssr:!1},e),t}var R4=b(S()),D4=function(e){var t=e.sideCar,r=Zv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return R4.createElement(n,No({},r))};D4.isSideCarExport=!0;function vS(e,t){return e.useMedium(t),D4}var Jv=gS();var xS=function(){},Xm=Kr.forwardRef(function(e,t){var r=Kr.useRef(null),n=Kr.useState({onScrollCapture:xS,onWheelCapture:xS,onTouchMoveCapture:xS}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,p=e.noIsolation,h=e.inert,y=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,x=e.gapMode,_=Zv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,I=hS([r,t]),k=No(No({},_),o);return Kr.createElement(Kr.Fragment,null,u&&Kr.createElement(w,{sideCar:Jv,removeScrollBar:c,shards:d,noRelative:m,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:x}),a?Kr.cloneElement(Kr.Children.only(s),No(No({},k),{ref:I})):Kr.createElement(g,No({},k,{className:l,ref:I}),s))});Xm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xm.classNames={fullWidth:Wl,zeroRight:Hl};var St=b(S());var Vu=b(S());var O4=b(S());var E4;var T4=function(){if(E4)return E4;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=T4();return t&&e.setAttribute("nonce",t),e}function Yq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eK(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bS=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Jq())&&(Yq(t,r),eK(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var yS=function(){var e=bS();return function(t,r){O4.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Qm=function(){var e=yS(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};var tK={left:0,top:0,right:0,gap:0},_S=function(e){return parseInt(e||"",10)||0},rK=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_S(r),_S(n),_S(o)]},IS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tK;var t=rK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var oK=Qm(),Uu="data-scroll-locked",nK=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
9
+ .`.concat(mS,` {
10
+ overflow: hidden `).concat(n,`;
11
+ padding-right: `).concat(s,"px ").concat(n,`;
12
+ }
13
+ body[`).concat(Uu,`] {
14
+ overflow: hidden `).concat(n,`;
15
+ overscroll-behavior: contain;
16
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
17
+ padding-left: `.concat(o,`px;
18
+ padding-top: `).concat(i,`px;
19
+ padding-right: `).concat(a,`px;
20
+ margin-left:0;
21
+ margin-top:0;
22
+ margin-right: `).concat(s,"px ").concat(n,`;
23
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
24
+ }
25
+
26
+ .`).concat(Hl,` {
27
+ right: `).concat(s,"px ").concat(n,`;
28
+ }
29
+
30
+ .`).concat(Wl,` {
31
+ margin-right: `).concat(s,"px ").concat(n,`;
32
+ }
33
+
34
+ .`).concat(Hl," .").concat(Hl,` {
35
+ right: 0 `).concat(n,`;
36
+ }
37
+
38
+ .`).concat(Wl," .").concat(Wl,` {
39
+ margin-right: 0 `).concat(n,`;
40
+ }
41
+
42
+ body[`).concat(Uu,`] {
43
+ `).concat(pS,": ").concat(s,`px;
44
+ }
45
+ `)},z4=function(){var e=parseInt(document.body.getAttribute(Uu)||"0",10);return isFinite(e)?e:0},iK=function(){Vu.useEffect(function(){return document.body.setAttribute(Uu,(z4()+1).toString()),function(){var e=z4()-1;e<=0?document.body.removeAttribute(Uu):document.body.setAttribute(Uu,e.toString())}},[])},wS=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;iK();var i=Vu.useMemo(function(){return IS(o)},[o]);return Vu.createElement(oK,{styles:nK(i,!t,o,r?"":"!important")})};var SS=!1;if(typeof window<"u")try{Jm=Object.defineProperty({},"passive",{get:function(){return SS=!0,!0}}),window.addEventListener("test",Jm,Jm),window.removeEventListener("test",Jm,Jm)}catch{SS=!1}var Jm,Zl=SS?{passive:!1}:!1;var aK=function(e){return e.tagName==="TEXTAREA"},A4=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!aK(e)&&r[t]==="visible")},sK=function(e){return A4(e,"overflowY")},lK=function(e){return A4(e,"overflowX")},kS=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=F4(e,n);if(o){var i=N4(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},cK=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},uK=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},F4=function(e,t){return e==="v"?sK(t):lK(t)},N4=function(e,t){return e==="v"?cK(t):uK(t)},dK=function(e,t){return e==="h"&&t==="rtl"?-1:1},B4=function(e,t,r,n,o){var i=dK(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var m=N4(e,s),p=m[0],h=m[1],y=m[2],v=h-y-i*p;(p||v)&&F4(e,s)&&(d+=v,f+=p);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&a>d)||!u&&(o&&Math.abs(f)<1||!o&&-a>f))&&(c=!0),c};var Yv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L4=function(e){return[e.deltaX,e.deltaY]},M4=function(e){return e&&"current"in e?e.current:e},fK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mK=function(e){return`
46
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
47
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
48
+ `)},pK=0,Hu=[];function j4(e){var t=St.useRef([]),r=St.useRef([0,0]),n=St.useRef(),o=St.useState(pK++)[0],i=St.useState(Qm)[0],a=St.useRef(e);St.useEffect(function(){a.current=e},[e]),St.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=f4([e.lockRef.current],(e.shards||[]).map(M4),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=St.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var v=Yv(h),g=r.current,x="deltaX"in h?h.deltaX:g[0]-v[0],_="deltaY"in h?h.deltaY:g[1]-v[1],w,I=h.target,k=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in h&&k==="h"&&I.type==="range")return!1;var C=window.getSelection(),U=C&&C.anchorNode,H=U?U===I||U.contains(I):!1;if(H)return!1;var W=kS(k,I);if(!W)return!0;if(W?w=k:(w=k==="v"?"h":"v",W=kS(k,I)),!W)return!1;if(!n.current&&"changedTouches"in h&&(x||_)&&(n.current=w),!w)return!0;var X=n.current||w;return B4(X,y,h,X==="h"?x:_,!0)},[]),l=St.useCallback(function(h){var y=h;if(!(!Hu.length||Hu[Hu.length-1]!==i)){var v="deltaY"in y?L4(y):Yv(y),g=t.current.filter(function(w){return w.name===y.type&&(w.target===y.target||y.target===w.shadowParent)&&fK(w.delta,v)})[0];if(g&&g.should){y.cancelable&&y.preventDefault();return}if(!g){var x=(a.current.shards||[]).map(M4).filter(Boolean).filter(function(w){return w.contains(y.target)}),_=x.length>0?s(y,x[0]):!a.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),c=St.useCallback(function(h,y,v,g){var x={name:h,delta:y,target:v,should:g,shadowParent:hK(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),u=St.useCallback(function(h){r.current=Yv(h),n.current=void 0},[]),d=St.useCallback(function(h){c(h.type,L4(h),h.target,s(h,e.lockRef.current))},[]),f=St.useCallback(function(h){c(h.type,Yv(h),h.target,s(h,e.lockRef.current))},[]);St.useEffect(function(){return Hu.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Zl),document.addEventListener("touchmove",l,Zl),document.addEventListener("touchstart",u,Zl),function(){Hu=Hu.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Zl),document.removeEventListener("touchmove",l,Zl),document.removeEventListener("touchstart",u,Zl)}},[]);var m=e.removeScrollBar,p=e.inert;return St.createElement(St.Fragment,null,p?St.createElement(i,{styles:mK(o)}):null,m?St.createElement(wS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var U4=vS(Jv,j4);var V4=ex.forwardRef(function(e,t){return ex.createElement(Xm,No({},e,{ref:t,sideCar:U4}))});V4.classNames=Xm.classNames;var ei=V4;function Je(e){return Object.keys(e)}function CS(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ym(e,t){let r={...e},n=t;return CS(e)&&CS(t)&&Object.keys(t).forEach(o=>{CS(n[o])&&o in e?r[o]=Ym(r[o],n[o]):r[o]=n[o]}),r}function H4(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function gK(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function vs(e){let t=gK(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function PS(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function W4(e,{shouldScale:t=!1}={}){function r(n){if(n===0||n==="0")return`0${e}`;if(typeof n=="number"){let o=`${n/16}${e}`;return t?PS(o):o}if(typeof n=="string"){if(n===""||n.startsWith("calc(")||n.startsWith("clamp(")||n.includes("rgba("))return n;if(n.includes(","))return n.split(",").map(i=>r(i)).join(",");if(n.includes(" "))return n.split(" ").map(i=>r(i)).join(" ");if(n.includes(e))return t?PS(n):n;let o=n.replace("px","");if(!Number.isNaN(Number(o))){let i=`${Number(o)/16}${e}`;return t?PS(i):i}}return n}return r}var j=W4("rem",{shouldScale:!0}),ql=W4("em");function ba(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}function tx(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>t.test(n))}return!1}var Z4=b(S(),1);function Bo(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==Z4.Fragment:!1}var X4=b(R(),1),ox=b(S(),1);function _r(e){let t=(0,ox.createContext)(null);return[({children:o,value:i})=>(0,X4.jsx)(t.Provider,{value:i,children:o}),()=>{let o=(0,ox.useContext)(t);if(o===null)throw new Error(e);return o}]}var Q4=b(R(),1),nx=b(S(),1);function Gr(e=null){let t=(0,nx.createContext)(e);return[({children:o,value:i})=>(0,Q4.jsx)(t.Provider,{value:i,children:o}),()=>(0,nx.useContext)(t)]}var wK={app:100,modal:200,popover:300,overlay:400,max:9999};function Ot(e){return wK[e]}var Kl=()=>{};function J4(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||Kl:r=>{r.key==="Escape"&&(e(r),t.onTrigger?.())}}function pe(e,t="size",r=!0){if(e!==void 0)return tx(e)?r?j(e):e:`var(--${t}-${e})`}function kt(e){return pe(e,"mantine-spacing")}function De(e){return e===void 0?"var(--mantine-radius-default)":pe(e,"mantine-radius")}function st(e){return pe(e,"mantine-font-size")}function Y4(e){return pe(e,"mantine-line-height",!1)}function Wu(e){if(e)return pe(e,"mantine-shadow",!1)}function Zu(e,t){return e in t?vs(t[e]):vs(e)}function ep(e,t){let r=e.map(n=>({value:n,px:Zu(n,t)}));return r.sort((n,o)=>n.px-o.px),r}function Gl(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function qu(e,t,r){return t===void 0&&r===void 0?e:t!==void 0&&r===void 0?Math.max(e,t):Math.min(t===void 0&&r!==void 0?e:Math.max(e,t),r)}function Xr(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function e6(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=Object.keys(e),{length:n}=r;if(n!==Object.keys(t).length)return!1;for(let o=0;o<n;o+=1){let i=r[o];if(!(i in t)||e[i]!==t[i]&&!(Number.isNaN(e[i])&&Number.isNaN(t[i])))return!1}return!0}var Ku=b(S(),1);function ti(e){let t=(0,Ku.useRef)(e);return(0,Ku.useEffect)(()=>{t.current=e}),(0,Ku.useMemo)(()=>(...r)=>t.current?.(...r),[])}var Xl=b(S(),1);function ya(e,t){let r=typeof t=="number"?t:t.delay,n=typeof t=="number"?!1:t.flushOnUnmount,o=ti(e),i=(0,Xl.useRef)(0),a=(0,Xl.useRef)(()=>{}),s=Object.assign((0,Xl.useCallback)((...l)=>{window.clearTimeout(i.current);let c=()=>{i.current!==0&&(i.current=0,o(...l))};a.current=c,s.flush=c,i.current=window.setTimeout(c,r)},[o,r]),{flush:a.current});return(0,Xl.useEffect)(()=>()=>{window.clearTimeout(i.current),n&&s.flush()},[s,n]),s}var ix=b(S(),1),t6=["mousedown","touchstart"];function $S(e,t,r){let n=(0,ix.useRef)(null);return(0,ix.useEffect)(()=>{let o=i=>{let{target:a}=i??{};if(Array.isArray(r)){let s=a?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(a)&&a.tagName!=="HTML";r.every(c=>!!c&&!i.composedPath().includes(c))&&!s&&e()}else n.current&&!n.current.contains(a)&&e()};return(t||t6).forEach(i=>document.addEventListener(i,o)),()=>{(t||t6).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}var Gu=b(S(),1);function SK(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function kK(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function ax(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[n,o]=(0,Gu.useState)(r?t:kK(e)),i=(0,Gu.useRef)(null);return(0,Gu.useEffect)(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),SK(i.current,a=>o(a.matches))},[e]),n}function tp(e,t){return ax("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}var sx=b(S(),1),mo=typeof document<"u"?sx.useLayoutEffect:sx.useEffect;var r6=b(S(),1);var rp=b(S(),1);function Ar(e,t){let r=(0,rp.useRef)(!1);(0,rp.useEffect)(()=>()=>{r.current=!1},[]),(0,rp.useEffect)(()=>{if(r.current)return e();r.current=!0},t)}function op({opened:e,shouldReturnFocus:t=!0}){let r=(0,r6.useRef)(null),n=()=>{r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&r.current?.focus({preventScroll:!0})};return Ar(()=>{let o=-1,i=a=>{a.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),n}var Xu=b(S(),1);var CK=/input|select|textarea|button|object/,RS="a, input, select, textarea, button, object, [tabindex]";function PK(e){return e.style.display==="none"}function $K(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(PK(r))return!1;r=r.parentNode}return!0}function o6(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function lx(e){let t=e.nodeName.toLowerCase(),r=!Number.isNaN(o6(e));return(CK.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&$K(e)}function DS(e){let t=o6(e);return(Number.isNaN(t)||t>=0)&&lx(e)}function n6(e){return Array.from(e.querySelectorAll(RS)).filter(DS)}function i6(e,t){let r=n6(e);if(!r.length){t.preventDefault();return}let n=r[t.shiftKey?0:r.length-1],o=e.getRootNode(),i=n===o.activeElement||e===o.activeElement,a=o.activeElement;if(a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(i=r.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===a.getAttribute("name")).includes(n)),!i)return;t.preventDefault();let l=r[t.shiftKey?r.length-1:0];l&&l.focus()}function ES(e=!0){let t=(0,Xu.useRef)(null),r=o=>{let i=o.querySelector("[data-autofocus]");if(!i){let a=Array.from(o.querySelectorAll(RS));i=a.find(DS)||a.find(lx)||null,!i&&lx(o)&&(i=o)}i&&i.focus({preventScroll:!0})},n=(0,Xu.useCallback)(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&r(o)}),t.current=o):t.current=null)},[e]);return(0,Xu.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));let o=i=>{i.key==="Tab"&&t.current&&i6(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),n}var a6=b(S(),1),RK=e=>(e+1)%1e6;function TS(){let[,e]=(0,a6.useReducer)(RK,0);return e}var c6=b(S(),1);var s6=b(S(),1),DK=s6.default.useId||(()=>{});function l6(){let e=DK();return e?`mantine-${e.replace(/:/g,"")}`:""}function tt(e){let t=l6(),[r,n]=(0,c6.useState)(t);return mo(()=>{n(Xr())},[]),typeof e=="string"?e:typeof window>"u"?t:r}var u6=b(S(),1);function np(e,t,r){(0,u6.useEffect)(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}var d6=b(S(),1);function Ql(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function cx(...e){let t=new Map;return r=>{if(e.forEach(n=>{let o=Ql(n,r);o&&t.set(n,o)}),t.size>0)return()=>{e.forEach(n=>{let o=t.get(n);o?o():Ql(n,null)}),t.clear()}}}function Le(...e){return(0,d6.useCallback)(cx(...e),e)}var f6=b(S(),1);function Qe({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){let[o,i]=(0,f6.useState)(t!==void 0?t:r),a=(s,...l)=>{i(s),n?.(s,...l)};return e!==void 0?[e,n,!0]:[o,a,!1]}function _a(e,t){return ax("(prefers-reduced-motion: reduce)",e,t)}var ip=b(S(),1);function EK(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(!e6(e[r],t[r]))return!1;return!0}function TK(e){let t=(0,ip.useRef)([]),r=(0,ip.useRef)(0);return EK(t.current,e)||(t.current=e,r.current+=1),[r.current]}function OS(e,t){(0,ip.useEffect)(e,TK(t))}var Qu=b(S(),1);function zS(e=!1,t){let{onOpen:r,onClose:n}=t||{},[o,i]=(0,Qu.useState)(e),a=(0,Qu.useCallback)(()=>{i(c=>c||(r?.(),!0))},[r]),s=(0,Qu.useCallback)(()=>{i(c=>c&&(n?.(),!1))},[n]),l=(0,Qu.useCallback)(()=>{o?s():a()},[s,a,o]);return[o,{open:a,close:s,toggle:l}]}var Jl=b(S(),1);function AS(e,t,r={autoInvoke:!1}){let n=(0,Jl.useRef)(null),o=(0,Jl.useCallback)((...a)=>{n.current||(n.current=window.setTimeout(()=>{e(a),n.current=null},t))},[t]),i=(0,Jl.useCallback)(()=>{n.current&&(window.clearTimeout(n.current),n.current=null)},[]);return(0,Jl.useEffect)(()=>(r.autoInvoke&&o(),i),[i,o]),{start:o,clear:i}}var ux=b(S(),1);function FS(e){let t=(0,ux.useRef)(void 0);return(0,ux.useEffect)(()=>{t.current=e},[e]),t.current}var ap=b(S(),1);function NS(e,t,r){let n=(0,ap.useRef)(null),o=(0,ap.useRef)(null);return(0,ap.useEffect)(()=>{let i=typeof r=="function"?r():r;return(i||o.current)&&(n.current=new MutationObserver(e),n.current.observe(i||o.current,t)),()=>{n.current?.disconnect()}},[e,t]),o}var dx=b(S(),1);function BS(){let[e,t]=(0,dx.useState)(!1);return(0,dx.useEffect)(()=>t(!0),[]),e}function OK(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}function LS(e){function t(n){let o=Object.keys(n).reduce((i,a)=>(i[`${e}:${a}`]=s=>n[a](s.detail),i),{});mo(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[o])}function r(n){return(...o)=>OK(`${e}:${String(n)}`,o[0])}return[t,r]}function fx(){return typeof process<"u"&&process.env?"production":"development"}var MS=b(S(),1);function xs(e){let t=MS.default.version;return typeof MS.default.version!="string"||t.startsWith("18.")?e?.ref:e?.props?.ref}function m6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=m6(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zK(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=m6(e))&&(n&&(n+=" "),n+=t);return n}var Me=zK;var AK={};function FK(e){let t={};return e.forEach(r=>{Object.entries(r).forEach(([n,o])=>{t[n]?t[n]=Me(t[n],o):t[n]=o})}),t}function bs({theme:e,classNames:t,props:r,stylesCtx:n}){let i=(Array.isArray(t)?t:[t]).map(a=>typeof a=="function"?a(e,r,n):a||AK);return FK(i)}function Yl({theme:e,styles:t,props:r,stylesCtx:n}){return(Array.isArray(t)?t:[t]).reduce((i,a)=>typeof a=="function"?{...i,...a(e,r,n)}:{...i,...a},{})}var qge=b(S(),1),Kge=b(R(),1);var mx=b(S(),1),Ju=(0,mx.createContext)(null);function $i(){let e=(0,mx.useContext)(Ju);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function p6(){return $i().cssVariablesResolver}function h6(){return $i().classNamesPrefix}function ys(){return $i().getStyleNonce}function g6(){return $i().withStaticClasses}function v6(){return $i().headless}function x6(){return $i().stylesTransform?.sx}function b6(){return $i().stylesTransform?.styles}function px(){return $i().env||"default"}var Ihe=b(S(),1),whe=b(R(),1);var mhe=b(S(),1),phe=b(R(),1);function NK(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function BK(e){let t=e.replace("#","");if(t.length===3){let a=t.split("");t=[a[0],a[0],a[1],a[1],a[2],a[2]].join("")}if(t.length===8){let a=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a}}let r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function LK(e){let[t,r,n,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:r,b:n,a:o===void 0?1:o}}function MK(e){let t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,r=e.match(t);if(!r)return{r:0,g:0,b:0,a:1};let n=parseInt(r[1],10),o=parseInt(r[2],10)/100,i=parseInt(r[3],10)/100,a=r[5]?parseFloat(r[5]):void 0,s=(1-Math.abs(2*i-1))*o,l=n/60,c=s*(1-Math.abs(l%2-1)),u=i-s/2,d,f,m;return l>=0&&l<1?(d=s,f=c,m=0):l>=1&&l<2?(d=c,f=s,m=0):l>=2&&l<3?(d=0,f=s,m=c):l>=3&&l<4?(d=0,f=c,m=s):l>=4&&l<5?(d=c,f=0,m=s):(d=s,f=0,m=c),{r:Math.round((d+u)*255),g:Math.round((f+u)*255),b:Math.round((m+u)*255),a:a||1}}function Yu(e){return NK(e)?BK(e):e.startsWith("rgb")?LK(e):e.startsWith("hsl")?MK(e):{r:0,g:0,b:0,a:1}}function sp(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r,g:n,b:o,a:i}=Yu(e),a=1-t,s=l=>Math.round(l*a);return`rgba(${s(r)}, ${s(n)}, ${s(o)}, ${i})`}function Ia(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function jS(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function jK(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function UK(e){if(e.startsWith("oklch("))return(jK(e)||0)/100;let{r:t,g:r,b:n}=Yu(e),o=t/255,i=r/255,a=n/255,s=jS(o),l=jS(i),c=jS(a);return .2126*s+.7152*l+.0722*c}function ed(e,t=.179){return e.startsWith("var(")?!1:UK(e)>t}function Fr({color:e,theme:t,colorScheme:r}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:r==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ed(r==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:r==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ed(r==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ed(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[n,o]=e.split("."),i=o?Number(o):void 0,a=n in t.colors;if(a){let s=i!==void 0?t.colors[n][i]:t.colors[n][Ia(t,r||"light")];return{color:n,value:s,shade:i,isThemeColor:a,isLight:ed(s,t.luminanceThreshold),variable:o?`--mantine-color-${n}-${i}`:`--mantine-color-${n}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:ed(e,t.luminanceThreshold),shade:i,variable:void 0}}function je(e,t){let r=Fr({color:e||t.primaryColor,theme:t});return r.variable?`var(${r.variable})`:e}function lp(e,t){let r={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},n=je(r.from,t),o=je(r.to,t);return`linear-gradient(${r.deg}deg, ${n} 0%, ${o} 100%)`}function wn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){let i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);let{r,g:n,b:o}=Yu(e);return`rgba(${r}, ${n}, ${o}, ${t})`}var ec=wn;var y6=({color:e,theme:t,variant:r,gradient:n,autoContrast:o})=>{let i=Fr({color:e,theme:t}),a=typeof o=="boolean"?o:t.autoContrast;if(r==="filled"){let s=a&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${j(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:s,border:`${j(1)} solid transparent`}:{background:e,hover:sp(e,.1),color:s,border:`${j(1)} solid transparent`}}if(r==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${j(1)} solid transparent`};let s=t.colors[i.color][i.shade];return{background:wn(s,.1),hover:wn(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${j(1)} solid transparent`}}return{background:wn(e,.1),hover:wn(e,.12),color:e,border:`${j(1)} solid transparent`}}if(r==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${j(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:wn(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${j(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:wn(e,.05),color:e,border:`${j(1)} solid ${e}`};if(r==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${j(1)} solid transparent`};let s=t.colors[i.color][i.shade];return{background:"transparent",hover:wn(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${j(1)} solid transparent`}}return{background:"transparent",hover:wn(e,.12),color:e,border:`${j(1)} solid transparent`}}return r==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${j(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${j(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${j(1)} solid transparent`}:r==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:sp(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${j(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:sp(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${j(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:sp(t.white,.01),color:e,border:`${j(1)} solid transparent`}:r==="gradient"?{background:lp(n,t),hover:lp(n,t),color:"var(--mantine-color-white)",border:"none"}:r==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${j(1)} solid var(--mantine-color-default-border)`}:{}};var _6={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var I6="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",cp={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:_6,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:y6,autoContrast:!1,luminanceThreshold:.3,fontFamily:I6,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:I6,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:j(34),lineHeight:"1.3"},h2:{fontSize:j(26),lineHeight:"1.35"},h3:{fontSize:j(22),lineHeight:"1.4"},h4:{fontSize:j(18),lineHeight:"1.45"},h5:{fontSize:j(16),lineHeight:"1.5"},h6:{fontSize:j(14),lineHeight:"1.5"}}},fontSizes:{xs:j(12),sm:j(14),md:j(16),lg:j(18),xl:j(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:j(2),sm:j(4),md:j(8),lg:j(16),xl:j(32)},spacing:{xs:j(10),sm:j(12),md:j(16),lg:j(20),xl:j(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${j(1)} ${j(3)} rgba(0, 0, 0, 0.05), 0 ${j(1)} ${j(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${j(1)} ${j(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${j(10)} ${j(15)} ${j(-5)}, rgba(0, 0, 0, 0.04) 0 ${j(7)} ${j(7)} ${j(-5)}`,md:`0 ${j(1)} ${j(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${j(20)} ${j(25)} ${j(-5)}, rgba(0, 0, 0, 0.04) 0 ${j(10)} ${j(10)} ${j(-5)}`,lg:`0 ${j(1)} ${j(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${j(28)} ${j(23)} ${j(-7)}, rgba(0, 0, 0, 0.04) 0 ${j(12)} ${j(12)} ${j(-7)}`,xl:`0 ${j(1)} ${j(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${j(36)} ${j(28)} ${j(-7)}, rgba(0, 0, 0, 0.04) 0 ${j(17)} ${j(17)} ${j(-7)}`},other:{},components:{}};var _s=b(R(),1);function US(e){return e==="auto"||e==="dark"||e==="light"}function w6({key:e="mantine-color-scheme-value"}={}){let t;return{get:r=>{if(typeof window>"u")return r;try{let n=window.localStorage.getItem(e);return US(n)?n:r}catch{return r}},set:r=>{try{window.localStorage.setItem(e,r)}catch(n){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",n)}},subscribe:r=>{t=n=>{n.storageArea===window.localStorage&&n.key===e&&US(n.newValue)&&r(n.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}var R6=b(R(),1);var Mhe=b(S(),1);var P6=b(R(),1),tc=b(S(),1);var Ehe=b(S(),1),The=b(R(),1);var VK="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \u2013 https://mantine.dev/theming/colors/#primary-color",S6="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function VS(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function k6(e){if(!(e.primaryColor in e.colors))throw new Error(VK);if(typeof e.primaryShade=="object"&&(!VS(e.primaryShade.dark)||!VS(e.primaryShade.light)))throw new Error(S6);if(typeof e.primaryShade=="number"&&!VS(e.primaryShade))throw new Error(S6)}function C6(e,t){if(!t)return k6(e),e;let r=Ym(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(r.headings.fontFamily=t.fontFamily),k6(r),r}var hx=(0,tc.createContext)(null),$6=()=>(0,tc.useContext)(hx)||cp;function lt(){let e=(0,tc.useContext)(hx);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function up({theme:e,children:t,inherit:r=!0}){let n=$6(),o=(0,tc.useMemo)(()=>C6(r?n:cp,e),[e,n,r]);return(0,P6.jsx)(hx.Provider,{value:o,children:t})}up.displayName="@mantine/core/MantineThemeProvider";function D6(){let e=lt(),t=ys(),r=Je(e.breakpoints).reduce((n,o)=>{let i=e.breakpoints[o].includes("px"),a=vs(e.breakpoints[o]),s=i?`${a-.1}px`:ql(a-.1),l=i?`${a}px`:ql(a);return`${n}@media (max-width: ${s}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return(0,R6.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:r}})}var A6=b(R(),1);function gx(e){return Object.entries(e).map(([t,r])=>`${t}: ${r};`).join("")}function td(e,t){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,t)}function E6(e,t){let r=gx(e.variables),n=r?td(t,r):"",o=gx(e.dark),i=gx(e.light),a=o?t===":host"?td(`${t}([data-mantine-color-scheme="dark"])`,o):td(`${t}[data-mantine-color-scheme="dark"]`,o):"",s=i?t===":host"?td(`${t}([data-mantine-color-scheme="light"])`,i):td(`${t}[data-mantine-color-scheme="light"]`,i):"";return`${n}${a}${s}`}var gge=b(S(),1),vge=b(R(),1);var lge=b(S(),1),cge=b(R(),1);function ri({color:e,theme:t,autoContrast:r}){return(typeof r=="boolean"?r:t.autoContrast)&&Fr({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function HS(e,t){return ri({color:e.colors[e.primaryColor][Ia(e,t)],theme:e,autoContrast:null})}var Yhe=b(S(),1),ege=b(R(),1);function dp({theme:e,color:t,colorScheme:r,name:n=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(r==="light"){let s=Ia(e,"light"),l={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-filled)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${s===9?8:s+1})`,[`--mantine-color-${n}-light`]:ec(e.colors[t][s],.1),[`--mantine-color-${n}-light-hover`]:ec(e.colors[t][s],.12),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-outline-hover`]:ec(e.colors[t][s],.05)};return o?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...l}:l}let i=Ia(e,"dark"),a={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-4)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${i})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${i===9?8:i+1})`,[`--mantine-color-${n}-light`]:ec(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${n}-light-hover`]:ec(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${Math.max(i-5,0)})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${Math.max(i-4,0)})`,[`--mantine-color-${n}-outline-hover`]:ec(e.colors[t][Math.max(i-4,0)],.05)};return o?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...a}:a}var oge=b(S(),1),nge=b(R(),1);function T6(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function rd(e,t,r){Je(t).forEach(n=>Object.assign(e,{[`--mantine-${r}-${n}`]:t[n]}))}var vx=e=>{let t=Ia(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:j(e.defaultRadius),n={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":HS(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":HS(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};rd(n.variables,e.breakpoints,"breakpoint"),rd(n.variables,e.spacing,"spacing"),rd(n.variables,e.fontSizes,"font-size"),rd(n.variables,e.lineHeights,"line-height"),rd(n.variables,e.shadows,"shadow"),rd(n.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,a)=>{n.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),Je(e.colors).forEach(i=>{let a=e.colors[i];if(T6(a)){Object.assign(n.light,dp({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(n.dark,dp({theme:e,name:a.name,color:a.dark,colorScheme:"dark",withColorValues:!0}));return}a.forEach((s,l)=>{n.variables[`--mantine-color-${i}-${l}`]=s}),Object.assign(n.light,dp({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(n.dark,dp({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});let o=e.headings.sizes;return Je(o).forEach(i=>{n.variables[`--mantine-${i}-font-size`]=o[i].fontSize,n.variables[`--mantine-${i}-line-height`]=o[i].lineHeight,n.variables[`--mantine-${i}-font-weight`]=o[i].fontWeight||e.headings.fontWeight}),n};function O6({theme:e,generator:t}){let r=vx(e),n=t?.(e);return n?Ym(r,n):r}var _ge=b(S(),1),Ige=b(R(),1);var WS=vx(cp);function z6(e){let t={variables:{},light:{},dark:{}};return Je(e.variables).forEach(r=>{WS.variables[r]!==e.variables[r]&&(t.variables[r]=e.variables[r])}),Je(e.light).forEach(r=>{WS.light[r]!==e.light[r]&&(t.light[r]=e.light[r])}),Je(e.dark).forEach(r=>{WS.dark[r]!==e.dark[r]&&(t.dark[r]=e.dark[r])}),t}function HK(e){return`
49
+ ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
50
+ ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
51
+ `}function ZS({cssVariablesSelector:e,deduplicateCssVariables:t}){let r=lt(),n=ys(),o=p6(),i=O6({theme:r,generator:o}),a=e===":root"&&t,s=a?z6(i):i,l=E6(s,e);return l?(0,A6.jsx)("style",{"data-mantine-styles":!0,nonce:n?.(),dangerouslySetInnerHTML:{__html:`${l}${a?"":HK(e)}`}}):null}ZS.displayName="@mantine/CssVariables";var jge=b(S(),1);function F6(){let e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}var Ri=b(S(),1);function od(e,t){let r=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,n=e!=="auto"?e:r?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",n)}function N6({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:n}){let o=(0,Ri.useRef)(null),[i,a]=(0,Ri.useState)(()=>e.get(t)),s=n||i,l=(0,Ri.useCallback)(u=>{n||(od(u,r),a(u),e.set(u))},[e.set,s,n]),c=(0,Ri.useCallback)(()=>{a(t),od(t,r),e.clear()},[e.clear,t]);return(0,Ri.useEffect)(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),mo(()=>{od(e.get(t),r)},[]),(0,Ri.useEffect)(()=>{if(n)return od(n,r),()=>{};n===void 0&&od(i,r),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));let u=d=>{i==="auto"&&od(d.matches?"dark":"light",r)};return o.current?.addEventListener("change",u),()=>o.current?.removeEventListener("change",u)},[i,n]),{colorScheme:s,setColorScheme:l,clearColorScheme:c}}function B6({respectReducedMotion:e,getRootElement:t}){mo(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}F6();function xx({theme:e,children:t,getStyleNonce:r,withStaticClasses:n=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:a=!0,cssVariablesSelector:s=":root",classNamesPrefix:l="mantine",colorSchemeManager:c=w6(),defaultColorScheme:u="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:m,stylesTransform:p,env:h}){let{colorScheme:y,setColorScheme:v,clearColorScheme:g}=N6({defaultColorScheme:u,forceColorScheme:m,manager:c,getRootElement:d});return B6({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,_s.jsx)(Ju.Provider,{value:{colorScheme:y,setColorScheme:v,clearColorScheme:g,getRootElement:d,classNamesPrefix:l,getStyleNonce:r,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:n,stylesTransform:p,env:h},children:(0,_s.jsxs)(up,{theme:e,children:[a&&(0,_s.jsx)(ZS,{cssVariablesSelector:s,deduplicateCssVariables:i}),o&&(0,_s.jsx)(D6,{}),t]})})}xx.displayName="@mantine/core/MantineProvider";function L6({children:e,theme:t}){return(0,_s.jsx)(Ju.Provider,{value:{colorScheme:"auto",setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:"mantine",cssVariablesSelector:":root",withStaticClasses:!1,headless:!0},children:(0,_s.jsx)(up,{theme:t,children:e})})}L6.displayName="@mantine/core/HeadlessMantineProvider";function Lo({classNames:e,styles:t,props:r,stylesCtx:n}){let o=lt();return{resolvedClassNames:bs({theme:o,classNames:e,props:r,stylesCtx:n||void 0}),resolvedStyles:Yl({theme:o,styles:t,props:r,stylesCtx:n||void 0})}}var WK={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function M6({theme:e,options:t,unstyled:r}){return Me(t?.focusable&&!r&&(e.focusClassName||WK[e.focusRing]),t?.active&&!r&&e.activeClassName)}var Mve=b(S(),1),jve=b(R(),1);function j6({selector:e,stylesCtx:t,options:r,props:n,theme:o}){return bs({theme:o,classNames:r?.classNames,props:r?.props||n,stylesCtx:t})[e]}function qS({selector:e,stylesCtx:t,theme:r,classNames:n,props:o}){return bs({theme:r,classNames:n,props:o,stylesCtx:t})[e]}function U6({rootSelector:e,selector:t,className:r}){return e===t?r:void 0}function V6({selector:e,classes:t,unstyled:r}){return r?void 0:t[e]}function H6({themeName:e,classNamesPrefix:t,selector:r,withStaticClass:n}){return n===!1?[]:e.map(o=>`${t}-${o}-${r}`)}function W6({themeName:e,theme:t,selector:r,props:n,stylesCtx:o}){return e.map(i=>bs({theme:t,classNames:t.components[i]?.classNames,props:n,stylesCtx:o})?.[r])}function Z6({options:e,classes:t,selector:r,unstyled:n}){return e?.variant&&!n?t[`${r}--${e.variant}`]:void 0}function q6({theme:e,options:t,themeName:r,selector:n,classNamesPrefix:o,classNames:i,classes:a,unstyled:s,className:l,rootSelector:c,props:u,stylesCtx:d,withStaticClasses:f,headless:m,transformedStyles:p}){return Me(M6({theme:e,options:t,unstyled:s||m}),W6({theme:e,themeName:r,selector:n,props:u,stylesCtx:d}),Z6({options:t,classes:a,selector:n,unstyled:s}),qS({selector:n,stylesCtx:d,theme:e,classNames:i,props:u}),qS({selector:n,stylesCtx:d,theme:e,classNames:p,props:u}),j6({selector:n,stylesCtx:d,options:t,props:u,theme:e}),U6({rootSelector:c,selector:n,className:l}),V6({selector:n,classes:a,unstyled:s||m}),f&&!m&&H6({themeName:r,classNamesPrefix:o,selector:n,withStaticClass:t?.withStaticClass}),t?.className)}function K6({theme:e,themeName:t,props:r,stylesCtx:n,selector:o}){return t.map(i=>Yl({theme:e,styles:e.components[i]?.styles,props:r,stylesCtx:n})[o]).reduce((i,a)=>({...i,...a}),{})}function bx({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((r,n)=>({...r,...bx({style:n,theme:t})}),{}):typeof e=="function"?e(t):e??{}}var kve=b(S(),1),Cve=b(R(),1);function G6(e){return e.reduce((t,r)=>(r&&Object.keys(r).forEach(n=>{t[n]={...t[n],...ba(r[n])}}),t),{})}function X6({vars:e,varsResolver:t,theme:r,props:n,stylesCtx:o,selector:i,themeName:a,headless:s}){return G6([s?{}:t?.(r,n,o),...a.map(l=>r.components?.[l]?.vars?.(r,n,o)),e?.(r,n,o)])?.[i]}function Q6({theme:e,themeName:t,selector:r,options:n,props:o,stylesCtx:i,rootSelector:a,styles:s,style:l,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&K6({theme:e,themeName:t,props:o,stylesCtx:i,selector:r}),...!f&&Yl({theme:e,styles:s,props:o,stylesCtx:i})[r],...!f&&Yl({theme:e,styles:n?.styles,props:n?.props||o,stylesCtx:i})[r],...X6({theme:e,props:o,stylesCtx:i,vars:c,varsResolver:u,selector:r,themeName:t,headless:d}),...a===r?bx({style:l,theme:e}):null,...bx({style:n?.style,theme:e})}}var Ave=b(S(),1),Fve=b(R(),1);function J6({props:e,stylesCtx:t,themeName:r}){let n=lt(),o=b6()?.();return{getTransformedStyles:a=>o?[...a.map(l=>o(l,{props:e,theme:n,ctx:t})),...r.map(l=>o(n.components[l]?.styles,{props:e,theme:n,ctx:t}))].filter(Boolean):[],withStylesTransform:!!o}}function J({name:e,classes:t,props:r,stylesCtx:n,className:o,style:i,rootSelector:a="root",unstyled:s,classNames:l,styles:c,vars:u,varsResolver:d}){let f=lt(),m=h6(),p=g6(),h=v6(),y=(Array.isArray(e)?e:[e]).filter(x=>x),{withStylesTransform:v,getTransformedStyles:g}=J6({props:r,stylesCtx:n,themeName:y});return(x,_)=>({className:q6({theme:f,options:_,themeName:y,selector:x,classNamesPrefix:m,classNames:l,classes:t,unstyled:s,className:o,rootSelector:a,props:r,stylesCtx:n,withStaticClasses:p,headless:h,transformedStyles:g([_?.styles,c])}),style:Q6({theme:f,themeName:y,selector:x,options:_,props:r,stylesCtx:n,rootSelector:a,styles:c,style:i,vars:u,varsResolver:d,headless:h,withStylesTransform:v})})}function Is(e,t){return typeof e=="boolean"?e:t.autoContrast}var Di=b(S(),1);var Xve=b(R(),1);function Y6(e){let t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function e5({keepTransitions:e}={}){let t=(0,Di.useRef)(Kl),r=(0,Di.useRef)(-1),n=(0,Di.useContext)(Ju),o=ys(),i=(0,Di.useRef)(o?.());if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");let a=d=>{n.setColorScheme(d),t.current=e?()=>{}:Y6(i.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{n.clearColorScheme(),t.current=e?()=>{}:Y6(i.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current?.()},10)},l=tp("light",{getInitialValueInEffect:!1}),c=n.colorScheme==="auto"?l:n.colorScheme,u=(0,Di.useCallback)(()=>a(c==="light"?"dark":"light"),[a,c]);return(0,Di.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(r.current)},[]),{colorScheme:n.colorScheme,setColorScheme:a,clearColorScheme:s,toggleColorScheme:u}}function KS(e,t={getInitialValueInEffect:!0}){let r=tp(e,t),{colorScheme:n}=e5();return n==="auto"?r:n}var nxe=b(S(),1),ixe=b(R(),1);function E(e,t,r){let n=lt(),o=n.components[e]?.defaultProps,i=typeof o=="function"?o(n):o;return{...t,...i,...ba(r)}}var r5=b(R(),1),hxe=b(S(),1);var uxe=b(S(),1),dxe=b(R(),1);function yx(e){return Je(e).reduce((t,r)=>e[r]!==void 0?`${t}${H4(r)}:${e[r]};`:t,"").trim()}function t5({selector:e,styles:t,media:r,container:n}){let o=t?yx(t):"",i=Array.isArray(r)?r.map(s=>`@media${s.query}{${e}{${yx(s.styles)}}}`):[],a=Array.isArray(n)?n.map(s=>`@container ${s.query}{${e}{${yx(s.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${i.join("")}${a.join("")}`.trim()}function rc(e){let t=ys();return(0,r5.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:t5(e)}})}var yxe=b(S(),1),_xe=b(R(),1);function Ir(e){let{m:t,mx:r,my:n,mt:o,mb:i,ml:a,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:m,pb:p,pl:h,pr:y,pe:v,ps:g,bd:x,bg:_,c:w,opacity:I,ff:k,fz:C,fw:U,lts:H,ta:W,lh:X,fs:N,tt:A,td:B,w:T,miw:M,maw:$,h:O,mih:Z,mah:Y,bgsz:te,bgp:ve,bgr:ge,bga:q,pos:ae,top:ye,left:se,bottom:ke,right:ze,inset:Ve,display:Ke,flex:Pe,hiddenFrom:Et,visibleFrom:Tt,lightHidden:zr,darkHidden:de,sx:ce,...xe}=e;return{styleProps:ba({m:t,mx:r,my:n,mt:o,mb:i,ml:a,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:m,pb:p,pl:h,pr:y,pe:v,ps:g,bd:x,bg:_,c:w,opacity:I,ff:k,fz:C,fw:U,lts:H,ta:W,lh:X,fs:N,tt:A,td:B,w:T,miw:M,maw:$,h:O,mih:Z,mah:Y,bgsz:te,bgp:ve,bgr:ge,bga:q,pos:ae,top:ye,left:se,bottom:ke,right:ze,inset:Ve,display:Ke,flex:Pe,hiddenFrom:Et,visibleFrom:Tt,lightHidden:zr,darkHidden:de,sx:ce}),rest:xe}}var o5={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};var ibe=b(S(),1),abe=b(R(),1);var Rxe=b(S(),1),Dxe=b(R(),1);var kxe=b(S(),1),Cxe=b(R(),1);function fp(e,t){let r=Fr({color:e,theme:t});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function n5(e,t){let r=Fr({color:e,theme:t});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:fp(e,t)}function i5(e,t){if(typeof e=="number")return j(e);if(typeof e=="string"){let[r,n,...o]=e.split(" ").filter(a=>a.trim()!==""),i=`${j(r)}`;return n&&(i+=` ${n}`),o.length>0&&(i+=` ${fp(o.join(" "),t)}`),i.trim()}return e}var a5={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function s5(e){return typeof e=="string"&&e in a5?a5[e]:e}var Axe=b(S(),1),Fxe=b(R(),1);var ZK=["h1","h2","h3","h4","h5","h6"];function l5(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&ZK.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"?j(e):typeof e=="string"?j(e):e}function c5(e){return e}var qK=["h1","h2","h3","h4","h5","h6"];function u5(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&qK.includes(e)?`var(--mantine-${e}-line-height)`:e}var jxe=b(S(),1),Uxe=b(R(),1);function d5(e){return typeof e=="number"?j(e):e}var Wxe=b(S(),1),Zxe=b(R(),1);function f5(e,t){if(typeof e=="number")return j(e);if(typeof e=="string"){let r=e.replace("-","");if(!(r in t.spacing))return j(e);let n=`--mantine-spacing-${r}`;return e.startsWith("-")?`calc(var(${n}) * -1)`:`var(${n})`}return e}var _x={color:fp,textColor:n5,fontSize:l5,spacing:f5,identity:c5,size:d5,lineHeight:u5,fontFamily:s5,border:i5};function m5(e){return e.replace("(min-width: ","").replace("em)","")}function p5({media:e,...t}){let n=Object.keys(e).sort((o,i)=>Number(m5(o))-Number(m5(i))).map(o=>({query:o,styles:e[o]}));return{...t,media:n}}function KK(e){if(typeof e!="object"||e===null)return!1;let t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function GK(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function XK(e){return typeof e=="object"&&e!==null?Je(e).filter(t=>t!=="base"):[]}function QK(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function h5({styleProps:e,data:t,theme:r}){return p5(Je(e).reduce((n,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return n;let i=t[o],a=Array.isArray(i.property)?i.property:[i.property],s=GK(e[o]);if(!KK(e[o]))return a.forEach(c=>{n.inlineStyles[c]=_x[i.type](s,r)}),n;n.hasResponsiveStyles=!0;let l=XK(e[o]);return a.forEach(c=>{s&&(n.styles[c]=_x[i.type](s,r)),l.forEach(u=>{let d=`(min-width: ${r.breakpoints[u]})`;n.media[d]={...n.media[d],[c]:_x[i.type](QK(e[o],u),r)}})}),n},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}var g5=b(S(),1);function Ix(){return`__m__-${(0,g5.useId)().replace(/:/g,"")}`}function mp(e,t){return Array.isArray(e)?[...e].reduce((r,n)=>({...r,...mp(n,t)}),{}):typeof e=="function"?e(t):e??{}}var oc=b(R(),1),b5=b(S(),1);function v5(e){return e.startsWith("data-")?e:`data-${e}`}function JK(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n===void 0||n===""||n===!1||n===null||(t[v5(r)]=e[r]),t},{})}function GS(e){return e?typeof e=="string"?{[v5(e)]:!0}:Array.isArray(e)?[...e].reduce((t,r)=>({...t,...GS(r)}),{}):JK(e):null}function XS(e,t){return Array.isArray(e)?[...e].reduce((r,n)=>({...r,...XS(n,t)}),{}):typeof e=="function"?e(t):e??{}}function x5({theme:e,style:t,vars:r,styleProps:n}){let o=XS(t,e),i=XS(r,e);return{...o,...i,...n}}var y5=(0,b5.forwardRef)(({component:e,style:t,__vars:r,className:n,variant:o,mod:i,size:a,hiddenFrom:s,visibleFrom:l,lightHidden:c,darkHidden:u,renderRoot:d,__size:f,...m},p)=>{let h=lt(),y=e||"div",{styleProps:v,rest:g}=Ir(m),_=x6()?.()?.(v.sx),w=Ix(),I=h5({styleProps:v,theme:h,data:o5}),k={ref:p,style:x5({theme:h,style:t,vars:r,styleProps:I.inlineStyles}),className:Me(n,_,{[w]:I.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":tx(a)?void 0:a||void 0,size:f,...GS(i),...g};return(0,oc.jsxs)(oc.Fragment,{children:[I.hasResponsiveStyles&&(0,oc.jsx)(rc,{selector:`.${w}`,styles:I.styles,media:I.media}),typeof d=="function"?d(k):(0,oc.jsx)(y,{...k})]})});y5.displayName="@mantine/core/Box";var L=y5;var _5=b(R(),1),QS=b(S(),1);function JS(e){return e}function V(e){let t=(0,QS.forwardRef)(e);return t.extend=JS,t.withProps=r=>{let n=(0,QS.forwardRef)((o,i)=>(0,_5.jsx)(t,{...r,...o,ref:i}));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}var I5=b(R(),1),YS=b(S(),1);function ot(e){let t=(0,YS.forwardRef)(e);return t.withProps=r=>{let n=(0,YS.forwardRef)((o,i)=>(0,I5.jsx)(t,{...r,...o,ref:i}));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=JS,t}var YK=b(R(),1),pp=b(S(),1);var eG=(0,pp.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ei(){return(0,pp.useContext)(eG)}var pC=b(R(),1);var Nbe=b(S(),1);var Od=b(S(),1),jN=b(Hs(),1);function oQ(e){if(!e||typeof e=="string")return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function mC(e){return e?.current?e.current.scrollHeight:"auto"}var ah=typeof window<"u"&&window.requestAnimationFrame;function UN({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:n}){let o=(0,Od.useRef)(null),i=0,a={height:0,overflow:"hidden"},[s,l]=(0,Od.useState)(n?{}:a),c=p=>{(0,jN.flushSync)(()=>l(p))},u=p=>{c(h=>({...h,...p}))};function d(p){let h=e||oQ(p);return{transition:`height ${h}ms ${t}, opacity ${h}ms ${t}`}}Ar(()=>{typeof ah=="function"&&ah(n?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),ah(()=>{let p=mC(o);u({...d(p),height:p})})}:()=>{let p=mC(o);u({...d(p),willChange:"height",height:p}),ah(()=>u({height:i,overflow:"hidden"}))})},[n]);let f=p=>{if(!(p.target!==o.current||p.propertyName!=="height"))if(n){let h=mC(o);h===s.height?c({}):u({height:h}),r()}else s.height===i&&(c(a),r())};function m({style:p={},refKey:h="ref",...y}={}){let v=y[h],g={"aria-hidden":!n,...y,[h]:cx(o,v),onTransitionEnd:f,style:{boxSizing:"border-box",...p,...s}};return Od.default.version.startsWith("18")?n||(g.inert=""):g.inert=!n,g}return m}var nQ={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},hC=V((e,t)=>{let{children:r,in:n,transitionDuration:o,transitionTimingFunction:i,style:a,onTransitionEnd:s,animateOpacity:l,...c}=E("Collapse",nQ,e),u=lt(),d=_a(),m=(u.respectReducedMotion?d:!1)?0:o,p=UN({opened:n,transitionDuration:m,transitionTimingFunction:i,onTransitionEnd:s});return m===0?n?(0,pC.jsx)(L,{...c,children:r}):null:(0,pC.jsx)(L,{...p({style:{opacity:n||!l?1:0,transition:l?`opacity ${m}ms ${i}`:"none",...mp(a,u)},ref:t,...c}),children:r})});hC.displayName="@mantine/core/Collapse";var On=b(R(),1),Qs=b(S(),1);var ie=b(S(),1),Bd=b(S(),1);function Vb(){return typeof window<"u"}function Ws(e){return VN(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(VN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VN(e){return Vb()?e instanceof Node||e instanceof Mr(e).Node:!1}function xt(e){return Vb()?e instanceof Element||e instanceof Mr(e).Element:!1}function Wo(e){return Vb()?e instanceof HTMLElement||e instanceof Mr(e).HTMLElement:!1}function Ub(e){return!Vb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot}function sh(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function HN(e){return/^(table|td|th)$/.test(Ws(e))}function lh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var iQ=/transform|translate|scale|rotate|perspective|filter/,aQ=/paint|layout|strict|content/,bc=e=>!!e&&e!=="none",gC;function Hb(e){let t=xt(e)?dn(e):e;return bc(t.transform)||bc(t.translate)||bc(t.scale)||bc(t.rotate)||bc(t.perspective)||!zd()&&(bc(t.backdropFilter)||bc(t.filter))||iQ.test(t.willChange||"")||aQ.test(t.contain||"")}function WN(e){let t=Bi(e);for(;Wo(t)&&!Oa(t);){if(Hb(t))return t;if(lh(t))return null;t=Bi(t)}return null}function zd(){return gC==null&&(gC=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gC}function Oa(e){return/^(html|body|#document)$/.test(Ws(e))}function dn(e){return Mr(e).getComputedStyle(e)}function ch(e){return xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bi(e){if(Ws(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ub(e)&&e.host||Li(e);return Ub(t)?t.host:t}function ZN(e){let t=Bi(e);return Oa(t)?(e.ownerDocument||e).body:Wo(t)&&sh(t)?t:ZN(t)}function vo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=ZN(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Mr(o);if(i){let s=Wb(a);return t.concat(a,a.visualViewport||[],sh(o)?o:[],s&&r?vo(s):[])}else return t.concat(o,vo(o,[],r))}function Wb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vC(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Ad(e,t){if(!e||!t)return!1;let r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Ub(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function xC(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function bC(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function KN(e){return sQ()?!1:!qN()&&e.width===0&&e.height===0||qN()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function GN(){return/apple/i.test(navigator.vendor)}function qN(){let e=/android/i;return e.test(xC())||e.test(bC())}function XN(){return xC().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function sQ(){return bC().includes("jsdom/")}function Zb(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function QN(e){return"nativeEvent"in e}function JN(e){return e.matches("html,body")}function Zs(e){return e?.ownerDocument||document}function qb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let r=e;return r.target!=null&&t.contains(r.target)}function yc(e){return"composedPath"in e?e.composedPath()[0]:e.target}var lQ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YN(e){return Wo(e)&&e.matches(lQ)}var fn=Math.min,Zo=Math.max,dh=Math.round,fh=Math.floor,Mi=e=>({x:e,y:e}),cQ={left:"right",right:"left",bottom:"top",top:"bottom"};function yC(e,t,r){return Zo(e,fn(t,r))}function ji(e,t){return typeof e=="function"?e(t):e}function di(e){return e.split("-")[0]}function _c(e){return e.split("-")[1]}function Gb(e){return e==="x"?"y":"x"}function Xb(e){return e==="y"?"height":"width"}function En(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Qb(e){return Gb(En(e))}function rB(e,t,r){r===void 0&&(r=!1);let n=_c(e),o=Qb(e),i=Xb(o),a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=uh(a)),[a,uh(a)]}function oB(e){let t=uh(e);return[Kb(e),t,Kb(t)]}function Kb(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var eB=["left","right"],tB=["right","left"],uQ=["top","bottom"],dQ=["bottom","top"];function fQ(e,t,r){switch(e){case"top":case"bottom":return r?t?tB:eB:t?eB:tB;case"left":case"right":return t?uQ:dQ;default:return[]}}function nB(e,t,r,n){let o=_c(e),i=fQ(di(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Kb)))),i}function uh(e){let t=di(e);return cQ[t]+e.slice(t.length)}function mQ(e){var t,r,n,o;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(o=e.left)!=null?o:0}}function Jb(e){return typeof e!="number"?mQ(e):{top:e,right:e,bottom:e,left:e}}function fi(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}var UB=b(Hs(),1);function iB(e,t,r){let{reference:n,floating:o}=e,i=En(t),a=Qb(t),s=Xb(a),l=di(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2,m;switch(l){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}let p=_c(t);return p&&(m[a]+=f*(p==="end"?1:-1)*(r&&c?-1:1)),m}async function aB(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=ji(t,e),p=Jb(m),y=s[f?d==="floating"?"reference":"floating":d],v=fi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},w=fi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:x,strategy:l}):g);return{top:(v.top-w.top+p.top)/_.y,bottom:(w.bottom-v.bottom+p.bottom)/_.y,left:(v.left-w.left+p.left)/_.x,right:(w.right-v.right+p.right)/_.x}}var pQ=50,sB=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:aB},l=await(a.isRTL==null?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=iB(c,n,l),f=n,m=0,p={};for(let h=0;h<i.length;h++){let y=i[h];if(!y)continue;let{name:v,fn:g}=y,{x,y:_,data:w,reset:I}=await g({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,d=_??d,p[v]={...p[v],...w},I&&m<pQ&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(c=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:u,y:d}=iB(c,f,l)),h=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}},lB=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ji(e,t)||{};if(c==null)return{};let d=Jb(u),f={x:r,y:n},m=Qb(o),p=Xb(m),h=await a.getDimensions(c),y=m==="y",v=y?"top":"left",g=y?"bottom":"right",x=y?"clientHeight":"clientWidth",_=i.reference[p]+i.reference[m]-f[m]-i.floating[p],w=f[m]-i.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c)),k=I?I[x]:0;(!k||!await(a.isElement==null?void 0:a.isElement(I)))&&(k=s.floating[x]||i.floating[p]);let C=_/2-w/2,U=k/2-h[p]/2-1,H=fn(d[v],U),W=fn(d[g],U),X=k-h[p]-W,N=k/2-h[p]/2+C,A=yC(H,N,X),B=!l.arrow&&_c(o)!=null&&N!==A&&i.reference[p]/2-(N<H?H:W)-h[p]/2<0,T=B?N<H?N-H:N-X:0;return{[m]:f[m]+T,data:{[m]:A,centerOffset:N-A-T,...B&&{alignmentOffset:T}},reset:B}}});var cB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...y}=ji(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};let v=di(o),g=En(s),x=di(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(x||!h?[uh(s)]:oB(s)),I=p!=="none";!f&&I&&w.push(...nB(s,h,p,_));let k=[s,...w],C=await l.detectOverflow(t,y),U=[],H=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&U.push(C[v]),d){let A=rB(o,a,_);U.push(C[A[0]],C[A[1]])}if(H=[...H,{placement:o,overflows:U}],!U.every(A=>A<=0)){var W,X;let A=(((W=i.flip)==null?void 0:W.index)||0)+1,B=k[A];if(B&&(!(d==="alignment"?g!==En(B):!1)||H.every($=>En($.placement)===g?$.overflows[0]>0:!0)))return{data:{index:A,overflows:H},reset:{placement:B}};let T=(X=H.filter(M=>M.overflows[0]<=0).sort((M,$)=>M.overflows[1]-$.overflows[1])[0])==null?void 0:X.placement;if(!T)switch(m){case"bestFit":{var N;let M=(N=H.filter($=>{if(I){let O=En($.placement);return O===g||O==="y"}return!0}).map($=>[$.placement,$.overflows.filter(O=>O>0).reduce((O,Z)=>O+Z,0)]).sort(($,O)=>$[1]-O[1])[0])==null?void 0:N[0];M&&(T=M);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function uB(e){let t=fn(...e.map(i=>i.left)),r=fn(...e.map(i=>i.top)),n=Zo(...e.map(i=>i.right)),o=Zo(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function hQ(e){let t=e.slice().sort((o,i)=>o.y-i.y),r=[],n=null;for(let o=0;o<t.length;o++){let i=t[o];!n||i.y-n.y>n.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>fi(uB(o)))}var dB=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:s=2,x:l,y:c}=ji(e,t),u=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]);if(!u.length)return{};let d=hQ(u),f=fi(uB(u)),m=Jb(s);function p(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&l!=null&&c!=null)return d.find(y=>l>y.left-m.left&&l<y.right+m.right&&c>y.top-m.top&&c<y.bottom+m.bottom)||f;if(d.length>=2){if(En(r)==="y"){let I=d[0],k=d[d.length-1],C=di(r)==="top",U=I.top,H=k.bottom,W=C?I.left:k.left,X=C?I.right:k.right;return fi({x:W,y:U,width:X-W,height:H-U})}let y=di(r)==="left",v=Zo(...d.map(I=>I.right)),g=fn(...d.map(I=>I.left)),x=d.filter(I=>y?I.left===g:I.right===v),_=x[0].top,w=x[x.length-1].bottom;return fi({x:g,y:_,width:v-g,height:w-_})}return f}let h=await i.getElementRects({reference:{getBoundingClientRect:p},floating:n.floating,strategy:a});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},fB=new Set(["left","top"]);async function gQ(e,t){let{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=di(r),s=_c(r),l=En(r)==="y",c=fB.has(a)?-1:1,u=i&&l?-1:1,d=ji(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(m=s==="end"?p*-1:p),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}var mB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:s}=t,l=await gQ(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},pB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x,y:_}=g;return{x,y:_}}},...c}=ji(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),f=En(o),m=Gb(f),p=u[m],h=u[f],y=(g,x)=>yC(x+d[g==="y"?"top":"left"],x,x-d[g==="y"?"bottom":"right"]);a&&(p=y(m,p)),s&&(h=y(f,h));let v=l.fn({...t,[m]:p,[f]:h});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:a,[f]:s}}}}}},hB=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,n;let{x:o,y:i,placement:a,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=ji(e,t),f={x:o,y:i},m=En(a),p=Gb(m),h=f[p],y=f[m],v=ji(c,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(r=v.mainAxis)!=null?r:0,crossAxis:(n=v.crossAxis)!=null?n:0};if(u){let w=p==="y"?"height":"width",I=s.reference[p]-s.floating[w]+g.mainAxis,k=s.reference[p]+s.reference[w]-g.mainAxis;h<I?h=I:h>k&&(h=k)}if(d){var x,_;let w=p==="y"?"width":"height",I=fB.has(di(a)),k=s.reference[m]-s.floating[w]+(I&&((x=l.offset)==null?void 0:x[m])||0)+(I?0:g.crossAxis),C=s.reference[m]+s.reference[w]+(I?0:((_=l.offset)==null?void 0:_[m])||0)-(I?g.crossAxis:0);y<k?y=k:y>C&&(y=C)}return{[p]:h,[m]:y}}}},gB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=ji(e,t),l=await o.detectOverflow(t,s),c=di(r),u=_c(r),d=En(r)==="y",{width:f,height:m}=n.floating,p,h;c==="top"||c==="bottom"?(p=c,h=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,p=u==="end"?"top":"bottom");let y=m-l.top-l.bottom,v=f-l.left-l.right,g=fn(m-l[p],y),x=fn(f-l[h],v),_=t.middlewareData.shift,w=!_,I=g,k=x;_!=null&&_.enabled.x&&(k=v),_!=null&&_.enabled.y&&(I=y),w&&!u&&(d?k=f-2*Zo(l.left,l.right):I=m-2*Zo(l.top,l.bottom)),await a({...t,availableWidth:k,availableHeight:I});let C=await o.getDimensions(i.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function bB(e){let t=dn(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=Wo(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=dh(r)!==i||dh(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function IC(e){return xt(e)?e:e.contextElement}function Fd(e){let t=IC(e);if(!Wo(t))return Mi(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bB(t),a=(i?dh(r.width):r.width)/n,s=(i?dh(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var vQ=Mi(0);function yB(e){let t=Mr(e);return!zd()||!t.visualViewport?vQ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xQ(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===Mr(e)}function Ic(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),i=IC(e),a=Mi(1);t&&(n?xt(n)&&(a=Fd(n)):a=Fd(e));let s=xQ(i,r,n)?yB(i):Mi(0),l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i&&n){let f=Mr(i),m=xt(n)?Mr(n):n,p=f,h=Wb(p);for(;h&&m!==p;){let y=Fd(h),v=h.getBoundingClientRect(),g=dn(h),x=v.left+(h.clientLeft+parseFloat(g.paddingLeft))*y.x,_=v.top+(h.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=_,p=Mr(h),h=Wb(p)}}return fi({width:u,height:d,x:l,y:c})}function Yb(e,t){let r=ch(e).scrollLeft;return t?t.left+r:Ic(Li(e)).left+r}function _B(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Yb(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function bQ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i=o==="fixed",a=Li(n),s=t?lh(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Mi(1),u=Mi(0),d=Wo(n);if((d||!i)&&((Ws(n)!=="body"||sh(a))&&(l=ch(n)),d)){let m=Ic(n);c=Fd(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}let f=a&&!d&&!i?_B(a,l):Mi(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function yQ(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _Q(e){let t=ch(e),r=e.ownerDocument.body,n=Zo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Zo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),i=-t.scrollLeft+Yb(e),a=-t.scrollTop;return dn(r).direction==="rtl"&&(i+=Zo(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:a}}var IQ=25;function wQ(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",o=Mr(e),i=Li(e),a=o.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,u=0;if(a){let f=!zd()||t==="fixed";n?f||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,f&&(c=a.offsetLeft,u=a.offsetTop))}if(Yb(i)<=0){let f=i.ownerDocument,m=f.body,p=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(i.clientWidth-m.clientWidth-h),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;v<=IQ&&(s-=v)}return{width:s,height:l,x:c,y:u}}function SQ(e,t){let r=Ic(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Fd(e),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function vB(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=wQ(e,r,t);else if(t==="document")n=_Q(Li(e));else if(xt(t))n=SQ(t,r);else{let o=yB(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fi(n)}function kQ(e,t){let r=t.get(e);if(r)return r;let n=vo(e,[],!1).filter(s=>xt(s)&&Ws(s)!=="body"),o=null,i=dn(e).position==="fixed",a=i?Bi(e):e;for(;xt(a)&&!Oa(a);){let s=dn(a),l=Hb(a),c=o?o.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&s.position==="static")?n=n.filter(d=>d!==a):o=s,a=Bi(a)}return t.set(e,n),n}function CQ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[...r==="clippingAncestors"?lh(t)?[]:kQ(t,this._c):[].concat(r),n],s=vB(t,a[0],o),l=s.top,c=s.right,u=s.bottom,d=s.left;for(let f=1;f<a.length;f++){let m=vB(t,a[f],o);l=Zo(m.top,l),c=fn(m.right,c),u=fn(m.bottom,u),d=Zo(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function PQ(e){let{width:t,height:r}=bB(e);return{width:t,height:r}}function $Q(e,t,r){let n=Wo(t),o=Li(t),i=r==="fixed",a=Ic(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=Mi(0);if((n||!i)&&((Ws(t)!=="body"||sh(o))&&(s=ch(t)),n)){let f=Ic(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!n&&o&&(l.x=Yb(o));let c=o&&!n&&!i?_B(o,s):Mi(0),u=a.left+s.scrollLeft-l.x-c.x,d=a.top+s.scrollTop-l.y-c.y;return{x:u,y:d,width:a.width,height:a.height}}function _C(e){return dn(e).position==="static"}function xB(e,t){if(!Wo(e)||dn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Li(e)===r&&(r=r.ownerDocument.body),r}function IB(e,t){let r=Mr(e);if(lh(e))return r;if(!Wo(e)){let o=Bi(e);for(;o&&!Oa(o);){if(xt(o)&&!_C(o))return o;o=Bi(o)}return r}let n=xB(e,t);for(;n&&HN(n)&&_C(n);)n=xB(n,t);return n&&Oa(n)&&_C(n)&&!Hb(n)?r:n||WN(e)||r}var RQ=async function(e){let t=this.getOffsetParent||IB,r=this.getDimensions,n=await r(e.floating);return{reference:$Q(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function DQ(e){return dn(e).direction==="rtl"}var wC={convertOffsetParentRelativeRectToViewportRelativeRect:bQ,getDocumentElement:Li,getClippingRect:CQ,getOffsetParent:IB,getElementRects:RQ,getClientRects:yQ,getDimensions:PQ,getScale:Fd,isElement:xt,isRTL:DQ};function wB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function EQ(e,t,r){let n=null,o,i=Li(e);function a(){var u;clearTimeout(o),(u=n)==null||u.disconnect(),n=null}function s(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();let f=e.getBoundingClientRect(),{left:m,top:p,width:h,height:y}=f;if(u||t(),!h||!y)return;let v=fh(p),g=fh(i.clientWidth-(m+h)),x=fh(i.clientHeight-(p+y)),_=fh(m),I={rootMargin:-v+"px "+-g+"px "+-x+"px "+-_+"px",threshold:Zo(0,fn(1,d))||1},k=!0;function C(U){let H=U[0].intersectionRatio;if(!wB(f,e.getBoundingClientRect()))return s();if(H!==d){if(!k)return s();H?s(!1,H):o=setTimeout(()=>{s(!1,1e-7)},1e3)}k=!1}try{n=new IntersectionObserver(C,{...I,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,I)}n.observe(e)}let l=Mr(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}function ey(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=IC(e),u=o||i?[...c?vo(c):[],...t?vo(t):[]]:[];u.forEach(v=>{o&&v.addEventListener("scroll",r),i&&v.addEventListener("resize",r)});let d=c&&s?EQ(c,r,i):null,f=-1,m=null;a&&(m=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),r()}),c&&!l&&m.observe(c),t&&m.observe(t));let p,h=l?Ic(e):null;l&&y();function y(){let v=Ic(e);h&&!wB(h,v)&&r(),h=v,p=requestAnimationFrame(y)}return r(),()=>{var v;u.forEach(g=>{o&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),d?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var SB=mB;var kB=pB,CB=cB,PB=gB;var SC=lB,$B=dB,RB=hB,ty=(e,t,r)=>{let n=new Map,o=r??{},i={...wC,...o.platform,_c:n};return sB(e,t,{...o,platform:i})};var sr=b(S(),1),TB=b(S(),1),OB=b(Hs(),1),TQ=typeof document<"u",OQ=function(){},ry=TQ?TB.useLayoutEffect:OQ;function oy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!oy(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!oy(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function DB(e,t){let r=zB(e);return Math.round(t*r)/r}function kC(e){let t=sr.useRef(e);return ry(()=>{t.current=e}),t}function AB(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=sr.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=sr.useState(n);oy(f,n)||m(n);let[p,h]=sr.useState(null),[y,v]=sr.useState(null),g=sr.useCallback($=>{$!==I.current&&(I.current=$,h($))},[]),x=sr.useCallback($=>{$!==k.current&&(k.current=$,v($))},[]),_=i||p,w=a||y,I=sr.useRef(null),k=sr.useRef(null),C=sr.useRef(u),U=l!=null,H=kC(l),W=kC(o),X=kC(c),N=sr.useCallback(()=>{if(!I.current||!k.current)return;let $={placement:t,strategy:r,middleware:f};W.current&&($.platform=W.current),ty(I.current,k.current,$).then(O=>{let Z={...O,isPositioned:X.current!==!1};A.current&&!oy(C.current,Z)&&(C.current=Z,OB.flushSync(()=>{d(Z)}))})},[f,t,r,W,X]);ry(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d($=>({...$,isPositioned:!1})))},[c]);let A=sr.useRef(!1);ry(()=>(A.current=!0,()=>{A.current=!1}),[]),ry(()=>{if(_&&(I.current=_),w&&(k.current=w),_&&w){if(H.current)return H.current(_,w,N);N()}},[_,w,N,H,U]);let B=sr.useMemo(()=>({reference:I,floating:k,setReference:g,setFloating:x}),[g,x]),T=sr.useMemo(()=>({reference:_,floating:w}),[_,w]),M=sr.useMemo(()=>{let $={position:r,left:0,top:0};if(!T.floating)return $;let O=DB(T.floating,u.x),Z=DB(T.floating,u.y);return s?{...$,transform:"translate("+O+"px, "+Z+"px)",...zB(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:Z}},[r,s,T.floating,u.x,u.y]);return sr.useMemo(()=>({...u,update:N,refs:B,elements:T,floatingStyles:M}),[u,N,B,T,M])}var zQ=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?SC({element:n.current,padding:o}).fn(r):{}:n?SC({element:n,padding:o}).fn(r):{}}}},Nd=(e,t)=>{let r=SB(e);return{name:r.name,fn:r.fn,options:[e,t]}},wc=(e,t)=>{let r=kB(e);return{name:r.name,fn:r.fn,options:[e,t]}},ny=(e,t)=>({fn:RB(e).fn,options:[e,t]}),Sc=(e,t)=>{let r=CB(e);return{name:r.name,fn:r.fn,options:[e,t]}},CC=(e,t)=>{let r=PB(e);return{name:r.name,fn:r.fn,options:[e,t]}};var qs=(e,t)=>{let r=$B(e);return{name:r.name,fn:r.fn,options:[e,t]}},mh=(e,t)=>{let r=zQ(e);return{name:r.name,fn:r.fn,options:[e,t]}};function VB(e){return ie.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}var HB={...ie},AQ=HB.useInsertionEffect,FQ=AQ||(e=>e());function za(e){let t=ie.useRef(()=>{});return FQ(()=>{t.current=e}),ie.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var NQ="ArrowUp",BQ="ArrowDown",LQ="ArrowLeft",MQ="ArrowRight";var Ui=typeof document<"u"?Bd.useLayoutEffect:Bd.useEffect;var jQ=[LQ,MQ],UQ=[NQ,BQ],_ye=[...jQ,...UQ];var FB=!1,VQ=0,NB=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+VQ++;function HQ(){let[e,t]=ie.useState(()=>FB?NB():void 0);return Ui(()=>{e==null&&t(NB())},[]),ie.useEffect(()=>{FB=!0},[]),e}var WQ=HB.useId,WB=WQ||HQ;function ZQ(){let e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}var qQ=ie.createContext(null),KQ=ie.createContext(null),EC=()=>{var e;return((e=ie.useContext(qQ))==null?void 0:e.id)||null},TC=()=>ie.useContext(KQ);function OC(e){return"data-floating-ui-"+e}function PC(e){let t=(0,Bd.useRef)(e);return Ui(()=>{t.current=e}),t}var BB=OC("safe-polygon");function iy(e,t,r){return r&&!Zb(r)?0:typeof e=="number"?e:e?.[t]}function ZB(e,t){t===void 0&&(t={});let{open:r,onOpenChange:n,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,m=TC(),p=EC(),h=PC(c),y=PC(l),v=PC(r),g=ie.useRef(),x=ie.useRef(-1),_=ie.useRef(),w=ie.useRef(-1),I=ie.useRef(!0),k=ie.useRef(!1),C=ie.useRef(()=>{}),U=ie.useRef(!1),H=ie.useCallback(()=>{var M;let $=(M=o.current.openEvent)==null?void 0:M.type;return $?.includes("mouse")&&$!=="mousedown"},[o]);ie.useEffect(()=>{if(!s)return;function M($){let{open:O}=$;O||(clearTimeout(x.current),clearTimeout(w.current),I.current=!0,U.current=!1)}return i.on("openchange",M),()=>{i.off("openchange",M)}},[s,i]),ie.useEffect(()=>{if(!s||!h.current||!r)return;function M(O){H()&&n(!1,O,"hover")}let $=Zs(a.floating).documentElement;return $.addEventListener("mouseleave",M),()=>{$.removeEventListener("mouseleave",M)}},[a.floating,r,n,s,h,H]);let W=ie.useCallback(function(M,$,O){$===void 0&&($=!0),O===void 0&&(O="hover");let Z=iy(y.current,"close",g.current);Z&&!_.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>n(!1,M,O),Z)):$&&(clearTimeout(x.current),n(!1,M,O))},[y,n]),X=za(()=>{C.current(),_.current=void 0}),N=za(()=>{if(k.current){let M=Zs(a.floating).body;M.style.pointerEvents="",M.removeAttribute(BB),k.current=!1}}),A=za(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);ie.useEffect(()=>{if(!s)return;function M(Y){if(clearTimeout(x.current),I.current=!1,u&&!Zb(g.current)||d>0&&!iy(y.current,"open"))return;let te=iy(y.current,"open",g.current);te?x.current=window.setTimeout(()=>{v.current||n(!0,Y,"hover")},te):r||n(!0,Y,"hover")}function $(Y){if(A())return;C.current();let te=Zs(a.floating);if(clearTimeout(w.current),U.current=!1,h.current&&o.current.floatingContext){r||clearTimeout(x.current),_.current=h.current({...o.current.floatingContext,tree:m,x:Y.clientX,y:Y.clientY,onClose(){N(),X(),A()||W(Y,!0,"safe-polygon")}});let ge=_.current;te.addEventListener("mousemove",ge),C.current=()=>{te.removeEventListener("mousemove",ge)};return}(g.current!=="touch"||!Ad(a.floating,Y.relatedTarget))&&W(Y)}function O(Y){A()||o.current.floatingContext&&(h.current==null||h.current({...o.current.floatingContext,tree:m,x:Y.clientX,y:Y.clientY,onClose(){N(),X(),A()||W(Y)}})(Y))}if(xt(a.domReference)){var Z;let Y=a.domReference;return r&&Y.addEventListener("mouseleave",O),(Z=a.floating)==null||Z.addEventListener("mouseleave",O),f&&Y.addEventListener("mousemove",M,{once:!0}),Y.addEventListener("mouseenter",M),Y.addEventListener("mouseleave",$),()=>{var te;r&&Y.removeEventListener("mouseleave",O),(te=a.floating)==null||te.removeEventListener("mouseleave",O),f&&Y.removeEventListener("mousemove",M),Y.removeEventListener("mouseenter",M),Y.removeEventListener("mouseleave",$)}}},[a,s,e,u,d,f,W,X,N,n,r,v,m,y,h,o,A]),Ui(()=>{var M;if(s&&r&&(M=h.current)!=null&&M.__options.blockPointerEvents&&H()){k.current=!0;let O=a.floating;if(xt(a.domReference)&&O){var $;let Z=Zs(a.floating).body;Z.setAttribute(BB,"");let Y=a.domReference,te=m==null||($=m.nodesRef.current.find(ve=>ve.id===p))==null||($=$.context)==null?void 0:$.elements.floating;return te&&(te.style.pointerEvents=""),Z.style.pointerEvents="none",Y.style.pointerEvents="auto",O.style.pointerEvents="auto",()=>{Z.style.pointerEvents="",Y.style.pointerEvents="",O.style.pointerEvents=""}}}},[s,r,p,a,m,h,H]),Ui(()=>{r||(g.current=void 0,U.current=!1,X(),N())},[r,X,N]),ie.useEffect(()=>()=>{X(),clearTimeout(x.current),clearTimeout(w.current),N()},[s,a.domReference,X,N]);let B=ie.useMemo(()=>{function M($){g.current=$.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove($){let{nativeEvent:O}=$;function Z(){!I.current&&!v.current&&n(!0,O,"hover")}u&&!Zb(g.current)||r||d===0||U.current&&$.movementX**2+$.movementY**2<2||(clearTimeout(w.current),g.current==="touch"?Z():(U.current=!0,w.current=window.setTimeout(Z,d)))}}},[u,n,r,v,d]),T=ie.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(M){A()||W(M.nativeEvent,!1)}}),[W,A]);return ie.useMemo(()=>s?{reference:B,floating:T}:{},[s,B,T])}var DC=()=>{},qB=ie.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:DC,setState:DC,isInstantPhase:!1}),GQ=()=>ie.useContext(qB);function KB(e){let{children:t,delay:r,timeoutMs:n=0}=e,[o,i]=ie.useReducer((l,c)=>({...l,...c}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=ie.useRef(null),s=ie.useCallback(l=>{i({currentId:l})},[]);return Ui(()=>{o.currentId?a.current===null?a.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),a.current=null)},[o.currentId,o.isInstantPhase]),ie.createElement(qB.Provider,{value:ie.useMemo(()=>({...o,setState:i,setCurrentId:s}),[o,s])},t)}function GB(e,t){t===void 0&&(t={});let{open:r,onOpenChange:n,floatingId:o}=e,{id:i,enabled:a=!0}=t,s=i??o,l=GQ(),{currentId:c,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:m}=l;return Ui(()=>{a&&c&&(f({delay:{open:1,close:iy(d,"close")}}),c!==s&&n(!1))},[a,s,n,f,c,d]),Ui(()=>{function p(){n(!1),f({delay:d,currentId:null})}if(a&&c&&!r&&c===s){if(m){let h=window.setTimeout(p,m);return()=>{clearTimeout(h)}}p()}},[a,r,f,c,s,n,d,m]),Ui(()=>{a&&(u===DC||!r||u(s))},[a,r,u,s]),l}function $C(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var s;return o.parentId===a.id&&((s=o.context)==null?void 0:s.open)})}),r=r.concat(n);return r}var XQ="data-floating-ui-focusable";var QQ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},JQ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},LB=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e?.outsidePress)!=null?r:!0}};function XB(e,t){t===void 0&&(t={});let{open:r,onOpenChange:n,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:p}=t,h=TC(),y=za(typeof l=="function"?l:()=>!1),v=typeof l=="function"?y:l,g=ie.useRef(!1),x=ie.useRef(!1),{escapeKey:_,outsidePress:w}=LB(m),{escapeKey:I,outsidePress:k}=LB(p),C=ie.useRef(!1),U=za(B=>{var T;if(!r||!a||!s||B.key!=="Escape"||C.current)return;let M=(T=i.current.floatingContext)==null?void 0:T.nodeId,$=h?$C(h.nodesRef.current,M):[];if(!_&&(B.stopPropagation(),$.length>0)){let O=!0;if($.forEach(Z=>{var Y;if((Y=Z.context)!=null&&Y.open&&!Z.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}n(!1,QN(B)?B.nativeEvent:B,"escape-key")}),H=za(B=>{var T;let M=()=>{var $;U(B),($=yc(B))==null||$.removeEventListener("keydown",M)};(T=yc(B))==null||T.addEventListener("keydown",M)}),W=za(B=>{var T;let M=g.current;g.current=!1;let $=x.current;if(x.current=!1,c==="click"&&$||M||typeof v=="function"&&!v(B))return;let O=yc(B),Z="["+OC("inert")+"]",Y=Zs(o.floating).querySelectorAll(Z),te=xt(O)?O:null;for(;te&&!Oa(te);){let ae=Bi(te);if(Oa(ae)||!xt(ae))break;te=ae}if(Y.length&&xt(O)&&!JN(O)&&!Ad(O,o.floating)&&Array.from(Y).every(ae=>!Ad(te,ae)))return;if(Wo(O)&&A){let ae=O.clientWidth>0&&O.scrollWidth>O.clientWidth,ye=O.clientHeight>0&&O.scrollHeight>O.clientHeight,se=ye&&B.offsetX>O.clientWidth;if(ye&&dn(O).direction==="rtl"&&(se=B.offsetX<=O.offsetWidth-O.clientWidth),se||ae&&B.offsetY>O.clientHeight)return}let ve=(T=i.current.floatingContext)==null?void 0:T.nodeId,ge=h&&$C(h.nodesRef.current,ve).some(ae=>{var ye;return qb(B,(ye=ae.context)==null?void 0:ye.elements.floating)});if(qb(B,o.floating)||qb(B,o.domReference)||ge)return;let q=h?$C(h.nodesRef.current,ve):[];if(q.length>0){let ae=!0;if(q.forEach(ye=>{var se;if((se=ye.context)!=null&&se.open&&!ye.context.dataRef.current.__outsidePressBubbles){ae=!1;return}}),!ae)return}n(!1,B,"outside-press")}),X=za(B=>{var T;let M=()=>{var $;W(B),($=yc(B))==null||$.removeEventListener(c,M)};(T=yc(B))==null||T.addEventListener(c,M)});ie.useEffect(()=>{if(!r||!a)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=w;let B=-1;function T(Y){n(!1,Y,"ancestor-scroll")}function M(){window.clearTimeout(B),C.current=!0}function $(){B=window.setTimeout(()=>{C.current=!1},zd()?5:0)}let O=Zs(o.floating);s&&(O.addEventListener("keydown",I?H:U,I),O.addEventListener("compositionstart",M),O.addEventListener("compositionend",$)),v&&O.addEventListener(c,k?X:W,k);let Z=[];return f&&(xt(o.domReference)&&(Z=vo(o.domReference)),xt(o.floating)&&(Z=Z.concat(vo(o.floating))),!xt(o.reference)&&o.reference&&o.reference.contextElement&&(Z=Z.concat(vo(o.reference.contextElement)))),Z=Z.filter(Y=>{var te;return Y!==((te=O.defaultView)==null?void 0:te.visualViewport)}),Z.forEach(Y=>{Y.addEventListener("scroll",T,{passive:!0})}),()=>{s&&(O.removeEventListener("keydown",I?H:U,I),O.removeEventListener("compositionstart",M),O.removeEventListener("compositionend",$)),v&&O.removeEventListener(c,k?X:W,k),Z.forEach(Y=>{Y.removeEventListener("scroll",T)}),window.clearTimeout(B)}},[i,o,s,v,c,r,n,f,a,_,w,U,I,H,W,k,X]),ie.useEffect(()=>{g.current=!1},[v,c]);let N=ie.useMemo(()=>({onKeyDown:U,[QQ[d]]:B=>{u&&n(!1,B.nativeEvent,"reference-press")}}),[U,n,u,d]),A=ie.useMemo(()=>({onKeyDown:U,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[JQ[c]]:()=>{g.current=!0}}),[U,c]);return ie.useMemo(()=>a?{reference:N,floating:A}:{},[a,N,A])}function YQ(e){let{open:t=!1,onOpenChange:r,elements:n}=e,o=WB(),i=ie.useRef({}),[a]=ie.useState(()=>ZQ()),s=EC()!=null,[l,c]=ie.useState(n.reference),u=za((m,p,h)=>{i.current.openEvent=m?p:void 0,a.emit("openchange",{open:m,event:p,reason:h,nested:s}),r?.(m,p,h)}),d=ie.useMemo(()=>({setPositionReference:c}),[]),f=ie.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return ie.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d}),[t,u,f,a,o,d])}function Ld(e){e===void 0&&(e={});let{nodeId:t}=e,r=YQ({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[i,a]=ie.useState(null),[s,l]=ie.useState(null),u=o?.domReference||i,d=ie.useRef(null),f=TC();Ui(()=>{u&&(d.current=u)},[u]);let m=AB({...e,elements:{...o,...s&&{reference:s}}}),p=ie.useCallback(x=>{let _=xt(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(_),m.refs.setReference(_)},[m.refs]),h=ie.useCallback(x=>{(xt(x)||x===null)&&(d.current=x,a(x)),(xt(m.refs.reference.current)||m.refs.reference.current===null||x!==null&&!xt(x))&&m.refs.setReference(x)},[m.refs]),y=ie.useMemo(()=>({...m.refs,setReference:h,setPositionReference:p,domReference:d}),[m.refs,h,p]),v=ie.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),g=ie.useMemo(()=>({...m,...n,refs:y,elements:v,nodeId:t}),[m,y,v,t,n]);return Ui(()=>{n.dataRef.current.floatingContext=g;let x=f?.nodesRef.current.find(_=>_.id===t);x&&(x.context=g)}),ie.useMemo(()=>({...m,context:g,refs:y,elements:v}),[m,y,v,g])}function QB(e,t){t===void 0&&(t={});let{open:r,onOpenChange:n,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=ie.useRef(!1),u=ie.useRef(),d=ie.useRef(!0);ie.useEffect(()=>{if(!s)return;let m=Mr(a.domReference);function p(){!r&&Wo(a.domReference)&&a.domReference===vC(Zs(a.domReference))&&(c.current=!0)}function h(){d.current=!0}return m.addEventListener("blur",p),m.addEventListener("keydown",h,!0),()=>{m.removeEventListener("blur",p),m.removeEventListener("keydown",h,!0)}},[a.domReference,r,s]),ie.useEffect(()=>{if(!s)return;function m(p){let{reason:h}=p;(h==="reference-press"||h==="escape-key")&&(c.current=!0)}return o.on("openchange",m),()=>{o.off("openchange",m)}},[o,s]),ie.useEffect(()=>()=>{clearTimeout(u.current)},[]);let f=ie.useMemo(()=>({onPointerDown(m){KN(m.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(m){if(c.current)return;let p=yc(m.nativeEvent);if(l&&xt(p))try{if(GN()&&XN())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!d.current&&!YN(p))return}n(!0,m.nativeEvent,"focus")},onBlur(m){c.current=!1;let p=m.relatedTarget,h=m.nativeEvent,y=xt(p)&&p.hasAttribute(OC("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var v;let g=vC(a.domReference?a.domReference.ownerDocument:document);!p&&g===a.domReference||Ad((v=i.current.floatingContext)==null?void 0:v.refs.floating.current,g)||Ad(a.domReference,g)||y||n(!1,h,"focus")})}}),[i,a.domReference,n,l]);return ie.useMemo(()=>s?{reference:f}:{},[s,f])}var MB="active",jB="selected";function RC(e,t,r){let n=new Map,o=r==="item",i=e;if(o&&e){let{[MB]:a,[jB]:s,...l}=e;i=l}return{...r==="floating"&&{tabIndex:-1,[XQ]:""},...i,...t.map(a=>{let s=a?a[r]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[c,u]=l;if(!(o&&[MB,jB].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof u=="function"){var d;(d=n.get(c))==null||d.push(u),a[c]=function(){for(var f,m=arguments.length,p=new Array(m),h=0;h<m;h++)p[h]=arguments[h];return(f=n.get(c))==null?void 0:f.map(y=>y(...p)).find(y=>y!==void 0)}}}else a[c]=u}),a),{})}}function JB(e){e===void 0&&(e=[]);let t=e.map(s=>s?.reference),r=e.map(s=>s?.floating),n=e.map(s=>s?.item),o=ie.useCallback(s=>RC(s,e,"reference"),t),i=ie.useCallback(s=>RC(s,e,"floating"),r),a=ie.useCallback(s=>RC(s,e,"item"),n);return ie.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}var eJ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function YB(e,t){var r;t===void 0&&(t={});let{open:n,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=(r=eJ.get(a))!=null?r:a,l=WB(),u=EC()!=null,d=ie.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?o:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&u&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,o,u,n,l,a]),f=ie.useMemo(()=>{let p={id:o,...s&&{role:s}};return s==="tooltip"||a==="label"?p:{...p,...s==="menu"&&{"aria-labelledby":l}}},[s,o,l,a]),m=ie.useCallback(p=>{let{active:h,selected:y}=p,v={role:"option",...h&&{id:o+"-option"}};switch(a){case"select":return{...v,"aria-selected":h&&y};case"combobox":return{...v,...h&&{"aria-selected":!0}}}return{}},[o,a]);return ie.useMemo(()=>i?{reference:d,floating:f,item:m}:{},[i,d,f,m])}var zC=b(R(),1),Md=b(S(),1);var Sye=b(S(),1);var Cye=b(R(),1);var[eL,Ht]=_r("ScrollArea.Root component was not found in tree");function Aa(e,t){let r=ti(t);mo(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var tJ=(0,Md.forwardRef)((e,t)=>{let{style:r,...n}=e,o=Ht(),[i,a]=(0,Md.useState)(0),[s,l]=(0,Md.useState)(0),c=!!(i&&s);return Aa(o.scrollbarX,()=>{let u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),l(u)}),Aa(o.scrollbarY,()=>{let u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),a(u)}),c?(0,zC.jsx)("div",{...n,ref:t,style:{...r,width:i,height:s}}):null}),tL=(0,Md.forwardRef)((e,t)=>{let r=Ht(),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?(0,zC.jsx)(tJ,{...e,ref:t}):null});var AC=b(R(),1),Tn=b(S(),1);var rJ={scrollHideDelay:1e3,type:"hover"},FC=(0,Tn.forwardRef)((e,t)=>{let r=E("ScrollAreaRoot",rJ,e),{type:n,scrollHideDelay:o,scrollbars:i,...a}=r,[s,l]=(0,Tn.useState)(null),[c,u]=(0,Tn.useState)(null),[d,f]=(0,Tn.useState)(null),[m,p]=(0,Tn.useState)(null),[h,y]=(0,Tn.useState)(null),[v,g]=(0,Tn.useState)(0),[x,_]=(0,Tn.useState)(0),[w,I]=(0,Tn.useState)(!1),[k,C]=(0,Tn.useState)(!1),U=Le(t,H=>l(H));return(0,AC.jsx)(eL,{value:{type:n,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:m,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:I,scrollbarY:h,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:C,onCornerWidthChange:g,onCornerHeightChange:_},children:(0,AC.jsx)(L,{...a,ref:U,__vars:{"--sa-corner-width":i!=="xy"?"0px":`${v}px`,"--sa-corner-height":i!=="xy"?"0px":`${x}px`}})})});FC.displayName="@mantine/core/ScrollAreaRoot";var hh=b(R(),1),dy=b(S(),1);var aL=b(R(),1),uy=b(S(),1);var UC=b(R(),1),kc=b(S(),1);function ay(e,t){let r=e/t;return Number.isNaN(r)?0:r}function Ks(e){let t=ay(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function sy(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function oJ(e,[t,r]){return Math.min(r,Math.max(t,e))}function NC(e,t,r="ltr"){let n=Ks(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-n,l=r==="ltr"?[0,a]:[a*-1,0],c=oJ(e,l);return sy([0,a],[0,s])(c)}function rL(e,t,r,n="ltr"){let o=Ks(r),i=o/2,a=t||i,s=o-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-s,u=r.content-r.viewport,d=n==="ltr"?[0,u]:[u*-1,0];return sy([l,c],d)(e)}var nL=b(R(),1),Gs=b(S(),1);function ly(e,t){return e>0&&e<t}function mi(e){return e?parseInt(e,10):0}var LC=b(R(),1),Hi=b(S(),1);function Vi(e,t,{checkForDefaultPrevented:r=!0}={}){return n=>{e?.(n),(r===!1||!n.defaultPrevented)&&t?.(n)}}var Yye=b(S(),1);var t_e=b(R(),1);var[oL,BC]=_r("ScrollAreaScrollbar was not found in tree");var cy=(0,Hi.forwardRef)((e,t)=>{let{sizes:r,hasThumb:n,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:c,onResize:u,...d}=e,f=Ht(),[m,p]=(0,Hi.useState)(null),h=Le(t,C=>p(C)),y=(0,Hi.useRef)(null),v=(0,Hi.useRef)(""),{viewport:g}=f,x=r.content-r.viewport,_=ti(c),w=ti(s),I=ya(u,10),k=C=>{if(y.current){let U=C.clientX-y.current.left,H=C.clientY-y.current.top;l({x:U,y:H})}};return(0,Hi.useEffect)(()=>{let C=U=>{let H=U.target;m?.contains(H)&&_(U,x)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[g,m,x,_]),(0,Hi.useEffect)(w,[r,w]),Aa(m,I),Aa(f.content,I),(0,LC.jsx)(oL,{value:{scrollbar:m,hasThumb:n,onThumbChange:ti(o),onThumbPointerUp:ti(i),onThumbPositionChange:w,onThumbPointerDown:ti(a)},children:(0,LC.jsx)("div",{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Vi(e.onPointerDown,C=>{C.preventDefault(),C.button===0&&(C.target.setPointerCapture(C.pointerId),y.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(C))}),onPointerMove:Vi(e.onPointerMove,k),onPointerUp:Vi(e.onPointerUp,C=>{let U=C.target;U.hasPointerCapture(C.pointerId)&&(C.preventDefault(),U.releasePointerCapture(C.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,y.current=null}})})});var MC=(0,Gs.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,style:o,...i}=e,a=Ht(),[s,l]=(0,Gs.useState)(),c=(0,Gs.useRef)(null),u=Le(t,c,a.onScrollbarXChange);return(0,Gs.useEffect)(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,nL.jsx)(cy,{"data-orientation":"horizontal",...i,ref:u,sizes:r,style:{...o,"--sa-thumb-width":`${Ks(r)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){let m=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),ly(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:mi(s.paddingLeft),paddingEnd:mi(s.paddingRight)}})}})});MC.displayName="@mantine/core/ScrollAreaScrollbarX";var iL=b(R(),1),Xs=b(S(),1);var jC=(0,Xs.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,style:o,...i}=e,a=Ht(),[s,l]=(0,Xs.useState)(),c=(0,Xs.useRef)(null),u=Le(t,c,a.onScrollbarYChange);return(0,Xs.useEffect)(()=>{c.current&&l(window.getComputedStyle(c.current))},[]),(0,iL.jsx)(cy,{...i,"data-orientation":"vertical",ref:u,sizes:r,style:{"--sa-thumb-height":`${Ks(r)}px`,...o},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){let m=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),ly(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:mi(s.paddingTop),paddingEnd:mi(s.paddingBottom)}})}})});jC.displayName="@mantine/core/ScrollAreaScrollbarY";var Cc=(0,kc.forwardRef)((e,t)=>{let{orientation:r="vertical",...n}=e,{dir:o}=Ei(),i=Ht(),a=(0,kc.useRef)(null),s=(0,kc.useRef)(0),[l,c]=(0,kc.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ay(l.viewport,l.content),d={...n,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:m=>{a.current=m},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:m=>{s.current=m}},f=(m,p)=>rL(m,s.current,l,p);return r==="horizontal"?(0,UC.jsx)(MC,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let m=i.viewport.scrollLeft,p=NC(m,l,o);a.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:m=>{i.viewport&&(i.viewport.scrollLeft=m)},onDragScroll:m=>{i.viewport&&(i.viewport.scrollLeft=f(m,o))}}):r==="vertical"?(0,UC.jsx)(jC,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let m=i.viewport.scrollTop,p=NC(m,l);l.scrollbar.size===0?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:m=>{i.viewport&&(i.viewport.scrollTop=m)},onDragScroll:m=>{i.viewport&&(i.viewport.scrollTop=f(m))}}):null});Cc.displayName="@mantine/core/ScrollAreaScrollbarVisible";var ph=(0,uy.forwardRef)((e,t)=>{let r=Ht(),{forceMount:n,...o}=e,[i,a]=(0,uy.useState)(!1),s=e.orientation==="horizontal",l=ya(()=>{if(r.viewport){let c=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?c:u)}},10);return Aa(r.viewport,l),Aa(r.content,l),n||i?(0,aL.jsx)(Cc,{"data-state":i?"visible":"hidden",...o,ref:t}):null});ph.displayName="@mantine/core/ScrollAreaScrollbarAuto";var sL=b(R(),1),jd=b(S(),1);var VC=(0,jd.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,o=Ht(),[i,a]=(0,jd.useState)(!1);return(0,jd.useEffect)(()=>{let{scrollArea:s}=o,l=0;if(s){let c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),r||i?(0,sL.jsx)(ph,{"data-state":i?"visible":"hidden",...n,ref:t}):null});VC.displayName="@mantine/core/ScrollAreaScrollbarHover";var lL=b(R(),1),Pc=b(S(),1);var cL=(0,Pc.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,o=Ht(),i=e.orientation==="horizontal",[a,s]=(0,Pc.useState)("hidden"),l=ya(()=>s("idle"),100);return(0,Pc.useEffect)(()=>{if(a==="idle"){let c=window.setTimeout(()=>s("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay]),(0,Pc.useEffect)(()=>{let{viewport:c}=o,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u],f=()=>{let m=c[u];d!==m&&(s("scrolling"),l()),d=m};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,i,l]),r||a!=="hidden"?(0,lL.jsx)(Cc,{"data-state":a==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Vi(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Vi(e.onPointerLeave,()=>s("idle"))}):null});var fy=(0,dy.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,o=Ht(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return(0,dy.useEffect)(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?(0,hh.jsx)(VC,{...n,ref:t,forceMount:r}):o.type==="scroll"?(0,hh.jsx)(cL,{...n,ref:t,forceMount:r}):o.type==="auto"?(0,hh.jsx)(ph,{...n,ref:t,forceMount:r}):o.type==="always"?(0,hh.jsx)(Cc,{...n,ref:t}):null});fy.displayName="@mantine/core/ScrollAreaScrollbar";var HC=b(R(),1),$c=b(S(),1);function uL(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)}var dL=(0,$c.forwardRef)((e,t)=>{let{style:r,...n}=e,o=Ht(),i=BC(),{onThumbPositionChange:a}=i,s=Le(t,u=>i.onThumbChange(u)),l=(0,$c.useRef)(void 0),c=ya(()=>{l.current&&(l.current(),l.current=void 0)},100);return(0,$c.useEffect)(()=>{let{viewport:u}=o;if(u){let d=()=>{if(c(),!l.current){let f=uL(u,a);l.current=f,a()}};return a(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,c,a]),(0,HC.jsx)("div",{"data-state":i.hasThumb?"visible":"hidden",...n,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:Vi(e.onPointerDownCapture,u=>{let f=u.target.getBoundingClientRect(),m=u.clientX-f.left,p=u.clientY-f.top;i.onThumbPointerDown({x:m,y:p})}),onPointerUp:Vi(e.onPointerUp,i.onThumbPointerUp)})});dL.displayName="@mantine/core/ScrollAreaThumb";var my=(0,$c.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,o=BC();return r||o.hasThumb?(0,HC.jsx)(dL,{ref:t,...n}):null});my.displayName="@mantine/core/ScrollAreaThumb";var WC=b(R(),1),fL=b(S(),1);var ZC=(0,fL.forwardRef)(({children:e,style:t,...r},n)=>{let o=Ht(),i=Le(n,o.onViewportChange);return(0,WC.jsx)(L,{...r,ref:i,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,WC.jsx)("div",{style:{minWidth:"100%"},ref:o.onContentChange,children:e})})});ZC.displayName="@mantine/core/ScrollAreaViewport";var py={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};var mL={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},nJ=(e,{scrollbarSize:t,overscrollBehavior:r})=>({root:{"--scrollarea-scrollbar-size":j(t),"--scrollarea-over-scroll-behavior":r}}),Wi=V((e,t)=>{let r=E("ScrollArea",mL,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,scrollbarSize:l,vars:c,type:u,scrollHideDelay:d,viewportProps:f,viewportRef:m,onScrollPositionChange:p,children:h,offsetScrollbars:y,scrollbars:v,onBottomReached:g,onTopReached:x,overscrollBehavior:_,...w}=r,[I,k]=(0,Qs.useState)(!1),[C,U]=(0,Qs.useState)(!1),[H,W]=(0,Qs.useState)(!1),X=J({name:"ScrollArea",props:r,classes:py,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:c,varsResolver:nJ}),N=(0,Qs.useRef)(null),A=VB([m,N]);return(0,Qs.useEffect)(()=>{if(!N.current||y!=="present")return;let B=N.current,T=new ResizeObserver(()=>{let{scrollHeight:M,clientHeight:$,scrollWidth:O,clientWidth:Z}=B;U(M>$),W(O>Z)});return T.observe(B),()=>T.disconnect()},[N,y]),(0,On.jsxs)(FC,{type:u==="never"?"always":u,scrollHideDelay:d,ref:t,scrollbars:v,...X("root"),...w,children:[(0,On.jsx)(ZC,{...f,...X("viewport",{style:f?.style}),ref:A,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":v||void 0,"data-horizontal-hidden":y==="present"&&!H?"true":void 0,"data-vertical-hidden":y==="present"&&!C?"true":void 0,onScroll:B=>{f?.onScroll?.(B),p?.({x:B.currentTarget.scrollLeft,y:B.currentTarget.scrollTop});let{scrollTop:T,scrollHeight:M,clientHeight:$}=B.currentTarget;T-(M-$)>=-.6&&g?.(),T===0&&x?.()},children:h}),(v==="xy"||v==="x")&&(0,On.jsx)(fy,{...X("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||y==="present"&&!H?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,On.jsx)(my,{...X("thumb")})}),(v==="xy"||v==="y")&&(0,On.jsx)(fy,{...X("scrollbar"),orientation:"vertical","data-hidden":u==="never"||y==="present"&&!C?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,On.jsx)(my,{...X("thumb")})}),(0,On.jsx)(tL,{...X("corner"),"data-hovered":I||void 0,"data-hidden":u==="never"||void 0})]})});Wi.displayName="@mantine/core/ScrollArea";var qC=V((e,t)=>{let{children:r,classNames:n,styles:o,scrollbarSize:i,scrollHideDelay:a,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:m,viewportProps:p,scrollbars:h,style:y,vars:v,onBottomReached:g,onTopReached:x,..._}=E("ScrollAreaAutosize",mL,e);return(0,On.jsx)(L,{..._,ref:t,style:[{display:"flex",overflow:"auto"},y],children:(0,On.jsx)(L,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,On.jsx)(Wi,{classNames:n,styles:o,scrollHideDelay:a,scrollbarSize:i,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:m,viewportProps:p,vars:v,scrollbars:h,onBottomReached:g,onTopReached:x,children:r})})})});Wi.classes=py;qC.displayName="@mantine/core/ScrollAreaAutosize";qC.classes=py;Wi.Autosize=qC;var pL=b(R(),1),CIe=b(S(),1);var KC={root:"m_87cf2631"};var iJ={__staticSelector:"UnstyledButton"},dr=ot((e,t)=>{let r=E("UnstyledButton",iJ,e),{className:n,component:o="button",__staticSelector:i,unstyled:a,classNames:s,styles:l,style:c,...u}=r,d=J({name:i,props:r,classes:KC,className:n,style:c,classNames:s,styles:l,unstyled:a});return(0,pL.jsx)(L,{...d("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...u})});dr.classes=KC;dr.displayName="@mantine/core/UnstyledButton";var hL=b(R(),1),AIe=b(S(),1);var GC={root:"m_515a97f8"};var aJ={},hy=V((e,t)=>{let r=E("VisuallyHidden",aJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,...c}=r,u=J({name:"VisuallyHidden",classes:GC,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s});return(0,hL.jsx)(L,{component:"span",ref:t,...u("root"),...c})});hy.classes=GC;hy.displayName="@mantine/core/VisuallyHidden";var gL=b(R(),1),HIe=b(S(),1);var XC={root:"m_1b7284a3"};var sJ={},lJ=(e,{radius:t,shadow:r})=>({root:{"--paper-radius":t===void 0?void 0:De(t),"--paper-shadow":Wu(r)}}),Ud=ot((e,t)=>{let r=E("Paper",sJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,withBorder:l,vars:c,radius:u,shadow:d,variant:f,mod:m,...p}=r,h=J({name:"Paper",props:r,classes:XC,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:c,varsResolver:lJ});return(0,gL.jsx)(L,{ref:t,mod:[{"data-with-border":l},m],...h("root"),variant:f,...p})});Ud.classes=XC;Ud.displayName="@mantine/core/Paper";var Zd=b(R(),1),Zi=b(S(),1);function gy(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){let[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var yL=b(R(),1),_L=b(S(),1);function vL(e,t,r,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function xL(e,t,r,n,o){return e==="center"||n==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:r}:e==="start"?{[o==="ltr"?"left":"right"]:r}:{}}var cJ={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bL({position:e,arrowSize:t,arrowOffset:r,arrowRadius:n,arrowPosition:o,arrowX:i,arrowY:a,dir:s}){let[l,c="center"]=e.split("-"),u={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[cJ[l]]:n},d=-t/2;return l==="left"?{...u,...vL(c,a,r,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:l==="right"?{...u,...vL(c,a,r,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:l==="top"?{...u,...xL(c,i,r,o,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:l==="bottom"?{...u,...xL(c,i,r,o,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}var gh=(0,_L.forwardRef)(({position:e,arrowSize:t,arrowOffset:r,arrowRadius:n,arrowPosition:o,visible:i,arrowX:a,arrowY:s,style:l,...c},u)=>{let{dir:d}=Ei();return i?(0,yL.jsx)("div",{...c,ref:u,style:{...l,...bL({position:e,arrowSize:t,arrowOffset:r,arrowRadius:n,arrowPosition:o,dir:d,arrowX:a,arrowY:s})}}):null});gh.displayName="@mantine/core/FloatingArrow";var IL=b(R(),1);var swe=b(S(),1);var QC={root:"m_9814e45f"};var uJ={zIndex:Ot("modal")},dJ=(e,{gradient:t,color:r,backgroundOpacity:n,blur:o,radius:i,zIndex:a})=>({root:{"--overlay-bg":t||(r!==void 0||n!==void 0)&&wn(r||"#000",n??.6)||void 0,"--overlay-filter":o?`blur(${j(o)})`:void 0,"--overlay-radius":i===void 0?void 0:De(i),"--overlay-z-index":a?.toString()}}),Vd=ot((e,t)=>{let r=E("Overlay",uJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,fixed:c,center:u,children:d,radius:f,zIndex:m,gradient:p,blur:h,color:y,backgroundOpacity:v,mod:g,...x}=r,_=J({name:"Overlay",props:r,classes:QC,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:dJ});return(0,IL.jsx)(L,{ref:t,..._("root"),mod:[{center:u,fixed:c},g],...x,children:d})});Vd.classes=QC;Vd.displayName="@mantine/core/Overlay";var vy=b(R(),1),xy=b(S(),1),wL=b(Hs(),1);function JC(e){let t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function fJ({target:e,reuseTargetNode:t,...r}){if(e)return typeof e=="string"?document.querySelector(e)||JC(r):e;if(t){let n=document.querySelector("[data-mantine-shared-portal-node]");if(n)return n;let o=JC(r);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return JC(r)}var mJ={},YC=V((e,t)=>{let{children:r,target:n,reuseTargetNode:o,...i}=E("Portal",mJ,e),[a,s]=(0,xy.useState)(!1),l=(0,xy.useRef)(null);return mo(()=>(s(!0),l.current=fJ({target:n,reuseTargetNode:o,...i}),Ql(t,l.current),!n&&!o&&l.current&&document.body.appendChild(l.current),()=>{!n&&!o&&l.current&&document.body.removeChild(l.current)}),[n]),!a||!l.current?null:(0,wL.createPortal)((0,vy.jsx)(vy.Fragment,{children:r}),l.current)});YC.displayName="@mantine/core/Portal";var vh=b(R(),1),wwe=b(S(),1);var qo=V(({withinPortal:e=!0,children:t,...r},n)=>px()==="test"||!e?(0,vh.jsx)(vh.Fragment,{children:t}):(0,vh.jsx)(YC,{ref:n,...r,children:t}));qo.displayName="@mantine/core/OptionalPortal";var Hd=b(R(),1),Nwe=b(S(),1);var xh=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bh={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...xh("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...xh("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...xh("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...xh("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...xh("top"),common:{transformOrigin:"top right"}}};var SL={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function kL({transition:e,state:t,duration:r,timingFunction:n}){let o={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in bh?{transitionProperty:bh[e].transitionProperty,...o,...bh[e].common,...bh[e][SL[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[SL[t]]}}var Fa=b(S(),1),CL=b(Hs(),1);var Owe=b(R(),1);function PL({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:a,onExited:s,enterDelay:l,exitDelay:c}){let u=lt(),d=_a(),f=u.respectReducedMotion?d:!1,[m,p]=(0,Fa.useState)(f?0:e),[h,y]=(0,Fa.useState)(n?"entered":"exited"),v=(0,Fa.useRef)(-1),g=(0,Fa.useRef)(-1),x=(0,Fa.useRef)(-1);function _(){window.clearTimeout(v.current),window.clearTimeout(g.current),cancelAnimationFrame(x.current)}let w=k=>{_();let C=k?o:i,U=k?a:s,H=f?0:k?e:t;p(H),H===0?(typeof C=="function"&&C(),typeof U=="function"&&U(),y(k?"entered":"exited")):x.current=requestAnimationFrame(()=>{CL.default.flushSync(()=>{y(k?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof C=="function"&&C(),y(k?"entering":"exiting"),v.current=window.setTimeout(()=>{typeof U=="function"&&U(),y(k?"entered":"exited")},H)})})},I=k=>{if(_(),typeof(k?l:c)!="number"){w(k);return}g.current=window.setTimeout(()=>{w(k)},k?l:c)};return Ar(()=>{I(n)},[n]),(0,Fa.useEffect)(()=>()=>{_()},[]),{transitionDuration:m,transitionStatus:h,transitionTimingFunction:r||"ease"}}function xo({keepMounted:e,transition:t="fade",duration:r=250,exitDuration:n=r,mounted:o,children:i,timingFunction:a="ease",onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f}){let m=px(),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:y}=PL({mounted:o,exitDuration:n,duration:r,timingFunction:a,onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f});return p===0||m==="test"?o?(0,Hd.jsx)(Hd.Fragment,{children:i({})}):e?i({display:"none"}):null:h==="exited"?e?i({display:"none"}):null:(0,Hd.jsx)(Hd.Fragment,{children:i(kL({transition:t,duration:p,state:h,timingFunction:y}))})}xo.displayName="@mantine/core/Transition";var Vwe=b(S(),1);var Wwe=b(R(),1);var[$L,by]=_r("Popover component was not found in the tree");var Rc=b(R(),1);var r0e=b(S(),1);var RL=b(R(),1),DL=b(S(),1);function Wd({children:e,active:t=!0,refProp:r="ref",innerRef:n}){let o=ES(t),i=Le(o,n);return Bo(e)?(0,DL.cloneElement)(e,{[r]:i}):e}function EL(e){return(0,RL.jsx)(hy,{tabIndex:-1,"data-autofocus":!0,...e})}Wd.displayName="@mantine/core/FocusTrap";EL.displayName="@mantine/core/FocusTrapInitialFocus";Wd.InitialFocus=EL;var yy={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};var pJ={},_y=V((e,t)=>{let r=E("PopoverDropdown",pJ,e),{className:n,style:o,vars:i,children:a,onKeyDownCapture:s,variant:l,classNames:c,styles:u,...d}=r,f=by(),m=op({opened:f.opened,shouldReturnFocus:f.returnFocus}),p=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},h=Le(t,f.floating);return f.disabled?null:(0,Rc.jsx)(qo,{...f.portalProps,withinPortal:f.withinPortal,children:(0,Rc.jsx)(xo,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:y=>(0,Rc.jsx)(Wd,{active:f.trapFocus&&f.opened,innerRef:h,children:(0,Rc.jsxs)(L,{...p,...d,variant:l,onKeyDownCapture:J4(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:m,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:n,props:r,classNames:c,styles:u,style:[{...y,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:j(f.width)},f.resolvedStyles.dropdown,u?.dropdown,o]}),children:[a,(0,Rc.jsx)(gh,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:r,classNames:c,styles:u})})]})})})})});_y.classes=yy;_y.displayName="@mantine/core/PopoverDropdown";var TL=b(S(),1);var x0e=b(R(),1);var hJ={refProp:"ref",popupType:"dialog"},e2=V((e,t)=>{let{children:r,refProp:n,popupType:o,...i}=E("PopoverTarget",hJ,e);if(!Bo(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let a=i,s=by(),l=Le(s.reference,xs(r),t),c=s.withRoles?{"aria-haspopup":o,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return(0,TL.cloneElement)(r,{...a,...c,...s.targetProps,className:Me(s.targetProps.className,a.className,r.props.className),[n]:l,...s.controlled?null:{onClick:s.onToggle}})});e2.displayName="@mantine/core/PopoverTarget";var OL=b(S(),1);var Iy=b(S(),1);function wy({opened:e,floating:t,position:r,positionDependencies:n}){let[o,i]=(0,Iy.useState)(0);(0,Iy.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return ey(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,r]),Ar(()=>{t.update()},n),Ar(()=>{i(a=>a+1)},[e])}function gJ(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function vJ(e,t){let r=gJ(e.middlewares),n=[Nd(e.offset)];return r.shift&&n.push(wc(typeof r.shift=="boolean"?{limiter:ny(),padding:5}:{limiter:ny(),padding:5,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?Sc():Sc(r.flip)),r.inline&&n.push(typeof r.inline=="boolean"?qs():qs(r.inline)),n.push(mh({element:e.arrowRef,padding:e.arrowOffset})),(r.size||e.width==="target")&&n.push(CC({...typeof r.size=="boolean"?{}:r.size,apply({rects:o,availableWidth:i,availableHeight:a,...s}){let c=t().refs.floating.current?.style??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:o,availableWidth:i,availableHeight:a,...s}):Object.assign(c,{maxWidth:`${i}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(c,{width:`${o.reference.width}px`})}})),n}function zL(e){let[t,r]=Qe({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=(0,OL.useRef)(t),o=()=>{t&&!e.disabled&&r(!1)},i=()=>!e.disabled&&r(!t),a=Ld({strategy:e.strategy,placement:e.position,middleware:vJ(e,()=>a)});return wy({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:a}),Ar(()=>{e.onPositionChange?.(a.placement)},[a.placement]),Ar(()=>{t!==n.current&&(t?e.onOpen?.():e.onClose?.()),n.current=t},[t,e.onClose,e.onOpen]),{floating:a,controlled:typeof e.opened=="boolean",opened:t,onClose:o,onToggle:i}}var xJ={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Ot("popover"),__staticSelector:"Popover",width:"max-content"},bJ=(e,{radius:t,shadow:r})=>({dropdown:{"--popover-radius":t===void 0?void 0:De(t),"--popover-shadow":Wu(r)}});function zn(e){let t=E("Popover",xJ,e),{children:r,position:n,offset:o,onPositionChange:i,positionDependencies:a,opened:s,transitionProps:l,onExitTransitionEnd:c,onEnterTransitionEnd:u,width:d,middlewares:f,withArrow:m,arrowSize:p,arrowOffset:h,arrowRadius:y,arrowPosition:v,unstyled:g,classNames:x,styles:_,closeOnClickOutside:w,withinPortal:I,portalProps:k,closeOnEscape:C,clickOutsideEvents:U,trapFocus:H,onClose:W,onDismiss:X,onOpen:N,onChange:A,zIndex:B,radius:T,shadow:M,id:$,defaultOpened:O,__staticSelector:Z,withRoles:Y,disabled:te,returnFocus:ve,variant:ge,keepMounted:q,vars:ae,floatingStrategy:ye,withOverlay:se,overlayProps:ke,...ze}=t,Ve=J({name:Z,props:t,classes:yy,classNames:x,styles:_,unstyled:g,rootSelector:"dropdown",vars:ae,varsResolver:bJ}),{resolvedStyles:Ke}=Lo({classNames:x,styles:_,props:t}),Pe=(0,Zi.useRef)(null),[Et,Tt]=(0,Zi.useState)(null),[zr,de]=(0,Zi.useState)(null),{dir:ce}=Ei(),xe=tt($),Ce=zL({middlewares:f,width:d,position:gy(ce,n),offset:typeof o=="number"?o+(m?p/2:0):o,arrowRef:Pe,arrowOffset:h,onPositionChange:i,positionDependencies:a,opened:s,defaultOpened:O,onChange:A,onOpen:N,onClose:W,onDismiss:X,strategy:ye,disabled:te});$S(()=>{w&&(Ce.onClose(),X?.())},U,[Et,zr]);let Be=(0,Zi.useCallback)(Ie=>{Tt(Ie),Ce.floating.refs.setReference(Ie)},[Ce.floating.refs.setReference]),Re=(0,Zi.useCallback)(Ie=>{de(Ie),Ce.floating.refs.setFloating(Ie)},[Ce.floating.refs.setFloating]),He=(0,Zi.useCallback)(()=>{l?.onExited?.(),c?.()},[l?.onExited,c]),le=(0,Zi.useCallback)(()=>{l?.onEntered?.(),u?.()},[l?.onEntered,u]);return(0,Zd.jsxs)($L,{value:{returnFocus:ve,disabled:te,controlled:Ce.controlled,reference:Be,floating:Re,x:Ce.floating.x,y:Ce.floating.y,arrowX:Ce.floating?.middlewareData?.arrow?.x,arrowY:Ce.floating?.middlewareData?.arrow?.y,opened:Ce.opened,arrowRef:Pe,transitionProps:{...l,onExited:He,onEntered:le},width:d,withArrow:m,arrowSize:p,arrowOffset:h,arrowRadius:y,arrowPosition:v,placement:Ce.floating.placement,trapFocus:H,withinPortal:I,portalProps:k,zIndex:B,radius:T,shadow:M,closeOnEscape:C,onDismiss:X,onClose:Ce.onClose,onToggle:Ce.onToggle,getTargetId:()=>`${xe}-target`,getDropdownId:()=>`${xe}-dropdown`,withRoles:Y,targetProps:ze,__staticSelector:Z,classNames:x,styles:_,unstyled:g,variant:ge,keepMounted:q,getStyles:Ve,resolvedStyles:Ke,floatingStrategy:ye},children:[r,se&&(0,Zd.jsx)(xo,{transition:"fade",mounted:Ce.opened,duration:l?.duration||250,exitDuration:l?.exitDuration||250,children:Ie=>(0,Zd.jsx)(qo,{withinPortal:I,children:(0,Zd.jsx)(Vd,{...ke,...Ve("overlay",{className:ke?.className,style:[Ie,ke?.style]})})})})]})}zn.Target=e2;zn.Dropdown=_y;zn.displayName="@mantine/core/Popover";zn.extend=e=>e;var Dc=b(R(),1),MSe=b(S(),1);var n2=b(R(),1),lSe=b(S(),1);var qd=b(R(),1),AL=b(S(),1);var bo={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};var t2=(0,AL.forwardRef)(({className:e,...t},r)=>(0,qd.jsxs)(L,{component:"span",className:Me(bo.barsLoader,e),...t,ref:r,children:[(0,qd.jsx)("span",{className:bo.bar}),(0,qd.jsx)("span",{className:bo.bar}),(0,qd.jsx)("span",{className:bo.bar})]}));t2.displayName="@mantine/core/Bars";var Kd=b(R(),1),FL=b(S(),1);var r2=(0,FL.forwardRef)(({className:e,...t},r)=>(0,Kd.jsxs)(L,{component:"span",className:Me(bo.dotsLoader,e),...t,ref:r,children:[(0,Kd.jsx)("span",{className:bo.dot}),(0,Kd.jsx)("span",{className:bo.dot}),(0,Kd.jsx)("span",{className:bo.dot})]}));r2.displayName="@mantine/core/Dots";var NL=b(R(),1),BL=b(S(),1);var o2=(0,BL.forwardRef)(({className:e,...t},r)=>(0,NL.jsx)(L,{component:"span",className:Me(bo.ovalLoader,e),...t,ref:r}));o2.displayName="@mantine/core/Oval";var i2={bars:t2,oval:o2,dots:r2},yJ={loaders:i2,type:"oval"},_J=(e,{size:t,color:r})=>({root:{"--loader-size":pe(t,"loader-size"),"--loader-color":r?je(r,e):void 0}}),ro=V((e,t)=>{let r=E("Loader",yJ,e),{size:n,color:o,type:i,vars:a,className:s,style:l,classNames:c,styles:u,unstyled:d,loaders:f,variant:m,children:p,...h}=r,y=J({name:"Loader",props:r,classes:bo,className:s,style:l,classNames:c,styles:u,unstyled:d,vars:a,varsResolver:_J});return p?(0,n2.jsx)(L,{...y("root"),ref:t,...h,children:p}):(0,n2.jsx)(L,{...y("root"),ref:t,component:f[i],variant:m,size:n,...h})});ro.defaultLoaders=i2;ro.classes=bo;ro.displayName="@mantine/core/Loader";var ML=b(R(),1);var wSe=b(S(),1);var Na={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};var LL={orientation:"horizontal"},IJ=(e,{borderWidth:t})=>({group:{"--ai-border-width":j(t)}}),Sy=V((e,t)=>{let r=E("ActionIconGroup",LL,e),{className:n,style:o,classNames:i,styles:a,unstyled:s,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,...m}=E("ActionIconGroup",LL,e),p=J({name:"ActionIconGroup",props:r,classes:Na,className:n,style:o,classNames:i,styles:a,unstyled:s,vars:c,varsResolver:IJ,rootSelector:"group"});return(0,ML.jsx)(L,{...p("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...m})});Sy.classes=Na;Sy.displayName="@mantine/core/ActionIconGroup";var UL=b(R(),1),ESe=b(S(),1);var jL={},wJ=(e,{radius:t,color:r,gradient:n,variant:o,autoContrast:i,size:a})=>{let s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:o||"filled",autoContrast:i});return{groupSection:{"--section-height":pe(a,"section-height"),"--section-padding-x":pe(a,"section-padding-x"),"--section-fz":st(a),"--section-radius":t===void 0?void 0:De(t),"--section-bg":r||o?s.background:void 0,"--section-color":s.color,"--section-bd":r||o?s.border:void 0}}},ky=V((e,t)=>{let r=E("ActionIconGroupSection",jL,e),{className:n,style:o,classNames:i,styles:a,unstyled:s,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,...m}=E("ActionIconGroupSection",jL,e),p=J({name:"ActionIconGroupSection",props:r,classes:Na,className:n,style:o,classNames:i,styles:a,unstyled:s,vars:l,varsResolver:wJ,rootSelector:"groupSection"});return(0,UL.jsx)(L,{...p("groupSection"),ref:t,variant:c,...m})});ky.classes=Na;ky.displayName="@mantine/core/ActionIconGroupSection";var SJ={},kJ=(e,{size:t,radius:r,variant:n,gradient:o,color:i,autoContrast:a})=>{let s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:o,variant:n||"filled",autoContrast:a});return{root:{"--ai-size":pe(t,"ai-size"),"--ai-radius":r===void 0?void 0:De(r),"--ai-bg":i||n?s.background:void 0,"--ai-hover":i||n?s.hover:void 0,"--ai-hover-color":i||n?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||n?s.border:void 0}}},Gd=ot((e,t)=>{let r=E("ActionIcon",SJ,e),{className:n,unstyled:o,variant:i,classNames:a,styles:s,style:l,loading:c,loaderProps:u,size:d,color:f,radius:m,__staticSelector:p,gradient:h,vars:y,children:v,disabled:g,"data-disabled":x,autoContrast:_,mod:w,...I}=r,k=J({name:["ActionIcon",p],props:r,className:n,style:l,classes:Na,classNames:a,styles:s,unstyled:o,vars:y,varsResolver:kJ});return(0,Dc.jsxs)(dr,{...k("root",{active:!g&&!c&&!x}),...I,unstyled:o,variant:i,size:d,disabled:g||c,ref:t,mod:[{loading:c,disabled:g||x},w],children:[(0,Dc.jsx)(xo,{mounted:!!c,transition:"slide-down",duration:150,children:C=>(0,Dc.jsx)(L,{component:"span",...k("loader",{style:C}),"aria-hidden":!0,children:(0,Dc.jsx)(ro,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),(0,Dc.jsx)(L,{component:"span",mod:{loading:c},...k("icon"),children:v})]})});Gd.classes=Na;Gd.displayName="@mantine/core/ActionIcon";Gd.Group=Sy;Gd.GroupSection=ky;var a2=b(R(),1),VL=b(S(),1),s2=(0,VL.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...r},n)=>(0,a2.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:n,...r,children:(0,a2.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));s2.displayName="@mantine/core/CloseIcon";var Cy=b(R(),1);var o1e=b(S(),1);var l2={root:"m_86a44da5","root--subtle":"m_220c80f2"};var CJ={variant:"subtle"},PJ=(e,{size:t,radius:r,iconSize:n})=>({root:{"--cb-size":pe(t,"cb-size"),"--cb-radius":r===void 0?void 0:De(r),"--cb-icon-size":j(n)}}),An=ot((e,t)=>{let r=E("CloseButton",CJ,e),{iconSize:n,children:o,vars:i,radius:a,className:s,classNames:l,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:m,variant:p,icon:h,mod:y,__staticSelector:v,...g}=r,x=J({name:v||"CloseButton",props:r,className:s,style:c,classes:l2,classNames:l,styles:u,unstyled:d,vars:i,varsResolver:PJ});return(0,Cy.jsxs)(dr,{ref:t,...g,unstyled:d,variant:p,disabled:m,mod:[{disabled:m||f},y],...x("root",{variant:p,active:!m&&!f}),children:[h||(0,Cy.jsx)(s2,{}),o]})});An.classes=l2;An.displayName="@mantine/core/CloseButton";var ZL=b(R(),1),h1e=b(S(),1);var HL=b(S(),1);function WL(e){return HL.Children.toArray(e).filter(Boolean)}var c2={root:"m_4081bf90"};var $J={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},RJ=(e,{grow:t,preventGrowOverflow:r,gap:n,align:o,justify:i,wrap:a},{childWidth:s})=>({root:{"--group-child-width":t&&r?s:void 0,"--group-gap":kt(n),"--group-align":o,"--group-justify":i,"--group-wrap":a}}),At=V((e,t)=>{let r=E("Group",$J,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,children:l,gap:c,align:u,justify:d,wrap:f,grow:m,preventGrowOverflow:p,vars:h,variant:y,__size:v,mod:g,...x}=r,_=WL(l),w=_.length,I=kt(c??"md"),C={childWidth:`calc(${100/w}% - (${I} - ${I} / ${w}))`},U=J({name:"Group",props:r,stylesCtx:C,className:o,style:i,classes:c2,classNames:n,styles:a,unstyled:s,vars:h,varsResolver:RJ});return(0,ZL.jsx)(L,{...U("root"),ref:t,variant:y,mod:[{grow:m},g],size:v,...x,children:_})});At.classes=c2;At.displayName="@mantine/core/Group";var yh=b(R(),1),XL=b(S(),1);var k1e=b(S(),1);var P1e=b(R(),1);var[qL,kr]=_r("ModalBase component was not found in tree");var u2=b(S(),1);var Xd=b(S(),1);function KL({opened:e,transitionDuration:t}){let[r,n]=(0,Xd.useState)(e),o=(0,Xd.useRef)(-1),a=_a()?0:t;return(0,Xd.useEffect)(()=>(e?(n(!0),window.clearTimeout(o.current)):a===0?n(!1):o.current=window.setTimeout(()=>n(!1),a),()=>window.clearTimeout(o.current)),[e,a]),r}function GL({id:e,transitionProps:t,opened:r,trapFocus:n,closeOnEscape:o,onClose:i,returnFocus:a}){let s=tt(e),[l,c]=(0,u2.useState)(!1),[u,d]=(0,u2.useState)(!1),f=typeof t?.duration=="number"?t?.duration:200,m=KL({opened:r,transitionDuration:f});return np("keydown",p=>{p.key==="Escape"&&o&&!p.isComposing&&r&&p.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),op({opened:r,shouldReturnFocus:n&&a}),{_id:s,titleMounted:l,bodyMounted:u,shouldLockScroll:m,setTitleMounted:c,setBodyMounted:d}}var d2=(0,XL.forwardRef)(({keepMounted:e,opened:t,onClose:r,id:n,transitionProps:o,onExitTransitionEnd:i,onEnterTransitionEnd:a,trapFocus:s,closeOnEscape:l,returnFocus:c,closeOnClickOutside:u,withinPortal:d,portalProps:f,lockScroll:m,children:p,zIndex:h,shadow:y,padding:v,__vars:g,unstyled:x,removeScrollProps:_,...w},I)=>{let{_id:k,titleMounted:C,bodyMounted:U,shouldLockScroll:H,setTitleMounted:W,setBodyMounted:X}=GL({id:n,transitionProps:o,opened:t,trapFocus:s,closeOnEscape:l,onClose:r,returnFocus:c}),{key:N,...A}=_||{};return(0,yh.jsx)(qo,{...f,withinPortal:d,children:(0,yh.jsx)(qL,{value:{opened:t,onClose:r,closeOnClickOutside:u,onExitTransitionEnd:i,onEnterTransitionEnd:a,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${k}-title`,getBodyId:()=>`${k}-body`,titleMounted:C,bodyMounted:U,setTitleMounted:W,setBodyMounted:X,trapFocus:s,closeOnEscape:l,zIndex:h,unstyled:x},children:(0,yh.jsx)(ei,{enabled:H&&m,...A,children:(0,yh.jsx)(L,{ref:I,...w,__vars:{...g,"--mb-z-index":(h||Ot("modal")).toString(),"--mb-shadow":Wu(y),"--mb-padding":kt(v)},children:p})},N)})})});d2.displayName="@mantine/core/ModalBase";var YL=b(R(),1),eM=b(S(),1);var QL=b(S(),1);function JL(){let e=kr();return(0,QL.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var pi={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};var f2=(0,eM.forwardRef)(({className:e,...t},r)=>{let n=JL(),o=kr();return(0,YL.jsx)(L,{ref:r,...t,id:n,className:Me({[pi.body]:!o.unstyled},e)})});f2.displayName="@mantine/core/ModalBaseBody";var tM=b(R(),1),rM=b(S(),1);var m2=(0,rM.forwardRef)(({className:e,onClick:t,...r},n)=>{let o=kr();return(0,tM.jsx)(An,{ref:n,...r,onClick:i=>{o.onClose(),t?.(i)},className:Me({[pi.close]:!o.unstyled},e),unstyled:o.unstyled})});m2.displayName="@mantine/core/ModalBaseCloseButton";var _h=b(R(),1),oM=b(S(),1);var p2=(0,oM.forwardRef)(({transitionProps:e,className:t,innerProps:r,onKeyDown:n,style:o,...i},a)=>{let s=kr();return(0,_h.jsx)(xo,{mounted:s.opened,transition:"pop",...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:l=>(0,_h.jsx)("div",{...r,className:Me({[pi.inner]:!s.unstyled},r.className),children:(0,_h.jsx)(Wd,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,_h.jsx)(Ud,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[o,l],className:Me({[pi.content]:!s.unstyled},t),unstyled:s.unstyled,children:i.children})})})})});p2.displayName="@mantine/core/ModalBaseContent";var nM=b(R(),1),iM=b(S(),1);var h2=(0,iM.forwardRef)(({className:e,...t},r)=>{let n=kr();return(0,nM.jsx)(L,{component:"header",ref:r,className:Me({[pi.header]:!n.unstyled},e),...t})});h2.displayName="@mantine/core/ModalBaseHeader";var g2=b(R(),1),sM=b(S(),1);var DJ={duration:200,timingFunction:"ease",transition:"fade"};function aM(e){let t=kr();return{...DJ,...t.transitionProps,...e}}var v2=(0,sM.forwardRef)(({onClick:e,transitionProps:t,style:r,visible:n,...o},i)=>{let a=kr(),s=aM(t);return(0,g2.jsx)(xo,{mounted:n!==void 0?n:a.opened,...s,transition:"fade",children:l=>(0,g2.jsx)(Vd,{ref:i,fixed:!0,style:[r,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:c=>{e?.(c),a.closeOnClickOutside&&a.onClose()},...o})})});v2.displayName="@mantine/core/ModalBaseOverlay";var uM=b(R(),1),dM=b(S(),1);var lM=b(S(),1);function cM(){let e=kr();return(0,lM.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}var x2=(0,dM.forwardRef)(({className:e,...t},r)=>{let n=cM(),o=kr();return(0,uM.jsx)(L,{component:"h2",ref:r,className:Me({[pi.title]:!o.unstyled},e),...t,id:n})});x2.displayName="@mantine/core/ModalBaseTitle";var Py=b(R(),1);function fM({children:e}){return(0,Py.jsx)(Py.Fragment,{children:e})}var Ec=b(R(),1);var e2e=b(S(),1);var Tke=b(S(),1),Oke=b(R(),1);var[mM,pM]=Gr({size:"sm"});var hM=b(R(),1),Nke=b(S(),1);var EJ={},b2=V((e,t)=>{let r=E("InputClearButton",EJ,e),{size:n,variant:o,vars:i,classNames:a,styles:s,...l}=r,c=pM(),{resolvedClassNames:u,resolvedStyles:d}=Lo({classNames:a,styles:s,props:r});return(0,hM.jsx)(An,{variant:o||"transparent",ref:t,size:n||c?.size||"sm",classNames:u,styles:d,__staticSelector:"InputClearButton",...l})});b2.displayName="@mantine/core/InputClearButton";var xM=b(R(),1);var Jke=b(S(),1);var Wke=b(S(),1),Zke=b(R(),1);var[gM,Fn]=Gr({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Cr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};var vM={},TJ=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${st(t)} - ${j(2)})`}}),Qd=V((e,t)=>{let r=E("InputDescription",vM,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...m}=E("InputDescription",vM,r),p=Fn(),h=J({name:["InputWrapper",u],props:r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:TJ}),y=d&&p?.getStyles||h;return(0,xM.jsx)(L,{component:"p",ref:t,variant:f,size:c,...y("description",p?.getStyles?{className:o,style:i}:void 0),...m})});Qd.classes=Cr;Qd.displayName="@mantine/core/InputDescription";var bM=b(R(),1);var cCe=b(S(),1);var OJ={},zJ=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${st(t)} - ${j(2)})`}}),Jd=V((e,t)=>{let r=E("InputError",OJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...m}=r,p=J({name:["InputWrapper",u],props:r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:zJ}),h=Fn(),y=d&&h?.getStyles||p;return(0,bM.jsx)(L,{component:"p",ref:t,variant:f,size:c,...y("error",h?.getStyles?{className:o,style:i}:void 0),...m})});Jd.classes=Cr;Jd.displayName="@mantine/core/InputError";var $y=b(R(),1),bCe=b(S(),1);var yM={labelElement:"label"},AJ=(e,{size:t})=>({label:{"--input-label-size":st(t),"--input-asterisk-color":void 0}}),Yd=V((e,t)=>{let r=E("InputLabel",yM,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:m,children:p,__staticSelector:h,variant:y,mod:v,...g}=E("InputLabel",yM,r),x=J({name:["InputWrapper",h],props:r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:AJ}),_=Fn(),w=_?.getStyles||x;return(0,$y.jsxs)(L,{...w("label",_?.getStyles?{className:o,style:i}:void 0),component:c,variant:y,size:u,ref:t,htmlFor:c==="label"?f:void 0,mod:[{required:d},v],onMouseDown:I=>{m?.(I),!I.defaultPrevented&&I.detail>1&&I.preventDefault()},...g,children:[p,d&&(0,$y.jsx)("span",{...w("required"),"aria-hidden":!0,children:" *"})]})});Yd.classes=Cr;Yd.displayName="@mantine/core/InputLabel";var IM=b(R(),1),RCe=b(S(),1);var _M={},Ry=V((e,t)=>{let r=E("InputPlaceholder",_M,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,__staticSelector:c,variant:u,error:d,mod:f,...m}=E("InputPlaceholder",_M,r),p=J({name:["InputPlaceholder",c],props:r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,rootSelector:"placeholder"});return(0,IM.jsx)(L,{...p("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...m})});Ry.classes=Cr;Ry.displayName="@mantine/core/InputPlaceholder";var ef=b(R(),1),Dy=b(S(),1);function wM(e,{hasDescription:t,hasError:r}){let n=e.findIndex(l=>l==="input"),o=e.slice(0,n),i=e.slice(n+1),a=t&&o.includes("description")||r&&o.includes("error");return{offsetBottom:t&&i.includes("description")||r&&i.includes("error"),offsetTop:a}}var FJ={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},NJ=(e,{size:t})=>({label:{"--input-label-size":st(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${st(t)} - ${j(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${st(t)} - ${j(2)})`}}),Ey=V((e,t)=>{let r=E("InputWrapper",FJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,variant:u,__staticSelector:d,inputContainer:f,inputWrapperOrder:m,label:p,error:h,description:y,labelProps:v,descriptionProps:g,errorProps:x,labelElement:_,children:w,withAsterisk:I,id:k,required:C,__stylesApiProps:U,mod:H,...W}=r,X=J({name:["InputWrapper",d],props:U||r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:NJ}),N={size:c,variant:u,__staticSelector:d},A=tt(k),B=typeof I=="boolean"?I:C,T=x?.id||`${A}-error`,M=g?.id||`${A}-description`,$=A,O=!!h&&typeof h!="boolean",Z=!!y,Y=`${O?T:""} ${Z?M:""}`,te=Y.trim().length>0?Y.trim():void 0,ve=v?.id||`${A}-label`,ge=p&&(0,ef.jsx)(Yd,{labelElement:_,id:ve,htmlFor:$,required:B,...N,...v,children:p},"label"),q=Z&&(0,ef.jsx)(Qd,{...g,...N,size:g?.size||N.size,id:g?.id||M,children:y},"description"),ae=(0,ef.jsx)(Dy.Fragment,{children:f(w)},"input"),ye=O&&(0,Dy.createElement)(Jd,{...x,...N,size:x?.size||N.size,key:"error",id:x?.id||T},h),se=m.map(ke=>{switch(ke){case"label":return ge;case"input":return ae;case"description":return q;case"error":return ye;default:return null}});return(0,ef.jsx)(gM,{value:{getStyles:X,describedBy:te,inputId:$,labelId:ve,...wM(m,{hasDescription:Z,hasError:O})},children:(0,ef.jsx)(L,{ref:t,variant:u,size:c,mod:[{error:!!h},H],...X("root"),...W,children:se})})});Ey.classes=Cr;Ey.displayName="@mantine/core/InputWrapper";var BJ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},LJ=(e,t,r)=>({wrapper:{"--input-margin-top":r.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":r.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":pe(t.size,"input-height"),"--input-fz":st(t.size),"--input-radius":t.radius===void 0?void 0:De(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?j(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?j(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?pe(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),et=ot((e,t)=>{let r=E("Input",BJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,required:l,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:m,disabled:p,leftSection:h,leftSectionProps:y,leftSectionWidth:v,rightSection:g,rightSectionProps:x,rightSectionWidth:_,rightSectionPointerEvents:w,leftSectionPointerEvents:I,variant:k,vars:C,pointer:U,multiline:H,radius:W,id:X,withAria:N,withErrorStyles:A,mod:B,inputSize:T,__clearSection:M,__clearable:$,__defaultRightSection:O,...Z}=r,{styleProps:Y,rest:te}=Ir(Z),ve=Fn(),ge={offsetBottom:ve?.offsetBottom,offsetTop:ve?.offsetTop},q=J({name:["Input",c],props:u||r,classes:Cr,className:o,style:i,classNames:n,styles:a,unstyled:s,stylesCtx:ge,rootSelector:"wrapper",vars:C,varsResolver:LJ}),ae=N?{required:l,disabled:p,"aria-invalid":!!m,"aria-describedby":ve?.describedBy,id:ve?.inputId||X}:{},ye=g||$&&M||O;return(0,Ec.jsx)(mM,{value:{size:d||"sm"},children:(0,Ec.jsxs)(L,{...q("wrapper"),...Y,...f,mod:[{error:!!m&&A,pointer:U,disabled:p,multiline:H,"data-with-right-section":!!ye,"data-with-left-section":!!h},B],variant:k,size:d,children:[h&&(0,Ec.jsx)("div",{...y,"data-position":"left",...q("section",{className:y?.className,style:y?.style}),children:h}),(0,Ec.jsx)(L,{component:"input",...te,...ae,ref:t,required:l,mod:{disabled:p,error:!!m&&A},variant:k,__size:T,...q("input")}),ye&&(0,Ec.jsx)("div",{...x,"data-position":"right",...q("section",{className:x?.className,style:x?.style}),children:ye})]})})});et.classes=Cr;et.Wrapper=Ey;et.Label=Yd;et.Error=Jd;et.Description=Qd;et.Placeholder=Ry;et.ClearButton=b2;et.displayName="@mantine/core/Input";var x2e=b(S(),1),b2e=b(R(),1);function SM(e,t,r){let n=E(e,t,r),{label:o,description:i,error:a,required:s,classNames:l,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:m,errorProps:p,labelProps:h,descriptionProps:y,wrapperProps:v,id:g,size:x,style:_,inputContainer:w,inputWrapperOrder:I,withAsterisk:k,variant:C,vars:U,mod:H,...W}=n,{styleProps:X,rest:N}=Ir(W),A={label:o,description:i,error:a,required:s,classNames:l,className:u,__staticSelector:f,__stylesApiProps:m||n,errorProps:p,labelProps:h,descriptionProps:y,unstyled:d,styles:c,size:x,style:_,inputContainer:w,inputWrapperOrder:I,withAsterisk:k,variant:C,id:g,mod:H,...v};return{...N,classNames:l,styles:c,unstyled:d,wrapperProps:{...A,...X},inputProps:{required:s,classNames:l,styles:c,unstyled:d,size:x,__staticSelector:f,__stylesApiProps:m||n,error:a,variant:C,id:g}}}var y2=b(R(),1),S2e=b(S(),1);var MJ={__staticSelector:"InputBase",withAria:!0},Ft=ot((e,t)=>{let{inputProps:r,wrapperProps:n,...o}=SM("InputBase",MJ,e);return(0,y2.jsx)(et.Wrapper,{...n,children:(0,y2.jsx)(et,{...r,...o,ref:t})})});Ft.classes={...et.classes,...et.Wrapper.classes};Ft.displayName="@mantine/core/InputBase";var CM=b(R(),1),PM=b(S(),1);var qi=b(S(),1);var E2e=b(R(),1);function jJ(e,t){if(!t||!e)return!1;let r=t.parentNode;for(;r!=null;){if(r===e)return!0;r=r.parentNode}return!1}function kM({target:e,parent:t,ref:r,displayAfterTransitionEnd:n}){let o=(0,qi.useRef)(-1),[i,a]=(0,qi.useState)(!1),[s,l]=(0,qi.useState)(typeof n=="boolean"?n:!1),c=()=>{if(!e||!t||!r.current)return;let m=e.getBoundingClientRect(),p=t.getBoundingClientRect(),h=window.getComputedStyle(e),y=window.getComputedStyle(t),v=mi(h.borderTopWidth)+mi(y.borderTopWidth),g=mi(h.borderLeftWidth)+mi(y.borderLeftWidth),x={top:m.top-p.top-v,left:m.left-p.left-g,width:m.width,height:m.height};r.current.style.transform=`translateY(${x.top}px) translateX(${x.left}px)`,r.current.style.width=`${x.width}px`,r.current.style.height=`${x.height}px`},u=()=>{window.clearTimeout(o.current),r.current&&(r.current.style.transitionDuration="0ms"),c(),o.current=window.setTimeout(()=>{r.current&&(r.current.style.transitionDuration="")},30)},d=(0,qi.useRef)(null),f=(0,qi.useRef)(null);return(0,qi.useEffect)(()=>{if(c(),e)return d.current=new ResizeObserver(u),d.current.observe(e),t&&(f.current=new ResizeObserver(u),f.current.observe(t)),()=>{d.current?.disconnect(),f.current?.disconnect()}},[t,e]),(0,qi.useEffect)(()=>{if(t){let m=p=>{jJ(p.target,t)&&(u(),l(!1))};return t.addEventListener("transitionend",m),()=>{t.removeEventListener("transitionend",m)}}},[t]),AS(()=>{fx()!=="test"&&a(!0)},20,{autoInvoke:!0}),NS(m=>{m.forEach(p=>{p.type==="attributes"&&p.attributeName==="dir"&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var _2={root:"m_96b553a6"};var UJ={},VJ=(e,{transitionDuration:t})=>({root:{"--transition-duration":typeof t=="number"?`${t}ms`:t}}),Ty=V((e,t)=>{let r=E("FloatingIndicator",UJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,target:c,parent:u,transitionDuration:d,mod:f,displayAfterTransitionEnd:m,...p}=r,h=J({name:"FloatingIndicator",classes:_2,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:VJ}),y=(0,PM.useRef)(null),{initialized:v,hidden:g}=kM({target:c,parent:u,ref:y,displayAfterTransitionEnd:m}),x=Le(t,y);return!c||!u?null:(0,CM.jsx)(L,{ref:x,mod:[{initialized:v,hidden:g},f],...h("root"),...p})});Ty.displayName="@mantine/core/FloatingIndicator";Ty.classes=_2;var I2=b(R(),1);var q2e=b(S(),1);function w2({style:e,size:t=16,...r}){return(0,I2.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:j(t),height:j(t),display:"block"},...r,children:(0,I2.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}w2.displayName="@mantine/core/AccordionChevron";var Ki=b(R(),1);var J2e=b(S(),1);var S2={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};var HJ={},WJ=(e,{radius:t,color:r,variant:n,autoContrast:o})=>{let i=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:n||"light",autoContrast:o});return{root:{"--alert-radius":t===void 0?void 0:De(t),"--alert-bg":r||n?i.background:void 0,"--alert-color":i.color,"--alert-bd":r||n?i.border:void 0}}},mn=V((e,t)=>{let r=E("Alert",HJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,radius:c,color:u,title:d,children:f,id:m,icon:p,withCloseButton:h,onClose:y,closeButtonLabel:v,variant:g,autoContrast:x,..._}=r,w=J({name:"Alert",classes:S2,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:WJ}),I=tt(m),k=d&&`${I}-title`||void 0,C=`${I}-body`;return(0,Ki.jsx)(L,{id:I,...w("root",{variant:g}),variant:g,ref:t,..._,role:"alert","aria-describedby":C,"aria-labelledby":k,children:(0,Ki.jsxs)("div",{...w("wrapper"),children:[p&&(0,Ki.jsx)("div",{...w("icon"),children:p}),(0,Ki.jsxs)("div",{...w("body"),children:[d&&(0,Ki.jsx)("div",{...w("title"),"data-with-close-button":h||void 0,children:(0,Ki.jsx)("span",{id:k,...w("label"),children:d})}),f&&(0,Ki.jsx)("div",{id:C,...w("message"),"data-variant":g,children:f})]}),h&&(0,Ki.jsx)(An,{...w("closeButton"),onClick:y,variant:"transparent",size:16,iconSize:16,"aria-label":v,unstyled:s})]})})});mn.classes=S2;mn.displayName="@mantine/core/Alert";var $M=b(R(),1),cPe=b(S(),1);var k2={root:"m_b6d8b162"};function ZJ(e){if(e==="start")return"start";if(e==="end"||e)return"end"}var qJ={inherit:!1},KJ=(e,{variant:t,lineClamp:r,gradient:n,size:o,color:i})=>({root:{"--text-fz":st(o),"--text-lh":Y4(o),"--text-gradient":t==="gradient"?lp(n,e):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-color":i?je(i,e):void 0}}),mt=ot((e,t)=>{let r=E("Text",qJ,e),{lineClamp:n,truncate:o,inline:i,inherit:a,gradient:s,span:l,__staticSelector:c,vars:u,className:d,style:f,classNames:m,styles:p,unstyled:h,variant:y,mod:v,size:g,...x}=r,_=J({name:["Text",c],props:r,classes:k2,className:d,style:f,classNames:m,styles:p,unstyled:h,vars:u,varsResolver:KJ});return(0,$M.jsx)(L,{..._("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":ZJ(o),"data-line-clamp":typeof n=="number","data-inline":i,"data-inherit":a},v],size:g,...x})});mt.classes=k2;mt.displayName="@mantine/core/Text";var Ih=b(R(),1),HRe=b(S(),1);var yPe=b(S(),1);var IPe=b(R(),1);var[RM,Nn]=_r("AppShell was not found in tree");var DM=b(R(),1),CPe=b(S(),1);var yo={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};var GJ={},Oy=V((e,t)=>{let r=E("AppShellAside",GJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,withBorder:c,zIndex:u,mod:d,...f}=r,m=Nn();return m.disabled?null:(0,DM.jsx)(L,{component:"aside",ref:t,mod:[{"with-border":c??m.withBorder},d],...m.getStyles("aside",{className:o,classNames:n,styles:a,style:i}),...f,__vars:{"--app-shell-aside-z-index":`calc(${u??m.zIndex} + 1)`}})});Oy.classes=yo;Oy.displayName="@mantine/core/AppShellAside";var EM=b(R(),1);var FPe=b(S(),1);var XJ={},zy=V((e,t)=>{let r=E("AppShellFooter",XJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,withBorder:c,zIndex:u,mod:d,...f}=r,m=Nn();return m.disabled?null:(0,EM.jsx)(L,{component:"footer",ref:t,mod:[{"with-border":c??m.withBorder},d],...m.getStyles("footer",{className:Me({[ei.classNames.zeroRight]:m.offsetScrollbars},o),classNames:n,styles:a,style:i}),...f,__vars:{"--app-shell-footer-z-index":(u??m.zIndex)?.toString()}})});zy.classes=yo;zy.displayName="@mantine/core/AppShellFooter";var TM=b(R(),1);var WPe=b(S(),1);var QJ={},Ay=V((e,t)=>{let r=E("AppShellHeader",QJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,withBorder:c,zIndex:u,mod:d,...f}=r,m=Nn();return m.disabled?null:(0,TM.jsx)(L,{component:"header",ref:t,mod:[{"with-border":c??m.withBorder},d],...m.getStyles("header",{className:Me({[ei.classNames.zeroRight]:m.offsetScrollbars},o),classNames:n,styles:a,style:i}),...f,__vars:{"--app-shell-header-z-index":(u??m.zIndex)?.toString()}})});Ay.classes=yo;Ay.displayName="@mantine/core/AppShellHeader";var OM=b(R(),1),JPe=b(S(),1);var JJ={},Fy=V((e,t)=>{let r=E("AppShellMain",JJ,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Nn();return(0,OM.jsx)(L,{component:"main",ref:t,...c.getStyles("main",{className:o,style:i,classNames:n,styles:a}),...l})});Fy.classes=yo;Fy.displayName="@mantine/core/AppShellMain";var MM=b(R(),1),bRe=b(S(),1);var cRe=b(S(),1),uRe=b(R(),1);var d$e=b(S(),1),f$e=b(R(),1);function Gi(e){return typeof e=="object"?e.base:e}function Xi(e){let t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function Qi(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function zM({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,aside:n,theme:o}){let i=n?.width,a="translateX(var(--app-shell-aside-width))",s="translateX(calc(var(--app-shell-aside-width) * -1))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(r[n?.breakpoint]=r[n?.breakpoint]||{},r[n?.breakpoint]["--app-shell-aside-width"]="100%",r[n?.breakpoint]["--app-shell-aside-offset"]="0px"),Xi(i)){let l=j(Gi(i));e["--app-shell-aside-width"]=l,e["--app-shell-aside-offset"]=l}if(Qi(i)&&(typeof i.base<"u"&&(e["--app-shell-aside-width"]=j(i.base),e["--app-shell-aside-offset"]=j(i.base)),Je(i).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-aside-width"]=j(i[l]),t[l]["--app-shell-aside-offset"]=j(i[l]))})),n?.collapsed?.desktop){let l=n.breakpoint;t[l]=t[l]||{},t[l]["--app-shell-aside-transform"]=a,t[l]["--app-shell-aside-transform-rtl"]=s,t[l]["--app-shell-aside-offset"]="0px !important"}if(n?.collapsed?.mobile){let l=Zu(n.breakpoint,o.breakpoints)-.1;r[l]=r[l]||{},r[l]["--app-shell-aside-width"]="100%",r[l]["--app-shell-aside-offset"]="0px",r[l]["--app-shell-aside-transform"]=a,r[l]["--app-shell-aside-transform-rtl"]=s}}var _$e=b(S(),1),I$e=b(R(),1);function AM({baseStyles:e,minMediaStyles:t,footer:r}){let n=r?.height,o="translateY(var(--app-shell-footer-height))",i=r?.offset??!0;if(Xi(n)){let a=j(Gi(n));e["--app-shell-footer-height"]=a,i&&(e["--app-shell-footer-offset"]=a)}Qi(n)&&(typeof n.base<"u"&&(e["--app-shell-footer-height"]=j(n.base),i&&(e["--app-shell-footer-offset"]=j(n.base))),Je(n).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=j(n[a]),i&&(t[a]["--app-shell-footer-offset"]=j(n[a])))})),r?.collapsed&&(e["--app-shell-footer-transform"]=o,e["--app-shell-footer-offset"]="0px !important")}var D$e=b(S(),1),E$e=b(R(),1);function FM({baseStyles:e,minMediaStyles:t,header:r}){let n=r?.height,o="translateY(calc(var(--app-shell-header-height) * -1))",i=r?.offset??!0;if(Xi(n)){let a=j(Gi(n));e["--app-shell-header-height"]=a,i&&(e["--app-shell-header-offset"]=a)}Qi(n)&&(typeof n.base<"u"&&(e["--app-shell-header-height"]=j(n.base),i&&(e["--app-shell-header-offset"]=j(n.base))),Je(n).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=j(n[a]),i&&(t[a]["--app-shell-header-offset"]=j(n[a])))})),r?.collapsed&&(e["--app-shell-header-transform"]=o,e["--app-shell-header-offset"]="0px !important")}var L$e=b(S(),1),M$e=b(R(),1);function NM({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,navbar:n,theme:o}){let i=n?.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",s="translateX(var(--app-shell-navbar-width))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(r[n?.breakpoint]=r[n?.breakpoint]||{},r[n?.breakpoint]["--app-shell-navbar-width"]="100%",r[n?.breakpoint]["--app-shell-navbar-offset"]="0px"),Xi(i)){let l=j(Gi(i));e["--app-shell-navbar-width"]=l,e["--app-shell-navbar-offset"]=l}if(Qi(i)&&(typeof i.base<"u"&&(e["--app-shell-navbar-width"]=j(i.base),e["--app-shell-navbar-offset"]=j(i.base)),Je(i).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-navbar-width"]=j(i[l]),t[l]["--app-shell-navbar-offset"]=j(i[l]))})),n?.collapsed?.desktop){let l=n.breakpoint;t[l]=t[l]||{},t[l]["--app-shell-navbar-transform"]=a,t[l]["--app-shell-navbar-transform-rtl"]=s,t[l]["--app-shell-navbar-offset"]="0px !important"}if(n?.collapsed?.mobile){let l=Zu(n.breakpoint,o.breakpoints)-.1;r[l]=r[l]||{},r[l]["--app-shell-navbar-width"]="100%",r[l]["--app-shell-navbar-offset"]="0px",r[l]["--app-shell-navbar-transform"]=a,r[l]["--app-shell-navbar-transform-rtl"]=s}}var Y$e=b(S(),1),eRe=b(R(),1);var q$e=b(S(),1),K$e=b(R(),1);function Ny(e){return Number(e)===0?"0px":kt(e)}function BM({padding:e,baseStyles:t,minMediaStyles:r}){Xi(e)&&(t["--app-shell-padding"]=Ny(Gi(e))),Qi(e)&&(e.base&&(t["--app-shell-padding"]=Ny(e.base)),Je(e).forEach(n=>{n!=="base"&&(r[n]=r[n]||{},r[n]["--app-shell-padding"]=Ny(e[n]))}))}function LM({navbar:e,header:t,footer:r,aside:n,padding:o,theme:i}){let a={},s={},l={};NM({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,navbar:e,theme:i}),zM({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,aside:n,theme:i}),FM({baseStyles:l,minMediaStyles:a,header:t}),AM({baseStyles:l,minMediaStyles:a,footer:r}),BM({baseStyles:l,minMediaStyles:a,padding:o});let c=ep(Je(a),i.breakpoints).map(f=>({query:`(min-width: ${ql(f.px)})`,styles:a[f.value]})),u=ep(Je(s),i.breakpoints).map(f=>({query:`(max-width: ${ql(f.px)})`,styles:s[f.value]})),d=[...c,...u];return{baseStyles:l,media:d}}function jM({navbar:e,header:t,aside:r,footer:n,padding:o}){let i=lt(),a=$i(),{media:s,baseStyles:l}=LM({navbar:e,header:t,footer:n,aside:r,padding:o,theme:i});return(0,MM.jsx)(rc,{media:s,styles:l,selector:a.cssVariablesSelector})}var UM=b(R(),1),CRe=b(S(),1);var YJ={},By=V((e,t)=>{let r=E("AppShellNavbar",YJ,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,withBorder:c,zIndex:u,mod:d,...f}=r,m=Nn();return m.disabled?null:(0,UM.jsx)(L,{component:"nav",ref:t,mod:[{"with-border":c??m.withBorder},d],...m.getStyles("navbar",{className:o,classNames:n,styles:a,style:i}),...f,__vars:{"--app-shell-navbar-z-index":`calc(${u??m.zIndex} + 1)`}})});By.classes=yo;By.displayName="@mantine/core/AppShellNavbar";var VM=b(R(),1),zRe=b(S(),1);var eY={},Ly=ot((e,t)=>{let r=E("AppShellSection",eY,e),{classNames:n,className:o,style:i,styles:a,vars:s,grow:l,mod:c,...u}=r,d=Nn();return(0,VM.jsx)(L,{ref:t,mod:[{grow:l},c],...d.getStyles("section",{className:o,style:i,classNames:n,styles:a}),...u})});Ly.classes=yo;Ly.displayName="@mantine/core/AppShellSection";var Js=b(S(),1);function HM({transitionDuration:e,disabled:t}){let[r,n]=(0,Js.useState)(!0),o=(0,Js.useRef)(-1),i=(0,Js.useRef)(-1);return np("resize",()=>{n(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>(0,Js.startTransition)(()=>{n(!1)}),200)}),mo(()=>{n(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,Js.startTransition)(()=>{n(!1)}),e||0)},[t,e]),r}var tY={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Ot("app")},rY=(e,{transitionDuration:t,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":r}}),Ko=V((e,t)=>{let r=E("AppShell",tY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,navbar:c,withBorder:u,padding:d,transitionDuration:f,transitionTimingFunction:m,header:p,zIndex:h,layout:y,disabled:v,aside:g,footer:x,offsetScrollbars:_=y!=="alt",mod:w,...I}=r,k=J({name:"AppShell",classes:yo,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:rY}),C=HM({disabled:v,transitionDuration:f});return(0,Ih.jsxs)(RM,{value:{getStyles:k,withBorder:u,zIndex:h,disabled:v,offsetScrollbars:_},children:[(0,Ih.jsx)(jM,{navbar:c,header:p,aside:g,footer:x,padding:d}),(0,Ih.jsx)(L,{ref:t,...k("root"),mod:[{resizing:C,layout:y,disabled:v},w],...I})]})});Ko.classes=yo;Ko.displayName="@mantine/core/AppShell";Ko.Navbar=By;Ko.Header=Ay;Ko.Main=Fy;Ko.Aside=Oy;Ko.Footer=zy;Ko.Section=Ly;function WM(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>WM(t))}:e}function tf(e){return e?e.map(t=>WM(t)):[]}function Tc(e){return e.reduce((t,r)=>"group"in r?{...t,...Tc(r.items)}:(t[r.value]=r,t),{})}var C2=b(R(),1),dDe=b(S(),1);var $t={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};var oY={error:null},nY=(e,{size:t,color:r})=>({chevron:{"--combobox-chevron-size":pe(t,"combobox-chevron-size"),"--combobox-chevron-color":r?je(r,e):void 0}}),My=V((e,t)=>{let r=E("ComboboxChevron",oY,e),{size:n,error:o,style:i,className:a,classNames:s,styles:l,unstyled:c,vars:u,mod:d,...f}=r,m=J({name:"ComboboxChevron",classes:$t,props:r,style:i,className:a,classNames:s,styles:l,unstyled:c,vars:u,varsResolver:nY,rootSelector:"chevron"});return(0,C2.jsx)(L,{component:"svg",...f,...m("chevron"),size:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:(0,C2.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});My.classes=$t;My.displayName="@mantine/core/ComboboxChevron";var T2=b(R(),1);var _Te=b(S(),1);var _De=b(S(),1);var wDe=b(R(),1);var[ZM,Nt]=_r("Combobox component was not found in tree");var qM=b(R(),1),KM=b(S(),1);var P2=(0,KM.forwardRef)(({size:e,onMouseDown:t,onClick:r,onClear:n,...o},i)=>(0,qM.jsx)(et.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:a=>{a.preventDefault(),t?.(a)},onClick:a=>{n(),r?.(a)}}));P2.displayName="@mantine/core/ComboboxClearButton";var GM=b(R(),1),RDe=b(S(),1);var iY={},jy=V((e,t)=>{let{classNames:r,styles:n,className:o,style:i,hidden:a,...s}=E("ComboboxDropdown",iY,e),l=Nt();return(0,GM.jsx)(zn.Dropdown,{...s,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:o,style:i,classNames:r,styles:n})})});jy.classes=$t;jy.displayName="@mantine/core/ComboboxDropdown";var XM=b(R(),1);var BDe=b(S(),1);var aY={refProp:"ref"},$2=V((e,t)=>{let{children:r,refProp:n}=E("ComboboxDropdownTarget",aY,e);if(Nt(),!Bo(r))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,XM.jsx)(zn.Target,{ref:t,refProp:n,children:r})});$2.displayName="@mantine/core/ComboboxDropdownTarget";var QM=b(R(),1),WDe=b(S(),1);var sY={},Uy=V((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:a,...s}=E("ComboboxEmpty",sY,e),l=Nt();return(0,QM.jsx)(L,{ref:t,...l.getStyles("empty",{className:n,classNames:r,styles:i,style:o}),...s})});Uy.classes=$t;Uy.displayName="@mantine/core/ComboboxEmpty";var YM=b(S(),1);var oEe=b(R(),1);var JM=b(S(),1);function rf({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:n,targetType:o,autoComplete:i}){let a=Nt(),[s,l]=(0,JM.useState)(null),c=d=>{if(e?.(d),!a.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;let f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):o==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.key==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&o==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...r?{"aria-haspopup":"listbox","aria-expanded":n&&!!(a.store.listId&&a.store.dropdownOpened)||void 0,"aria-controls":a.store.dropdownOpened?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:i,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:c}}var lY={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},R2=V((e,t)=>{let{children:r,refProp:n,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:a,targetType:s,autoComplete:l,...c}=E("ComboboxEventsTarget",lY,e);if(!Bo(r))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let u=Nt(),d=rf({targetType:s,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:a,onKeyDown:r.props.onKeyDown,autoComplete:l});return(0,YM.cloneElement)(r,{...d,...c,[n]:Le(t,u.store.targetRef,xs(r))})});R2.displayName="@mantine/core/ComboboxEventsTarget";var e3=b(R(),1),dEe=b(S(),1);var cY={},Vy=V((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:a,...s}=E("ComboboxFooter",cY,e),l=Nt();return(0,e3.jsx)(L,{ref:t,...l.getStyles("footer",{className:n,classNames:r,style:o,styles:i}),...s,onMouseDown:c=>{c.preventDefault()}})});Vy.classes=$t;Vy.displayName="@mantine/core/ComboboxFooter";var Hy=b(R(),1),bEe=b(S(),1);var uY={},Wy=V((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:a,children:s,label:l,...c}=E("ComboboxGroup",uY,e),u=Nt();return(0,Hy.jsxs)(L,{ref:t,...u.getStyles("group",{className:n,classNames:r,style:o,styles:i}),...c,children:[l&&(0,Hy.jsx)("div",{...u.getStyles("groupLabel",{classNames:r,styles:i}),children:l}),s]})});Wy.classes=$t;Wy.displayName="@mantine/core/ComboboxGroup";var t3=b(R(),1),PEe=b(S(),1);var dY={},Zy=V((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:a,...s}=E("ComboboxHeader",dY,e),l=Nt();return(0,t3.jsx)(L,{ref:t,...l.getStyles("header",{className:n,classNames:r,style:o,styles:i}),...s,onMouseDown:c=>{c.preventDefault()}})});Zy.classes=$t;Zy.displayName="@mantine/core/ComboboxHeader";var r3=b(R(),1);function D2({value:e,valuesDivider:t=",",...r}){return(0,r3.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...r})}D2.displayName="@mantine/core/ComboboxHiddenInput";var o3=b(R(),1),n3=b(S(),1);var fY={},qy=V((e,t)=>{let r=E("ComboboxOption",fY,e),{classNames:n,className:o,style:i,styles:a,vars:s,onClick:l,id:c,active:u,onMouseDown:d,onMouseOver:f,disabled:m,selected:p,mod:h,...y}=r,v=Nt(),g=(0,n3.useId)(),x=c||g;return(0,o3.jsx)(L,{...v.getStyles("option",{className:o,classNames:n,styles:a,style:i}),...y,ref:t,id:x,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":m,"combobox-selected":p},h],role:"option",onClick:_=>{m?_.preventDefault():(v.onOptionSubmit?.(r.value,r),l?.(_))},onMouseDown:_=>{_.preventDefault(),d?.(_)},onMouseOver:_=>{v.resetSelectionOnOptionHover&&v.store.resetSelectedOption(),f?.(_)}})});qy.classes=$t;qy.displayName="@mantine/core/ComboboxOption";var i3=b(R(),1),a3=b(S(),1);var mY={},Ky=V((e,t)=>{let r=E("ComboboxOptions",mY,e),{classNames:n,className:o,style:i,styles:a,id:s,onMouseDown:l,labelledBy:c,...u}=r,d=Nt(),f=tt(s);return(0,a3.useEffect)(()=>{d.store.setListId(f)},[f]),(0,i3.jsx)(L,{ref:t,...d.getStyles("options",{className:o,style:i,classNames:n,styles:a}),...u,id:f,role:"listbox","aria-labelledby":c,onMouseDown:m=>{m.preventDefault(),l?.(m)}})});Ky.classes=$t;Ky.displayName="@mantine/core/ComboboxOptions";var s3=b(R(),1);var JEe=b(S(),1);var pY={withAriaAttributes:!0,withKeyboardNavigation:!0},Gy=V((e,t)=>{let r=E("ComboboxSearch",pY,e),{classNames:n,styles:o,unstyled:i,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:c,size:u,...d}=r,f=Nt(),m=f.getStyles("search"),p=rf({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return(0,s3.jsx)(et,{ref:Le(t,f.store.searchRef),classNames:[{input:m.className},n],styles:[{input:m.style},o],size:u||f.size,...p,...d,__staticSelector:"Combobox"})});Gy.classes=$t;Gy.displayName="@mantine/core/ComboboxSearch";var l3=b(R(),1),c3=b(S(),1);var hY={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},E2=V((e,t)=>{let{children:r,refProp:n,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:a,targetType:s,autoComplete:l,...c}=E("ComboboxTarget",hY,e);if(!Bo(r))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let u=Nt(),d=rf({targetType:s,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:a,onKeyDown:r.props.onKeyDown,autoComplete:l}),f=(0,c3.cloneElement)(r,{...d,...c});return(0,l3.jsx)(zn.Target,{ref:Le(t,u.store.targetRef),children:f})});E2.displayName="@mantine/core/ComboboxTarget";var pt=b(S(),1);function u3(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n}return e}function d3(e,t,r){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(r){for(let n=0;n<t.length;n+=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n}return e}function f3(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}function Ys({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:n,onDropdownOpen:o,loop:i=!0,scrollBehavior:a="instant"}={}){let[s,l]=Qe({value:t,defaultValue:e,finalValue:!1,onChange:r}),c=(0,pt.useRef)(null),u=(0,pt.useRef)(-1),d=(0,pt.useRef)(null),f=(0,pt.useRef)(null),m=(0,pt.useRef)(-1),p=(0,pt.useRef)(-1),h=(0,pt.useRef)(-1),y=(0,pt.useCallback)((T="unknown")=>{s||(l(!0),o?.(T))},[l,o,s]),v=(0,pt.useCallback)((T="unknown")=>{s&&(l(!1),n?.(T))},[l,n,s]),g=(0,pt.useCallback)((T="unknown")=>{s?v(T):y(T)},[v,y,s]),x=(0,pt.useCallback)(()=>{let T=document.querySelector(`#${c.current} [data-combobox-selected]`);T?.removeAttribute("data-combobox-selected"),T?.removeAttribute("aria-selected")},[]),_=(0,pt.useCallback)(T=>{let $=document.getElementById(c.current)?.querySelectorAll("[data-combobox-option]");if(!$)return null;let O=T>=$.length?0:T<0?$.length-1:T;return u.current=O,$?.[O]&&!$[O].hasAttribute("data-combobox-disabled")?(x(),$[O].setAttribute("data-combobox-selected","true"),$[O].setAttribute("aria-selected","true"),$[O].scrollIntoView({block:"nearest",behavior:a}),$[O].id):null},[a,x]),w=(0,pt.useCallback)(()=>{let T=document.querySelector(`#${c.current} [data-combobox-active]`);if(T){let M=document.querySelectorAll(`#${c.current} [data-combobox-option]`),$=Array.from(M).findIndex(O=>O===T);return _($)}return _(0)},[_]),I=(0,pt.useCallback)(()=>_(d3(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),i)),[_,i]),k=(0,pt.useCallback)(()=>_(u3(u.current,document.querySelectorAll(`#${c.current} [data-combobox-option]`),i)),[_,i]),C=(0,pt.useCallback)(()=>_(f3(document.querySelectorAll(`#${c.current} [data-combobox-option]`))),[_]),U=(0,pt.useCallback)((T="selected",M)=>{h.current=window.setTimeout(()=>{let $=document.querySelectorAll(`#${c.current} [data-combobox-option]`),O=Array.from($).findIndex(Z=>Z.hasAttribute(`data-combobox-${T}`));u.current=O,M?.scrollIntoView&&$[O]?.scrollIntoView({block:"nearest",behavior:a})},0)},[]),H=(0,pt.useCallback)(()=>{u.current=-1,x()},[x]),W=(0,pt.useCallback)(()=>{document.querySelectorAll(`#${c.current} [data-combobox-option]`)?.[u.current]?.click()},[]),X=(0,pt.useCallback)(T=>{c.current=T},[]),N=(0,pt.useCallback)(()=>{m.current=window.setTimeout(()=>d.current.focus(),0)},[]),A=(0,pt.useCallback)(()=>{p.current=window.setTimeout(()=>f.current.focus(),0)},[]),B=(0,pt.useCallback)(()=>u.current,[]);return(0,pt.useEffect)(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(p.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:y,closeDropdown:v,toggleDropdown:g,selectedOptionIndex:u.current,getSelectedOptionIndex:B,selectOption:_,selectFirstOption:C,selectActiveOption:w,selectNextOption:I,selectPreviousOption:k,resetSelectedOption:H,updateSelectedOptionIndex:U,listId:c.current,setListId:X,clickSelectedOption:W,searchRef:d,focusSearchInput:N,targetRef:f,focusTarget:A}}var gY={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},vY=(e,{size:t,dropdownPadding:r})=>({options:{"--combobox-option-fz":st(t),"--combobox-option-padding":pe(t,"combobox-option-padding")},dropdown:{"--combobox-padding":r===void 0?void 0:j(r),"--combobox-option-fz":st(t),"--combobox-option-padding":pe(t,"combobox-option-padding")}});function Oe(e){let t=E("Combobox",gY,e),{classNames:r,styles:n,unstyled:o,children:i,store:a,vars:s,onOptionSubmit:l,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:m,readOnly:p,...h}=t,y=Ys(),v=a||y,g=J({name:m||"Combobox",classes:$t,props:t,classNames:r,styles:n,unstyled:o,vars:s,varsResolver:vY}),x=()=>{c?.(),v.closeDropdown()};return(0,T2.jsx)(ZM,{value:{getStyles:g,store:v,onOptionSubmit:l,size:u,resetSelectionOnOptionHover:f,readOnly:p},children:(0,T2.jsx)(zn,{opened:v.dropdownOpened,...h,onChange:_=>!_&&x(),withRoles:!1,unstyled:o,children:i})})}var xY=e=>e;Oe.extend=xY;Oe.classes=$t;Oe.displayName="@mantine/core/Combobox";Oe.Target=E2;Oe.Dropdown=jy;Oe.Options=Ky;Oe.Option=qy;Oe.Search=Gy;Oe.Empty=Uy;Oe.Chevron=My;Oe.Footer=Vy;Oe.Header=Zy;Oe.EventsTarget=R2;Oe.DropdownTarget=$2;Oe.Group=Wy;Oe.ClearButton=P2;Oe.HiddenInput=D2;var _o=b(R(),1);var af=b(R(),1),n_=b(S(),1);var el=b(R(),1),m3=b(S(),1);var O2={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};var Xy=O2,Oc=(0,m3.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:n,styles:o,unstyled:i,children:a,label:s,description:l,id:c,disabled:u,error:d,size:f,labelPosition:m="left",bodyElement:p="div",labelElement:h="label",variant:y,style:v,vars:g,mod:x,..._},w)=>{let I=J({name:e,props:t,className:r,style:v,classes:O2,classNames:n,styles:o,unstyled:i});return(0,el.jsx)(L,{...I("root"),ref:w,__vars:{"--label-fz":st(f),"--label-lh":pe(f,"label-lh")},mod:[{"label-position":m},x],variant:y,size:f,..._,children:(0,el.jsxs)(L,{component:p,htmlFor:p==="label"?c:void 0,...I("body"),children:[a,(0,el.jsxs)("div",{...I("labelWrapper"),"data-disabled":u||void 0,children:[s&&(0,el.jsx)(L,{component:h,htmlFor:h==="label"?c:void 0,...I("label"),"data-disabled":u||void 0,children:s}),l&&(0,el.jsx)(et.Description,{size:f,__inheritStyles:!1,...I("description"),children:l}),d&&typeof d!="boolean"&&(0,el.jsx)(et.Error,{size:f,__inheritStyles:!1,...I("error"),children:d})]})]})})});Oc.displayName="@mantine/core/InlineInput";var A2=b(R(),1);var sOe=b(S(),1);var Qy=b(S(),1),p3=(0,Qy.createContext)(null),h3=p3.Provider,Jy=()=>(0,Qy.useContext)(p3);var eOe=b(S(),1),tOe=b(R(),1);var[g3,v3]=Gr();var z2={card:"m_26775b0a"};var bY={withBorder:!0},yY=(e,{radius:t})=>({card:{"--card-radius":De(t)}}),Yy=V((e,t)=>{let r=E("CheckboxCard",bY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,checked:c,mod:u,withBorder:d,value:f,onClick:m,defaultChecked:p,onChange:h,...y}=r,v=J({name:"CheckboxCard",classes:z2,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:yY,rootSelector:"card"}),g=Jy(),x=typeof c=="boolean"?c:g?g.value.includes(f||""):void 0,[_,w]=Qe({value:x,defaultValue:p,finalValue:!1,onChange:h});return(0,A2.jsx)(g3,{value:{checked:_},children:(0,A2.jsx)(dr,{ref:t,mod:[{"with-border":d,checked:_},u],...v("card"),...y,role:"checkbox","aria-checked":_,onClick:I=>{m?.(I),g?.onChange(f||""),w(!_)}})})});Yy.displayName="@mantine/core/CheckboxCard";Yy.classes=z2;var e_=b(R(),1);var wOe=b(S(),1);var wh=b(R(),1);var xOe=b(S(),1);function of({children:e,role:t}){let r=Fn();return r?(0,wh.jsx)("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):(0,wh.jsx)(wh.Fragment,{children:e})}var _Y={},t_=V((e,t)=>{let{value:r,defaultValue:n,onChange:o,size:i,wrapperProps:a,children:s,readOnly:l,...c}=E("CheckboxGroup",_Y,e),[u,d]=Qe({value:r,defaultValue:n,finalValue:[],onChange:o});return(0,e_.jsx)(h3,{value:{value:u,onChange:m=>{let p=typeof m=="string"?m:m.currentTarget.value;!l&&d(u.includes(p)?u.filter(h=>h!==p):[...u,p])},size:i},children:(0,e_.jsx)(et.Wrapper,{size:i,ref:t,...a,...c,labelElement:"div",__staticSelector:"CheckboxGroup",children:(0,e_.jsx)(of,{role:"group",children:s})})})});t_.classes=et.Wrapper.classes;t_.displayName="@mantine/core/CheckboxGroup";var B2=b(R(),1),FOe=b(S(),1);var nf=b(R(),1);var TOe=b(S(),1);function F2({size:e,style:t,...r}){let n=e!==void 0?{width:j(e),height:j(e),...t}:t;return(0,nf.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,"aria-hidden":!0,...r,children:(0,nf.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function r_({indeterminate:e,...t}){return e?(0,nf.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:(0,nf.jsx)("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):(0,nf.jsx)(F2,{...t})}var N2={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};var IY={icon:r_},wY=(e,{radius:t,color:r,size:n,iconColor:o,variant:i,autoContrast:a})=>{let s=Fr({color:r||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":pe(n,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:De(t),"--checkbox-color":i==="outline"?l:je(r,e),"--checkbox-icon-color":o?je(o,e):Is(a,e)?ri({color:r,theme:e,autoContrast:a}):void 0}}},o_=V((e,t)=>{let r=E("CheckboxIndicator",IY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,icon:c,indeterminate:u,radius:d,color:f,iconColor:m,autoContrast:p,checked:h,mod:y,variant:v,disabled:g,...x}=r,_=c,w=J({name:"CheckboxIndicator",classes:N2,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:wY,rootSelector:"indicator"}),I=v3(),k=typeof h=="boolean"||typeof u=="boolean"?h||u:I?.checked||!1;return(0,B2.jsx)(L,{ref:t,...w("indicator",{variant:v}),variant:v,mod:[{checked:k,disabled:g},y],...x,children:(0,B2.jsx)(_,{indeterminate:u,...w("icon")})})});o_.displayName="@mantine/core/CheckboxIndicator";o_.classes=N2;var L2={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};var SY={labelPosition:"right",icon:r_},kY=(e,{radius:t,color:r,size:n,iconColor:o,variant:i,autoContrast:a})=>{let s=Fr({color:r||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":pe(n,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:De(t),"--checkbox-color":i==="outline"?l:je(r,e),"--checkbox-icon-color":o?je(o,e):Is(a,e)?ri({color:r,theme:e,autoContrast:a}):void 0}}},Ba=V((e,t)=>{let r=E("Checkbox",SY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,color:c,label:u,id:d,size:f,radius:m,wrapperProps:p,checked:h,labelPosition:y,description:v,error:g,disabled:x,variant:_,indeterminate:w,icon:I,rootRef:k,iconColor:C,onChange:U,autoContrast:H,mod:W,...X}=r,N=Jy(),A=f||N?.size,B=I,T=J({name:"Checkbox",props:r,classes:L2,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:kY}),{styleProps:M,rest:$}=Ir(X),O=tt(d),Z=N?{checked:N.value.includes($.value),onChange:ve=>{N.onChange(ve),U?.(ve)}}:{},Y=(0,n_.useRef)(null),te=t||Y;return(0,n_.useEffect)(()=>{te&&"current"in te&&te.current&&(te.current.indeterminate=w||!1)},[w,te]),(0,af.jsx)(Oc,{...T("root"),__staticSelector:"Checkbox",__stylesApiProps:r,id:O,size:A,labelPosition:y,label:u,description:v,error:g,disabled:x,classNames:n,styles:a,unstyled:s,"data-checked":Z.checked||h||void 0,variant:_,ref:k,mod:W,...M,...p,children:(0,af.jsxs)(L,{...T("inner"),mod:{"data-label-position":y},children:[(0,af.jsx)(L,{component:"input",id:O,ref:te,checked:h,disabled:x,mod:{error:!!g,indeterminate:w},...T("input",{focusable:!0,variant:_}),onChange:U,...$,...Z,type:"checkbox"}),(0,af.jsx)(B,{indeterminate:w,...T("icon")})]})})});Ba.classes={...L2,...Xy};Ba.displayName="@mantine/core/Checkbox";Ba.Group=t_;Ba.Indicator=o_;Ba.Card=Yy;function Bn(e){return"group"in e}function M2({options:e,search:t,limit:r}){let n=t.trim().toLowerCase(),o=[];for(let i=0;i<e.length;i+=1){let a=e[i];if(o.length===r)return o;Bn(a)&&o.push({group:a.group,items:M2({options:a.items,search:t,limit:r-o.length})}),Bn(a)||a.label.toLowerCase().includes(n)&&o.push(a)}return o}function x3(e){if(e.length===0)return!0;for(let t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}function j2(e,t=new Set){if(Array.isArray(e))for(let r of e)if(Bn(r))j2(r.items,t);else{if(typeof r.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof r.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof r.value}`);if(t.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);t.add(r.value)}}function CY(e,t){return Array.isArray(e)?e.includes(t):e===t}function b3({data:e,withCheckIcon:t,value:r,checkIconPosition:n,unstyled:o,renderOption:i}){if(!Bn(e)){let s=CY(r,e.value),l=t&&s&&(0,_o.jsx)(F2,{className:$t.optionsDropdownCheckIcon}),c=(0,_o.jsxs)(_o.Fragment,{children:[n==="left"&&l,(0,_o.jsx)("span",{children:e.label}),n==="right"&&l]});return(0,_o.jsx)(Oe.Option,{value:e.value,disabled:e.disabled,className:Me({[$t.optionsDropdownOption]:!o}),"data-reverse":n==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof i=="function"?i({option:e,checked:s}):c})}let a=e.items.map(s=>(0,_o.jsx)(b3,{data:s,value:r,unstyled:o,withCheckIcon:t,checkIconPosition:n,renderOption:i},s.value));return(0,_o.jsx)(Oe.Group,{label:e.group,children:a})}function sf({data:e,hidden:t,hiddenWhenEmpty:r,filter:n,search:o,limit:i,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:c=!1,value:u,checkIconPosition:d,nothingFoundMessage:f,unstyled:m,labelId:p,renderOption:h,scrollAreaProps:y,"aria-label":v}){j2(e);let x=typeof o=="string"?(n||M2)({options:e,search:l?o:"",limit:i??1/0}):e,_=x3(x),w=x.map(I=>(0,_o.jsx)(b3,{data:I,withCheckIcon:c,value:u,checkIconPosition:d,unstyled:m,renderOption:h},Bn(I)?I.group:I.value));return(0,_o.jsx)(Oe.Dropdown,{hidden:t||r&&_,"data-composed":!0,children:(0,_o.jsxs)(Oe.Options,{labelledBy:p,"aria-label":v,children:[s?(0,_o.jsx)(Wi.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:w}):w,_&&f&&(0,_o.jsx)(Oe.Empty,{children:f})]})})}var lf=b(R(),1),Aze=b(S(),1);var U2={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};var PY={},$Y=(e,{radius:t,color:r,gradient:n,variant:o,size:i,autoContrast:a})=>{let s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:o||"filled",autoContrast:a});return{root:{"--badge-height":pe(i,"badge-height"),"--badge-padding-x":pe(i,"badge-padding-x"),"--badge-fz":pe(i,"badge-fz"),"--badge-radius":t===void 0?void 0:De(t),"--badge-bg":r||o?s.background:void 0,"--badge-color":r||o?s.color:void 0,"--badge-bd":r||o?s.border:void 0,"--badge-dot-color":o==="dot"?je(r,e):void 0}}},zc=ot((e,t)=>{let r=E("Badge",PY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,radius:c,color:u,gradient:d,leftSection:f,rightSection:m,children:p,variant:h,fullWidth:y,autoContrast:v,circle:g,mod:x,..._}=r,w=J({name:"Badge",props:r,classes:U2,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:$Y});return(0,lf.jsxs)(L,{variant:h,mod:[{block:y,circle:g,"with-right-section":!!m,"with-left-section":!!f},x],...w("root",{variant:h}),ref:t,..._,children:[f&&(0,lf.jsx)("span",{...w("section"),"data-position":"left",children:f}),(0,lf.jsx)("span",{...w("label"),children:p}),m&&(0,lf.jsx)("span",{...w("section"),"data-position":"right",children:m})]})});zc.classes=U2;zc.displayName="@mantine/core/Badge";var i_=b(R(),1);var qze=b(S(),1);var V2={root:"m_fea6bf1a",burger:"m_d4fb9cad"};var RY={},DY=(e,{color:t,size:r,lineSize:n,transitionDuration:o,transitionTimingFunction:i})=>({root:{"--burger-color":t?je(t,e):void 0,"--burger-size":pe(r,"burger-size"),"--burger-line-size":n?j(n):void 0,"--burger-transition-duration":o===void 0?void 0:`${o}ms`,"--burger-transition-timing-function":i}}),Sh=V((e,t)=>{let r=E("Burger",RY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,opened:c,children:u,transitionDuration:d,transitionTimingFunction:f,lineSize:m,...p}=r,h=J({name:"Burger",classes:V2,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:DY});return(0,i_.jsxs)(dr,{...h("root"),ref:t,...p,children:[(0,i_.jsx)(L,{mod:["reduce-motion",{opened:c}],...h("burger")}),u]})});Sh.classes=V2;Sh.displayName="@mantine/core/Burger";var Ji=b(R(),1);var S4e=b(S(),1);var _3=b(R(),1);var a4e=b(S(),1);var La={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};var y3={orientation:"horizontal"},EY=(e,{borderWidth:t})=>({group:{"--button-border-width":j(t)}}),a_=V((e,t)=>{let r=E("ButtonGroup",y3,e),{className:n,style:o,classNames:i,styles:a,unstyled:s,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,...m}=E("ButtonGroup",y3,e),p=J({name:"ButtonGroup",props:r,classes:La,className:n,style:o,classNames:i,styles:a,unstyled:s,vars:c,varsResolver:EY,rootSelector:"group"});return(0,_3.jsx)(L,{...p("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...m})});a_.classes=La;a_.displayName="@mantine/core/ButtonGroup";var w3=b(R(),1),p4e=b(S(),1);var I3={},TY=(e,{radius:t,color:r,gradient:n,variant:o,autoContrast:i,size:a})=>{let s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:o||"filled",autoContrast:i});return{groupSection:{"--section-height":pe(a,"section-height"),"--section-padding-x":pe(a,"section-padding-x"),"--section-fz":a?.includes("compact")?st(a.replace("compact-","")):st(a),"--section-radius":t===void 0?void 0:De(t),"--section-bg":r||o?s.background:void 0,"--section-color":s.color,"--section-bd":r||o?s.border:void 0}}},s_=V((e,t)=>{let r=E("ButtonGroupSection",I3,e),{className:n,style:o,classNames:i,styles:a,unstyled:s,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,...m}=E("ButtonGroupSection",I3,e),p=J({name:"ButtonGroupSection",props:r,classes:La,className:n,style:o,classNames:i,styles:a,unstyled:s,vars:l,varsResolver:TY,rootSelector:"groupSection"});return(0,w3.jsx)(L,{...p("groupSection"),ref:t,variant:c,...m})});s_.classes=La;s_.displayName="@mantine/core/ButtonGroupSection";var OY={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${j(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},zY={},AY=(e,{radius:t,color:r,gradient:n,variant:o,size:i,justify:a,autoContrast:s})=>{let l=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:o||"filled",autoContrast:s});return{root:{"--button-justify":a,"--button-height":pe(i,"button-height"),"--button-padding-x":pe(i,"button-padding-x"),"--button-fz":i?.includes("compact")?st(i.replace("compact-","")):st(i),"--button-radius":t===void 0?void 0:De(t),"--button-bg":r||o?l.background:void 0,"--button-hover":r||o?l.hover:void 0,"--button-color":l.color,"--button-bd":r||o?l.border:void 0,"--button-hover-color":r||o?l.hoverColor:void 0}}},bt=ot((e,t)=>{let r=E("Button",zY,e),{style:n,vars:o,className:i,color:a,disabled:s,children:l,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:m,loading:p,loaderProps:h,gradient:y,classNames:v,styles:g,unstyled:x,"data-disabled":_,autoContrast:w,mod:I,...k}=r,C=J({name:"Button",props:r,classes:La,className:i,style:n,classNames:v,styles:g,unstyled:x,vars:o,varsResolver:AY}),U=!!c,H=!!u;return(0,Ji.jsxs)(dr,{ref:t,...C("root",{active:!s&&!p&&!_}),unstyled:x,variant:f,disabled:s||p,mod:[{disabled:s||_,loading:p,block:d,"with-left-section":U,"with-right-section":H},I],...k,children:[(0,Ji.jsx)(xo,{mounted:!!p,transition:OY,duration:150,children:W=>(0,Ji.jsx)(L,{component:"span",...C("loader",{style:W}),"aria-hidden":!0,children:(0,Ji.jsx)(ro,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...h})})}),(0,Ji.jsxs)("span",{...C("inner"),children:[c&&(0,Ji.jsx)(L,{component:"span",...C("section"),mod:{position:"left"},children:c}),(0,Ji.jsx)(L,{component:"span",mod:{loading:p},...C("label"),children:l}),u&&(0,Ji.jsx)(L,{component:"span",...C("section"),mod:{position:"right"},children:u})]})]})});bt.classes=La;bt.displayName="@mantine/core/Button";bt.Group=a_;bt.GroupSection=s_;var H2=b(R(),1),l_=b(S(),1);var B4e=b(S(),1);var M4e=b(R(),1);var[S3,k3]=_r("Card component was not found in tree");var C3=b(R(),1),H4e=b(S(),1);var kh={root:"m_e615b15f",section:"m_599a2148"};var FY={},Ch=ot((e,t)=>{let r=E("CardSection",FY,e),{classNames:n,className:o,style:i,styles:a,vars:s,withBorder:l,inheritPadding:c,mod:u,...d}=r,f=k3();return(0,C3.jsx)(L,{ref:t,mod:[{"with-border":l,"inherit-padding":c},u],...f.getStyles("section",{className:o,style:i,styles:a,classNames:n}),...d})});Ch.classes=kh;Ch.displayName="@mantine/core/CardSection";var NY={},BY=(e,{padding:t})=>({root:{"--card-padding":kt(t)}}),Ac=ot((e,t)=>{let r=E("Card",NY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,children:c,padding:u,...d}=r,f=J({name:"Card",props:r,classes:kh,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:BY}),m=l_.Children.toArray(c),p=m.map((h,y)=>typeof h=="object"&&h&&"type"in h&&h.type===Ch?(0,l_.cloneElement)(h,{"data-first-section":y===0||void 0,"data-last-section":y===m.length-1||void 0}):h);return(0,H2.jsx)(S3,{value:{getStyles:f},children:(0,H2.jsx)(Ud,{ref:t,unstyled:s,...f("root"),...d,children:p})})});Ac.classes=kh;Ac.displayName="@mantine/core/Card";Ac.Section=Ch;var P3=b(R(),1),c6e=b(S(),1);var W2={root:"m_4451eb3a"};var LY={},cf=ot((e,t)=>{let r=E("Center",LY,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,inline:c,mod:u,...d}=r,f=J({name:"Center",props:r,classes:W2,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l});return(0,P3.jsx)(L,{ref:t,mod:[{inline:c},u],...f("root"),...d})});cf.classes=W2;cf.displayName="@mantine/core/Center";var M3=b(R(),1),j3=b(S(),1);var L3=b(R(),1);function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uf.apply(null,arguments)}function df(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var hi=b(S());var D3=b(S());var $3=b(S()),R3=$3.useLayoutEffect;var E3=function(t){var r=D3.default.useRef(t);return R3(function(){r.current=t}),r};var Z2=b(S()),T3=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},O3=function(t,r){var n=Z2.default.useRef();return Z2.default.useCallback(function(o){t.current=o,n.current&&T3(n.current,null),n.current=r,r&&T3(r,o)},[r])};var z3={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},MY=function(t){Object.keys(z3).forEach(function(r){t.style.setProperty(r,z3[r],"important")})},A3=MY,Io=null,F3=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function jY(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Io||(Io=document.createElement("textarea"),Io.setAttribute("tabindex","-1"),Io.setAttribute("aria-hidden","true"),A3(Io)),Io.parentNode===null&&document.body.appendChild(Io);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(f){var m=f;Io.style[m]=a[m]}),A3(Io),Io.value=t;var l=F3(Io,e);Io.value=t,l=F3(Io,e),Io.value="x";var c=Io.scrollHeight-o,u=c*r;s==="border-box"&&(u=u+o+i),l=Math.max(u,l);var d=c*n;return s==="border-box"&&(d=d+o+i),l=Math.min(d,l),[l,c]}var N3=function(){},UY=function(t,r){return t.reduce(function(n,o){return n[o]=r[o],n},{})},VY=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],HY=!!document.documentElement.currentStyle,WY=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=UY(VY,r),o=n.boxSizing;if(o==="")return null;HY&&o==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:a}},ZY=WY;function q2(e,t,r){var n=E3(r);hi.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var qY=function(t,r){q2(document.body,"reset",function(n){t.current.form===n.target&&r(n)})},KY=function(t){q2(window,"resize",t)},GY=function(t){q2(document.fonts,"loadingdone",t)},XY=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],QY=function(t,r){var n=t.cacheMeasurements,o=t.maxRows,i=t.minRows,a=t.onChange,s=a===void 0?N3:a,l=t.onHeightChange,c=l===void 0?N3:l,u=df(t,XY),d=u.value!==void 0,f=hi.useRef(null),m=O3(f,r),p=hi.useRef(0),h=hi.useRef(),y=function(){var x=f.current,_=n&&h.current?h.current:ZY(x);if(_){h.current=_;var w=jY(_,x.value||x.placeholder||"x",i,o),I=w[0],k=w[1];p.current!==I&&(p.current=I,x.style.setProperty("height",I+"px","important"),c(I,{rowHeight:k}))}},v=function(x){d||y(),s(x)};return hi.useLayoutEffect(y),qY(f,function(){if(!d){var g=f.current.value;requestAnimationFrame(function(){var x=f.current;x&&g!==x.value&&y()})}}),KY(y),GY(y),hi.createElement("textarea",uf({},u,{onChange:v,ref:m}))},B3=hi.forwardRef(QY);var R6e=b(S(),1);var JY={},c_=V((e,t)=>{let{autosize:r,maxRows:n,minRows:o,__staticSelector:i,resize:a,...s}=E("Textarea",JY,e),l=r&&fx()!=="test";return(0,L3.jsx)(Ft,{component:l?B3:"textarea",ref:t,...s,__staticSelector:i||"Textarea",multiline:!0,"data-no-overflow":r&&n===void 0||void 0,__vars:{"--input-resize":a},...l?{maxRows:n,minRows:o}:{}})});c_.classes=Ft.classes;c_.displayName="@mantine/core/Textarea";function K2(e,t){if(typeof e=="string"&&e.trim().length===0)return!0;try{return t(e),!0}catch{return!1}}var YY={serialize:JSON.stringify,deserialize:JSON.parse},Ph=V((e,t)=>{let{value:r,defaultValue:n,onChange:o,formatOnBlur:i,validationError:a,serialize:s,deserialize:l,onFocus:c,onBlur:u,readOnly:d,error:f,...m}=E("JsonInput",YY,e),[p,h]=Qe({value:r,defaultValue:n,finalValue:"",onChange:o}),[y,v]=(0,j3.useState)(K2(p,l));return(0,M3.jsx)(c_,{value:p,onChange:_=>h(_.currentTarget.value),onFocus:_=>{c?.(_),v(!0)},onBlur:_=>{typeof u=="function"&&u(_);let w=K2(_.currentTarget.value,l);i&&!d&&w&&_.currentTarget.value.trim()!==""&&h(s(l(_.currentTarget.value),null,2)),v(w)},ref:t,readOnly:d,...m,autoComplete:"off",__staticSelector:"JsonInput",error:y?f:a||!0,"data-monospace":!0})});Ph.classes=Ft.classes;Ph.displayName="@mantine/core/JsonInput";var Ma=b(R(),1),X3=b(S(),1);var V3=b(R(),1),Q6e=b(S(),1);var W6e=b(S(),1);var q6e=b(R(),1);var[U3,Ln]=_r("Modal component was not found in tree");var jr={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};var eee={},$h=V((e,t)=>{let r=E("ModalBody",eee,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Ln();return(0,V3.jsx)(f2,{ref:t,...c.getStyles("body",{classNames:n,style:i,styles:a,className:o}),...l})});$h.classes=jr;$h.displayName="@mantine/core/ModalBody";var H3=b(R(),1),i5e=b(S(),1);var tee={},Rh=V((e,t)=>{let r=E("ModalCloseButton",tee,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Ln();return(0,H3.jsx)(m2,{ref:t,...c.getStyles("close",{classNames:n,style:i,styles:a,className:o}),...l})});Rh.classes=jr;Rh.displayName="@mantine/core/ModalCloseButton";var G2=b(R(),1);var p5e=b(S(),1);var ree={},Dh=V((e,t)=>{let r=E("ModalContent",ree,e),{classNames:n,className:o,style:i,styles:a,vars:s,children:l,__hidden:c,...u}=r,d=Ln(),f=d.scrollAreaComponent||fM;return(0,G2.jsx)(p2,{...d.getStyles("content",{className:o,style:i,styles:a,classNames:n}),innerProps:d.getStyles("inner",{className:o,style:i,styles:a,classNames:n}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":c||void 0,ref:t,...u,children:(0,G2.jsx)(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${j(d.yOffset)} * 2))`},children:l})})});Dh.classes=jr;Dh.displayName="@mantine/core/ModalContent";var W3=b(R(),1),w5e=b(S(),1);var oee={},Eh=V((e,t)=>{let r=E("ModalHeader",oee,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Ln();return(0,W3.jsx)(h2,{ref:t,...c.getStyles("header",{classNames:n,style:i,styles:a,className:o}),...l})});Eh.classes=jr;Eh.displayName="@mantine/core/ModalHeader";var Z3=b(R(),1),E5e=b(S(),1);var nee={},Th=V((e,t)=>{let r=E("ModalOverlay",nee,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Ln();return(0,Z3.jsx)(v2,{ref:t,...c.getStyles("overlay",{classNames:n,style:i,styles:a,className:o}),...l})});Th.classes=jr;Th.displayName="@mantine/core/ModalOverlay";var X2=b(R(),1);var M5e=b(S(),1);var iee={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Ot("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},aee=(e,{radius:t,size:r,yOffset:n,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:De(t),"--modal-size":pe(r,"modal-size"),"--modal-y-offset":j(n),"--modal-x-offset":j(o)}}),Oh=V((e,t)=>{let r=E("ModalRoot",iee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,yOffset:c,scrollAreaComponent:u,radius:d,fullScreen:f,centered:m,xOffset:p,__staticSelector:h,...y}=r,v=J({name:h,classes:jr,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:aee});return(0,X2.jsx)(U3,{value:{yOffset:c,scrollAreaComponent:u,getStyles:v,fullScreen:f},children:(0,X2.jsx)(d2,{ref:t,...v("root"),"data-full-screen":f||void 0,"data-centered":m||void 0,"data-offset-scrollbars":u===Wi.Autosize||void 0,unstyled:s,...y})})});Oh.classes=jr;Oh.displayName="@mantine/core/ModalRoot";var q3=b(R(),1),Q2=b(S(),1);var[see,K3]=Gr();function J2({children:e}){let[t,r]=(0,Q2.useState)([]),[n,o]=(0,Q2.useState)(Ot("modal"));return(0,q3.jsx)(see,{value:{stack:t,addModal:(i,a)=>{r(s=>[...new Set([...s,i])]),o(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:i=>r(a=>a.filter(s=>s!==i)),getZIndex:i=>`calc(${n} + ${t.indexOf(i)} + 1)`,currentId:t[t.length-1],maxZIndex:n},children:e})}J2.displayName="@mantine/core/ModalStack";var G3=b(R(),1),rAe=b(S(),1);var lee={},zh=V((e,t)=>{let r=E("ModalTitle",lee,e),{classNames:n,className:o,style:i,styles:a,vars:s,...l}=r,c=Ln();return(0,G3.jsx)(x2,{ref:t,...c.getStyles("title",{classNames:n,style:i,styles:a,className:o}),...l})});zh.classes=jr;zh.displayName="@mantine/core/ModalTitle";var cee={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Ot("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},pn=V((e,t)=>{let{title:r,withOverlay:n,overlayProps:o,withCloseButton:i,closeButtonProps:a,children:s,radius:l,opened:c,stackId:u,zIndex:d,...f}=E("Modal",cee,e),m=K3(),p=!!r||i,h=m&&u?{closeOnEscape:m.currentId===u,trapFocus:m.currentId===u,zIndex:m.getZIndex(u)}:{},y=n===!1?!1:u&&m?m.currentId===u:c;return(0,X3.useEffect)(()=>{m&&u&&(c?m.addModal(u,d||Ot("modal")):m.removeModal(u))},[c,u,d]),(0,Ma.jsxs)(Oh,{ref:t,radius:l,opened:c,zIndex:m&&u?m.getZIndex(u):d,...f,...h,children:[n&&(0,Ma.jsx)(Th,{visible:y,transitionProps:m&&u?{duration:0}:void 0,...o}),(0,Ma.jsxs)(Dh,{radius:l,__hidden:m&&u&&c?u!==m.currentId:!1,children:[p&&(0,Ma.jsxs)(Eh,{children:[r&&(0,Ma.jsx)(zh,{children:r}),i&&(0,Ma.jsx)(Rh,{...a})]}),(0,Ma.jsx)($h,{children:s})]})]})});pn.classes=jr;pn.displayName="@mantine/core/Modal";pn.Root=Oh;pn.Overlay=Th;pn.Content=Dh;pn.Body=$h;pn.Header=Eh;pn.Title=zh;pn.CloseButton=Rh;pn.Stack=J2;var oo=b(R(),1),o8=b(S(),1);var Ah=b(R(),1),ZAe=b(S(),1);var SAe=b(S(),1),kAe=b(R(),1);var[Q3,ff]=Gr();var RAe=b(S(),1),DAe=b(R(),1);var[J3,Y3]=Gr();var Y2=b(R(),1),AAe=b(S(),1);var mf={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};var uee={},dee=(e,{gap:t},{size:r})=>({group:{"--pg-gap":t!==void 0?pe(t):pe(r,"pg-gap")}}),u_=V((e,t)=>{let r=E("PillGroup",uee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,disabled:u,...d}=r,m=ff()?.size||c||void 0,p=J({name:"PillGroup",classes:mf,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:dee,stylesCtx:{size:m},rootSelector:"group"});return(0,Y2.jsx)(J3,{value:{size:m,disabled:u},children:(0,Y2.jsx)(L,{ref:t,size:m,...p("group"),...d})})});u_.classes=mf;u_.displayName="@mantine/core/PillGroup";var fee={variant:"default"},mee=(e,{radius:t},{size:r})=>({root:{"--pill-fz":pe(r,"pill-fz"),"--pill-height":pe(r,"pill-height"),"--pill-radius":t===void 0?void 0:De(t)}}),ja=V((e,t)=>{let r=E("Pill",fee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,variant:c,children:u,withRemoveButton:d,onRemove:f,removeButtonProps:m,radius:p,size:h,disabled:y,mod:v,...g}=r,x=Y3(),_=ff(),w=h||x?.size||void 0,I=_?.variant==="filled"?"contrast":c||"default",k=J({name:"Pill",classes:mf,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:mee,stylesCtx:{size:w}});return(0,Ah.jsxs)(L,{component:"span",ref:t,variant:I,size:w,...k("root",{variant:I}),mod:[{"with-remove":d&&!y,disabled:y||x?.disabled},v],...g,children:[(0,Ah.jsx)("span",{...k("label"),children:u}),d&&(0,Ah.jsx)(An,{variant:"transparent",radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:s,...m,...k("remove",{className:m?.className,style:m?.style}),onMouseDown:C=>{C.preventDefault(),C.stopPropagation(),m?.onMouseDown?.(C)},onClick:C=>{C.stopPropagation(),f?.(),m?.onClick?.(C)}})]})});ja.classes=mf;ja.displayName="@mantine/core/Pill";ja.Group=u_;var tP=b(R(),1),t8=b(S(),1);var e8=b(R(),1);var sFe=b(S(),1);var eP={field:"m_45c4369d"};var pee={type:"visible"},d_=V((e,t)=>{let r=E("PillsInputField",pee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,type:c,disabled:u,id:d,pointer:f,mod:m,...p}=r,h=ff(),y=Fn(),v=J({name:"PillsInputField",classes:eP,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,rootSelector:"field"}),g=u||h?.disabled;return(0,e8.jsx)(L,{component:"input",ref:Le(t,h?.fieldRef),"data-type":c,disabled:g,mod:[{disabled:g,pointer:f},m],...v("field"),...p,id:y?.inputId||d,"aria-invalid":h?.hasError,"aria-describedby":y?.describedBy,type:"text",onMouseDown:x=>!f&&x.stopPropagation()})});d_.classes=eP;d_.displayName="@mantine/core/PillsInputField";var hee={},tl=V((e,t)=>{let r=E("PillsInput",hee,e),{children:n,onMouseDown:o,onClick:i,size:a,disabled:s,__staticSelector:l,error:c,variant:u,...d}=r,f=(0,t8.useRef)(null);return(0,tP.jsx)(Q3,{value:{fieldRef:f,size:a,disabled:s,hasError:!!c,variant:u},children:(0,tP.jsx)(Ft,{size:a,error:c,variant:u,component:"div",ref:t,onMouseDown:m=>{m.preventDefault(),o?.(m),f.current?.focus()},onClick:m=>{m.preventDefault(),m.currentTarget.closest("fieldset")?.disabled||(f.current?.focus(),i?.(m))},...d,multiline:!0,disabled:s,__staticSelector:l||"PillsInput",withAria:!1,children:n})})});tl.displayName="@mantine/core/PillsInput";tl.Field=d_;var SFe=b(R(),1);var CFe=b(S(),1);function r8({data:e,value:t}){let r=t.map(o=>o.trim().toLowerCase());return e.reduce((o,i)=>(Bn(i)?o.push({group:i.group,items:i.items.filter(a=>r.indexOf(a.value.toLowerCase().trim())===-1)}):r.indexOf(i.value.toLowerCase().trim())===-1&&o.push(i),o),[])}var gee={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:","},Fh=V((e,t)=>{let r=E("MultiSelect",gee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,value:u,defaultValue:d,onChange:f,onKeyDown:m,variant:p,data:h,dropdownOpened:y,defaultDropdownOpened:v,onDropdownOpen:g,onDropdownClose:x,selectFirstOptionOnChange:_,onOptionSubmit:w,comboboxProps:I,filter:k,limit:C,withScrollArea:U,maxDropdownHeight:H,searchValue:W,defaultSearchValue:X,onSearchChange:N,readOnly:A,disabled:B,onFocus:T,onBlur:M,radius:$,rightSection:O,rightSectionWidth:Z,rightSectionPointerEvents:Y,rightSectionProps:te,leftSection:ve,leftSectionWidth:ge,leftSectionPointerEvents:q,leftSectionProps:ae,inputContainer:ye,inputWrapperOrder:se,withAsterisk:ke,labelProps:ze,descriptionProps:Ve,errorProps:Ke,wrapperProps:Pe,description:Et,label:Tt,error:zr,maxValues:de,searchable:ce,nothingFoundMessage:xe,withCheckIcon:Ce,checkIconPosition:Be,hidePickedOptions:Re,withErrorStyles:He,name:le,form:Ie,id:Yt,clearable:Fo,clearButtonProps:co,hiddenInputProps:wt,placeholder:nr,hiddenInputValuesDivider:va,required:Nu,mod:Bu,renderOption:Lu,onRemove:ir,onClear:ps,scrollAreaProps:hs,chevronColor:Vm,...Hm}=r,Wm=tt(Yt),Mu=tf(h),gs=Tc(Mu),Mt=Ys({opened:y,defaultOpened:v,onDropdownOpen:g,onDropdownClose:()=>{x?.(),Mt.resetSelectedOption()}}),{styleProps:tS,rest:{type:Cq,autoComplete:rS,...oS}}=Ir(Hm),[Ge,on]=Qe({value:u,defaultValue:d,finalValue:[],onChange:f}),[In,nS]=Qe({value:W,defaultValue:X,finalValue:"",onChange:N}),Yn=be=>{nS(be),Mt.resetSelectedOption()},Vl=J({name:"MultiSelect",classes:{},props:r,classNames:n,styles:a,unstyled:s}),{resolvedClassNames:Zm,resolvedStyles:qm}=Lo({props:r,styles:a,classNames:n}),Uv=be=>{m?.(be),be.key===" "&&!ce&&(be.preventDefault(),Mt.toggleDropdown()),be.key==="Backspace"&&In.length===0&&Ge.length>0&&(ir?.(Ge[Ge.length-1]),on(Ge.slice(0,Ge.length-1)))},iS=Ge.map((be,uo)=>(0,oo.jsx)(ja,{withRemoveButton:!A&&!gs[be]?.disabled,onRemove:()=>{on(Ge.filter(Ci=>be!==Ci)),ir?.(be)},unstyled:s,disabled:B,...Vl("pill"),children:gs[be]?.label||be},`${be}-${uo}`));(0,o8.useEffect)(()=>{_&&Mt.selectFirstOption()},[_,In]);let Vv=(0,oo.jsx)(Oe.ClearButton,{...co,onClear:()=>{ps?.(),on([]),Yn("")}}),aS=r8({data:Mu,value:Ge}),Hv=Fo&&Ge.length>0&&!B&&!A;return(0,oo.jsxs)(oo.Fragment,{children:[(0,oo.jsxs)(Oe,{store:Mt,classNames:Zm,styles:qm,unstyled:s,size:c,readOnly:A,__staticSelector:"MultiSelect",onOptionSubmit:be=>{w?.(be),Yn(""),Mt.updateSelectedOptionIndex("selected"),Ge.includes(gs[be].value)?(on(Ge.filter(uo=>uo!==gs[be].value)),ir?.(gs[be].value)):Ge.length<de&&on([...Ge,gs[be].value])},...I,children:[(0,oo.jsx)(Oe.DropdownTarget,{children:(0,oo.jsx)(tl,{...tS,__staticSelector:"MultiSelect",classNames:Zm,styles:qm,unstyled:s,size:c,className:o,style:i,variant:p,disabled:B,radius:$,__defaultRightSection:(0,oo.jsx)(Oe.Chevron,{size:c,error:zr,unstyled:s,color:Vm}),__clearSection:Vv,__clearable:Hv,rightSection:O,rightSectionPointerEvents:Y||(Vv?"all":"none"),rightSectionWidth:Z,rightSectionProps:te,leftSection:ve,leftSectionWidth:ge,leftSectionPointerEvents:q,leftSectionProps:ae,inputContainer:ye,inputWrapperOrder:se,withAsterisk:ke,labelProps:ze,descriptionProps:Ve,errorProps:Ke,wrapperProps:Pe,description:Et,label:Tt,error:zr,withErrorStyles:He,__stylesApiProps:{...r,rightSectionPointerEvents:Y||(Hv?"all":"none"),multiline:!0},pointer:!ce,onClick:()=>ce?Mt.openDropdown():Mt.toggleDropdown(),"data-expanded":Mt.dropdownOpened||void 0,id:Wm,required:Nu,mod:Bu,children:(0,oo.jsxs)(ja.Group,{disabled:B,unstyled:s,...Vl("pillsList"),children:[iS,(0,oo.jsx)(Oe.EventsTarget,{autoComplete:rS,children:(0,oo.jsx)(tl.Field,{...oS,ref:t,id:Wm,placeholder:nr,type:!ce&&!nr?"hidden":"visible",...Vl("inputField"),unstyled:s,onFocus:be=>{T?.(be),ce&&Mt.openDropdown()},onBlur:be=>{M?.(be),Mt.closeDropdown(),Yn("")},onKeyDown:Uv,value:In,onChange:be=>{Yn(be.currentTarget.value),ce&&Mt.openDropdown(),_&&Mt.selectFirstOption()},disabled:B,readOnly:A||!ce,pointer:!ce})})]})})}),(0,oo.jsx)(sf,{data:Re?aS:Mu,hidden:A||B,filter:k,search:In,limit:C,hiddenWhenEmpty:!xe,withScrollArea:U,maxDropdownHeight:H,filterOptions:ce,value:Ge,checkIconPosition:Be,withCheckIcon:Ce,nothingFoundMessage:xe,unstyled:s,labelId:Tt?`${Wm}-label`:void 0,"aria-label":Tt?void 0:Hm["aria-label"],renderOption:Lu,scrollAreaProps:hs})]}),(0,oo.jsx)(Oe.HiddenInput,{name:le,valuesDivider:va,value:Ge,form:Ie,disabled:B,...wt})]})});Fh.classes={...Ft.classes,...Oe.classes};Fh.displayName="@mantine/core/MultiSelect";var Go=b(R(),1);var KFe=b(S(),1);var rP={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};var vee={},xee=(e,{variant:t,color:r,childrenOffset:n,autoContrast:o})=>{let i=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:t||"light",autoContrast:o});return{root:{"--nl-bg":r||t?i.background:void 0,"--nl-hover":r||t?i.hover:void 0,"--nl-color":r||t?i.color:void 0},children:{"--nl-offset":kt(n)}}},Nh=ot((e,t)=>{let r=E("NavLink",vee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,opened:c,defaultOpened:u,onChange:d,children:f,onClick:m,active:p,disabled:h,leftSection:y,rightSection:v,label:g,description:x,disableRightSectionRotation:_,noWrap:w,childrenOffset:I,onKeyDown:k,autoContrast:C,mod:U,...H}=r,W=J({name:"NavLink",props:r,classes:rP,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:xee}),[X,N]=Qe({value:c,defaultValue:u,finalValue:!1,onChange:d}),A=!!f,B=T=>{m?.(T),A&&(T.preventDefault(),N(!X))};return(0,Go.jsxs)(Go.Fragment,{children:[(0,Go.jsxs)(dr,{...W("root"),component:"a",ref:t,onClick:B,onKeyDown:T=>{k?.(T),T.nativeEvent.code==="Space"&&A&&(T.preventDefault(),N(!X))},unstyled:s,mod:[{disabled:h,active:p,expanded:X},U],...H,children:[y&&(0,Go.jsx)(L,{component:"span",...W("section"),mod:{position:"left"},children:y}),(0,Go.jsxs)(L,{...W("body"),mod:{"no-wrap":w},children:[(0,Go.jsx)(L,{component:"span",...W("label"),children:g}),(0,Go.jsx)(L,{component:"span",mod:{active:p},...W("description"),children:x})]}),(A||v!==void 0)&&(0,Go.jsx)(L,{...W("section"),component:"span",mod:{rotate:X&&!_,position:"right"},children:A?v!==void 0?v:(0,Go.jsx)(w2,{...W("chevron")}):v})]}),A&&(0,Go.jsx)(hC,{in:X,...W("collapse"),children:(0,Go.jsx)("div",{...W("children"),children:f})})]})});Nh.classes=rP;Nh.displayName="@mantine/core/NavLink";var Ua=b(R(),1),sNe=b(S(),1);var oP={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};var bee={withCloseButton:!0},yee=(e,{radius:t,color:r})=>({root:{"--notification-radius":t===void 0?void 0:De(t),"--notification-color":r?je(r,e):void 0}}),Bh=V((e,t)=>{let r=E("Notification",bee,e),{className:n,color:o,radius:i,loading:a,withCloseButton:s,withBorder:l,title:c,icon:u,children:d,onClose:f,closeButtonProps:m,classNames:p,style:h,styles:y,unstyled:v,variant:g,vars:x,mod:_,loaderProps:w,role:I,...k}=r,C=J({name:"Notification",classes:oP,props:r,className:n,style:h,classNames:p,styles:y,unstyled:v,vars:x,varsResolver:yee});return(0,Ua.jsxs)(L,{...C("root"),mod:[{"data-with-icon":!!u||a,"data-with-border":l},_],ref:t,variant:g,role:I||"alert",...k,children:[u&&!a&&(0,Ua.jsx)("div",{...C("icon"),children:u}),a&&(0,Ua.jsx)(ro,{size:28,color:o,...w,...C("loader")}),(0,Ua.jsxs)("div",{...C("body"),children:[c&&(0,Ua.jsx)("div",{...C("title"),children:c}),(0,Ua.jsx)(L,{...C("description"),mod:{"data-with-title":!!c},children:d})]}),s&&(0,Ua.jsx)(An,{iconSize:16,color:"gray",...m,unstyled:v,onClick:f,...C("closeButton")})]})});Bh.classes=oP;Bh.displayName="@mantine/core/Notification";var yt=b(S());function c8(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var pf;(function(e){e.event="event",e.props="prop"})(pf||(pf={}));function rl(){}function _ee(e){var t,r=void 0;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t&&n.length===t.length&&n.every(function(i,a){return i===t[a]})||(t=n,r=e.apply(void 0,n)),r}}function Lh(e){return!!(e||"").match(/\d/)}function ol(e){return e==null}function Iee(e){return typeof e=="number"&&isNaN(e)}function u8(e){return ol(e)||Iee(e)||typeof e=="number"&&!isFinite(e)}function d8(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function wee(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function See(e,t,r){var n=wee(r),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}function n8(e){var t=(0,yt.useRef)(e);t.current=e;var r=(0,yt.useRef)(function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t.current.apply(t,n)});return r.current}function iP(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var o=e.split("."),i=o[0],a=o[1]||"";return{beforeDecimal:i,afterDecimal:a,hasNegation:r,addNegation:n}}function kee(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return(t?"-":"")+n+(o?"."+o:"")}function f8(e,t,r){for(var n="",o=r?"0":"",i=0;i<=t-1;i++)n+=e[i]||o;return n}function i8(e,t){return Array(t+1).join(e)}function m8(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),o=n[0],i=n[1];if(i=Number(i),!i)return r+o;o=o.replace(".","");var a=1+i,s=o.length;return a<0?o="0."+i8("0",Math.abs(a))+o:a>=s?o=o+i8("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),r+o}function a8(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,o=iP(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,l=parseFloat("0."+(a||"0")),c=a.length<=t?"0."+a:l.toFixed(t),u=c.split("."),d=i;i&&Number(u[0])&&(d=i.split("").reverse().reduce(function(h,y,v){return h.length>v?(Number(h[0])+Number(y)).toString()+h.substring(1,h.length):y+h},u[0]));var f=f8(u[1]||"",t,r),m=s?"-":"",p=n?".":"";return""+m+d+p+f}function Fc(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var p8=_ee(function(e,t){for(var r=0,n=0,o=e.length,i=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[i-1-n]&&i-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:i-n}}}),Cee=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Pee(e,t,r){return Math.min(Math.max(e,t),r)}function nP(e){return Math.max(e.selectionStart,e.selectionEnd)}function $ee(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Ree(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Dee(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function Eee(e,t,r,n,o,i,a){a===void 0&&(a=Dee);var s=o.findIndex(function(_){return _}),l=e.slice(0,s);!t&&!r.startsWith(l)&&(t=l,r=l+r,n=n+l.length);for(var c=r.length,u=e.length,d={},f=new Array(c),m=0;m<c;m++){f[m]=-1;for(var p=0,h=u;p<h;p++){var y=a({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:m,formattedValueIndex:p});if(y&&d[p]!==!0){f[m]=p,d[p]=!0;break}}}for(var v=n;v<c&&(f[v]===-1||!i(r[v]));)v++;var g=v===c||f[v]===-1?u:f[v];for(v=n-1;v>0&&f[v]===-1;)v--;var x=v===-1||f[v]===-1?0:f[v]+1;return x>g?g:n-x<g-n?x:g}function s8(e,t,r,n){var o=e.length;if(t=Pee(t,0,o),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return t===-1&&(t=o),t}function Tee(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(Lh(e[r])||Lh(e[r-1]));return t}function h8(e,t,r,n,o,i){i===void 0&&(i=rl);var a=n8(function(p,h){var y,v;return u8(p)?(v="",y=""):typeof p=="number"||h?(v=typeof p=="number"?m8(p):p,y=n(v)):(v=o(p,void 0),y=n(v)),{formattedValue:y,numAsString:v}}),s=(0,yt.useState)(function(){return a(ol(e)?t:e,r)}),l=s[0],c=s[1],u=n8(function(p,h){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),i(p,h)}),d=e,f=r;ol(e)&&(d=l.numAsString,f=!0);var m=a(d,f);return(0,yt.useMemo)(function(){c(m)},[m.formattedValue]),(0,yt.useEffect)(function(){if(!ol(t)&&ol(e)&&l.formattedValue!==""){var p=parseFloat(l.numAsString);u({formattedValue:l.formattedValue,value:l.numAsString,floatValue:isNaN(p)?void 0:p},{event:void 0,source:pf.props})}},[]),[l,u]}function Oee(e){return e.replace(/[^0-9]/g,"")}function zee(e){return e}function Aee(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;a===void 0&&(a=zee);var s=e.removeFormatting;s===void 0&&(s=Oee);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=rl);var m=e.onKeyDown;m===void 0&&(m=rl);var p=e.onMouseUp;p===void 0&&(p=rl);var h=e.onFocus;h===void 0&&(h=rl);var y=e.onBlur;y===void 0&&(y=rl);var v=e.value,g=e.getCaretBoundary;g===void 0&&(g=Tee);var x=e.isValidInputCharacter;x===void 0&&(x=Lh);var _=e.isCharacterSame,w=c8(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),I=h8(v,l,!!c,a,s,u),k=I[0],C=k.formattedValue,U=k.numAsString,H=I[1],W=(0,yt.useRef)(),X=(0,yt.useRef)({formattedValue:C,numAsString:U}),N=function(de,ce){X.current={formattedValue:de.formattedValue,numAsString:de.value},H(de,ce)},A=(0,yt.useState)(!1),B=A[0],T=A[1],M=(0,yt.useRef)(null),$=(0,yt.useRef)({setCaretTimeout:null,focusTimeout:null});(0,yt.useEffect)(function(){return T(!0),function(){clearTimeout($.current.setCaretTimeout),clearTimeout($.current.focusTimeout)}},[]);var O=a,Z=function(de,ce){var xe=parseFloat(ce);return{formattedValue:de,value:ce,floatValue:isNaN(xe)?void 0:xe}},Y=function(de,ce,xe){de.selectionStart===0&&de.selectionEnd===de.value.length||(Fc(de,ce),$.current.setCaretTimeout=setTimeout(function(){de.value===xe&&de.selectionStart!==ce&&Fc(de,ce)},0))},te=function(de,ce,xe){return s8(de,ce,g(de),xe)},ve=function(de,ce,xe){var Ce=g(ce),Be=Eee(ce,C,de,xe,Ce,x,_);return Be=s8(ce,Be,Ce),Be},ge=function(de){var ce=de.formattedValue;ce===void 0&&(ce="");var xe=de.input,Ce=de.source,Be=de.event,Re=de.numAsString,He;if(xe){var le=de.inputValue||xe.value,Ie=nP(xe);xe.value=ce,He=ve(le,ce,Ie),He!==void 0&&Y(xe,He,ce)}ce!==C&&N(Z(ce,Re),{event:Be,source:Ce})};(0,yt.useEffect)(function(){var de=X.current,ce=de.formattedValue,xe=de.numAsString;(C!==ce||U!==xe)&&N(Z(C,U),{event:void 0,source:pf.props})},[C,U]);var q=M.current?nP(M.current):void 0,ae=typeof window<"u"?yt.useLayoutEffect:yt.useEffect;ae(function(){var de=M.current;if(C!==X.current.formattedValue&&de){var ce=ve(X.current.formattedValue,C,q);de.value=C,Y(de,ce,C)}},[C]);var ye=function(de,ce,xe){var Ce=ce.target,Be=W.current?Cee(W.current,Ce.selectionEnd):p8(C,de),Re=Object.assign(Object.assign({},Be),{lastValue:C}),He=s(de,Re),le=O(He);if(He=s(le,void 0),d&&!d(Z(le,He))){var Ie=ce.target,Yt=nP(Ie),Fo=ve(de,C,Yt);return Ie.value=C,Y(Ie,Fo,C),!1}return ge({formattedValue:le,numAsString:He,inputValue:de,event:ce,source:xe,input:ce.target}),!0},se=function(de,ce){ce===void 0&&(ce=0);var xe=de.selectionStart,Ce=de.selectionEnd;W.current={selectionStart:xe,selectionEnd:Ce+ce}},ke=function(de){var ce=de.target,xe=ce.value,Ce=ye(xe,de,pf.event);Ce&&f(de),W.current=void 0},ze=function(de){var ce=de.target,xe=de.key,Ce=ce.selectionStart,Be=ce.selectionEnd,Re=ce.value;Re===void 0&&(Re="");var He;xe==="ArrowLeft"||xe==="Backspace"?He=Math.max(Ce-1,0):xe==="ArrowRight"?He=Math.min(Ce+1,Re.length):xe==="Delete"&&(He=Ce);var le=0;xe==="Delete"&&Ce===Be&&(le=1);var Ie=xe==="ArrowLeft"||xe==="ArrowRight";if(He===void 0||Ce!==Be&&!Ie){m(de),se(ce,le);return}var Yt=He;if(Ie){var Fo=xe==="ArrowLeft"?"left":"right";Yt=te(Re,He,Fo),Yt!==He&&de.preventDefault()}else xe==="Delete"&&!x(Re[He])?Yt=te(Re,He,"right"):xe==="Backspace"&&!x(Re[He])&&(Yt=te(Re,He,"left"));Yt!==He&&Y(ce,Yt,Re),m(de),se(ce,le)},Ve=function(de){var ce=de.target,xe=function(){var Ce=ce.selectionStart,Be=ce.selectionEnd,Re=ce.value;if(Re===void 0&&(Re=""),Ce===Be){var He=te(Re,Ce);He!==Ce&&Y(ce,He,Re)}};xe(),requestAnimationFrame(function(){xe()}),p(de),se(ce)},Ke=function(de){de.persist&&de.persist();var ce=de.target,xe=de.currentTarget;M.current=ce,$.current.focusTimeout=setTimeout(function(){var Ce=ce.selectionStart,Be=ce.selectionEnd,Re=ce.value;Re===void 0&&(Re="");var He=te(Re,Ce);He!==Ce&&!(Ce===0&&Be===Re.length)&&Y(ce,He,Re),h(Object.assign(Object.assign({},de),{currentTarget:xe}))},0)},Pe=function(de){M.current=null,clearTimeout($.current.focusTimeout),clearTimeout($.current.setCaretTimeout),y(de)},Et=B&&$ee()?"numeric":void 0,Tt=Object.assign({inputMode:Et},w,{type:t,value:C,onChange:ke,onKeyDown:ze,onMouseUp:Ve,onFocus:Ke,onBlur:Pe});if(r==="text")return o?yt.default.createElement(yt.default.Fragment,null,o(C,w)||null):yt.default.createElement("span",Object.assign({},w,{ref:i}),C);if(n){var zr=n;return yt.default.createElement(zr,Object.assign({},Tt,{ref:i}))}return yt.default.createElement("input",Object.assign({},Tt,{ref:i}))}function l8(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var i=t.suffix;i===void 0&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=f_(t),c=l.thousandSeparator,u=l.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,f=iP(e,a),m=f.beforeDecimal,p=f.afterDecimal,h=f.addNegation;return r!==void 0&&(p=f8(p,r,!!n)),c&&(m=See(m,c,s)),o&&(m=o+m),i&&(p=p+i),h&&(m="-"+m),e=m+(d&&u||"")+p,e}function f_(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function Fee(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),i=n.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}function Nee(e,t){return new RegExp("(^-)|[0-9]|"+d8(e),t?"g":void 0)}function Bee(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function Lee(e,t,r){var n;t===void 0&&(t=Ree(e));var o=r.allowNegative,i=r.prefix;i===void 0&&(i="");var a=r.suffix;a===void 0&&(a="");var s=r.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=f_(r),m=f.allowedDecimalSeparators,p=f.decimalSeparator,h=e[d]===p;if(Lh(e)&&(e===i||e===a)&&t.lastValue==="")return e;if(d-u===1&&m.indexOf(e[u])!==-1){var y=s===0?"":p;e=e.substring(0,u)+y+e.substring(u+1,e.length)}var v=function(M,$,O){var Z=!1,Y=!1;i.startsWith("-")?Z=!1:M.startsWith("--")?(Z=!1,Y=!0):a.startsWith("-")&&M.length===a.length?Z=!1:M[0]==="-"&&(Z=!0);var te=Z?1:0;return Y&&(te=2),te&&(M=M.substring(te),$-=te,O-=te),{value:M,start:$,end:O,hasNegation:Z}},g=v(e,u,d),x=g.hasNegation;n=g,e=n.value,u=n.start,d=n.end;var _=v(t.lastValue,l.start,l.end),w=_.start,I=_.end,k=_.value,C=e.substring(u,d);e.length&&k.length&&(w>k.length-a.length||I<i.length)&&!(C&&a.startsWith(C))&&(e=k);var U=0;e.startsWith(i)?U+=i.length:u<i.length&&(U=u),e=e.substring(U),d-=U;var H=e.length,W=e.length-a.length;e.endsWith(a)?H=W:(d>W||d>e.length-a.length)&&(H=d),e=e.substring(0,H),e=Fee(x?"-"+e:e,o),e=(e.match(Nee(p,!0))||[]).join("");var X=e.indexOf(p);e=e.replace(new RegExp(d8(p),"g"),function(M,$){return $===X?".":""});var N=iP(e,o),A=N.beforeDecimal,B=N.afterDecimal,T=N.addNegation;return c.end-c.start<l.end-l.start&&A===""&&h&&!parseFloat(B)&&(e=T?"-":""),e}function Mee(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var o=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";o.fill(!1,0,Math.min(r.length+(i?1:0),e.length));var a=e.length;return o.fill(!1,a-n.length+1,a+1),o}function jee(e){var t=f_(e),r=t.thousandSeparator,n=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var i=e.allowNegative;if(i===void 0&&(i=!0),r===n)throw new Error(`
52
+ Decimal separator can't be same as thousand separator.
53
+ thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
54
+ decimalSeparator: `+n+` (default value for decimalSeparator is .)
55
+ `);return o.startsWith("-")&&i&&(console.error(`
56
+ Prefix can't start with '-' when allowNegative is true.
57
+ prefix: `+o+`
58
+ allowNegative: `+i+`
59
+ `),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function Uee(e){e=jee(e);var t=e.decimalSeparator,r=e.allowedDecimalSeparators,n=e.thousandsGroupStyle,o=e.suffix,i=e.allowNegative,a=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=rl);var l=e.onBlur;l===void 0&&(l=rl);var c=e.thousandSeparator,u=e.decimalScale,d=e.fixedDecimalScale,f=e.prefix;f===void 0&&(f="");var m=e.defaultValue,p=e.value,h=e.valueIsNumericString,y=e.onValueChange,v=c8(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=f_(e),x=g.decimalSeparator,_=g.allowedDecimalSeparators,w=function(O){return l8(O,e)},I=function(O,Z){return Lee(O,Z,e)},k=ol(p)?m:p,C=h??Bee(k,f,o);ol(p)?ol(m)||(C=C||typeof m=="number"):C=C||typeof p=="number";var U=function(O){return u8(O)?O:(typeof O=="number"&&(O=m8(O)),C&&typeof u=="number"?a8(O,u,!!d):O)},H=h8(U(p),U(m),!!C,w,I,y),W=H[0],X=W.numAsString,N=W.formattedValue,A=H[1],B=function(O){var Z=O.target,Y=O.key,te=Z.selectionStart,ve=Z.selectionEnd,ge=Z.value;if(ge===void 0&&(ge=""),(Y==="Backspace"||Y==="Delete")&&ve<f.length&&ge!=="-"){O.preventDefault();return}if(te!==ve){s(O);return}Y==="Backspace"&&ge[0]==="-"&&te===f.length+1&&i&&Fc(Z,1),u&&d&&(Y==="Backspace"&&ge[te-1]===x?(Fc(Z,te-1),O.preventDefault()):Y==="Delete"&&ge[te]===x&&O.preventDefault()),_?.includes(Y)&&ge[te]===x&&Fc(Z,te+1);var q=c===!0?",":c;Y==="Backspace"&&ge[te-1]===q&&Fc(Z,te-1),Y==="Delete"&&ge[te]===q&&Fc(Z,te+1),s(O)},T=function(O){var Z=X;if(Z.match(/\d/g)||(Z=""),a||(Z=kee(Z)),d&&u&&(Z=a8(Z,u,d)),Z!==X){var Y=l8(Z,e);A({formattedValue:Y,value:Z,floatValue:parseFloat(Z)},{event:O,source:pf.event})}l(O)},M=function(O){return O===x?!0:Lh(O)},$=function(O){var Z=O.currentValue,Y=O.lastValue,te=O.formattedValue,ve=O.currentValueIndex,ge=O.formattedValueIndex,q=Z[ve],ae=te[ge],ye=p8(Y,Z),se=ye.to,ke=function(ze){return I(ze).indexOf(".")+f.length};return p===0&&d&&u&&Z[se.start]===x&&ke(Z)<ve&&ke(te)>ge?!1:ve>=se.start&&ve<se.end&&_&&_.includes(q)&&ae===x?!0:q===ae};return Object.assign(Object.assign({},v),{value:N,valueIsNumericString:!1,isValidInputCharacter:M,isCharacterSame:$,onValueChange:A,format:w,removeFormatting:I,getCaretBoundary:function(O){return Mee(O,e)},onKeyDown:B,onBlur:T})}function g8(e){var t=Uee(e);return yt.default.createElement(Aee,Object.assign({},t))}var nl=b(R(),1),hf=b(S(),1);var aP=b(R(),1);function sP({direction:e,style:t,...r}){return(0,aP.jsx)("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:(0,aP.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var m_={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};var Vee=/^(0\.0*|-0(\.0*)?)$/,Hee=/^-?0\d+(\.\d+)?\.?$/;function cP(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}function lP(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||cP(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function Wee(e){return e.toString().replace(".","").length}function Zee(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Wee(t)<14&&t!==""}function v8(e,t,r){if(e===void 0)return!0;let n=t===void 0||e>=t,o=r===void 0||e<=r;return n&&o}var qee={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},Kee=(e,{size:t})=>({controls:{"--ni-chevron-size":pe(t,"ni-chevron-size")}});function Gee(e,t,r){let n=e.toString().replace(/^0+/,""),o=parseFloat(n);return Number.isNaN(o)?n:o>Number.MAX_SAFE_INTEGER?t!==void 0?String(t):n:qu(o,r,t)}var Mh=V((e,t)=>{let r=E("NumberInput",qee,e),{className:n,classNames:o,styles:i,unstyled:a,vars:s,onChange:l,onValueChange:c,value:u,defaultValue:d,max:f,min:m,step:p,hideControls:h,rightSection:y,isAllowed:v,clampBehavior:g,onBlur:x,allowDecimal:_,decimalScale:w,onKeyDown:I,onKeyDownCapture:k,handlersRef:C,startValue:U,disabled:H,rightSectionPointerEvents:W,allowNegative:X,readOnly:N,size:A,rightSectionWidth:B,stepHoldInterval:T,stepHoldDelay:M,allowLeadingZeros:$,withKeyboardEvents:O,trimLeadingZeroesOnBlur:Z,...Y}=r,te=J({name:"NumberInput",classes:m_,props:r,classNames:o,styles:i,unstyled:a,vars:s,varsResolver:Kee}),{resolvedClassNames:ve,resolvedStyles:ge}=Lo({classNames:o,styles:i,props:r}),[q,ae]=Qe({value:u,defaultValue:d,finalValue:"",onChange:l}),ye=M!==void 0&&T!==void 0,se=(0,hf.useRef)(null),ke=(0,hf.useRef)(null),ze=(0,hf.useRef)(0),Ve=(le,Ie)=>{Ie.source==="event"&&ae(Zee(le.floatValue,le.value)&&!Vee.test(le.value)&&!($&&Hee.test(le.value))?le.floatValue:le.value),c?.(le,Ie)},Ke=le=>{let Ie=String(le).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ie?Math.max(0,(Ie[1]?Ie[1].length:0)-(Ie[2]?+Ie[2]:0)):0},Pe=le=>{se.current&&typeof le<"u"&&se.current.setSelectionRange(le,le)},Et=(0,hf.useRef)(Kl);Et.current=()=>{if(!lP(q))return;let le,Ie=Ke(q),Yt=Ke(p),Fo=Math.max(Ie,Yt),co=10**Fo;if(!cP(q)&&(typeof q!="number"||Number.isNaN(q)))le=qu(U,m,f);else if(f!==void 0){let nr=(Math.round(Number(q)*co)+Math.round(p*co))/co;le=nr<=f?nr:f}else le=(Math.round(Number(q)*co)+Math.round(p*co))/co;let wt=le.toFixed(Fo);ae(parseFloat(wt)),c?.({floatValue:parseFloat(wt),formattedValue:wt,value:wt},{source:"increment"}),setTimeout(()=>Pe(se.current?.value.length),0)};let Tt=(0,hf.useRef)(Kl);Tt.current=()=>{if(!lP(q))return;let le,Ie=m!==void 0?m:X?Number.MIN_SAFE_INTEGER:0,Yt=Ke(q),Fo=Ke(p),co=Math.max(Yt,Fo),wt=10**co;if(!cP(q)&&typeof q!="number"||Number.isNaN(q))le=qu(U,Ie,f);else{let va=(Math.round(Number(q)*wt)-Math.round(p*wt))/wt;le=Ie!==void 0&&va<Ie?Ie:va}let nr=le.toFixed(co);ae(parseFloat(nr)),c?.({floatValue:parseFloat(nr),formattedValue:nr,value:nr},{source:"decrement"}),setTimeout(()=>Pe(se.current?.value.length),0)};let zr=le=>{I?.(le),!(N||!O)&&(le.key==="ArrowUp"&&(le.preventDefault(),Et.current()),le.key==="ArrowDown"&&(le.preventDefault(),Tt.current()))},de=le=>{if(k?.(le),le.key==="Backspace"){let Ie=se.current;Ie.selectionStart===0&&Ie.selectionStart===Ie.selectionEnd&&(le.preventDefault(),window.setTimeout(()=>Pe(0),0))}},ce=le=>{let Ie=q;g==="blur"&&typeof Ie=="number"&&(Ie=qu(Ie,m,f)),Z&&typeof Ie=="string"&&Ke(Ie)<15&&(Ie=Gee(Ie,f,m)),q!==Ie&&ae(Ie),x?.(le)};Ql(C,{increment:Et.current,decrement:Tt.current});let xe=le=>{le?Et.current():Tt.current(),ze.current+=1},Ce=le=>{if(xe(le),ye){let Ie=typeof T=="number"?T:T(ze.current);ke.current=window.setTimeout(()=>Ce(le),Ie)}},Be=(le,Ie)=>{le.preventDefault(),se.current?.focus(),xe(Ie),ye&&(ke.current=window.setTimeout(()=>Ce(Ie),M))},Re=()=>{ke.current&&window.clearTimeout(ke.current),ke.current=null,ze.current=0},He=(0,nl.jsxs)("div",{...te("controls"),children:[(0,nl.jsx)(dr,{...te("control"),tabIndex:-1,"aria-hidden":!0,disabled:H||typeof q=="number"&&f!==void 0&&q>=f,mod:{direction:"up"},onMouseDown:le=>le.preventDefault(),onPointerDown:le=>{Be(le,!0)},onPointerUp:Re,onPointerLeave:Re,children:(0,nl.jsx)(sP,{direction:"up"})}),(0,nl.jsx)(dr,{...te("control"),tabIndex:-1,"aria-hidden":!0,disabled:H||typeof q=="number"&&m!==void 0&&q<=m,mod:{direction:"down"},onMouseDown:le=>le.preventDefault(),onPointerDown:le=>{Be(le,!1)},onPointerUp:Re,onPointerLeave:Re,children:(0,nl.jsx)(sP,{direction:"down"})})]});return(0,nl.jsx)(Ft,{component:g8,allowNegative:X,className:Me(m_.root,n),size:A,...Y,readOnly:N,disabled:H,value:q,getInputRef:Le(t,se),onValueChange:Ve,rightSection:h||N||!lP(q)?y:y||He,classNames:ve,styles:ge,unstyled:a,__staticSelector:"NumberInput",decimalScale:_?w:0,onKeyDown:zr,onKeyDownCapture:de,rightSectionPointerEvents:W??(H?"none":void 0),rightSectionWidth:B??`var(--ni-right-section-width-${A||"sm"})`,allowLeadingZeros:$,onBlur:ce,isAllowed:le=>g==="strict"?v?v(le)&&v8(le.floatValue,m,f):v8(le.floatValue,m,f):v?v(le):!0})});Mh.classes={...Ft.classes,...m_};Mh.displayName="@mantine/core/NumberInput";var gf=b(R(),1);var MNe=b(S(),1);var uP=b(R(),1),x8=({reveal:e})=>(0,uP.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,uP.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var p_={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};var Xee={visibilityToggleIcon:x8},Qee=(e,{size:t})=>({root:{"--psi-icon-size":pe(t,"psi-icon-size"),"--psi-button-size":pe(t,"psi-button-size")}}),Nc=V((e,t)=>{let r=E("PasswordInput",Xee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,required:c,error:u,leftSection:d,disabled:f,id:m,variant:p,inputContainer:h,description:y,label:v,size:g,errorProps:x,descriptionProps:_,labelProps:w,withAsterisk:I,inputWrapperOrder:k,wrapperProps:C,radius:U,rightSection:H,rightSectionWidth:W,rightSectionPointerEvents:X,leftSectionWidth:N,visible:A,defaultVisible:B,onVisibilityChange:T,visibilityToggleIcon:M,visibilityToggleButtonProps:$,rightSectionProps:O,leftSectionProps:Z,leftSectionPointerEvents:Y,withErrorStyles:te,mod:ve,...ge}=r,q=tt(m),[ae,ye]=Qe({value:A,defaultValue:B,finalValue:!1,onChange:T}),se=()=>ye(!ae),ke=J({name:"PasswordInput",classes:p_,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:Qee}),{resolvedClassNames:ze,resolvedStyles:Ve}=Lo({classNames:n,styles:a,props:r}),{styleProps:Ke,rest:Pe}=Ir(ge),Et=M,Tt=x?.id||`${q}-error`,zr=_?.id||`${q}-description`,xe=`${!!u&&typeof u!="boolean"?Tt:""} ${!!y?zr:""}`,Ce=xe.trim().length>0?xe.trim():void 0,Be=(0,gf.jsx)(Gd,{...ke("visibilityToggle"),disabled:f,radius:U,"aria-hidden":!$,tabIndex:-1,...$,variant:$?.variant??"subtle",color:"gray",unstyled:s,onTouchEnd:Re=>{Re.preventDefault(),$?.onTouchEnd?.(Re),se()},onMouseDown:Re=>{Re.preventDefault(),$?.onMouseDown?.(Re),se()},onKeyDown:Re=>{$?.onKeyDown?.(Re),Re.key===" "&&(Re.preventDefault(),se())},children:(0,gf.jsx)(Et,{reveal:ae})});return(0,gf.jsx)(et.Wrapper,{required:c,id:q,label:v,error:u,description:y,size:g,classNames:ze,styles:Ve,__staticSelector:"PasswordInput",unstyled:s,withAsterisk:I,inputWrapperOrder:k,inputContainer:h,variant:p,labelProps:{...w,htmlFor:q},descriptionProps:{..._,id:zr},errorProps:{...x,id:Tt},mod:ve,...ke("root"),...Ke,...C,children:(0,gf.jsx)(et,{component:"div",error:u,leftSection:d,size:g,classNames:{...ze,input:Me(p_.input,ze.input)},styles:Ve,radius:U,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:W,rightSection:H??Be,variant:p,unstyled:s,leftSectionWidth:N,rightSectionPointerEvents:X||"all",rightSectionProps:O,leftSectionProps:Z,leftSectionPointerEvents:Y,withAria:!1,withErrorStyles:te,children:(0,gf.jsx)("input",{required:c,"data-invalid":!!u||void 0,"data-with-left-section":!!d||void 0,...ke("innerInput"),disabled:f,id:q,ref:t,...Pe,"aria-describedby":Ce,autoComplete:Pe.autoComplete||"off",type:ae?"text":"password"})})})});Nc.classes={...Ft.classes,...p_};Nc.displayName="@mantine/core/PasswordInput";var vf=b(R(),1);var YBe=b(S(),1);var fP=b(R(),1),uBe=b(S(),1);var YNe=b(S(),1),eBe=b(R(),1);var[b8,h_]=Gr();var nBe=b(S(),1),iBe=b(R(),1);var[y8,_8]=Gr();var dP={card:"m_9dc8ae12"};var Jee={withBorder:!0},Yee=(e,{radius:t})=>({card:{"--card-radius":De(t)}}),g_=V((e,t)=>{let r=E("RadioCard",Jee,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,checked:c,mod:u,withBorder:d,value:f,onClick:m,name:p,onKeyDown:h,...y}=r,v=J({name:"RadioCard",classes:dP,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:Yee,rootSelector:"card"}),{dir:g}=Ei(),x=h_(),_=typeof c=="boolean"?c:x?.value===f||!1,w=p||x?.name,I=k=>{if(h?.(k),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(k.nativeEvent.code)){k.preventDefault();let C=Array.from(document.querySelectorAll(`[role="radio"][name="${w||"__mantine"}"]`)),U=C.findIndex(X=>X===k.target),H=U+1>=C.length?0:U+1,W=U-1<0?C.length-1:U-1;k.nativeEvent.code==="ArrowDown"&&(C[H].focus(),C[H].click()),k.nativeEvent.code==="ArrowUp"&&(C[W].focus(),C[W].click()),k.nativeEvent.code==="ArrowLeft"&&(C[g==="ltr"?W:H].focus(),C[g==="ltr"?W:H].click()),k.nativeEvent.code==="ArrowRight"&&(C[g==="ltr"?H:W].focus(),C[g==="ltr"?H:W].click())}};return(0,fP.jsx)(y8,{value:{checked:_},children:(0,fP.jsx)(dr,{ref:t,mod:[{"with-border":d,checked:_},u],...v("card"),...y,role:"radio","aria-checked":_,name:w,onClick:k=>{m?.(k),x?.onChange(f||"")},onKeyDown:I})})});g_.displayName="@mantine/core/RadioCard";g_.classes=dP;var v_=b(R(),1);var wBe=b(S(),1);var ete={},x_=V((e,t)=>{let{value:r,defaultValue:n,onChange:o,size:i,wrapperProps:a,children:s,name:l,readOnly:c,...u}=E("RadioGroup",ete,e),d=tt(l),[f,m]=Qe({value:r,defaultValue:n,finalValue:"",onChange:o});return(0,v_.jsx)(b8,{value:{value:f,onChange:h=>!c&&m(typeof h=="string"?h:h.currentTarget.value),size:i,name:d},children:(0,v_.jsx)(et.Wrapper,{size:i,ref:t,...a,...u,labelElement:"div",__staticSelector:"RadioGroup",children:(0,v_.jsx)(of,{role:"radiogroup",children:s})})})});x_.classes=et.Wrapper.classes;x_.displayName="@mantine/core/RadioGroup";var mP=b(R(),1);var TBe=b(S(),1);function b_({size:e,style:t,...r}){return(0,mP.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:j(e),height:j(e),...t},"aria-hidden":!0,...r,children:(0,mP.jsx)("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}var hP=b(R(),1),FBe=b(S(),1);var pP={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};var tte={icon:b_},rte=(e,{radius:t,color:r,size:n,iconColor:o,variant:i,autoContrast:a})=>{let s=Fr({color:r||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--radio-size":pe(n,"radio-size"),"--radio-radius":t===void 0?void 0:De(t),"--radio-color":i==="outline"?l:je(r,e),"--radio-icon-size":pe(n,"radio-icon-size"),"--radio-icon-color":o?je(o,e):Is(a,e)?ri({color:r,theme:e,autoContrast:a}):void 0}}},y_=V((e,t)=>{let r=E("RadioIndicator",tte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,icon:c,radius:u,color:d,iconColor:f,autoContrast:m,checked:p,mod:h,variant:y,disabled:v,...g}=r,x=c,_=J({name:"RadioIndicator",classes:pP,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:rte,rootSelector:"indicator"}),w=_8(),I=typeof p=="boolean"?p:w?.checked||!1;return(0,hP.jsx)(L,{ref:t,..._("indicator",{variant:y}),variant:y,mod:[{checked:I,disabled:v},h],...g,children:(0,hP.jsx)(x,{..._("icon")})})});y_.displayName="@mantine/core/RadioIndicator";y_.classes=pP;var gP={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};var ote={labelPosition:"right"},nte=(e,{size:t,radius:r,color:n,iconColor:o,variant:i,autoContrast:a})=>{let s=Fr({color:n||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--radio-size":pe(t,"radio-size"),"--radio-radius":r===void 0?void 0:De(r),"--radio-color":i==="outline"?l:je(n,e),"--radio-icon-color":o?je(o,e):Is(a,e)?ri({color:n,theme:e,autoContrast:a}):void 0,"--radio-icon-size":pe(t,"radio-icon-size")}}},Va=V((e,t)=>{let r=E("Radio",ote,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,id:c,size:u,label:d,labelPosition:f,description:m,error:p,radius:h,color:y,variant:v,disabled:g,wrapperProps:x,icon:_=b_,rootRef:w,iconColor:I,onChange:k,mod:C,...U}=r,H=J({name:"Radio",classes:gP,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:nte}),W=h_(),X=W?.size??u,N=r.size?u:X,{styleProps:A,rest:B}=Ir(U),T=tt(c),M=W?{checked:W.value===B.value,name:B.name??W.name,onChange:$=>{W.onChange($),k?.($)}}:{};return(0,vf.jsx)(Oc,{...H("root"),__staticSelector:"Radio",__stylesApiProps:r,id:T,size:N,labelPosition:f,label:d,description:m,error:p,disabled:g,classNames:n,styles:a,unstyled:s,"data-checked":M.checked||void 0,variant:v,ref:w,mod:C,...A,...x,children:(0,vf.jsxs)(L,{...H("inner"),mod:{"label-position":f},children:[(0,vf.jsx)(L,{...H("radio",{focusable:!0,variant:v}),onChange:k,...B,...M,component:"input",mod:{error:!!p},ref:t,id:T,disabled:g,type:"radio"}),(0,vf.jsx)(_,{...H("icon"),"aria-hidden":!0})]})})});Va.classes=gP;Va.displayName="@mantine/core/Radio";Va.Group=x_;Va.Card=g_;Va.Indicator=y_;var Ha=b(R(),1),k_=b(S(),1);var ite={duration:100,transition:"fade"};function I8(e,t){return{...ite,...t,...e}}var Bc=b(R(),1),S8=b(S(),1);var il=b(S(),1);function w8({offset:e,position:t,defaultOpened:r}){let[n,o]=(0,il.useState)(r),i=(0,il.useRef)(null),{x:a,y:s,elements:l,refs:c,update:u,placement:d}=Ld({placement:t,middleware:[wc({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,m=d.includes("bottom")?e:t.includes("top")?e*-1:0,p=(0,il.useCallback)(({clientX:h,clientY:y})=>{c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:h,y,left:h+f,top:y+m,right:h,bottom:y}}})},[l.reference]);return(0,il.useEffect)(()=>{if(c.floating.current){let h=i.current;h.addEventListener("mousemove",p);let y=vo(c.floating.current);return y.forEach(v=>{v.addEventListener("scroll",u)}),()=>{h.removeEventListener("mousemove",p),y.forEach(v=>{v.removeEventListener("scroll",u)})}}},[l.reference,c.floating.current,u,p,n]),{handleMouseMove:p,x:a,y:s,opened:n,setOpened:o,boundaryRef:i,floating:c.setFloating}}var xf={tooltip:"m_1b3c8819",arrow:"m_f898399f"};var ate={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:Ot("popover")},ste=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:De(t),"--tooltip-bg":r?je(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),__=V((e,t)=>{let r=E("TooltipFloating",ate,e),{children:n,refProp:o,withinPortal:i,style:a,className:s,classNames:l,styles:c,unstyled:u,radius:d,color:f,label:m,offset:p,position:h,multiline:y,zIndex:v,disabled:g,defaultOpened:x,variant:_,vars:w,portalProps:I,...k}=r,C=lt(),U=J({name:"TooltipFloating",props:r,classes:xf,className:s,style:a,classNames:l,styles:c,unstyled:u,rootSelector:"tooltip",vars:w,varsResolver:ste}),{handleMouseMove:H,x:W,y:X,opened:N,boundaryRef:A,floating:B,setOpened:T}=w8({offset:p,position:h,defaultOpened:x});if(!Bo(n))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");let M=Le(A,xs(n),t),$=n.props,O=Y=>{$.onMouseEnter?.(Y),H(Y),T(!0)},Z=Y=>{$.onMouseLeave?.(Y),T(!1)};return(0,Bc.jsxs)(Bc.Fragment,{children:[(0,Bc.jsx)(qo,{...I,withinPortal:i,children:(0,Bc.jsx)(L,{...k,...U("tooltip",{style:{...mp(a,C),zIndex:v,display:!g&&N?"block":"none",top:(X&&Math.round(X))??"",left:(W&&Math.round(W))??""}}),variant:_,ref:B,mod:{multiline:y},children:m})}),(0,S8.cloneElement)(n,{...$,[o]:M,onMouseEnter:O,onMouseLeave:Z})]})});__.classes=xf;__.displayName="@mantine/core/TooltipFloating";var vP=b(R(),1);var ULe=b(S(),1);var I_=b(S(),1),k8=(0,I_.createContext)(!1),C8=k8.Provider,P8=()=>(0,I_.useContext)(k8);var lte={openDelay:0,closeDelay:0};function w_(e){let{openDelay:t,closeDelay:r,children:n}=E("TooltipGroup",lte,e);return(0,vP.jsx)(C8,{value:!0,children:(0,vP.jsx)(KB,{delay:{open:t,close:r},children:n})})}w_.displayName="@mantine/core/TooltipGroup";w_.extend=e=>e;var S_=b(S(),1);function cte(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function ute(e){let t=cte(e.middlewares),r=[Nd(e.offset)];return t.shift&&r.push(wc(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&r.push(typeof t.flip=="boolean"?Sc():Sc(t.flip)),r.push(mh({element:e.arrowRef,padding:e.arrowOffset})),t.inline?r.push(typeof t.inline=="boolean"?qs():qs(t.inline)):e.inline&&r.push(qs()),r}function $8(e){let[t,r]=(0,S_.useState)(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:t,i=P8(),a=tt(),s=(0,S_.useCallback)(I=>{r(I),I&&g(a)},[a]),{x:l,y:c,context:u,refs:d,update:f,placement:m,middlewareData:{arrow:{x:p,y:h}={}}}=Ld({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:ute(e)}),{delay:y,currentId:v,setCurrentId:g}=GB(u,{id:a}),{getReferenceProps:x,getFloatingProps:_}=JB([ZB(u,{enabled:e.events?.hover,delay:i?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),QB(u,{enabled:e.events?.focus,visibleOnly:!0}),YB(u,{role:"tooltip"}),XB(u,{enabled:typeof e.opened>"u"})]);wy({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:d,update:f}}),Ar(()=>{e.onPositionChange?.(m)},[m]);let w=o&&v&&v!==a;return{x:l,y:c,arrowX:p,arrowY:h,reference:d.setReference,floating:d.setFloating,getFloatingProps:_,getReferenceProps:x,isGroupPhase:w,opened:o,placement:m}}var R8={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Ot("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},dte=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:De(t),"--tooltip-bg":r?je(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),Lc=V((e,t)=>{let r=E("Tooltip",R8,e),{children:n,position:o,refProp:i,label:a,openDelay:s,closeDelay:l,onPositionChange:c,opened:u,defaultOpened:d,withinPortal:f,radius:m,color:p,classNames:h,styles:y,unstyled:v,style:g,className:x,withArrow:_,arrowSize:w,arrowOffset:I,arrowRadius:k,arrowPosition:C,offset:U,transitionProps:H,multiline:W,events:X,zIndex:N,disabled:A,positionDependencies:B,onClick:T,onMouseEnter:M,onMouseLeave:$,inline:O,variant:Z,keepMounted:Y,vars:te,portalProps:ve,mod:ge,floatingStrategy:q,middlewares:ae,...ye}=E("Tooltip",R8,r),{dir:se}=Ei(),ke=(0,k_.useRef)(null),ze=$8({position:gy(se,o),closeDelay:l,openDelay:s,onPositionChange:c,opened:u,defaultOpened:d,events:X,arrowRef:ke,arrowOffset:I,offset:typeof U=="number"?U+(_?w/2:0):U,positionDependencies:[...B,n],inline:O,strategy:q,middlewares:ae}),Ve=J({name:"Tooltip",props:r,classes:xf,className:x,style:g,classNames:h,styles:y,unstyled:v,rootSelector:"tooltip",vars:te,varsResolver:dte});if(!Bo(n))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");let Ke=Le(ze.reference,xs(n),t),Pe=I8(H,{duration:100,transition:"fade"}),Et=n.props;return(0,Ha.jsxs)(Ha.Fragment,{children:[(0,Ha.jsx)(qo,{...ve,withinPortal:f,children:(0,Ha.jsx)(xo,{...Pe,keepMounted:Y,mounted:!A&&!!ze.opened,duration:ze.isGroupPhase?10:Pe.duration,children:Tt=>(0,Ha.jsxs)(L,{...ye,"data-fixed":q==="fixed"||void 0,variant:Z,mod:[{multiline:W},ge],...ze.getFloatingProps({ref:ze.floating,className:Ve("tooltip").className,style:{...Ve("tooltip").style,...Tt,zIndex:N,top:ze.y??0,left:ze.x??0}}),children:[a,(0,Ha.jsx)(gh,{ref:ke,arrowX:ze.arrowX,arrowY:ze.arrowY,visible:_,position:ze.placement,arrowSize:w,arrowOffset:I,arrowRadius:k,arrowPosition:C,...Ve("arrow")})]})})}),(0,k_.cloneElement)(n,ze.getReferenceProps({onClick:T,onMouseEnter:M,onMouseLeave:$,onMouseMove:r.onMouseMove,onPointerDown:r.onPointerDown,onPointerEnter:r.onPointerEnter,className:Me(x,Et.className),...Et,[i]:Ke}))]})});Lc.classes=xf;Lc.displayName="@mantine/core/Tooltip";Lc.Floating=__;Lc.Group=w_;var jh=b(R(),1),al=b(S(),1);var xP={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};var fte={withItemsBorders:!0},mte=(e,{radius:t,color:r,transitionDuration:n,size:o,transitionTimingFunction:i})=>({root:{"--sc-radius":t===void 0?void 0:De(t),"--sc-color":r?je(r,e):void 0,"--sc-shadow":r?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":n===void 0?void 0:`${n}ms`,"--sc-transition-timing-function":i,"--sc-padding":pe(o,"sc-padding"),"--sc-font-size":st(o)}}),Uh=V((e,t)=>{let r=E("SegmentedControl",fte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,data:c,value:u,defaultValue:d,onChange:f,size:m,name:p,disabled:h,readOnly:y,fullWidth:v,orientation:g,radius:x,color:_,transitionDuration:w,transitionTimingFunction:I,variant:k,autoContrast:C,withItemsBorders:U,mod:H,...W}=r,X=J({name:"SegmentedControl",props:r,classes:xP,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:mte}),N=lt(),A=c.map(se=>typeof se=="string"?{label:se,value:se}:se),B=BS(),[T,M]=(0,al.useState)(Xr()),[$,O]=(0,al.useState)(null),[Z,Y]=(0,al.useState)({}),te=(se,ke)=>{Z[ke]=se,Y(Z)},[ve,ge]=Qe({value:u,defaultValue:d,finalValue:Array.isArray(c)?A.find(se=>!se.disabled)?.value??c[0]?.value??null:null,onChange:f}),q=tt(p),ae=A.map(se=>(0,al.createElement)(L,{...X("control"),mod:{active:ve===se.value,orientation:g},key:se.value},(0,al.createElement)("input",{...X("input"),disabled:h||se.disabled,type:"radio",name:q,value:se.value,id:`${q}-${se.value}`,checked:ve===se.value,onChange:()=>!y&&ge(se.value),"data-focus-ring":N.focusRing,key:`${se.value}-input`}),(0,al.createElement)(L,{component:"label",...X("label"),mod:{active:ve===se.value&&!(h||se.disabled),disabled:h||se.disabled,"read-only":y},htmlFor:`${q}-${se.value}`,ref:ke=>te(ke,se.value),__vars:{"--sc-label-color":_!==void 0?ri({color:_,theme:N,autoContrast:C}):void 0},key:`${se.value}-label`},(0,jh.jsx)("span",{...X("innerLabel"),children:se.label})))),ye=Le(t,se=>O(se));return OS(()=>{M(Xr())},[c.length]),c.length===0?null:(0,jh.jsxs)(L,{...X("root"),variant:k,size:m,ref:ye,mod:[{"full-width":v,orientation:g,initialized:B,"with-items-borders":U},H],...W,role:"radiogroup","data-disabled":h,children:[typeof ve=="string"&&(0,jh.jsx)(Ty,{target:Z[ve],parent:$,component:"span",transitionDuration:"var(--sc-transition-duration)",...X("indicator")},T),ae]})});Uh.classes=xP;Uh.displayName="@mantine/core/SegmentedControl";var Mn=b(R(),1),Mc=b(S(),1);var pte={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},sl=V((e,t)=>{let r=E("Select",pte,e),{classNames:n,styles:o,unstyled:i,vars:a,dropdownOpened:s,defaultDropdownOpened:l,onDropdownClose:c,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:m,onChange:p,data:h,value:y,defaultValue:v,selectFirstOptionOnChange:g,onOptionSubmit:x,comboboxProps:_,readOnly:w,disabled:I,filter:k,limit:C,withScrollArea:U,maxDropdownHeight:H,size:W,searchable:X,rightSection:N,checkIconPosition:A,withCheckIcon:B,nothingFoundMessage:T,name:M,form:$,searchValue:O,defaultSearchValue:Z,onSearchChange:Y,allowDeselect:te,error:ve,rightSectionPointerEvents:ge,id:q,clearable:ae,clearButtonProps:ye,hiddenInputProps:se,renderOption:ke,onClear:ze,autoComplete:Ve,scrollAreaProps:Ke,__defaultRightSection:Pe,__clearSection:Et,__clearable:Tt,chevronColor:zr,...de}=r,ce=(0,Mc.useMemo)(()=>tf(h),[h]),xe=(0,Mc.useMemo)(()=>Tc(ce),[ce]),Ce=tt(q),[Be,Re,He]=Qe({value:y,defaultValue:v,finalValue:null,onChange:p}),le=typeof Be=="string"?xe[Be]:void 0,Ie=FS(le),[Yt,Fo,co]=Qe({value:O,defaultValue:Z,finalValue:le?le.label:"",onChange:Y}),wt=Ys({opened:s,defaultOpened:l,onDropdownOpen:()=>{u?.(),wt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),wt.resetSelectedOption()}}),nr=ir=>{Fo(ir),wt.resetSelectedOption()},{resolvedClassNames:va,resolvedStyles:Nu}=Lo({props:r,styles:o,classNames:n});(0,Mc.useEffect)(()=>{g&&wt.selectFirstOption()},[g,Yt]),(0,Mc.useEffect)(()=>{y===null&&nr(""),typeof y=="string"&&le&&(Ie?.value!==le.value||Ie?.label!==le.label)&&nr(le.label)},[y,le]),(0,Mc.useEffect)(()=>{!He&&!co&&nr(typeof Be=="string"&&xe[Be]?.label||"")},[h,Be]);let Bu=(0,Mn.jsx)(Oe.ClearButton,{...ye,onClear:()=>{Re(null,null),nr(""),ze?.()}}),Lu=ae&&!!Be&&!I&&!w;return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsxs)(Oe,{store:wt,__staticSelector:"Select",classNames:va,styles:Nu,unstyled:i,readOnly:w,onOptionSubmit:ir=>{x?.(ir);let ps=te&&xe[ir].value===Be?null:xe[ir],hs=ps?ps.value:null;hs!==Be&&Re(hs,ps),!He&&nr(typeof hs=="string"&&ps?.label||""),wt.closeDropdown()},size:W,..._,children:[(0,Mn.jsx)(Oe.Target,{targetType:X?"input":"button",autoComplete:Ve,children:(0,Mn.jsx)(Ft,{id:Ce,ref:t,__defaultRightSection:(0,Mn.jsx)(Oe.Chevron,{size:W,error:ve,unstyled:i,color:zr}),__clearSection:Bu,__clearable:Lu,rightSection:N,rightSectionPointerEvents:ge||(Lu?"all":"none"),...de,size:W,__staticSelector:"Select",disabled:I,readOnly:w||!X,value:Yt,onChange:ir=>{nr(ir.currentTarget.value),wt.openDropdown(),g&&wt.selectFirstOption()},onFocus:ir=>{X&&wt.openDropdown(),d?.(ir)},onBlur:ir=>{X&&wt.closeDropdown(),nr(Be!=null&&xe[Be]?.label||""),f?.(ir)},onClick:ir=>{X?wt.openDropdown():wt.toggleDropdown(),m?.(ir)},classNames:va,styles:Nu,unstyled:i,pointer:!X,error:ve})}),(0,Mn.jsx)(sf,{data:ce,hidden:w||I,filter:k,search:Yt,limit:C,hiddenWhenEmpty:!T,withScrollArea:U,maxDropdownHeight:H,filterOptions:X&&le?.label!==Yt,value:Be,checkIconPosition:A,withCheckIcon:B,nothingFoundMessage:T,unstyled:i,labelId:de.label?`${Ce}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:ke,scrollAreaProps:Ke})]}),(0,Mn.jsx)(Oe.HiddenInput,{value:Be,name:M,form:$,disabled:I,...se})]})});sl.classes={...Ft.classes,...Oe.classes};sl.displayName="@mantine/core/Select";var jn=b(R(),1),n3e=b(S(),1);var yP=b(R(),1);var GMe=b(S(),1);function D8({spacing:e,verticalSpacing:t,cols:r,selector:n}){let o=lt(),i=t===void 0?e:t,a=ba({"--sg-spacing-x":kt(Gl(e)),"--sg-spacing-y":kt(Gl(i)),"--sg-cols":Gl(r)?.toString()}),s=Je(o.breakpoints).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=kt(e[d])),typeof i=="object"&&i[d]!==void 0&&(u[d]["--sg-spacing-y"]=kt(i[d])),typeof r=="object"&&r[d]!==void 0&&(u[d]["--sg-cols"]=r[d]),u),{}),c=ep(Je(s),o.breakpoints).filter(u=>Je(s[u.value]).length>0).map(u=>({query:`(min-width: ${o.breakpoints[u.value]})`,styles:s[u.value]}));return(0,yP.jsx)(rc,{styles:a,media:c,selector:n})}function bP(e){return typeof e=="object"&&e!==null?Je(e):[]}function hte(e){return e.sort((t,r)=>vs(t)-vs(r))}function gte({spacing:e,verticalSpacing:t,cols:r}){let n=Array.from(new Set([...bP(e),...bP(t),...bP(r)]));return hte(n)}function E8({spacing:e,verticalSpacing:t,cols:r,selector:n}){let o=t===void 0?e:t,i=ba({"--sg-spacing-x":kt(Gl(e)),"--sg-spacing-y":kt(Gl(o)),"--sg-cols":Gl(r)?.toString()}),a=gte({spacing:e,verticalSpacing:t,cols:r}),s=a.reduce((c,u)=>(c[u]||(c[u]={}),typeof e=="object"&&e[u]!==void 0&&(c[u]["--sg-spacing-x"]=kt(e[u])),typeof o=="object"&&o[u]!==void 0&&(c[u]["--sg-spacing-y"]=kt(o[u])),typeof r=="object"&&r[u]!==void 0&&(c[u]["--sg-cols"]=r[u]),c),{}),l=a.map(c=>({query:`simple-grid (min-width: ${c})`,styles:s[c]}));return(0,yP.jsx)(rc,{styles:i,container:l,selector:n})}var _P={container:"m_925c2d2c",root:"m_2415a157"};var vte={cols:1,spacing:"md",type:"media"},Vh=V((e,t)=>{let r=E("SimpleGrid",vte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,cols:c,verticalSpacing:u,spacing:d,type:f,...m}=r,p=J({name:"SimpleGrid",classes:_P,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l}),h=Ix();return f==="container"?(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)(E8,{...r,selector:`.${h}`}),(0,jn.jsx)("div",{...p("container"),children:(0,jn.jsx)(L,{ref:t,...p("root",{className:h}),...m})})]}):(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)(D8,{...r,selector:`.${h}`}),(0,jn.jsx)(L,{ref:t,...p("root",{className:h}),...m})]})});Vh.classes=_P;Vh.displayName="@mantine/core/SimpleGrid";var T8=b(R(),1),h3e=b(S(),1);var IP={root:"m_6d731127"};var xte={gap:"md",align:"stretch",justify:"flex-start"},bte=(e,{gap:t,align:r,justify:n})=>({root:{"--stack-gap":kt(t),"--stack-align":r,"--stack-justify":n}}),fr=V((e,t)=>{let r=E("Stack",xte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,align:c,justify:u,gap:d,variant:f,...m}=r,p=J({name:"Stack",props:r,classes:IP,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:bte});return(0,T8.jsx)(L,{ref:t,...p("root"),variant:f,...m})});fr.classes=IP;fr.displayName="@mantine/core/Stack";var jc=b(R(),1);var F3e=b(S(),1);var C_=b(S(),1),O8=(0,C_.createContext)(null),z8=O8.Provider,A8=()=>(0,C_.useContext)(O8);var P_=b(R(),1);var C3e=b(S(),1);var yte={},$_=V((e,t)=>{let{value:r,defaultValue:n,onChange:o,size:i,wrapperProps:a,children:s,readOnly:l,...c}=E("SwitchGroup",yte,e),[u,d]=Qe({value:r,defaultValue:n,finalValue:[],onChange:o});return(0,P_.jsx)(z8,{value:{value:u,onChange:m=>{let p=m.currentTarget.value;!l&&d(u.includes(p)?u.filter(h=>h!==p):[...u,p])},size:i},children:(0,P_.jsx)(et.Wrapper,{size:i,ref:t,...a,...c,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,P_.jsx)(of,{role:"group",children:s})})})});$_.classes=et.Wrapper.classes;$_.displayName="@mantine/core/SwitchGroup";var wP={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};var _te={labelPosition:"right"},Ite=(e,{radius:t,color:r,size:n})=>({root:{"--switch-radius":t===void 0?void 0:De(t),"--switch-height":pe(n,"switch-height"),"--switch-width":pe(n,"switch-width"),"--switch-thumb-size":pe(n,"switch-thumb-size"),"--switch-label-font-size":pe(n,"switch-label-font-size"),"--switch-track-label-padding":pe(n,"switch-track-label-padding"),"--switch-color":r?je(r,e):void 0}}),bf=V((e,t)=>{let r=E("Switch",_te,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,color:c,label:u,offLabel:d,onLabel:f,id:m,size:p,radius:h,wrapperProps:y,thumbIcon:v,checked:g,defaultChecked:x,onChange:_,labelPosition:w,description:I,error:k,disabled:C,variant:U,rootRef:H,mod:W,...X}=r,N=A8(),A=p||N?.size,B=J({name:"Switch",props:r,classes:wP,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:Ite}),{styleProps:T,rest:M}=Ir(X),$=tt(m),O=N?{checked:N.value.includes(M.value),onChange:N.onChange}:{},[Z,Y]=Qe({value:O.checked??g,defaultValue:x,finalValue:!1});return(0,jc.jsxs)(Oc,{...B("root"),__staticSelector:"Switch",__stylesApiProps:r,id:$,size:A,labelPosition:w,label:u,description:I,error:k,disabled:C,bodyElement:"label",labelElement:"span",classNames:n,styles:a,unstyled:s,"data-checked":O.checked||g||void 0,variant:U,ref:H,mod:W,...T,...y,children:[(0,jc.jsx)("input",{...M,disabled:C,checked:Z,"data-checked":O.checked||g||void 0,onChange:te=>{N?O.onChange?.(te):_?.(te),Y(te.currentTarget.checked)},id:$,ref:t,type:"checkbox",role:"switch",...B("input")}),(0,jc.jsxs)(L,{"aria-hidden":"true",component:"span",mod:{error:k,"label-position":w,"without-labels":!f&&!d},...B("track"),children:[(0,jc.jsx)(L,{component:"span",mod:"reduce-motion",...B("thumb"),children:v}),(0,jc.jsx)("span",{...B("trackLabel"),children:Z?f:d})]})]})});bf.classes={...wP,...Xy};bf.displayName="@mantine/core/Switch";bf.Group=$_;var F_=b(R(),1);var w8e=b(S(),1);var B8=b(R(),1),r8e=b(S(),1);var X3e=b(S(),1);var J3e=b(R(),1);var[F8,N8]=_r("Table component was not found in the tree");var ll={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function wte(e,t){if(!t)return;let r={};return t.columnBorder&&e.withColumnBorders&&(r["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(r["data-with-row-border"]=!0),t.striped&&e.striped&&(r["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(r["data-hover"]=!0),t.captionSide&&e.captionSide&&(r["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(r["data-sticky"]=!0),r}function Uc(e,t){let r=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,n=V((o,i)=>{let a=E(r,{},o),{classNames:s,className:l,style:c,styles:u,...d}=a,f=N8();return(0,B8.jsx)(L,{component:e,ref:i,...wte(f,t),...f.getStyles(e,{className:l,classNames:s,style:c,styles:u,props:a}),...d})});return n.displayName=`@mantine/core/${r}`,n.classes=ll,n}var Hh=Uc("th",{columnBorder:!0}),R_=Uc("td",{columnBorder:!0}),yf=Uc("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D_=Uc("thead",{stickyHeader:!0}),E_=Uc("tbody"),T_=Uc("tfoot"),O_=Uc("caption",{captionSide:!0});var wo=b(R(),1);function z_({data:e}){return(0,wo.jsxs)(wo.Fragment,{children:[e.caption&&(0,wo.jsx)(O_,{children:e.caption}),e.head&&(0,wo.jsx)(D_,{children:(0,wo.jsx)(yf,{children:e.head.map((t,r)=>(0,wo.jsx)(Hh,{children:t},r))})}),e.body&&(0,wo.jsx)(E_,{children:e.body.map((t,r)=>(0,wo.jsx)(yf,{children:t.map((n,o)=>(0,wo.jsx)(R_,{children:n},o))},r))}),e.foot&&(0,wo.jsx)(T_,{children:(0,wo.jsx)(yf,{children:e.foot.map((t,r)=>(0,wo.jsx)(Hh,{children:t},r))})})]})}z_.displayName="@mantine/core/TableDataRenderer";var SP=b(R(),1);var m8e=b(S(),1);var Ste={type:"scrollarea"},kte=(e,{minWidth:t,maxHeight:r,type:n})=>({scrollContainer:{"--table-min-width":j(t),"--table-max-height":j(r),"--table-overflow":n==="native"?"auto":void 0}}),A_=V((e,t)=>{let r=E("TableScrollContainer",Ste,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,children:c,minWidth:u,maxHeight:d,type:f,scrollAreaProps:m,...p}=r,h=J({name:"TableScrollContainer",classes:ll,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:kte,rootSelector:"scrollContainer"});return(0,SP.jsx)(L,{component:f==="scrollarea"?Wi:"div",...f==="scrollarea"?d?{offsetScrollbars:"xy",...m}:{offsetScrollbars:"x",...m}:{},ref:t,...h("scrollContainer"),...p,children:(0,SP.jsx)("div",{...h("scrollContainerInner"),children:c})})});A_.classes=ll;A_.displayName="@mantine/core/TableScrollContainer";var Cte={withRowBorders:!0,verticalSpacing:7},Pte=(e,{layout:t,captionSide:r,horizontalSpacing:n,verticalSpacing:o,borderColor:i,stripedColor:a,highlightOnHoverColor:s,striped:l,highlightOnHover:c,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":r,"--table-horizontal-spacing":kt(n),"--table-vertical-spacing":kt(o),"--table-border-color":i?je(i,e):void 0,"--table-striped-color":l&&a?je(a,e):void 0,"--table-highlight-on-hover-color":c&&s?je(s,e):void 0,"--table-sticky-header-offset":d?j(u):void 0}}),Wt=V((e,t)=>{let r=E("Table",Cte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:f,highlightOnHoverColor:m,striped:p,highlightOnHover:h,withColumnBorders:y,withRowBorders:v,withTableBorder:g,borderColor:x,layout:_,variant:w,data:I,children:k,stickyHeader:C,stickyHeaderOffset:U,mod:H,tabularNums:W,...X}=r,N=J({name:"Table",props:r,className:o,style:i,classes:ll,classNames:n,styles:a,unstyled:s,rootSelector:"table",vars:l,varsResolver:Pte});return(0,F_.jsx)(F8,{value:{getStyles:N,stickyHeader:C,striped:p===!0?"odd":p||void 0,highlightOnHover:h,withColumnBorders:y,withRowBorders:v,captionSide:d||"bottom"},children:(0,F_.jsx)(L,{component:"table",variant:w,ref:t,mod:[{"data-with-table-border":g,"data-tabular-nums":W},H],...N("table"),...X,children:k||!!I&&(0,F_.jsx)(z_,{data:I})})})});Wt.classes=ll;Wt.displayName="@mantine/core/Table";Wt.Td=R_;Wt.Th=Hh;Wt.Tr=yf;Wt.Thead=D_;Wt.Tbody=E_;Wt.Tfoot=T_;Wt.Caption=O_;Wt.ScrollContainer=A_;Wt.DataRenderer=z_;var So=b(R(),1),N_=b(S(),1);var N8e=b(R(),1);var L8e=b(S(),1);function L8({data:e,value:t}){let r=t.map(o=>o.trim().toLowerCase());return e.reduce((o,i)=>(Bn(i)?o.push({group:i.group,items:i.items.filter(a=>r.indexOf(a.label.toLowerCase().trim())===-1)}):r.indexOf(i.label.toLowerCase().trim())===-1&&o.push(i),o),[])}function $te(e,t){return e?t.split(new RegExp(`[${e.join("")}]`)).map(r=>r.trim()).filter(r=>r!==""):[t]}function kP({splitChars:e,allowDuplicates:t,maxTags:r,value:n,currentTags:o}){let i=$te(e,n),a=t?[...o,...i]:[...new Set([...o,...i])];return r?a.slice(0,r):a}var Rte={maxTags:1/0,allowDuplicates:!1,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:","},Wh=V((e,t)=>{let r=E("TagsInput",Rte,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,size:c,value:u,defaultValue:d,onChange:f,onKeyDown:m,maxTags:p,allowDuplicates:h,onDuplicate:y,variant:v,data:g,dropdownOpened:x,defaultDropdownOpened:_,onDropdownOpen:w,onDropdownClose:I,selectFirstOptionOnChange:k,onOptionSubmit:C,comboboxProps:U,filter:H,limit:W,withScrollArea:X,maxDropdownHeight:N,searchValue:A,defaultSearchValue:B,onSearchChange:T,readOnly:M,disabled:$,splitChars:O,onFocus:Z,onBlur:Y,onPaste:te,radius:ve,rightSection:ge,rightSectionWidth:q,rightSectionPointerEvents:ae,rightSectionProps:ye,leftSection:se,leftSectionWidth:ke,leftSectionPointerEvents:ze,leftSectionProps:Ve,inputContainer:Ke,inputWrapperOrder:Pe,withAsterisk:Et,required:Tt,labelProps:zr,descriptionProps:de,errorProps:ce,wrapperProps:xe,description:Ce,label:Be,error:Re,withErrorStyles:He,name:le,form:Ie,id:Yt,clearable:Fo,clearButtonProps:co,hiddenInputProps:wt,hiddenInputValuesDivider:nr,mod:va,renderOption:Nu,onRemove:Bu,onClear:Lu,scrollAreaProps:ir,acceptValueOnBlur:ps,...hs}=r,Vm=tt(Yt),Hm=tf(g),Wm=Tc(Hm),Mu=(0,N_.useRef)(null),gs=Le(Mu,t),Mt=Ys({opened:x,defaultOpened:_,onDropdownOpen:w,onDropdownClose:()=>{I?.(),Mt.resetSelectedOption()}}),{styleProps:tS,rest:{type:Cq,autoComplete:rS,...oS}}=Ir(hs),[Ge,on]=Qe({value:u,defaultValue:d,finalValue:[],onChange:f}),[In,nS]=Qe({value:A,defaultValue:B,finalValue:"",onChange:T}),Yn=be=>{nS(be),Mt.resetSelectedOption()},Vl=J({name:"TagsInput",classes:{},props:r,classNames:n,styles:a,unstyled:s}),{resolvedClassNames:Zm,resolvedStyles:qm}=Lo({props:r,styles:a,classNames:n}),Uv=be=>{let uo=Ge.some(Ci=>Ci.toLowerCase()===be.toLowerCase());uo&&y?.(be),(!uo||uo&&h)&&Ge.length<p&&(C?.(be),Yn(""),be.length>0&&on([...Ge,be]))},iS=be=>{if(m?.(be),be.isPropagationStopped())return;let uo=In.trim(),{length:Ci}=uo;if(O.includes(be.key)&&Ci>0&&(on(kP({splitChars:O,allowDuplicates:h,maxTags:p,value:In,currentTags:Ge})),Yn(""),be.preventDefault()),be.key==="Enter"&&Ci>0&&!be.nativeEvent.isComposing){if(be.preventDefault(),!!document.querySelector(`#${Mt.listId} [data-combobox-option][data-combobox-selected]`))return;Uv(uo)}be.key==="Backspace"&&Ci===0&&Ge.length>0&&!be.nativeEvent.isComposing&&(Bu?.(Ge[Ge.length-1]),on(Ge.slice(0,Ge.length-1)))},Vv=be=>{if(te?.(be),be.preventDefault(),be.clipboardData){let uo=be.clipboardData.getData("text/plain");on(kP({splitChars:O,allowDuplicates:h,maxTags:p,value:`${In}${uo}`,currentTags:Ge})),Yn("")}},aS=Ge.map((be,uo)=>(0,So.jsx)(ja,{withRemoveButton:!M,onRemove:()=>{let Ci=Ge.slice();Ci.splice(uo,1),on(Ci),Bu?.(be)},unstyled:s,disabled:$,...Vl("pill"),children:be},`${be}-${uo}`));(0,N_.useEffect)(()=>{k&&Mt.selectFirstOption()},[k,Ge,In]);let Hv=(0,So.jsx)(Oe.ClearButton,{...co,onClear:()=>{on([]),Yn(""),Mu.current?.focus(),Mt.openDropdown(),Lu?.()}});return(0,So.jsxs)(So.Fragment,{children:[(0,So.jsxs)(Oe,{store:Mt,classNames:Zm,styles:qm,unstyled:s,size:c,readOnly:M,__staticSelector:"TagsInput",onOptionSubmit:be=>{C?.(be),Yn(""),Ge.length<p&&on([...Ge,Wm[be].label]),Mt.resetSelectedOption()},...U,children:[(0,So.jsx)(Oe.DropdownTarget,{children:(0,So.jsx)(tl,{...tS,__staticSelector:"TagsInput",classNames:Zm,styles:qm,unstyled:s,size:c,className:o,style:i,variant:v,disabled:$,radius:ve,rightSection:ge,__clearSection:Hv,__clearable:Fo&&Ge.length>0&&!$&&!M,rightSectionWidth:q,rightSectionPointerEvents:ae,rightSectionProps:ye,leftSection:se,leftSectionWidth:ke,leftSectionPointerEvents:ze,leftSectionProps:Ve,inputContainer:Ke,inputWrapperOrder:Pe,withAsterisk:Et,required:Tt,labelProps:zr,descriptionProps:de,errorProps:ce,wrapperProps:xe,description:Ce,label:Be,error:Re,withErrorStyles:He,__stylesApiProps:{...r,multiline:!0},id:Vm,mod:va,children:(0,So.jsxs)(ja.Group,{disabled:$,unstyled:s,...Vl("pillsList"),children:[aS,(0,So.jsx)(Oe.EventsTarget,{autoComplete:rS,children:(0,So.jsx)(tl.Field,{...oS,ref:gs,...Vl("inputField"),unstyled:s,onKeyDown:iS,onFocus:be=>{Z?.(be),Mt.openDropdown()},onBlur:be=>{Y?.(be),ps&&Uv(In),Mt.closeDropdown()},onPaste:Vv,value:In,onChange:be=>Yn(be.currentTarget.value),required:Tt&&Ge.length===0,disabled:$,readOnly:M,id:Vm})})]})})}),(0,So.jsx)(sf,{data:L8({data:Hm,value:Ge}),hidden:M||$,filter:H,search:In,limit:W,hiddenWhenEmpty:!0,withScrollArea:X,maxDropdownHeight:N,unstyled:s,labelId:Be?`${Vm}-label`:void 0,"aria-label":Be?void 0:hs["aria-label"],renderOption:Nu,scrollAreaProps:ir})]}),(0,So.jsx)(Oe.HiddenInput,{name:le,form:Ie,value:Ge,valuesDivider:nr,disabled:$,...wt})]})});Wh.classes={...Ft.classes,...Oe.classes};Wh.displayName="@mantine/core/TagsInput";var M8=b(R(),1),s7e=b(S(),1);var Dte={},Yi=V((e,t)=>{let r=E("TextInput",Dte,e);return(0,M8.jsx)(Ft,{component:"input",ref:t,...r,__staticSelector:"TextInput"})});Yi.classes=Ft.classes;Yi.displayName="@mantine/core/TextInput";var U8=b(R(),1),b7e=b(S(),1);var p7e=b(S(),1),h7e=b(R(),1);var Ete=["h1","h2","h3","h4","h5","h6"],Tte=["xs","sm","md","lg","xl"];function j8(e,t){let r=t!==void 0?t:`h${e}`;return Ete.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:Tte.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:j(r),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var CP={root:"m_8a5d1357"};var Ote={order:1},zte=(e,{order:t,size:r,lineClamp:n,textWrap:o})=>{let i=j8(t,r);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof n=="number"?n.toString():void 0,"--title-text-wrap":o}}},Wa=V((e,t)=>{let r=E("Title",Ote,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,order:l,vars:c,size:u,variant:d,lineClamp:f,textWrap:m,mod:p,...h}=r,y=J({name:"Title",props:r,classes:CP,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:c,varsResolver:zte});return[1,2,3,4,5,6].includes(l)?(0,U8.jsx)(L,{...y("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":typeof f=="number"},p],size:u,...h}):null});Wa.classes=CP;Wa.displayName="@mantine/core/Title";var _f=b(R(),1),Un=b(S(),1);var Za=b(R(),1);var H8=b(S(),1);var V8=b(S(),1),Zh=(0,V8.createContext)(null);Zh.displayName="@mantine/modals/ModalsContext";function W8(){let e=(0,H8.useContext)(Zh);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}function Z8({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:a,onCancel:s,onConfirm:l,children:c}){let{cancel:u,confirm:d}=n,f=W8(),m=h=>{typeof t?.onClick=="function"&&t?.onClick(h),typeof s=="function"&&s(),i&&f.closeModal(e)},p=h=>{typeof r?.onClick=="function"&&r?.onClick(h),typeof l=="function"&&l(),o&&f.closeModal(e)};return(0,Za.jsxs)(Za.Fragment,{children:[c&&(0,Za.jsx)(L,{mb:"md",children:c}),(0,Za.jsxs)(At,{mt:c?0:"md",justify:"flex-end",...a,children:[(0,Za.jsx)(bt,{variant:"default",...t,onClick:m,children:t?.children||u}),(0,Za.jsx)(bt,{...r,onClick:p,children:r?.children||d})]})]})}var[q8,Vc]=LS("mantine-modals"),K8=e=>{let t=e.modalId||Xr();return Vc("openModal")({...e,modalId:t}),t},G8=e=>{let t=e.modalId||Xr();return Vc("openConfirmModal")({...e,modalId:t}),t},X8=e=>{let t=e.modalId||Xr();return Vc("openContextModal")({...e,modalId:t}),t},Q8=Vc("closeModal"),J8=Vc("closeAllModals"),Y8=e=>Vc("updateModal")(e),e7=e=>Vc("updateContextModal")(e),ea={open:K8,close:Q8,closeAll:J8,openConfirmModal:G8,openContextModal:X8,updateModal:Y8,updateContextModal:e7};function t7(e,t){t&&e.type==="confirm"&&e.props.onCancel?.(),e.props.onClose?.()}function r7(e,t){switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{let r=e.modals.find(o=>o.id===t.modalId);if(!r)return e;t7(r,t.canceled);let n=e.modals.filter(o=>o.id!==t.modalId);return{current:n[n.length-1]||e.current,modals:n}}case"CLOSE_ALL":return e.modals.length?(e.modals.concat().reverse().forEach(r=>{t7(r,t.canceled)}),{current:e.current,modals:[]}):e;case"UPDATE":{let{modalId:r,newProps:n}=t,o=e.modals.map(a=>a.id!==r?a:a.type==="content"||a.type==="confirm"?{...a,props:{...a.props,...n}}:a.type==="context"?{...a,props:{...a.props,...n,innerProps:{...a.props.innerProps,...n.innerProps}}}:a),i=e.current?.id===r&&o.find(a=>a.id===r)||e.current;return{...e,modals:o,current:i}}default:return e}}function Ate(e){if(!e)return{confirmProps:{},modalProps:{}};let{id:t,children:r,onCancel:n,onConfirm:o,closeOnConfirm:i,closeOnCancel:a,cancelProps:s,confirmProps:l,groupProps:c,labels:u,...d}=e;return{confirmProps:{id:t,children:r,onCancel:n,onConfirm:o,closeOnConfirm:i,closeOnCancel:a,cancelProps:s,confirmProps:l,groupProps:c,labels:u},modalProps:{id:t,...d}}}function PP({children:e,modalProps:t,labels:r,modals:n}){let[o,i]=(0,Un.useReducer)(r7,{modals:[],current:null}),a=(0,Un.useRef)(o);a.current=o;let s=(0,Un.useCallback)(g=>{i({type:"CLOSE_ALL",canceled:g})},[a,i]),l=(0,Un.useCallback)(({modalId:g,...x})=>{let _=g||Xr();return i({type:"OPEN",modal:{id:_,type:"content",props:x}}),_},[i]),c=(0,Un.useCallback)(({modalId:g,...x})=>{let _=g||Xr();return i({type:"OPEN",modal:{id:_,type:"confirm",props:x}}),_},[i]),u=(0,Un.useCallback)((g,{modalId:x,..._})=>{let w=x||Xr();return i({type:"OPEN",modal:{id:w,type:"context",props:_,ctx:g}}),w},[i]),d=(0,Un.useCallback)((g,x)=>{i({type:"CLOSE",modalId:g,canceled:x})},[a,i]),f=(0,Un.useCallback)(({modalId:g,...x})=>{i({type:"UPDATE",modalId:g,newProps:x})},[i]),m=(0,Un.useCallback)(({modalId:g,...x})=>{i({type:"UPDATE",modalId:g,newProps:x})},[i]);q8({openModal:l,openConfirmModal:c,openContextModal:({modal:g,...x})=>u(g,x),closeModal:d,closeContextModal:d,closeAllModals:s,updateModal:f,updateContextModal:m});let p={modalProps:t||{},modals:o.modals,openModal:l,openConfirmModal:c,openContextModal:u,closeModal:d,closeContextModal:d,closeAll:s,updateModal:f,updateContextModal:m},h=()=>{let g=a.current.current;switch(g?.type){case"context":{let{innerProps:x,..._}=g.props,w=n[g.ctx];return{modalProps:_,content:(0,_f.jsx)(w,{innerProps:x,context:p,id:g.id})}}case"confirm":{let{modalProps:x,confirmProps:_}=Ate(g.props);return{modalProps:x,content:(0,_f.jsx)(Z8,{..._,id:g.id,labels:g.props.labels||r})}}case"content":{let{children:x,..._}=g.props;return{modalProps:_,content:x}}default:return{modalProps:{},content:null}}},{modalProps:y,content:v}=h();return(0,_f.jsxs)(Zh.Provider,{value:p,children:[(0,_f.jsx)(pn,{zIndex:Ot("modal")+1,...t,...y,opened:o.modals.length>0,onClose:()=>d(o.current?.id),children:v}),e]})}var o7=b(S(),1);function $P(e){let t=e,r=!1,n=new Set;return{getState(){return t},updateState(o){t=typeof o=="function"?o(t):o},setState(o){this.updateState(o),n.forEach(i=>i(t))},initialize(o){r||(t=o,r=!0)},subscribe(o){return n.add(o),()=>n.delete(o)}}}function RP(e){return(0,o7.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}function Fte(e,t,r){let n=[],o=[],i={};for(let a of e){let s=a.position||t;i[s]=i[s]||0,i[s]+=1,i[s]<=r?o.push(a):n.push(a)}return{notifications:o,queue:n}}var n7=()=>$P({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),qa=n7(),DP=(e=qa)=>RP(e);function Hc(e,t){let r=e.getState(),n=t([...r.notifications,...r.queue]),o=Fte(n,r.defaultPosition,r.limit);e.setState({notifications:o.notifications,queue:o.queue,limit:r.limit,defaultPosition:r.defaultPosition})}function i7(e,t=qa){let r=e.id||Xr();return Hc(t,n=>e.id&&n.some(o=>o.id===e.id)?n:[...n,{...e,id:r}]),r}function B_(e,t=qa){return Hc(t,r=>r.filter(n=>n.id===e?(n.onClose?.(n),!1):!0)),e}function a7(e,t=qa){return Hc(t,r=>r.map(n=>n.id===e.id?{...n,...e}:n)),e.id}function s7(e=qa){Hc(e,()=>[])}function l7(e=qa){Hc(e,t=>t.slice(0,e.getState().limit))}var Ur={show:i7,hide:B_,update:a7,clean:s7,cleanQueue:l7,updateState:Hc};var Vr=b(R(),1),Qh=b(S(),1);function L_(e,t){return L_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},L_(e,t)}function M_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L_(e,t)}var qh=b(S()),Kh=b(Hs());var EP={disabled:!1};var c7=b(S()),If=c7.default.createContext(null);var u7=function(t){return t.scrollTop};var Gh="unmounted",Wc="exited",Zc="entering",Sf="entered",TP="exiting",Ka=(function(e){M_(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=Wc,i.appearStatus=Zc):l=Sf:n.unmountOnExit||n.mountOnEnter?l=Gh:l=Wc,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Gh?{status:Wc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Zc&&a!==Sf&&(i=Zc):(a===Zc||a===Sf)&&(i=TP)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Zc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Kh.default.findDOMNode(this);a&&u7(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wc&&this.setState({status:Gh})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Kh.default.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||EP.disabled){this.safeSetState({status:Sf},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zc},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Sf},function(){i.props.onEntered(c,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Kh.default.findDOMNode(this);if(!i||EP.disabled){this.safeSetState({status:Wc},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:TP},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Wc},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Kh.default.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Gh)return null;var i=this.props,a=i.children,s=i.in,l=i.mountOnEnter,c=i.unmountOnExit,u=i.appear,d=i.enter,f=i.exit,m=i.timeout,p=i.addEndListener,h=i.onEnter,y=i.onEntering,v=i.onEntered,g=i.onExit,x=i.onExiting,_=i.onExited,w=i.nodeRef,I=df(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return qh.default.createElement(If.Provider,{value:null},typeof a=="function"?a(o,I):qh.default.cloneElement(qh.default.Children.only(a),I))},t})(qh.default.Component);Ka.contextType=If;Ka.propTypes={};function wf(){}Ka.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wf,onEntering:wf,onEntered:wf,onExit:wf,onExiting:wf,onExited:wf};Ka.UNMOUNTED=Gh;Ka.EXITED=Wc;Ka.ENTERING=Zc;Ka.ENTERED=Sf;Ka.EXITING=TP;var OP=Ka;function d7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Xh=b(S());var Vn=b(S());function j_(e,t){var r=function(i){return t&&(0,Vn.isValidElement)(i)?t(i):i},n=Object.create(null);return e&&Vn.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Nte(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function qc(e,t,r){return r[t]!=null?r[t]:e.props[t]}function f7(e,t){return j_(e.children,function(r){return(0,Vn.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:qc(r,"appear",e),enter:qc(r,"enter",e),exit:qc(r,"exit",e)})})}function m7(e,t,r){var n=j_(e.children),o=Nte(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if((0,Vn.isValidElement)(a)){var s=i in t,l=i in n,c=t[i],u=(0,Vn.isValidElement)(c)&&!c.props.in;l&&(!s||u)?o[i]=(0,Vn.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:qc(a,"exit",e),enter:qc(a,"enter",e)}):!l&&s&&!u?o[i]=(0,Vn.cloneElement)(a,{in:!1}):l&&s&&(0,Vn.isValidElement)(c)&&(o[i]=(0,Vn.cloneElement)(a,{onExited:r.bind(null,a),in:c.props.in,exit:qc(a,"exit",e),enter:qc(a,"enter",e)}))}}),o}var Bte=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Lte={component:"div",childFactory:function(t){return t}},zP=(function(e){M_(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(d7(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?f7(o,s):m7(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=j_(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=uf({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=df(o,["component","childFactory"]),l=this.state.contextValue,c=Bte(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Xh.default.createElement(If.Provider,{value:l},c):Xh.default.createElement(If.Provider,{value:l},Xh.default.createElement(i,s,c))},t})(Xh.default.Component);zP.propTypes={};zP.defaultProps=Lte;var cl=zP;var AP=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function p7(e,t){return e.reduce((r,n)=>(r[n.position||t].push(n),r),AP.reduce((r,n)=>(r[n]=[],r),{}))}var h7={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},Mte={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function g7({state:e,maxHeight:t,position:r,transitionDuration:n}){let[o,i]=r.split("-"),a=i==="center"?`${o}-center`:i,s={opacity:0,maxHeight:t,transform:h7[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:Mte[a]},c={opacity:0,maxHeight:0,transform:h7[a]};return{...s,...{entering:l,entered:l,exiting:c,exited:c}[e]}}var x7=b(R(),1),Kc=b(S(),1);function v7(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}var FP=(0,Kc.forwardRef)(({data:e,onHide:t,autoClose:r,...n},o)=>{let{autoClose:i,message:a,...s}=e,l=v7(r,e.autoClose),c=(0,Kc.useRef)(-1),u=()=>window.clearTimeout(c.current),d=()=>{t(e.id),u()},f=()=>{typeof l=="number"&&(c.current=window.setTimeout(d,l))};return(0,Kc.useEffect)(()=>{e.onOpen?.(e)},[]),(0,Kc.useEffect)(()=>(f(),u),[l]),(0,x7.jsx)(Bh,{...n,...s,onClose:d,ref:o,onMouseEnter:u,onMouseLeave:f,children:a})});FP.displayName="@mantine/notifications/NotificationContainer";var NP={root:"m_b37d9ac7",notification:"m_5ed0edd0"};var jte=OP,Ute={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:Ot("overlay"),store:qa,withinPortal:!0},Vte=(e,{zIndex:t,containerWidth:r})=>({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":j(r)}}),gi=V((e,t)=>{let r=E("Notifications",Ute,e),{classNames:n,className:o,style:i,styles:a,unstyled:s,vars:l,position:c,autoClose:u,transitionDuration:d,containerWidth:f,notificationMaxHeight:m,limit:p,zIndex:h,store:y,portalProps:v,withinPortal:g,...x}=r,_=lt(),w=DP(y),I=TS(),k=_a(),C=(0,Qh.useRef)({}),U=(0,Qh.useRef)(0),W=(_.respectReducedMotion?k:!1)?1:d,X=J({name:"Notifications",classes:NP,props:r,className:o,style:i,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:Vte});(0,Qh.useEffect)(()=>{y?.updateState(B=>({...B,limit:p||5,defaultPosition:c}))},[p,c]),Ar(()=>{w.notifications.length>U.current&&setTimeout(()=>I(),0),U.current=w.notifications.length},[w.notifications]);let N=p7(w.notifications,c),A=AP.reduce((B,T)=>(B[T]=N[T].map(({style:M,...$})=>(0,Vr.jsx)(jte,{timeout:W,onEnter:()=>C.current[$.id].offsetHeight,nodeRef:{current:C.current[$.id]},children:O=>(0,Vr.jsx)(FP,{ref:Z=>{C.current[$.id]=Z},data:$,onHide:Z=>B_(Z,y),autoClose:u,...X("notification",{style:{...g7({state:O,position:T,transitionDuration:W,maxHeight:m}),...M}})})},$.id)),B),{});return(0,Vr.jsxs)(qo,{withinPortal:g,...v,children:[(0,Vr.jsx)(L,{...X("root"),"data-position":"top-center",ref:t,...x,children:(0,Vr.jsx)(cl,{children:A["top-center"]})}),(0,Vr.jsx)(L,{...X("root"),"data-position":"top-left",...x,children:(0,Vr.jsx)(cl,{children:A["top-left"]})}),(0,Vr.jsx)(L,{...X("root",{className:ei.classNames.fullWidth}),"data-position":"top-right",...x,children:(0,Vr.jsx)(cl,{children:A["top-right"]})}),(0,Vr.jsx)(L,{...X("root",{className:ei.classNames.fullWidth}),"data-position":"bottom-right",...x,children:(0,Vr.jsx)(cl,{children:A["bottom-right"]})}),(0,Vr.jsx)(L,{...X("root"),"data-position":"bottom-left",...x,children:(0,Vr.jsx)(cl,{children:A["bottom-left"]})}),(0,Vr.jsx)(L,{...X("root"),"data-position":"bottom-center",...x,children:(0,Vr.jsx)(cl,{children:A["bottom-center"]})})]})});gi.classes=NP;gi.displayName="@mantine/notifications/Notifications";gi.show=Ur.show;gi.hide=Ur.hide;gi.update=Ur.update;gi.clean=Ur.clean;gi.cleanQueue=Ur.cleanQueue;gi.updateState=Ur.updateState;var kf=b(S(),1),b7=b(R(),1),BP=kf.createContext(void 0),Cf=e=>{let t=kf.useContext(BP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LP=({client:e,children:t})=>(kf.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,b7.jsx)(BP.Provider,{value:e,children:t}));var Hte={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ul,MP,y7,Wte=(y7=class{constructor(){_e(this,ul,Hte);_e(this,MP,!1)}setTimeoutProvider(e){ue(this,ul,e)}setTimeout(e,t){return D(this,ul).setTimeout(e,t)}clearTimeout(e){D(this,ul).clearTimeout(e)}setInterval(e,t){return D(this,ul).setInterval(e,t)}clearInterval(e){D(this,ul).clearInterval(e)}},ul=new WeakMap,MP=new WeakMap,y7),ta=new Wte;function _7(e){setTimeout(e,0)}var UP=typeof window>"u"||"Deno"in globalThis;function tr(){}function S7(e,t){return typeof e=="function"?e(t):e}function U_(e){return typeof e=="number"&&e>=0&&e!==1/0}function V_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ht(e,t){return typeof e=="function"?e(t):e}function H_(e,t){let{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==Jh(a,t.options))return!1}else if(!dl(t.queryKey,a))return!1}if(r!=="all"){let l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function W_(e,t){let{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Gc(t.options.mutationKey)!==Gc(i))return!1}else if(!dl(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Jh(e,t){return(t?.queryKeyHashFn||Gc)(e)}function Gc(e){return JSON.stringify(e,(t,r)=>jP(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function dl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!dl(e[n],t[n]))return!1;return!0}let r=Object.keys(t);for(let n of r)if(!dl(e[n],t[n]))return!1;return!0}return!1}var Zte=Object.prototype.hasOwnProperty;function VP(e,t,r=0){if(e===t)return e;if(r>500)return t;let n=I7(e)&&I7(t);if(!n&&!(jP(e)&&jP(t)))return t;let o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{},l=0;for(let c=0;c<a;c++){let u=n?c:i[c],d=e[u],f=t[u];if(d===f){s[u]=d,(n?c<o:Zte.call(e,u))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){s[u]=f;continue}let m=VP(d,f,r+1);s[u]=m,m===d&&l++}return o===a&&l===o?e:s}function Z_(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function I7(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jP(e){if(!w7(e))return!1;let t=Object.getPrototypeOf(e),r=t?.constructor;if(r===void 0)return!0;if(typeof r!="function")return!1;let n=r.prototype;return!(!w7(n)||!n.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function w7(e){return Object.prototype.toString.call(e)==="[object Object]"}function k7(e){return new Promise(t=>{ta.setTimeout(t,e)})}function Yh(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?VP(e,t):t}function C7(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function P7(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Pf=Symbol();function q_(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Pf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function K_(e,t){return typeof e=="function"?e(...t):!!e}function $7(e,t,r){let n=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var qte=()=>UP,$f=()=>qte();var ra=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Xc,fl,Rf,R7,Kte=(R7=class extends ra{constructor(){super();_e(this,Xc);_e(this,fl);_e(this,Rf);ue(this,Rf,t=>{if(typeof window<"u"&&window.addEventListener){let r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){D(this,fl)||this.setEventListener(D(this,Rf))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,fl))==null||t.call(this),ue(this,fl,void 0))}setEventListener(t){var r;ue(this,Rf,t),(r=D(this,fl))==null||r.call(this),ue(this,fl,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){D(this,Xc)!==t&&(ue(this,Xc,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof D(this,Xc)=="boolean"?D(this,Xc):globalThis.document?.visibilityState!=="hidden"}},Xc=new WeakMap,fl=new WeakMap,Rf=new WeakMap,R7),Df=new Kte;var D7=_7;function Gte(){let e=[],t=0,r=s=>{s()},n=s=>{s()},o=D7,i=s=>{t?e.push(s):o(()=>{r(s)})},a=()=>{let s=e;e=[],s.length&&o(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{o=s}}}var Rt=Gte();var Ef,ml,Tf,E7,Xte=(E7=class extends ra{constructor(){super();_e(this,Ef,!0);_e(this,ml);_e(this,Tf);ue(this,Tf,t=>{if(typeof window<"u"&&window.addEventListener){let r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){D(this,ml)||this.setEventListener(D(this,Tf))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,ml))==null||t.call(this),ue(this,ml,void 0))}setEventListener(t){var r;ue(this,Tf,t),(r=D(this,ml))==null||r.call(this),ue(this,ml,t(this.setOnline.bind(this)))}setOnline(t){D(this,Ef)!==t&&(ue(this,Ef,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,Ef)}},Ef=new WeakMap,ml=new WeakMap,Tf=new WeakMap,E7),Of=new Xte;function Qte(e){return Math.min(1e3*2**e,3e4)}function HP(e){return(e??"online")==="online"?Of.isOnline():!0}var G_=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function X_(e){let t=!1,r=0,n,o="pending",i,a,s=new Promise((g,x)=>{i=g,a=x});s.catch(tr);let l=()=>o!=="pending",c=g=>{if(!l()){let x=new G_(g);h(x),e.onCancel?.(x)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Df.isFocused()&&(e.networkMode==="always"||Of.isOnline())&&e.canRun(),m=()=>HP(e.networkMode)&&e.canRun(),p=g=>{l()||(n?.(),o="resolved",i(g))},h=g=>{l()||(n?.(),o="rejected",a(g))},y=g=>new Promise(x=>{n=_=>{(l()||g())&&x(_)},e.onPause?.()}).then(()=>{n=void 0,l()||e.onContinue?.()}),v=()=>{if(l())return;let g,x=r===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(_){g=Promise.reject(_)}Promise.resolve(g).then(p).catch(_=>{if(l())return;let w=e.retry??($f()?0:3),I=e.retryDelay??Qte,k=typeof I=="function"?I(r,_):I,C=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,_);if(t||!C){h(_);return}r++,e.onFail?.(r,_),k7(k).then(()=>f()?void 0:y(f)).then(()=>{t?h(_):v()})})};return{promise:s,status:()=>o,cancel:c,continue:()=>(n?.(),s),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?v():y(m).then(v),s)}}var Qc,T7,Q_=(T7=class{constructor(){_e(this,Qc)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U_(this.gcTime)&&ue(this,Qc,ta.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??($f()?1/0:3e5))}clearGcTimeout(){D(this,Qc)!==void 0&&(ta.clearTimeout(D(this,Qc)),ue(this,Qc,void 0))}},Qc=new WeakMap,T7);function z7(e){return{onFetch:(t,r)=>{let n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,c=async()=>{let u=!1,d=p=>{$7(p,()=>t.signal,()=>u=!0)},f=q_(t.options,t.fetchOptions),m=async(p,h,y)=>{if(u)return Promise.reject(t.signal.reason);if(h==null&&p.pages.length)return Promise.resolve(p);let g=(()=>{let I={client:t.client,queryKey:t.queryKey,pageParam:h,direction:y?"backward":"forward",meta:t.options.meta};return d(I),I})(),x=await f(g),{maxPages:_}=t.options,w=y?P7:C7;return{pages:w(p.pages,x,_),pageParams:w(p.pageParams,h,_)}};if(o&&i.length){let p=o==="backward",h=p?Jte:O7,y={pages:i,pageParams:a};s=await m(y,h(n,y),p)}else{let p=e??i.length;do{let h=l===0?a[0]??n.initialPageParam:O7(n,s);if(l>0&&h==null)break;s=await m(s,h),l++}while(l<p)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function O7(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Jte(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var zf,Jc,Af,Hn,Yc,mr,eg,eu,vi,Ga,N7,B7=(N7=class extends Q_{constructor(t){super();_e(this,vi);_e(this,zf);_e(this,Jc);_e(this,Af);_e(this,Hn);_e(this,Yc);_e(this,mr);_e(this,eg);_e(this,eu);ue(this,eu,!1),ue(this,eg,t.defaultOptions),this.setOptions(t.options),this.observers=[],ue(this,Yc,t.client),ue(this,Hn,D(this,Yc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ue(this,Jc,F7(this.options)),this.state=t.state??D(this,Jc),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return D(this,zf)}get promise(){return D(this,mr)?.promise}setOptions(t){if(this.options={...D(this,eg),...t},t?._type&&ue(this,zf,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=F7(this.options);r.data!==void 0&&(this.setState(A7(r.data,r.dataUpdatedAt)),ue(this,Jc,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Hn).remove(this)}setData(t,r){let n=Yh(this.state.data,t,this.options);return We(this,vi,Ga).call(this,{data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(t){We(this,vi,Ga).call(this,{type:"setState",state:t})}cancel(t){let r=D(this,mr)?.promise;return D(this,mr)?.cancel(t),r?r.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(this,Jc)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ht(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!V_(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),D(this,mr)?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),D(this,mr)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Hn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let r=this.observers.indexOf(t);r!==-1&&(this.observers.splice(r,1),this.observers.length||(D(this,mr)&&(D(this,eu)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?D(this,mr).cancel({revert:!0}):D(this,mr).cancelRetry()),this.scheduleGc()),D(this,Hn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,vi,Ga).call(this,{type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&D(this,mr)?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(D(this,mr))return D(this,mr).continueRetry(),D(this,mr).promise}if(t&&this.setOptions(t),!this.options.queryFn){let c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}let n=new AbortController,o=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(ue(this,eu,!0),n.signal)})},i=()=>{let c=q_(this.options,r),d=(()=>{let f={client:D(this,Yc),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return ue(this,eu,!1),this.options.persister?this.options.persister(c,d,this):c(d)},s=(()=>{let c={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,Yc),state:this.state,fetchFn:i};return o(c),c})();(D(this,zf)==="infinite"?z7(this.options.pages):this.options.behavior)?.onFetch(s,this),ue(this,Af,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&We(this,vi,Ga).call(this,{type:"fetch",meta:s.fetchOptions?.meta});let l=ue(this,mr,X_({initialPromise:r?.initialPromise,fn:s.fetchFn,onCancel:c=>{c instanceof G_&&c.revert&&this.setState({...D(this,Af),fetchStatus:"idle"}),n.abort()},onFail:(c,u)=>{We(this,vi,Ga).call(this,{type:"failed",failureCount:c,error:u})},onPause:()=>{We(this,vi,Ga).call(this,{type:"pause"})},onContinue:()=>{We(this,vi,Ga).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{let c=await l.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),D(this,Hn).config.onSuccess?.(c,this),D(this,Hn).config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof G_){if(c.silent)return D(this,mr).promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw We(this,vi,Ga).call(this,{type:"error",error:c}),D(this,Hn).config.onError?.(c,this),D(this,Hn).config.onSettled?.(this.state.data,c,this),c}finally{D(this,mr)===l&&ue(this,mr,void 0),this.scheduleGc()}}},zf=new WeakMap,Jc=new WeakMap,Af=new WeakMap,Hn=new WeakMap,Yc=new WeakMap,mr=new WeakMap,eg=new WeakMap,eu=new WeakMap,vi=new WeakSet,Ga=function(t){let r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...WP(n.data,this.options),fetchMeta:t.meta??null};case"success":let o={...n,...A7(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ue(this,Af,t.manual?o:void 0),o;case"error":let i=t.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.slice().forEach(n=>{n.onQueryUpdate()}),D(this,Hn).notify({query:this,type:"updated",action:t})})},N7);function WP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:HP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function A7(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function F7(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ko,Xe,rg,Co,tu,Ff,Xa,og,Nf,Bf,ru,ou,pl,Lf,rt,tg,ZP,qP,KP,GP,XP,QP,JP,YP,j7,t$=(j7=class extends ra{constructor(t,r){super();_e(this,rt);_e(this,ko);_e(this,Xe);_e(this,rg);_e(this,Co);_e(this,tu);_e(this,Ff);_e(this,Xa);_e(this,og);_e(this,Nf);_e(this,Bf);_e(this,ru);_e(this,ou);_e(this,pl);_e(this,Lf,new Set);this.options=r,ue(this,ko,t),ue(this,Xa,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Xe).addObserver(this),L7(D(this,Xe),this.options)?We(this,rt,tg).call(this):this.updateResult(),We(this,rt,XP).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return e$(D(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return e$(D(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,rt,QP).call(this),We(this,rt,JP).call(this),D(this,Xe).removeObserver(this)}setOptions(t){let r=this.options,n=D(this,Xe);if(this.options=D(this,ko).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,D(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,rt,YP).call(this),D(this,Xe).setOptions(this.options),r._defaulted&&!Z_(this.options,r)&&D(this,ko).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Xe),observer:this});let o=this.hasListeners();o&&M7(D(this,Xe),n,this.options,r)&&We(this,rt,tg).call(this),this.updateResult(),o&&(D(this,Xe)!==n||ht(this.options.enabled,D(this,Xe))!==ht(r.enabled,D(this,Xe))||ht(this.options.staleTime,D(this,Xe))!==ht(r.staleTime,D(this,Xe)))&&We(this,rt,qP).call(this);let i=We(this,rt,KP).call(this);o&&(D(this,Xe)!==n||ht(this.options.enabled,D(this,Xe))!==ht(r.enabled,D(this,Xe))||i!==D(this,pl))&&We(this,rt,GP).call(this,i)}getOptimisticResult(t){let r=D(this,ko).getQueryCache().build(D(this,ko),t),n=this.createResult(r,t);return Z_(this.getCurrentResult(),n)||(ue(this,Co,n),ue(this,Ff,this.options),ue(this,tu,D(this,Xe).state)),n}getCurrentResult(){return D(this,Co)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r?.(o),Reflect.get(n,o))})}trackProp(t){D(this,Lf).add(t)}getCurrentQuery(){return D(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let r=D(this,ko).defaultQueryOptions(t),n=D(this,ko).getQueryCache().build(D(this,ko),r),o=()=>{},i,a=new Promise(s=>{i=s,o=D(this,ko).getQueryCache().subscribe(l=>{l.type==="updated"&&l.query.queryHash===n.queryHash&&n.state.data!==void 0&&(o(),s(this.createResult(n,r)))})});return Promise.race([n.fetch().then(()=>{let s=this.createResult(n,r);return i?.(s),s}).finally(()=>{o()}),a])}fetch(t){return We(this,rt,tg).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Co)))}createResult(t,r){let n=D(this,Xe),o=this.options,i=D(this,Co),a=D(this,tu),s=D(this,Ff),l=t!==n?t.state:D(this,rg),{state:c}=t,u={...c},d=!1,f;if(r._optimisticResults){let I=this.hasListeners(),k=!I&&L7(t,r),C=I&&M7(t,n,r,o);(k||C)&&(u={...u,...WP(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:h}=u;f=u.data;let y=!1;if(r.placeholderData!==void 0&&f===void 0&&h==="pending"){let I;i?.isPlaceholderData&&r.placeholderData===s?.placeholderData?(I=i.data,y=!0):I=typeof r.placeholderData=="function"?r.placeholderData(D(this,Bf)?.state.data,D(this,Bf)):r.placeholderData,I!==void 0&&(h="success",f=Yh(i?.data,I,r),d=!0)}if(r.select&&f!==void 0&&!y)if(i&&f===a?.data&&r.select===D(this,og))f=D(this,Nf);else try{ue(this,og,r.select),f=r.select(f),f=Yh(i?.data,f,r),ue(this,Nf,f),ue(this,Xa,null)}catch(I){ue(this,Xa,I)}else f===void 0&&ue(this,Xa,null);D(this,Xa)&&(m=D(this,Xa),f=D(this,Nf),p=Date.now(),h="error",d=!1);let v=u.fetchStatus==="fetching",g=h==="pending",x=h==="error",_=g&&v,w=f!==void 0;return{status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:h==="success",isError:x,isInitialLoading:_,isLoading:_,data:f,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:x&&!w,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&w,isStale:r$(t,r),refetch:this.refetch,isEnabled:ht(r.enabled,t)!==!1}}updateResult(){let t=D(this,Co),r=this.createResult(D(this,Xe),this.options);if(ue(this,tu,D(this,Xe).state),ue(this,Ff,this.options),D(this,tu).data!==void 0&&ue(this,Bf,D(this,Xe)),Z_(r,t))return;ue(this,Co,r);let o=(()=>{if(!t)return!0;let{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!D(this,Lf).size)return!0;let s=new Set(a??D(this,Lf));return this.options.throwOnError&&s.add("error"),Object.keys(D(this,Co)).some(l=>{let c=l;return D(this,Co)[c]!==t[c]&&s.has(c)})})();Rt.batch(()=>{o&&this.listeners.forEach(i=>{i(D(this,Co))}),D(this,ko).getQueryCache().notify({query:D(this,Xe),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,rt,XP).call(this)}},ko=new WeakMap,Xe=new WeakMap,rg=new WeakMap,Co=new WeakMap,tu=new WeakMap,Ff=new WeakMap,Xa=new WeakMap,og=new WeakMap,Nf=new WeakMap,Bf=new WeakMap,ru=new WeakMap,ou=new WeakMap,pl=new WeakMap,Lf=new WeakMap,rt=new WeakSet,tg=function(t){We(this,rt,YP).call(this);let r=D(this,Xe).fetch(this.options,t);return t?.throwOnError||(r=r.catch(tr)),r},ZP=function(t){return!$f()&&ht(this.options.enabled,D(this,Xe))!==!1&&U_(t)},qP=function(){We(this,rt,QP).call(this);let t=ht(this.options.staleTime,D(this,Xe));if(D(this,Co).isStale||!We(this,rt,ZP).call(this,t))return;let r=V_(D(this,Co).dataUpdatedAt,t)+1;ue(this,ru,ta.setTimeout(()=>{D(this,Co).isStale||this.updateResult()},r))},KP=function(){return ht(this.options.refetchInterval,D(this,Xe))??!1},GP=function(t){We(this,rt,JP).call(this),ue(this,pl,t),!(D(this,pl)===0||!We(this,rt,ZP).call(this,D(this,pl)))&&ue(this,ou,ta.setInterval(()=>{(this.options.refetchIntervalInBackground||Df.isFocused())&&We(this,rt,tg).call(this)},D(this,pl)))},XP=function(){We(this,rt,qP).call(this),We(this,rt,GP).call(this,We(this,rt,KP).call(this))},QP=function(){D(this,ru)!==void 0&&(ta.clearTimeout(D(this,ru)),ue(this,ru,void 0))},JP=function(){D(this,ou)!==void 0&&(ta.clearInterval(D(this,ou)),ue(this,ou,void 0))},YP=function(){let t=D(this,ko).getQueryCache().build(D(this,ko),this.options);if(t===D(this,Xe))return;let r=D(this,Xe);ue(this,Xe,t),ue(this,rg,t.state),this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))},j7);function Yte(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&ht(t.retryOnMount,e)===!1)}function L7(e,t){return Yte(e,t)||e.state.data!==void 0&&e$(e,t,t.refetchOnMount)}function e$(e,t,r){if(ht(t.enabled,e)!==!1&&ht(t.staleTime,e)!=="static"){let n=ht(r,e);return n==="always"||n!==!1&&r$(e,t)}return!1}function M7(e,t,r,n){return(e!==t||ht(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&r$(e,r)}function r$(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ht(t.staleTime,e))}var ng,oa,no,nu,na,hl,U7,V7=(U7=class extends Q_{constructor(t){super();_e(this,na);_e(this,ng);_e(this,oa);_e(this,no);_e(this,nu);ue(this,ng,t.client),this.mutationId=t.mutationId,ue(this,no,t.mutationCache),ue(this,oa,[]),this.state=t.state||ere(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,oa).includes(t)||(D(this,oa).push(t),this.clearGcTimeout(),D(this,no).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ue(this,oa,D(this,oa).filter(r=>r!==t)),this.scheduleGc(),D(this,no).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,oa).length||(this.state.status==="pending"?this.scheduleGc():D(this,no).remove(this))}continue(){return D(this,nu)?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){let r=()=>{We(this,na,hl).call(this,{type:"continue"})},n={client:D(this,ng),meta:this.options.meta,mutationKey:this.options.mutationKey},o=ue(this,nu,X_({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{We(this,na,hl).call(this,{type:"failed",failureCount:s,error:l})},onPause:()=>{We(this,na,hl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,no).canRun(this)})),i=this.state.status==="pending",a=!o.canStart();try{if(i)r();else{We(this,na,hl).call(this,{type:"pending",variables:t,isPaused:a}),D(this,no).config.onMutate&&await D(this,no).config.onMutate(t,this,n);let l=await this.options.onMutate?.(t,n);l!==this.state.context&&We(this,na,hl).call(this,{type:"pending",context:l,variables:t,isPaused:a})}let s=await o.start();return await D(this,no).config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,this.state.context,n),await D(this,no).config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,t,this.state.context,n),We(this,na,hl).call(this,{type:"success",data:s}),s}catch(s){try{await D(this,no).config.onError?.(s,t,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,t,this.state.context,n)}catch(l){Promise.reject(l)}try{await D(this,no).config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,n)}catch(l){Promise.reject(l)}throw We(this,na,hl).call(this,{type:"error",error:s}),s}finally{D(this,nu)===o&&ue(this,nu,void 0),D(this,no).runNext(this)}}},ng=new WeakMap,oa=new WeakMap,no=new WeakMap,nu=new WeakMap,na=new WeakSet,hl=function(t){let r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Rt.batch(()=>{D(this,oa).forEach(n=>{n.onMutationUpdate(t)}),D(this,no).notify({mutation:this,type:"updated",action:t})})},U7);function ere(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qa,xi,ig,H7,W7=(H7=class extends ra{constructor(t={}){super();_e(this,Qa);_e(this,xi);_e(this,ig);this.config=t,ue(this,Qa,new Set),ue(this,xi,new Map),ue(this,ig,0)}build(t,r,n){let o=new V7({client:t,mutationCache:this,mutationId:++Km(this,ig)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){D(this,Qa).add(t);let r=J_(t);if(typeof r=="string"){let n=D(this,xi).get(r);n?n.push(t):D(this,xi).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,Qa).delete(t)){let r=J_(t);if(typeof r=="string"){let n=D(this,xi).get(r);if(n)if(n.length>1){let o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&D(this,xi).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){let r=J_(t);if(typeof r=="string"){let n=D(this,xi).get(r)?.find(o=>o.state.status==="pending");return!n||n===t}else return!0}runNext(t){let r=J_(t);return typeof r=="string"?D(this,xi).get(r)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Rt.batch(()=>{D(this,Qa).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,Qa).clear(),D(this,xi).clear()})}getAll(){return Array.from(D(this,Qa))}find(t){let r={exact:!0,...t};return this.getAll().find(n=>W_(r,n))}findAll(t={}){return this.getAll().filter(r=>W_(t,r))}notify(t){Rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){let t=this.getAll().filter(r=>r.state.isPaused);return Rt.batch(()=>Promise.all(t.map(r=>r.continue().catch(tr))))}},Qa=new WeakMap,xi=new WeakMap,ig=new WeakMap,H7);function J_(e){return e.options.scope?.id}var ia,Z7,q7=(Z7=class extends ra{constructor(t={}){super();_e(this,ia);this.config=t,ue(this,ia,new Map)}build(t,r,n){let o=r.queryKey,i=r.queryHash??Jh(o,r),a=this.get(i);return a||(a=new B7({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){D(this,ia).has(t.queryHash)||(D(this,ia).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){D(this,ia).get(t.queryHash)===t&&(t.destroy(),D(this,ia).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,ia).get(t)}getAll(){return[...D(this,ia).values()]}find(t){let r={exact:!0,...t};return this.getAll().find(n=>H_(r,n))}findAll(t={}){let r=this.getAll();return Object.keys(t).length>0?r.filter(n=>H_(t,n)):r}notify(t){Rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ia=new WeakMap,Z7);var Zt,gl,vl,Mf,jf,xl,Uf,Vf,K7,o$=(K7=class{constructor(e={}){_e(this,Zt);_e(this,gl);_e(this,vl);_e(this,Mf);_e(this,jf);_e(this,xl);_e(this,Uf);_e(this,Vf);ue(this,Zt,e.queryCache||new q7),ue(this,gl,e.mutationCache||new W7),ue(this,vl,e.defaultOptions||{}),ue(this,Mf,new Map),ue(this,jf,new Map),ue(this,xl,0)}mount(){Km(this,xl)._++,D(this,xl)===1&&(ue(this,Uf,Df.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Zt).onFocus())})),ue(this,Vf,Of.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Zt).onOnline())})))}unmount(){var e,t;Km(this,xl)._--,D(this,xl)===0&&((e=D(this,Uf))==null||e.call(this),ue(this,Uf,void 0),(t=D(this,Vf))==null||t.call(this),ue(this,Vf,void 0))}isFetching(e){return D(this,Zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,gl).findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return D(this,Zt).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=D(this,Zt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ht(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return D(this,Zt).findAll(e).map(({queryKey:t,state:r})=>[t,r.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),o=D(this,Zt).get(n.queryHash)?.state.data,i=S7(t,o);if(i!==void 0)return D(this,Zt).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Rt.batch(()=>D(this,Zt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return D(this,Zt).get(t.queryHash)?.state}removeQueries(e){let t=D(this,Zt);Rt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){let r=D(this,Zt);return Rt.batch(()=>{let n=r.findAll(e),o=new Set(n);return n.forEach(i=>{i.reset()}),this.refetchQueries({type:"active",predicate:i=>o.has(i)},t)})}cancelQueries(e,t={}){let r={revert:!0,...t},n=Rt.batch(()=>D(this,Zt).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(tr).catch(tr)}invalidateQueries(e,t={}){return Rt.batch(()=>(D(this,Zt).findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},n=Rt.batch(()=>D(this,Zt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(tr)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(tr)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=D(this,Zt).build(this,t),n=r.isStaleByTime(ht(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=D(this,Zt).build(this,t);return r.isStaleByTime(ht(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Of.isOnline()?D(this,gl).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Zt)}getMutationCache(){return D(this,gl)}getDefaultOptions(){return D(this,vl)}setDefaultOptions(e){ue(this,vl,e)}setQueryDefaults(e,t){D(this,Mf).set(Gc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...D(this,Mf).values()],r={};return t.forEach(n=>{dl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){D(this,jf).set(Gc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...D(this,jf).values()],r={};return t.forEach(n=>{dl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...D(this,vl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...D(this,vl).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Zt).clear(),D(this,gl).clear()}},Zt=new WeakMap,gl=new WeakMap,vl=new WeakMap,Mf=new WeakMap,jf=new WeakMap,xl=new WeakMap,Uf=new WeakMap,Vf=new WeakMap,K7);var Y_=b(S(),1),G7=Y_.createContext(!1),X7=()=>Y_.useContext(G7),fVe=G7.Provider;var ag=b(S(),1),tre=b(R(),1);function rre(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ore=ag.createContext(rre()),Q7=()=>ag.useContext(ore);var J7=b(S(),1);var Y7=(e,t,r)=>{let n=r?.state.error&&typeof e.throwOnError=="function"?K_(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||n)&&(t.isReset()||(e.retryOnMount=!1))},e9=e=>{J7.useEffect(()=>{e.clearReset()},[e])},t9=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||K_(r,[e.error,n]));var r9=e=>{if(e.suspense){let r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},o9=(e,t)=>e?.suspense&&t.isPending,n9=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});var bl=b(S(),1);function i9(e,t,r){let n=X7(),o=Q7(),i=Cf(r),a=i.defaultQueryOptions(e),s=i.getQueryCache().get(a.queryHash),l=e.subscribed!==!1;a._optimisticResults=n?"isRestoring":l?"optimistic":void 0,r9(a),Y7(a,o,s),e9(o);let[c]=bl.useState(()=>new t(i,a)),u=c.getOptimisticResult(a),d=!n&&l;if(bl.useSyncExternalStore(bl.useCallback(f=>{let m=d?c.subscribe(Rt.batchCalls(f)):tr;return c.updateResult(),m},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),bl.useEffect(()=>{c.setOptions(a)},[a,c]),o9(a,u))throw n9(a,c,o);if(t9({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw u.error;return a.notifyOnChangeProps?u:c.trackResult(u)}function n$(e,t){return i9(e,t$,t)}var kq=b(s9(),1);var Y0=b(S(),1);var l9="x-sandbox-web";var a$=class extends Error{constructor(r,n){super(n);Kt(this,"status",r)}};async function eI(e,t,r){let n=await fetch(t,{method:e,credentials:"same-origin",headers:{[l9]:"1",...r===void 0?{}:{"Content-Type":"application/json"}},body:r===void 0?void 0:JSON.stringify(r)}),o=await n.json().catch(()=>null);if(!n.ok){let i=o?.error;throw new a$(n.status,typeof i=="string"?i:"The server said "+n.status)}return o}var Hf={login:e=>eI("POST","/api/login",{token:e}),info:()=>eI("GET","/api/info"),sessions:()=>eI("GET","/api/sessions"),create:e=>eI("POST","/api/sessions",e)};var Wf=b(S(),1);var c9={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var io=(e,t,r,n)=>{let o=(0,Wf.forwardRef)(({color:i="currentColor",size:a=24,stroke:s=2,title:l,className:c,children:u,...d},f)=>(0,Wf.createElement)("svg",{ref:f,...c9[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${t}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...d},[l&&(0,Wf.createElement)("title",{key:"svg-title"},l),...n.map(([m,p])=>(0,Wf.createElement)(m,p)),...Array.isArray(u)?u:[u]]));return o.displayName=`${r}`,o};var ire=[["path",{d:"M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-0"}],["path",{d:"M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-1"}],["path",{d:"M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-2"}],["path",{d:"M14 7l6 0",key:"svg-3"}],["path",{d:"M17 4l0 6",key:"svg-4"}]],s$=io("outline","apps","Apps",ire);var are=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],l$=io("outline","arrow-left","ArrowLeft",are);var sre=[["path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5",key:"svg-0"}],["path",{d:"M12 12l8 -4.5",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}],["path",{d:"M12 12l-8 -4.5",key:"svg-3"}]],tI=io("outline","box","Box",sre);var lre=[["path",{d:"M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4",key:"svg-0"}],["path",{d:"M12 2v2",key:"svg-1"}],["path",{d:"M9 12v9",key:"svg-2"}],["path",{d:"M15 12v9",key:"svg-3"}],["path",{d:"M5 16l4 -2",key:"svg-4"}],["path",{d:"M15 14l4 2",key:"svg-5"}],["path",{d:"M9 18h6",key:"svg-6"}],["path",{d:"M10 8v.01",key:"svg-7"}],["path",{d:"M14 8v.01",key:"svg-8"}]],c$=io("outline","robot","Robot",lre);var cre=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],u$=io("outline","settings","Settings",cre);var ure=[["path",{d:"M8 9l3 3l-3 3",key:"svg-0"}],["path",{d:"M13 15l3 0",key:"svg-1"}],["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12",key:"svg-2"}]],d$=io("outline","terminal-2","Terminal2",ure);var dre=[["path",{d:"M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5",key:"svg-0"}]],f$=io("outline","tool","Tool",dre);var fre=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],m$=io("outline","users","Users",fre);var Pl=b(S(),1);var rI=b(S(),1),mre="sessions";function pre(e,t=""){let r=/^\/s\/([A-Za-z0-9_-]{1,64})\/?$/.exec(e);if(r)return{page:"terminal",id:r[1]};let n=/^\/v\/([a-z][a-z0-9-]{0,40})\/?$/.exec(e),o=Object.fromEntries(new URLSearchParams(t));return{page:"view",view:n?n[1]:mre,params:o}}function Ja(e,t={}){let r=new URLSearchParams(t).toString();return"/v/"+e+(r?"?"+r:"")}function bi(e){history.pushState(null,"",e),window.dispatchEvent(new PopStateEvent("popstate"))}function u9(){let[e,t]=(0,rI.useState)({path:location.pathname,search:location.search});return(0,rI.useEffect)(()=>{let r=()=>t({path:location.pathname,search:location.search});return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),pre(e.path,e.search)}var hre=2,gre=1,d9=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),o=Math.max(0,parseInt(r.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),a={top:parseInt(i.getPropertyValue("padding-top")),bottom:parseInt(i.getPropertyValue("padding-bottom")),right:parseInt(i.getPropertyValue("padding-right")),left:parseInt(i.getPropertyValue("padding-left"))},s=a.top+a.bottom,l=a.right+a.left,c=n-s,u=o-l-t;return{cols:Math.max(hre,Math.floor(u/e.css.cell.width)),rows:Math.max(gre,Math.floor(c/e.css.cell.height))}}};var xj=Object.defineProperty,vre=Object.getOwnPropertyDescriptor,xre=(e,t)=>{for(var r in t)xj(e,r,{get:t[r],enumerable:!0})},Qt=(e,t,r,n)=>{for(var o=n>1?void 0:n?vre(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&xj(t,r,o),o},me=(e,t)=>(r,n)=>t(r,n,e),f9="Terminal input",D$={get:()=>f9,set:e=>f9=e},m9="Too much output to announce, navigate to rows manually to read",E$={get:()=>m9,set:e=>m9=e};function bre(e){return e.replace(/\r?\n/g,"\r")}function yre(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function _re(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function Ire(e,t,r,n){if(e.stopPropagation(),e.clipboardData){let o=e.clipboardData.getData("text/plain");bj(o,t,r,n)}}function bj(e,t,r,n){e=bre(e),e=yre(e,r.decPrivateModes.bracketedPasteMode&&n.rawOptions.ignoreBracketedPasteMode!==!0),r.triggerDataEvent(e,!0),t.value=""}function yj(e,t,r){let n=r.getBoundingClientRect(),o=e.clientX-n.left-10,i=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${o}px`,t.style.top=`${i}px`,t.style.zIndex="1000",t.focus()}function p9(e,t,r,n,o){yj(e,t,r),o&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}function Sl(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function kI(e,t=0,r=e.length){let n="";for(let o=t;o<r;++o){let i=e[o];i>65535?(i-=65536,n+=String.fromCharCode((i>>10)+55296)+String.fromCharCode(i%1024+56320)):n+=String.fromCharCode(i)}return n}var wre=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let r=e.length;if(!r)return 0;let n=0,o=0;if(this._interim){let i=e.charCodeAt(o++);56320<=i&&i<=57343?t[n++]=(this._interim-55296)*1024+i-56320+65536:(t[n++]=this._interim,t[n++]=i),this._interim=0}for(let i=o;i<r;++i){let a=e.charCodeAt(i);if(55296<=a&&a<=56319){if(++i>=r)return this._interim=a,n;let s=e.charCodeAt(i);56320<=s&&s<=57343?t[n++]=(a-55296)*1024+s-56320+65536:(t[n++]=a,t[n++]=s);continue}a!==65279&&(t[n++]=a)}return n}},Sre=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let r=e.length;if(!r)return 0;let n=0,o,i,a,s,l=0,c=0;if(this.interim[0]){let f=!1,m=this.interim[0];m&=(m&224)===192?31:(m&240)===224?15:7;let p=0,h;for(;(h=this.interim[++p]&63)&&p<4;)m<<=6,m|=h;let y=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,v=y-p;for(;c<v;){if(c>=r)return 0;if(h=e[c++],(h&192)!==128){c--,f=!0;break}else this.interim[p++]=h,m<<=6,m|=h&63}f||(y===2?m<128?c--:t[n++]=m:y===3?m<2048||m>=55296&&m<=57343||m===65279||(t[n++]=m):m<65536||m>1114111||(t[n++]=m)),this.interim.fill(0)}let u=r-4,d=c;for(;d<r;){for(;d<u&&!((o=e[d])&128)&&!((i=e[d+1])&128)&&!((a=e[d+2])&128)&&!((s=e[d+3])&128);)t[n++]=o,t[n++]=i,t[n++]=a,t[n++]=s,d+=4;if(o=e[d++],o<128)t[n++]=o;else if((o&224)===192){if(d>=r)return this.interim[0]=o,n;if(i=e[d++],(i&192)!==128){d--;continue}if(l=(o&31)<<6|i&63,l<128){d--;continue}t[n++]=l}else if((o&240)===224){if(d>=r)return this.interim[0]=o,n;if(i=e[d++],(i&192)!==128){d--;continue}if(d>=r)return this.interim[0]=o,this.interim[1]=i,n;if(a=e[d++],(a&192)!==128){d--;continue}if(l=(o&15)<<12|(i&63)<<6|a&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[n++]=l}else if((o&248)===240){if(d>=r)return this.interim[0]=o,n;if(i=e[d++],(i&192)!==128){d--;continue}if(d>=r)return this.interim[0]=o,this.interim[1]=i,n;if(a=e[d++],(a&192)!==128){d--;continue}if(d>=r)return this.interim[0]=o,this.interim[1]=i,this.interim[2]=a,n;if(s=e[d++],(s&192)!==128){d--;continue}if(l=(o&7)<<18|(i&63)<<12|(a&63)<<6|s&63,l<65536||l>1114111)continue;t[n++]=l}}return n}},_j="",kl=" ",$g=class Ij{constructor(){this.fg=0,this.bg=0,this.extended=new gI}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new Ij;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},gI=class wj{constructor(t=0,r=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=r}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new wj(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Kn=class Sj extends $g{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new gI,this.combinedData=""}static fromCharData(t){let r=new Sj;return r.setFromCharData(t),r}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Sl(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let r=!1;if(t[1].length>2)r=!0;else if(t[1].length===2){let n=t[1].charCodeAt(0);if(55296<=n&&n<=56319){let o=t[1].charCodeAt(1);56320<=o&&o<=57343?this.content=(n-55296)*1024+o-56320+65536|t[2]<<22:r=!0}else r=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;r&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},h9="di$target",T$="di$dependencies",p$=new Map;function kre(e){return e[T$]||[]}function Tr(e){if(p$.has(e))return p$.get(e);let t=function(r,n,o){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Cre(t,r,o)};return t._id=e,p$.set(e,t),t}function Cre(e,t,r){t[h9]===t?t[T$].push({id:e,index:r}):(t[T$]=[{id:e,index:r}],t[h9]=t)}var Po=Tr("BufferService"),kj=Tr("CoreMouseService"),fu=Tr("CoreService"),Pre=Tr("CharsetService"),xR=Tr("InstantiationService"),Cj=Tr("LogService"),$o=Tr("OptionsService"),Pj=Tr("OscLinkService"),$re=Tr("UnicodeService"),Rg=Tr("DecorationService"),O$=class{constructor(e,t,r){this._bufferService=e,this._optionsService=t,this._oscLinkService=r}provideLinks(e,t){let r=this._bufferService.buffer.lines.get(e-1);if(!r){t(void 0);return}let n=[],o=this._optionsService.rawOptions.linkHandler,i=new Kn,a=r.getTrimmedLength(),s=-1,l=-1,c=!1;for(let u=0;u<a;u++)if(!(l===-1&&!r.hasContent(u))){if(r.loadCell(u,i),i.hasExtendedAttrs()&&i.extended.urlId)if(l===-1){l=u,s=i.extended.urlId;continue}else c=i.extended.urlId!==s;else l!==-1&&(c=!0);if(c||l!==-1&&u===a-1){let d=this._oscLinkService.getLinkData(s)?.uri;if(d){let f={start:{x:l+1,y:e},end:{x:u+(!c&&u===a-1?1:0),y:e}},m=!1;if(!o?.allowNonHttpProtocols)try{let p=new URL(d);["http:","https:"].includes(p.protocol)||(m=!0)}catch{m=!0}m||n.push({text:d,range:f,activate:(p,h)=>o?o.activate(p,h,f):Rre(p,h),hover:(p,h)=>o?.hover?.(p,h,f),leave:(p,h)=>o?.leave?.(p,h,f)})}c=!1,i.hasExtendedAttrs()&&i.extended.urlId?(l=u,s=i.extended.urlId):(l=-1,s=-1)}}t(n)}};O$=Qt([me(0,Po),me(1,$o),me(2,Pj)],O$);function Rre(e,t){if(confirm(`Do you want to navigate to ${t}?
60
+
61
+ WARNING: This link could potentially be dangerous`)){let r=window.open();if(r){try{r.opener=null}catch{}r.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var CI=Tr("CharSizeService"),os=Tr("CoreBrowserService"),bR=Tr("MouseService"),ns=Tr("RenderService"),Dre=Tr("SelectionService"),$j=Tr("CharacterJoinerService"),Gf=Tr("ThemeService"),Rj=Tr("LinkProviderService"),Ere=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?g9.isErrorNoTelemetry(e)?new g9(e.message+`
62
+
63
+ `+e.stack):new Error(e.message+`
64
+
65
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},Tre=new Ere;function lI(e){Ore(e)||Tre.onUnexpectedError(e)}var z$="Canceled";function Ore(e){return e instanceof zre?!0:e instanceof Error&&e.name===z$&&e.message===z$}var zre=class extends Error{constructor(){super(z$),this.name=this.message}};function Are(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}var g9=class A$ extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof A$)return t;let r=new A$;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},F$=class Dj extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,Dj.prototype)}};function Fre(e,t,r=0,n=e.length){let o=r,i=n;for(;o<i;){let a=Math.floor((o+i)/2);t(e[a])?o=a+1:i=a}return o-1}var Nre=class Ej{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(Ej.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!t(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=Fre(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};Nre.assertInvariants=!1;function hn(e,t=0){return e[e.length-(1+t)]}var N$;(e=>{function t(i){return i<0}e.isLessThan=t;function r(i){return i<=0}e.isLessThanOrEqual=r;function n(i){return i>0}e.isGreaterThan=n;function o(i){return i===0}e.isNeitherLessOrGreaterThan=o,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(N$||(N$={}));function Bre(e,t){return(r,n)=>t(e(r),e(n))}var Lre=(e,t)=>e-t,v9=class B${constructor(t){this.iterate=t}forEach(t){this.iterate(r=>(t(r),!0))}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new B$(r=>this.iterate(n=>t(n)?r(n):!0))}map(t){return new B$(r=>this.iterate(n=>r(t(n))))}some(t){let r=!1;return this.iterate(n=>(r=t(n),!r)),r}findFirst(t){let r;return this.iterate(n=>t(n)?(r=n,!1):!0),r}findLast(t){let r;return this.iterate(n=>(t(n)&&(r=n),!0)),r}findLastMaxBy(t){let r,n=!0;return this.iterate(o=>((n||N$.isGreaterThan(t(o,r)))&&(n=!1,r=o),!0)),r}};v9.empty=new v9(e=>{});function Mre(e,t){let r=Object.create(null);for(let n of e){let o=t(n),i=r[o];i||(i=r[o]=[]),i.push(n)}return r}var x9,b9,vHe=class{constructor(e,t){this.toKey=t,this._map=new Map,this[x9]="SetWithKey";for(let r of e)this.add(r)}get size(){return this._map.size}add(e){let t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(let e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(let e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(r=>e.call(t,r,r,this))}[(b9=Symbol.iterator,x9=Symbol.toStringTag,b9)](){return this.values()}},jre=class{constructor(){this.map=new Map}add(e,t){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(t)}delete(e,t){let r=this.map.get(e);r&&(r.delete(t),r.size===0&&this.map.delete(e))}forEach(e,t){let r=this.map.get(e);r&&r.forEach(t)}get(e){return this.map.get(e)||new Set}};function Ure(e,t){let r=this,n=!1,o;return function(){if(n)return o;if(n=!0,t)try{o=e.apply(r,arguments)}finally{t()}else o=e.apply(r,arguments);return o}}var L$;(e=>{function t(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*o(_){yield _}e.single=o;function i(_){return t(_)?_:o(_)}e.wrap=i;function a(_){return _||r}e.from=a;function*s(_){for(let w=_.length-1;w>=0;w--)yield _[w]}e.reverse=s;function l(_){return!_||_[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(_){return _[Symbol.iterator]().next().value}e.first=c;function u(_,w){let I=0;for(let k of _)if(w(k,I++))return!0;return!1}e.some=u;function d(_,w){for(let I of _)if(w(I))return I}e.find=d;function*f(_,w){for(let I of _)w(I)&&(yield I)}e.filter=f;function*m(_,w){let I=0;for(let k of _)yield w(k,I++)}e.map=m;function*p(_,w){let I=0;for(let k of _)yield*w(k,I++)}e.flatMap=p;function*h(..._){for(let w of _)yield*w}e.concat=h;function y(_,w,I){let k=I;for(let C of _)k=w(k,C);return k}e.reduce=y;function*v(_,w,I=_.length){for(w<0&&(w+=_.length),I<0?I+=_.length:I>_.length&&(I=_.length);w<I;w++)yield _[w]}e.slice=v;function g(_,w=Number.POSITIVE_INFINITY){let I=[];if(w===0)return[I,_];let k=_[Symbol.iterator]();for(let C=0;C<w;C++){let U=k.next();if(U.done)return[I,e.empty()];I.push(U.value)}return[I,{[Symbol.iterator](){return k}}]}e.consume=g;async function x(_){let w=[];for await(let I of _)w.push(I);return Promise.resolve(w)}e.asyncToArray=x})(L$||(L$={}));var Vre=!1,cu=null,Hre=class Tj{constructor(){this.livingDisposables=new Map}getDisposableData(t){let r=this.livingDisposables.get(t);return r||(r={parent:null,source:null,isSingleton:!1,value:t,idx:Tj.idx++},this.livingDisposables.set(t,r)),r}trackDisposable(t){let r=this.getDisposableData(t);r.source||(r.source=new Error().stack)}setParent(t,r){let n=this.getDisposableData(t);n.parent=r}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,r){let n=r.get(t);if(n)return n;let o=t.parent?this.getRootParent(this.getDisposableData(t.parent),r):t;return r.set(t,o),o}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,t).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(t=10,r){let n;if(r)n=r;else{let l=new Map,c=[...this.livingDisposables.values()].filter(d=>d.source!==null&&!this.getRootParent(d,l).isSingleton);if(c.length===0)return;let u=new Set(c.map(d=>d.value));if(n=c.filter(d=>!(d.parent&&u.has(d.parent))),n.length===0)throw new Error("There are cyclic diposable chains!")}if(!n)return;function o(l){function c(d,f){for(;d.length>0&&f.some(m=>typeof m=="string"?m===d[0]:d[0].match(m));)d.shift()}let u=l.source.split(`
66
+ `).map(d=>d.trim().replace("at ","")).filter(d=>d!=="");return c(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}let i=new jre;for(let l of n){let c=o(l);for(let u=0;u<=c.length;u++)i.add(c.slice(0,u).join(`
67
+ `),l)}n.sort(Bre(l=>l.idx,Lre));let a="",s=0;for(let l of n.slice(0,t)){s++;let c=o(l),u=[];for(let d=0;d<c.length;d++){let f=c[d];f=`(shared with ${i.get(c.slice(0,d+1).join(`
68
+ `)).size}/${n.length} leaks) at ${f}`;let m=i.get(c.slice(0,d).join(`
69
+ `)),p=Mre([...m].map(h=>o(h)[d]),h=>h);delete p[c[d]];for(let[h,y]of Object.entries(p))u.unshift(` - stacktraces of ${y.length} other leaks continue with ${h}`);u.unshift(f)}a+=`
70
+
71
+
72
+ ==================== Leaking disposable ${s}/${n.length}: ${l.value.constructor.name} ====================
73
+ ${u.join(`
74
+ `)}
75
+ ============================================================
76
+
77
+ `}return n.length>t&&(a+=`
78
+
79
+
80
+ ... and ${n.length-t} more leaking disposables
81
+
82
+ `),{leaks:n,details:a}}};Hre.idx=0;function Wre(e){cu=e}if(Vre){let e="__is_disposable_tracked__";Wre(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==Fe.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Fe.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function PI(e){return cu?.trackDisposable(e),e}function $I(e){cu?.markAsDisposed(e)}function Sg(e,t){cu?.setParent(e,t)}function Zre(e,t){if(cu)for(let r of e)cu.setParent(r,t)}function y9(e){return cu?.markAsSingleton(e),e}function uu(e){if(L$.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function qre(...e){let t=Dt(()=>uu(e));return Zre(e,t),t}function Dt(e){let t=PI({dispose:Ure(()=>{$I(t),e()})});return t}var Oj=class zj{constructor(){this._toDispose=new Set,this._isDisposed=!1,PI(this)}dispose(){this._isDisposed||($I(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{uu(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Sg(t,this),this._isDisposed?zj.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Sg(t,null))}};Oj.DISABLE_DISPOSED_WARNING=!1;var Cl=Oj,Fe=class{constructor(){this._store=new Cl,PI(this),Sg(this._store,this)}dispose(){$I(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Fe.None=Object.freeze({dispose(){}});var Kf=class{constructor(){this._isDisposed=!1,PI(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Sg(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,$I(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&Sg(e,null),e}},xn=typeof window=="object"?window:globalThis,M$=class j${constructor(t){this.element=t,this.next=j$.Undefined,this.prev=j$.Undefined}};M$.Undefined=new M$(void 0);var qt=M$,_9=class{constructor(){this._first=qt.Undefined,this._last=qt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===qt.Undefined}clear(){let e=this._first;for(;e!==qt.Undefined;){let t=e.next;e.prev=qt.Undefined,e.next=qt.Undefined,e=t}this._first=qt.Undefined,this._last=qt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new qt(e);if(this._first===qt.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==qt.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==qt.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==qt.Undefined&&e.next!==qt.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===qt.Undefined&&e.next===qt.Undefined?(this._first=qt.Undefined,this._last=qt.Undefined):e.next===qt.Undefined?(this._last=this._last.prev,this._last.next=qt.Undefined):e.prev===qt.Undefined&&(this._first=this._first.next,this._first.prev=qt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==qt.Undefined;)yield e.element,e=e.next}},Kre=globalThis.performance&&typeof globalThis.performance.now=="function",Gre=class Aj{static create(t){return new Aj(t)}constructor(t){this._now=Kre&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}},Xre=!1,I9=!1,Qre=!1,Er;(e=>{e.None=()=>Fe.None;function t(N){if(Qre){let{onDidAddListener:A}=N,B=H$.create(),T=0;N.onDidAddListener=()=>{++T===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),B.print()),A?.()}}}function r(N,A){return f(N,()=>{},0,void 0,!0,void 0,A)}e.defer=r;function n(N){return(A,B=null,T)=>{let M=!1,$;return $=N(O=>{if(!M)return $?$.dispose():M=!0,A.call(B,O)},null,T),M&&$.dispose(),$}}e.once=n;function o(N,A,B){return u((T,M=null,$)=>N(O=>T.call(M,A(O)),null,$),B)}e.map=o;function i(N,A,B){return u((T,M=null,$)=>N(O=>{A(O),T.call(M,O)},null,$),B)}e.forEach=i;function a(N,A,B){return u((T,M=null,$)=>N(O=>A(O)&&T.call(M,O),null,$),B)}e.filter=a;function s(N){return N}e.signal=s;function l(...N){return(A,B=null,T)=>{let M=qre(...N.map($=>$(O=>A.call(B,O))));return d(M,T)}}e.any=l;function c(N,A,B,T){let M=B;return o(N,$=>(M=A(M,$),M),T)}e.reduce=c;function u(N,A){let B,T={onWillAddFirstListener(){B=N(M.fire,M)},onDidRemoveLastListener(){B?.dispose()}};A||t(T);let M=new ne(T);return A?.add(M),M.event}function d(N,A){return A instanceof Array?A.push(N):A&&A.add(N),N}function f(N,A,B=100,T=!1,M=!1,$,O){let Z,Y,te,ve=0,ge,q={leakWarningThreshold:$,onWillAddFirstListener(){Z=N(ye=>{ve++,Y=A(Y,ye),T&&!te&&(ae.fire(Y),Y=void 0),ge=()=>{let se=Y;Y=void 0,te=void 0,(!T||ve>1)&&ae.fire(se),ve=0},typeof B=="number"?(clearTimeout(te),te=setTimeout(ge,B)):te===void 0&&(te=0,queueMicrotask(ge))})},onWillRemoveListener(){M&&ve>0&&ge?.()},onDidRemoveLastListener(){ge=void 0,Z.dispose()}};O||t(q);let ae=new ne(q);return O?.add(ae),ae.event}e.debounce=f;function m(N,A=0,B){return e.debounce(N,(T,M)=>T?(T.push(M),T):[M],A,void 0,!0,void 0,B)}e.accumulate=m;function p(N,A=(T,M)=>T===M,B){let T=!0,M;return a(N,$=>{let O=T||!A($,M);return T=!1,M=$,O},B)}e.latch=p;function h(N,A,B){return[e.filter(N,A,B),e.filter(N,T=>!A(T),B)]}e.split=h;function y(N,A=!1,B=[],T){let M=B.slice(),$=N(Y=>{M?M.push(Y):Z.fire(Y)});T&&T.add($);let O=()=>{M?.forEach(Y=>Z.fire(Y)),M=null},Z=new ne({onWillAddFirstListener(){$||($=N(Y=>Z.fire(Y)),T&&T.add($))},onDidAddFirstListener(){M&&(A?setTimeout(O):O())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return T&&T.add(Z),Z.event}e.buffer=y;function v(N,A){return(B,T,M)=>{let $=A(new x);return N(function(O){let Z=$.evaluate(O);Z!==g&&B.call(T,Z)},void 0,M)}}e.chain=v;let g=Symbol("HaltChainable");class x{constructor(){this.steps=[]}map(A){return this.steps.push(A),this}forEach(A){return this.steps.push(B=>(A(B),B)),this}filter(A){return this.steps.push(B=>A(B)?B:g),this}reduce(A,B){let T=B;return this.steps.push(M=>(T=A(T,M),T)),this}latch(A=(B,T)=>B===T){let B=!0,T;return this.steps.push(M=>{let $=B||!A(M,T);return B=!1,T=M,$?M:g}),this}evaluate(A){for(let B of this.steps)if(A=B(A),A===g)break;return A}}function _(N,A,B=T=>T){let T=(...Z)=>O.fire(B(...Z)),M=()=>N.on(A,T),$=()=>N.removeListener(A,T),O=new ne({onWillAddFirstListener:M,onDidRemoveLastListener:$});return O.event}e.fromNodeEventEmitter=_;function w(N,A,B=T=>T){let T=(...Z)=>O.fire(B(...Z)),M=()=>N.addEventListener(A,T),$=()=>N.removeEventListener(A,T),O=new ne({onWillAddFirstListener:M,onDidRemoveLastListener:$});return O.event}e.fromDOMEventEmitter=w;function I(N){return new Promise(A=>n(N)(A))}e.toPromise=I;function k(N){let A=new ne;return N.then(B=>{A.fire(B)},()=>{A.fire(void 0)}).finally(()=>{A.dispose()}),A.event}e.fromPromise=k;function C(N,A){return N(B=>A.fire(B))}e.forward=C;function U(N,A,B){return A(B),N(T=>A(T))}e.runAndSubscribe=U;class H{constructor(A,B){this._observable=A,this._counter=0,this._hasChanged=!1;let T={onWillAddFirstListener:()=>{A.addObserver(this)},onDidRemoveLastListener:()=>{A.removeObserver(this)}};B||t(T),this.emitter=new ne(T),B&&B.add(this.emitter)}beginUpdate(A){this._counter++}handlePossibleChange(A){}handleChange(A,B){this._hasChanged=!0}endUpdate(A){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function W(N,A){return new H(N,A).emitter.event}e.fromObservable=W;function X(N){return(A,B,T)=>{let M=0,$=!1,O={beginUpdate(){M++},endUpdate(){M--,M===0&&(N.reportChanges(),$&&($=!1,A.call(B)))},handlePossibleChange(){},handleChange(){$=!0}};N.addObserver(O),N.reportChanges();let Z={dispose(){N.removeObserver(O)}};return T instanceof Cl?T.add(Z):Array.isArray(T)&&T.push(Z),Z}}e.fromObservableLight=X})(Er||(Er={}));var U$=class V${constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${V$._idPool++}`,V$.all.add(this)}start(t){this._stopWatch=new Gre,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};U$.all=new Set,U$._idPool=0;var Jre=U$,w9=-1,Fj=class Nj{constructor(t,r,n=(Nj._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=r,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let o=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[i,a]=this.getMostFrequentStack(),s=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${a}):`;console.warn(s),console.warn(i);let l=new eoe(s,i);this._errorHandler(l)}return()=>{let i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,r=0;for(let[n,o]of this._stacks)(!t||r<o)&&(t=[n,o],r=o);return t}};Fj._idPool=1;var Yre=Fj,H$=class Bj{constructor(t){this.value=t}static create(){let t=new Error;return new Bj(t.stack??"")}print(){console.warn(this.value.split(`
83
+ `).slice(2).join(`
84
+ `))}},eoe=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},toe=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},roe=0,cI=class{constructor(e){this.value=e,this.id=roe++}},ooe=2,noe=(e,t)=>{if(e instanceof cI)t(e);else for(let r=0;r<e.length;r++){let n=e[r];n&&t(n)}},uI;if(Xre){let e=[];setInterval(()=>{e.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(e.join(`
85
+ `)),e.length=0)},3e3),uI=new FinalizationRegistry(t=>{typeof t=="string"&&e.push(t)})}var ne=class{constructor(e){this._size=0,this._options=e,this._leakageMon=w9>0||this._options?.leakWarningThreshold?new Yre(e?.onListenerError??lI,this._options?.leakWarningThreshold??w9):void 0,this._perfMon=this._options?._profName?new Jre(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(I9){let e=this._listeners;queueMicrotask(()=>{noe(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??(this._event=(e,t,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let s=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(s);let l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new toe(`${s}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||lI)(c),Fe.None}if(this._disposed)return Fe.None;t&&(e=e.bind(t));let n=new cI(e),o,i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(n.stack=H$.create(),o=this._leakageMon.check(n.stack,this._size+1)),I9&&(n.stack=i??H$.create()),this._listeners?this._listeners instanceof cI?(this._deliveryQueue??(this._deliveryQueue=new ioe),this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;let a=Dt(()=>{uI?.unregister(a),o?.(),this._removeListener(n)});if(r instanceof Cl?r.add(a):Array.isArray(r)&&r.push(a),uI){let s=new Error().stack.split(`
86
+ `).slice(2,3).join(`
87
+ `).trim(),l=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(s);uI.register(a,l?.[2]??s,a)}return a}),this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,r=t.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[r]=void 0;let n=this._deliveryQueue.current===this;if(this._size*ooe<=t.length){let o=0;for(let i=0;i<t.length;i++)t[i]?t[o++]=t[i]:n&&(this._deliveryQueue.end--,o<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=o}}_deliver(e,t){if(!e)return;let r=this._options?.onListenerError||lI;if(!r){e.value(t);return}try{e.value(t)}catch(n){r(n)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof cI)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},ioe=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,r){this.i=0,this.end=r,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},W$=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new ne,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new ne,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,r){if(this.getZoomLevel(r)===t)return;let n=this.getWindowId(r);this.mapWindowIdToZoomLevel.set(n,t),this._onDidChangeZoomLevel.fire(n)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,r){this.mapWindowIdToZoomFactor.set(this.getWindowId(r),t)}setFullscreen(t,r){if(this.isFullscreen(r)===t)return;let n=this.getWindowId(r);this.mapWindowIdToFullScreen.set(n,t),this._onDidChangeFullscreen.fire(n)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};W$.INSTANCE=new W$;var yR=W$;function aoe(e,t,r){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",r)}var bHe=yR.INSTANCE.onDidChangeZoomLevel;function soe(e){return yR.INSTANCE.getZoomFactor(e)}var yHe=yR.INSTANCE.onDidChangeFullscreen,Xf=typeof navigator=="object"?navigator.userAgent:"",Z$=Xf.indexOf("Firefox")>=0,dI=Xf.indexOf("AppleWebKit")>=0,_R=Xf.indexOf("Chrome")>=0,Lj=!_R&&Xf.indexOf("Safari")>=0,_He=Xf.indexOf("Electron/")>=0,IHe=Xf.indexOf("Android")>=0,fI=!1;if(typeof xn.matchMedia=="function"){let e=xn.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=xn.matchMedia("(display-mode: fullscreen)");fI=e.matches,aoe(xn,e,({matches:r})=>{fI&&t.matches||(fI=r)})}function loe(){return fI}var qf="en",vI=!1,xI=!1,yg=!1,coe=!1,Mj=!1,jj=!1,uoe=!1,doe=!1,foe=!1,moe=!1,oI,mI=qf,S9=qf,poe,es,rs=globalThis,vn;typeof rs.vscode<"u"&&typeof rs.vscode.process<"u"?vn=rs.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(vn=process);var Uj=typeof vn?.versions?.electron=="string",hoe=Uj&&vn?.type==="renderer";if(typeof vn=="object"){vI=vn.platform==="win32",xI=vn.platform==="darwin",yg=vn.platform==="linux",coe=yg&&!!vn.env.SNAP&&!!vn.env.SNAP_REVISION,uoe=Uj,foe=!!vn.env.CI||!!vn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,oI=qf,mI=qf;let e=vn.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);oI=t.userLocale,S9=t.osLocale,mI=t.resolvedLanguage||qf,poe=t.languagePack?.translationsConfigFile}catch{}Mj=!0}else typeof navigator=="object"&&!hoe?(es=navigator.userAgent,vI=es.indexOf("Windows")>=0,xI=es.indexOf("Macintosh")>=0,doe=(es.indexOf("Macintosh")>=0||es.indexOf("iPad")>=0||es.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,yg=es.indexOf("Linux")>=0,moe=es?.indexOf("Mobi")>=0,jj=!0,mI=globalThis._VSCODE_NLS_LANGUAGE||qf,oI=navigator.language.toLowerCase(),S9=oI):console.error("Unable to resolve platform.");var h$=0;xI?h$=1:vI?h$=3:yg&&(h$=2);var Vj=vI,la=xI,goe=yg,g$=Mj,voe=jj&&typeof rs.importScripts=="function",wHe=voe?rs.origin:void 0,ca=es,yl=mI,k9;(e=>{function t(){return yl}e.value=t;function r(){return yl.length===2?yl==="en":yl.length>=3?yl[0]==="e"&&yl[1]==="n"&&yl[2]==="-":!1}e.isDefaultVariant=r;function n(){return yl==="en"}e.isDefault=n})(k9||(k9={}));var xoe=typeof rs.postMessage=="function"&&!rs.importScripts,boe=(()=>{if(xoe){let e=[];rs.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let n=0,o=e.length;n<o;n++){let i=e[n];if(i.id===r.data.vscodeScheduleAsyncWork){e.splice(n,1),i.callback();return}}});let t=0;return r=>{let n=++t;e.push({id:n,callback:r}),rs.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),yoe=!!(ca&&ca.indexOf("Chrome")>=0),SHe=!!(ca&&ca.indexOf("Firefox")>=0),kHe=!!(!yoe&&ca&&ca.indexOf("Safari")>=0),CHe=!!(ca&&ca.indexOf("Edg/")>=0),PHe=!!(ca&&ca.indexOf("Android")>=0),_l=typeof navigator=="object"?navigator:{},$He={clipboard:{writeText:g$||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(_l&&_l.clipboard&&_l.clipboard.writeText),readText:g$||!!(_l&&_l.clipboard&&_l.clipboard.readText)},keyboard:g$||loe()?0:_l.keyboard||Lj?1:2,touch:"ontouchstart"in xn||_l.maxTouchPoints>0,pointerEvents:xn.PointerEvent&&("ontouchstart"in xn||navigator.maxTouchPoints>0)},IR=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},v$=new IR,C9=new IR,P9=new IR,_oe=new Array(230),q$;(e=>{function t(s){return v$.keyCodeToStr(s)}e.toString=t;function r(s){return v$.strToKeyCode(s)}e.fromString=r;function n(s){return C9.keyCodeToStr(s)}e.toUserSettingsUS=n;function o(s){return P9.keyCodeToStr(s)}e.toUserSettingsGeneral=o;function i(s){return C9.strToKeyCode(s)||P9.strToKeyCode(s)}e.fromUserSettings=i;function a(s){if(s>=98&&s<=113)return null;switch(s){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return v$.keyCodeToStr(s)}e.toElectronAccelerator=a})(q$||(q$={}));var Ioe=class Hj{constructor(t,r,n,o,i){this.ctrlKey=t,this.shiftKey=r,this.altKey=n,this.metaKey=o,this.keyCode=i}equals(t){return t instanceof Hj&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",r=this.shiftKey?"1":"0",n=this.altKey?"1":"0",o=this.metaKey?"1":"0";return`K${t}${r}${n}${o}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new woe([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},woe=class{constructor(e){if(e.length===0)throw Are("chords");this.chords=e}getHashCode(){let e="";for(let t=0,r=this.chords.length;t<r;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function Soe(e){if(e.charCode){let r=String.fromCharCode(e.charCode).toUpperCase();return q$.fromString(r)}let t=e.keyCode;if(t===3)return 7;if(Z$)switch(t){case 59:return 85;case 60:if(goe)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(la)return 57;break}else if(dI&&(la&&t===93||!la&&t===92))return 57;return _oe[t]||0}var koe=la?256:2048,Coe=512,Poe=1024,$oe=la?2048:256,K$=class{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=Soe(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=koe),this.altKey&&(t|=Coe),this.shiftKey&&(t|=Poe),this.metaKey&&(t|=$oe),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Ioe(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},$9=new WeakMap;function Roe(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,r=e.parent.location;if(t.origin!=="null"&&r.origin!=="null"&&t.origin!==r.origin)return null}catch{return null}return e.parent}var Doe=class{static getSameOriginWindowChain(e){let t=$9.get(e);if(!t){t=[],$9.set(e,t);let r=e,n;do n=Roe(r),n?t.push({window:new WeakRef(r),iframeElement:r.frameElement||null}):t.push({window:new WeakRef(r),iframeElement:null}),r=n;while(r)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let r=0,n=0,o=this.getSameOriginWindowChain(e);for(let i of o){let a=i.window.deref();if(r+=a?.scrollY??0,n+=a?.scrollX??0,a===t||!i.iframeElement)break;let s=i.iframeElement.getBoundingClientRect();r+=s.top,n+=s.left}return{top:r,left:n}}},pg=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let r=Doe.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=r.left,this.posy-=r.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},R9=class{constructor(e,t=0,r=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t;let n=!1;if(_R){let o=navigator.userAgent.match(/Chrome\/(\d+)/);n=(o?parseInt(o[1]):123)<=122}if(e){let o=e,i=e,a=e.view?.devicePixelRatio||1;if(typeof o.wheelDeltaY<"u")n?this.deltaY=o.wheelDeltaY/(120*a):this.deltaY=o.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS<"u"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(e.type==="wheel"){let s=e;s.deltaMode===s.DOM_DELTA_LINE?Z$&&!la?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof o.wheelDeltaX<"u")Lj&&Vj?this.deltaX=-(o.wheelDeltaX/120):n?this.deltaX=o.wheelDeltaX/(120*a):this.deltaX=o.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS<"u"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let s=e;s.deltaMode===s.DOM_DELTA_LINE?Z$&&!la?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*a):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},Wj=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),D9;(e=>{function t(r){return r===e.None||r===e.Cancelled||r instanceof Eoe?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Er.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Wj})})(D9||(D9={}));var Eoe=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Wj:(this._emitter||(this._emitter=new ne),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}};var wR=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new F$("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new F$("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},Toe=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,r=globalThis){if(this.isDisposed)throw new F$("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let n=r.setInterval(()=>{e()},t);this.disposable=Dt(()=>{r.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},Ooe,x$;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?x$=(e,t)=>{boe(()=>{if(r)return;let n=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let r=!1;return{dispose(){r||(r=!0)}}}:x$=(e,t,r)=>{let n=e.requestIdleCallback(t,typeof r=="number"?{timeout:r}:void 0),o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},Ooe=e=>x$(globalThis,e)})();var E9;(e=>{async function t(n){let o,i=await Promise.all(n.map(a=>a.then(s=>s,s=>{o||(o=s)})));if(typeof o<"u")throw o;return i}e.settled=t;function r(n){return new Promise(async(o,i)=>{try{await n(o,i)}catch(a){i(a)}})}e.withAsyncBody=r})(E9||(E9={}));var T9=class Zn{static fromArray(t){return new Zn(r=>{r.emitMany(t)})}static fromPromise(t){return new Zn(async r=>{r.emitMany(await t)})}static fromPromises(t){return new Zn(async r=>{await Promise.all(t.map(async n=>r.emitOne(await n)))})}static merge(t){return new Zn(async r=>{await Promise.all(t.map(async n=>{for await(let o of n)r.emitOne(o)}))})}constructor(t,r){this._state=0,this._results=[],this._error=null,this._onReturn=r,this._onStateChanged=new ne,queueMicrotask(async()=>{let n={emitOne:o=>this.emitOne(o),emitMany:o=>this.emitMany(o),reject:o=>this.reject(o)};try{await Promise.resolve(t(n)),this.resolve()}catch(o){this.reject(o)}finally{n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Er.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,r){return new Zn(async n=>{for await(let o of t)n.emitOne(r(o))})}map(t){return Zn.map(this,t)}static filter(t,r){return new Zn(async n=>{for await(let o of t)r(o)&&n.emitOne(o)})}filter(t){return Zn.filter(this,t)}static coalesce(t){return Zn.filter(t,r=>!!r)}coalesce(){return Zn.coalesce(this)}static async toPromise(t){let r=[];for await(let n of t)r.push(n);return r}toPromise(){return Zn.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};T9.EMPTY=T9.fromArray([]);function zoe(e){return 55296<=e&&e<=56319}function O9(e){return 56320<=e&&e<=57343}function Aoe(e,t){return(e-55296<<10)+(t-56320)+65536}function Foe(e){return SR(e,0)}function SR(e,t){switch(typeof e){case"object":return e===null?ts(349,t):Array.isArray(e)?Boe(e,t):Loe(e,t);case"string":return Zj(e,t);case"boolean":return Noe(e,t);case"number":return ts(e,t);case"undefined":return ts(937,t);default:return ts(617,t)}}function ts(e,t){return(t<<5)-t+e|0}function Noe(e,t){return ts(e?433:863,t)}function Zj(e,t){t=ts(149417,t);for(let r=0,n=e.length;r<n;r++)t=ts(e.charCodeAt(r),t);return t}function Boe(e,t){return t=ts(104579,t),e.reduce((r,n)=>SR(n,r),t)}function Loe(e,t){return t=ts(181387,t),Object.keys(e).sort().reduce((r,n)=>(r=Zj(n,r),SR(e[n],r)),t)}function b$(e,t,r=32){let n=r-t,o=~((1<<n)-1);return(e<<t|(o&e)>>>n)>>>0}function z9(e,t=0,r=e.byteLength,n=0){for(let o=0;o<r;o++)e[t+o]=n}function Moe(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function sg(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):Moe((e>>>0).toString(16),t/4)}var joe=class qj{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let n=this._buff,o=this._buffLen,i=this._leftoverHighSurrogate,a,s;for(i!==0?(a=i,s=-1,i=0):(a=t.charCodeAt(0),s=0);;){let l=a;if(zoe(a))if(s+1<r){let c=t.charCodeAt(s+1);O9(c)?(s++,l=Aoe(a,c)):l=65533}else{i=a;break}else O9(a)&&(l=65533);if(o=this._push(n,o,l),s++,s<r)a=t.charCodeAt(s);else break}this._buffLen=o,this._leftoverHighSurrogate=i}_push(t,r,n){return n<128?t[r++]=n:n<2048?(t[r++]=192|(n&1984)>>>6,t[r++]=128|(n&63)>>>0):n<65536?(t[r++]=224|(n&61440)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0):(t[r++]=240|(n&1835008)>>>18,t[r++]=128|(n&258048)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),sg(this._h0)+sg(this._h1)+sg(this._h2)+sg(this._h3)+sg(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,z9(this._buff,this._buffLen),this._buffLen>56&&(this._step(),z9(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=qj._bigBlock32,r=this._buffDV;for(let d=0;d<64;d+=4)t.setUint32(d,r.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)t.setUint32(d,b$(t.getUint32(d-12,!1)^t.getUint32(d-32,!1)^t.getUint32(d-56,!1)^t.getUint32(d-64,!1),1),!1);let n=this._h0,o=this._h1,i=this._h2,a=this._h3,s=this._h4,l,c,u;for(let d=0;d<80;d++)d<20?(l=o&i|~o&a,c=1518500249):d<40?(l=o^i^a,c=1859775393):d<60?(l=o&i|o&a|i&a,c=2400959708):(l=o^i^a,c=3395469782),u=b$(n,5)+l+s+c+t.getUint32(d*4,!1)&4294967295,s=a,a=i,i=b$(o,30),o=n,n=u;this._h0=this._h0+n&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+i&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+s&4294967295}};joe._bigBlock32=new DataView(new ArrayBuffer(320));var{registerWindow:RHe,getWindow:_i,getDocument:DHe,getWindows:EHe,getWindowsCount:THe,getWindowId:A9,getWindowById:OHe,hasWindow:zHe,onDidRegisterWindow:Uoe,onWillUnregisterWindow:AHe,onDidUnregisterWindow:FHe}=(function(){let e=new Map,t={window:xn,disposables:new Cl};e.set(xn.vscodeWindowId,t);let r=new ne,n=new ne,o=new ne;function i(a,s){return(typeof a=="number"?e.get(a):void 0)??(s?t:void 0)}return{onDidRegisterWindow:r.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(a){if(e.has(a.vscodeWindowId))return Fe.None;let s=new Cl,l={window:a,disposables:s.add(new Cl)};return e.set(a.vscodeWindowId,l),s.add(Dt(()=>{e.delete(a.vscodeWindowId),n.fire(a)})),s.add(Ee(a,Pr.BEFORE_UNLOAD,()=>{o.fire(a)})),r.fire(l),s},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(a){return a.vscodeWindowId},hasWindow(a){return e.has(a)},getWindowById:i,getWindow(a){let s=a;if(s?.ownerDocument?.defaultView)return s.ownerDocument.defaultView.window;let l=a;return l?.view?l.view.window:xn},getDocument(a){return _i(a).document}}})(),Voe=class{constructor(e,t,r,n){this._node=e,this._type=t,this._handler=r,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function Ee(e,t,r,n){return new Voe(e,t,r,n)}function Hoe(e,t){return function(r){return t(new pg(e,r))}}function Woe(e){return function(t){return e(new K$(t))}}var F9=function(e,t,r,n){let o=r;return t==="click"||t==="mousedown"||t==="contextmenu"?o=Hoe(_i(e),r):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=Woe(r)),Ee(e,t,o,n)},Zoe,bI,qoe=class extends Toe{constructor(e){super(),this.defaultTarget=e&&_i(e)}cancelAndSet(e,t,r){return super.cancelAndSet(e,t,r??this.defaultTarget)}},y$=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){lI(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,r=new Map,n=new Map,o=i=>{r.set(i,!1);let a=e.get(i)??[];for(t.set(i,a),e.set(i,[]),n.set(i,!0);a.length>0;)a.sort(y$.sort),a.shift().execute();n.set(i,!1)};bI=(i,a,s=0)=>{let l=A9(i),c=new y$(a,s),u=e.get(l);return u||(u=[],e.set(l,u)),u.push(c),r.get(l)||(r.set(l,!0),i.requestAnimationFrame(()=>o(l))),c},Zoe=(i,a,s)=>{let l=A9(i);if(n.get(l)){let c=new y$(a,s),u=t.get(l);return u||(u=[],t.set(l,u)),u.push(c),c}else return bI(i,a,s)}})();var N9=class pI{constructor(t,r){this.width=t,this.height=r}with(t=this.width,r=this.height){return t!==this.width||r!==this.height?new pI(t,r):this}static is(t){return typeof t=="object"&&typeof t.height=="number"&&typeof t.width=="number"}static lift(t){return t instanceof pI?t:new pI(t.width,t.height)}static equals(t,r){return t===r?!0:!t||!r?!1:t.width===r.width&&t.height===r.height}};N9.None=new N9(0,0);function Koe(e){let t=e.getBoundingClientRect(),r=_i(e);return{left:t.left+r.scrollX,top:t.top+r.scrollY,width:t.width,height:t.height}}var NHe=new class{constructor(){this.mutationObservers=new Map}observe(e,t,r){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));let o=Foe(r),i=n.get(o);if(i)i.users+=1;else{let a=new ne,s=new MutationObserver(c=>a.fire(c));s.observe(e,r);let l=i={users:1,observer:s,onDidMutate:a.event};t.add(Dt(()=>{l.users-=1,l.users===0&&(a.dispose(),s.disconnect(),n?.delete(o),n?.size===0&&this.mutationObservers.delete(e))})),n.set(o,i)}return i.onDidMutate}},Pr={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:dI?"webkitAnimationStart":"animationstart",ANIMATION_END:dI?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:dI?"webkitAnimationIteration":"animationiteration"},Goe=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function Kj(e,t,r,...n){let o=Goe.exec(t);if(!o)throw new Error("Bad use of emmet");let i=o[1]||"div",a;return e!=="http://www.w3.org/1999/xhtml"?a=document.createElementNS(e,i):a=document.createElement(i),o[3]&&(a.id=o[3]),o[4]&&(a.className=o[4].replace(/\./g," ").trim()),r&&Object.entries(r).forEach(([s,l])=>{typeof l>"u"||(/^on\w+$/.test(s)?a[s]=l:s==="selected"?l&&a.setAttribute(s,"true"):a.setAttribute(s,l))}),a.append(...n),a}function Xoe(e,t,...r){return Kj("http://www.w3.org/1999/xhtml",e,t,...r)}Xoe.SVG=function(e,t,...r){return Kj("http://www.w3.org/2000/svg",e,t,...r)};var Qoe=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=Xo(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=Xo(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=Xo(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=Xo(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=Xo(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=Xo(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=Xo(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=Xo(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=Xo(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=Xo(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=Xo(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=Xo(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=Xo(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=Xo(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function Xo(e){return typeof e=="number"?`${e}px`:e}function _g(e){return new Qoe(e)}var Gj=class{constructor(){this._hooks=new Cl,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let r=this._onStopCallback;this._onStopCallback=null,e&&r&&r(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,r,n,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=o;let i=e;try{e.setPointerCapture(t),this._hooks.add(Dt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{i=_i(e)}this._hooks.add(Ee(i,Pr.POINTER_MOVE,a=>{if(a.buttons!==r){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(Ee(i,Pr.POINTER_UP,a=>this.stopMonitoring(!0)))}};function Joe(e,t,r){let n=null,o=null;if(typeof r.value=="function"?(n="value",o=r.value,o.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof r.get=="function"&&(n="get",o=r.get),!o)throw new Error("not supported");let i=`$memoize$${t}`;r[n]=function(...a){return this.hasOwnProperty(i)||Object.defineProperty(this,i,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,a)}),this[i]}}var yi;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(yi||(yi={}));var hg=class ao extends Fe{constructor(){super(),this.dispatched=!1,this.targets=new _9,this.ignoreTargets=new _9,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Er.runAndSubscribe(Uoe,({window:t,disposables:r})=>{r.add(Ee(t.document,"touchstart",n=>this.onTouchStart(n),{passive:!1})),r.add(Ee(t.document,"touchend",n=>this.onTouchEnd(t,n))),r.add(Ee(t.document,"touchmove",n=>this.onTouchMove(n),{passive:!1}))},{window:xn,disposables:this._store}))}static addTarget(t){if(!ao.isTouchDevice())return Fe.None;ao.INSTANCE||(ao.INSTANCE=y9(new ao));let r=ao.INSTANCE.targets.push(t);return Dt(r)}static ignoreTarget(t){if(!ao.isTouchDevice())return Fe.None;ao.INSTANCE||(ao.INSTANCE=y9(new ao));let r=ao.INSTANCE.ignoreTargets.push(t);return Dt(r)}static isTouchDevice(){return"ontouchstart"in xn||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,o=t.targetTouches.length;n<o;n++){let i=t.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:r,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[r],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};let a=this.newGestureEvent(yi.Start,i.target);a.pageX=i.pageX,a.pageY=i.pageY,this.dispatchEvent(a)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,r){let n=Date.now(),o=Object.keys(this.activeTouches).length;for(let i=0,a=r.changedTouches.length;i<a;i++){let s=r.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}let l=this.activeTouches[s.identifier],c=Date.now()-l.initialTimeStamp;if(c<ao.HOLD_DELAY&&Math.abs(l.initialPageX-hn(l.rollingPageX))<30&&Math.abs(l.initialPageY-hn(l.rollingPageY))<30){let u=this.newGestureEvent(yi.Tap,l.initialTarget);u.pageX=hn(l.rollingPageX),u.pageY=hn(l.rollingPageY),this.dispatchEvent(u)}else if(c>=ao.HOLD_DELAY&&Math.abs(l.initialPageX-hn(l.rollingPageX))<30&&Math.abs(l.initialPageY-hn(l.rollingPageY))<30){let u=this.newGestureEvent(yi.Contextmenu,l.initialTarget);u.pageX=hn(l.rollingPageX),u.pageY=hn(l.rollingPageY),this.dispatchEvent(u)}else if(o===1){let u=hn(l.rollingPageX),d=hn(l.rollingPageY),f=hn(l.rollingTimestamps)-l.rollingTimestamps[0],m=u-l.rollingPageX[0],p=d-l.rollingPageY[0],h=[...this.targets].filter(y=>l.initialTarget instanceof Node&&y.contains(l.initialTarget));this.inertia(t,h,n,Math.abs(m)/f,m>0?1:-1,u,Math.abs(p)/f,p>0?1:-1,d)}this.dispatchEvent(this.newGestureEvent(yi.End,l.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(r.preventDefault(),r.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,r){let n=document.createEvent("CustomEvent");return n.initEvent(t,!1,!0),n.initialTarget=r,n.tapCount=0,n}dispatchEvent(t){if(t.type===yi.Tap){let r=new Date().getTime(),n=0;r-this._lastSetTapCountTime>ao.CLEAR_TAP_COUNT_TIME?n=1:n=2,this._lastSetTapCountTime=r,t.tapCount=n}else(t.type===yi.Change||t.type===yi.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let n of this.ignoreTargets)if(n.contains(t.initialTarget))return;let r=[];for(let n of this.targets)if(n.contains(t.initialTarget)){let o=0,i=t.initialTarget;for(;i&&i!==n;)o++,i=i.parentElement;r.push([o,n])}r.sort((n,o)=>n[0]-o[0]);for(let[n,o]of r)o.dispatchEvent(t),this.dispatched=!0}}inertia(t,r,n,o,i,a,s,l,c){this.handle=bI(t,()=>{let u=Date.now(),d=u-n,f=0,m=0,p=!0;o+=ao.SCROLL_FRICTION*d,s+=ao.SCROLL_FRICTION*d,o>0&&(p=!1,f=i*o*d),s>0&&(p=!1,m=l*s*d);let h=this.newGestureEvent(yi.Change);h.translationX=f,h.translationY=m,r.forEach(y=>y.dispatchEvent(h)),p||this.inertia(t,r,u,o,i,a+f,s,l,c+m)})}onTouchMove(t){let r=Date.now();for(let n=0,o=t.changedTouches.length;n<o;n++){let i=t.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(i.identifier))){console.warn("end of an UNKNOWN touch",i);continue}let a=this.activeTouches[i.identifier],s=this.newGestureEvent(yi.Change,a.initialTarget);s.translationX=i.pageX-hn(a.rollingPageX),s.translationY=i.pageY-hn(a.rollingPageY),s.pageX=i.pageX,s.pageY=i.pageY,this.dispatchEvent(s),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(i.pageX),a.rollingPageY.push(i.pageY),a.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};hg.SCROLL_FRICTION=-.005,hg.HOLD_DELAY=700,hg.CLEAR_TAP_COUNT_TIME=400,Qt([Joe],hg,"isTouchDevice",1);var Yoe=hg,kR=class extends Fe{onclick(e,t){this._register(Ee(e,Pr.CLICK,r=>t(new pg(_i(e),r))))}onmousedown(e,t){this._register(Ee(e,Pr.MOUSE_DOWN,r=>t(new pg(_i(e),r))))}onmouseover(e,t){this._register(Ee(e,Pr.MOUSE_OVER,r=>t(new pg(_i(e),r))))}onmouseleave(e,t){this._register(Ee(e,Pr.MOUSE_LEAVE,r=>t(new pg(_i(e),r))))}onkeydown(e,t){this._register(Ee(e,Pr.KEY_DOWN,r=>t(new K$(r))))}onkeyup(e,t){this._register(Ee(e,Pr.KEY_UP,r=>t(new K$(r))))}oninput(e,t){this._register(Ee(e,Pr.INPUT,t))}onblur(e,t){this._register(Ee(e,Pr.BLUR,t))}onfocus(e,t){this._register(Ee(e,Pr.FOCUS,t))}onchange(e,t){this._register(Ee(e,Pr.CHANGE,t))}ignoreGesture(e){return Yoe.ignoreTarget(e)}},B9=11,ene=class extends kR{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=B9+"px",this.domNode.style.height=B9+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new Gj),this._register(F9(this.bgDomNode,Pr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(F9(this.domNode,Pr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new qoe),this._pointerdownScheduleRepeatTimer=this._register(new wR)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,_i(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},tne=class G${constructor(t,r,n,o,i,a,s){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(r=r|0,n=n|0,o=o|0,i=i|0,a=a|0,s=s|0),this.rawScrollLeft=o,this.rawScrollTop=s,r<0&&(r=0),o+r>n&&(o=n-r),o<0&&(o=0),i<0&&(i=0),s+i>a&&(s=a-i),s<0&&(s=0),this.width=r,this.scrollWidth=n,this.scrollLeft=o,this.height=i,this.scrollHeight=a,this.scrollTop=s}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,r){return new G$(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,r?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,r?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new G$(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,r){let n=this.width!==t.width,o=this.scrollWidth!==t.scrollWidth,i=this.scrollLeft!==t.scrollLeft,a=this.height!==t.height,s=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:r,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:o,scrollLeftChanged:i,heightChanged:a,scrollHeightChanged:s,scrollTopChanged:l}}},rne=class extends Fe{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new tne(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){let r=this._state.withScrollDimensions(e,t);this._setState(r,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;let n;t?n=new M9(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{let r=this._state.withScrollPosition(e);this._smoothScrolling=M9.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let r=this._state;r.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(r,t)))}},L9=class{constructor(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}};function _$(e,t){let r=t-e;return function(n){return e+r*ine(n)}}function one(e,t,r){return function(n){return n<r?e(n/r):t((n-r)/(1-r))}}var M9=class X${constructor(t,r,n,o){this.from=t,this.to=r,this.duration=o,this.startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,r,n){if(Math.abs(t-r)>2.5*n){let o,i;return t<r?(o=t+.75*n,i=r-.75*n):(o=t-.75*n,i=r+.75*n),one(_$(t,o),_$(i,r),.33)}return _$(t,r)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let r=(t-this.startTime)/this.duration;if(r<1){let n=this.scrollLeft(r),o=this.scrollTop(r);return new L9(n,o,!1)}return new L9(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,r,n){return X$.start(t,r,n)}static start(t,r,n){n=n+10;let o=Date.now()-10;return new X$(t,r,o,n)}};function nne(e){return Math.pow(e,3)}function ine(e){return 1-nne(1-e)}var ane=class extends Fe{constructor(e,t,r){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=r,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new wR)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}},sne=140,Xj=class extends kR{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new ane(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Gj),this._shouldRender=!0,this.domNode=_g(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(Ee(this.domNode.domNode,Pr.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new ene(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,r,n){this.slider=_g(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof r=="number"&&this.slider.setWidth(r),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Ee(this.slider.domNode,Pr.POINTER_DOWN,o=>{o.button===0&&(o.preventDefault(),this._sliderPointerDown(o))})),this.onclick(this.slider.domNode,o=>{o.leftButton&&o.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,r=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);r<=o&&o<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,r;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,r=e.offsetY;else{let o=Koe(this.domNode.domNode);t=e.pageX-o.left,r=e.pageY-o.top}let n=this._pointerDownRelativePosition(t,r);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),r=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,o=>{let i=this._sliderOrthogonalPointerPosition(o),a=Math.abs(i-r);if(Vj&&a>sne){this._setDesiredScrollPositionNow(n.getScrollPosition());return}let s=this._sliderPointerPosition(o)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(s))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},Qj=class Q${constructor(t,r,n,o,i,a){this._scrollbarSize=Math.round(r),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(t),this._visibleSize=o,this._scrollSize=i,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Q$(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let r=Math.round(t);return this._visibleSize!==r?(this._visibleSize=r,this._refreshComputedValues(),!0):!1}setScrollSize(t){let r=Math.round(t);return this._scrollSize!==r?(this._scrollSize=r,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let r=Math.round(t);return this._scrollPosition!==r?(this._scrollPosition=r,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,r,n,o,i){let a=Math.max(0,n-t),s=Math.max(0,a-2*r),l=o>0&&o>n;if(!l)return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(n*s/o))),u=(s-c)/(o-n),d=i*u;return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){let t=Q$._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize-this._computedSliderSize/2;return Math.round(r/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize,n=this._scrollPosition;return r<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let r=this._computedSliderPosition+t;return Math.round(r/this._computedSliderRatio)}},lne=class extends Xj{constructor(e,t,r){let n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new Qj(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,n.width,n.scrollWidth,o.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},cne=class extends Xj{constructor(e,t,r){let n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new Qj(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},une=500,j9=50,U9=!0,dne=class{constructor(e,t,r){this.timestamp=e,this.deltaX=t,this.deltaY=r,this.score=0}},J$=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,r=0,n=1,o=this._rear;do{let i=o===this._front?t:Math.pow(2,-n);if(t-=i,r+=this._memory[o].score*i,o===this._front)break;o=(this._capacity+o-1)%this._capacity,n++}while(!0);return r<=.5}acceptStandardWheelEvent(t){if(_R){let r=_i(t.browserEvent),n=soe(r);this.accept(Date.now(),t.deltaX*n,t.deltaY*n)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,r,n){let o=null,i=new dne(t,r,n);this._front===-1&&this._rear===-1?(this._memory[0]=i,this._front=0,this._rear=0):(o=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i),i.score=this._computeScore(i,o)}_computeScore(t,r){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let n=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(n+=.25),r){let o=Math.abs(t.deltaX),i=Math.abs(t.deltaY),a=Math.abs(r.deltaX),s=Math.abs(r.deltaY),l=Math.max(Math.min(o,a),1),c=Math.max(Math.min(i,s),1),u=Math.max(o,a),d=Math.max(i,s);u%l===0&&d%c===0&&(n-=.5)}return Math.min(Math.max(n,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};J$.INSTANCE=new J$;var fne=J$,mne=class extends kR{constructor(e,t,r){super(),this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new ne),this.onWillScroll=this._onWillScroll.event,this._options=hne(t),this._scrollable=r,this._register(this._scrollable.onScroll(o=>{this._onWillScroll.fire(o),this._onDidScroll(o),this._onScroll.fire(o)}));let n={onMouseWheel:o=>this._onMouseWheel(o),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new cne(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new lne(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=_g(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=_g(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=_g(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,o=>this._onMouseOver(o)),this.onmouseleave(this._listenOnDomNode,o=>this._onMouseLeave(o)),this._hideTimeout=this._register(new wR),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=uu(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,la&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new R9(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=uu(this._mouseWheelToDispose),e)){let t=r=>{this._onMouseWheel(new R9(r))};this._mouseWheelToDispose.push(Ee(this._listenOnDomNode,Pr.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=fne.INSTANCE;U9&&t.acceptStandardWheelEvent(e);let r=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&i+o===0?i=o=0:Math.abs(o)>=Math.abs(i)?i=0:o=0),this._options.flipAxes&&([o,i]=[i,o]);let a=!la&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!i&&(i=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(i=i*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);let s=this._scrollable.getFutureScrollPosition(),l={};if(o){let c=j9*o,u=s.scrollTop-(c<0?Math.floor(c):Math.ceil(c));this._verticalScrollbar.writeScrollPosition(l,u)}if(i){let c=j9*i,u=s.scrollLeft-(c<0?Math.floor(c):Math.ceil(c));this._horizontalScrollbar.writeScrollPosition(l,u)}l=this._scrollable.validateScrollPosition(l),(s.scrollLeft!==l.scrollLeft||s.scrollTop!==l.scrollTop)&&(U9&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(l):this._scrollable.setScrollPositionNow(l),r=!0)}let n=r;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,r=e.scrollLeft>0,n=r?" left":"",o=t?" top":"",i=r||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${i}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),une)}},pne=class extends mne{constructor(e,t,r){super(e,t,r)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function hne(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,la&&(t.className+=" mac"),t}var Y$=class extends Fe{constructor(e,t,r,n,o,i,a,s){super(),this._bufferService=r,this._optionsService=a,this._renderService=s,this._onRequestScrollLines=this._register(new ne),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let l=this._register(new rne({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>bI(n.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{l.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new pne(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},l)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(o.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(Er.runAndSubscribe(i.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=i.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Dt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=n.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(Dt(()=>this._styleElement.remove())),this._register(Er.runAndSubscribe(i.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${i.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${i.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${i.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
88
+ `)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(c=>this._handleScroll(c)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:this._optionsService.rawOptions.overviewRuler?.width||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),r=t-this._bufferService.buffer.ydisp;r!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(r)),this._isHandlingScroll=!1}};Y$=Qt([me(2,Po),me(3,os),me(4,kj),me(5,Gf),me(6,$o),me(7,ns)],Y$);var eR=class extends Fe{constructor(e,t,r,n,o){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=r,this._decorationService=n,this._renderService=o,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(i=>this._removeDecoration(i))),this._register(Dt(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",e?.options?.layer==="top"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let r=e.options.x??0;return r&&r>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let r=this._decorationElements.get(e);r||(r=this._createElement(e),e.element=r,this._decorationElements.set(e,r),this._container.appendChild(r),e.onDispose(()=>{this._decorationElements.delete(e),r.remove()})),r.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(r.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,r.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,r.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,r.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(r)}}_refreshXPosition(e,t=e.element){if(!t)return;let r=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=r?`${r*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=r?`${r*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};eR=Qt([me(1,Po),me(2,os),me(3,Rg),me(4,ns)],eR);var gne=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,r){return t>=e.startBufferLine-this._linePadding[r||"full"]&&t<=e.endBufferLine+this._linePadding[r||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},aa={full:0,left:0,center:0,right:0},Il={full:0,left:0,center:0,right:0},lg={full:0,left:0,center:0,right:0},yI=class extends Fe{constructor(e,t,r,n,o,i,a,s){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=r,this._decorationService=n,this._renderService=o,this._optionsService=i,this._themeService=a,this._coreBrowserService=s,this._colorZoneStore=new gne,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement),this._register(Dt(()=>this._canvas?.remove()));let l=this._canvas.getContext("2d");if(l)this._ctx=l;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){return this._optionsService.options.overviewRuler?.width||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Il.full=this._canvas.width,Il.left=e,Il.center=t,Il.right=e,this._refreshDrawHeightConstants(),lg.full=1,lg.left=1,lg.center=1+Il.left,lg.right=1+Il.left+Il.center}_refreshDrawHeightConstants(){aa.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);aa.left=t,aa.center=t,aa.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*aa.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*aa.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*aa.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*aa.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!=="full"&&this._renderColorZone(t);for(let t of e)t.position==="full"&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(lg[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-aa[e.position||"full"]/2),Il[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+aa[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};yI=Qt([me(2,Po),me(3,Rg),me(4,ns),me(5,$o),me(6,Gf),me(7,os)],yI);var ee;(e=>(e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF=`
89
+ `,e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="\x1B",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL="\x7F"))(ee||(ee={}));var Ig;(e=>(e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8A",e.PLD="\x8B",e.PLU="\x8C",e.RI="\x8D",e.SS2="\x8E",e.SS3="\x8F",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9A",e.CSI="\x9B",e.ST="\x9C",e.OSC="\x9D",e.PM="\x9E",e.APC="\x9F"))(Ig||(Ig={}));var tR;(e=>e.ST=`${ee.ESC}\\`)(tR||(tR={}));var rR=class{constructor(e,t,r,n,o,i){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=n,this._coreService=o,this._renderService=i,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let r;t.start+=this._dataAlreadySent.length,this._isComposing?r=this._textarea.value.substring(t.start,this._compositionPosition.start):r=this._textarea.value.substring(t.start),r.length>0&&this._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;let t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,r=t.replace(e,"");this._dataAlreadySent=r,t.length>e.length?this._coreService.triggerDataEvent(r,!0):t.length<e.length?this._coreService.triggerDataEvent(`${ee.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._renderService.dimensions.css.cell.height,n=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,o=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=o+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let i=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=n+"px",this._textarea.style.width=Math.max(i.width,1)+"px",this._textarea.style.height=Math.max(i.height,1)+"px",this._textarea.style.lineHeight=i.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};rR=Qt([me(2,Po),me(3,$o),me(4,fu),me(5,ns)],rR);var $r=0,Rr=0,Dr=0,Xt=0,V9={css:"#00000000",rgba:0},or;(e=>{function t(o,i,a,s){return s!==void 0?`#${iu(o)}${iu(i)}${iu(a)}${iu(s)}`:`#${iu(o)}${iu(i)}${iu(a)}`}e.toCss=t;function r(o,i,a,s=255){return(o<<24|i<<16|a<<8|s)>>>0}e.toRgba=r;function n(o,i,a,s){return{css:e.toCss(o,i,a,s),rgba:e.toRgba(o,i,a,s)}}e.toColor=n})(or||(or={}));var _t;(e=>{function t(l,c){if(Xt=(c.rgba&255)/255,Xt===1)return{css:c.css,rgba:c.rgba};let u=c.rgba>>24&255,d=c.rgba>>16&255,f=c.rgba>>8&255,m=l.rgba>>24&255,p=l.rgba>>16&255,h=l.rgba>>8&255;$r=m+Math.round((u-m)*Xt),Rr=p+Math.round((d-p)*Xt),Dr=h+Math.round((f-h)*Xt);let y=or.toCss($r,Rr,Dr),v=or.toRgba($r,Rr,Dr);return{css:y,rgba:v}}e.blend=t;function r(l){return(l.rgba&255)===255}e.isOpaque=r;function n(l,c,u){let d=wg.ensureContrastRatio(l.rgba,c.rgba,u);if(d)return or.toColor(d>>24&255,d>>16&255,d>>8&255)}e.ensureContrastRatio=n;function o(l){let c=(l.rgba|255)>>>0;return[$r,Rr,Dr]=wg.toChannels(c),{css:or.toCss($r,Rr,Dr),rgba:c}}e.opaque=o;function i(l,c){return Xt=Math.round(c*255),[$r,Rr,Dr]=wg.toChannels(l.rgba),{css:or.toCss($r,Rr,Dr,Xt),rgba:or.toRgba($r,Rr,Dr,Xt)}}e.opacity=i;function a(l,c){return Xt=l.rgba&255,i(l,Xt*c/255)}e.multiplyOpacity=a;function s(l){return[l.rgba>>24&255,l.rgba>>16&255,l.rgba>>8&255]}e.toColorRGB=s})(_t||(_t={}));var Bt;(e=>{let t,r;try{let o=document.createElement("canvas");o.width=1,o.height=1;let i=o.getContext("2d",{willReadFrequently:!0});i&&(t=i,t.globalCompositeOperation="copy",r=t.createLinearGradient(0,0,1,1))}catch{}function n(o){if(o.match(/#[\da-f]{3,8}/i))switch(o.length){case 4:return $r=parseInt(o.slice(1,2).repeat(2),16),Rr=parseInt(o.slice(2,3).repeat(2),16),Dr=parseInt(o.slice(3,4).repeat(2),16),or.toColor($r,Rr,Dr);case 5:return $r=parseInt(o.slice(1,2).repeat(2),16),Rr=parseInt(o.slice(2,3).repeat(2),16),Dr=parseInt(o.slice(3,4).repeat(2),16),Xt=parseInt(o.slice(4,5).repeat(2),16),or.toColor($r,Rr,Dr,Xt);case 7:return{css:o,rgba:(parseInt(o.slice(1),16)<<8|255)>>>0};case 9:return{css:o,rgba:parseInt(o.slice(1),16)>>>0}}let i=o.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(i)return $r=parseInt(i[1]),Rr=parseInt(i[2]),Dr=parseInt(i[3]),Xt=Math.round((i[5]===void 0?1:parseFloat(i[5]))*255),or.toColor($r,Rr,Dr,Xt);if(!t||!r)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=r,t.fillStyle=o,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[$r,Rr,Dr,Xt]=t.getImageData(0,0,1,1).data,Xt!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:or.toRgba($r,Rr,Dr,Xt),css:o}}e.toColor=n})(Bt||(Bt={}));var so;(e=>{function t(n){return r(n>>16&255,n>>8&255,n&255)}e.relativeLuminance=t;function r(n,o,i){let a=n/255,s=o/255,l=i/255,c=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),u=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),d=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4);return c*.2126+u*.7152+d*.0722}e.relativeLuminance2=r})(so||(so={}));var wg;(e=>{function t(a,s){if(Xt=(s&255)/255,Xt===1)return s;let l=s>>24&255,c=s>>16&255,u=s>>8&255,d=a>>24&255,f=a>>16&255,m=a>>8&255;return $r=d+Math.round((l-d)*Xt),Rr=f+Math.round((c-f)*Xt),Dr=m+Math.round((u-m)*Xt),or.toRgba($r,Rr,Dr)}e.blend=t;function r(a,s,l){let c=so.relativeLuminance(a>>8),u=so.relativeLuminance(s>>8);if(Ya(c,u)<l){if(u<c){let m=n(a,s,l),p=Ya(c,so.relativeLuminance(m>>8));if(p<l){let h=o(a,s,l),y=Ya(c,so.relativeLuminance(h>>8));return p>y?m:h}return m}let d=o(a,s,l),f=Ya(c,so.relativeLuminance(d>>8));if(f<l){let m=n(a,s,l),p=Ya(c,so.relativeLuminance(m>>8));return f>p?d:m}return d}}e.ensureContrastRatio=r;function n(a,s,l){let c=a>>24&255,u=a>>16&255,d=a>>8&255,f=s>>24&255,m=s>>16&255,p=s>>8&255,h=Ya(so.relativeLuminance2(f,m,p),so.relativeLuminance2(c,u,d));for(;h<l&&(f>0||m>0||p>0);)f-=Math.max(0,Math.ceil(f*.1)),m-=Math.max(0,Math.ceil(m*.1)),p-=Math.max(0,Math.ceil(p*.1)),h=Ya(so.relativeLuminance2(f,m,p),so.relativeLuminance2(c,u,d));return(f<<24|m<<16|p<<8|255)>>>0}e.reduceLuminance=n;function o(a,s,l){let c=a>>24&255,u=a>>16&255,d=a>>8&255,f=s>>24&255,m=s>>16&255,p=s>>8&255,h=Ya(so.relativeLuminance2(f,m,p),so.relativeLuminance2(c,u,d));for(;h<l&&(f<255||m<255||p<255);)f=Math.min(255,f+Math.ceil((255-f)*.1)),m=Math.min(255,m+Math.ceil((255-m)*.1)),p=Math.min(255,p+Math.ceil((255-p)*.1)),h=Ya(so.relativeLuminance2(f,m,p),so.relativeLuminance2(c,u,d));return(f<<24|m<<16|p<<8|255)>>>0}e.increaseLuminance=o;function i(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}e.toChannels=i})(wg||(wg={}));function iu(e){let t=e.toString(16);return t.length<2?"0"+t:t}function Ya(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var vne=class extends $g{constructor(e,t,r){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=r}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},_I=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new Kn}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let r=[],n=t.translateToString(!0),o=0,i=0,a=0,s=t.getFg(0),l=t.getBg(0);for(let c=0;c<t.getTrimmedLength();c++)if(t.loadCell(c,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==s||this._workCell.bg!==l){if(c-o>1){let u=this._getJoinedRanges(n,a,i,t,o);for(let d=0;d<u.length;d++)r.push(u[d])}o=c,a=i,s=this._workCell.fg,l=this._workCell.bg}i+=this._workCell.getChars().length||kl.length}if(this._bufferService.cols-o>1){let c=this._getJoinedRanges(n,a,i,t,o);for(let u=0;u<c.length;u++)r.push(c[u])}return r}_getJoinedRanges(e,t,r,n,o){let i=e.substring(t,r),a=[];try{a=this._characterJoiners[0].handler(i)}catch(s){console.error(s)}for(let s=1;s<this._characterJoiners.length;s++)try{let l=this._characterJoiners[s].handler(i);for(let c=0;c<l.length;c++)_I._mergeRanges(a,l[c])}catch(l){console.error(l)}return this._stringRangesToCellRanges(a,n,o),a}_stringRangesToCellRanges(e,t,r){let n=0,o=!1,i=0,a=e[n];if(a){for(let s=r;s<this._bufferService.cols;s++){let l=t.getWidth(s),c=t.getString(s).length||kl.length;if(l!==0){if(!o&&a[0]<=i&&(a[0]=s,o=!0),a[1]<=i){if(a[1]=s,a=e[++n],!a)break;a[0]<=i?(a[0]=s,o=!0):o=!1}i+=c}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let r=!1;for(let n=0;n<e.length;n++){let o=e[n];if(r){if(t[1]<=o[0])return e[n-1][1]=t[1],e;if(t[1]<=o[1])return e[n-1][1]=Math.max(t[1],o[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=o[0])return e.splice(n,0,t),e;if(t[1]<=o[1])return o[0]=Math.min(t[0],o[0]),e;t[0]<o[1]&&(o[0]=Math.min(t[0],o[0]),r=!0);continue}}return r?e[e.length-1][1]=t[1]:e.push(t),e}};_I=Qt([me(0,Po)],_I);function xne(e){return 57508<=e&&e<=57558}function bne(e){return 9472<=e&&e<=9631}function yne(e){return xne(e)||bne(e)}function _ne(){return{css:{canvas:nI(),cell:nI()},device:{canvas:nI(),cell:nI(),char:{width:0,height:0,left:0,top:0}}}}function nI(){return{width:0,height:0}}var oR=class{constructor(e,t,r,n,o,i,a){this._document=e,this._characterJoinerService=t,this._optionsService=r,this._coreBrowserService=n,this._coreService=o,this._decorationService=i,this._themeService=a,this._workCell=new Kn,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,r){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r}createRow(e,t,r,n,o,i,a,s,l,c,u){let d=[],f=this._characterJoinerService.getJoinedCharacters(t),m=this._themeService.colors,p=e.getNoBgTrimmedLength();r&&p<i+1&&(p=i+1);let h,y=0,v="",g=0,x=0,_=0,w=0,I=!1,k=0,C=!1,U=0,H=0,W=[],X=c!==-1&&u!==-1;for(let N=0;N<p;N++){e.loadCell(N,this._workCell);let A=this._workCell.getWidth();if(A===0)continue;let B=!1,T=N>=H,M=N,$=this._workCell;if(f.length>0&&N===f[0][0]&&T){let Pe=f.shift(),Et=this._isCellInSelection(Pe[0],t);for(g=Pe[0]+1;g<Pe[1];g++)T&&(T=Et===this._isCellInSelection(g,t));T&&(T=!r||i<Pe[0]||i>=Pe[1]),T?(B=!0,$=new vne(this._workCell,e.translateToString(!0,Pe[0],Pe[1]),Pe[1]-Pe[0]),M=Pe[1]-1,A=$.getWidth()):H=Pe[1]}let O=this._isCellInSelection(N,t),Z=r&&N===i,Y=X&&N>=c&&N<=u,te=!1;this._decorationService.forEachDecorationAtCell(N,t,void 0,Pe=>{te=!0});let ve=$.getChars()||kl;if(ve===" "&&($.isUnderline()||$.isOverline())&&(ve="\xA0"),U=A*s-l.get(ve,$.isBold(),$.isItalic()),!h)h=this._document.createElement("span");else if(y&&(O&&C||!O&&!C&&$.bg===x)&&(O&&C&&m.selectionForeground||$.fg===_)&&$.extended.ext===w&&Y===I&&U===k&&!Z&&!B&&!te&&T){$.isInvisible()?v+=kl:v+=ve,y++;continue}else y&&(h.textContent=v),h=this._document.createElement("span"),y=0,v="";if(x=$.bg,_=$.fg,w=$.extended.ext,I=Y,k=U,C=O,B&&i>=N&&i<=M&&(i=N),!this._coreService.isCursorHidden&&Z&&this._coreService.isCursorInitialized){if(W.push("xterm-cursor"),this._coreBrowserService.isFocused)a&&W.push("xterm-cursor-blink"),W.push(n==="bar"?"xterm-cursor-bar":n==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(o)switch(o){case"outline":W.push("xterm-cursor-outline");break;case"block":W.push("xterm-cursor-block");break;case"bar":W.push("xterm-cursor-bar");break;case"underline":W.push("xterm-cursor-underline");break;default:break}}if($.isBold()&&W.push("xterm-bold"),$.isItalic()&&W.push("xterm-italic"),$.isDim()&&W.push("xterm-dim"),$.isInvisible()?v=kl:v=$.getChars()||kl,$.isUnderline()&&(W.push(`xterm-underline-${$.extended.underlineStyle}`),v===" "&&(v="\xA0"),!$.isUnderlineColorDefault()))if($.isUnderlineColorRGB())h.style.textDecorationColor=`rgb(${$g.toColorRGB($.getUnderlineColor()).join(",")})`;else{let Pe=$.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&$.isBold()&&Pe<8&&(Pe+=8),h.style.textDecorationColor=m.ansi[Pe].css}$.isOverline()&&(W.push("xterm-overline"),v===" "&&(v="\xA0")),$.isStrikethrough()&&W.push("xterm-strikethrough"),Y&&(h.style.textDecoration="underline");let ge=$.getFgColor(),q=$.getFgColorMode(),ae=$.getBgColor(),ye=$.getBgColorMode(),se=!!$.isInverse();if(se){let Pe=ge;ge=ae,ae=Pe;let Et=q;q=ye,ye=Et}let ke,ze,Ve=!1;this._decorationService.forEachDecorationAtCell(N,t,void 0,Pe=>{Pe.options.layer!=="top"&&Ve||(Pe.backgroundColorRGB&&(ye=50331648,ae=Pe.backgroundColorRGB.rgba>>8&16777215,ke=Pe.backgroundColorRGB),Pe.foregroundColorRGB&&(q=50331648,ge=Pe.foregroundColorRGB.rgba>>8&16777215,ze=Pe.foregroundColorRGB),Ve=Pe.options.layer==="top")}),!Ve&&O&&(ke=this._coreBrowserService.isFocused?m.selectionBackgroundOpaque:m.selectionInactiveBackgroundOpaque,ae=ke.rgba>>8&16777215,ye=50331648,Ve=!0,m.selectionForeground&&(q=50331648,ge=m.selectionForeground.rgba>>8&16777215,ze=m.selectionForeground)),Ve&&W.push("xterm-decoration-top");let Ke;switch(ye){case 16777216:case 33554432:Ke=m.ansi[ae],W.push(`xterm-bg-${ae}`);break;case 50331648:Ke=or.toColor(ae>>16,ae>>8&255,ae&255),this._addStyle(h,`background-color:#${H9((ae>>>0).toString(16),"0",6)}`);break;default:se?(Ke=m.foreground,W.push("xterm-bg-257")):Ke=m.background}switch(ke||$.isDim()&&(ke=_t.multiplyOpacity(Ke,.5)),q){case 16777216:case 33554432:$.isBold()&&ge<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ge+=8),this._applyMinimumContrast(h,Ke,m.ansi[ge],$,ke,void 0)||W.push(`xterm-fg-${ge}`);break;case 50331648:let Pe=or.toColor(ge>>16&255,ge>>8&255,ge&255);this._applyMinimumContrast(h,Ke,Pe,$,ke,ze)||this._addStyle(h,`color:#${H9(ge.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(h,Ke,m.foreground,$,ke,ze)||se&&W.push("xterm-fg-257")}W.length&&(h.className=W.join(" "),W.length=0),!Z&&!B&&!te&&T?y++:h.textContent=v,U!==this.defaultSpacing&&(h.style.letterSpacing=`${U}px`),d.push(h),N=M}return h&&y&&(h.textContent=v),d}_applyMinimumContrast(e,t,r,n,o,i){if(this._optionsService.rawOptions.minimumContrastRatio===1||yne(n.getCode()))return!1;let a=this._getContrastCache(n),s;if(!o&&!i&&(s=a.getColor(t.rgba,r.rgba)),s===void 0){let l=this._optionsService.rawOptions.minimumContrastRatio/(n.isDim()?2:1);s=_t.ensureContrastRatio(o||t,i||r,l),a.setColor((o||t).rgba,(i||r).rgba,s??null)}return s?(this._addStyle(e,`color:${s.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let r=this._selectionStart,n=this._selectionEnd;return!r||!n?!1:this._columnSelectMode?r[0]<=n[0]?e>=r[0]&&t>=r[1]&&e<n[0]&&t<=n[1]:e<r[0]&&t>=r[1]&&e>=n[0]&&t<=n[1]:t>r[1]&&t<n[1]||r[1]===n[1]&&t===r[1]&&e>=r[0]&&e<n[0]||r[1]<n[1]&&t===n[1]&&e<n[0]||r[1]<n[1]&&t===r[1]&&e>=r[0]}};oR=Qt([me(1,$j),me(2,$o),me(3,os),me(4,fu),me(5,Rg),me(6,Gf)],oR);function H9(e,t,r){for(;e.length<r;)e=t+e;return e}var Ine=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let r=e.createElement("span");r.classList.add("xterm-char-measure-element");let n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold";let o=e.createElement("span");o.classList.add("xterm-char-measure-element"),o.style.fontStyle="italic";let i=e.createElement("span");i.classList.add("xterm-char-measure-element"),i.style.fontWeight="bold",i.style.fontStyle="italic",this._measureElements=[r,n,o,i],this._container.appendChild(r),this._container.appendChild(n),this._container.appendChild(o),this._container.appendChild(i),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,r,n){e===this._font&&t===this._fontSize&&r===this._weight&&n===this._weightBold||(this._font=e,this._fontSize=t,this._weight=r,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${r}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${r}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(e,t,r){let n=0;if(!t&&!r&&e.length===1&&(n=e.charCodeAt(0))<256){if(this._flat[n]!==-9999)return this._flat[n];let a=this._measure(e,0);return a>0&&(this._flat[n]=a),a}let o=e;t&&(o+="B"),r&&(o+="I");let i=this._holey.get(o);if(i===void 0){let a=0;t&&(a|=1),r&&(a|=2),i=this._measure(e,a),i>0&&this._holey.set(o,i)}return i}_measure(e,t){let r=this._measureElements[t];return r.textContent=e.repeat(32),r.offsetWidth/32}},wne=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,r,n=!1){if(this.selectionStart=t,this.selectionEnd=r,!t||!r||t[0]===r[0]&&t[1]===r[1]){this.clear();return}let o=e.buffers.active.ydisp,i=t[1]-o,a=r[1]-o,s=Math.max(i,0),l=Math.min(a,e.rows-1);if(s>=e.rows||l<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=n,this.viewportStartRow=i,this.viewportEndRow=a,this.viewportCappedStartRow=s,this.viewportCappedEndRow=l,this.startCol=t[0],this.endCol=r[0]}isCellSelected(e,t,r){return this.hasSelection?(r-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&r>=this.viewportCappedStartRow&&t<this.endCol&&r<=this.viewportCappedEndRow:t<this.startCol&&r>=this.viewportCappedStartRow&&t>=this.endCol&&r<=this.viewportCappedEndRow:r>this.viewportStartRow&&r<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol):!1}};function Sne(){return new wne}var I$="xterm-dom-renderer-owner-",Wn="xterm-rows",iI="xterm-fg-",W9="xterm-bg-",cg="xterm-focus",aI="xterm-selection",kne=1,nR=class extends Fe{constructor(e,t,r,n,o,i,a,s,l,c,u,d,f,m){super(),this._terminal=e,this._document=t,this._element=r,this._screenElement=n,this._viewportElement=o,this._helperContainer=i,this._linkifier2=a,this._charSizeService=l,this._optionsService=c,this._bufferService=u,this._coreService=d,this._coreBrowserService=f,this._themeService=m,this._terminalClass=kne++,this._rowElements=[],this._selectionRenderModel=Sne(),this.onRequestRedraw=this._register(new ne).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(Wn),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(aI),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=_ne(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(p=>this._injectCss(p))),this._injectCss(this._themeService.colors),this._rowFactory=s.createInstance(oR,document),this._element.classList.add(I$+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(p=>this._handleLinkHover(p))),this._register(this._linkifier2.onHideLinkUnderline(p=>this._handleLinkLeave(p))),this._register(Dt(()=>{this._element.classList.remove(I$+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new Ine(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let r of this._rowElements)r.style.width=`${this.dimensions.css.canvas.width}px`,r.style.height=`${this.dimensions.css.cell.height}px`,r.style.lineHeight=`${this.dimensions.css.cell.height}px`,r.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${Wn} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${Wn} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${Wn} .xterm-dim { color: ${_t.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let r=`blink_underline_${this._terminalClass}`,n=`blink_bar_${this._terminalClass}`,o=`blink_block_${this._terminalClass}`;t+=`@keyframes ${r} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${n} { 50% { box-shadow: none; }}`,t+=`@keyframes ${o} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${Wn}.${cg} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Wn}.${cg} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${Wn}.${cg} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${o} 1s step-end infinite;}${this._terminalSelector} .${Wn} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Wn} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Wn} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Wn} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Wn} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${aI} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${aI} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${aI} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[i,a]of e.ansi.entries())t+=`${this._terminalSelector} .${iI}${i} { color: ${a.css}; }${this._terminalSelector} .${iI}${i}.xterm-dim { color: ${_t.multiplyOpacity(a,.5).css}; }${this._terminalSelector} .${W9}${i} { background-color: ${a.css}; }`;t+=`${this._terminalSelector} .${iI}257 { color: ${_t.opaque(e.background).css}; }${this._terminalSelector} .${iI}257.xterm-dim { color: ${_t.multiplyOpacity(_t.opaque(e.background),.5).css}; }${this._terminalSelector} .${W9}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let r=this._rowElements.length;r<=t;r++){let n=this._document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(cg),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(cg),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,r){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,r),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,r),!this._selectionRenderModel.hasSelection))return;let n=this._selectionRenderModel.viewportStartRow,o=this._selectionRenderModel.viewportEndRow,i=this._selectionRenderModel.viewportCappedStartRow,a=this._selectionRenderModel.viewportCappedEndRow,s=this._document.createDocumentFragment();if(r){let l=e[0]>t[0];s.appendChild(this._createSelectionElement(i,l?t[0]:e[0],l?e[0]:t[0],a-i+1))}else{let l=n===i?e[0]:0,c=i===o?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(i,l,c));let u=a-i-1;if(s.appendChild(this._createSelectionElement(i+1,0,this._bufferService.cols,u)),i!==a){let d=o===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,d))}}this._selectionContainer.appendChild(s)}_createSelectionElement(e,t,r,n=1){let o=this._document.createElement("div"),i=t*this.dimensions.css.cell.width,a=this.dimensions.css.cell.width*(r-t);return i+a>this.dimensions.css.canvas.width&&(a=this.dimensions.css.canvas.width-i),o.style.height=`${n*this.dimensions.css.cell.height}px`,o.style.top=`${e*this.dimensions.css.cell.height}px`,o.style.left=`${i}px`,o.style.width=`${a}px`,o}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let r=this._bufferService.buffer,n=r.ybase+r.y,o=Math.min(r.x,this._bufferService.cols-1),i=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,a=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,s=this._optionsService.rawOptions.cursorInactiveStyle;for(let l=e;l<=t;l++){let c=l+r.ydisp,u=this._rowElements[l],d=r.lines.get(c);if(!u||!d)break;u.replaceChildren(...this._rowFactory.createRow(d,c,c===n,a,s,o,i,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${I$}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,r,n,o,i){r<0&&(e=0),n<0&&(t=0);let a=this._bufferService.rows-1;r=Math.max(Math.min(r,a),0),n=Math.max(Math.min(n,a),0),o=Math.min(o,this._bufferService.cols);let s=this._bufferService.buffer,l=s.ybase+s.y,c=Math.min(s.x,o-1),u=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let m=r;m<=n;++m){let p=m+s.ydisp,h=this._rowElements[m],y=s.lines.get(p);if(!h||!y)break;h.replaceChildren(...this._rowFactory.createRow(y,p,p===l,d,f,c,u,this.dimensions.css.cell.width,this._widthCache,i?m===r?e:0:-1,i?(m===n?t:o)-1:-1))}}};nR=Qt([me(7,xR),me(8,CI),me(9,$o),me(10,Po),me(11,fu),me(12,os),me(13,Gf)],nR);var iR=class extends Fe{constructor(e,t,r){super(),this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=this._register(new ne),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new Pne(this._optionsService))}catch{this._measureStrategy=this._register(new Cne(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};iR=Qt([me(2,$o)],iR);var Jj=class extends Fe{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},Cne=class extends Jj{constructor(e,t,r){super(),this._document=e,this._parentElement=t,this._optionsService=r,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},Pne=class extends Jj{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},$ne=class extends Fe{constructor(e,t,r){super(),this._textarea=e,this._window=t,this.mainDocument=r,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new Rne(this._window)),this._onDprChange=this._register(new ne),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new ne),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(n=>this._screenDprMonitor.setWindow(n))),this._register(Er.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Ee(this._textarea,"focus",()=>this._isFocused=!0)),this._register(Ee(this._textarea,"blur",()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},Rne=class extends Fe{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Kf),this._onDprChange=this._register(new ne),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(Dt(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Ee(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},Dne=class extends Fe{constructor(){super(),this.linkProviders=[],this._register(Dt(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function CR(e,t,r){let n=r.getBoundingClientRect(),o=e.getComputedStyle(r),i=parseInt(o.getPropertyValue("padding-left")),a=parseInt(o.getPropertyValue("padding-top"));return[t.clientX-n.left-i,t.clientY-n.top-a]}function Ene(e,t,r,n,o,i,a,s,l){if(!i)return;let c=CR(e,t,r);if(c)return c[0]=Math.ceil((c[0]+(l?a/2:0))/a),c[1]=Math.ceil(c[1]/s),c[0]=Math.min(Math.max(c[0],1),n+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),o),c}var aR=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,r,n,o){return Ene(window,e,t,r,n,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,o)}getMouseReportCoords(e,t){let r=CR(window,e,t);if(this._charSizeService.hasValidSize)return r[0]=Math.min(Math.max(r[0],0),this._renderService.dimensions.css.canvas.width-1),r[1]=Math.min(Math.max(r[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(r[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(r[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(r[0]),y:Math.floor(r[1])}}};aR=Qt([me(0,ns),me(1,CI)],aR);var Tne=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t,!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},Yj={};xre(Yj,{getSafariVersion:()=>zne,isChromeOS:()=>oU,isFirefox:()=>eU,isIpad:()=>Ane,isIphone:()=>Fne,isLegacyEdge:()=>One,isLinux:()=>PR,isMac:()=>II,isNode:()=>RI,isSafari:()=>tU,isWindows:()=>rU});var RI=typeof process<"u"&&"title"in process,Dg=RI?"node":navigator.userAgent,Eg=RI?"node":navigator.platform,eU=Dg.includes("Firefox"),One=Dg.includes("Edge"),tU=/^((?!chrome|android).)*safari/i.test(Dg);function zne(){if(!tU)return 0;let e=Dg.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var II=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(Eg),Ane=Eg==="iPad",Fne=Eg==="iPhone",rU=["Windows","Win16","Win32","WinCE"].includes(Eg),PR=Eg.indexOf("Linux")>=0,oU=/\bCrOS\b/.test(Dg),nU=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,r=0,n=e.timeRemaining(),o=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),r=Math.max(t,r),o=e.timeRemaining(),r*1.5>o){n-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(n-t))}ms`),this._start();return}n=o}this.clear()}},Nne=class extends nU{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},Bne=class extends nU{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},wI=!RI&&"requestIdleCallback"in window?Bne:Nne,Lne=class{constructor(){this._queue=new wI}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},sR=class extends Fe{constructor(e,t,r,n,o,i,a,s,l){super(),this._rowCount=e,this._optionsService=r,this._charSizeService=n,this._coreService=o,this._coreBrowserService=s,this._renderer=this._register(new Kf),this._pausedResizeTask=new Lne,this._observerDisposable=this._register(new Kf),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new ne),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new ne),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new ne),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new ne),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new Tne((c,u)=>this._renderRows(c,u),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new Mne(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(Dt(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(a.onResize(()=>this._fullRefresh())),this._register(a.buffers.onBufferActivate(()=>this._renderer.value?.clear())),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(i.onDecorationRegistered(()=>this._fullRefresh())),this._register(i.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(a.cols,a.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(a.buffer.y,a.buffer.y,!0))),this._register(l.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(c=>this._registerIntersectionObserver(c,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let r=new e.IntersectionObserver(n=>this._handleIntersectionChange(n[n.length-1]),{threshold:0});r.observe(t),this._observerDisposable.value=Dt(()=>r.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,r=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let n=this._syncOutputHandler.flush();n&&(e=Math.min(e,n.start),t=Math.max(t,n.end)),r||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(t=>this.refreshRows(t.start,t.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value?.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,r){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=r,this._renderer.value?.handleSelectionChanged(e,t,r)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};sR=Qt([me(2,$o),me(3,CI),me(4,fu),me(5,Rg),me(6,Po),me(7,os),me(8,Gf)],sR);var Mne=class{constructor(e,t,r){this._coreBrowserService=e,this._coreService=t,this._onTimeout=r,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function jne(e,t,r,n){let o=r.buffer.x,i=r.buffer.y;if(!r.buffer.hasScrollback)return Hne(o,i,e,t,r,n)+DI(i,t,r,n)+Wne(o,i,e,t,r,n);let a;if(i===t)return a=o>e?"D":"C",Cg(Math.abs(o-e),kg(a,n));a=i>t?"D":"C";let s=Math.abs(i-t),l=Vne(i>t?e:o,r)+(s-1)*r.cols+1+Une(i>t?o:e,r);return Cg(l,kg(a,n))}function Une(e,t){return e-1}function Vne(e,t){return t.cols-e}function Hne(e,t,r,n,o,i){return DI(t,n,o,i).length===0?"":Cg(aU(e,t,e,t-du(t,o),!1,o).length,kg("D",i))}function DI(e,t,r,n){let o=e-du(e,r),i=t-du(t,r),a=Math.abs(o-i)-Zne(e,t,r);return Cg(a,kg(iU(e,t),n))}function Wne(e,t,r,n,o,i){let a;DI(t,n,o,i).length>0?a=n-du(n,o):a=t;let s=n,l=qne(e,t,r,n,o,i);return Cg(aU(e,a,r,s,l==="C",o).length,kg(l,i))}function Zne(e,t,r){let n=0,o=e-du(e,r),i=t-du(t,r);for(let a=0;a<Math.abs(o-i);a++){let s=iU(e,t)==="A"?-1:1;r.buffer.lines.get(o+s*a)?.isWrapped&&n++}return n}function du(e,t){let r=0,n=t.buffer.lines.get(e),o=n?.isWrapped;for(;o&&e>=0&&e<t.rows;)r++,n=t.buffer.lines.get(--e),o=n?.isWrapped;return r}function qne(e,t,r,n,o,i){let a;return DI(r,n,o,i).length>0?a=n-du(n,o):a=t,e<r&&a<=n||e>=r&&a<n?"C":"D"}function iU(e,t){return e>t?"A":"B"}function aU(e,t,r,n,o,i){let a=e,s=t,l="";for(;(a!==r||s!==n)&&s>=0&&s<i.buffer.lines.length;)a+=o?1:-1,o&&a>i.cols-1?(l+=i.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!o&&a<0&&(l+=i.buffer.translateBufferLineToString(s,!1,0,e+1),a=i.cols-1,e=a,s--);return l+i.buffer.translateBufferLineToString(s,!1,e,a)}function kg(e,t){let r=t?"O":"[";return ee.ESC+r+e}function Cg(e,t){e=Math.floor(e);let r="";for(let n=0;n<e;n++)r+=t;return r}var Kne=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function Z9(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var w$=50,Gne=15,Xne=50,Qne=500,Jne="\xA0",Yne=new RegExp(Jne,"g"),lR=class extends Fe{constructor(e,t,r,n,o,i,a,s,l){super(),this._element=e,this._screenElement=t,this._linkifier=r,this._bufferService=n,this._coreService=o,this._mouseService=i,this._optionsService=a,this._renderService=s,this._coreBrowserService=l,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new Kn,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new ne),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new ne),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new ne),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new ne),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=c=>this._handleMouseMove(c),this._mouseUpListener=c=>this._handleMouseUp(c),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(c=>this._handleTrim(c)),this._register(this._bufferService.buffers.onBufferActivate(c=>this._handleBufferActivate(c))),this.enable(),this._model=new Kne(this._bufferService),this._activeSelectionMode=0,this._register(Dt(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(c=>{c.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let r=this._bufferService.buffer,n=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let o=e[0]<t[0]?e[0]:t[0],i=e[0]<t[0]?t[0]:e[0];for(let a=e[1];a<=t[1];a++){let s=r.translateBufferLineToString(a,!0,o,i);n.push(s)}}else{let o=e[1]===t[1]?t[0]:void 0;n.push(r.translateBufferLineToString(e[1],!0,e[0],o));for(let i=e[1]+1;i<=t[1]-1;i++){let a=r.lines.get(i),s=r.translateBufferLineToString(i,!0);a?.isWrapped?n[n.length-1]+=s:n.push(s)}if(e[1]!==t[1]){let i=r.lines.get(t[1]),a=r.translateBufferLineToString(t[1],!0,0,t[0]);i&&i.isWrapped?n[n.length-1]+=a:n.push(a)}}return n.map(o=>o.replace(Yne," ")).join(rU?`\r
90
+ `:`
91
+ `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),PR&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!r||!n||!t?!1:this._areCoordsInSelection(t,r,n)}isCellInSelection(e,t){let r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!r||!n?!1:this._areCoordsInSelection([e,t],r,n)}_areCoordsInSelection(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){let r=this._linkifier.currentLink?.link?.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=Z9(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let n=this._getMouseBufferCoords(e);return n?(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=CR(this._coreBrowserService.window,e,this._screenElement)[1],r=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-w$),w$),t/=w$,t/Math.abs(t)+Math.round(t*(Gne-1)))}shouldForceSelection(e){return II?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),Xne)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(II&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){let n=r.lines.get(this._model.selectionEnd[1]);n&&n.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<Qne&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&r[0]!==void 0&&r[1]!==void 0){let n=jne(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,r=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!r){this._oldHasSelection&&this._fireOnSelectionChange(e,t,r);return}!e||!t||(!this._oldSelectionStart||!this._oldSelectionEnd||e[0]!==this._oldSelectionStart[0]||e[1]!==this._oldSelectionStart[1]||t[0]!==this._oldSelectionEnd[0]||t[1]!==this._oldSelectionEnd[1])&&this._fireOnSelectionChange(e,t,r)}_fireOnSelectionChange(e,t,r){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=r,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let r=t;for(let n=0;t>=n;n++){let o=e.loadCell(n,this._workCell).getChars().length;this._workCell.getWidth()===0?r--:o>1&&t!==n&&(r+=o-1)}return r}setSelection(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,r=!0,n=!0){if(e[0]>=this._bufferService.cols)return;let o=this._bufferService.buffer,i=o.lines.get(e[1]);if(!i)return;let a=o.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(i,e[0]),l=s,c=e[0]-s,u=0,d=0,f=0,m=0;if(a.charAt(s)===" "){for(;s>0&&a.charAt(s-1)===" ";)s--;for(;l<a.length&&a.charAt(l+1)===" ";)l++}else{let y=e[0],v=e[0];i.getWidth(y)===0&&(u++,y--),i.getWidth(v)===2&&(d++,v++);let g=i.getString(v).length;for(g>1&&(m+=g-1,l+=g-1);y>0&&s>0&&!this._isCharWordSeparator(i.loadCell(y-1,this._workCell));){i.loadCell(y-1,this._workCell);let x=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,y--):x>1&&(f+=x-1,s-=x-1),s--,y--}for(;v<i.length&&l+1<a.length&&!this._isCharWordSeparator(i.loadCell(v+1,this._workCell));){i.loadCell(v+1,this._workCell);let x=this._workCell.getChars().length;this._workCell.getWidth()===2?(d++,v++):x>1&&(m+=x-1,l+=x-1),l++,v++}}l++;let p=s+c-u+f,h=Math.min(this._bufferService.cols,l-s+u+d-f-m);if(!(!t&&a.slice(s,l).trim()==="")){if(r&&p===0&&i.getCodePoint(0)!==32){let y=o.lines.get(e[1]-1);if(y&&i.isWrapped&&y.getCodePoint(this._bufferService.cols-1)!==32){let v=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(v){let g=this._bufferService.cols-v.start;p-=g,h+=g}}}if(n&&p+h===this._bufferService.cols&&i.getCodePoint(this._bufferService.cols-1)!==32){let y=o.lines.get(e[1]+1);if(y?.isWrapped&&y.getCodePoint(0)!==32){let v=this._getWordAt([0,e[1]+1],!1,!1,!0);v&&(h+=v.length)}}return{start:p,length:h}}}_selectWordAt(e,t){let r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let r=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),r={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=Z9(r,this._bufferService.cols)}};lR=Qt([me(3,Po),me(4,fu),me(5,bR),me(6,$o),me(7,ns),me(8,os)],lR);var q9=class{constructor(){this._data={}}set(e,t,r){this._data[e]||(this._data[e]={}),this._data[e][t]=r}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},K9=class{constructor(){this._color=new q9,this._css=new q9}setCss(e,t,r){this._css.set(e,t,r)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,r){this._color.set(e,t,r)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},pr=Object.freeze((()=>{let e=[Bt.toColor("#2e3436"),Bt.toColor("#cc0000"),Bt.toColor("#4e9a06"),Bt.toColor("#c4a000"),Bt.toColor("#3465a4"),Bt.toColor("#75507b"),Bt.toColor("#06989a"),Bt.toColor("#d3d7cf"),Bt.toColor("#555753"),Bt.toColor("#ef2929"),Bt.toColor("#8ae234"),Bt.toColor("#fce94f"),Bt.toColor("#729fcf"),Bt.toColor("#ad7fa8"),Bt.toColor("#34e2e2"),Bt.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let r=0;r<216;r++){let n=t[r/36%6|0],o=t[r/6%6|0],i=t[r%6];e.push({css:or.toCss(n,o,i),rgba:or.toRgba(n,o,i)})}for(let r=0;r<24;r++){let n=8+r*10;e.push({css:or.toCss(n,n,n),rgba:or.toRgba(n,n,n)})}return e})()),au=Bt.toColor("#ffffff"),gg=Bt.toColor("#000000"),G9=Bt.toColor("#ffffff"),X9=gg,ug={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},eie=au,cR=class extends Fe{constructor(e){super(),this._optionsService=e,this._contrastCache=new K9,this._halfContrastCache=new K9,this._onChangeColors=this._register(new ne),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:au,background:gg,cursor:G9,cursorAccent:X9,selectionForeground:void 0,selectionBackgroundTransparent:ug,selectionBackgroundOpaque:_t.blend(gg,ug),selectionInactiveBackgroundTransparent:ug,selectionInactiveBackgroundOpaque:_t.blend(gg,ug),scrollbarSliderBackground:_t.opacity(au,.2),scrollbarSliderHoverBackground:_t.opacity(au,.4),scrollbarSliderActiveBackground:_t.opacity(au,.5),overviewRulerBorder:au,ansi:pr.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=dt(e.foreground,au),t.background=dt(e.background,gg),t.cursor=_t.blend(t.background,dt(e.cursor,G9)),t.cursorAccent=_t.blend(t.background,dt(e.cursorAccent,X9)),t.selectionBackgroundTransparent=dt(e.selectionBackground,ug),t.selectionBackgroundOpaque=_t.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=dt(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=_t.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?dt(e.selectionForeground,V9):void 0,t.selectionForeground===V9&&(t.selectionForeground=void 0),_t.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=_t.opacity(t.selectionBackgroundTransparent,.3)),_t.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=_t.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=dt(e.scrollbarSliderBackground,_t.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=dt(e.scrollbarSliderHoverBackground,_t.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=dt(e.scrollbarSliderActiveBackground,_t.opacity(t.foreground,.5)),t.overviewRulerBorder=dt(e.overviewRulerBorder,eie),t.ansi=pr.slice(),t.ansi[0]=dt(e.black,pr[0]),t.ansi[1]=dt(e.red,pr[1]),t.ansi[2]=dt(e.green,pr[2]),t.ansi[3]=dt(e.yellow,pr[3]),t.ansi[4]=dt(e.blue,pr[4]),t.ansi[5]=dt(e.magenta,pr[5]),t.ansi[6]=dt(e.cyan,pr[6]),t.ansi[7]=dt(e.white,pr[7]),t.ansi[8]=dt(e.brightBlack,pr[8]),t.ansi[9]=dt(e.brightRed,pr[9]),t.ansi[10]=dt(e.brightGreen,pr[10]),t.ansi[11]=dt(e.brightYellow,pr[11]),t.ansi[12]=dt(e.brightBlue,pr[12]),t.ansi[13]=dt(e.brightMagenta,pr[13]),t.ansi[14]=dt(e.brightCyan,pr[14]),t.ansi[15]=dt(e.brightWhite,pr[15]),e.extendedAnsi){let r=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let n=0;n<r;n++)t.ansi[n+16]=dt(e.extendedAnsi[n],pr[n+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};cR=Qt([me(0,$o)],cR);function dt(e,t){if(e!==void 0)try{return Bt.toColor(e)}catch{}return t}var tie=class{constructor(...e){this._entries=new Map;for(let[t,r]of e)this.set(t,r)}set(e,t){let r=this._entries.get(e);return this._entries.set(e,t),r}forEach(e){for(let[t,r]of this._entries.entries())e(t,r)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},rie=class{constructor(){this._services=new tie,this._services.set(xR,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let r=kre(e).sort((i,a)=>i.index-a.index),n=[];for(let i of r){let a=this._services.get(i.id);if(!a)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${i.id._id}.`);n.push(a)}let o=r.length>0?r[0].index:t.length;if(t.length!==o)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);return new e(...t,...n)}},oie={trace:0,debug:1,info:2,warn:3,error:4,off:5},nie="xterm.js: ",uR=class extends Fe{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),iie=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=oie[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]=="function"&&(e[t]=e[t]())}_log(e,t,r){this._evalLazyOptionalParams(r),e.call(console,(this._optionsService.options.logger?"":nie)+t,...r)}trace(e,...t){this._logLevel<=0&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=1&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=2&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=3&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=4&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};uR=Qt([me(0,$o)],uR);var iie,Q9=class extends Fe{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new ne),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new ne),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new ne),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=new Array(e);for(let r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...r){if(t){for(let n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let n=this._length-1;n>=e;n--)this._array[this._getCyclicIndex(n+r.length)]=this._array[this._getCyclicIndex(n)];for(let n=0;n<r.length;n++)this._array[this._getCyclicIndex(e+n)]=r[n];if(r.length&&this.onInsertEmitter.fire({index:e,amount:r.length}),this._length+r.length>this._maxLength){let n=this._length+r.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=r.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(let o=t-1;o>=0;o--)this.set(e+o+r,this.get(e+o));let n=e+t+r-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let n=0;n<t;n++)this.set(e+n+r,this.get(e+n))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},Ue=3,lr=Object.freeze(new $g),sI=0,S$=2,vg=class sU{constructor(t,r,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*Ue);let o=r||Kn.fromCharData([0,_j,1,0]);for(let i=0;i<t;++i)this.setCell(i,o);this.length=t}get(t){let r=this._data[t*Ue+0],n=r&2097151;return[this._data[t*Ue+1],r&2097152?this._combined[t]:n?Sl(n):"",r>>22,r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):n]}set(t,r){this._data[t*Ue+1]=r[0],r[1].length>1?(this._combined[t]=r[1],this._data[t*Ue+0]=t|2097152|r[2]<<22):this._data[t*Ue+0]=r[1].charCodeAt(0)|r[2]<<22}getWidth(t){return this._data[t*Ue+0]>>22}hasWidth(t){return this._data[t*Ue+0]&12582912}getFg(t){return this._data[t*Ue+1]}getBg(t){return this._data[t*Ue+2]}hasContent(t){return this._data[t*Ue+0]&4194303}getCodePoint(t){let r=this._data[t*Ue+0];return r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r&2097151}isCombined(t){return this._data[t*Ue+0]&2097152}getString(t){let r=this._data[t*Ue+0];return r&2097152?this._combined[t]:r&2097151?Sl(r&2097151):""}isProtected(t){return this._data[t*Ue+2]&536870912}loadCell(t,r){return sI=t*Ue,r.content=this._data[sI+0],r.fg=this._data[sI+1],r.bg=this._data[sI+2],r.content&2097152&&(r.combinedData=this._combined[t]),r.bg&268435456&&(r.extended=this._extendedAttrs[t]),r}setCell(t,r){r.content&2097152&&(this._combined[t]=r.combinedData),r.bg&268435456&&(this._extendedAttrs[t]=r.extended),this._data[t*Ue+0]=r.content,this._data[t*Ue+1]=r.fg,this._data[t*Ue+2]=r.bg}setCellFromCodepoint(t,r,n,o){o.bg&268435456&&(this._extendedAttrs[t]=o.extended),this._data[t*Ue+0]=r|n<<22,this._data[t*Ue+1]=o.fg,this._data[t*Ue+2]=o.bg}addCodepointToCell(t,r,n){let o=this._data[t*Ue+0];o&2097152?this._combined[t]+=Sl(r):o&2097151?(this._combined[t]=Sl(o&2097151)+Sl(r),o&=-2097152,o|=2097152):o=r|1<<22,n&&(o&=-12582913,o|=n<<22),this._data[t*Ue+0]=o}insertCells(t,r,n){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length-t){let o=new Kn;for(let i=this.length-t-r-1;i>=0;--i)this.setCell(t+r+i,this.loadCell(t+i,o));for(let i=0;i<r;++i)this.setCell(t+i,n)}else for(let o=t;o<this.length;++o)this.setCell(o,n);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,n)}deleteCells(t,r,n){if(t%=this.length,r<this.length-t){let o=new Kn;for(let i=0;i<this.length-t-r;++i)this.setCell(t+i,this.loadCell(t+r+i,o));for(let i=this.length-r;i<this.length;++i)this.setCell(i,n)}else for(let o=t;o<this.length;++o)this.setCell(o,n);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,n)}replaceCells(t,r,n,o=!1){if(o){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length&&this.getWidth(r-1)===2&&!this.isProtected(r)&&this.setCellFromCodepoint(r,0,1,n);t<r&&t<this.length;)this.isProtected(t)||this.setCell(t,n),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length&&this.getWidth(r-1)===2&&this.setCellFromCodepoint(r,0,1,n);t<r&&t<this.length;)this.setCell(t++,n)}resize(t,r){if(t===this.length)return this._data.length*4*S$<this._data.buffer.byteLength;let n=t*Ue;if(t>this.length){if(this._data.buffer.byteLength>=n*4)this._data=new Uint32Array(this._data.buffer,0,n);else{let o=new Uint32Array(n);o.set(this._data),this._data=o}for(let o=this.length;o<t;++o)this.setCell(o,r)}else{this._data=this._data.subarray(0,n);let o=Object.keys(this._combined);for(let a=0;a<o.length;a++){let s=parseInt(o[a],10);s>=t&&delete this._combined[s]}let i=Object.keys(this._extendedAttrs);for(let a=0;a<i.length;a++){let s=parseInt(i[a],10);s>=t&&delete this._extendedAttrs[s]}}return this.length=t,n*4*S$<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*S$<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,r=!1){if(r){for(let n=0;n<this.length;++n)this.isProtected(n)||this.setCell(n,t);return}this._combined={},this._extendedAttrs={};for(let n=0;n<this.length;++n)this.setCell(n,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let r in t._combined)this._combined[r]=t._combined[r];this._extendedAttrs={};for(let r in t._extendedAttrs)this._extendedAttrs[r]=t._extendedAttrs[r];this.isWrapped=t.isWrapped}clone(){let t=new sU(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let r in this._combined)t._combined[r]=this._combined[r];for(let r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Ue+0]&4194303)return t+(this._data[t*Ue+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Ue+0]&4194303||this._data[t*Ue+2]&50331648)return t+(this._data[t*Ue+0]>>22);return 0}copyCellsFrom(t,r,n,o,i){let a=t._data;if(i)for(let l=o-1;l>=0;l--){for(let c=0;c<Ue;c++)this._data[(n+l)*Ue+c]=a[(r+l)*Ue+c];a[(r+l)*Ue+2]&268435456&&(this._extendedAttrs[n+l]=t._extendedAttrs[r+l])}else for(let l=0;l<o;l++){for(let c=0;c<Ue;c++)this._data[(n+l)*Ue+c]=a[(r+l)*Ue+c];a[(r+l)*Ue+2]&268435456&&(this._extendedAttrs[n+l]=t._extendedAttrs[r+l])}let s=Object.keys(t._combined);for(let l=0;l<s.length;l++){let c=parseInt(s[l],10);c>=r&&(this._combined[c-r+n]=t._combined[c])}}translateToString(t,r,n,o){r=r??0,n=n??this.length,t&&(n=Math.min(n,this.getTrimmedLength())),o&&(o.length=0);let i="";for(;r<n;){let a=this._data[r*Ue+0],s=a&2097151,l=a&2097152?this._combined[r]:s?Sl(s):kl;if(i+=l,o)for(let c=0;c<l.length;++c)o.push(r);r+=a>>22||1}return o&&o.push(r),i}};function aie(e,t,r,n,o,i){let a=[];for(let s=0;s<e.length-1;s++){let l=s,c=e.get(++l);if(!c.isWrapped)continue;let u=[e.get(s)];for(;l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(!i&&n>=s&&n<l){s+=u.length-1;continue}let d=0,f=Pg(u,d,t),m=1,p=0;for(;m<u.length;){let y=Pg(u,m,t),v=y-p,g=r-f,x=Math.min(v,g);u[d].copyCellsFrom(u[m],p,f,x,!1),f+=x,f===r&&(d++,f=0),p+=x,p===y&&(m++,p=0),f===0&&d!==0&&u[d-1].getWidth(r-1)===2&&(u[d].copyCellsFrom(u[d-1],r-1,f++,1,!1),u[d-1].setCell(r-1,o))}u[d].replaceCells(f,r,o);let h=0;for(let y=u.length-1;y>0&&(y>d||u[y].getTrimmedLength()===0);y--)h++;h>0&&(a.push(s+u.length-h),a.push(h)),s+=u.length-1}return a}function sie(e,t){let r=[],n=0,o=t[n],i=0;for(let a=0;a<e.length;a++)if(o===a){let s=t[++n];e.onDeleteEmitter.fire({index:a-i,amount:s}),a+=s-1,i+=s,o=t[++n]}else r.push(a);return{layout:r,countRemoved:i}}function lie(e,t){let r=[];for(let n=0;n<t.length;n++)r.push(e.get(t[n]));for(let n=0;n<r.length;n++)e.set(n,r[n]);e.length=t.length}function cie(e,t,r){let n=[],o=e.map((l,c)=>Pg(e,c,t)).reduce((l,c)=>l+c),i=0,a=0,s=0;for(;s<o;){if(o-s<r){n.push(o-s);break}i+=r;let l=Pg(e,a,t);i>l&&(i-=l,a++);let c=e[a].getWidth(i-1)===2;c&&i--;let u=c?r-1:r;n.push(u),s+=u}return n}function Pg(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();let n=!e[t].hasContent(r-1)&&e[t].getWidth(r-1)===1,o=e[t+1].getWidth(0)===2;return n&&o?r-1:r}var lU=class cU{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=cU._nextId++,this._onDispose=this.register(new ne),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),uu(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};lU._nextId=1;var uie=lU,gr={},su=gr.B;gr[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"};gr.A={"#":"\xA3"};gr.B=void 0;gr[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"};gr.C=gr[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};gr.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"};gr.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"};gr.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"};gr.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"};gr.E=gr[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"};gr.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"};gr.H=gr[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};gr["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"};var J9=4294967295,Y9=class{constructor(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=lr.clone(),this.savedCharset=su,this.markers=[],this._nullCell=Kn.fromCharData([0,_j,1,0]),this._whitespaceCell=Kn.fromCharData([0,kl,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new wI,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Q9(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new gI),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new gI),this._whitespaceCell}getBlankLine(e,t){return new vg(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>J9?J9:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=lr);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new Q9(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let r=this.getNullCell(lr),n=0,o=this._getCorrectBufferLength(t);if(o>this.lines.maxLength&&(this.lines.maxLength=o),this.lines.length>0){if(this._cols<e)for(let a=0;a<this.lines.length;a++)n+=+this.lines.get(a).resize(e,r);let i=0;if(this._rows<t)for(let a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new vg(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+i+1?(this.ybase--,i++,this.ydisp>0&&this.ydisp--):this.lines.push(new vg(e,r)));else for(let a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(o<this.lines.maxLength){let a=this.lines.length-o;a>0&&(this.lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0),this.savedY=Math.max(this.savedY-a,0)),this.lines.maxLength=o}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),i&&(this.y+=i),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let i=0;i<this.lines.length;i++)n+=+this.lines.get(i).resize(e,r);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),n>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,n=aie(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(lr),r);if(n.length>0){let o=sie(this.lines,n);lie(this.lines,o.layout),this._reflowLargerAdjustViewport(e,t,o.countRemoved)}}_reflowLargerAdjustViewport(e,t,r){let n=this.getNullCell(lr),o=r;for(;o-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new vg(e,n))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)}_reflowSmaller(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,n=this.getNullCell(lr),o=[],i=0;for(let a=this.lines.length-1;a>=0;a--){let s=this.lines.get(a);if(!s||!s.isWrapped&&s.getTrimmedLength()<=e)continue;let l=[s];for(;s.isWrapped&&a>0;)s=this.lines.get(--a),l.unshift(s);if(!r){let x=this.ybase+this.y;if(x>=a&&x<a+l.length)continue}let c=l[l.length-1].getTrimmedLength(),u=cie(l,this._cols,e),d=u.length-l.length,f;this.ybase===0&&this.y!==this.lines.length-1?f=Math.max(0,this.y-this.lines.maxLength+d):f=Math.max(0,this.lines.length-this.lines.maxLength+d);let m=[];for(let x=0;x<d;x++){let _=this.getBlankLine(lr,!0);m.push(_)}m.length>0&&(o.push({start:a+l.length+i,newLines:m}),i+=m.length),l.push(...m);let p=u.length-1,h=u[p];h===0&&(p--,h=u[p]);let y=l.length-d-1,v=c;for(;y>=0;){let x=Math.min(v,h);if(l[p]===void 0)break;if(l[p].copyCellsFrom(l[y],v-x,h-x,x,!0),h-=x,h===0&&(p--,h=u[p]),v-=x,v===0){y--;let _=Math.max(y,0);v=Pg(l,_,this._cols)}}for(let x=0;x<l.length;x++)u[x]<e&&l[x].setCell(u[x],n);let g=d-f;for(;g-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+i)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+d,this.ybase+t-1)}if(o.length>0){let a=[],s=[];for(let h=0;h<this.lines.length;h++)s.push(this.lines.get(h));let l=this.lines.length,c=l-1,u=0,d=o[u];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+i);let f=0;for(let h=Math.min(this.lines.maxLength-1,l+i-1);h>=0;h--)if(d&&d.start>c+f){for(let y=d.newLines.length-1;y>=0;y--)this.lines.set(h--,d.newLines[y]);h++,a.push({index:c+1,amount:d.newLines.length}),f+=d.newLines.length,d=o[++u]}else this.lines.set(h,s[c--]);let m=0;for(let h=a.length-1;h>=0;h--)a[h].index+=m,this.lines.onInsertEmitter.fire(a[h]),m+=a[h].amount;let p=Math.max(0,l+i-this.lines.maxLength);p>0&&this.lines.onTrimEmitter.fire(p)}}translateBufferLineToString(e,t,r=0,n){let o=this.lines.get(e);return o?o.translateToString(t,r,n):""}getWrappedRangeForLine(e){let t=e,r=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}}setupTabStops(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new uie(e);return this.markers.push(t),t.register(this.lines.onTrim(r=>{t.line-=r,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(r=>{t.line>=r.index&&(t.line+=r.amount)})),t.register(this.lines.onDelete(r=>{t.line>=r.index&&t.line<r.index+r.amount&&t.dispose(),t.line>r.index&&(t.line-=r.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},die=class extends Fe{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new ne),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new Y9(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new Y9(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},uU=2,dU=1,dR=class extends Fe{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new ne),this.onResize=this._onResize.event,this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,uU),this.rows=Math.max(e.rawOptions.rows||0,dU),this.buffers=this._register(new die(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let r=this.cols!==e,n=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:r,rowsChanged:n})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let r=this.buffer,n;n=this._cachedBlankLine,(!n||n.length!==this.cols||n.getFg(0)!==e.fg||n.getBg(0)!==e.bg)&&(n=r.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;let o=r.ybase+r.scrollTop,i=r.ybase+r.scrollBottom;if(r.scrollTop===0){let a=r.lines.isFull;i===r.lines.length-1?a?r.lines.recycle().copyFrom(n):r.lines.push(n.clone()):r.lines.splice(i+1,0,n.clone()),a?this.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this.isUserScrolling||r.ydisp++)}else{let a=i-o+1;r.lines.shiftElements(o+1,a-1,-1),r.lines.set(i,n.clone())}this.isUserScrolling||(r.ydisp=r.ybase),this._onScroll.fire(r.ydisp)}scrollLines(e,t){let r=this.buffer;if(e<0){if(r.ydisp===0)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);let n=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),n!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}};dR=Qt([me(0,$o)],dR);var Zf={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:II,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},fie=["normal","bold","100","200","300","400","500","600","700","800","900"],mie=class extends Fe{constructor(e){super(),this._onOptionChange=this._register(new ne),this.onOptionChange=this._onOptionChange.event;let t={...Zf};for(let r in e)if(r in t)try{let n=e[r];t[r]=this._sanitizeAndValidateOption(r,n)}catch(n){console.error(n)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(Dt(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(r=>{r===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(r=>{e.indexOf(r)!==-1&&t()})}_setupOptions(){let e=r=>{if(!(r in Zf))throw new Error(`No option with key "${r}"`);return this.rawOptions[r]},t=(r,n)=>{if(!(r in Zf))throw new Error(`No option with key "${r}"`);n=this._sanitizeAndValidateOption(r,n),this.rawOptions[r]!==n&&(this.rawOptions[r]=n,this._onOptionChange.fire(r))};for(let r in this.rawOptions){let n={get:e.bind(this,r),set:t.bind(this,r)};Object.defineProperty(this.options,r,n)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=Zf[e]),!pie(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=Zf[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=fie.includes(t)?t:Zf[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${e} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case"scrollback":if(t=Math.min(t,4294967295),t<0)throw new Error(`${e} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${e} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{};break}return t}};function pie(e){return e==="block"||e==="underline"||e==="bar"}function xg(e,t=5){if(typeof e!="object")return e;let r=Array.isArray(e)?[]:{};for(let n in e)r[n]=t<=1?e[n]:e[n]&&xg(e[n],t-1);return r}var ej=Object.freeze({insertMode:!1}),tj=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),fR=class extends Fe{constructor(e,t,r){super(),this._bufferService=e,this._logService=t,this._optionsService=r,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new ne),this.onData=this._onData.event,this._onUserInput=this._register(new ne),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new ne),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new ne),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=xg(ej),this.decPrivateModes=xg(tj)}reset(){this.modes=xg(ej),this.decPrivateModes=xg(tj)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let r=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&r.ybase!==r.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(n=>n.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};fR=Qt([me(0,Po),me(1,Cj),me(2,$o)],fR);var rj={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function k$(e,t){let r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=e.button&3,e.button&4&&(r|=64),e.button&8&&(r|=128),e.action===32?r|=32:e.action===0&&!t&&(r|=3)),r}var C$=String.fromCharCode,oj={DEFAULT:e=>{let t=[k$(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${C$(t[0])}${C$(t[1])}${C$(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${k$(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${k$(e,!0)};${e.x};${e.y}${t}`}},mR=class extends Fe{constructor(e,t,r){super(),this._bufferService=e,this._coreService=t,this._optionsService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new ne),this.onProtocolChange=this._onProtocolChange.event;for(let n of Object.keys(rj))this.addProtocol(n,rj[n]);for(let n of Object.keys(oj))this.addEncoding(n,oj[n]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,r){if(e.deltaY===0||e.shiftKey||t===void 0||r===void 0)return 0;let n=t/r,o=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=n+0,Math.abs(e.deltaY)<50&&(o*=.3),this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,r){if(r){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};mR=Qt([me(0,Po),me(1,fu),me(2,$o)],mR);var P$=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],hie=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],hr;function gie(e,t){let r=0,n=t.length-1,o;if(e<t[0][0]||e>t[n][1])return!1;for(;n>=r;)if(o=r+n>>1,e>t[o][1])r=o+1;else if(e<t[o][0])n=o-1;else return!0;return!1}var vie=class{constructor(){if(this.version="6",!hr){hr=new Uint8Array(65536),hr.fill(1),hr[0]=0,hr.fill(0,1,32),hr.fill(0,127,160),hr.fill(2,4352,4448),hr[9001]=2,hr[9002]=2,hr.fill(2,11904,42192),hr[12351]=1,hr.fill(2,44032,55204),hr.fill(2,63744,64256),hr.fill(2,65040,65050),hr.fill(2,65072,65136),hr.fill(2,65280,65377),hr.fill(2,65504,65511);for(let e=0;e<P$.length;++e)hr.fill(0,P$[e][0],P$[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?hr[e]:gie(e,hie)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let r=this.wcwidth(e),n=r===0&&t!==0;if(n){let o=lu.extractWidth(t);o===0?n=!1:o>r&&(r=o)}return lu.createPropertyValue(0,r,n)}},lu=class hI{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new ne,this.onChange=this._onChange.event;let t=new vie;this.register(t),this._active=t.version,this._activeProvider=t}static extractShouldJoin(t){return(t&1)!==0}static extractWidth(t){return t>>1&3}static extractCharKind(t){return t>>3}static createPropertyValue(t,r,n=!1){return(t&16777215)<<3|(r&3)<<1|(n?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let r=0,n=0,o=t.length;for(let i=0;i<o;++i){let a=t.charCodeAt(i);if(55296<=a&&a<=56319){if(++i>=o)return r+this.wcwidth(a);let c=t.charCodeAt(i);56320<=c&&c<=57343?a=(a-55296)*1024+c-56320+65536:r+=this.wcwidth(c)}let s=this.charProperties(a,n),l=hI.extractWidth(s);hI.extractShouldJoin(s)&&(l-=hI.extractWidth(n)),r+=l,n=s}return r}charProperties(t,r){return this._activeProvider.charProperties(t,r)}},xie=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function nj(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&t&&(r.isWrapped=t[3]!==0&&t[3]!==32)}var dg=2147483647,bie=256,fU=class pR{constructor(t=32,r=32){if(this.maxLength=t,this.maxSubParamsLength=r,r>bie)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(r),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let r=new pR;if(!t.length)return r;for(let n=Array.isArray(t[0])?1:0;n<t.length;++n){let o=t[n];if(Array.isArray(o))for(let i=0;i<o.length;++i)r.addSubParam(o[i]);else r.addParam(o)}return r}clone(){let t=new pR(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let t=[];for(let r=0;r<this.length;++r){t.push(this.params[r]);let n=this._subParamsIdx[r]>>8,o=this._subParamsIdx[r]&255;o-n>0&&t.push(Array.prototype.slice.call(this._subParams,n,o))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(t){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=t>dg?dg:t}addSubParam(t){if(this._digitIsSub=!0,!!this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=t>dg?dg:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let r=this._subParamsIdx[t]>>8,n=this._subParamsIdx[t]&255;return n-r>0?this._subParams.subarray(r,n):null}getSubParamsAll(){let t={};for(let r=0;r<this.length;++r){let n=this._subParamsIdx[r]>>8,o=this._subParamsIdx[r]&255;o-n>0&&(t[r]=this._subParams.slice(n,o))}return t}addDigit(t){let r;if(this._rejectDigits||!(r=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let n=this._digitIsSub?this._subParams:this.params,o=n[r-1];n[r-1]=~o?Math.min(o*10+t,dg):t}},fg=[],yie=class{constructor(){this._state=0,this._active=fg,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=fg}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=fg,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||fg,!this._active.length)this._handlerFb(this._id,"START");else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,r){if(!this._active.length)this._handlerFb(this._id,"PUT",kI(e,t,r));else for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r)}start(){this.reset(),this._state=1}put(e,t,r){if(this._state!==3){if(this._state===1)for(;t<r;){let n=e[t++];if(n===59){this._state=2,this._start();break}if(n<48||57<n){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+n-48}this._state===2&&r-t>0&&this._put(e,t,r)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,"END",e);else{let r=!1,n=this._active.length-1,o=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&r===!1){for(;n>=0&&(r=this._active[n].end(e),r!==!0);n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if(r=this._active[n].end(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}this._active=fg,this._id=-1,this._state=0}}},gn=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=kI(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(r=>(this._data="",this._hitLimit=!1,r));return this._data="",this._hitLimit=!1,t}},mg=[],_ie=class{constructor(){this._handlers=Object.create(null),this._active=mg,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=mg}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=mg,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||mg,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let r=this._active.length-1;r>=0;r--)this._active[r].hook(t)}put(e,t,r){if(!this._active.length)this._handlerFb(this._ident,"PUT",kI(e,t,r));else for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let r=!1,n=this._active.length-1,o=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&r===!1){for(;n>=0&&(r=this._active[n].unhook(e),r!==!0);n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if(r=this._active[n].unhook(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}this._active=mg,this._ident=0}},bg=new fU;bg.addParam(0);var ij=class{constructor(e){this._handler=e,this._data="",this._params=bg,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():bg,this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=kI(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(r=>(this._params=bg,this._data="",this._hitLimit=!1,r));return this._params=bg,this._data="",this._hitLimit=!1,t}},Iie=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,r,n){this.table[t<<8|e]=r<<4|n}addMany(e,t,r,n){for(let o=0;o<e.length;o++)this.table[t<<8|e[o]]=r<<4|n}},qn=160,wie=(function(){let e=new Iie(4095),t=Array.apply(null,Array(256)).map((s,l)=>l),r=(s,l)=>t.slice(s,l),n=r(32,127),o=r(0,24);o.push(25),o.push.apply(o,r(28,32));let i=r(0,14),a;e.setDefault(1,0),e.addMany(n,0,2,0);for(a in i)e.addMany([24,26,153,154],a,3,0),e.addMany(r(128,144),a,3,0),e.addMany(r(144,152),a,3,0),e.add(156,a,0,0),e.add(27,a,11,1),e.add(157,a,4,8),e.addMany([152,158,159],a,0,7),e.add(155,a,11,3),e.add(144,a,11,9);return e.addMany(o,0,3,0),e.addMany(o,1,3,1),e.add(127,1,0,1),e.addMany(o,8,0,8),e.addMany(o,3,3,3),e.add(127,3,0,3),e.addMany(o,4,3,4),e.add(127,4,0,4),e.addMany(o,6,3,6),e.addMany(o,5,3,5),e.add(127,5,0,5),e.addMany(o,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(n,7,0,7),e.addMany(o,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(o,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(o,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(o,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(o,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(o,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(qn,0,2,0),e.add(qn,8,5,8),e.add(qn,6,0,6),e.add(qn,11,0,11),e.add(qn,13,13,13),e})(),Sie=class extends Fe{constructor(e=wie){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new fU,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,r,n)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,r)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(Dt(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new yie),this._dcsParser=this._register(new _ie),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(r=e.prefix.charCodeAt(0),r&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let o=0;o<e.intermediates.length;++o){let i=e.intermediates.charCodeAt(o);if(32>i||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=i}}if(e.final.length!==1)throw new Error("final must be a single byte");let n=e.final.charCodeAt(0);if(t[0]>n||n>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return r<<=8,r|=n,r}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let r=this._identifier(e,[48,126]);this._escHandlers[r]===void 0&&(this._escHandlers[r]=[]);let n=this._escHandlers[r];return n.push(t),{dispose:()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let r=this._identifier(e);this._csiHandlers[r]===void 0&&(this._csiHandlers[r]=[]);let n=this._csiHandlers[r];return n.push(t),{dispose:()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,r,n,o){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=r,this._parseStack.transition=n,this._parseStack.chunkPos=o}parse(e,t,r){let n=0,o=0,i=0,a;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,i=this._parseStack.chunkPos+1;else{if(r===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let s=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(r===!1&&l>-1){for(;l>=0&&(a=s[l](this._params),a!==!0);l--)if(a instanceof Promise)return this._parseStack.handlerPos=l,a}this._parseStack.handlers=[];break;case 4:if(r===!1&&l>-1){for(;l>=0&&(a=s[l](),a!==!0);l--)if(a instanceof Promise)return this._parseStack.handlerPos=l,a}this._parseStack.handlers=[];break;case 6:if(n=e[this._parseStack.chunkPos],a=this._dcsParser.unhook(n!==24&&n!==26,r),a)return a;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(n=e[this._parseStack.chunkPos],a=this._oscParser.end(n!==24&&n!==26,r),a)return a;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,i=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let s=i;s<t;++s){switch(n=e[s],o=this._transitions.table[this.currentState<<8|(n<160?n:qn)],o>>4){case 2:for(let f=s+1;;++f){if(f>=t||(n=e[f])<32||n>126&&n<qn){this._printHandler(e,s,f),s=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<qn){this._printHandler(e,s,f),s=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<qn){this._printHandler(e,s,f),s=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<qn){this._printHandler(e,s,f),s=f-1;break}}break;case 3:this._executeHandlers[n]?this._executeHandlers[n]():this._executeHandlerFb(n),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:s,code:n,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let l=this._csiHandlers[this._collect<<8|n],c=l?l.length-1:-1;for(;c>=0&&(a=l[c](this._params),a!==!0);c--)if(a instanceof Promise)return this._preserveStack(3,l,c,o,s),a;c<0&&this._csiHandlerFb(this._collect<<8|n,this._params),this.precedingJoinState=0;break;case 8:do switch(n){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(n-48)}while(++s<t&&(n=e[s])>47&&n<60);s--;break;case 9:this._collect<<=8,this._collect|=n;break;case 10:let u=this._escHandlers[this._collect<<8|n],d=u?u.length-1:-1;for(;d>=0&&(a=u[d](),a!==!0);d--)if(a instanceof Promise)return this._preserveStack(4,u,d,o,s),a;d<0&&this._escHandlerFb(this._collect<<8|n),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|n,this._params);break;case 13:for(let f=s+1;;++f)if(f>=t||(n=e[f])===24||n===26||n===27||n>127&&n<qn){this._dcsParser.put(e,s,f),s=f-1;break}break;case 14:if(a=this._dcsParser.unhook(n!==24&&n!==26),a)return this._preserveStack(6,[],0,o,s),a;n===27&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let f=s+1;;f++)if(f>=t||(n=e[f])<32||n>127&&n<qn){this._oscParser.put(e,s,f),s=f-1;break}break;case 6:if(a=this._oscParser.end(n!==24&&n!==26),a)return this._preserveStack(5,[],0,o,s),a;n===27&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=o&15}}},kie=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,Cie=/^[\da-f]+$/;function aj(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let r=kie.exec(t);if(r){let n=r[1]?15:r[4]?255:r[7]?4095:65535;return[Math.round(parseInt(r[1]||r[4]||r[7]||r[10],16)/n*255),Math.round(parseInt(r[2]||r[5]||r[8]||r[11],16)/n*255),Math.round(parseInt(r[3]||r[6]||r[9]||r[12],16)/n*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),Cie.exec(t)&&[3,6,9,12].includes(t.length))){let r=t.length/3,n=[0,0,0];for(let o=0;o<3;++o){let i=parseInt(t.slice(r*o,r*o+r),16);n[o]=r===1?i<<4:r===2?i:r===3?i>>4:i>>8}return n}}function $$(e,t){let r=e.toString(16),n=r.length<2?"0"+r:r;switch(t){case 4:return r[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}function Pie(e,t=16){let[r,n,o]=e;return`rgb:${$$(r,t)}/${$$(n,t)}/${$$(o,t)}`}var $ie={"(":0,")":1,"*":2,"+":3,"-":1,".":2},wl=131072,sj=10;function lj(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var cj=5e3,uj=0,Rie=class extends Fe{constructor(e,t,r,n,o,i,a,s,l=new Sie){super(),this._bufferService=e,this._charsetService=t,this._coreService=r,this._logService=n,this._optionsService=o,this._oscLinkService=i,this._coreMouseService=a,this._unicodeService=s,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new wre,this._utf8Decoder=new Sre,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=lr.clone(),this._eraseAttrDataInternal=lr.clone(),this._onRequestBell=this._register(new ne),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new ne),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new ne),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new ne),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new ne),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new ne),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new ne),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new ne),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new ne),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new ne),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new ne),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new ne),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new ne),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new hR(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(c=>this._activeBuffer=c.activeBuffer)),this._parser.setCsiHandlerFallback((c,u)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(c),params:u.toArray()})}),this._parser.setEscHandlerFallback(c=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(c)})}),this._parser.setExecuteHandlerFallback(c=>{this._logService.debug("Unknown EXECUTE code: ",{code:c})}),this._parser.setOscHandlerFallback((c,u,d)=>{this._logService.debug("Unknown OSC code: ",{identifier:c,action:u,data:d})}),this._parser.setDcsHandlerFallback((c,u,d)=>{u==="HOOK"&&(d=d.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(c),action:u,payload:d})}),this._parser.setPrintHandler((c,u,d)=>this.print(c,u,d)),this._parser.registerCsiHandler({final:"@"},c=>this.insertChars(c)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},c=>this.scrollLeft(c)),this._parser.registerCsiHandler({final:"A"},c=>this.cursorUp(c)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},c=>this.scrollRight(c)),this._parser.registerCsiHandler({final:"B"},c=>this.cursorDown(c)),this._parser.registerCsiHandler({final:"C"},c=>this.cursorForward(c)),this._parser.registerCsiHandler({final:"D"},c=>this.cursorBackward(c)),this._parser.registerCsiHandler({final:"E"},c=>this.cursorNextLine(c)),this._parser.registerCsiHandler({final:"F"},c=>this.cursorPrecedingLine(c)),this._parser.registerCsiHandler({final:"G"},c=>this.cursorCharAbsolute(c)),this._parser.registerCsiHandler({final:"H"},c=>this.cursorPosition(c)),this._parser.registerCsiHandler({final:"I"},c=>this.cursorForwardTab(c)),this._parser.registerCsiHandler({final:"J"},c=>this.eraseInDisplay(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},c=>this.eraseInDisplay(c,!0)),this._parser.registerCsiHandler({final:"K"},c=>this.eraseInLine(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},c=>this.eraseInLine(c,!0)),this._parser.registerCsiHandler({final:"L"},c=>this.insertLines(c)),this._parser.registerCsiHandler({final:"M"},c=>this.deleteLines(c)),this._parser.registerCsiHandler({final:"P"},c=>this.deleteChars(c)),this._parser.registerCsiHandler({final:"S"},c=>this.scrollUp(c)),this._parser.registerCsiHandler({final:"T"},c=>this.scrollDown(c)),this._parser.registerCsiHandler({final:"X"},c=>this.eraseChars(c)),this._parser.registerCsiHandler({final:"Z"},c=>this.cursorBackwardTab(c)),this._parser.registerCsiHandler({final:"`"},c=>this.charPosAbsolute(c)),this._parser.registerCsiHandler({final:"a"},c=>this.hPositionRelative(c)),this._parser.registerCsiHandler({final:"b"},c=>this.repeatPrecedingCharacter(c)),this._parser.registerCsiHandler({final:"c"},c=>this.sendDeviceAttributesPrimary(c)),this._parser.registerCsiHandler({prefix:">",final:"c"},c=>this.sendDeviceAttributesSecondary(c)),this._parser.registerCsiHandler({final:"d"},c=>this.linePosAbsolute(c)),this._parser.registerCsiHandler({final:"e"},c=>this.vPositionRelative(c)),this._parser.registerCsiHandler({final:"f"},c=>this.hVPosition(c)),this._parser.registerCsiHandler({final:"g"},c=>this.tabClear(c)),this._parser.registerCsiHandler({final:"h"},c=>this.setMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"h"},c=>this.setModePrivate(c)),this._parser.registerCsiHandler({final:"l"},c=>this.resetMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"l"},c=>this.resetModePrivate(c)),this._parser.registerCsiHandler({final:"m"},c=>this.charAttributes(c)),this._parser.registerCsiHandler({final:"n"},c=>this.deviceStatus(c)),this._parser.registerCsiHandler({prefix:"?",final:"n"},c=>this.deviceStatusPrivate(c)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},c=>this.softReset(c)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},c=>this.setCursorStyle(c)),this._parser.registerCsiHandler({final:"r"},c=>this.setScrollRegion(c)),this._parser.registerCsiHandler({final:"s"},c=>this.saveCursor(c)),this._parser.registerCsiHandler({final:"t"},c=>this.windowOptions(c)),this._parser.registerCsiHandler({final:"u"},c=>this.restoreCursor(c)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},c=>this.insertColumns(c)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},c=>this.deleteColumns(c)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},c=>this.selectProtected(c)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},c=>this.requestMode(c,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},c=>this.requestMode(c,!1)),this._parser.setExecuteHandler(ee.BEL,()=>this.bell()),this._parser.setExecuteHandler(ee.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(ee.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(ee.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(ee.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(ee.BS,()=>this.backspace()),this._parser.setExecuteHandler(ee.HT,()=>this.tab()),this._parser.setExecuteHandler(ee.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(ee.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Ig.IND,()=>this.index()),this._parser.setExecuteHandler(Ig.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Ig.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new gn(c=>(this.setTitle(c),this.setIconName(c),!0))),this._parser.registerOscHandler(1,new gn(c=>this.setIconName(c))),this._parser.registerOscHandler(2,new gn(c=>this.setTitle(c))),this._parser.registerOscHandler(4,new gn(c=>this.setOrReportIndexedColor(c))),this._parser.registerOscHandler(8,new gn(c=>this.setHyperlink(c))),this._parser.registerOscHandler(10,new gn(c=>this.setOrReportFgColor(c))),this._parser.registerOscHandler(11,new gn(c=>this.setOrReportBgColor(c))),this._parser.registerOscHandler(12,new gn(c=>this.setOrReportCursorColor(c))),this._parser.registerOscHandler(104,new gn(c=>this.restoreIndexedColor(c))),this._parser.registerOscHandler(110,new gn(c=>this.restoreFgColor(c))),this._parser.registerOscHandler(111,new gn(c=>this.restoreBgColor(c))),this._parser.registerOscHandler(112,new gn(c=>this.restoreCursorColor(c))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let c in gr)this._parser.registerEscHandler({intermediates:"(",final:c},()=>this.selectCharset("("+c)),this._parser.registerEscHandler({intermediates:")",final:c},()=>this.selectCharset(")"+c)),this._parser.registerEscHandler({intermediates:"*",final:c},()=>this.selectCharset("*"+c)),this._parser.registerEscHandler({intermediates:"+",final:c},()=>this.selectCharset("+"+c)),this._parser.registerEscHandler({intermediates:"-",final:c},()=>this.selectCharset("-"+c)),this._parser.registerEscHandler({intermediates:".",final:c},()=>this.selectCharset("."+c)),this._parser.registerEscHandler({intermediates:"/",final:c},()=>this.selectCharset("/"+c));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(c=>(this._logService.error("Parsing error: ",c),c)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new ij((c,u)=>this.requestStatusString(c,u)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,r,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=r,this._parseStack.position=n}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,r)=>setTimeout(()=>r("#SLOW_TIMEOUT"),cj))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${cj} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let r,n=this._activeBuffer.x,o=this._activeBuffer.y,i=0,a=this._parseStack.paused;if(a){if(r=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(r),r;n=this._parseStack.cursorStartX,o=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>wl&&(i=this._parseStack.position+wl)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e=="string"?` "${e}"`:` "${Array.prototype.map.call(e,c=>String.fromCharCode(c)).join("")}"`}`),this._logService.logLevel===0&&this._logService.trace("parsing data (codes)",typeof e=="string"?e.split("").map(c=>c.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<wl&&(this._parseBuffer=new Uint32Array(Math.min(e.length,wl))),a||this._dirtyRowTracker.clearRange(),e.length>wl)for(let c=i;c<e.length;c+=wl){let u=c+wl<e.length?c+wl:e.length,d=typeof e=="string"?this._stringDecoder.decode(e.substring(c,u),this._parseBuffer):this._utf8Decoder.decode(e.subarray(c,u),this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,d))return this._preserveStack(n,o,d,c),this._logSlowResolvingAsync(r),r}else if(!a){let c=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,c))return this._preserveStack(n,o,c,0),this._logSlowResolvingAsync(r),r}(this._activeBuffer.x!==n||this._activeBuffer.y!==o)&&this._onCursorMove.fire();let s=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),l=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);l<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(l,this._bufferService.rows-1),end:Math.min(s,this._bufferService.rows-1)})}print(e,t,r){let n,o,i=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,s=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&r-t>0&&d.getWidth(this._activeBuffer.x-1)===2&&d.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let f=this._parser.precedingJoinState;for(let m=t;m<r;++m){if(n=e[m],n<127&&i){let v=i[String.fromCharCode(n)];v&&(n=v.charCodeAt(0))}let p=this._unicodeService.charProperties(n,f);o=lu.extractWidth(p);let h=lu.extractShouldJoin(p),y=h?lu.extractWidth(f):0;if(f=p,a&&this._onA11yChar.fire(Sl(n)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+o-y>s){if(l){let v=d,g=this._activeBuffer.x-y;for(this._activeBuffer.x=y,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),y>0&&d instanceof vg&&d.copyCellsFrom(v,g,0,y,!1);g<s;)v.setCellFromCodepoint(g++,0,1,u)}else if(this._activeBuffer.x=s-1,o===2)continue}if(h&&this._activeBuffer.x){let v=d.getWidth(this._activeBuffer.x-1)?1:2;d.addCodepointToCell(this._activeBuffer.x-v,n,o);for(let g=o-y;--g>=0;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(c&&(d.insertCells(this._activeBuffer.x,o-y,this._activeBuffer.getNullCell(u)),d.getWidth(s-1)===2&&d.setCellFromCodepoint(s-1,0,1,u)),d.setCellFromCodepoint(this._activeBuffer.x++,n,o,u),o>0)for(;--o;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=f,this._activeBuffer.x<s&&r-t>0&&d.getWidth(this._activeBuffer.x)===0&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final==="t"&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,r=>lj(r.params[0],this._optionsService.rawOptions.windowOptions)?t(r):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new ij(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new gn(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,r,n=!1,o=!1){let i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.replaceCells(t,r,this._activeBuffer.getNullCell(this._eraseAttrData()),o),n&&(i.isWrapped=!1)}_resetBufferLine(e,t=!1){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);r&&(r.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),r.isWrapped=!1)}eraseInDisplay(e,t=!1){this._restrictCursor(this._bufferService.cols);let r;switch(e.params[0]){case 0:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);r<this._bufferService.rows;r++)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(r);break;case 1:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(r+1).isWrapped=!1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(r=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,r-1);r--&&!this._activeBuffer.lines.get(this._activeBuffer.ybase+r)?.getTrimmedLength(););for(;r>=0;r--)this._bufferService.scroll(this._eraseAttrData())}else{for(r=this._bufferService.rows,this._dirtyRowTracker.markDirty(r-1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let n=this._activeBuffer.lines.length-this._bufferService.rows;n>0&&(this._activeBuffer.lines.trimStart(n),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-n,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-n,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,o=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;for(;t--;)this._activeBuffer.lines.splice(o-1,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,n;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(r,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(lr));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let r=e.params[0]||1,n=lu.extractWidth(t),o=this._activeBuffer.x-n,i=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(o),a=new Uint32Array(i.length*r),s=0;for(let c=0;c<i.length;){let u=i.codePointAt(c)||0;a[s++]=u,c+=u>65535?2:1}let l=s;for(let c=1;c<r;++c)a.copyWithin(l,0,s),l+=s;return this.print(a,0,l),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(ee.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(ee.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(ee.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(ee.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(ee.ESC+"[>83;40003;0c")),!0}_is(e){return(this._optionsService.rawOptions.termName+"").indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0;break}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,su),this._charsetService.setgCharset(1,su),this._charsetService.setgCharset(2,su),this._charsetService.setgCharset(3,su);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0;break}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1;break}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0);break}return!0}requestMode(e,t){let r;(h=>(h[h.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",h[h.SET=1]="SET",h[h.RESET=2]="RESET",h[h.PERMANENTLY_SET=3]="PERMANENTLY_SET",h[h.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(r||(r={}));let n=this._coreService.decPrivateModes,{activeProtocol:o,activeEncoding:i}=this._coreMouseService,a=this._coreService,{buffers:s,cols:l}=this._bufferService,{active:c,alt:u}=s,d=this._optionsService.rawOptions,f=(h,y)=>(a.triggerDataEvent(`${ee.ESC}[${t?"":"?"}${h};${y}$y`),!0),m=h=>h?1:2,p=e.params[0];return t?p===2?f(p,4):p===4?f(p,m(a.modes.insertMode)):p===12?f(p,3):p===20?f(p,m(d.convertEol)):f(p,0):p===1?f(p,m(n.applicationCursorKeys)):p===3?f(p,d.windowOptions.setWinLines?l===80?2:l===132?1:0:0):p===6?f(p,m(n.origin)):p===7?f(p,m(n.wraparound)):p===8?f(p,3):p===9?f(p,m(o==="X10")):p===12?f(p,m(d.cursorBlink)):p===25?f(p,m(!a.isCursorHidden)):p===45?f(p,m(n.reverseWraparound)):p===66?f(p,m(n.applicationKeypad)):p===67?f(p,4):p===1e3?f(p,m(o==="VT200")):p===1002?f(p,m(o==="DRAG")):p===1003?f(p,m(o==="ANY")):p===1004?f(p,m(n.sendFocus)):p===1005?f(p,4):p===1006?f(p,m(i==="SGR")):p===1015?f(p,4):p===1016?f(p,m(i==="SGR_PIXELS")):p===1048?f(p,1):p===47||p===1047||p===1049?f(p,m(c===u)):p===2004?f(p,m(n.bracketedPasteMode)):p===2026?f(p,m(n.synchronizedOutput)):f(p,0)}_updateAttrColor(e,t,r,n,o){return t===2?(e|=50331648,e&=-16777216,e|=$g.fromColorRGB([r,n,o])):t===5&&(e&=-50331904,e|=33554432|r&255),e}_extractColor(e,t,r){let n=[0,0,-1,0,0,0],o=0,i=0;do{if(n[i+o]=e.params[t+i],e.hasSubParams(t+i)){let a=e.getSubParams(t+i),s=0;do n[1]===5&&(o=1),n[i+s+1+o]=a[s];while(++s<a.length&&s+i+1+o<n.length);break}if(n[1]===5&&i+o>=2||n[1]===2&&i+o>=5)break;n[1]&&(o=1)}while(++i+t<e.length&&i+o<n.length);for(let a=2;a<n.length;++a)n[a]===-1&&(n[a]=0);switch(n[0]){case 38:r.fg=this._updateAttrColor(r.fg,n[1],n[3],n[4],n[5]);break;case 48:r.bg=this._updateAttrColor(r.bg,n[1],n[3],n[4],n[5]);break;case 58:r.extended=r.extended.clone(),r.extended.underlineColor=this._updateAttrColor(r.extended.underlineColor,n[1],n[3],n[4],n[5])}return i}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=lr.fg,e.bg=lr.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,r,n=this._curAttrData;for(let o=0;o<t;o++)r=e.params[o],r>=30&&r<=37?(n.fg&=-50331904,n.fg|=16777216|r-30):r>=40&&r<=47?(n.bg&=-50331904,n.bg|=16777216|r-40):r>=90&&r<=97?(n.fg&=-50331904,n.fg|=16777216|r-90|8):r>=100&&r<=107?(n.bg&=-50331904,n.bg|=16777216|r-100|8):r===0?this._processSGR0(n):r===1?n.fg|=134217728:r===3?n.bg|=67108864:r===4?(n.fg|=268435456,this._processUnderline(e.hasSubParams(o)?e.getSubParams(o)[0]:1,n)):r===5?n.fg|=536870912:r===7?n.fg|=67108864:r===8?n.fg|=1073741824:r===9?n.fg|=2147483648:r===2?n.bg|=134217728:r===21?this._processUnderline(2,n):r===22?(n.fg&=-134217729,n.bg&=-134217729):r===23?n.bg&=-67108865:r===24?(n.fg&=-268435457,this._processUnderline(0,n)):r===25?n.fg&=-536870913:r===27?n.fg&=-67108865:r===28?n.fg&=-1073741825:r===29?n.fg&=2147483647:r===39?(n.fg&=-67108864,n.fg|=lr.fg&16777215):r===49?(n.bg&=-67108864,n.bg|=lr.bg&16777215):r===38||r===48||r===58?o+=this._extractColor(e,o,n):r===53?n.bg|=1073741824:r===55?n.bg&=-1073741825:r===59?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):r===100?(n.fg&=-67108864,n.fg|=lr.fg&16777215,n.bg&=-67108864,n.bg|=lr.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",r);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${ee.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${ee.ESC}[${t};${r}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${ee.ESC}[?${t};${r}R`);break;case 15:break;case 25:break;case 26:break;case 53:break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=lr.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle="block";break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle="underline";break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle="bar";break}let r=t%2===1;this._coreService.decPrivateModes.cursorBlink=r}return!0}setScrollRegion(e){let t=e.params[0]||1,r;return(e.length<2||(r=e.params[1])>this._bufferService.rows||r===0)&&(r=this._bufferService.rows),r>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=r-1,this._setCursor(0,0)),!0}windowOptions(e){if(!lj(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${ee.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>sj&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>sj&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],r=e.split(";");for(;r.length>1;){let n=r.shift(),o=r.shift();if(/^\d+$/.exec(n)){let i=parseInt(n);if(dj(i))if(o==="?")t.push({type:0,index:i});else{let a=aj(o);a&&t.push({type:1,index:i,color:a})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let r=e.slice(0,t).trim(),n=e.slice(t+1);return n?this._createHyperlink(r,n):r.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let r=e.split(":"),n,o=r.findIndex(i=>i.startsWith("id="));return o!==-1&&(n=r[o].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let r=e.split(";");for(let n=0;n<r.length&&!(t>=this._specialColors.length);++n,++t)if(r[n]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let o=aj(r[n]);o&&this._onColor.fire([{type:1,index:this._specialColors[t],color:o}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],r=e.split(";");for(let n=0;n<r.length;++n)if(/^\d+$/.exec(r[n])){let o=parseInt(r[n]);dj(o)&&t.push({type:2,index:o})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,su),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset($ie[e[0]],gr[e[1]]||su),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=lr.clone(),this._eraseAttrDataInternal=lr.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new Kn;e.content=1<<22|69,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let r=this._activeBuffer.ybase+this._activeBuffer.y+t,n=this._activeBuffer.lines.get(r);n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let r=a=>(this._coreService.triggerDataEvent(`${ee.ESC}${a}${ee.ESC}\\`),!0),n=this._bufferService.buffer,o=this._optionsService.rawOptions;return r(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${n.scrollTop+1};${n.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[o.cursorStyle]-(o.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},hR=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(uj=e,e=t,t=uj),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};hR=Qt([me(0,Po)],hR);function dj(e){return 0<=e&&e<256}var Die=5e7,fj=12,Eie=50,Tie=class extends Fe{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new ne),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let r;for(;r=this._writeBuffer.shift();){this._action(r);let n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>Die)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let r=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let n=this._writeBuffer[this._bufferOffset],o=this._action(n,t);if(o){let a=s=>performance.now()-r>=fj?setTimeout(()=>this._innerWrite(0,s)):this._innerWrite(r,s);o.catch(s=>(queueMicrotask(()=>{throw s}),Promise.resolve(!1))).then(a);return}let i=this._callbacks[this._bufferOffset];if(i&&i(),this._bufferOffset++,this._pendingData-=n.length,performance.now()-r>=fj)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>Eie&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},gR=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let s=t.addMarker(t.ybase+t.y),l={data:e,id:this._nextId++,lines:[s]};return s.onDispose(()=>this._removeMarkerFromLink(l,s)),this._dataByLinkId.set(l.id,l),l.id}let r=e,n=this._getEntryIdKey(r),o=this._entriesWithId.get(n);if(o)return this.addLineToLink(o.id,t.ybase+t.y),o.id;let i=t.addMarker(t.ybase+t.y),a={id:this._nextId++,key:this._getEntryIdKey(r),data:r,lines:[i]};return i.onDispose(()=>this._removeMarkerFromLink(a,i)),this._entriesWithId.set(a.key,a),this._dataByLinkId.set(a.id,a),a.id}addLineToLink(e,t){let r=this._dataByLinkId.get(e);if(r&&r.lines.every(n=>n.line!==t)){let n=this._bufferService.buffer.addMarker(t);r.lines.push(n),n.onDispose(()=>this._removeMarkerFromLink(r,n))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let r=e.lines.indexOf(t);r!==-1&&(e.lines.splice(r,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};gR=Qt([me(0,Po)],gR);var mj=!1,Oie=class extends Fe{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Kf),this._onBinary=this._register(new ne),this.onBinary=this._onBinary.event,this._onData=this._register(new ne),this.onData=this._onData.event,this._onLineFeed=this._register(new ne),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new ne),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new ne),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new ne),this._instantiationService=new rie,this.optionsService=this._register(new mie(e)),this._instantiationService.setService($o,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(dR)),this._instantiationService.setService(Po,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(uR)),this._instantiationService.setService(Cj,this._logService),this.coreService=this._register(this._instantiationService.createInstance(fR)),this._instantiationService.setService(fu,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(mR)),this._instantiationService.setService(kj,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(lu)),this._instantiationService.setService($re,this.unicodeService),this._charsetService=this._instantiationService.createInstance(xie),this._instantiationService.setService(Pre,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(gR),this._instantiationService.setService(Pj,this._oscLinkService),this._inputHandler=this._register(new Rie(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(Er.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(Er.forward(this._bufferService.onResize,this._onResize)),this._register(Er.forward(this.coreService.onData,this._onData)),this._register(Er.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new Tie((t,r)=>this._inputHandler.parse(t,r))),this._register(Er.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new ne),this._onScroll.event(e=>{this._onScrollApi?.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!mj&&(this._logService.warn("writeSync is unreliable and will be removed soon."),mj=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,uU),t=Math.max(t,dU),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend==="conpty"&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(nj.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(nj(this._bufferService),!1))),this._windowsWrappingHeuristics.value=Dt(()=>{for(let t of e)t.dispose()})}}},zie={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};function Aie(e,t,r,n){let o={type:0,cancel:!1,key:void 0},i=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?o.key=ee.ESC+"OA":o.key=ee.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?o.key=ee.ESC+"OD":o.key=ee.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?o.key=ee.ESC+"OC":o.key=ee.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?o.key=ee.ESC+"OB":o.key=ee.ESC+"[B");break;case 8:o.key=e.ctrlKey?"\b":ee.DEL,e.altKey&&(o.key=ee.ESC+o.key);break;case 9:if(e.shiftKey){o.key=ee.ESC+"[Z";break}o.key=ee.HT,o.cancel=!0;break;case 13:o.key=e.altKey?ee.ESC+ee.CR:ee.CR,o.cancel=!0;break;case 27:o.key=ee.ESC,e.altKey&&(o.key=ee.ESC+ee.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;i?o.key=ee.ESC+"[1;"+(i+1)+"D":t?o.key=ee.ESC+"OD":o.key=ee.ESC+"[D";break;case 39:if(e.metaKey)break;i?o.key=ee.ESC+"[1;"+(i+1)+"C":t?o.key=ee.ESC+"OC":o.key=ee.ESC+"[C";break;case 38:if(e.metaKey)break;i?o.key=ee.ESC+"[1;"+(i+1)+"A":t?o.key=ee.ESC+"OA":o.key=ee.ESC+"[A";break;case 40:if(e.metaKey)break;i?o.key=ee.ESC+"[1;"+(i+1)+"B":t?o.key=ee.ESC+"OB":o.key=ee.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(o.key=ee.ESC+"[2~");break;case 46:i?o.key=ee.ESC+"[3;"+(i+1)+"~":o.key=ee.ESC+"[3~";break;case 36:i?o.key=ee.ESC+"[1;"+(i+1)+"H":t?o.key=ee.ESC+"OH":o.key=ee.ESC+"[H";break;case 35:i?o.key=ee.ESC+"[1;"+(i+1)+"F":t?o.key=ee.ESC+"OF":o.key=ee.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=ee.ESC+"[5;"+(i+1)+"~":o.key=ee.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=ee.ESC+"[6;"+(i+1)+"~":o.key=ee.ESC+"[6~";break;case 112:i?o.key=ee.ESC+"[1;"+(i+1)+"P":o.key=ee.ESC+"OP";break;case 113:i?o.key=ee.ESC+"[1;"+(i+1)+"Q":o.key=ee.ESC+"OQ";break;case 114:i?o.key=ee.ESC+"[1;"+(i+1)+"R":o.key=ee.ESC+"OR";break;case 115:i?o.key=ee.ESC+"[1;"+(i+1)+"S":o.key=ee.ESC+"OS";break;case 116:i?o.key=ee.ESC+"[15;"+(i+1)+"~":o.key=ee.ESC+"[15~";break;case 117:i?o.key=ee.ESC+"[17;"+(i+1)+"~":o.key=ee.ESC+"[17~";break;case 118:i?o.key=ee.ESC+"[18;"+(i+1)+"~":o.key=ee.ESC+"[18~";break;case 119:i?o.key=ee.ESC+"[19;"+(i+1)+"~":o.key=ee.ESC+"[19~";break;case 120:i?o.key=ee.ESC+"[20;"+(i+1)+"~":o.key=ee.ESC+"[20~";break;case 121:i?o.key=ee.ESC+"[21;"+(i+1)+"~":o.key=ee.ESC+"[21~";break;case 122:i?o.key=ee.ESC+"[23;"+(i+1)+"~":o.key=ee.ESC+"[23~";break;case 123:i?o.key=ee.ESC+"[24;"+(i+1)+"~":o.key=ee.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?o.key=ee.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?o.key=ee.DEL:e.keyCode===219?o.key=ee.ESC:e.keyCode===220?o.key=ee.FS:e.keyCode===221&&(o.key=ee.GS);else if((!r||n)&&e.altKey&&!e.metaKey){let a=zie[e.keyCode]?.[e.shiftKey?1:0];if(a)o.key=ee.ESC+a;else if(e.keyCode>=65&&e.keyCode<=90){let s=e.ctrlKey?e.keyCode-64:e.keyCode+32,l=String.fromCharCode(s);e.shiftKey&&(l=l.toUpperCase()),o.key=ee.ESC+l}else if(e.keyCode===32)o.key=ee.ESC+(e.ctrlKey?ee.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let s=e.code.slice(3,4);e.shiftKey||(s=s.toLowerCase()),o.key=ee.ESC+s,o.cancel=!0}}else r&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(o.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?o.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(o.key=ee.US),e.key==="@"&&(o.key=ee.NUL));break}return o}var rr=0,Fie=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new wI,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new wI,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((o,i)=>this._getKey(o)-this._getKey(i)),t=0,r=0,n=new Array(this._array.length+this._insertedValues.length);for(let o=0;o<n.length;o++)r>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[r])?(n[o]=e[t],t++):n[o]=this._array[r++];this._array=n,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(rr=this._search(t),rr===-1)||this._getKey(this._array[rr])!==t)return!1;do if(this._array[rr]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(rr),!0;while(++rr<this._array.length&&this._getKey(this._array[rr])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((o,i)=>o-i),t=0,r=new Array(this._array.length-e.length),n=0;for(let o=0;o<this._array.length;o++)e[t]===o?t++:r[n++]=this._array[o];this._array=r,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(rr=this._search(e),!(rr<0||rr>=this._array.length)&&this._getKey(this._array[rr])===e))do yield this._array[rr];while(++rr<this._array.length&&this._getKey(this._array[rr])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(rr=this._search(e),!(rr<0||rr>=this._array.length)&&this._getKey(this._array[rr])===e))do t(this._array[rr]);while(++rr<this._array.length&&this._getKey(this._array[rr])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,r=this._array.length-1;for(;r>=t;){let n=t+r>>1,o=this._getKey(this._array[n]);if(o>e)r=n-1;else if(o<e)t=n+1;else{for(;n>0&&this._getKey(this._array[n-1])===e;)n--;return n}}return t}},R$=0,pj=0,Nie=class extends Fe{constructor(){super(),this._decorations=new Fie(e=>e?.marker.line),this._onDecorationRegistered=this._register(new ne),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new ne),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(Dt(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new Bie(e);if(t){let r=t.marker.onDispose(()=>t.dispose()),n=t.onDispose(()=>{n.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),r.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,r){let n=0,o=0;for(let i of this._decorations.getKeyIterator(t))n=i.options.x??0,o=n+(i.options.width??1),e>=n&&e<o&&(!r||(i.options.layer??"bottom")===r)&&(yield i)}forEachDecorationAtCell(e,t,r,n){this._decorations.forEachByKey(t,o=>{R$=o.options.x??0,pj=R$+(o.options.width??1),e>=R$&&e<pj&&(!r||(o.options.layer??"bottom")===r)&&n(o)})}},Bie=class extends Cl{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new ne),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new ne),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=Bt.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=Bt.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},Lie=1e3,Mie=class{constructor(e,t=Lie){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let n=performance.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){let o=n-this._lastRefreshMs,i=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},i)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},hj=20,gj=!1,SI=class extends Fe{constructor(e,t,r,n){super(),this._terminal=e,this._coreBrowserService=r,this._renderService=n,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let o=this._coreBrowserService.mainDocument;this._accessibilityContainer=o.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=o.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let i=0;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);if(this._topBoundaryFocusListener=i=>this._handleBoundaryFocus(i,0),this._bottomBoundaryFocusListener=i=>this._handleBoundaryFocus(i,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=o.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new Mie(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");gj?(this._accessibilityContainer.classList.add("debug"),this._rowContainer.classList.add("debug"),this._debugRootContainer=o.createElement("div"),this._debugRootContainer.classList.add("xterm"),this._debugRootContainer.appendChild(o.createTextNode("------start a11y------")),this._debugRootContainer.appendChild(this._accessibilityContainer),this._debugRootContainer.appendChild(o.createTextNode("------end a11y------")),this._terminal.element.insertAdjacentElement("afterend",this._debugRootContainer)):this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this._register(this._terminal.onResize(i=>this._handleResize(i.rows))),this._register(this._terminal.onRender(i=>this._refreshRows(i.start,i.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(i=>this._handleChar(i))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
92
+ `))),this._register(this._terminal.onA11yTab(i=>this._handleTab(i))),this._register(this._terminal.onKey(i=>this._handleKey(i.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Ee(o,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(Dt(()=>{gj?this._debugRootContainer.remove():this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<hj+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
93
+ `&&(this._liveRegionLineCount++,this._liveRegionLineCount===hj+1&&(this._liveRegion.textContent+=E$.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let r=this._terminal.buffer,n=r.lines.length.toString();for(let o=e;o<=t;o++){let i=r.lines.get(r.ydisp+o),a=[],s=i?.translateToString(!0,void 0,void 0,a)||"",l=(r.ydisp+o+1).toString(),c=this._rowElements[o];c&&(s.length===0?(c.textContent="\xA0",this._rowColumns.set(c,[0,1])):(c.textContent=s,this._rowColumns.set(c,a)),c.setAttribute("aria-posinset",l),c.setAttribute("aria-setsize",n),this._alignRowWidth(c))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let r=e.target,n=this._rowElements[t===0?1:this._rowElements.length-2],o=r.getAttribute("aria-posinset"),i=t===0?"1":`${this._terminal.buffer.lines.length}`;if(o===i||e.relatedTarget!==n)return;let a,s;if(t===0?(a=r,s=this._rowElements.pop(),this._rowContainer.removeChild(s)):(a=this._rowElements.shift(),s=r,this._rowContainer.removeChild(a)),a.removeEventListener("focus",this._topBoundaryFocusListener),s.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{let l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},r={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(r.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===r.node&&t.offset>r.offset)&&([t,r]=[r,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let n=this._rowElements.slice(-1)[0];if(r.node.compareDocumentPosition(n)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(r={node:n,offset:n.textContent?.length??0}),!this._rowContainer.contains(r.node))return;let o=({node:s,offset:l})=>{let c=s instanceof Text?s.parentNode:s,u=parseInt(c?.getAttribute("aria-posinset"),10)-1;if(isNaN(u))return console.warn("row is invalid. Race condition?"),null;let d=this._rowColumns.get(c);if(!d)return console.warn("columns is null. Race condition?"),null;let f=l<d.length?d[l]:d.slice(-1)[0]+1;return f>=this._terminal.cols&&(++u,f=0),{row:u,column:f}},i=o(t),a=o(r);if(!(!i||!a)){if(i.row>a.row||i.row===a.row&&i.column>=a.column)throw new Error("invalid range");this._terminal.select(i.column,i.row,(a.row-i.row)*this._terminal.cols-i.column+a.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){e.style.transform="";let t=e.getBoundingClientRect().width,r=this._rowColumns.get(e)?.slice(-1)?.[0];if(!r)return;let n=r*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${n/t})`}};SI=Qt([me(1,xR),me(2,os),me(3,ns)],SI);var vR=class extends Fe{constructor(e,t,r,n,o){super(),this._element=e,this._mouseService=t,this._renderService=r,this._bufferService=n,this._linkProviderService=o,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new ne),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new ne),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(Dt(()=>{uu(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Ee(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Ee(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(Ee(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(Ee(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let r=e.composedPath();for(let n=0;n<r.length;n++){let o=r[n];if(o.classList.contains("xterm"))break;if(o.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){(!this._activeProviderReplies||!t)&&(this._activeProviderReplies?.forEach(n=>{n?.forEach(o=>{o.link.dispose&&o.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(let[n,o]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(n)&&(r=this._checkLinkProviderResult(n,e,r)):o.provideLinks(e.y,i=>{if(this._isMouseOut)return;let a=i?.map(s=>({link:s}));this._activeProviderReplies?.set(n,a),r=this._checkLinkProviderResult(n,e,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let r=new Set;for(let n=0;n<t.size;n++){let o=t.get(n);if(o)for(let i=0;i<o.length;i++){let a=o[i],s=a.link.range.start.y<e?0:a.link.range.start.x,l=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x;for(let c=s;c<=l;c++){if(r.has(c)){o.splice(i--,1);break}r.add(c)}}}}_checkLinkProviderResult(e,t,r){if(!this._activeProviderReplies)return r;let n=this._activeProviderReplies.get(e),o=!1;for(let i=0;i<e;i++)(!this._activeProviderReplies.has(i)||this._activeProviderReplies.get(i))&&(o=!0);if(!o&&n){let i=n.find(a=>this._linkAtPosition(a.link,t));i&&(r=!0,this._handleNewLink(i))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let i=0;i<this._activeProviderReplies.size;i++){let a=this._activeProviderReplies.get(i)?.find(s=>this._linkAtPosition(s.link,t));if(a){r=!0,this._handleNewLink(a);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&jie(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,uu(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;let n=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=n&&this._currentLink.link.range.end.y<=o&&(this._clearCurrentLink(n,o),this._lastMouseEvent)){let i=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);i&&this._askForLink(i,!1)}})))}_linkHover(e,t,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(r,t.text)}_fireUnderlineEvent(e,t){let r=e.range,n=this._bufferService.buffer.ydisp,o=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-n-1,r.end.x,r.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(o)}_linkLeave(e,t,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(r,t.text)}_linkAtPosition(e,t){let r=e.range.start.y*this._bufferService.cols+e.range.start.x,n=e.range.end.y*this._bufferService.cols+e.range.end.x,o=t.y*this._bufferService.cols+t.x;return r<=o&&o<=n}_positionFromMouseEvent(e,t,r){let n=r.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,r,n,o){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:o}}};vR=Qt([me(1,bR),me(2,ns),me(3,Po),me(4,Rj)],vR);function jie(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var Uie=class extends Oie{constructor(e={}){super(e),this._linkifier=this._register(new Kf),this.browser=Yj,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Kf),this._onCursorMove=this._register(new ne),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new ne),this.onKey=this._onKey.event,this._onRender=this._register(new ne),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new ne),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new ne),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new ne),this.onBell=this._onBell.event,this._onFocus=this._register(new ne),this._onBlur=this._register(new ne),this._onA11yCharEmitter=this._register(new ne),this._onA11yTabEmitter=this._register(new ne),this._onWillOpen=this._register(new ne),this._setup(),this._decorationService=this._instantiationService.createInstance(Nie),this._instantiationService.setService(Rg,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(Dne),this._instantiationService.setService(Rj,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(O$)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh(t?.start??0,t?.end??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(Er.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(Er.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(Er.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(Er.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(Dt(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let r,n="";switch(t.index){case 256:r="foreground",n="10";break;case 257:r="background",n="11";break;case 258:r="cursor",n="12";break;default:r="ansi",n="4;"+t.index}switch(t.type){case 0:let o=_t.toColorRGB(r==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[r]);this.coreService.triggerDataEvent(`${ee.ESC}]${n};${Pie(o)}${tR.ST}`);break;case 1:if(r==="ansi")this._themeService.modifyColors(i=>i.ansi[t.index]=or.toColor(...t.color));else{let i=r;this._themeService.modifyColors(a=>a[i]=or.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(SI,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(ee.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(ee.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let r=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.css.cell.height,o=t.getWidth(r),i=this._renderService.dimensions.css.cell.width*o,a=this.buffer.y*this._renderService.dimensions.css.cell.height,s=r*this._renderService.dimensions.css.cell.width;this.textarea.style.left=s+"px",this.textarea.style.top=a+"px",this.textarea.style.width=i+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(Ee(this.element,"copy",t=>{this.hasSelection()&&_re(t,this._selectionService)}));let e=t=>Ire(t,this.textarea,this.coreService,this.optionsService);this._register(Ee(this.textarea,"paste",e)),this._register(Ee(this.element,"paste",e)),eU?this._register(Ee(this.element,"mousedown",t=>{t.button===2&&p9(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Ee(this.element,"contextmenu",t=>{p9(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),PR&&this._register(Ee(this.element,"auxclick",t=>{t.button===1&&yj(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Ee(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(Ee(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(Ee(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(Ee(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(Ee(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(Ee(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(Ee(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this.element?.ownerDocument.defaultView&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(Ee(this.screenElement,"mousemove",o=>this.updateCursorStyle(o))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let r=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",D$.get()),oU||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>r.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance($ne,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(os,this._coreBrowserService),this._register(Ee(this.textarea,"focus",o=>this._handleTextAreaFocus(o))),this._register(Ee(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(iR,this._document,this._helperContainer),this._instantiationService.setService(CI,this._charSizeService),this._themeService=this._instantiationService.createInstance(cR),this._instantiationService.setService(Gf,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(_I),this._instantiationService.setService($j,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(sR,this.rows,this.screenElement)),this._instantiationService.setService(ns,this._renderService),this._register(this._renderService.onRenderedViewportChange(o=>this._onRender.fire(o))),this.onResize(o=>this._renderService.resize(o.cols,o.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(rR,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(aR),this._instantiationService.setService(bR,this._mouseService);let n=this._linkifier.value=this._register(this._instantiationService.createInstance(vR,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(Y$,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(o=>{super.scrollLines(o,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(lR,this.element,this.screenElement,n)),this._instantiationService.setService(Dre,this._selectionService),this._register(this._selectionService.onRequestScrollLines(o=>this.scrollLines(o.amount,o.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(o=>this._renderService.handleSelectionChanged(o.start,o.end,o.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(o=>{this.textarea.value=o,this.textarea.focus(),this.textarea.select()})),this._register(Er.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(eR,this.screenElement)),this._register(Ee(this.element,"mousedown",o=>this._selectionService.handleMouseDown(o))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(SI,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",o=>this._handleScreenReaderModeOptionChange(o))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(yI,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",o=>{!this._overviewRulerRenderer&&o&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(yI,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(nR,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function r(i){let a=e._mouseService.getMouseReportCoords(i,e.screenElement);if(!a)return!1;let s,l;switch(i.overrideType||i.type){case"mousemove":l=32,i.buttons===void 0?(s=3,i.button!==void 0&&(s=i.button<3?i.button:3)):s=i.buttons&1?0:i.buttons&4?1:i.buttons&2?2:3;break;case"mouseup":l=0,s=i.button<3?i.button:3;break;case"mousedown":l=1,s=i.button<3?i.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(i)===!1)return!1;let c=i.deltaY;if(c===0||e.coreMouseService.consumeWheelEvent(i,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;l=c<0?0:1,s=4;break;default:return!1}return l===void 0||s===void 0||s>4?!1:e.coreMouseService.triggerMouseEvent({col:a.col,row:a.row,x:a.x,y:a.y,button:s,action:l,ctrl:i.ctrlKey,alt:i.altKey,shift:i.shiftKey})}let n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o={mouseup:i=>(r(i),i.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(i)),wheel:i=>(r(i),this.cancel(i,!0)),mousedrag:i=>{i.buttons&&r(i)},mousemove:i=>{i.buttons||r(i)}};this._register(this.coreMouseService.onProtocolChange(i=>{i?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(i)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),i&8?n.mousemove||(t.addEventListener("mousemove",o.mousemove),n.mousemove=o.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),i&16?n.wheel||(t.addEventListener("wheel",o.wheel,{passive:!1}),n.wheel=o.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),i&2?n.mouseup||(n.mouseup=o.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),i&4?n.mousedrag||(n.mousedrag=o.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Ee(t,"mousedown",i=>{if(i.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(i)))return r(i),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(i)})),this._register(Ee(t,"wheel",i=>{if(!n.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(i)===!1)return!1;if(!this.buffer.hasScrollback){if(i.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(i,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(i,!0);let a=ee.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(i.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(a,!0),this.cancel(i,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){bj(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,r){this._selectionService.setSelection(e,t,r)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let r=Aie(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),r.type===3||r.type===2){let n=this.rows-1;return this.scrollLines(r.type===2?-n:n),this.cancel(e,!0)}if(r.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(r.cancel&&this.cancel(e,!0),!r.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((r.key===ee.ETX||r.key===ee.CR)&&(this.textarea.value=""),this._onKey.fire({key:r.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(r.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?r:r&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(Vie(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){this._charSizeService?.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(lr));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),this._selectionService?.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){this._renderService?.clearTextureAtlas()}_reportFocus(){this.element?.classList.contains("focus")?this.coreService.triggerDataEvent(ee.ESC+"[I"):this.coreService.triggerDataEvent(ee.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),r=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${ee.ESC}[4;${r};${t}t`);break;case 1:let n=this._renderService.dimensions.css.cell.width.toFixed(0),o=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${ee.ESC}[6;${o};${n}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function Vie(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var Hie=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=()=>this._wrappedAddonDispose(r),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},Wie=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new Kn)}translateToString(e,t,r){return this._line.translateToString(e,t,r)}},vj=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new Wie(t)}getNullCell(){return new Kn}},Zie=class extends Fe{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new ne),this.onBufferChange=this._onBufferChange.event,this._normal=new vj(this._core.buffers.normal,"normal"),this._alternate=new vj(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},qie=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,r=>t(r.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(r,n)=>t(r,n.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},Kie=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},Gie=["cols","rows"],sa=0,mU=class extends Fe{constructor(e){super(),this._core=this._register(new Uie(e)),this._addonManager=this._register(new Hie),this._publicOptions={...this._core.options};let t=n=>this._core.options[n],r=(n,o)=>{this._checkReadonlyOptions(n),this._core.options[n]=o};for(let n in this._core.options){let o={get:t.bind(this,n),set:r.bind(this,n)};Object.defineProperty(this._publicOptions,n,o)}}_checkReadonlyOptions(e){if(Gie.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new qie(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new Kie(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new Zie(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
94
+ `,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return D$.get()},set promptLabel(e){D$.set(e)},get tooMuchOutput(){return E$.get()},set tooMuchOutput(e){E$.set(e)}}}_verifyIntegers(...e){for(sa of e)if(sa===1/0||isNaN(sa)||sa%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(sa of e)if(sa&&(sa===1/0||isNaN(sa)||sa%1!==0||sa<0))throw new Error("This API only accepts positive integers")}};var mu=b(S(),1);function pU(e){try{let t=JSON.parse(e);switch(t.t){case"ready":case"restarting":return{t:t.t};case"exit":return typeof t.code=="number"?{t:"exit",code:t.code}:null;case"error":return typeof t.message=="string"?{t:"error",message:t.message.slice(0,500)}:null;default:return null}}catch{return null}}var hU=[500,1e3,2e3,4e3,8e3],EI=class{constructor(t,r){Kt(this,"sessionId",t);Kt(this,"events",r);Kt(this,"socket",null);Kt(this,"timer");Kt(this,"attempt",0);Kt(this,"closed",!1);Kt(this,"finished",!1);Kt(this,"size",{cols:120,rows:30})}open(t,r){this.size={cols:t,rows:r},this.connect()}connect(){this.events.state(this.attempt===0?"connecting":"reconnecting");let r=(location.protocol==="https:"?"wss:":"ws:")+"//"+location.host+"/api/sessions/"+this.sessionId+"/terminal?cols="+this.size.cols+"&rows="+this.size.rows,n=new WebSocket(r);n.binaryType="arraybuffer",this.socket=n,n.onmessage=o=>{if(o.data instanceof ArrayBuffer){this.events.output(new Uint8Array(o.data));return}let i=typeof o.data=="string"?pU(o.data):null;i&&(i.t==="ready"?(this.attempt=0,this.events.reset(),this.events.state("connected")):i.t==="exit"?(this.finished=!0,this.events.state("ended","The agent exited (code "+i.code+").")):i.t==="error"&&(this.finished=!0,this.events.state("failed",i.message)))},n.onclose=()=>{if(this.socket!==n||(this.socket=null,this.closed||this.finished))return;let o=hU[Math.min(this.attempt,hU.length-1)];this.attempt++,this.events.state("reconnecting"),this.timer=window.setTimeout(()=>this.connect(),o)}}send(t){this.socket?.readyState===WebSocket.OPEN&&this.socket.send(t)}resize(t,r){this.size={cols:t,rows:r},this.socket?.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify({t:"resize",cols:t,rows:r}))}close(){this.closed=!0,window.clearTimeout(this.timer),this.socket?.close(1e3),this.socket=null}};var bU=b(R(),1),gU={background:"#0d1117",foreground:"#e6edf3",cursor:"#e6edf3"},vU={background:"#ffffff",foreground:"#1f2328",cursor:"#1f2328",selectionBackground:"#b6d6fd"};function xU({sessionId:e,onState:t,onReady:r}){let n=(0,mu.useRef)(null),o=(0,mu.useRef)(null),i=KS("dark")==="dark",a=(0,mu.useRef)(i);return(0,mu.useEffect)(()=>{let s=n.current;if(!s)return;let l=new d9,c=new mU({fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontSize:14,cursorBlink:!0,scrollback:5e3,theme:a.current?gU:vU,linkHandler:{activate:(m,p)=>{/^https?:\/\//i.test(p)&&window.confirm(`Open this link in a new tab?
95
+
96
+ `+p.slice(0,300))&&window.open(p,"_blank","noopener,noreferrer")}}});c.loadAddon(l),c.open(s),o.current=c,l.fit();let u=new EI(e,{state:t,output:m=>c.write(m),reset:()=>c.reset()}),d=new TextEncoder;c.onData(m=>u.send(d.encode(m))),c.onBinary(m=>u.send(Uint8Array.from(m,p=>p.charCodeAt(0)))),c.onResize(({cols:m,rows:p})=>u.resize(m,p));let f=new ResizeObserver(()=>l.fit());return f.observe(s),r(()=>u.close()),u.open(c.cols,c.rows),c.focus(),()=>{f.disconnect(),u.close(),c.dispose(),o.current=null}},[e,t,r]),(0,mu.useEffect)(()=>{o.current&&(o.current.options.theme=i?gU:vU)},[i]),(0,bU.jsx)("div",{ref:n,className:"terminal-host"})}var Ii=b(R(),1),Xie={connecting:{text:"Connecting",color:"gray"},connected:{text:"Connected",color:"green"},reconnecting:{text:"Reconnecting",color:"orange"},ended:{text:"Ended",color:"gray"},failed:{text:"Cannot connect",color:"red"}};function yU({id:e}){let[t,r]=(0,Pl.useState)("connecting"),[n,o]=(0,Pl.useState)(),i=(0,Pl.useRef)(()=>{}),a=(0,Pl.useCallback)((u,d)=>{r(u),o(d)},[]),s=(0,Pl.useCallback)(u=>{i.current=u},[]),l=Xie[t],c=()=>{i.current(),bi(Ja("sessions"))};return(0,Ii.jsxs)("div",{className:"terminal-page",children:[(0,Ii.jsxs)(At,{gap:"xs",px:"sm",py:6,wrap:"nowrap",className:"terminal-toolbar",children:[(0,Ii.jsx)(bt,{size:"compact-sm",variant:"default",leftSection:(0,Ii.jsx)(l$,{size:14}),onClick:c,children:"Back"}),(0,Ii.jsxs)(mt,{fw:600,size:"sm",truncate:!0,children:["Session ",e]}),(0,Ii.jsx)(zc,{color:l.color,variant:"light",children:l.text}),n&&(0,Ii.jsx)(mt,{size:"xs",c:"dimmed",truncate:!0,children:n}),(0,Ii.jsx)(bt,{size:"compact-sm",variant:"default",ml:"auto",onClick:c,title:"Close this view; the session keeps running",children:"Detach"})]}),(0,Ii.jsx)(xU,{sessionId:e,onState:a,onReady:s})]})}var P={};xa(P,{$brand:()=>jR,$input:()=>dT,$output:()=>uT,INVALID:()=>Eo,NEVER:()=>MR,TimePrecision:()=>IT,ZodAny:()=>cz,ZodArray:()=>mz,ZodBase64:()=>P0,ZodBase64URL:()=>$0,ZodBigInt:()=>zm,ZodBigIntFormat:()=>E0,ZodBoolean:()=>Om,ZodCIDRv4:()=>k0,ZodCIDRv6:()=>C0,ZodCUID:()=>x0,ZodCUID2:()=>b0,ZodCatch:()=>zz,ZodCodec:()=>Cv,ZodCompileAsyncError:()=>Si,ZodCompileUnsupportedError:()=>Ze,ZodCreditCard:()=>tz,ZodCustom:()=>Pv,ZodCustomStringFormat:()=>Eu,ZodDate:()=>yv,ZodDefault:()=>$z,ZodDiscriminatedUnion:()=>hz,ZodE164:()=>R0,ZodEmail:()=>p0,ZodEmoji:()=>g0,ZodEnum:()=>Dm,ZodError:()=>fue,ZodExactOptional:()=>A0,ZodFile:()=>Sz,ZodFirstPartyTypeKind:()=>Kz,ZodFunction:()=>Hz,ZodGUID:()=>h0,ZodIBAN:()=>rz,ZodIPv4:()=>w0,ZodIPv6:()=>S0,ZodISODate:()=>Nl,ZodISODateTime:()=>Fl,ZodISODuration:()=>Ll,ZodISOTime:()=>Bl,ZodInstanceOf:()=>qz,ZodIntersection:()=>gz,ZodIssueCode:()=>hue,ZodJWT:()=>D0,ZodKSUID:()=>I0,ZodLazy:()=>jz,ZodLiteral:()=>wz,ZodMAC:()=>ez,ZodMap:()=>_z,ZodNaN:()=>Fz,ZodNanoID:()=>v0,ZodNever:()=>dz,ZodNonOptional:()=>F0,ZodNull:()=>sz,ZodNullable:()=>Pz,ZodNumber:()=>Tm,ZodNumberFormat:()=>Tu,ZodObject:()=>Iv,ZodOptional:()=>Sv,ZodPipe:()=>kv,ZodPrefault:()=>Dz,ZodPreprocess:()=>Nz,ZodPromise:()=>Vz,ZodReadonly:()=>Bz,ZodRealError:()=>tn,ZodRecord:()=>Rm,ZodSet:()=>Iz,ZodString:()=>Em,ZodStringFormat:()=>ut,ZodSuccess:()=>Oz,ZodSymbol:()=>iz,ZodTemplateLiteral:()=>Mz,ZodTransform:()=>kz,ZodTuple:()=>xz,ZodType:()=>Ae,ZodULID:()=>y0,ZodURL:()=>bv,ZodUUID:()=>ma,ZodUndefined:()=>az,ZodUnion:()=>wv,ZodUnknown:()=>uz,ZodVoid:()=>fz,ZodXID:()=>_0,ZodXor:()=>pz,_ZodString:()=>m0,_default:()=>Rz,_function:()=>eZ,any:()=>EW,array:()=>_v,base64:()=>dW,base64url:()=>fW,bigint:()=>CW,boolean:()=>nz,catch:()=>Az,check:()=>tZ,cidrv4:()=>cW,cidrv6:()=>uW,clone:()=>nt,codec:()=>XW,coerce:()=>Xz,compile:()=>hT,config:()=>Jt,core:()=>cs,creditCard:()=>pW,cuid:()=>tW,cuid2:()=>rW,currencyCode:()=>yW,custom:()=>rZ,date:()=>OW,decode:()=>qO,decodeAsync:()=>GO,deepPartial:()=>hZ,describe:()=>oZ,discriminatedUnion:()=>LW,e164:()=>mW,email:()=>WH,emoji:()=>YH,encode:()=>ZO,encodeAsync:()=>KO,endsWith:()=>xm,enum:()=>O0,exactOptional:()=>Cz,file:()=>ZW,flattenError:()=>Ug,float32:()=>IW,float64:()=>wW,formatError:()=>Vg,fromJSONSchema:()=>mZ,function:()=>eZ,getDiscriminatedOption:()=>BE,getErrorMap:()=>vue,globalRegistry:()=>Wr,gt:()=>da,gte:()=>yn,guid:()=>ZH,hash:()=>_W,hex:()=>bW,hostname:()=>xW,httpUrl:()=>JH,iban:()=>hW,includes:()=>gm,input:()=>vZ,instanceof:()=>iZ,int:()=>d0,int32:()=>SW,int64:()=>PW,intersection:()=>vz,invertCodec:()=>QW,ipv4:()=>aW,ipv6:()=>lW,iso:()=>$v,json:()=>sZ,jwt:()=>gW,keyof:()=>zW,ksuid:()=>iW,lazy:()=>Uz,length:()=>Cu,literal:()=>WW,locales:()=>cv,looseObject:()=>NW,looseRecord:()=>jW,lowercase:()=>pm,lt:()=>ua,lte:()=>bn,mac:()=>sW,map:()=>UW,maxLength:()=>ku,maxSize:()=>Tl,memoizer:()=>sv,meta:()=>nZ,mime:()=>ym,minLength:()=>ls,minSize:()=>fa,multipleOf:()=>El,nan:()=>GW,nanoid:()=>eW,nativeEnum:()=>HW,negative:()=>e0,never:()=>T0,nonnegative:()=>r0,nonoptional:()=>Tz,nonpositive:()=>t0,normalize:()=>_m,null:()=>lz,nullable:()=>xv,nullish:()=>qW,number:()=>oz,object:()=>AW,optional:()=>Ru,output:()=>xZ,overwrite:()=>ki,parse:()=>UO,parseAsync:()=>VO,partialRecord:()=>MW,pipe:()=>f0,positive:()=>Yw,prefault:()=>Ez,preprocess:()=>lZ,prettifyError:()=>WR,promise:()=>YW,properties:()=>bm,property:()=>o0,readonly:()=>Lz,record:()=>yz,refine:()=>Wz,regex:()=>mm,regexes:()=>Qn,registry:()=>$w,safeDecode:()=>QO,safeDecodeAsync:()=>YO,safeEncode:()=>XO,safeEncodeAsync:()=>JO,safeParse:()=>HO,safeParseAsync:()=>WO,set:()=>VW,setErrorMap:()=>gue,size:()=>Su,slugify:()=>km,startsWith:()=>vm,strictObject:()=>FW,string:()=>vv,stringFormat:()=>vW,stringbool:()=>aZ,success:()=>KW,superRefine:()=>Zz,symbol:()=>RW,templateLiteral:()=>JW,toJSONSchema:()=>s0,toLowerCase:()=>wm,toUpperCase:()=>Sm,toZod:()=>Tg,transform:()=>z0,treeifyError:()=>HR,trim:()=>Im,tuple:()=>bz,uint32:()=>kW,uint64:()=>$W,ulid:()=>oW,undefined:()=>DW,union:()=>Am,unknown:()=>$u,uppercase:()=>hm,url:()=>QH,util:()=>K,uuid:()=>qH,uuidv4:()=>KH,uuidv6:()=>GH,uuidv7:()=>XH,validate:()=>Hg,validateAsync:()=>Wg,void:()=>TW,withParser:()=>Rw,xid:()=>nW,xor:()=>BW});var cs={};xa(cs,{$ZodAny:()=>DE,$ZodArray:()=>AE,$ZodAsyncError:()=>Yo,$ZodBase64:()=>xE,$ZodBase64URL:()=>bE,$ZodBigInt:()=>pw,$ZodBigIntFormat:()=>CE,$ZodBoolean:()=>tv,$ZodCIDRv4:()=>gE,$ZodCIDRv6:()=>vE,$ZodCUID:()=>nE,$ZodCUID2:()=>iE,$ZodCatch:()=>eT,$ZodCheck:()=>ft,$ZodCheckBigIntFormat:()=>ED,$ZodCheckEndsWith:()=>VD,$ZodCheckGreaterThan:()=>JI,$ZodCheckIncludes:()=>jD,$ZodCheckLengthEquals:()=>ND,$ZodCheckLessThan:()=>QI,$ZodCheckLowerCase:()=>LD,$ZodCheckMaxLength:()=>AD,$ZodCheckMaxSize:()=>TD,$ZodCheckMimeType:()=>ZD,$ZodCheckMinLength:()=>FD,$ZodCheckMinSize:()=>OD,$ZodCheckMultipleOf:()=>RD,$ZodCheckNumberFormat:()=>DD,$ZodCheckOverwrite:()=>qD,$ZodCheckProperties:()=>WD,$ZodCheckProperty:()=>HD,$ZodCheckRegex:()=>BD,$ZodCheckSizeEquals:()=>zD,$ZodCheckStartsWith:()=>UD,$ZodCheckStringFormat:()=>lm,$ZodCheckUpperCase:()=>MD,$ZodCodec:()=>ov,$ZodCreditCard:()=>_E,$ZodCustom:()=>sT,$ZodCustomStringFormat:()=>SE,$ZodCyclicError:()=>_w,$ZodDate:()=>zE,$ZodDefault:()=>XE,$ZodDiscriminatedUnion:()=>LE,$ZodE164:()=>yE,$ZodEmail:()=>JD,$ZodEmoji:()=>rE,$ZodEncodeError:()=>Dl,$ZodEnum:()=>HE,$ZodError:()=>jg,$ZodExactOptional:()=>KE,$ZodFile:()=>ZE,$ZodFunction:()=>iT,$ZodGUID:()=>XD,$ZodIBAN:()=>IE,$ZodIPv4:()=>mE,$ZodIPv6:()=>pE,$ZodISODate:()=>uE,$ZodISODateTime:()=>cE,$ZodISODuration:()=>fE,$ZodISOTime:()=>dE,$ZodIntersection:()=>ME,$ZodJWT:()=>wE,$ZodKSUID:()=>lE,$ZodLazy:()=>nv,$ZodLiteral:()=>WE,$ZodMAC:()=>hE,$ZodMap:()=>UE,$ZodNaN:()=>tT,$ZodNanoID:()=>oE,$ZodNever:()=>TE,$ZodNonOptional:()=>JE,$ZodNull:()=>RE,$ZodNullable:()=>GE,$ZodNumber:()=>mw,$ZodNumberFormat:()=>kE,$ZodObject:()=>tV,$ZodObjectJIT:()=>FE,$ZodOptional:()=>gw,$ZodPipe:()=>vw,$ZodPrefault:()=>QE,$ZodPreprocess:()=>rT,$ZodPromise:()=>aT,$ZodReadonly:()=>oT,$ZodRealError:()=>en,$ZodRecord:()=>jE,$ZodRegistry:()=>Pw,$ZodSet:()=>VE,$ZodString:()=>bu,$ZodStringFormat:()=>it,$ZodSuccess:()=>YE,$ZodSymbol:()=>PE,$ZodTemplateLiteral:()=>nT,$ZodTransform:()=>qE,$ZodTuple:()=>hw,$ZodType:()=>Te,$ZodULID:()=>aE,$ZodURL:()=>tE,$ZodUUID:()=>QD,$ZodUndefined:()=>$E,$ZodUnion:()=>rv,$ZodUnknown:()=>EE,$ZodVoid:()=>OE,$ZodXID:()=>sE,$ZodXor:()=>NE,$brand:()=>jR,$constructor:()=>z,$input:()=>dT,$output:()=>uT,Doc:()=>xu,INVALID:()=>Eo,JSONSchema:()=>UH,JSONSchemaGenerator:()=>l0,NEVER:()=>MR,TimePrecision:()=>IT,URL_BAD_FORMAT:()=>YD,URL_UNPARSEABLE:()=>Xg,ZodCompileAsyncError:()=>Si,ZodCompileUnsupportedError:()=>Ze,_any:()=>LT,_array:()=>ZT,_base64:()=>Gw,_base64url:()=>Xw,_bigint:()=>TT,_boolean:()=>DT,_catch:()=>eue,_check:()=>CH,_cidrv4:()=>qw,_cidrv6:()=>Kw,_coercedBigint:()=>OT,_coercedBoolean:()=>ET,_coercedDate:()=>HT,_coercedNumber:()=>ST,_coercedString:()=>xT,_creditCard:()=>yT,_cuid:()=>Mw,_cuid2:()=>jw,_custom:()=>KT,_date:()=>VT,_decode:()=>MI,_decodeAsync:()=>UI,_default:()=>Qce,_discriminatedUnion:()=>Lce,_e164:()=>Qw,_email:()=>Tw,_emoji:()=>Bw,_encode:()=>LI,_encodeAsync:()=>jI,_endsWith:()=>xm,_enum:()=>Wce,_file:()=>qT,_float32:()=>CT,_float64:()=>PT,_gt:()=>da,_gte:()=>yn,_guid:()=>Ow,_iban:()=>_T,_includes:()=>gm,_int:()=>kT,_int32:()=>$T,_int64:()=>zT,_intersection:()=>Mce,_ipv4:()=>Ww,_ipv6:()=>Zw,_isoDate:()=>fv,_isoDateTime:()=>dv,_isoDuration:()=>pv,_isoTime:()=>mv,_jwt:()=>Jw,_ksuid:()=>Hw,_lazy:()=>nue,_length:()=>Cu,_literal:()=>qce,_lowercase:()=>pm,_lt:()=>ua,_lte:()=>bn,_mac:()=>bT,_map:()=>Vce,_max:()=>bn,_maxLength:()=>ku,_maxSize:()=>Tl,_mime:()=>ym,_min:()=>yn,_minLength:()=>ls,_minSize:()=>fa,_multipleOf:()=>El,_nan:()=>WT,_nanoid:()=>Lw,_nativeEnum:()=>Zce,_negative:()=>e0,_never:()=>jT,_nonnegative:()=>r0,_nonoptional:()=>Jce,_nonpositive:()=>t0,_normalize:()=>_m,_null:()=>BT,_nullable:()=>Xce,_number:()=>wT,_optional:()=>Gce,_overwrite:()=>ki,_parse:()=>om,_parseAsync:()=>im,_pipe:()=>tue,_positive:()=>Yw,_promise:()=>iue,_properties:()=>bm,_property:()=>o0,_readonly:()=>rue,_record:()=>Uce,_refine:()=>GT,_regex:()=>mm,_safeDecode:()=>HI,_safeDecodeAsync:()=>ZI,_safeEncode:()=>VI,_safeEncodeAsync:()=>WI,_safeParse:()=>am,_safeParseAsync:()=>sm,_set:()=>Hce,_size:()=>Su,_slugify:()=>km,_startsWith:()=>vm,_string:()=>vT,_stringFormat:()=>Pu,_stringbool:()=>YT,_success:()=>Yce,_superRefine:()=>XT,_symbol:()=>FT,_templateLiteral:()=>oue,_toLowerCase:()=>wm,_toUpperCase:()=>Sm,_transform:()=>Kce,_trim:()=>Im,_tuple:()=>jce,_uint32:()=>RT,_uint64:()=>AT,_ulid:()=>Uw,_undefined:()=>NT,_union:()=>Nce,_unknown:()=>MT,_uppercase:()=>hm,_url:()=>uv,_uuid:()=>zw,_uuidv4:()=>Aw,_uuidv6:()=>Fw,_uuidv7:()=>Nw,_void:()=>UT,_xid:()=>Vw,_xor:()=>Bce,base64Charset:()=>lw,base64urlCharset:()=>ev,canParseURL:()=>eE,clone:()=>nt,compile:()=>hT,compileFn:()=>Dw,config:()=>Jt,createStandardJSONSchemaMethod:()=>Cm,createToJSONSchemaMethod:()=>tO,decode:()=>jae,decodeAsync:()=>Vae,describe:()=>QT,encode:()=>Mae,encodeAsync:()=>Uae,extractDefs:()=>zl,finalize:()=>Al,flattenError:()=>Ug,formatError:()=>Vg,getDiscriminatedOption:()=>BE,globalConfig:()=>Or,globalRegistry:()=>Wr,handleUnrepresentable:()=>vr,initializeContext:()=>Ol,isBackEdge:()=>ww,isRecursiveSchema:()=>Iw,isValidBase64:()=>Yg,isValidBase64URL:()=>cw,isValidCIDRv6:()=>sw,isValidCreditCard:()=>uw,isValidIBAN:()=>dw,isValidIPv6:()=>Jg,isValidJWT:()=>fw,locales:()=>cv,memoizer:()=>sv,mergeValues:()=>cm,meta:()=>JT,parse:()=>nm,parseAsync:()=>BI,parseURLObject:()=>JU,prettifyError:()=>WR,process:()=>at,processSchema:()=>at,regexes:()=>Qn,registry:()=>$w,safeDecode:()=>Wae,safeDecodeAsync:()=>qae,safeEncode:()=>Hae,safeEncodeAsync:()=>Zae,safeParse:()=>Aae,safeParseAsync:()=>Fae,standardProps:()=>ow,stripTabAndNewline:()=>Qg,toDotPath:()=>EU,toJSONSchema:()=>s0,toZod:()=>Tg,treeifyError:()=>HR,urlHostnameOk:()=>iw,urlProtocolOk:()=>aw,util:()=>K,validate:()=>Hg,validateAsync:()=>Wg,validateURL:()=>nw,version:()=>KD,withParser:()=>Rw});var K={};xa(K,{BIGINT_FORMAT_RANGES:()=>Ng,CONSTANT_CATCH:()=>FI,Class:()=>DR,NUMBER_FORMAT_RANGES:()=>Fg,aborted:()=>Do,allowsEval:()=>OR,assert:()=>tae,assertEqual:()=>Qie,assertIs:()=>Yie,assertNever:()=>eae,assertNotEqual:()=>Jie,assignProp:()=>Hr,attachSchema:()=>AI,base64ToUint8Array:()=>kU,base64urlToUint8Array:()=>yae,cached:()=>em,captureStackTrace:()=>OI,cleanEnum:()=>bae,cleanRegex:()=>as,clone:()=>nt,cloneDef:()=>nae,codePointLength:()=>gu,constantCatch:()=>BR,createTransparentProxy:()=>uae,defineLazy:()=>ER,defineLazyInternal:()=>Ne,derived:()=>Sae,esc:()=>Ro,escapeRegex:()=>Xn,explicitlyAborted:()=>FR,extend:()=>mae,finalizeIssue:()=>Jo,floatSafeRemainder:()=>Og,getElementAtPath:()=>iae,getEnumValues:()=>Jf,getLengthableOrigin:()=>Lg,getParsedType:()=>cae,getSizableOrigin:()=>Bg,hexToUint8Array:()=>Iae,hide:()=>Mg,installLazyProp:()=>$ae,isObject:()=>hu,isPlainObject:()=>Gn,issue:()=>rm,joinValues:()=>F,jsonStringifyReplacer:()=>Yf,members:()=>NR,merge:()=>hae,mergeDefs:()=>wi,normalizeParams:()=>oe,nullish:()=>TI,numKeys:()=>lae,objectClone:()=>rae,omit:()=>fae,optionalKeys:()=>AR,own:()=>Rl,parsedType:()=>Q,partial:()=>gae,pick:()=>dae,prefixIssues:()=>Qo,primitiveTypes:()=>zR,promiseAllObject:()=>aae,propertyKeyTypes:()=>Ag,randomString:()=>sae,rawShape:()=>tm,required:()=>vae,safeExtend:()=>pae,shallowClone:()=>zg,slugify:()=>TR,stringifyPrimitive:()=>G,toZod:()=>Tg,uint8ArrayToBase64:()=>CU,uint8ArrayToBase64url:()=>_ae,uint8ArrayToHex:()=>wae,unwrapMessage:()=>Qf});function Qie(e){return e}function Jie(e){return e}function Tg(){return e=>e}function Yie(e){}function eae(e){throw new Error("Unexpected value in exhaustive check")}function tae(e){}function Jf(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function F(e,t="|"){return e.map(r=>G(r)).join(t)}function Yf(e,t){return typeof t=="bigint"?t.toString():t}var RR=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function em(e){return new RR(e)}function TI(e){return e==null}function as(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Og(e,t){let r=e/t,n=Math.round(r),o=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)<o?0:r-n}var _U=Symbol("evaluating");function ER(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==_U)return n===void 0&&(n=_U,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function rae(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Hr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function tm(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function is(e){return tm(e._zod.def)??e._zod.def.shape}function IU(e,t,r){Object.defineProperty(e,t,{get(){let n=r();return Hr(this,t,n),n},enumerable:!0,configurable:!0})}function wU(e,t,r){t in e?Hr(e,t,r):e[t]=r}function pu(e,t,r,n){let o=is(t);for(let i of r){let a=Object.getOwnPropertyDescriptor(o,i);a.enumerable&&(a.get?IU(e,i,()=>{let s=t._zod.def.shape[i];return n?n(s,i):s}):wU(e,i,n?n(a.value,i):a.value))}}function oae(e,t){for(let r of Reflect.ownKeys(t)){let n=Object.getOwnPropertyDescriptor(t,r);n.enumerable&&(n.get?IU(e,r,()=>t[r]):wU(e,r,n.value))}}function wi(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function nae(e){return wi(e._zod.def)}function iae(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function aae(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=n[i];return o})}function sae(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ro(e){return JSON.stringify(e)}function TR(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var OI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function hu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var OR=em(()=>{if(Or.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Gn(e){if(hu(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(hu(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function zg(e){return Gn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function lae(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var cae=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Ag=new Set(["string","number","symbol"]),zR=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nt(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function oe(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function uae(e){let t;return new Proxy({},{get(r,n,o){return t??(t=e()),Reflect.get(t,n,o)},set(r,n,o,i){return t??(t=e()),Reflect.set(t,n,o,i)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,o){return t??(t=e()),Reflect.defineProperty(t,n,o)}})}function G(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function AR(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Fg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ng={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dae(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return pu(i,e,zI(e,t)),nt(e,wi(r,{shape:i,checks:[]}))}function zI(e,t){let r=is(e),n=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&n.push(o)}return n}function fae(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(zI(e,t)),a={};return pu(a,e,Reflect.ownKeys(is(e)).filter(s=>!i.has(s))),nt(e,wi(r,{shape:a,checks:[]}))}function mae(e,t){if(!Gn(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=is(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return nt(e,wi(e._zod.def,{shape:SU(e,t)}))}function SU(e,t){let r={};return pu(r,e,Reflect.ownKeys(is(e))),oae(r,t),r}function pae(e,t){if(!Gn(t))throw new Error("Invalid input to safeExtend: expected a plain object");return nt(e,wi(e._zod.def,{shape:SU(e,t)}))}function hae(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};pu(r,e,Reflect.ownKeys(is(e))),pu(r,t,Reflect.ownKeys(is(t)));let n=wi(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return nt(e,n)}function gae(e,t,r,n="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${n}() cannot be used on object schemas containing refinements`);let s=r?new Set(zI(t,r)):void 0,l={};return pu(l,t,Reflect.ownKeys(is(t)),e&&((c,u)=>s&&!s.has(u)?c:new e({type:"optional",innerType:c}))),nt(t,wi(t._zod.def,{shape:l,checks:[]}))}function vae(e,t,r){let n=r?new Set(zI(t,r)):void 0,o={};return pu(o,t,Reflect.ownKeys(is(t)),(i,a)=>n&&!n.has(a)?i:new e({type:"nonoptional",innerType:i})),nt(t,wi(t._zod.def,{shape:o}))}function Do(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function FR(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function Qo(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Qf(e){return typeof e=="string"?e:e?.message}function AI(e,t,r){var n;for(let o=t;o<e.length;o++)(n=e[o]).schema??(n.schema=r)}function Jo(e,t,r){var n;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(n=e).schema??(n.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Qf(e.inst?._zod.def?.error?.(e))??Qf(i?.(e))??Qf(t?.error?.(e))??Qf(r.customError?.(e))??Qf(r.localeError?.(e))??"Invalid input",s={};for(let l of Object.keys(e))l==="inst"||l==="schema"||l==="continue"||l==="input"||l==="__proto__"||(s[l]=e[l]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function Bg(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var xae=/[\uD800-\uDBFF]/;function gu(e){let t=e.length;if(!xae.test(e))return t;let r=t;for(let n=0;n<t-1;n++)(e.charCodeAt(n)&64512)===55296&&(e.charCodeAt(n+1)&64512)===56320&&(r--,n++);return r}function Lg(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Q(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function rm(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function bae(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function kU(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function CU(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function yae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return kU(t+r)}function _ae(e){return CU(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Iae(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function wae(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var DR=class{constructor(...t){}};function NR(e,t){for(let r in t){let n=Object.getOwnPropertyDescriptor(t,r);n.get?Object.defineProperty(e,r,{...n,enumerable:!1}):kae(e,r,n.value)}}function Rl(e,t,r,n=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:n,value:r}),r}function Mg(e,t,r){return Rl(e,t,r,!1)}function Sae(e,t){for(let r in e){let n=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return Rl(this,r,n(this))},set(o){Rl(this,r,o)}})}return t}function kae(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:Rl(this,t,r.bind(this))},set(n){Rl(this,t,n)}})}function Cae(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var $R,$l=!1,Pae={configurable:!0,get(){$l=!0}};function Ne(e,t,r){let n=Object.getPrototypeOf(e._zod);if(t in n&&$R!==e._zod){$R=void 0;return}$R=e._zod,Object.defineProperty(n,t,{configurable:!0,get(){Object.defineProperty(this,t,Pae);let o=$l;$l=!1;try{let i=r(this);return $l?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),$l=$l||o,i}catch(i){throw delete this[t],$l=$l||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function $ae(e,t,r,n){let o=Cae(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:n,value:void 0};return Object.defineProperty(this,t,i),i.value=r(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:n,value:i})}})}var FI="~constantCatch";function BR(e){let t=()=>e;return t[FI]=!0,t}var PU,MR=Object.freeze({status:"aborted"}),LR={value:void 0,enumerable:!1},$U="captureStackTrace"in Error?Error:null;function Rae(e){let t=$U;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return $U=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function z(e,t,r,n){let o={};function i(f){this.def=f,this.constr=d,this.traits=new Set}i.prototype=o;let a=r,s=a&&new WeakSet;function l(f,m){if(f._zod){if(f._zod.traits.has(e))return}else{LR.value=new i(m);try{Object.defineProperty(f,"_zod",LR)}finally{LR.value=void 0}}if(f._zod.traits.add(e),t(f,m),s){let h=Object.getPrototypeOf(f),y=f._zod.constr.prototype,v=h;for(;v&&v!==y;)v=Object.getPrototypeOf(v);let g=v??h;s.has(g)||(s.add(g),NR(g,a))}let p=d.prototype;for(let h in p)Object.prototype.hasOwnProperty.call(p,h)&&(h in f||(f[h]=p[h].bind(f)))}let c=n?.Parent??Object;class u extends c{}Object.defineProperty(u,"name",{value:e});function d(f){let m=n?.Parent?Rae(u):this;l(m,f);let p=m._zod.deferred;if(p){for(let y of p)y();m._zod.deferred=void 0}let h=globalThis.__zod_globalConfig?.postProcessor;return h&&h(m),m}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:f=>n?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var jR=Symbol("zod_brand"),Yo=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Dl=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(PU=globalThis).__zod_globalConfig??(PU.__zod_globalConfig={});var Or=globalThis.__zod_globalConfig;function Jt(e){return e&&Object.assign(Or,e),Or}function Dae(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Yf,2)),e.message}function Eae(e){this._zod.message=e}var Tae={get:Dae,set:Eae,enumerable:!0,configurable:!0},VR={value:void 0,enumerable:!1},RU=new WeakSet([Object.prototype,Error.prototype]),DU=(e,t)=>{e.name="$ZodError",VR.value=t,Object.defineProperty(e,"issues",VR),VR.value=void 0,Object.defineProperty(e,"message",Tae);let r=Object.getPrototypeOf(e);RU.has(r)||(RU.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let n=()=>this.message;return Object.defineProperty(this,"toString",{value:n,configurable:!0,writable:!0}),n},set(n){Object.defineProperty(this,"toString",{value:n,configurable:!0,writable:!0})}}))},jg=z("$ZodError",DU),en=z("$ZodError",DU,void 0,{Parent:Error});function Oae(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function Ug(e,t=r=>r.message){let r={},n=[];for(let o of e.issues)o.path.length>0?Oae(r,o.path[0],()=>[]).push(t(o)):n.push(t(o));return{formErrors:n,fieldErrors:r}}function Vg(e,t=r=>r.message){let r={_errors:[]},n=(o,i=[])=>{for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>n({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")n({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")n({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let l=r,c=0;for(;c<s.length;){let u=s[c],d=c===s.length-1;if(u==="_errors"){d&&l._errors.push(t(a)),c++;continue}Object.prototype.hasOwnProperty.call(l,u)||Object.defineProperty(l,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=l[u];d&&f._errors.push(t(a)),l=f,c++}}}};return n(e),r}function HR(e,t=r=>r.message){let r={errors:[]},n=(o,i=[])=>{var a;for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>n({issues:l},[...i,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...i,...s.path]);else{let l=[...i,...s.path];if(l.length===0){r.errors.push(t(s));continue}let c=r,u=0;for(;u<l.length;){let d=l[u],f=u===l.length-1;typeof d=="string"?(c.properties??(c.properties={}),Object.prototype.hasOwnProperty.call(c.properties,d)||Object.defineProperty(c.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),c=c.properties[d]):(c.items??(c.items=[]),(a=c.items)[d]??(a[d]={errors:[]}),c=c.items[d]),f&&c.errors.push(t(s)),u++}}};return n(e),r}function EU(e){let t=[],r=e.map(n=>typeof n=="object"?n.key:n);for(let n of r)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function WR(e){let t=[],r=[...e.issues].sort((n,o)=>(n.path??[]).length-(o.path??[]).length);for(let n of r)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${EU(n.path)}`);return t.join(`
97
+ `)}function NI(e,t){return{callee:t?.callee??e,Err:t?.Err}}var om=e=>{let t=(r,n,o,i)=>{let a=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Yo;if(s.issues.length){let l=new(i?.Err??e)(s.issues.map(c=>Jo(c,a,Jt())));throw OI(l,i?.callee??t),l}return s.value};return t},nm=om(en),im=e=>{let t=async(r,n,o,i)=>{let a=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let l=new(i?.Err??e)(s.issues.map(c=>Jo(c,a,Jt())));throw OI(l,i?.callee??t),l}return s.value};return t},BI=im(en),am=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Yo;return i.issues.length?TU(e,i.issues,o):{success:!0,data:i.value}},Aae=am(en);function TU(e,t,r){let n;return{success:!1,get error(){return n||(n=new e(t.map(o=>Jo(o,r,Jt()))),t=void 0,r=void 0),n},set error(o){n=o,t=void 0,r=void 0}}}var sm=e=>async(t,r,n)=>{let o=n?{...n,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?TU(e,i.issues,o):{success:!0,data:i.value}},Fae=sm(en),Nae=Symbol.for("zod.compile.invalid"),Bae=Symbol.for("zod.compile.fallback"),Hg=((e,t,r)=>{let n=e._zod.bag.validator;if(n!==void 0){if(n(t)!==Nae)return!0;if(n.definite===!0&&r===void 0)return!1}return Lae(e,t,r)});function Lae(e,t,r){let n=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(n[Bae]=!0,i=o({value:t,issues:[]},n)):i=e._zod.run({value:t,issues:[]},n),i instanceof Promise)throw new Yo;return i.issues.length===0}var Wg=async(e,t,r)=>{let n=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length===0},LI=e=>{let t=om(e),r=(n,o,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return t(n,o,s,NI(r,a))};return r},Mae=LI(en),MI=e=>{let t=om(e),r=(n,o,i,a)=>t(n,o,i,NI(r,a));return r},jae=MI(en),jI=e=>{let t=im(e),r=async(n,o,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return await t(n,o,s,NI(r,a))};return r},Uae=jI(en),UI=e=>{let t=im(e),r=async(n,o,i,a)=>await t(n,o,i,NI(r,a));return r},Vae=UI(en),VI=e=>(t,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return am(e)(t,r,o)},Hae=VI(en),HI=e=>(t,r,n)=>am(e)(t,r,n),Wae=HI(en),WI=e=>async(t,r,n)=>{let o=n?{...n,direction:"backward"}:{direction:"backward"};return sm(e)(t,r,o)},Zae=WI(en),ZI=e=>async(t,r,n)=>sm(e)(t,r,n),qae=ZI(en);var Qn={};xa(Qn,{anyString:()=>xD,base64:()=>cD,base64url:()=>uD,bigint:()=>yD,boolean:()=>_D,browserEmail:()=>tse,cidrv4:()=>sD,cidrv6:()=>lD,creditCard:()=>qI,cuid:()=>qR,cuid2:()=>KR,currencyCode:()=>pD,date:()=>hD,datetime:()=>vD,domain:()=>fD,duration:()=>eD,e164:()=>mD,email:()=>rD,emoji:()=>oD,extendedDuration:()=>Kae,guid:()=>tD,hex:()=>CD,hostname:()=>dD,html5Email:()=>Jae,httpProtocol:()=>Zg,iban:()=>KI,idnEmail:()=>ese,integer:()=>qg,ipv4:()=>nD,ipv6:()=>iD,ksuid:()=>QR,lowercase:()=>SD,mac:()=>aD,md5_base64:()=>ise,md5_base64url:()=>ase,md5_hex:()=>nse,nanoid:()=>JR,nanoidOfLength:()=>YR,null:()=>ID,number:()=>ss,rfc5322Email:()=>Yae,sha1_base64:()=>lse,sha1_base64url:()=>cse,sha1_hex:()=>sse,sha256_base64:()=>dse,sha256_base64url:()=>fse,sha256_hex:()=>use,sha384_base64:()=>pse,sha384_base64url:()=>hse,sha384_hex:()=>mse,sha512_base64:()=>vse,sha512_base64url:()=>xse,sha512_hex:()=>gse,string:()=>bD,time:()=>gD,ulid:()=>GR,undefined:()=>wD,unicodeEmail:()=>OU,uppercase:()=>kD,uuid:()=>vu,uuid4:()=>Gae,uuid6:()=>Xae,uuid7:()=>Qae,xid:()=>XR});var qR=/^[cC][0-9a-z]{6,}$/,KR=/^[0-9a-z]+$/,GR=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,XR=/^[0-9a-vA-V]{20}$/,QR=/^[A-Za-z0-9]{27}$/,JR=/^[a-zA-Z0-9_-]{21}$/;function YR(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var eD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Kae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vu=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Gae=vu(4),Xae=vu(6),Qae=vu(7),rD=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Jae=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yae=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,OU=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ese=OU,tse=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rse="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function oD(){return new RegExp(rse,"u")}var nD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aD=e=>{let t=Xn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},sD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,lD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,uD=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,dD=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,fD=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Zg=/^https?$/,mD=/^\+[1-9]\d{6,14}$/,qI=/^\d(?:[ -]?\d){11,18}$/,pD=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,KI=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,zU="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function ose(e){return new RegExp(`^${e}$`)}var hD=ose(zU);function ZR(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function gD(e){return new RegExp(`^${ZR(e)}$`)}function vD(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${ZR({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,n=e.local?`${r}|${ZR({precision:e.precision})}`:r;return new RegExp(`^${zU}T(?:${n})$`)}var xD=/^[\s\S]{0,}$/,bD=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yD=/^-?\d+n?$/,qg=/^-?\d+$/,ss=/^-?\d+(?:\.\d+)?$/,_D=/^(?:true|false)$/i,ID=/^null$/i;var wD=/^undefined$/i;var SD=/^[^A-Z]*$/,kD=/^[^a-z]*$/,CD=/^[0-9a-fA-F]*$/;function Kg(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Gg(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var nse=/^[0-9a-fA-F]{32}$/,ise=Kg(22,"=="),ase=Gg(22),sse=/^[0-9a-fA-F]{40}$/,lse=Kg(27,"="),cse=Gg(27),use=/^[0-9a-fA-F]{64}$/,dse=Kg(43,"="),fse=Gg(43),mse=/^[0-9a-fA-F]{96}$/,pse=Kg(64,""),hse=Gg(64),gse=/^[0-9a-fA-F]{128}$/,vse=Kg(86,"=="),xse=Gg(86);var ft=z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),PD=e=>{let t=e.value;return!TI(t)&&t.size!==void 0},$D=e=>{let t=e.value;return!TI(t)&&t.length!==void 0},GI={number:"number",bigint:"bigint",object:"date"},QI=z("$ZodCheckLessThan",(e,t)=>{ft.init(e,t);let r=GI[typeof t.value];e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:GI[typeof n.value]??r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),JI=z("$ZodCheckGreaterThan",(e,t)=>{ft.init(e,t);let r=GI[typeof t.value];e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:GI[typeof n.value]??r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),RD=z("$ZodCheckMultipleOf",(e,t)=>{ft.init(e,t),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Og(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),DD=z("$ZodCheckNumberFormat",(e,t)=>{ft.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,i]=Fg[t.format];e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),ED=z("$ZodCheckBigIntFormat",(e,t)=>{ft.init(e,t);let[r,n]=Ng[t.format];e._zod.check=o=>{let i=o.value;i<r&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>n&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),TD=z("$ZodCheckMaxSize",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=PD),e._zod.check=n=>{let o=n.value;o.size<=t.maximum||n.issues.push({origin:Bg(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),OD=z("$ZodCheckMinSize",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=PD),e._zod.check=n=>{let o=n.value;o.size>=t.minimum||n.issues.push({origin:Bg(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),zD=z("$ZodCheckSizeEquals",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=PD),e._zod.check=n=>{let o=n.value,i=o.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Bg(o),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),AD=z("$ZodCheckMaxLength",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=$D),e._zod.check=n=>{let o=n.value,i=o.length;if((typeof o=="string"&&i>t.maximum?gu(o):i)<=t.maximum)return;let s=Lg(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),FD=z("$ZodCheckMinLength",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=$D),e._zod.check=n=>{let o=n.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?gu(o):i)>=t.minimum)return;let s=Lg(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ND=z("$ZodCheckLengthEquals",(e,t)=>{var r;ft.init(e,t),(r=e._zod.def).when??(r.when=$D),e._zod.check=n=>{let o=n.value,i=o.length,a=typeof o=="string"&&i>=t.length&&i<=t.length*2?gu(o):i;if(a===t.length)return;let s=Lg(o),l=a>t.length;n.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),lm=z("$ZodCheckStringFormat",(e,t)=>{var r,n;ft.init(e,t),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),BD=z("$ZodCheckRegex",(e,t)=>{lm.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),LD=z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=SD),lm.init(e,t)}),MD=z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=kD),lm.init(e,t)}),jD=z("$ZodCheckIncludes",(e,t)=>{ft.init(e,t);let r=Xn(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=n,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),UD=z("$ZodCheckStartsWith",(e,t)=>{ft.init(e,t);let r=new RegExp(`^${Xn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),VD=z("$ZodCheckEndsWith",(e,t)=>{ft.init(e,t);let r=new RegExp(`.*${Xn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function XI(e,t,r){e.issues.length&&t.issues.push(...Qo(r,e.issues))}var HD=z("$ZodCheckProperty",(e,t)=>{ft.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(o=>XI(o,r,t.property));XI(n,r,t.property)}}),WD=z("$ZodCheckProperties",(e,t)=>{ft.init(e,t),Mg(e,Symbol.iterator,function*(){yield e});let r;e._zod.check=n=>{if(n.value==null){n.issues.push({expected:"object",code:"invalid_type",input:n.value,inst:e});return}r??(r=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let o=n.value,i;for(let[a,s]of r){let l=s._zod.run({value:o[a],issues:[]},{});l instanceof Promise?(i??(i=[]),i.push(l.then(c=>XI(c,n,a)))):XI(l,n,a)}if(i)return Promise.all(i).then(()=>{})}}),ZD=z("$ZodCheckMimeType",(e,t)=>{ft.init(e,t);let r=new Set(t.mime);e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),qD=z("$ZodCheckOverwrite",(e,t)=>{ft.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var xu=class{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
98
+ `).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
99
+ ${r.join(`
100
+ `)}
101
+ };`)(...Object.values(this.closed))}};var KD={major:4,minor:6,patch:5};var Te=z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=KD;let n=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...n??[]]:n?.length?[...n]:[];for(let i of o)for(let a of i._zod.onattach)a(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(s,l,c)=>{if(s.memo)return s;let u=Do(s),d;for(let f of l){if(f._zod.def.when){if(FR(s)||!f._zod.def.when(s))continue}else if(u)continue;let m=s.issues.length,p=f._zod.check(s);if(p instanceof Promise&&c?.async===!1)throw new Yo;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,s.issues.length!==m&&(AI(s.issues,m,e),u||(u=Do(s,m)))});else{if(s.issues.length===m)continue;AI(s.issues,m,e),u||(u=Do(s,m))}}return d?d.then(()=>s):s},a=(s,l,c)=>{if(Do(s))return s.aborted=!0,s;let u=i(l,o,c);if(u instanceof Promise){if(c.async===!1)throw new Yo;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>a(d,s,l)):a(u,s,l)}let c=e._zod.parse(s,l);if(c instanceof Promise){if(l.async===!1)throw new Yo;return c.then(u=>i(u,o,l))}return i(c,o,l)}}},{get"~standard"(){return Mg(this,"~standard",ow(this))},set"~standard"(e){Rl(this,"~standard",e)}}),QU=(e,t)=>e.issues.length?{issues:e.issues.map(r=>Jo(r,t,Jt()))}:{value:e.value};async function bse(e,t){let r={async:!0};return QU(await e._zod.run({value:t,issues:[]},r),r)}function ow(e){return{validate:t=>{let r={async:!1};try{let n=e._zod.run({value:t,issues:[]},r);if(!(n instanceof Promise))return QU(n,r)}catch{}return bse(e,t)},vendor:"zod",version:1}}var bu=z("$ZodString",(e,t)=>{Te.init(e,t),e._zod.pattern=t.pattern??xD,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),it=z("$ZodStringFormat",(e,t)=>{lm.init(e,t),bu.init(e,t)}),XD=z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=tD),it.init(e,t)}),QD=z("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vu(n))}else t.pattern??(t.pattern=vu());it.init(e,t)}),JD=z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rD),it.init(e,t)}),YD=1,Xg=2;function eE(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function nw(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?eE(e)||Xg:JU(e,t)}function JU(e,t){if(!t.normalize&&t.protocol?.source===Zg.source&&!/^https?:\/\//i.test(e))return YD;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(e)??Xg}return new URL(e)}catch{return Xg}}var yse=/[\t\n\r]/g;function Qg(e){return e.replace(yse,"")}function iw(e,t){return t.lastIndex=0,t.test(e.hostname)}function aw(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var tE=z("$ZodURL",(e,t)=>{it.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=nw(n,t);if(o===YD){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(o===Xg){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(o===!0){r.value=Qg(n);return}t.hostname&&!iw(o,t.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort}),t.protocol&&!aw(o,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?o.href:Qg(n);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),rE=z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=oD()),it.init(e,t)}),oE=z("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?JR:YR(t.length)),it.init(e,t)}),nE=z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=qR),it.init(e,t)}),iE=z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=KR),it.init(e,t)}),aE=z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=GR),it.init(e,t)}),sE=z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=XR),it.init(e,t)}),lE=z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=QR),it.init(e,t)}),cE=z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=vD(t)),it.init(e,t)}),uE=z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hD),it.init(e,t)}),dE=z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gD(t)),it.init(e,t)}),fE=z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=eD),it.init(e,t)}),mE=z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=nD),it.init(e,t)}),_se=/^[0-9a-fA-F:.]+$/;function Jg(e){return _se.test(e)?eE(`http://[${e}]`):!1}var pE=z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=iD),it.init(e,t),e._zod.check=r=>{Jg(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),hE=z("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=aD(t.delimiter)),it.init(e,t)}),gE=z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=sD),it.init(e,t)});function sw(e){let t=e.split("/");if(t.length!==2)return!1;let[r,n]=t;if(!n)return!1;let o=Number(n);return`${o}`!==n||o<0||o>128?!1:Jg(r)}var vE=z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=lD),it.init(e,t),e._zod.check=r=>{sw(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function Yg(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var lw=/^[0-9a-zA-Z+/]*={0,2}$/,xE=z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=lw),it.init(e,t),e._zod.check=r=>{Yg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),ev=/^[A-Za-z0-9_-]*$/;function cw(e){if(!ev.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Yg(r)}var bE=z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ev),it.init(e,t),e._zod.check=r=>{cw(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),yE=z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=mD),it.init(e,t)}),Ise=/[- ]/g;function wse(e){let t=e.length,r=1,n=0;for(;t;){let o=e.charCodeAt(--t)-48;r^=1,n+=r?[0,2,4,6,8,1,3,5,7,9][o]:o}return n%10===0}function uw(e){return qI.test(e)?wse(e.replace(Ise,"")):!1}var _E=z("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=qI),it.init(e,t),e._zod.check=r=>{uw(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:e,continue:!t.abort})}});function Sse(e){let t=0,r=e.length;for(let n=4;n<r;n++){let o=e.charCodeAt(n);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let n=0;n<4;n++){let o=e.charCodeAt(n);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function dw(e){return KI.test(e)?Sse(e):!1}var IE=z("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=KI),it.init(e,t),e._zod.check=r=>{dw(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:e,continue:!t.abort})}});function fw(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var wE=z("$ZodJWT",(e,t)=>{it.init(e,t),e._zod.check=r=>{fw(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),SE=z("$ZodCustomStringFormat",(e,t)=>{it.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),mw=z("$ZodNumber",(e,t)=>{Te.init(e,t),e._zod.pattern=ss,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),kE=z("$ZodNumberFormat",(e,t)=>{DD.init(e,t),mw.init(e,t)}),tv=z("$ZodBoolean",(e,t)=>{Te.init(e,t),e._zod.pattern=_D,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),pw=z("$ZodBigInt",(e,t)=>{Te.init(e,t),e._zod.pattern=yD,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),CE=z("$ZodBigIntFormat",(e,t)=>{ED.init(e,t),pw.init(e,t)}),PE=z("$ZodSymbol",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),r}}),$E=z("$ZodUndefined",(e,t)=>{Te.init(e,t),e._zod.pattern=wD,e._zod.values=new Set([void 0]),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),r}}),RE=z("$ZodNull",(e,t)=>{Te.init(e,t),e._zod.pattern=ID,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),r}}),DE=z("$ZodAny",(e,t)=>{Te.init(e,t),e._zod.parse=r=>r}),EE=z("$ZodUnknown",(e,t)=>{Te.init(e,t),e._zod.parse=r=>r}),TE=z("$ZodNever",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),OE=z("$ZodVoid",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),zE=z("$ZodDate",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),r}});function FU(e,t,r){e.issues.length&&t.issues.push(...Qo(r,e.issues)),t.value[r]=e.value}var AE=z("$ZodArray",(e,t)=>{Te.init(e,t);let r=Or.memoizer;r?.attach(e),e._zod.parse=(n,o)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=r?r.alloc(e,n,Array(i.length),o):Array(i.length);let a=[],s=o?.abortEarly;for(let l=0;l<i.length;l++){let c=i[l],u=t.element._zod.run({value:c,issues:[]},o);if(u instanceof Promise)a.push(u.then(d=>FU(d,n,l)));else if(FU(u,n,l),s&&u.issues.length!==0&&Do(u))break}return a.length?Promise.all(a).then(()=>n):n}});function rw(e,t,r,n,o,i){let a=r in n,s=i==="optional";if(!(!a&&s&&o==="optional")){if(e.issues.length){if(o!==void 0&&s&&!a)return;t.issues.push(...Qo(r,e.issues))}if(!a&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(a||o==="defaulted"&&!s)&&(t.value[r]=void 0):t.value[r]=e.value}}var kse=[];function YU(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),n=r.length?r:kse,o=n.length?[...t,...n]:t;for(let a of o)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let i=AR(e.shape);return{...e,allKeys:o,symbolKeys:n,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function eV(e,t,r,n,o,i,a){let s=[],l=o.keySet,c=o.catchall._zod,u=c.def.type,d=c.optin,f=c.optout,m=0;for(let p in t){if(a&&r.issues.length!==m){if(Do(r,m))break;m=r.issues.length}if(l.has(p))continue;if(p==="__proto__"){u==="never"&&s.push(p);continue}if(u==="never"){s.push(p);continue}let h=c.run({value:t[p],issues:[]},n);h instanceof Promise?e.push(h.then(y=>rw(y,r,p,t,d,f))):rw(h,r,p,t,d,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var tV=z("$ZodObject",(e,t)=>{Te.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),n=r?.get?r.get.raw:t.shape??{};if(n){let c=()=>{let u={...n};return Object.defineProperty(t,"shape",{value:u}),c.raw=u,u};c.raw=n,Object.defineProperty(t,"shape",{get:c})}let o=em(()=>YU(t));Ne(e,"propValues",c=>{let u=c.def.shape,d={};for(let f in u){let m=u[f]._zod;if(m.values){Object.prototype.hasOwnProperty.call(d,f)||Hr(d,f,new Set);for(let p of m.values)d[f].add(p);m.optin!==void 0&&d[f].add(void 0)}}return d});let i=hu,a=t.catchall,s,l=Or.memoizer;l?.attach(e),e._zod.parse=(c,u)=>{s??(s=o.value);let d=c.value;if(!i(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value=l?l.alloc(e,c,{},u):{};let f=[],m=s.shape,p=u?.abortEarly,h=c.issues.length;for(let y of s.allKeys){if(p&&c.issues.length!==h){if(Do(c,h))break;h=c.issues.length}if(y==="__proto__")continue;let v=m[y],g=v._zod.optin,x=v._zod.optout,_=v._zod.run({value:d[y],issues:[]},u);_ instanceof Promise?f.push(_.then(w=>rw(w,c,y,d,g,x))):rw(_,c,y,d,g,x)}return a?eV(f,d,c,u,o.value,e,p===!0):f.length?Promise.all(f).then(()=>c):c}}),FE=z("$ZodObjectJIT",(e,t)=>{tV.init(e,t);let r=e._zod.parse,n=em(()=>YU(t)),o=Or.memoizer,i=m=>{let p=n.value,h=p.symbolKeys,y=new xu(["payload","ctx"],{shape:m,inst:e,memo:o,syms:h}),v=w=>`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`,g=(w,I)=>`
102
+ let ${w}_ab = false;
103
+ for (let i = 0; i < ${w}.issues.length; i++) {
104
+ const iss = ${w}.issues[i];
105
+ iss.path = iss.path ? [${I}, ...iss.path] : [${I}];
106
+ payload.issues.push(iss);
107
+ if (iss.continue !== true) ${w}_ab = true;
108
+ }
109
+ if (${w}_ab && ctx && ctx.abortEarly) {
110
+ payload.value = newResult;
111
+ return payload;
112
+ }`;y.write("const input = payload.value;");let x=Object.create(null),_=0;for(let w of p.allKeys)x[w]=`key_${_++}`;y.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let w of p.allKeys){if(w==="__proto__")continue;let I=x[w],k=typeof w=="symbol"?`syms[${h.indexOf(w)}]`:Ro(w),C=`${k} in input`,U=m[w],H=U?._zod?.optin,W=H!==void 0,X=U?._zod?.optout==="optional";if(y.write(`const ${I} = ${v(k)};`),W&&X){let N=H==="optional"?`${I}_present`:`${I}.value !== undefined || ${I}_present`;y.write(`
113
+ const ${I}_present = ${C};
114
+ if (!${I}.issues.length || ${I}_present) {
115
+ if (${I}.issues.length) {${g(I,k)}
116
+ }
117
+
118
+ if (${N}) {
119
+ newResult[${k}] = ${I}.value;
120
+ }
121
+ }
122
+
123
+ `)}else W?(y.write(`
124
+ if (${I}.issues.length) {${g(I,k)}
125
+ }
126
+ `),H==="defaulted"?y.write(`newResult[${k}] = ${I}.value;`):y.write(`
127
+ if (${I}.value !== undefined || ${C}) {
128
+ newResult[${k}] = ${I}.value;
129
+ }
130
+ `)):y.write(`
131
+ const ${I}_present = ${C};
132
+ if (${I}.issues.length) {${g(I,k)}
133
+ }
134
+ if (!${I}_present && !${I}.issues.length) {
135
+ payload.issues.push({
136
+ code: "invalid_type",
137
+ expected: "nonoptional",
138
+ input: undefined,
139
+ path: [${k}]
140
+ });
141
+ if (ctx && ctx.abortEarly) {
142
+ payload.value = newResult;
143
+ return payload;
144
+ }
145
+ }
146
+
147
+ if (${I}_present) {
148
+ newResult[${k}] = ${I}.value;
149
+ }
150
+
151
+ `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},a,s=hu,l=!Or.jitless,u=l&&OR.value,d=t.catchall,f;e._zod.parse=(m,p)=>{f??(f=n.value);let h=m.value;return s(h)?l&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=i(t.shape)),m=a(m,p),d?eV([],h,m,p,f,e,p?.abortEarly===!0):m):r(m,p):(m.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),m)}});function NU(e,t,r,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Do(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Jo(a,n,Jt())))}),t)}var rv=z("$ZodUnion",(e,t)=>{Te.init(e,t),Ne(e,"optin",n=>n.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":n.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Ne(e,"optout",n=>n.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ne(e,"values",n=>{if(n.def.options.every(o=>o._zod.values))return new Set(n.def.options.flatMap(o=>Array.from(o._zod.values)))}),Ne(e,"pattern",n=>{if(n.def.options.every(o=>o._zod.pattern)){let o=n.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>as(i.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,o)=>{if(r)return r(n,o);let i=!1,a=[];for(let s of t.options){let l=s._zod.run({value:n.value,issues:[]},o);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(s=>NU(s,n,e,o)):NU(a,n,e,o)}});function BU(e,t,r,n){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>Jo(a,n,Jt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1,matches:o}),t)}var NE=z("$ZodXor",(e,t)=>{rv.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,o)=>{if(r)return r(n,o);let i=!1,a=[];for(let s of t.options){let l=s._zod.run({value:n.value,issues:[]},o);l instanceof Promise?(a.push(l),i=!0):a.push(l)}return i?Promise.all(a).then(s=>BU(s,n,e,o)):BU(a,n,e,o)}});function BE(e,t){let r=e._zod,n=r.bag.optionsMap;n||(n=rV(r.def),r.bag.optionsMap=n);let o=n.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function rV(e){let t=new Map;for(let r of e.options){let n=r._zod.propValues?.[e.discriminator];if(!n||n.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let o of n)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,r)}return t}var LE=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,rv.init(e,t);let r=e._zod.parse;Ne(e,"propValues",o=>{let i={},a=0;for(let s of o.def.options){let l=s._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(s)}"`);l[o.def.discriminator]?.has(void 0)&&a++;for(let[c,u]of Object.entries(l)){Object.prototype.hasOwnProperty.call(i,c)||Hr(i,c,new Set);for(let d of u)i[c].add(d)}}return!o.def.unionFallback&&a>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let a=tm(o._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let n=em(()=>rV(t));e._zod.parse=(o,i)=>{let a=o.value;if(!hu(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;let s=a?.[t.discriminator],l=n.value.get(s);return l&&(s!==void 0||i.direction!=="backward")?l._zod.run(o,i):t.unionFallback||i.direction==="backward"?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(n.value.keys()).filter(c=>n.value.get(c)!==null),input:a,path:[t.discriminator],inst:e}),o)}}),ME=z("$ZodIntersection",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{let o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,c])=>LU(r,l,c)):LU(r,i,a)}});function cm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Gn(e)&&Gn(t)){let r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of n){if(i==="__proto__")continue;let a=cm(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let o=e[n],i=t[n],a=cm(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function LU(e,t,r){let n=new Map,o,i=new Map,a=(c,u)=>{let d;if(c.code==="unrecognized_keys"&&!c.path?.length)o??(o=c),d=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let f=String(c.path[0]);i.has(f)||i.set(f,c),d=[f]}else return!1;for(let f of d)n.has(f)||n.set(f,{}),n.get(f)[u]=!0;return!0};for(let c of t.issues)a(c,"l")||e.issues.push(c);for(let c of r.issues)a(c,"r")||e.issues.push(c);let s=[...n].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(s.length){let c=o?s.filter(u=>o.keys.includes(u)):[];c.length&&e.issues.push({...o,keys:c});for(let u of s)!c.includes(u)&&i.has(u)&&e.issues.push(i.get(u))}let l=cm(t.value,r.value);if(!l.valid){if(Do(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}var hw=z("$ZodTuple",(e,t)=>{Te.init(e,t);let r=t.items,n=Or.memoizer;n?.attach(e),e._zod.parse=(o,i)=>{let a=o.value;if(!Array.isArray(a))return o.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=n?n.alloc(e,o,[],i):[];let s=[],l=MU(r,"optin"),c=MU(r,"optout");if(!t.rest){if(a.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),o;a.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(r.length),d=t.rest?i?.abortEarly:void 0,f=!1;for(let m=0;m<r.length;m++){let p=r[m]._zod.run({value:a[m],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{u[m]=h})):(u[m]=p,d&&!f&&p.issues.length&&(f=Do(p)))}if(t.rest&&!f){let m=r.length-1,p=a.slice(r.length),h=o.issues.length;for(let y of p){if(d&&o.issues.length!==h){if(Do(o,h))break;h=o.issues.length}m++;let v=t.rest._zod.run({value:y,issues:[]},i);v instanceof Promise?s.push(v.then(g=>jU(g,o,m))):jU(v,o,m)}}return s.length?Promise.all(s).then(()=>UU(u,o,r,a,c)):UU(u,o,r,a,c)}});function MU(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function jU(e,t,r){e.issues.length&&t.issues.push(...Qo(r,e.issues)),t.value[r]=e.value}function UU(e,t,r,n,o){for(let i=0;i<r.length;i++){let a=e[i],s=i<n.length;if(!s&&i>=o&&r[i]._zod.optin==="optional"){t.value.length=i;break}if(a.issues.length){if(!s&&i>=o){t.value.length=i;break}t.issues.push(...Qo(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=n.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var jE=z("$ZodRecord",(e,t)=>{Te.init(e,t);let r=Or.memoizer;r?.attach(e),e._zod.parse=(n,o)=>{let i=n.value;if(!Gn(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){n.value=r?r.alloc(e,n,{},o):{};let l=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(l.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let d=t.keyType._zod.run({value:u,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(p=>Jo(p,o,Jt())),input:u,path:[u],inst:e});continue}let f=d.value;if(f==="__proto__")continue;let m=t.valueType._zod.run({value:i[u],issues:[]},o);m instanceof Promise?a.push(m.then(p=>{p.issues.length&&n.issues.push(...Qo(u,p.issues)),n.value[f]=p.value})):(m.issues.length&&n.issues.push(...Qo(u,m.issues)),n.value[f]=m.value)}let c;for(let u in i)if(!l.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;n.value[u]=i[u]}else c=c??[],c.push(u);c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}else{n.value=r?r.alloc(e,n,{},o):{};let l;for(let c of Reflect.ownKeys(i)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,c))continue;let u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&ss.test(c)&&u.issues.length){let p=t.keyType._zod.run({value:Number(c),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(u=p)}if(u.issues.length){t.mode==="loose"?n.value[c]=i[c]:s?(l=l??[],l.push(c)):n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>Jo(p,o,Jt())),input:c,path:[c],inst:e});continue}let f=u.value;if(f==="__proto__")continue;let m=t.valueType._zod.run({value:i[c],issues:[]},o);m instanceof Promise?a.push(m.then(p=>{p.issues.length&&n.issues.push(...Qo(c,p.issues)),n.value[f]=p.value})):(m.issues.length&&n.issues.push(...Qo(c,m.issues)),n.value[f]=m.value)}l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}return a.length?Promise.all(a).then(()=>n):n}}),UE=z("$ZodMap",(e,t)=>{Te.init(e,t);let r=Or.memoizer;r?.attach(e),e._zod.parse=(n,o)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let a=[];n.value=r?r.alloc(e,n,new Map,o):new Map;let s=o?.abortEarly,l=n.issues.length;for(let[c,u]of i){if(s&&n.issues.length!==l){if(Do(n,l))break;l=n.issues.length}let d=t.keyType._zod.run({value:c,issues:[]},o),f=t.valueType._zod.run({value:u,issues:[]},o);d instanceof Promise||f instanceof Promise?a.push(Promise.all([d,f]).then(([m,p])=>{VU(m,p,n,c,i,e,o)})):VU(d,f,n,c,i,e,o)}return a.length?Promise.all(a).then(()=>n):n}});function VU(e,t,r,n,o,i,a){e.issues.length&&(Ag.has(typeof n)?r.issues.push(...Qo(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(s=>Jo(s,a,Jt()))})),t.issues.length&&(Ag.has(typeof n)?r.issues.push(...Qo(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:n,issues:t.issues.map(s=>Jo(s,a,Jt()))})),r.value.set(e.value,t.value)}var VE=z("$ZodSet",(e,t)=>{Te.init(e,t);let r=Or.memoizer;r?.attach(e),e._zod.parse=(n,o)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let a=[];n.value=r?r.alloc(e,n,new Set,o):new Set;let s=o?.abortEarly,l=n.issues.length;for(let c of i){if(s&&n.issues.length!==l){if(Do(n,l))break;l=n.issues.length}let u=t.valueType._zod.run({value:c,issues:[]},o);u instanceof Promise?a.push(u.then(d=>HU(d,n))):HU(u,n)}return a.length?Promise.all(a).then(()=>n):n}});function HU(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var HE=z("$ZodEnum",(e,t)=>{Te.init(e,t);let r=Jf(t.entries),n=new Set(r);e._zod.values=n,Ne(e,"pattern",o=>{let i=Jf(o.def.entries).filter(a=>Ag.has(typeof a));return new RegExp(i.length?`^(${i.map(a=>Xn(a.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),WE=z("$ZodLiteral",(e,t)=>{Te.init(e,t);let r=new Set(t.values);e._zod.values=r,Ne(e,"pattern",n=>{let o=n.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?Xn(i):i?Xn(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(n,o)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),ZE=z("$ZodFile",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return o instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),r}}),qE=z("$ZodTransform",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Or.memoizer?.guard(e),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Dl(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new Yo;return r.value=o,r}});function WU(e,t){return e.value=t.issues.length?void 0:t.value,e}var gw=z("$ZodOptional",(e,t)=>{Te.init(e,t),Ne(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ne(e,"values",r=>{let n=r.def.innerType._zod.values;return n?new Set([...n,void 0]):void 0}),Ne(e,"pattern",r=>{let n=r.def.innerType._zod.pattern;return n?new RegExp(`^(${as(n.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let o=t.innerType._zod.run({value:r.value,issues:[]},n);return o instanceof Promise?o.then(i=>WU(r,i)):WU(r,o)}return t.innerType._zod.run(r,n)}}),KE=z("$ZodExactOptional",(e,t)=>{gw.init(e,t),Ne(e,"values",r=>r.def.innerType._zod.values),Ne(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),GE=z("$ZodNullable",(e,t)=>{Te.init(e,t),Ne(e,"optin",r=>r.def.innerType._zod.optin),Ne(e,"optout",r=>r.def.innerType._zod.optout),Ne(e,"pattern",r=>{let n=r.def.innerType._zod.pattern;return n?new RegExp(`^(${as(n.source)}|null)$`):void 0}),Ne(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),XE=z("$ZodDefault",(e,t)=>{Te.init(e,t),e._zod.optin="defaulted",Ne(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>ZU(i,t)):ZU(o,t)}});function ZU(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var QE=z("$ZodPrefault",(e,t)=>{Te.init(e,t),e._zod.optin="defaulted",Ne(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),JE=z("$ZodNonOptional",(e,t)=>{Te.init(e,t),Ne(e,"values",r=>{let n=r.def.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,n)=>{let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>qU(i,e)):qU(o,e)}});function qU(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var YE=z("$ZodSuccess",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Dl("ZodSuccess");let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.issues.length===0,r)):(r.value=o.issues.length===0,r)}});function KU(e,t,r,n){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Jo(o,n,Jt()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var eT=z("$ZodCatch",(e,t)=>{Te.init(e,t),Ne(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ne(e,"optout",r=>r.def.innerType._zod.optout),Ne(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run({value:r.value,issues:[]},n);return o instanceof Promise?o.then(i=>KU(r,i,t,n)):KU(r,o,t,n)}}),tT=z("$ZodNaN",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),vw=z("$ZodPipe",(e,t)=>{Te.init(e,t),Ne(e,"values",r=>r.def.in._zod.values),Ne(e,"optin",r=>r.def.in._zod.optin),Ne(e,"optout",r=>r.def.out._zod.optout),Ne(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>YI(a,t.in,n)):YI(i,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>YI(i,t.out,n)):YI(o,t.out,n)}});function YI(e,t,r){return e.issues.some(n=>n.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var ov=z("$ZodCodec",(e,t)=>{Te.init(e,t),Ne(e,"values",r=>r.def.in._zod.values),Ne(e,"optin",r=>r.def.in._zod.optin),Ne(e,"optout",r=>r.def.out._zod.optout),Ne(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>ew(a,t,n)):ew(i,t,n)}else{let i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>ew(a,t,n)):ew(i,t,n)}}});function ew(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>tw(e,i,t.out,r)):tw(e,o,t.out,r)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>tw(e,i,t.in,r)):tw(e,o,t.in,r)}}function tw(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var rT=z("$ZodPreprocess",(e,t)=>{vw.init(e,t)}),oT=z("$ZodReadonly",(e,t)=>{Te.init(e,t),Ne(e,"propValues",r=>r.def.innerType._zod.propValues),Ne(e,"values",r=>r.def.innerType._zod.values),Ne(e,"optin",r=>r.def.innerType?._zod?.optin),Ne(e,"optout",r=>r.def.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(GU):GU(o)}});function GU(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Cse(e){let t=e._zod.def,r=t.pattern,n=!!t.format?.includes("int"),o,i;for(let s of t.checks??[]){let l=s._zod.def;l.pattern&&(r=l.pattern),n||(n=!!l.format?.includes("int"));let c=l.minimum??l.length,u=l.maximum??l.length;c!==void 0&&(o===void 0||c>o)&&(o=c),u!==void 0&&(i===void 0||u<i)&&(i=u)}if(r)return r.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return bD({minimum:o,maximum:i}).source;let a=e._zod.pattern;return(n&&a===ss?qg:a)?.source}function GD(e){let t=e._zod.def,r=e._zod.pattern?.source,n=t.innerType??e._zod.innerType;if(n){let o=n._zod.pattern?.source,i=GD(n);return r&&o&&i&&i!==o?r.replace(as(o),()=>as(i)):r}if(t.options){let o=t.options.map(GD);if(o.every(Boolean))return`^(${o.map(i=>as(i)).join("|")})$`}return Cse(e)}var nT=z("$ZodTemplateLiteral",(e,t)=>{Te.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){let o=GD(n);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);r.push(as(o))}else if(n===null||zR.has(typeof n))r.push(Xn(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,o)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),iT=z("$ZodFunction",(e,t)=>(Te.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...n){let o=e._def.input?nm(e._def.input,n):n,i=Reflect.apply(r,this,o);return e._def.output?nm(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...n){let o=e._def.input?await BI(e._def.input,n):n,i=await Reflect.apply(r,this,o);return e._def.output?await BI(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new hw({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),aT=z("$ZodPromise",(e,t)=>{Te.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(o=>t.innerType._zod.run({value:o,issues:[]},n))}),nv=z("$ZodLazy",(e,t)=>{Te.init(e,t),ER(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),Ne(e,"pattern",r=>r.innerType?._zod?.pattern),Ne(e,"propValues",r=>r.innerType?._zod?.propValues),Ne(e,"optin",r=>r.innerType?._zod?.optin??void 0),Ne(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),sT=z("$ZodCustom",(e,t)=>{ft.init(e,t),Te.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>XU(i,r,n,e));XU(o,r,n,e)}});function XU(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(rm(o))}}var _w=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},cT="~memo",nV=[];function iV(e){return e!==null&&typeof e=="object"}function lT(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var aV=new WeakMap,um=0,yw=1,iv=2;function av(e,t,r){let n=aV.get(e);if(n!==void 0)return n?iv:um;if(t.has(e))return iv;t.add(e);let o=um,i=u=>{if(o!==iv&&u?._zod){let d=av(u,t,r);d>o&&(o=d)}},a=(u,d)=>{let f=um;for(let m of Reflect.ownKeys(u)){let p=Object.getOwnPropertyDescriptor(u,m);if(d&&!p.enumerable)continue;let h=p.get?yw:p.value?._zod?av(p.value,t,r):um;h>f&&(f=h)}return f},s=u=>{u>o&&(o=u)},l=e._zod.def,c=l.type;switch(c){case"object":{let u=tm(l);s(u?a(u,!0):yw),i(l.catchall);break}case"array":i(l.element);break;case"tuple":for(let u of l.items)i(u);i(l.rest);break;case"record":case"map":i(l.keyType),i(l.valueType);break;case"set":i(l.valueType);break;case"union":for(let u of l.options)i(u);break;case"intersection":i(l.left),i(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(l.innerType);break;case"pipe":i(l.in),i(l.out);break;case"function":i(l.input),i(l.output);break;case"lazy":{let u=l._cachedInner??(r?e._zod.innerType:void 0);s(u?av(u,t,!1):yw);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in l){let d=Object.getOwnPropertyDescriptor(l,u);if(!d||d.get)continue;let f=d.value;if(!(!f||typeof f!="object")){if(f._zod)i(f);else if(Array.isArray(f))for(let m of f)i(m)}}}return t.delete(e),Pse(e,o)}function Pse(e,t){return t!==yw&&aV.set(e,t===iv),t}function Iw(e){return av(e,new Set,!0)!==um}function $se(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}var xw,bw=[],Rse={alloc(e,t,r){let n=xw;if(!n)return r;xw=void 0;let o={value:r,issues:null};return n.set(t.value,o),bw.push(o),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,n=(o,i)=>{if(i.direction!=="backward"&&ww(i,o.value))throw new _w;return r(o,i)};e._zod.parse=n,e._zod.run===r&&(e._zod.run=n)})},attach(e){var t;let r,n=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,s=(l,c)=>{if(r===void 0){let v=av(e,new Set,!1);if(v===um)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(l,c);v===iv||n?r=!0:n=!0}let u=l.value;if(!iV(u))return a(l,c);let d=c[cT];d||(d={buckets:new WeakMap,backEdges:void 0},c[cT]=d);let f;o===c?f=i:(f=$se(d,e),o=c,i=f);let m=f.get(u);if(m)return l.value=m.value,m.issues?m.issues.length&&l.issues.push(...lT(m.issues)):(l.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(m.value)),l;xw=f;let p=bw.length,h=a(l,c);xw=void 0;let y=bw.length>p?bw.pop():void 0;return h instanceof Promise?h.then(v=>(y&&(y.issues=v.issues.length?lT(v.issues):nV),v)):(y&&(y.issues=h.issues.length?lT(h.issues):nV),h)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function sv(){return Rse}function ww(e,t){let r=e[cT]?.backEdges;return r!==void 0&&iV(t)&&r.has(t)}var cv={};xa(cv,{ar:()=>sV,az:()=>lV,be:()=>uV,bg:()=>dV,bn:()=>fV,ca:()=>mV,ckb:()=>pV,cs:()=>hV,da:()=>gV,de:()=>vV,el:()=>xV,en:()=>Sw,eo:()=>bV,es:()=>yV,fa:()=>_V,fi:()=>IV,fr:()=>wV,frCA:()=>SV,gu:()=>kV,he:()=>CV,hi:()=>PV,hr:()=>$V,hu:()=>RV,hy:()=>EV,id:()=>TV,is:()=>OV,it:()=>zV,ja:()=>AV,ka:()=>FV,kh:()=>NV,km:()=>kw,kn:()=>BV,ko:()=>LV,lt:()=>jV,mk:()=>UV,ms:()=>VV,ne:()=>HV,nl:()=>WV,nn:()=>ZV,no:()=>qV,ota:()=>KV,pl:()=>XV,ps:()=>GV,pt:()=>QV,ptBR:()=>JV,ro:()=>YV,ru:()=>tH,sk:()=>rH,sl:()=>oH,sv:()=>nH,ta:()=>iH,tg:()=>aH,th:()=>sH,tk:()=>lH,tr:()=>cH,ua:()=>uH,uk:()=>Cw,ur:()=>dH,uz:()=>fH,vi:()=>mH,yo:()=>gH,zhCN:()=>pH,zhTW:()=>hH});var Dse=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},map:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(o){return e[o]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${o.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return o.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${G(o.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${o.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${o.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${o.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${o.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${o.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${o.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${o.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??o.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${o.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${o.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${o.keys.length>1?"\u0629":""}: ${F(o.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${o.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${o.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function sV(){return{localeError:Dse()}}var Ese=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"},map:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(o){return e[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${o.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return o.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${G(o.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${o.origin??"d\u0259y\u0259r"} ${i}${o.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${o.origin??"d\u0259y\u0259r"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??o.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${o.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${o.keys.length>1?"lar":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${o.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function lV(){return{localeError:Ese()}}function cV(e,t,r,n){let o=Math.abs(e),i=o%10,a=o%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?r:n}var Tse=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(o){return e[o]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",mac:"MAC \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${o.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return o.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${G(o.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);if(a){let s=Number(o.maximum),l=cV(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${o.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);if(a){let s=Number(o.minimum),l=cV(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${o.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??o.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${o.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${F(o.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${o.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${o.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function uV(){return{localeError:Tse()}}var Ose=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(o){return e[o]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${o.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${G(o.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${o.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${o.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${o.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${o.keys.length>1?"\u043E\u0432\u0435":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${o.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function dV(){return{localeError:Ose()}}var zse=()=>{let e={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function t(o){return e[o]??null}let r={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${i}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${s}`}case"invalid_value":return o.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${G(o.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${F(o.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${o.origin??"\u09AE\u09BE\u09A8"} ${i}${o.maximum.toString()} ${a.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${o.origin??"\u09AE\u09BE\u09A8"} ${i}${o.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${o.origin} ${i}${o.minimum.toString()} ${a.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${o.origin} ${i}${o.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${i.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:i.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${i.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:i.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${i.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:i.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${i.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${o.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${o.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${o.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}};function fV(){return{localeError:zse()}}var Ase=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(o){return e[o]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",mac:"adre\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${o.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return o.values.length===1?`Valor inv\xE0lid: s'esperava ${G(o.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${F(o.values," o ")}`;case"too_big":{let i=o.inclusive?"com a m\xE0xim":"menys de",a=t(o.origin);return a?`Massa gran: s'esperava que ${o.origin??"el valor"} contingu\xE9s ${i} ${o.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${o.origin??"el valor"} fos ${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(o.origin);return a?`Massa petit: s'esperava que ${o.origin} contingu\xE9s ${i} ${o.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${o.origin} fos ${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??o.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${o.divisor}`;case"unrecognized_keys":return`Clau${o.keys.length>1?"s":""} no reconeguda${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${o.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${o.origin}`;default:return"Entrada inv\xE0lida"}}};function mV(){return{localeError:Ase()}}var Fse=()=>{let e={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function t(o){return e[o]??null}let r={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},n={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a,l=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(u=>s.endsWith(u))?"\u06CC\u06D5":"\u06D5",c=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${i} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${s}${c?"":l}`}case"invalid_value":return o.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${G(o.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${F(o.values,"|")}`;case"too_big":{let i=t(o.origin);return i?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${o.maximum.toString()} ${i.unit} ${i.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${o.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let i=t(o.origin);return i?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${o.minimum.toString()} ${i.unit} ${i.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${o.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${i.prefix}"`:i.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${i.suffix}"`:i.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${i.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:i.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${i.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${r[i.format]??o.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${o.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${F(o.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${o.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}};function pV(){return{localeError:Fse()}}var Nse=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"},map:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(o){return e[o]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${o.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return o.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${G(o.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${o.origin??"hodnota"} mus\xED m\xEDt ${i}${o.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${o.origin??"hodnota"} mus\xED b\xFDt ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED m\xEDt ${i}${o.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED b\xFDt ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??o.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${o.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${F(o.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${o.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${o.origin}`;default:return"Neplatn\xFD vstup"}}};function hV(){return{localeError:Nse()}}var Bse=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(o){return e[o]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ugyldigt input: forventede instanceof ${o.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return o.values.length===1?`Ugyldig v\xE6rdi: forventede ${G(o.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin),s=n[o.origin]??o.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${o.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin),s=n[o.origin]??o.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${o.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??o.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${F(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${o.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${o.origin}`;default:return"Ugyldigt input"}}};function gV(){return{localeError:Bse()}}var Lse=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(o){return e[o]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${o.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return o.values.length===1?`Ung\xFCltige Eingabe: erwartet ${G(o.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Zu gro\xDF: erwartet, dass ${o.origin??"Wert"} ${i}${o.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${o.origin??"Wert"} ${i}${o.maximum.toString()} ist`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Zu klein: erwartet, dass ${o.origin} ${i}${o.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${o.origin} ${i}${o.minimum.toString()} ist`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??o.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${o.divisor} sein`;case"unrecognized_keys":return`${o.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${F(o.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${o.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${o.origin}`;default:return"Ung\xFCltige Eingabe"}}};function vV(){return{localeError:Lse()}}var Mse=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(o){return e[o]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return typeof o.expected=="string"&&/^[A-Z]/.test(o.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${o.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return o.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${G(o.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${o.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${o.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??o.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${o.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${o.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${o.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${F(o.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${o.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${o.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function xV(){return{localeError:Mse()}}var jse=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function o(i,a){return i==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):n[i]??i}return i=>{switch(i.code){case"invalid_type":{let a=o(i.expected),s=Q(i.input),l=o(s,i.input);return`Invalid input: expected ${a}, received ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${G(i.values[0])}`:`Invalid option: expected one of ${F(i.values,"|")}`;case"too_big":{let a=i.exact?"exactly ":i.inclusive?"<=":"<",s=t(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${a}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${a}${i.maximum.toString()}`}case"too_small":{let a=i.exact?"exactly ":i.inclusive?">=":">",s=t(i.origin);return s?`Too small: expected ${i.origin} to have ${a}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${F(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(s=>`'${s}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Sw(){return{localeError:jse()}}var Use=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${o.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return o.values.length===1?`Nevalida enigo: atendi\u011Dis ${G(o.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${i}${o.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Tro malgranda: atendi\u011Dis ke ${o.origin} havu ${i}${o.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${o.origin} estu ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} \u015Dlosilo${o.keys.length>1?"j":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function bV(){return{localeError:Use()}}var Vse=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(o){return e[o]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",mac:"direcci\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${o.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return o.values.length===1?`Entrada inv\xE1lida: se esperaba ${G(o.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin),s=n[o.origin]??o.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${o.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin),s=n[o.origin]??o.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${o.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??o.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${o.divisor}`;case"unrecognized_keys":return`Llave${o.keys.length>1?"s":""} desconocida${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[o.origin]??o.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[o.origin]??o.origin}`;default:return"Entrada inv\xE1lida"}}};function yV(){return{localeError:Vse()}}var Hse=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},map:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(o){return e[o]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",mac:"MAC \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${o.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return o.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${G(o.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${F(o.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${o.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${o.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${o.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${o.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${o.origin} \u0628\u0627\u06CC\u062F ${i}${o.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${o.origin} \u0628\u0627\u06CC\u062F ${i}${o.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??o.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${o.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${o.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${F(o.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${o.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${o.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function _V(){return{localeError:Hse()}}var Wse=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(o){return e[o]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Virheellinen tyyppi: odotettiin instanceof ${o.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return o.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${G(o.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${o.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${o.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??o.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${o.divisor} monikerta`;case"unrecognized_keys":return`${o.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${F(o.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function IV(){return{localeError:Wse()}}var Zse=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(o){return e[o]??null}let r={regex:"expression r\xE9guli\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},n={string:"cha\xEEne de caract\xE8res",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Entr\xE9e invalide : instance de ${o.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return o.values.length===1?`Entr\xE9e invalide : ${G(o.values[0])} attendu`:`Option invalide : une valeur parmi ${F(o.values,"|")} attendue`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Trop grand : ${n[o.origin]??"valeur"} doit ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n[o.origin]??"valeur"} doit \xEAtre ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Trop petit : ${n[o.origin]??"valeur"} doit ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Trop petit : ${n[o.origin]??"valeur"} doit \xEAtre ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${o.divisor}`;case"unrecognized_keys":return`Cl\xE9${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${F(o.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${o.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entr\xE9e invalide"}}};function wV(){return{localeError:Zse()}}var qse=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"},map:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(o){return e[o]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Entr\xE9e invalide : attendu instanceof ${o.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return o.values.length===1?`Entr\xE9e invalide : attendu ${G(o.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"\u2264":"<",a=t(o.origin);return a?`Trop grand : attendu que ${o.origin??"la valeur"} ait ${i}${o.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${o.origin??"la valeur"} soit ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?"\u2265":">",a=t(o.origin);return a?`Trop petit : attendu que ${o.origin} ait ${i}${o.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${o.origin} soit ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${o.divisor}`;case"unrecognized_keys":return`Cl\xE9${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${F(o.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${o.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entr\xE9e invalide"}}};function SV(){return{localeError:qse()}}var Kse=()=>{let e={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function t(o){return e[o]??null}let r={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${i}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${s}`}case"invalid_value":return o.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${G(o.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${F(o.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${o.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${i}${o.maximum.toString()} ${a.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${o.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${i}${o.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${o.origin} ${i}${o.minimum.toString()} ${a.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${o.origin} ${i}${o.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${i.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:i.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${i.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:i.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${i.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:i.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${i.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${o.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${o.keys.length>1?"\u0A93":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${o.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}};function kV(){return{localeError:Kse()}}var Gse=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=c=>c?e[c]:void 0,n=c=>{let u=r(c);return u?u.label:c??e.unknown.label},o=c=>`\u05D4${n(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,d=l[u??""]??n(u),f=Q(c.input),m=l[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${G(c.values[0])}`;let u=c.values.map(m=>G(m));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u[0]} \u05D0\u05D5 ${u[1]}`;let d=u[u.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let u=a(c.origin),d=o(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let p=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(c.origin==="array"||c.origin==="set"){let p=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",m=i(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.maximum.toString()}`}case"too_small":{let u=a(c.origin),d=o(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let p=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(c.origin==="array"||c.origin==="set"){let p=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let y=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let h=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",m=i(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`;let d=s[u.format],f=d?.label??u.format,p=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${p}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${F(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${o(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function CV(){return{localeError:Gse()}}var Xse=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function t(o){return e[o]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${i}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return o.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${G(o.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${i}${o.maximum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin??"\u092E\u093E\u0928"} ${i}${o.maximum} \u0939\u094B`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin} \u092E\u0947\u0902 ${i}${o.minimum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin} ${i}${o.minimum} \u0939\u094B`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${i.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:i.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${i.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:i.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${i.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:i.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${i.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${o.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${o.keys.length>1?"\u092F\u093E\u0901":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${o.origin} \u092E\u0947\u0902`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${o.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function PV(){return{localeError:Xse()}}var Qse=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(o){return e[o]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},n={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${o.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return o.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${G(o.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin),s=n[o.origin]??o.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${o.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin),s=n[o.origin]??o.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${o.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??o.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${o.divisor}`;case"unrecognized_keys":return`Neprepoznat${o.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${F(o.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${n[o.origin]??o.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${n[o.origin]??o.origin}`;default:return"Neispravan unos"}}};function $V(){return{localeError:Qse()}}var Jse=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(o){return e[o]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",mac:"MAC c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${o.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return o.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${G(o.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`T\xFAl nagy: ${o.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${o.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${o.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${o.origin} m\xE9rete t\xFAl kicsi ${i}${o.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${o.origin} t\xFAl kicsi ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??o.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${o.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${o.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${o.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function RV(){return{localeError:Jse()}}function DV(e,t,r){return Math.abs(e)===1?t:r}function dm(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var Yse=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},map:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(o){return e[o]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",mac:"MAC \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${o.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return o.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${G(o.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);if(a){let s=Number(o.maximum),l=DV(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dm(o.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${o.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dm(o.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);if(a){let s=Number(o.minimum),l=DV(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dm(o.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${o.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dm(o.origin)} \u056C\u056B\u0576\u056B ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??o.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${o.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${o.keys.length>1?"\u0576\u0565\u0580":""}. ${F(o.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dm(o.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${dm(o.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function EV(){return{localeError:Yse()}}var ele=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(o){return e[o]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Input tidak valid: diharapkan instanceof ${o.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return o.values.length===1?`Input tidak valid: diharapkan ${G(o.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Terlalu besar: diharapkan ${o.origin??"value"} memiliki ${i}${o.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${o.origin??"value"} menjadi ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Terlalu kecil: diharapkan ${o.origin} memiliki ${i}${o.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${o.origin} menjadi ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??o.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${o.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${o.origin}`;default:return"Input tidak valid"}}};function TV(){return{localeError:ele()}}var tle=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"},map:{unit:"hluti",verb:"a\xF0 hafa"}};function t(o){return e[o]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${o.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return o.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${G(o.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} hafi ${i}${o.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} s\xE9 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} hafi ${i}${o.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} s\xE9 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??o.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${F(o.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${o.origin}`;default:return"Rangt gildi"}}};function OV(){return{localeError:tle()}}var rle=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(o){return e[o]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Input non valido: atteso instanceof ${o.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return o.values.length===1?`Input non valido: atteso ${G(o.values[0])}`:`Opzione non valida: atteso uno tra ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Troppo grande: ${o.origin??"valore"} deve avere ${i}${o.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${o.origin??"valore"} deve essere ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Troppo piccolo: ${o.origin} deve avere ${i}${o.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${o.origin} deve essere ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??o.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${o.divisor}`;case"unrecognized_keys":return`Chiav${o.keys.length>1?"i":"e"} non riconosciut${o.keys.length>1?"e":"a"}: ${F(o.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${o.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${o.origin}`;default:return"Input non valido"}}};function zV(){return{localeError:rle()}}var ole=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},map:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(o){return e[o]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",mac:"MAC\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${o.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return o.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${G(o.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${F(o.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=o.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(o.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${o.origin??"\u5024"}\u306F${o.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${o.origin??"\u5024"}\u306F${o.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=o.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(o.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${o.origin}\u306F${o.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${o.origin}\u306F${o.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??o.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${o.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${o.keys.length>1?"\u7FA4":""}: ${F(o.keys,"\u3001")}`;case"invalid_key":return`${o.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${o.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function AV(){return{localeError:ole()}}var nle=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},map:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(o){return e[o]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",mac:"MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${o.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return o.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${G(o.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${F(o.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${o.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${o.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${F(o.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${o.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${o.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function FV(){return{localeError:nle()}}var ile=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},map:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(o){return e[o]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},n={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${o.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return o.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${G(o.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${o.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin} ${i} ${o.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin} ${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${o.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${F(o.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${o.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${o.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function kw(){return{localeError:ile()}}function NV(){return kw()}var ale=()=>{let e={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function t(o){return e[o]??null}let r={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${i}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${s}`}case"invalid_value":return o.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${G(o.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${i}${o.maximum.toString()} ${a.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${i}${o.minimum.toString()} ${a.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${i.prefix}"`:i.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${i.suffix}"`:i.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${i.includes}"`:i.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${i.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${o.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${o.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}};function BV(){return{localeError:ale()}}var sle=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"},map:{unit:"\uAC1C",verb:"to have"}};function t(o){return e[o]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",mac:"MAC \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${o.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return o.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${G(o.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${F(o.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=o.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(o.origin),l=s?.unit??"\uC694\uC18C";return s?`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${o.maximum.toString()}${l} ${i}${a}`:`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${o.maximum.toString()} ${i}${a}`}case"too_small":{let i=o.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(o.origin),l=s?.unit??"\uC694\uC18C";return s?`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${o.minimum.toString()}${l} ${i}${a}`:`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${o.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??o.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${o.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${F(o.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${o.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${o.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function LV(){return{localeError:sle()}}var lv=e=>e.charAt(0).toUpperCase()+e.slice(1);function MV(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}var lle=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(o,i,a,s){let l=e[o]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},n={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${o.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return o.values.length===1?`Privalo b\u016Bti ${G(o.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${F(o.values,"|")} pasirinkim\u0173`;case"too_big":{let i=n[o.origin]??o.origin,a=t(o.origin,MV(Number(o.maximum)),o.inclusive??!1,"smaller");if(a?.verb)return`${lv(i??o.origin??"reik\u0161m\u0117")} ${a.verb} ${o.maximum.toString()} ${a.unit??"element\u0173"}`;let s=o.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${lv(i??o.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${o.maximum.toString()} ${a?.unit}`}case"too_small":{let i=n[o.origin]??o.origin,a=t(o.origin,MV(Number(o.minimum)),o.inclusive??!1,"bigger");if(a?.verb)return`${lv(i??o.origin??"reik\u0161m\u0117")} ${a.verb} ${o.minimum.toString()} ${a.unit??"element\u0173"}`;let s=o.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${lv(i??o.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${o.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??o.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${o.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${o.keys.length>1?"i":"as"} rakt${o.keys.length>1?"ai":"as"}: ${F(o.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=n[o.origin]??o.origin;return`${lv(i??o.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function jV(){return{localeError:lle()}}var cle=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},map:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(o){return e[o]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",mac:"MAC \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${o.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${G(o.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${o.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${o.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${F(o.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${o.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${o.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function UV(){return{localeError:cle()}}var ule=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(o){return e[o]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Input tidak sah: dijangka instanceof ${o.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return o.values.length===1?`Input tidak sah: dijangka ${G(o.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Terlalu besar: dijangka ${o.origin??"nilai"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${o.origin??"nilai"} adalah ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Terlalu kecil: dijangka ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${o.origin} adalah ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??o.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${F(o.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${o.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${o.origin}`;default:return"Input tidak sah"}}};function VV(){return{localeError:ule()}}var dle=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function t(o){return e[o]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${i}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return o.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${G(o.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${o.origin??"\u092E\u093E\u0928"} \u092E\u093E ${i}${o.maximum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${o.origin??"\u092E\u093E\u0928"} ${i}${o.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${o.origin} \u092E\u093E ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${o.origin} ${i}${o.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${i.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:i.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${i.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:i.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${i.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:i.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${i.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${o.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${o.keys.length>1?"\u0939\u0930\u0942":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${o.origin} \u092E\u093E`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${o.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function HV(){return{localeError:dle()}}var fle=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(o){return e[o]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ongeldige invoer: verwacht instanceof ${o.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return o.values.length===1?`Ongeldige invoer: verwacht ${G(o.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin),s=o.origin==="date"?"laat":o.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${o.origin??"waarde"} ${i}${o.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${o.origin??"waarde"} ${i}${o.maximum.toString()} is`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin),s=o.origin==="date"?"vroeg":o.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${o.origin} ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${o.origin} ${i}${o.minimum.toString()} is`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??o.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${o.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${o.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${o.origin}`;default:return"Ongeldige invoer"}}};function WV(){return{localeError:fle()}}var mle=()=>{let e={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};function t(o){return e[o]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tal",array:"liste"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ugyldig input: forventa instanceof ${o.expected}, fekk ${s}`:`Ugyldig input: forventa ${i}, fekk ${s}`}case"invalid_value":return o.values.length===1?`Ugyldig verdi: forventa ${G(o.values[0])}`:`Ugyldig val: forventa eitt av ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`For stor(t): forventa ${o.origin??"value"} til \xE5 ha ${i}${o.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${o.origin??"value"} til \xE5 ha ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`For lite(n): forventa ${o.origin} til \xE5 ha ${i}${o.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${o.origin} til \xE5 ha ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??o.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${F(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${o.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${o.origin}`;default:return"Ugyldig input"}}};function ZV(){return{localeError:mle()}}var ple=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"},map:{unit:"elementer",verb:"\xE5 inneholde"}};function t(o){return e[o]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ugyldig input: forventet instanceof ${o.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return o.values.length===1?`Ugyldig verdi: forventet ${G(o.values[0])}`:`Ugyldig valg: forventet en av ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`For stor(t): forventet ${o.origin??"value"} til \xE5 ha ${i}${o.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${o.origin??"value"} til \xE5 ha ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`For lite(n): forventet ${o.origin} til \xE5 ha ${i}${o.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${o.origin} til \xE5 ha ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??o.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${F(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${o.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${o.origin}`;default:return"Ugyldig input"}}};function qV(){return{localeError:ple()}}var hle=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"},map:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(o){return e[o]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",mac:"MAC ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`F\xE2sit giren: umulan instanceof ${o.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return o.values.length===1?`F\xE2sit giren: umulan ${G(o.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Fazla b\xFCy\xFCk: ${o.origin??"value"}, ${i}${o.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${o.origin??"value"}, ${i}${o.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Fazla k\xFC\xE7\xFCk: ${o.origin}, ${i}${o.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${o.origin}, ${i}${o.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=o;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??o.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${o.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${o.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function KV(){return{localeError:hle()}}var gle=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},map:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(o){return e[o]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",mac:"\u062F MAC \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${o.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return o.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${G(o.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${F(o.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${o.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${o.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${o.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${o.maximum.toString()} \u0648\u064A`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${o.origin} \u0628\u0627\u06CC\u062F ${i}${o.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${o.origin} \u0628\u0627\u06CC\u062F ${i}${o.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??o.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${o.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${o.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${F(o.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${o.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${o.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function GV(){return{localeError:gle()}}var vle=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"},map:{unit:"element\xF3w",verb:"mie\u0107"}};function t(o){return e[o]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},n={nan:"NaN",number:"liczba",array:"tablica"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${o.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return o.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${G(o.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${o.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${o.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??o.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${o.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${o.keys.length>1?"s":""}: ${F(o.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${o.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${o.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function XV(){return{localeError:vle()}}var xle=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},n={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},o={string:{name:"texto",articles:n.masculine},number:{name:"n\xFAmero",articles:n.masculine},int:{name:"n\xFAmero inteiro",articles:n.masculine},boolean:{name:"valor booleano",articles:n.masculine},bigint:{name:"n\xFAmero bigint",articles:n.masculine},symbol:{name:"s\xEDmbolo",articles:n.masculine},undefined:{name:'valor "undefined"',articles:n.masculine},null:{name:'valor "nulo"',articles:n.masculine},never:{name:'valor "never"',articles:n.masculine},void:{name:'valor "void"',articles:n.masculine},date:{name:"data",articles:n.feminine},array:{name:"vetor",articles:n.masculine},object:{name:"objeto",articles:n.masculine},tuple:{name:"tuplo",articles:n.masculine},record:{name:"registo",articles:n.masculine},map:{name:"mapa",articles:n.masculine},set:{name:"conjunto",articles:n.masculine},file:{name:"ficheiro",articles:n.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:n.masculine},nan:{name:'valor "NaN"',articles:n.masculine},function:{name:"fun\xE7\xE3o",articles:n.feminine}};function i(a,s){let l=o[a]??{name:`valor "${a}"`,articles:n.masculine};return`${l.articles[s]} ${l.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),l=Q(a.input),c=i(l,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${G(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${F(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",l=t(a.origin);return l?`Demasiado grande: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${l.unit??"elementos"}`:`Demasiado grande: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",l=t(a.origin);return l?`Demasiado pequeno: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${l.unit??"elementos"}`:`Demasiado pequeno: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${F(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(l=>`'${l}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function QV(){return{localeError:xle()}}var ble=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},n={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},o={string:{name:"texto",articles:n.masculine},number:{name:"n\xFAmero",articles:n.masculine},int:{name:"n\xFAmero inteiro",articles:n.masculine},boolean:{name:"valor booleano",articles:n.masculine},bigint:{name:"n\xFAmero bigint",articles:n.masculine},symbol:{name:"s\xEDmbolo",articles:n.masculine},undefined:{name:'valor "undefined"',articles:n.masculine},null:{name:'valor "nulo"',articles:n.masculine},never:{name:'valor "never"',articles:n.masculine},void:{name:'valor "void"',articles:n.masculine},date:{name:"data",articles:n.feminine},array:{name:"vetor",articles:n.masculine},object:{name:"objeto",articles:n.masculine},tuple:{name:"tupla",articles:n.feminine},record:{name:"registro",articles:n.masculine},map:{name:"mapa",articles:n.masculine},set:{name:"conjunto",articles:n.masculine},file:{name:"arquivo",articles:n.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:n.masculine},nan:{name:'valor "NaN"',articles:n.masculine},function:{name:"fun\xE7\xE3o",articles:n.feminine}};function i(a,s){let l=o[a]??{name:`valor "${a}"`,articles:n.masculine};return`${l.articles[s]} ${l.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),l=Q(a.input),c=i(l,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${G(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${F(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",l=t(a.origin);return l?`Grande demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${l.unit??"elementos"}`:`Grande demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",l=t(a.origin);return l?`Pequeno demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${l.unit??"elementos"}`:`Pequeno demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${F(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(l=>`'${l}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function JV(){return{localeError:ble()}}var yle=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(o){return e[o]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},n={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return o.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${G(o.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Prea mare: a\u0219teptat ca ${o.origin??"valoarea"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${o.origin??"valoarea"} s\u0103 fie ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Prea mic: a\u0219teptat ca ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${o.origin} s\u0103 fie ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??o.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${o.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${F(o.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${o.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${o.origin}`;default:return"Intrare invalid\u0103"}}};function YV(){return{localeError:yle()}}function eH(e,t,r,n){let o=Math.abs(e),i=o%10,a=o%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?r:n}var _le=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(o){return e[o]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${o.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${G(o.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);if(a){let s=Number(o.maximum),l=eH(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${o.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);if(a){let s=Number(o.minimum),l=eH(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${o.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${o.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${o.keys.length>1?"\u0438":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${o.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function tH(){return{localeError:_le()}}var Ile=()=>{let e={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function t(o){return e[o]??null}let r={regex:"regul\xE1rny v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${o.expected}, obdr\u017Ean\xE9 ${s}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${i}, obdr\u017Ean\xE9 ${s}`}case"invalid_value":return o.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${G(o.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${o.origin??"hodnota"} mus\xED ma\u0165 ${i}${o.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${o.origin??"hodnota"} mus\xED by\u0165 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Hodnota je pr\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED ma\u0165 ${i}${o.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED by\u0165 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${i.includes}"`:i.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??o.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${o.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${F(o.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\u010D v ${o.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${o.origin}`;default:return"Neplatn\xFD vstup"}}};function rH(){return{localeError:Ile()}}var wle=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(o){return e[o]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${o.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return o.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${G(o.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${o.origin??"vrednost"} imelo ${i}${o.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${o.origin??"vrednost"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${o.origin} imelo ${i}${o.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??o.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${o.divisor}`;case"unrecognized_keys":return`Neprepoznan${o.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${F(o.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${o.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${o.origin}`;default:return"Neveljaven vnos"}}};function oH(){return{localeError:wle()}}var Sle=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"},map:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(o){return e[o]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${o.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return o.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${G(o.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${i}${o.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${o.origin??"v\xE4rdet"} att ha ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${i}${o.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??o.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${F(o.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${o.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${o.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function nH(){return{localeError:Sle()}}var kle=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},map:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(o){return e[o]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",mac:"MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${o.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return o.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${G(o.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${F(o.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${o.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${o.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin} ${i}${o.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin} ${i}${o.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${o.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${o.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${o.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function iH(){return{localeError:kle()}}var Cle=()=>{let e={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function t(o){return e[o]??null}let r={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},n={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${i} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${s} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return o.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${G(o.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${F(o.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${o.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${i}${o.maximum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${o.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${i}${o.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${o.origin} \u0431\u043E\u044F\u0434 ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${o.origin} \u0431\u043E\u044F\u0434 ${i}${o.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${i.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:i.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${i.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:i.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${i.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:i.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${i.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${r[i.format]??o.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${o.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${o.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${F(o.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${o.options.map(a=>`'${a}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${o.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}};function aH(){return{localeError:Cle()}}var Ple=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},map:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(o){return e[o]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},n={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${o.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return o.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${G(o.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(o.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${o.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(o.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${o.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??o.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${o.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${F(o.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${o.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${o.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function sH(){return{localeError:Ple()}}var $le=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(o){return e[o]??null}let r={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return`N\xE4dogry baha: gara\u015Fylan ${i} \xFDerine ${s} alyndy`}case"invalid_value":return o.values.length===1?`N\xE4dogry baha: ${G(o.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Has uly: gara\u015Fyl\xFDan ${o.origin??"baha"} ${i} ${o.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${o.origin??"baha"} ${i} ${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Has ki\xE7i: gara\u015Fyl\xFDan ${o.origin} ${i} ${o.minimum.toString()} ${a.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${o.origin} ${i} ${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`N\xE4dogry setir: "${i.prefix}" bilen ba\u015Flamaly`:i.format==="ends_with"?`N\xE4dogry setir: "${i.suffix}" bilen gutarmaly`:i.format==="includes"?`N\xE4dogry setir: "${i.includes}" saklamaly`:i.format==="regex"?`N\xE4dogry setir: ${i.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${r[i.format]??o.format}`}case"not_multiple_of":return`N\xE4dogry san: ${o.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${o.keys.length>1?"lar":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${o.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}};function lH(){return{localeError:$le()}}var Rle=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},map:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(o){return e[o]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${o.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return o.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${G(o.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${i}${o.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??o.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${o.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${o.keys.length>1?"lar":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${o.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function cH(){return{localeError:Rle()}}var Dle=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(o){return e[o]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${o.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${G(o.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin} \u0431\u0443\u0434\u0435 ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${o.keys.length>1?"\u0456":""}: ${F(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${o.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Cw(){return{localeError:Dle()}}function uH(){return Cw()}var Ele=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},map:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(o){return e[o]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${o.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return o.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${G(o.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${F(o.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${o.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${o.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${o.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${o.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${o.origin} \u06A9\u06D2 ${i}${o.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${o.origin} \u06A9\u0627 ${i}${o.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${o.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${o.keys.length>1?"\u0632":""}: ${F(o.keys,"\u060C ")}`;case"invalid_key":return`${o.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${o.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function dH(){return{localeError:Ele()}}var Tle=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(o){return e[o]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${o.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return o.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${G(o.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Juda katta: kutilgan ${o.origin??"qiymat"} ${i}${o.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${o.origin??"qiymat"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Juda kichik: kutilgan ${o.origin} ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??o.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${o.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${o.keys.length>1?"lar":""}: ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${o.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function fH(){return{localeError:Tle()}}var Ole=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},map:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(o){return e[o]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",mac:"\u0111\u1ECBa ch\u1EC9 MAC",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${o.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return o.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${G(o.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${o.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${o.origin??"gi\xE1 tr\u1ECB"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??o.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${o.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${F(o.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${o.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${o.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function mH(){return{localeError:Ole()}}var zle=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"},map:{unit:"\u9879",verb:"\u5305\u542B"}};function t(o){return e[o]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",mac:"MAC\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${o.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return o.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${G(o.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${o.origin??"\u503C"} ${i}${o.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${o.origin??"\u503C"} ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??o.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${o.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${F(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${o.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function pH(){return{localeError:zle()}}var Ale=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},map:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(o){return e[o]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",mac:"MAC \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},n={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${o.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return o.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${G(o.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${o.origin??"\u503C"} \u61C9\u70BA ${i}${o.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${o.origin??"\u503C"} \u61C9\u70BA ${i}${o.maximum.toString()}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${o.origin} \u61C9\u70BA ${i}${o.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${o.origin} \u61C9\u70BA ${i}${o.minimum.toString()}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??o.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${o.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${o.keys.length>1?"\u5011":""}\uFF1A${F(o.keys,"\u3001")}`;case"invalid_key":return`${o.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${o.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function hH(){return{localeError:Ale()}}var Fle=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"},map:{unit:"nkan",verb:"n\xED"}};function t(o){return e[o]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return o=>{switch(o.code){case"invalid_type":{let i=n[o.expected]??o.expected,a=Q(o.input),s=n[a]??a;return/^[A-Z]/.test(o.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${o.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return o.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${G(o.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${F(o.values,"|")}`;case"too_big":{let i=o.inclusive?"<=":"<",a=t(o.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${o.origin??"iye"} ${a.verb} ${i}${o.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${o.maximum}`}case"too_small":{let i=o.inclusive?">=":">",a=t(o.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${o.origin} ${a.verb} ${i}${o.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${o.minimum}`}case"invalid_format":{let i=o;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??o.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${o.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${F(o.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${o.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${o.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function gH(){return{localeError:Fle()}}var vH,uT=Symbol("ZodOutput"),dT=Symbol("ZodInput"),Pw=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function $w(){return new Pw}(vH=globalThis).__zod_globalRegistry??(vH.__zod_globalRegistry=$w());var Wr=globalThis.__zod_globalRegistry;var Eo=Symbol.for("zod.compile.invalid"),xH=Symbol.for("zod.compile.fallback"),Si=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Ze=class extends Error{constructor(t,r=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};function Ble(e,t){try{return Dw(e,{assertOnly:!0})}catch{return t}}function hT(e,t){try{let r=Dw(e),n=Rw(e,r);return n._zod.bag.validator=Ble(e,r),n}catch(r){if(t?.strict)throw r;return e}}function Rw(e,t){if(Iw(e))throw new Ze("a schema whose subtree contains a reference cycle");let r=nt(e),n=e._zod.run,o=n.__originalRun??n,i=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[xH]||s&&ww(s,a.value))return o(a,s);let l=t(a.value);return l!==Eo?(a.value=l,a):(s&&(s[xH]=!0),o(a,s))};return i.__originalRun=o,r._zod.bag.fallbackRun=o,r._zod.bag.validator=t,r._zod.run=i,n.__originalRun||Lle(r,e,t),r}function Lle(e,t,r){let n=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;n.safeParse=(a,s)=>{let l=r(a);return l!==Eo?{success:!0,data:l}:i(a,s)}}if(typeof o.parse=="function"){let i=o.parse;n.parse=(a,s)=>{let l=r(a);return l!==Eo?l:i(a,s)}}}function Dw(e,t){let r=!0;try{r=Iw(e)}catch{}if(r)throw new Ze("a schema whose subtree contains a reference cycle");let n={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new xu(["input"]),i=Lt(o,n,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let a=["INVALID",...n.constants.keys()],s=[Eo,...n.constants.values()],l=o.content.join(`
152
+ `),c=t?.debug?a.length>0?`// Constants: ${a.join(", ")}
153
+ ${l}`:l:"",u=Function,d=`return (input) => {
154
+ ${l}
155
+ }`,f;try{f=new u(...a,d)(...s)}catch(m){throw new Ze(`this schema (generated code failed to evaluate: ${m.message})`)}return t?.debug&&(f.code=c),f.definite=n.definite,f}function $e(e,t){for(let[n,o]of e.constants)if(o===t)return n;let r=`c${e.constantCounter++}`;return e.constants.set(r,t),r}function Iu(e,t){return e.definite=!1,$e(e,t)}function Se(e){return`v${e.varCounter++}`}function Mle(e,t){let r=e._zod.run({value:t,issues:[]},{});if(r&&typeof r.then=="function")return Eo;let n=r;return n.issues.length===0?n.value:Eo}function lo(e,t,r,n,o=!0){let i=e.content.length,a=t.constants.size,s=t.constantCounter,l=t.varCounter;try{return Lt(e,t,r,n,o)}catch(c){if(!(c instanceof Ze)||!c.islandable)throw c;if(e.content.length=i,t.constants.size>a){let u=Array.from(t.constants.keys()).slice(a);for(let d of u)t.constants.delete(d)}return t.constantCounter=s,t.varCounter=l,jle(e,t,r,n)}}function jle(e,t,r,n){t.definite=!1;let o=$e(t,r),i=$e(t,Mle),a=Se(t);return e.write(`const ${a} = ${i}(${o}, ${n});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var Ule=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function Vle(e,t,r,n){let o=r._zod.def.checks;if(!o||o.length===0)return n;let i=n;for(let a of o){let s=a._zod.def;if(s.when&&!Ule.has(s.check))throw new Ze('check with a custom "when" condition');switch(s.check){case"greater_than":Hle(e,t,s,i);break;case"less_than":Wle(e,t,s,i);break;case"multiple_of":Zle(e,t,s,i);break;case"number_format":SH(e,s,i);break;case"min_length":{let l=yu(s.minimum,"min_length"),c=fT(e,t,i,`${i}.length >= ${l} && ${i}.length < ${s.minimum*2}`);e.write(`if (${c} < ${l}) return INVALID;`);break}case"max_length":{let l=yu(s.maximum,"max_length"),c=fT(e,t,i,`${i}.length > ${l}`);e.write(`if (${c} > ${l}) return INVALID;`);break}case"length_equals":{let l=yu(s.length,"length_equals"),c=fT(e,t,i,`${i}.length >= ${l} && ${i}.length <= ${s.length*2}`);e.write(`if (${c} !== ${l}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${yu(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${yu(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${yu(s.size,"size_equals")}) return INVALID;`);break;case"string_format":i=kH(e,t,s,i);break;case"custom":i=Jle(e,t,a,i);break;case"bigint_format":qle(e,s,i);break;case"mime_type":Kle(e,t,s,i);break;case"property":Xle(e,t,s,i);break;case"properties":Gle(e,t,s,i);break;case"overwrite":{let l=Se(t);Qle(e,t,a,i,l),i=l;break}default:throw new Ze(`check type ${s.check}`)}}return i}function fT(e,t,r,n){let o=$e(t,gu),i=Se(t);return e.write(`const ${i} = typeof ${r} === "string" && ${n} ? ${o}(${r}) : ${r}.length;`),i}function yu(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Ze(`${t} bound of type ${typeof e}`);return`${e}`}function wH(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Ze("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Ze("comparison check with Invalid Date bound");return $e(e,t)}throw new Ze(`comparison check bound of type ${typeof t}`)}function Hle(e,t,r,n){let o=r.inclusive?"<":"<=";e.write(`if (${n} ${o} ${wH(t,r.value)}) return INVALID;`)}function Wle(e,t,r,n){let o=r.inclusive?">":">=";e.write(`if (${n} ${o} ${wH(t,r.value)}) return INVALID;`)}function Zle(e,t,r,n){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new Ze("multiple_of check with a zero divisor");e.write(`if (${n} % ${r.value}n !== 0n) return INVALID;`)}else{let o=$e(t,Og);e.write(`if (${o}(${n}, ${yu(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function SH(e,t,r){let n=t.format;switch(n){case"safeint":e.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new Ze(`number format ${n}`)}}function qle(e,t,r){let n=t.format;if(n)switch(n){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new Ze(`bigint format ${n}`)}}function Kle(e,t,r,n){let o=r.mime;if(o&&o.length>0){let i=$e(t,new Set(o));e.write(`if (!${i}.has(${n}.type)) return INVALID;`)}}function Gle(e,t,r,n){if(r.when)throw new Ze('check with a custom "when" condition');e.write(`if (${n} == null) return INVALID;`);let o=r.shape;for(let i of Reflect.ownKeys(o)){let a=typeof i=="symbol"?$e(t,i):Ro(i),s=Se(t);e.write(`const ${s} = ${n}[${a}];`),lo(e,t,o[i],s,!1)}}function Xle(e,t,r,n){let o=`${n}[${JSON.stringify(r.property)}]`;Lt(e,t,r.schema,o)}function Qle(e,t,r,n,o){let i=r._zod.def.tx;if(!i)throw new Ze("overwrite check without a transform function");if(wu(i))throw new Si("z.compile: async overwrite transforms are not supported");let a=$e(t,i);e.write(`const ${o} = ${a}(${n});`)}function mT(){throw new Yo}function gT(e){this.issues.push(e)}function Jle(e,t,r,n){let o=r._zod.def;if(o.fn){if(wu(o.fn))throw new Si("z.compile: async .refine() predicates are not supported");let i=Iu(t,o.fn),a=$e(t,mT),s=Se(t);return e.write(`const ${s} = ${i}(${n});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),n}if(r._zod.check){if(wu(r._zod.check))throw new Si("z.compile: async .superRefine() / check functions are not supported");let i=r._zod.check,s=Iu(t,c=>{let u={value:c,issues:[],addIssue:gT};return i(u)instanceof Promise&&mT(),u.issues.length===0?u.value:Eo}),l=Se(t);return e.write(`const ${l} = ${s}(${n});`),e.write(`if (${l} === INVALID) return INVALID;`),l}throw new Ze("custom check without a predicate or check function")}var Yle=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function kH(e,t,r,n,o=!0){let i=r.format;if(i==="base64"){let c=$e(t,Yg);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(i==="base64url"){let c=$e(t,cw);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(i==="jwt"){let c=$e(t,fw),u=$e(t,r.alg??null);return e.write(`if (!${c}(${n}, ${u})) return INVALID;`),n}if(i==="ipv6"){let c=$e(t,Jg);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(i==="cidrv6"){let c=$e(t,sw);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(i==="credit_card"){let c=$e(t,uw);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(i==="iban"){let c=$e(t,dw);return e.write(`if (!${c}(${n})) return INVALID;`),n}let a=r;if(i==="url"||i==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let c=$e(t,nw),u=$e(t,r),d=Se(t),f=Se(t);if(e.write(`const ${d} = ${n}.trim();`),e.write(`const ${f} = ${c}(${d}, ${u});`),e.write(`if (typeof ${f} === "number") return INVALID;`),a.hostname!==void 0){let h=$e(t,iw);e.write(`if (!${h}(${f}, ${u}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let h=$e(t,aw);e.write(`if (!${h}(${f}, ${u}.protocol)) return INVALID;`)}if(!o)return null;let m=Se(t),p=a.normalize?`${f}.href`:`${$e(t,Qg)}(${d})`;return e.write(`const ${m} = ${p};`),m}let s=r.fn;if(s){if(wu(s))throw new Ze(`async string format ${i}`);let c=$e(t,s);return e.write(`if (!${c}(${n})) return INVALID;`),n}if(Yle.has(i)&&r.pattern){let c=$e(t,r.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${n})) return INVALID;`),n}let l=r.format;switch(l){case"regex":throw new Ze("regex format without a pattern");case"lowercase":e.write(`if (${n} !== ${n}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${n} !== ${n}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${n}.includes(${Ro(r.includes)})) return INVALID;`);break;case"starts_with":{let c=r.prefix;e.write(`if (${n}.slice(0, ${c.length}) !== ${Ro(c)}) return INVALID;`);break}case"ends_with":{let c=r.suffix;e.write(`if (${n}.slice(-${c.length}) !== ${Ro(c)}) return INVALID;`);break}default:throw new Ze(`string format ${l}`)}return n}function Lt(e,t,r,n,o=!0){let i=r._zod.def,a=i.type;if(i.coerce)throw new Ze(`coercion (z.coerce.${a}())`);let s=o||!!i.checks?.length,l;switch(a){case"string":l=ece(e,t,r,n,s);break;case"number":l=tce(e,r,n);break;case"boolean":l=rce(e,n);break;case"bigint":l=oce(e,r,n);break;case"symbol":l=nce(e,n);break;case"undefined":l=ice(e,n);break;case"null":l=ace(e,n);break;case"any":case"unknown":l=n;break;case"never":e.write("return INVALID;"),l=n;break;case"void":l=sce(e,n);break;case"nan":l=lce(e,n);break;case"date":l=cce(e,n);break;case"object":l=uce(e,t,r,n,s);break;case"optional":l=dce(e,t,r,n,s);break;case"nullable":l=pce(e,t,r,n,s);break;case"array":l=hce(e,t,r,n,s);break;case"literal":l=gce(e,t,r,n);break;case"enum":l=vce(e,t,r,n);break;case"readonly":{let c=yH(e,t,r,n),u=Se(t);e.write(`const ${u} = Object.freeze(${c});`),l=u;break}case"success":yH(e,t,r,n),l="true";break;case"default":case"prefault":l=xce(e,t,r,n);break;case"nonoptional":l=bce(e,t,r,n);break;case"tuple":l=yce(e,t,r,n);break;case"union":l=_ce(e,t,r,n);break;case"intersection":l=Sce(e,t,r,n);break;case"record":l=kce(e,t,r,n);break;case"map":l=Pce(e,t,r,n);break;case"set":l=$ce(e,t,r,n);break;case"file":l=Rce(e,n);break;case"template_literal":l=Dce(e,t,r,n);break;case"lazy":l=Ece(e,t,r,n);break;case"pipe":l=Tce(e,t,r,n);break;case"custom":l=Oce(e,t,r,n);break;case"transform":l=Fce(e,t,r,n);break;case"catch":l=Ace(e,t,r,n);break;default:throw new Ze(`schema type ${a}`)}return l===null?null:Vle(e,t,r,l)}function ece(e,t,r,n,o=!0){e.write(`if (typeof ${n} !== "string") return INVALID;`);let i=r._zod.def;return i.format===void 0?n:kH(e,t,i,n,o)}function tce(e,t,r){e.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let n=t._zod.def;return n.check==="number_format"&&n.format&&SH(e,{format:n.format},r),r}function rce(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function oce(e,t,r){e.write(`if (typeof ${r} !== "bigint") return INVALID;`);let n=t._zod.def;if(n.format)switch(n.format){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function nce(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function ice(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function ace(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function sce(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function lce(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function cce(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function uce(e,t,r,n,o=!0){let i=r._zod.def;e.write(`if (typeof ${n} !== "object" || ${n} === null || Array.isArray(${n})) return INVALID;`);let a=i.shape,s=Object.keys(a),l=Object.getOwnPropertySymbols(a),c=l.length?[...s,...l]:s,u=g=>typeof g=="symbol"?$e(t,g):Ro(g),d=g=>typeof g=="symbol"?`[${u(g)}]`:Ro(g),f=a;if(s.includes("__proto__"))throw new Ze('object shape key "__proto__"');let m=new Map;for(let g of c){let x=f[g],_=u(g),w=Se(t);if(e.write(`const ${w} = ${n}[${_}];`),x._zod.optin!==void 0){let I=Se(t);e.write(`let ${I} = (() => {`),e.indented(k=>{let C=lo(k,t,x,w);k.write(`return ${C};`)}),e.write("})();"),x._zod.optout==="optional"?(e.write(`if (${I} === INVALID) {`),e.indented(k=>{k.write(`if (${_} in ${n}) return INVALID;`),k.write(`${I} = undefined;`)}),e.write("}")):e.write(`if (${I} === INVALID) return INVALID;`),m.set(g,I)}else{mce(x)&&e.write(`if (!(${_} in ${n})) return INVALID;`);let I=lo(e,t,x,w,o);I!==null&&m.set(g,I)}}let p=i.catchall,h="none";if(p){let g=p._zod.def.type;if(g==="never"){let x=s.map(_=>`k !== ${Ro(_)}`).join(" && ")||"true";e.write(`for (const k in ${n}) {`),e.indented(_=>{_.write(`if (${x}) return INVALID;`)}),e.write("}")}else(g==="unknown"||g==="any")&&!p._zod.def.checks?.length?h="passthrough":h="schema"}let y=Se(t),v=c.some(g=>bH(f[g])||pT(f[g]));if(!o){if(h==="schema"){let g=s.length>0?$e(t,new Set(s)):null;e.write(`for (const k in ${n}) {`),e.indented(x=>{x.write('if (k === "__proto__") continue;'),g&&x.write(`if (${g}.has(k)) continue;`);let _=Se(t);x.write(`const ${_} = ${n}[k];`),lo(x,t,p,_,!1)}),e.write("}")}return null}if(v){e.write(`const ${y} = {};`);for(let g of c){let x=u(g),_=m.get(g);pT(f[g])?e.write(`if (${x} in ${n}) ${y}[${x}] = ${_};`):bH(f[g])?e.write(`if (${_} !== undefined || ${x} in ${n}) ${y}[${x}] = ${_};`):e.write(`${y}[${x}] = ${_};`)}}else{let g=c.map(x=>`${d(x)}: ${m.get(x)}`).join(", ");e.write(`const ${y} = { ${g} };`)}if(h!=="none"){let g=s.length>0?$e(t,new Set(s)):null;e.write(`for (const k in ${n}) {`),e.indented(x=>{if(x.write('if (k === "__proto__") continue;'),g&&x.write(`if (${g}.has(k)) continue;`),h==="passthrough")x.write(`${y}[k] = ${n}[k];`);else{let _=Se(t);x.write(`const ${_} = ${n}[k];`);let w=lo(x,t,p,_);x.write(`${y}[k] = ${w};`)}}),e.write("}")}return y}function dce(e,t,r,n,o=!0){let i=r._zod.def;if(fce(r))return Lt(e,t,i.innerType,n,o);if(i.innerType._zod.optin==="defaulted"){let s=Se(t),l=Se(t);return e.write(`let ${s};`),e.write(`if (${n} === undefined) {`),e.indented(c=>{c.write(`const ${l} = (() => {`),c.indented(u=>{let d=Lt(u,t,i.innerType,n);u.write(`return ${d};`)}),c.write("})();"),c.write(`if (${l} !== INVALID) ${s} = ${l};`)}),e.write("} else {"),e.indented(c=>{let u=Lt(c,t,i.innerType,n);c.write(`${s} = ${u};`)}),e.write("}"),s}let a=o?Se(t):null;return a&&e.write(`let ${a};`),e.write(`if (${n} !== undefined) {`),e.indented(s=>{let l=Lt(s,t,i.innerType,n,o);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function fce(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function mce(e){return e._zod.optin===void 0&&_u(e)}function _u(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?_u(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?_u(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(_u):!0;case"intersection":return!t.left||!t.right?!0:_u(t.left)&&_u(t.right);case"pipe":return t.in?_u(t.in):!0;default:return!0}}function pT(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function bH(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&fm(e)}function fm(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?fm(t.innerType):!0;case"union":return t.options?t.options.some(fm):!0;case"intersection":return!t.left||!t.right||fm(t.left)||fm(t.right);case"pipe":return t.out?fm(t.out):!0;default:return!0}}function pce(e,t,r,n,o=!0){let i=r._zod.def,a=o?Se(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${n} !== null) {`),e.indented(s=>{let l=Lt(s,t,i.innerType,n,o);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function hce(e,t,r,n,o=!0){let i=r._zod.def;e.write(`if (!Array.isArray(${n})) return INVALID;`);let a=o?Se(t):null,s=Se(t),l=Se(t);return a&&e.write(`const ${a} = new Array(${n}.length);`),e.write(`for (let ${s} = 0; ${s} < ${n}.length; ${s}++) {`),e.indented(c=>{c.write(`const ${l} = ${n}[${s}];`);let u=lo(c,t,i.element,l,o);a&&u!==null&&c.write(`${a}[${s}] = ${u};`)}),e.write("}"),a}function gce(e,t,r,n){let i=r._zod.def.values;if(i.length!==1){let s=$e(t,new Set(i));return e.write(`if (!${s}.has(${n})) return INVALID;`),n}let a=i[0];if(typeof a=="number"&&Number.isNaN(a)){let s=$e(t,new Set(i));return e.write(`if (!${s}.has(${n})) return INVALID;`),n}if(typeof a=="string")e.write(`if (${n} !== ${Ro(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${n} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${n} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${n} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${n} !== ${a}n) return INVALID;`);else throw new Ze(`literal type ${typeof a}`);return n}function vce(e,t,r,n){let o=r._zod.values;if(!o)throw new Ze("enum schema without enumerated values");let i=$e(t,o);return e.write(`if (!${i}.has(${n})) return INVALID;`),n}function yH(e,t,r,n){let o=r._zod.def;return Lt(e,t,o.innerType,n)}function xce(e,t,r,n){let o=r._zod.def,a=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!a)return Lt(e,t,o.innerType,n);let l=$e(t,a),c=Se(t);return e.write(`let ${c} = ${n};`),e.write(`if (${n} === undefined) ${c} = ${l}();`),Lt(e,t,o.innerType,c)}let s=Se(t);if(a){let l=$e(t,a),c=$e(t,zg);e.write(`let ${s};`),e.write(`if (${n} === undefined) {`),e.indented(u=>{u.write(`${s} = ${c}(${l}());`)}),e.write("} else {"),e.indented(u=>{let d=Lt(u,t,o.innerType,n);u.write(`${s} = ${d} === undefined ? ${c}(${l}()) : ${d};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${n} !== undefined) {`),e.indented(l=>{let c=Lt(l,t,o.innerType,n);l.write(`${s} = ${c};`)}),e.write("}");return s}function bce(e,t,r,n){let o=r._zod.def,i=Lt(e,t,o.innerType,n),a=Se(t);return e.write(`const ${a} = ${i};`),e.write(`if (${a} === undefined) return INVALID;`),a}function yce(e,t,r,n){let o=r._zod.def,i=o.items,a=o.rest;e.write(`if (!Array.isArray(${n})) return INVALID;`);let s=_H(i,"optin"),l=_H(i,"optout");a?e.write(`if (${n}.length < ${s}) return INVALID;`):e.write(`if (${n}.length < ${s} || ${n}.length > ${i.length}) return INVALID;`);let c=Se(t);e.write(`const ${c} = [];`);for(let u=0;u<i.length;u++){let d=i[u];if(u>=l)e.write(`if (${c}.length === ${u}) {`),e.indented(f=>{f.write(`if (${u} < ${n}.length) {`),f.indented(m=>{let p=Se(t);m.write(`const ${p} = ${n}[${u}];`);let h=lo(m,t,d,p);m.write(`${c}[${u}] = ${h};`)}),f.write("} else {"),f.indented(m=>{if(pT(d)){m.write(`${c}.length = ${u};`);return}let p=Se(t),h=Se(t);m.write(`const ${p} = undefined;`),m.write(`const ${h} = (() => {`),m.indented(y=>{let v=lo(y,t,d,p);y.write(`return ${v};`)}),m.write("})();"),m.write(`if (${h} === INVALID || ${h} === undefined) ${c}.length = ${u};`),m.write(`else ${c}[${u}] = ${h};`)}),f.write("}")}),e.write("}");else{let f=Se(t);e.write(`const ${f} = ${n}[${u}];`);let m=lo(e,t,d,f);e.write(`${c}[${u}] = ${m};`)}}if(a){let u=Se(t),d=Se(t);e.write(`for (let ${u} = ${i.length}; ${u} < ${n}.length; ${u}++) {`),e.indented(f=>{f.write(`const ${d} = ${n}[${u}];`);let m=lo(f,t,a,d);f.write(`${c}[${u}] = ${m};`)}),e.write("}")}return c}function _H(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function _ce(e,t,r,n){let o=r._zod.def,i=o.options;if(o.discriminator)return Ice(e,t,o,n);if(o.inclusive===!1)throw new Ze("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),n;if(i.length===1)return Lt(e,t,i[0],n);if(i.every(l=>l._zod.def.type==="literal"&&!l._zod.def.checks?.length)){let l=new Set(i.flatMap(u=>u._zod.def.values)),c=$e(t,l);return e.write(`if (!${c}.has(${n})) return INVALID;`),n}let s=Se(t);e.write(`let ${s};`);for(let l=0;l<i.length;l++){let c=i[l];l===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(u=>{let d=Lt(u,t,c,n);u.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function Ice(e,t,r,n){if(r.unionFallback)throw new Ze("discriminated union with unionFallback");if(r.options.length===0)return e.write("return INVALID;"),n;let o=Se(t),i=Se(t);e.write(`const ${o} = ${n}?.[${Ro(r.discriminator)}];`),e.write(`let ${i};`);let a=!0,s=new Set;for(let l of r.options){let c=l._zod.propValues?.[r.discriminator];if(!c||c.size===0)throw new Ze("discriminated union option without static discriminator values");for(let f of c){if(s.has(f))throw new Ze(`duplicate discriminator value ${String(f)}`);s.add(f)}let u=Array.from(c,f=>wce(t,o,f)),d=a?"if":"else if";e.write(`${d} (${u.join(" || ")}) {`),e.indented(f=>{let m=Lt(f,t,l,n);f.write(`${i} = ${m};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),i}function wce(e,t,r){if(typeof r=="string")return`${t} === ${Ro(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${t})`:`${t} === ${r}`;if(typeof r=="boolean")return`${t} === ${r}`;if(r===null)return`${t} === null`;if(r===void 0)return`${t} === undefined`;if(typeof r=="bigint")return`${t} === ${r}n`;if(typeof r=="symbol"){let n=$e(e,r);return`${t} === ${n}`}throw new Ze(`literal discriminator value ${String(r)}`)}function Sce(e,t,r,n){let o=r._zod.def;t.definite=!1;let i=lo(e,t,o.left,n),a=lo(e,t,o.right,n),s=$e(t,cm),l=Se(t);return e.write(`const ${l} = ${s}(${i}, ${a});`),e.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function kce(e,t,r,n){let o=r._zod.def,i=$e(t,Gn);e.write(`if (!${i}(${n})) return INVALID;`);let a=Se(t),s=Se(t),l=Se(t);e.write(`const ${a} = {};`);let c=o,u=c.partial?void 0:o.keyType._zod.values;if(u){let m=[];for(let h of u){if(!(typeof h=="string"||typeof h=="number"||typeof h=="symbol"))throw new Ze(`record key value ${String(h)}`);let y=typeof h=="number"?h.toString():h;if(y==="__proto__")throw new Ze('record key "__proto__"');m.push(y);let v=$e(t,h),g=Lt(e,t,o.keyType,v),x=Se(t);e.write(`const ${x} = ${n}[${Cce(t,y)}];`);let _=lo(e,t,o.valueType,x);e.write(`${a}[${g}] = ${_};`)}let p=$e(t,new Set(m));return e.write(`for (const ${s} in ${n}) {`),e.indented(h=>{h.write(`if (${p}.has(${s})) continue;`),c.mode==="loose"?h.write(`if (${s} !== "__proto__") ${a}[${s}] = ${n}[${s}];`):h.write("return INVALID;")}),e.write("}"),a}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let m=o.mode==="loose",p=Dw(o.keyType);p.definite===!1&&(t.definite=!1);let h=$e(t,p),y=$e(t,ss),v=Se(t);return IH(e,t,n,s,g=>{g.write(`let ${v} = ${h}(${s});`),g.write(`if (${v} === INVALID && typeof ${s} === "string" && ${y}.test(${s})) ${v} = ${h}(Number(${s}));`),m?g.write(`if (${v} === INVALID) { ${a}[${s}] = ${n}[${s}]; continue; }`):g.write(`if (${v} === INVALID) return INVALID;`),g.write(`if (${v} === "__proto__") continue;`);let x=Se(t);g.write(`const ${x} = ${n}[${s}];`);let _=lo(g,t,o.valueType,x);g.write(`${a}[${v}] = ${_};`)}),a}return IH(e,t,n,s,m=>{m.write(`const ${l} = ${n}[${s}];`);let p=lo(m,t,o.valueType,l);m.write(`${a}[${s}] = ${p};`)},"return INVALID;"),a}function IH(e,t,r,n,o,i){let a=$e(t,Object.prototype.propertyIsEnumerable),s=Se(t),l=Se(t),c=Se(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${r});`),e.write(`const ${l} = Object.getOwnPropertyNames(${r});`),e.write(`for (let ${c} = 0; ${c} < ${l}.length; ${c}++) {`),e.indented(u=>{u.write(`const ${n} = ${l}[${c}];`),u.write(`if (${n} === "__proto__" || !${a}.call(${r}, ${n})) continue;`),o(u)}),e.write("}"),e.write(`for (let ${c} = 0; ${c} < ${s}.length; ${c}++) {`),e.indented(u=>{u.write(`const ${n} = ${s}[${c}];`),u.write(`if (!${a}.call(${r}, ${n})) continue;`),i?u.write(i):o(u)}),e.write("}")}function Cce(e,t){return typeof t=="string"?Ro(t):$e(e,t)}function Pce(e,t,r,n){let o=r._zod.def;e.write(`if (!(${n} instanceof Map)) return INVALID;`);let i=Se(t),a=Se(t),s=Se(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${a}, ${s}] of ${n}) {`),e.indented(l=>{let c=Lt(l,t,o.keyType,a),u=Lt(l,t,o.valueType,s);l.write(`${i}.set(${c}, ${u});`)}),e.write("}"),i}function $ce(e,t,r,n){let o=r._zod.def;e.write(`if (!(${n} instanceof Set)) return INVALID;`);let i=Se(t),a=Se(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${a} of ${n}) {`),e.indented(s=>{let l=Lt(s,t,o.valueType,a);s.write(`${i}.add(${l});`)}),e.write("}"),i}function Rce(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Dce(e,t,r,n){e.write(`if (typeof ${n} !== "string") return INVALID;`);let o=r._zod.pattern;if(o){let i=$e(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${n})) return INVALID;`)}return n}function Ece(e,t,r,n){let o=r._zod.def,i=Iu(t,o.getter),a=$e(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(l=>{l.write(`const inner = ${i}();`),l.write(`${a}.parser = function(input) {`),l.indented(c=>{c.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),c.write("return result.issues.length === 0 ? result.value : INVALID;")}),l.write("};")}),e.write("}");let s=Se(t);return e.write(`const ${s} = ${a}.parser(${n});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function Tce(e,t,r,n){let o=r._zod.def,i=Lt(e,t,o.in,n);if(o.transform){if(wu(o.transform))throw new Si("z.compile: async transforms in pipes are not supported");let a=o.transform,l=Iu(t,u=>{let d={value:u,issues:[],addIssue:gT},f=a(u,d);return f instanceof Promise?Eo:d.issues.length===0?f:Eo}),c=Se(t);return e.write(`const ${c} = ${l}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),Lt(e,t,o.out,c)}else return Lt(e,t,o.out,i)}function wu(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function Oce(e,t,r,n){let o=r._zod.def;if(o.fn){if(wu(o.fn))throw new Si("z.compile: async custom predicates are not supported");let i=Iu(t,o.fn),a=$e(t,mT),s=Se(t);e.write(`const ${s} = ${i}(${n});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new Ze("custom schema without a predicate function");return n}function zce(e,t,r){let n=e._zod.run({value:r,issues:[]},{});if(n&&typeof n.then=="function")return Eo;let o=n;return o.issues.length===0?o.value:t()}function Ace(e,t,r,n){let o=r._zod.def;if(!o.catchValue[FI])throw new Ze("catch with a callback (only a constant catch value compiles)",!1);let i=Se(t);e.write(`let ${i} = (() => {`),e.indented(c=>{let u=lo(c,t,o.innerType,n);c.write(`return ${u};`)}),e.write("})();");let a=$e(t,o.innerType),s=Iu(t,o.catchValue),l=$e(t,zce);return e.write(`if (${i} === INVALID) {`),e.indented(c=>{c.write(`${i} = ${l}(${a}, ${s}, ${n});`),c.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function Fce(e,t,r,n){let o=r._zod.def;if(o.transform){if(wu(o.transform))throw new Si("z.compile: async transforms are not supported");let i=o.transform,s=Iu(t,c=>{let u={value:c,issues:[],addIssue:gT},d=i(c,u);return d instanceof Promise?Eo:u.issues.length===0?d:Eo}),l=Se(t);return e.write(`const ${l} = ${s}(${n});`),e.write(`if (${l} === INVALID) return INVALID;`),l}return n}function Ew(e){return e.checks&&(e.checks=[...e.checks]),e}function vT(e,t){return new e(Ew({type:"string",...oe(t)}))}function xT(e,t){return new e(Ew({type:"string",coerce:!0,...oe(t)}))}function Tw(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(t)})}function Ow(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(t)})}function zw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(t)})}function Aw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(t)})}function Fw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(t)})}function Nw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(t)})}function uv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(t)})}function Bw(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(t)})}function Lw(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(t)})}function Mw(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(t)})}function jw(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(t)})}function Uw(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(t)})}function Vw(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(t)})}function Hw(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(t)})}function Ww(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(t)})}function Zw(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(t)})}function bT(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...oe(t)})}function qw(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(t)})}function Kw(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(t)})}function Gw(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(t)})}function Xw(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(t)})}function Qw(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(t)})}function yT(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...oe(t)})}function _T(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...oe(t)})}function Jw(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(t)})}var IT={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function dv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(t)})}function fv(e,t){return new e({type:"string",format:"date",check:"string_format",...oe(t)})}function mv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(t)})}function pv(e,t){return new e({type:"string",format:"duration",check:"string_format",...oe(t)})}function wT(e,t){return new e(Ew({type:"number",checks:[],...oe(t)}))}function ST(e,t){return new e(Ew({type:"number",coerce:!0,checks:[],...oe(t)}))}function kT(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...oe(t)})}function CT(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...oe(t)})}function PT(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...oe(t)})}function $T(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...oe(t)})}function RT(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...oe(t)})}function DT(e,t){return new e({type:"boolean",...oe(t)})}function ET(e,t){return new e({type:"boolean",coerce:!0,...oe(t)})}function TT(e,t){return new e({type:"bigint",...oe(t)})}function OT(e,t){return new e({type:"bigint",coerce:!0,...oe(t)})}function zT(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...oe(t)})}function AT(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...oe(t)})}function FT(e,t){return new e({type:"symbol",...oe(t)})}function NT(e,t){return new e({type:"undefined",...oe(t)})}function BT(e,t){return new e({type:"null",...oe(t)})}function LT(e){return new e({type:"any"})}function MT(e){return new e({type:"unknown"})}function jT(e,t){return new e({type:"never",...oe(t)})}function UT(e,t){return new e({type:"void",...oe(t)})}function VT(e,t){return new e({type:"date",...oe(t)})}function HT(e,t){return new e({type:"date",coerce:!0,...oe(t)})}function WT(e,t){return new e({type:"nan",...oe(t)})}function ua(e,t){return new QI({check:"less_than",...oe(t),value:e,inclusive:!1})}function bn(e,t){return new QI({check:"less_than",...oe(t),value:e,inclusive:!0})}function da(e,t){return new JI({check:"greater_than",...oe(t),value:e,inclusive:!1})}function yn(e,t){return new JI({check:"greater_than",...oe(t),value:e,inclusive:!0})}function Yw(e){return da(0,e)}function e0(e){return ua(0,e)}function t0(e){return bn(0,e)}function r0(e){return yn(0,e)}function El(e,t){return new RD({check:"multiple_of",...oe(t),value:e})}function Tl(e,t){return new TD({check:"max_size",...oe(t),maximum:e})}function fa(e,t){return new OD({check:"min_size",...oe(t),minimum:e})}function Su(e,t){return new zD({check:"size_equals",...oe(t),size:e})}function ku(e,t){return new AD({check:"max_length",...oe(t),maximum:e})}function ls(e,t){return new FD({check:"min_length",...oe(t),minimum:e})}function Cu(e,t){return new ND({check:"length_equals",...oe(t),length:e})}function mm(e,t){return new BD({check:"string_format",format:"regex",...oe(t),pattern:e})}function pm(e){return new LD({check:"string_format",format:"lowercase",...oe(e)})}function hm(e){return new MD({check:"string_format",format:"uppercase",...oe(e)})}function gm(e,t){return new jD({check:"string_format",format:"includes",...oe(t),includes:e})}function vm(e,t){return new UD({check:"string_format",format:"starts_with",...oe(t),prefix:e})}function xm(e,t){return new VD({check:"string_format",format:"ends_with",...oe(t),suffix:e})}function o0(e,t,r){return new HD({check:"property",property:e,schema:t,...oe(r)})}function bm(e,t){return new WD({check:"properties",shape:e,...oe(t)})}function ym(e,t){return new ZD({check:"mime_type",mime:e,...oe(t)})}function ki(e){return new qD({check:"overwrite",tx:e})}function _m(e){return ki(t=>t.normalize(e))}function Im(){return ki(e=>e.trim())}function wm(){return ki(e=>e.toLowerCase())}function Sm(){return ki(e=>e.toUpperCase())}function km(){return ki(e=>TR(e))}function ZT(e,t,r){return new e({type:"array",element:t,...oe(r)})}function Nce(e,t,r){return new e({type:"union",options:t,...oe(r)})}function Bce(e,t,r){return new e({type:"union",options:t,inclusive:!1,...oe(r)})}function Lce(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...oe(n)})}function Mce(e,t,r){return new e({type:"intersection",left:t,right:r})}function jce(e,t,r,n){let o=r instanceof Te,i=o?n:r,a=o?r:null;return new e({type:"tuple",items:t,rest:a,...oe(i)})}function Uce(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...oe(n)})}function Vce(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...oe(n)})}function Hce(e,t,r){return new e({type:"set",valueType:t,...oe(r)})}function Wce(e,t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:n,...oe(r)})}function Zce(e,t,r){return new e({type:"enum",entries:t,...oe(r)})}function qce(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...oe(r)})}function qT(e,t){return new e({type:"file",...oe(t)})}function Kce(e,t){return new e({type:"transform",transform:t})}function Gce(e,t){return new e({type:"optional",innerType:t})}function Xce(e,t){return new e({type:"nullable",innerType:t})}function Qce(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():zg(r)}})}function Jce(e,t,r){return new e({type:"nonoptional",innerType:t,...oe(r)})}function Yce(e,t){return new e({type:"success",innerType:t})}function eue(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:BR(r)})}function tue(e,t,r){return new e({type:"pipe",in:t,out:r})}function rue(e,t){return new e({type:"readonly",innerType:t})}function oue(e,t,r){return new e({type:"template_literal",parts:t,...oe(r)})}function nue(e,t){return new e({type:"lazy",getter:t})}function iue(e,t){return new e({type:"promise",innerType:t})}function KT(e,t,r){let n=oe(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function GT(e,t,r){return new e({type:"custom",check:"custom",fn:t,...oe(r)})}function XT(e,t){let r=CH(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(rm(o,n.value,r._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),n.issues.push(rm(i))}},e(n.value,n)),t);return r}function CH(e,t){let r=new ft({check:"custom",...oe(t)});return r._zod.check=e,r}function QT(e){let t=new ft({check:"describe"});return t._zod.onattach=[r=>{let n=Wr.get(r)??{};Wr.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function JT(e){let t=new ft({check:"meta"});return t._zod.onattach=[r=>{let n=Wr.get(r)??{};Wr.add(r,{...n,...e})}],t._zod.check=()=>{},t}function YT(e,t){let r=oe(t),n=r.truthy??["true","1","yes","on","y","enabled"],o=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(m=>typeof m=="string"?m.toLowerCase():m),o=o.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(n),a=new Set(o),s=e.Codec??ov,l=e.Boolean??tv,c=e.String??bu,u=new c({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:u,out:d,transform:((m,p)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),i.has(h)?!0:a.has(h)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:p.value,inst:f,continue:!1}),{})}),reverseTransform:((m,p)=>m===!0?n[0]||"true":o[0]||"false"),error:r.error});return f._zod.bag.truthy=n,f._zod.bag.falsy=o,f._zod.bag.case=r.case??"insensitive",f}function Pu(e,t,r,n={}){let o=oe(n),i={check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...o};return r instanceof RegExp&&(i.pattern=r),new e(i)}function hv(e,...t){for(let r of t)for(let n of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Hr(e,n,r[n]);return e}function Ol(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Wr,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function vr(e,t,r,n,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:n.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(r,i),!0}function at(e,t,r={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let f=a.schema,m=t.processors[o.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);m(e,t,f,u)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),at(d,t,u),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&hv(a.schema,l),t.io==="input"&&To(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function PH(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function zl(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let n=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=n.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,a[0])}}let o=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,f=e.external.uri??(p=>p);if(d)return{ref:f(d)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${PH(m)}`}}let l="#",c=`${l}/${s}/`;if(a[1]===r&&!a[1].schema.id)return{ref:l};let u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+PH(u)}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=o(a);s.def={...s.schema},c&&(s.defId=c);let u=s.schema;for(let d in u)delete u[d];u.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
156
+
157
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}s.count>1&&e.reused==="ref"&&i(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function DH(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let n of t){if(!n||typeof n!="object")return;DH(n);let o=Object.keys(n);if(o.length!==1||o[0]!=="type")return;let i=n.type;for(let a of Array.isArray(i)?i:[i]){if(typeof a!="string")return;r.includes(a)||r.push(a)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var EH=new Set(["type","properties","required","additionalProperties"]),$H=["oneOf","anyOf"];function RH(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function eO(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let a in i)if(!EH.has(a))return null;t.push(i)}let r={},n=new Set;for(let i of t){for(let a in i.properties){if(Object.prototype.hasOwnProperty.call(r,a))continue;let s=[];for(let c of t){let u=c.properties?.[a]??RH(c);u!=null&&(s.some(d=>JSON.stringify(d)===JSON.stringify(u))||s.push(u))}let l=s.length===1?s[0]:eO(s)??{allOf:s};Hr(r,a,l)}for(let a of i.required??[])n.add(a)}let o={type:"object",properties:r};if(n.size&&(o.required=[...n]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let a of t){let s=RH(a);s&&!i.some(l=>JSON.stringify(l)===JSON.stringify(s))&&i.push(s)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function aue(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of EH)if(o in e)return;let r=t.filter(o=>$H.some(i=>Array.isArray(o[i]))),n=null;if(!r.length)n=eO(t);else{let o=r[0],i=$H.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;let a=t.filter(l=>l!==o),s=o[i].map(l=>eO([...a,l]));if(s.some(l=>!l))return;n={[i]:s}}n&&(delete e.allOf,hv(e,n))}function Al(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s=>{let l=e.seen.get(s);if(l.ref===null)return;let c=l.def??l.schema,u={...c},d=l.ref;if(l.ref=null,d){n(d);let m=e.seen.get(d),p=m.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):hv(c,p),hv(c,u),s._zod.parent===d)for(let y in c)y==="$ref"||y==="allOf"||y in u||delete c[y];if(p.$ref&&m.def)for(let y in c)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(c[y])===JSON.stringify(m.def[y])&&delete c[y]}let f=s._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let p in c)p==="$ref"||p==="allOf"||p in m.def&&JSON.stringify(c[p])===JSON.stringify(m.def[p])&&delete c[p]}e.override({zodSchema:s,jsonSchema:c,path:l.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())n(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())DH(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let l of e.seen.values())for(let c of[l.schema,l.def]){let u=c?.allOf;if(!Array.isArray(u))continue;let d=s.get(u);d?d.push(c):s.set(u,[c])}for(let l of e.intersections)for(let c of s.get(l)??[])aue(c)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(s)}hv(o,r.defId?r.schema:r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,Hr(a,l.defId,l.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?o.$defs=a:o.definitions=a);try{let s=JSON.parse(JSON.stringify(o));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Cm(t,"input",e.processors),output:Cm(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function To(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return To(n.element,r);if(n.type==="set")return To(n.valueType,r);if(n.type==="lazy")return To(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault"||n.type==="catch")return To(n.innerType,r);if(n.type==="intersection")return To(n.left,r)||To(n.right,r);if(n.type==="record"||n.type==="map")return To(n.keyType,r)||To(n.valueType,r);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:To(n.in,r)||To(n.out,r);if(n.type==="object"){for(let o in n.shape)if(To(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(let o of n.options)if(To(o,r))return!0;return!1}if(n.type==="tuple"){for(let o of n.items)if(To(o,r))return!0;return!!(n.rest&&To(n.rest,r))}return!1}var tO=(e,t={})=>r=>{let n=Ol({...r,processors:t});return at(e,n),zl(n,e),Al(n,e)},Cm=(e,t,r={})=>n=>{let{libraryOptions:o,target:i}=n??{},a=Ol({...o??{},target:i,io:t,processors:r});return at(e,a),zl(a,e),Al(a,e)};var Pm=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},$m=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},TH=(e,t)=>{Pm(e,"minimum",t),$m(e,"maximum",t)},FH=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},NH=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},BH=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},LH=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},OH=(e,t)=>Pm(e,"minimum",t.minimum),zH=(e,t)=>$m(e,"maximum",t.maximum),AH=e=>(t,r)=>{LH(t,r.format);let[n,o]=e[r.format];Pm(t,"minimum",n),$m(t,"maximum",o)},sue={greater_than:(e,t)=>Pm(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>$m(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>FH(e,t.value),number_format:AH(Fg),bigint_format:AH(Ng),min_length:OH,max_length:zH,length_equals:(e,t)=>TH(e,t.length),min_size:OH,max_size:zH,size_equals:(e,t)=>TH(e,t.size),string_format:(e,t)=>{LH(e,t.format),t.pattern&&NH(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>BH(e,t.mime)};function xr(e){let t={},r=e._zod.def,n=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let i of n)sue[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Pm(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Pm(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&$m(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&$m(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&FH(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&BH(t,o.mime);for(let i of o.patterns??[])NH(t,i);return t}var lue={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},cue=new Map([[lw,cD],[ev,uD]]),MH=e=>cue.get(e)??e,nO=(e,t,r,n)=>{let o=r;o.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c,laxFormat:u}=xr(e);if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=lue[s]??s,o.format===""&&delete o.format,(s==="time"||u)&&delete o.format),c&&(o.contentEncoding=c),l&&l.size>0){let d=[...l].map(MH);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},iO=(e,t,r,n)=>{let o=r,{minimum:i,maximum:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:c,isInt:u}=xr(e);o.type=u?"integer":"number";let d=typeof c=="number"&&c>=(i??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(d?m?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof i=="number"&&(o.minimum=i),f?m?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof a=="number"&&(o.maximum=a),s){let p=new Set;for(let v of s)Number.isFinite(v)&&v!==0?p.add(Math.abs(v)):vr(e,t,o,n,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);let[h,...y]=p;h!==void 0&&(o.multipleOf=h),y.length&&(o.allOf=[...o.allOf??[],...y.map(v=>({multipleOf:v}))])}},aO=(e,t,r,n)=>{r.type="boolean"},sO=(e,t,r,n)=>{vr(e,t,r,n,"BigInt cannot be represented in JSON Schema")},lO=(e,t,r,n)=>{vr(e,t,r,n,"Symbols cannot be represented in JSON Schema")},cO=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},uO=(e,t,r,n)=>{vr(e,t,r,n,"Undefined cannot be represented in JSON Schema")},dO=(e,t,r,n)=>{vr(e,t,r,n,"Void cannot be represented in JSON Schema")},fO=(e,t,r,n)=>{r.not={}},mO=(e,t,r,n)=>{},pO=(e,t,r,n)=>{},hO=(e,t,r,n)=>{vr(e,t,r,n,"Date cannot be represented in JSON Schema")},gO=(e,t,r,n)=>{let o=e._zod.def,i=Jf(o.entries);if(i.length===0){r.not={};return}i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},vO=(e,t,r,n)=>{let o=e._zod.def;if(o.values.length===0){r.not={};return}let i=[];for(let a of o.values)if(a===void 0){if(vr(e,t,r,n,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(vr(e,t,r,n,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},xO=(e,t,r,n)=>{vr(e,t,r,n,"NaN cannot be represented in JSON Schema")},bO=(e,t,r,n)=>{let o=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},yO=(e,t,r,n)=>{let o=r;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:a,mime:s}=xr(e);i!==void 0&&(o.minLength=i),a!==void 0&&(o.maxLength=a),s&&(s.length===0?o.not={}:s.length===1?o.contentMediaType=s[0]:o.anyOf=s.map(l=>({contentMediaType:l})))},_O=(e,t,r,n)=>{r.type="boolean"},IO=(e,t,r,n)=>{vr(e,t,r,n,"Custom types cannot be represented in JSON Schema")},wO=(e,t,r,n)=>{vr(e,t,r,n,"Function types cannot be represented in JSON Schema")},SO=(e,t,r,n)=>{vr(e,t,r,n,"Transforms cannot be represented in JSON Schema")},kO=(e,t,r,n)=>{vr(e,t,r,n,"Map cannot be represented in JSON Schema")},CO=(e,t,r,n)=>{vr(e,t,r,n,"Set cannot be represented in JSON Schema")},PO=(e,t,r,n)=>{let o=r,i=e._zod.def,{minimum:a,maximum:s}=xr(e);typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=at(i.element,t,{...n,path:[...n.path,"items"]})};function gv(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?gv(t.out):t.type==="catch"?gv(t.innerType):e._zod.optin}var $O=(e,t,r,n)=>{let o=r,i=e._zod.def,a=i.shape;if(Object.getOwnPropertySymbols(a).length&&vr(e,t,o,n,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let c in a)Hr(o.properties,c,at(a[c],t,{...n,path:[...n.path,"properties",c]}));let l=[];for(let c of Object.keys(a)){let u=i.shape[c];(t.io==="input"?gv(u)===void 0:u._zod.optout===void 0)&&l.push(c)}l.length>0&&(o.required=l),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=at(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},i0=(e,t,r,n)=>{let o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,l)=>at(s,t,{...n,path:[...n.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},RO=(e,t,r,n)=>{let o=e._zod.def,i=at(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=at(o.right,t,{...n,path:[...n.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l,t.intersections.push(l)},DO=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((h,y)=>at(h,t,{...n,path:[...n.path,a,y]})),c=i.rest?at(i.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,u=i.items.length;for(;u>0;){let h=i.items[u-1];if(!(t.io==="input"?gv(h)!==void 0:h._zod.optout==="optional"))break;u--}let d=i.items.length,f=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=l,f?o.items=!1:c&&(o.items=c),u>0&&(o.minItems=u),f&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:l},c&&o.items.anyOf.push(c),u>0&&(o.minItems=u),f&&(o.maxItems=d)):(o.items=l,f?o.additionalItems=!1:c&&(o.additionalItems=c),u>0&&(o.minItems=u),f&&(o.maxItems=d));let{minimum:m,maximum:p}=xr(e);typeof m=="number"&&(o.minItems=m),typeof p=="number"&&(o.maxItems=p)};function rO(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let p=e.get(t)?.def;if(!p)return t;let h=rO(e,p,r);return h===p?t:h}for(let p of["anyOf","oneOf"]){let h=t[p];if(!Array.isArray(h))continue;let y=h.map(v=>rO(e,v,r));y.some((v,g)=>v!==h[g])&&(t={...t,[p]:y})}let n=Array.isArray(t.type)?t.type:[t.type],o=!n.includes("string")&&n.some(p=>p==="number"||p==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(p=>typeof p=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:l,exclusiveMaximum:c,multipleOf:u,format:d,id:f,...m}=t;return m.enum?m.enum=m.enum.map(p=>typeof p=="number"?String(p):p):typeof m.const=="number"&&(m.const=String(m.const)),o&&(m.type="string",i||(m.pattern=(n.includes("number")?ss:qg).source)),m}var oO=new WeakMap;function uue(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let r=new Map;for(let n of oO.get(e)??[]){let o=e.seen.get(n),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let a=rO(t,i,new Set);a!==i&&r.set(i,a)}if(r.size)for(let n of e.seen.values())for(let o of[n.schema,n.def]){let i=o&&r.get(o.propertyNames);i&&(o.propertyNames=i)}}var EO=(e,t,r,n)=>{let o=r,i=e._zod.def;o.type="object";let a=i.keyType,s=xr(a).patterns;if(i.mode==="loose"&&s&&s.size>0){let u=at(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});o.patternProperties={};for(let d of s)Hr(o.patternProperties,MH(d).source,u)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=at(i.keyType,t,{...n,path:[...n.path,"propertyNames"]});let u=oO.get(t);u||(u=[],oO.set(t,u),t.deferred.push(()=>uue(t))),u.push(e)}o.additionalProperties=at(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]})}let l=a._zod.values,c=t.io==="input"&&gv(i.valueType)!==void 0;if(l&&!i.partial&&!c){let u=[...l].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(o.required=u.map(String))}},TO=(e,t,r,n)=>{let o=e._zod.def,i=at(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},OO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},zO=Symbol();function jH(e,t,r,n,o){let i=!1,a=JSON.stringify(e,(s,l)=>typeof l!="bigint"?l:(i=!0,null));return i?(vr(t,r,n,o,"BigInt defaults cannot be represented in JSON Schema"),zO):JSON.parse(a)}var AO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType;let a=jH(o.defaultValue,e,t,r,n);a!==zO&&(r.default=a)},FO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let a=jH(o.defaultValue,e,t,r,n);a!==zO&&(r._prefault=a)},NO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{vr(e,t,r,n,"Dynamic catch values are not supported in JSON Schema");return}r.default=a},BO=(e,t,r,n)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?o.out:o.in:o.out;at(a,t,n);let s=t.seen.get(e);s.ref=a},LO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},MO=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},a0=(e,t,r,n)=>{let o=e._zod.def;at(o.innerType,t,n);let i=t.seen.get(e);i.ref=o.innerType},jO=(e,t,r,n)=>{let o=e._zod.innerType;at(o,t,n);let i=t.seen.get(e);i.ref=o},n0={string:nO,number:iO,boolean:aO,bigint:sO,symbol:lO,null:cO,undefined:uO,void:dO,never:fO,any:mO,unknown:pO,date:hO,enum:gO,literal:vO,nan:xO,template_literal:bO,file:yO,success:_O,custom:IO,function:wO,transform:SO,map:kO,set:CO,array:PO,object:$O,union:i0,intersection:RO,tuple:DO,record:EO,nullable:TO,nonoptional:OO,default:AO,prefault:FO,catch:NO,pipe:BO,readonly:LO,promise:MO,optional:a0,lazy:jO};function s0(e,t){if("_idmap"in e){let n=e,o=Ol({...t,processors:n0}),i={};for(let l of n._idmap.entries()){let[c,u]=l;at(u,o)}let a={},s={registry:n,uri:t?.uri,defs:i};o.external=s;for(let l of n._idmap.entries()){let[c,u]=l;zl(o,u),Hr(a,c,Al(o,u))}if(Object.keys(i).length>0){let l=o.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=Ol({...t,processors:n0});return at(e,r),zl(r,e),Al(r,e)}var l0=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ol({processors:n0,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return at(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,zl(this.ctx,t);let n=Al(this.ctx,t),{"~standard":o,...i}=n;return i}};var UH={};var Fm={};xa(Fm,{ZodAny:()=>cz,ZodArray:()=>mz,ZodBase64:()=>P0,ZodBase64URL:()=>$0,ZodBigInt:()=>zm,ZodBigIntFormat:()=>E0,ZodBoolean:()=>Om,ZodCIDRv4:()=>k0,ZodCIDRv6:()=>C0,ZodCUID:()=>x0,ZodCUID2:()=>b0,ZodCatch:()=>zz,ZodCodec:()=>Cv,ZodCreditCard:()=>tz,ZodCustom:()=>Pv,ZodCustomStringFormat:()=>Eu,ZodDate:()=>yv,ZodDefault:()=>$z,ZodDiscriminatedUnion:()=>hz,ZodE164:()=>R0,ZodEmail:()=>p0,ZodEmoji:()=>g0,ZodEnum:()=>Dm,ZodExactOptional:()=>A0,ZodFile:()=>Sz,ZodFunction:()=>Hz,ZodGUID:()=>h0,ZodIBAN:()=>rz,ZodIPv4:()=>w0,ZodIPv6:()=>S0,ZodISODate:()=>Nl,ZodISODateTime:()=>Fl,ZodISODuration:()=>Ll,ZodISOTime:()=>Bl,ZodInstanceOf:()=>qz,ZodIntersection:()=>gz,ZodJWT:()=>D0,ZodKSUID:()=>I0,ZodLazy:()=>jz,ZodLiteral:()=>wz,ZodMAC:()=>ez,ZodMap:()=>_z,ZodNaN:()=>Fz,ZodNanoID:()=>v0,ZodNever:()=>dz,ZodNonOptional:()=>F0,ZodNull:()=>sz,ZodNullable:()=>Pz,ZodNumber:()=>Tm,ZodNumberFormat:()=>Tu,ZodObject:()=>Iv,ZodOptional:()=>Sv,ZodPipe:()=>kv,ZodPrefault:()=>Dz,ZodPreprocess:()=>Nz,ZodPromise:()=>Vz,ZodReadonly:()=>Bz,ZodRecord:()=>Rm,ZodSet:()=>Iz,ZodString:()=>Em,ZodStringFormat:()=>ut,ZodSuccess:()=>Oz,ZodSymbol:()=>iz,ZodTemplateLiteral:()=>Mz,ZodTransform:()=>kz,ZodTuple:()=>xz,ZodType:()=>Ae,ZodULID:()=>y0,ZodURL:()=>bv,ZodUUID:()=>ma,ZodUndefined:()=>az,ZodUnion:()=>wv,ZodUnknown:()=>uz,ZodVoid:()=>fz,ZodXID:()=>_0,ZodXor:()=>pz,_ZodString:()=>m0,_default:()=>Rz,_function:()=>eZ,any:()=>EW,array:()=>_v,base64:()=>dW,base64url:()=>fW,bigint:()=>CW,boolean:()=>nz,catch:()=>Az,check:()=>tZ,cidrv4:()=>cW,cidrv6:()=>uW,codec:()=>XW,creditCard:()=>pW,cuid:()=>tW,cuid2:()=>rW,currencyCode:()=>yW,custom:()=>rZ,date:()=>OW,describe:()=>oZ,discriminatedUnion:()=>LW,e164:()=>mW,email:()=>WH,emoji:()=>YH,enum:()=>O0,exactOptional:()=>Cz,file:()=>ZW,float32:()=>IW,float64:()=>wW,function:()=>eZ,guid:()=>ZH,hash:()=>_W,hex:()=>bW,hostname:()=>xW,httpUrl:()=>JH,iban:()=>hW,instanceof:()=>iZ,int:()=>d0,int32:()=>SW,int64:()=>PW,intersection:()=>vz,invertCodec:()=>QW,ipv4:()=>aW,ipv6:()=>lW,json:()=>sZ,jwt:()=>gW,keyof:()=>zW,ksuid:()=>iW,lazy:()=>Uz,literal:()=>WW,looseObject:()=>NW,looseRecord:()=>jW,mac:()=>sW,map:()=>UW,meta:()=>nZ,nan:()=>GW,nanoid:()=>eW,nativeEnum:()=>HW,never:()=>T0,nonoptional:()=>Tz,null:()=>lz,nullable:()=>xv,nullish:()=>qW,number:()=>oz,object:()=>AW,optional:()=>Ru,partialRecord:()=>MW,pipe:()=>f0,prefault:()=>Ez,preprocess:()=>lZ,promise:()=>YW,readonly:()=>Lz,record:()=>yz,refine:()=>Wz,set:()=>VW,strictObject:()=>FW,string:()=>vv,stringFormat:()=>vW,stringbool:()=>aZ,success:()=>KW,superRefine:()=>Zz,symbol:()=>RW,templateLiteral:()=>JW,transform:()=>z0,tuple:()=>bz,uint32:()=>kW,uint64:()=>$W,ulid:()=>oW,undefined:()=>DW,union:()=>Am,unknown:()=>$u,url:()=>QH,uuid:()=>qH,uuidv4:()=>KH,uuidv6:()=>GH,uuidv7:()=>XH,void:()=>TW,xid:()=>nW,xor:()=>BW});var c0={};xa(c0,{endsWith:()=>xm,gt:()=>da,gte:()=>yn,includes:()=>gm,length:()=>Cu,lowercase:()=>pm,lt:()=>ua,lte:()=>bn,maxLength:()=>ku,maxSize:()=>Tl,mime:()=>ym,minLength:()=>ls,minSize:()=>fa,multipleOf:()=>El,negative:()=>e0,nonnegative:()=>r0,nonpositive:()=>t0,normalize:()=>_m,overwrite:()=>ki,positive:()=>Yw,properties:()=>bm,property:()=>o0,regex:()=>mm,size:()=>Su,slugify:()=>km,startsWith:()=>vm,toLowerCase:()=>wm,toUpperCase:()=>Sm,trim:()=>Im,uppercase:()=>hm});var VH=new WeakSet([Object.prototype,Error.prototype]);function u0(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let n=r(this);return Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),n},set(n){Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0})}})}var HH=(e,t)=>{jg.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);VH.has(r)||(VH.add(r),u0(r,"format",n=>o=>Vg(n,o)),u0(r,"flatten",n=>o=>Ug(n,o)),u0(r,"addIssue",n=>o=>{n.issues.push(o),n.message=JSON.stringify(n.issues,Yf,2)}),u0(r,"addIssues",n=>o=>{n.issues.push(...o),n.message=JSON.stringify(n.issues,Yf,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},fue=z("ZodError",HH),tn=z("ZodError",HH,void 0,{Parent:Error});var UO=om(tn),VO=im(tn),HO=am(tn),WO=sm(tn),ZO=LI(tn),qO=MI(tn),KO=jI(tn),GO=UI(tn),XO=VI(tn),QO=HI(tn),JO=WI(tn),YO=ZI(tn);function pue(){Or.localeError||Jt(Sw())}function Du(){Or.memoizer||Jt({memoizer:sv()})}var Ae=z("ZodType",(e,t)=>(pue(),Te.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(K.mergeDefs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return nt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Wz(e,t))},superRefine(e,t){return this.check(Zz(e,t))},overwrite(e){return this.check(ki(e))},optional(){return Ru(this)},exactOptional(){return Cz(this)},nullable(){return xv(this)},nullish(){return Ru(xv(this))},nonoptional(e){return Tz(this,e)},array(){return _v(this)},or(e){return Am([this,e])},and(e){return vz(this,e)},transform(e){return f0(this,z0(e))},default(e){return Rz(this,e)},prefault(e){return Ez(this,e)},catch(e){return Az(this,e)},pipe(e){return f0(this,e)},readonly(){return Lz(this)},describe(e){let t=this.clone();return Wr.add(t,{description:e}),t},meta(...e){if(e.length===0)return Wr.get(this);let t=this.clone();return Wr.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return K.hide(this,"~standard",{...ow(this),jsonSchema:{input:Cm(this,"input"),output:Cm(this,"output")}})},set"~standard"(e){K.own(this,"~standard",e)},parse:function e(t,r){return UO(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await VO(this,t,r,{callee:e})},safeParse(e,t){return HO(this,e,t)},async safeParseAsync(e,t){return WO(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){K.own(this,"spa",e)},validate(e,t){return Hg(this,e,t)},validateAsync(e,t){return Wg(this,e,t)},encode:function e(t,r){return ZO(this,t,r,{callee:e})},decode:function e(t,r){return qO(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await KO(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await GO(this,t,r,{callee:e})},safeEncode(e,t){return XO(this,e,t)},safeDecode(e,t){return QO(this,e,t)},async safeEncodeAsync(e,t){return JO(this,e,t)},async safeDecodeAsync(e,t){return YO(this,e,t)},toJSONSchema(e){return tO(this,{})(e)},get description(){return Wr.get(this)?.description},get _def(){return this._zod.def}}),m0=z("_ZodString",(e,t)=>{bu.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>nO(e,r,n,o)},K.derived({format:e=>xr(e).format??null,minLength:e=>xr(e).minimum??null,maxLength:e=>xr(e).maximum??null},{regex(...e){return this.check(mm(...e))},includes(...e){return this.check(gm(...e))},startsWith(...e){return this.check(vm(...e))},endsWith(...e){return this.check(xm(...e))},min(...e){return this.check(ls(...e))},max(...e){return this.check(ku(...e))},length(...e){return this.check(Cu(...e))},nonempty(...e){return this.check(ls(1,...e))},lowercase(e){return this.check(pm(e))},uppercase(e){return this.check(hm(e))},trim(){return this.check(Im())},normalize(...e){return this.check(_m(...e))},toLowerCase(){return this.check(wm())},toUpperCase(){return this.check(Sm())},slugify(){return this.check(km())}})),Em=z("ZodString",(e,t)=>{bu.init(e,t),m0.init(e,t)},{email(e){return this.check(Tw(p0,e))},url(e){return this.check(uv(bv,e))},jwt(e){return this.check(Jw(D0,e))},emoji(e){return this.check(Bw(g0,e))},guid(e){return this.check(Ow(h0,e))},uuid(e){return this.check(zw(ma,e))},uuidv4(e){return this.check(Aw(ma,e))},uuidv6(e){return this.check(Fw(ma,e))},uuidv7(e){return this.check(Nw(ma,e))},nanoid(e){return this.check(Lw(v0,e))},cuid(e){return this.check(Mw(x0,e))},cuid2(e){return this.check(jw(b0,e))},ulid(e){return this.check(Uw(y0,e))},base64(e){return this.check(Gw(P0,e))},base64url(e){return this.check(Xw($0,e))},xid(e){return this.check(Vw(_0,e))},ksuid(e){return this.check(Hw(I0,e))},ipv4(e){return this.check(Ww(w0,e))},ipv6(e){return this.check(Zw(S0,e))},cidrv4(e){return this.check(qw(k0,e))},cidrv6(e){return this.check(Kw(C0,e))},e164(e){return this.check(Qw(R0,e))},datetime(e){return this.check(dv(Fl,e))},date(e){return this.check(fv(Nl,e))},time(e){return this.check(mv(Bl,e))},duration(e){return this.check(pv(Ll,e))}});function vv(e){return vT(Em,e)}var ut=z("ZodStringFormat",(e,t)=>{it.init(e,t),m0.init(e,t)}),Fl=z("ZodISODateTime",(e,t)=>{cE.init(e,t),ut.init(e,t)}),Nl=z("ZodISODate",(e,t)=>{uE.init(e,t),ut.init(e,t)}),Bl=z("ZodISOTime",(e,t)=>{dE.init(e,t),ut.init(e,t)}),Ll=z("ZodISODuration",(e,t)=>{fE.init(e,t),ut.init(e,t)}),p0=z("ZodEmail",(e,t)=>{JD.init(e,t),ut.init(e,t)});function WH(e){return Tw(p0,e)}var h0=z("ZodGUID",(e,t)=>{XD.init(e,t),ut.init(e,t)});function ZH(e){return Ow(h0,e)}var ma=z("ZodUUID",(e,t)=>{QD.init(e,t),ut.init(e,t)});function qH(e){return zw(ma,e)}function KH(e){return Aw(ma,e)}function GH(e){return Fw(ma,e)}function XH(e){return Nw(ma,e)}var bv=z("ZodURL",(e,t)=>{tE.init(e,t),ut.init(e,t)});function QH(e){return uv(bv,e)}function JH(e){return uv(bv,{protocol:Zg,hostname:fD,...K.normalizeParams(e)})}var g0=z("ZodEmoji",(e,t)=>{rE.init(e,t),ut.init(e,t)});function YH(e){return Bw(g0,e)}var v0=z("ZodNanoID",(e,t)=>{oE.init(e,t),ut.init(e,t)});function eW(e){return Lw(v0,e)}var x0=z("ZodCUID",(e,t)=>{nE.init(e,t),ut.init(e,t)});function tW(e){return Mw(x0,e)}var b0=z("ZodCUID2",(e,t)=>{iE.init(e,t),ut.init(e,t)});function rW(e){return jw(b0,e)}var y0=z("ZodULID",(e,t)=>{aE.init(e,t),ut.init(e,t)});function oW(e){return Uw(y0,e)}var _0=z("ZodXID",(e,t)=>{sE.init(e,t),ut.init(e,t)});function nW(e){return Vw(_0,e)}var I0=z("ZodKSUID",(e,t)=>{lE.init(e,t),ut.init(e,t)});function iW(e){return Hw(I0,e)}var w0=z("ZodIPv4",(e,t)=>{mE.init(e,t),ut.init(e,t)});function aW(e){return Ww(w0,e)}var ez=z("ZodMAC",(e,t)=>{hE.init(e,t),ut.init(e,t)});function sW(e){return bT(ez,e)}var S0=z("ZodIPv6",(e,t)=>{pE.init(e,t),ut.init(e,t)});function lW(e){return Zw(S0,e)}var k0=z("ZodCIDRv4",(e,t)=>{gE.init(e,t),ut.init(e,t)});function cW(e){return qw(k0,e)}var C0=z("ZodCIDRv6",(e,t)=>{vE.init(e,t),ut.init(e,t)});function uW(e){return Kw(C0,e)}var P0=z("ZodBase64",(e,t)=>{xE.init(e,t),ut.init(e,t)});function dW(e){return Gw(P0,e)}var $0=z("ZodBase64URL",(e,t)=>{bE.init(e,t),ut.init(e,t)});function fW(e){return Xw($0,e)}var R0=z("ZodE164",(e,t)=>{yE.init(e,t),ut.init(e,t)});function mW(e){return Qw(R0,e)}var tz=z("ZodCreditCard",(e,t)=>{_E.init(e,t),ut.init(e,t)});function pW(e){return yT(tz,e)}var rz=z("ZodIBAN",(e,t)=>{IE.init(e,t),ut.init(e,t)});function hW(e){return _T(rz,e)}var D0=z("ZodJWT",(e,t)=>{wE.init(e,t),ut.init(e,t)});function gW(e){return Jw(D0,e)}var Eu=z("ZodCustomStringFormat",(e,t)=>{SE.init(e,t),ut.init(e,t)});function vW(e,t,r={}){return Pu(Eu,e,t,r)}function xW(e){return Pu(Eu,"hostname",dD,e)}function bW(e){return Pu(Eu,"hex",CD,e)}function yW(e){return Pu(Eu,"currency_code",pD,e)}function _W(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,o=Qn[n];if(!o)throw new Error(`Unrecognized hash format: ${n}`);return Pu(Eu,n,o,t)}var Tm=z("ZodNumber",(e,t)=>{mw.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>iO(e,r,n,o),e.isFinite=!0},K.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:r}=xr(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:r}=xr(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:r}=xr(e);return!!t||!!r?.some(Number.isSafeInteger)},format:e=>xr(e).format??null},{gt(e,t){return this.check(da(e,t))},gte(e,t){return this.check(yn(e,t))},min(e,t){return this.check(yn(e,t))},lt(e,t){return this.check(ua(e,t))},lte(e,t){return this.check(bn(e,t))},max(e,t){return this.check(bn(e,t))},int(e){return this.check(d0(e))},safe(e){return this.check(d0(e))},positive(e){return this.check(da(0,e))},nonnegative(e){return this.check(yn(0,e))},negative(e){return this.check(ua(0,e))},nonpositive(e){return this.check(bn(0,e))},multipleOf(e,t){return this.check(El(e,t))},step(e,t){return this.check(El(e,t))},finite(){return this}}));function oz(e){return wT(Tm,e)}var Tu=z("ZodNumberFormat",(e,t)=>{kE.init(e,t),Tm.init(e,t)});function d0(e){return kT(Tu,e)}function IW(e){return CT(Tu,e)}function wW(e){return PT(Tu,e)}function SW(e){return $T(Tu,e)}function kW(e){return RT(Tu,e)}var Om=z("ZodBoolean",(e,t)=>{tv.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>aO(e,r,n,o)});function nz(e){return DT(Om,e)}var zm=z("ZodBigInt",(e,t)=>{pw.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>sO(e,r,n,o)},K.derived({minValue:e=>xr(e).minimum??null,maxValue:e=>xr(e).maximum??null,format:e=>xr(e).format??null},{gte(e,t){return this.check(yn(e,t))},min(e,t){return this.check(yn(e,t))},gt(e,t){return this.check(da(e,t))},lt(e,t){return this.check(ua(e,t))},lte(e,t){return this.check(bn(e,t))},max(e,t){return this.check(bn(e,t))},positive(e){return this.check(da(BigInt(0),e))},negative(e){return this.check(ua(BigInt(0),e))},nonpositive(e){return this.check(bn(BigInt(0),e))},nonnegative(e){return this.check(yn(BigInt(0),e))},multipleOf(e,t){return this.check(El(e,t))}}));function CW(e){return TT(zm,e)}var E0=z("ZodBigIntFormat",(e,t)=>{CE.init(e,t),zm.init(e,t)});function PW(e){return zT(E0,e)}function $W(e){return AT(E0,e)}var iz=z("ZodSymbol",(e,t)=>{PE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>lO(e,r,n,o)});function RW(e){return FT(iz,e)}var az=z("ZodUndefined",(e,t)=>{$E.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>uO(e,r,n,o)});function DW(e){return NT(az,e)}var sz=z("ZodNull",(e,t)=>{RE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>cO(e,r,n,o)});function lz(e){return BT(sz,e)}var cz=z("ZodAny",(e,t)=>{DE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>mO(e,r,n,o)});function EW(){return LT(cz)}var uz=z("ZodUnknown",(e,t)=>{EE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>pO(e,r,n,o)});function $u(){return MT(uz)}var dz=z("ZodNever",(e,t)=>{TE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>fO(e,r,n,o)});function T0(e){return jT(dz,e)}var fz=z("ZodVoid",(e,t)=>{OE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dO(e,r,n,o)});function TW(e){return UT(fz,e)}var yv=z("ZodDate",(e,t)=>{zE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>hO(e,r,n,o),e.min=(r,n)=>e.check(yn(r,n)),e.max=(r,n)=>e.check(bn(r,n))},K.derived({minDate:e=>{let{minimum:t}=xr(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=xr(e);return t?new Date(t):null}},{}));function OW(e){return VT(yv,e)}var mz=z("ZodArray",(e,t)=>{Du(),AE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>PO(e,r,n,o),e.element=t.element},{min(e,t){return this.check(ls(e,t))},nonempty(e){return this.check(ls(1,e))},max(e,t){return this.check(ku(e,t))},length(e,t){return this.check(Cu(e,t))},unwrap(){return this.element}});function _v(e,t){return ZT(mz,e,t)}function zW(e){let t=e._zod.def.shape;return O0(Object.keys(t))}var Iv=z("ZodObject",(e,t)=>{Du(),FE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$O(e,r,n,o),K.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return O0(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(K.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(K.mergeDefs(this._zod.def,{catchall:$u()}))},loose(){return this.clone(K.mergeDefs(this._zod.def,{catchall:$u()}))},strict(){return this.clone(K.mergeDefs(this._zod.def,{catchall:T0()}))},strip(){return this.clone(K.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return K.extend(this,e)},safeExtend(e){return K.safeExtend(this,e)},merge(e){return K.merge(this,e)},pick(e){return K.pick(this,e)},omit(e){return K.omit(this,e)},partial(...e){return K.partial(Sv,this,e[0])},exactPartial(...e){return K.partial(A0,this,e[0],"exactPartial")},required(...e){return K.required(F0,this,e[0])}});function AW(e,t){let r={type:"object",shape:e??{},...K.normalizeParams(t)};return new Iv(r)}function FW(e,t){return new Iv({type:"object",shape:e,catchall:T0(),...K.normalizeParams(t)})}function NW(e,t){return new Iv({type:"object",shape:e,catchall:$u(),...K.normalizeParams(t)})}var wv=z("ZodUnion",(e,t)=>{rv.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>i0(e,r,n,o),e.options=t.options});function Am(e,t){return new wv({type:"union",options:e,...K.normalizeParams(t)})}var pz=z("ZodXor",(e,t)=>{wv.init(e,t),NE.init(e,t),e._zod.processJSONSchema=(r,n,o)=>i0(e,r,n,o),e.options=t.options});function BW(e,t){return new pz({type:"union",options:e,inclusive:!1,...K.normalizeParams(t)})}var hz=z("ZodDiscriminatedUnion",(e,t)=>{wv.init(e,t),LE.init(e,t)});function LW(e,t,r){return new hz({type:"union",options:t,discriminator:e,...K.normalizeParams(r)})}var gz=z("ZodIntersection",(e,t)=>{ME.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>RO(e,r,n,o)});function vz(e,t){return new gz({type:"intersection",left:e,right:t})}var xz=z("ZodTuple",(e,t)=>{Du(),hw.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>DO(e,r,n,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Sv({type:"optional",innerType:t}))})}});function bz(e,t,r){let n=t instanceof Te,o=n?r:t,i=n?t:null;return new xz({type:"tuple",items:e,rest:i,...K.normalizeParams(o)})}var Rm=z("ZodRecord",(e,t)=>{Du(),jE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>EO(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType});function yz(e,t,r){return!t||!t._zod?new Rm({type:"record",keyType:vv(),valueType:e,...K.normalizeParams(t)}):new Rm({type:"record",keyType:e,valueType:t,...K.normalizeParams(r)})}function MW(e,t,r){return new Rm({type:"record",keyType:e,valueType:t,...K.normalizeParams(r),partial:!0})}function jW(e,t,r){return new Rm({type:"record",keyType:e,valueType:t,mode:"loose",...K.normalizeParams(r)})}var _z=z("ZodMap",(e,t)=>{Du(),UE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kO(e,r,n,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(fa(...r)),e.nonempty=r=>e.check(fa(1,r)),e.max=(...r)=>e.check(Tl(...r)),e.size=(...r)=>e.check(Su(...r))});function UW(e,t,r){return new _z({type:"map",keyType:e,valueType:t,...K.normalizeParams(r)})}var Iz=z("ZodSet",(e,t)=>{Du(),VE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>CO(e,r,n,o),e.min=(...r)=>e.check(fa(...r)),e.nonempty=r=>e.check(fa(1,r)),e.max=(...r)=>e.check(Tl(...r)),e.size=(...r)=>e.check(Su(...r))});function VW(e,t){return new Iz({type:"set",valueType:e,...K.normalizeParams(t)})}var Dm=z("ZodEnum",(e,t)=>{HE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,i)=>gO(e,n,o,i),e.enum=t.entries,e.options=[...e._zod.values];let r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Dm({...t,checks:[],...K.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...t.entries};for(let a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Dm({...t,checks:[],...K.normalizeParams(o),entries:i})}});function O0(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Dm({type:"enum",entries:r,...K.normalizeParams(t)})}function HW(e,t){return new Dm({type:"enum",entries:e,...K.normalizeParams(t)})}var wz=z("ZodLiteral",(e,t)=>{WE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>vO(e,r,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function WW(e,t){return new wz({type:"literal",values:Array.isArray(e)?e:[e],...K.normalizeParams(t)})}var Sz=z("ZodFile",(e,t)=>{ZE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>yO(e,r,n,o),e.min=(r,n)=>e.check(fa(r,n)),e.max=(r,n)=>e.check(Tl(r,n)),e.mime=(r,n)=>e.check(ym(Array.isArray(r)?r:[r],n))});function ZW(e){return qT(Sz,e)}var kz=z("ZodTransform",(e,t)=>{Du(),qE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>SO(e,r,n,o),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Dl(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(K.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=r.value),a.inst??(a.inst=e),r.issues.push(K.issue(a))}};let o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function z0(e){return new kz({type:"transform",transform:e})}var Sv=z("ZodOptional",(e,t)=>{gw.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a0(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ru(e){return new Sv({type:"optional",innerType:e})}var A0=z("ZodExactOptional",(e,t)=>{KE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>a0(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Cz(e){return new A0({type:"optional",innerType:e})}var Pz=z("ZodNullable",(e,t)=>{GE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>TO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function xv(e){return new Pz({type:"nullable",innerType:e})}function qW(e){return Ru(xv(e))}var $z=z("ZodDefault",(e,t)=>{XE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>AO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Rz(e,t){return new $z({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():K.shallowClone(t)}})}var Dz=z("ZodPrefault",(e,t)=>{QE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>FO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Ez(e,t){return new Dz({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():K.shallowClone(t)}})}var F0=z("ZodNonOptional",(e,t)=>{JE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>OO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Tz(e,t){return new F0({type:"nonoptional",innerType:e,...K.normalizeParams(t)})}var Oz=z("ZodSuccess",(e,t)=>{YE.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>_O(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function KW(e){return new Oz({type:"success",innerType:e})}var zz=z("ZodCatch",(e,t)=>{eT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>NO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Az(e,t){return new zz({type:"catch",innerType:e,catchValue:typeof t=="function"?t:K.constantCatch(t)})}var Fz=z("ZodNaN",(e,t)=>{tT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>xO(e,r,n,o)});function GW(e){return WT(Fz,e)}var kv=z("ZodPipe",(e,t)=>{vw.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>BO(e,r,n,o),e.in=t.in,e.out=t.out});function f0(e,t){return new kv({type:"pipe",in:e,out:t})}var Cv=z("ZodCodec",(e,t)=>{kv.init(e,t),ov.init(e,t)});function XW(e,t,r){return new Cv({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function QW(e){let t=e._zod.def;return new Cv({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Nz=z("ZodPreprocess",(e,t)=>{kv.init(e,t),rT.init(e,t)}),Bz=z("ZodReadonly",(e,t)=>{oT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>LO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Lz(e){return new Bz({type:"readonly",innerType:e})}var Mz=z("ZodTemplateLiteral",(e,t)=>{nT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>bO(e,r,n,o)});function JW(e,t){return new Mz({type:"template_literal",parts:e,...K.normalizeParams(t)})}var jz=z("ZodLazy",(e,t)=>{nv.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>jO(e,r,n,o),e.unwrap=()=>e._zod.def.getter()});function Uz(e){return new jz({type:"lazy",getter:e})}var Vz=z("ZodPromise",(e,t)=>{aT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>MO(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function YW(e){return new Vz({type:"promise",innerType:e})}var Hz=z("ZodFunction",(e,t)=>{iT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>wO(e,r,n,o)});function eZ(e){return new Hz({type:"function",input:Array.isArray(e?.input)?bz(e?.input):e?.input??_v($u()),output:e?.output??$u()})}var Pv=z("ZodCustom",(e,t)=>{sT.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,n,o)=>IO(e,r,n,o)});function tZ(e){let t=new ft({check:"custom"});return t._zod.check=e,t}function rZ(e,t){return KT(Pv,e??(()=>!0),t)}function Wz(e,t={}){return GT(Pv,e,t)}function Zz(e,t){return XT(e,t)}var oZ=QT,nZ=JT,qz=z("ZodInstanceOf",(e,t)=>{Pv.init(e,t)},{properties(e,t){return this.check(bm(e,t))}});function iZ(e,t={}){let r=new qz({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...K.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var aZ=(...e)=>YT({Codec:Cv,Boolean:Om,String:Em},...e);function sZ(e){let t=Uz(()=>Am([vv(e),oz(),nz(),lz(),_v(t),yz(vv(),t)]));return t}function lZ(e,t){return new Nz({type:"pipe",in:z0(e),out:t})}var hue={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function gue(e){Jt({customError:e})}function vue(){return Jt().customError}var Kz;Kz||(Kz={});var $v={};xa($v,{ZodISODate:()=>Nl,ZodISODateTime:()=>Fl,ZodISODuration:()=>Ll,ZodISOTime:()=>Bl,date:()=>bue,datetime:()=>xue,duration:()=>_ue,time:()=>yue});function xue(e){return dv(Fl,e)}function bue(e){return fv(Nl,e)}function yue(e){return mv(Bl,e)}function _ue(e){return pv(Ll,e)}var fe={...Fm,...c0,iso:$v},Iue=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function wue(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function cZ(e,t){return e.map((r,n)=>n<t?r:r.optional())}function Sue(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function kue(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let o=r[1]===void 0?void 0:Sue(r[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function Cue(e,t){return fe.transform(n=>n).check(n=>{let o=n.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&n.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&n.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let a of i){let s=t.keySchema.safeParse(a);s.success||n.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function Gz(e,t){if(e===null)return"z";let r=typeof e;if(r!=="object"){if(r==="number"&&Number.isNaN(e))return null;let n=String(e);return`${r[0]}${n.length}:${n}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let a of e){let s=Gz(a,t);if(s===null)return null;i.push(s)}return`a${i.length}:[${i.join(",")}]`}let n=Object.keys(e).sort(),o=[];for(let i of n){let a=Gz(e[i],t);if(a===null)return null;o.push(`${i.length}:${i}=${a}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var Pue=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),$ue=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Rv(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Rv):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,r])=>Pue.has(t)?Rv(r):!$ue.has(t)||typeof r!="object"||r===null?!1:Object.values(r).some(Rv))}function uZ(e){return e===1?"element":"elements"}function Rue(e,t){return fe.transform(n=>n).check(n=>{let o=n.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let a=0;a<o.length;a++){let s=Gz(o[a],new Set);if(s===null)continue;let l=i.get(s);if(l===void 0){i.set(s,a);continue}n.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${l}`,input:o,path:[a],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let l of o)if(t.containsSchema.safeParse(l).success&&++s>=a)break;s<i&&n.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${uZ(i)}; found ${s}`,input:o,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&n.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${uZ(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function dZ(e,t){if(e!==!1)return e===void 0||e===!0?fe.any():Oo(e,t)}var Due=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function fZ(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return fe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return fe.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=kue(o,t),a=Oo(i,t);return t.refs.set(o,a),t.processing.delete(o),a}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return fe.null();if(o.length===0)return fe.never();if(o.length===1)return fe.literal(o[0]);if(o.every(a=>typeof a=="string"))return fe.enum(o);let i=o.map(a=>fe.literal(a));return i.length<2?i[0]:fe.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return fe.literal(e.const);let r=e.type;if(Array.isArray(r)){let o=r.map(i=>{let a={...e,type:i};return fZ(a,t)});return o.length===0?fe.never():o.length===1?o[0]:fe.union(o)}if(!r)return fe.any();let n;switch(r){case"string":{let o=fe.string();if(e.format){let i=e.format;i==="email"?o=o.check(fe.email()):i==="uri"||i==="uri-reference"?o=o.check(fe.url()):i==="uuid"||i==="guid"?o=o.check(fe.uuid()):i==="date-time"?o=o.check(fe.iso.datetime({offset:!0})):i==="date"?o=o.check(fe.iso.date()):i==="time"?o=o.check(fe.regex(Due)):i==="duration"?o=o.check(fe.iso.duration()):i==="hostname"?o=o.check(fe.hostname()):i==="ipv4"?o=o.check(fe.ipv4()):i==="ipv6"?o=o.check(fe.ipv6()):i==="mac"?o=o.check(fe.mac()):i==="cidr"?o=o.check(fe.cidrv4()):i==="cidr-v6"?o=o.check(fe.cidrv6()):i==="base64"?o=o.check(fe.base64()):i==="base64url"?o=o.check(fe.base64url()):i==="e164"?o=o.check(fe.e164()):i==="credit_card"?o=o.check(fe.creditCard()):i==="iban"?o=o.check(fe.iban()):i==="jwt"?o=o.check(fe.jwt()):i==="emoji"?o=o.check(fe.emoji()):i==="nanoid"?o=o.check(fe.nanoid()):i==="cuid"?o=o.check(fe.cuid()):i==="cuid2"?o=o.check(fe.cuid2()):i==="ulid"?o=o.check(fe.ulid()):i==="xid"?o=o.check(fe.xid()):i==="ksuid"&&(o=o.check(fe.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),n=o;break}case"number":case"integer":{let o=r==="integer"?fe.number().int():fe.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),n=o;break}case"boolean":{n=fe.boolean();break}case"null":{n=fe.null();break}case"object":{let o={},i=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?Oo(e.additionalProperties,t):void 0;for(let[d,f]of Object.entries(i)){let m=Oo(f,t);Hr(o,d,a.has(d)?m:m.optional())}if(e.patternProperties){let d=e.patternProperties,f=Object.keys(d),m=[];for(let h of f){let y=Oo(d[h],t),v=fe.string().regex(new RegExp(h));m.push(fe.looseRecord(v,y))}let p=[];if(Object.keys(o).length>0&&p.push(fe.object(o).passthrough()),p.push(...m),p.length===0)n=fe.object({}).passthrough();else if(p.length===1)n=p[0];else{let h=fe.intersection(p[0],p[1]);for(let y=2;y<p.length;y++)h=fe.intersection(h,p[y]);n=h}if(e.additionalProperties===!1){let h=Object.keys(o),y=f.map(g=>new RegExp(g)),v=n;n=n.check(g=>{if(!Gn(g.value))return;let x=[];for(let _ of Object.keys(g.value))h.includes(_)||y.some(w=>w.test(_))||x.push(_);x.length&&g.issues.push({code:"unrecognized_keys",keys:x,input:g.value,inst:v})})}}else{let d=fe.object(o);e.additionalProperties===!1?n=d.strict():s?n=d.catchall(s):n=d.passthrough()}let l=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties=="number"?e.minProperties:void 0,u=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(l||c!==void 0||u!==void 0){let d;if(l){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=Oo(f,t)}n=Cue(n,{keySchema:d,minProperties:c,maxProperties:u})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(d=>Oo(d,t)),l=cZ(s,a),c=Array.isArray(i)?void 0:dZ(i,t),u=fe.tuple(l);n=c?u.rest(c):u,typeof e.minItems=="number"&&(n=n.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(fe.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=typeof e.minItems=="number"?e.minItems:0,s=i.map(d=>Oo(d,t)),l=cZ(s,a),c=dZ(e.additionalItems,t),u=fe.tuple(l);n=c?u.rest(c):u,typeof e.minItems=="number"&&(n=n.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(fe.maxLength(e.maxItems)))}else if(i!==void 0){let a=Oo(i,t),s=fe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),n=s}else n=fe.array(fe.any());(e.uniqueItems===!0||e.contains!==void 0)&&(n=Rue(n,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?Oo(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return n}function Oo(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let r=fZ(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>Oo(c,t)),l=fe.union(s);r=n?fe.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>Oo(c,t)),l=fe.xor(s);r=n?fe.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:fe.any();else{let s=n?r:Oo(e.allOf[0],t),l=n?0:1;for(let c=l;c<e.allOf.length;c++)s=fe.intersection(s,Oo(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=fe.nullable(r)),e.readOnly===!0&&(r=fe.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(o[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(o[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Rv(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(o[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Rv(e.contains)&&(o.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(o[s]=e[s])}for(let s of Object.keys(e))Iue.has(s)||Hr(o,s,e[s]);return Object.keys(o).length>0&&t.registry.add(r,o),e.description&&(r=r.describe(e.description)),r}function mZ(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let n=wue(r,t?.defaultTarget),o=r.$defs||r.definitions||{},i={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Wr};return Oo(r,i)}var pZ=Symbol("z.visit/resolving");function Dv(e,t){let r=typeof t=="function"?t:(a,s)=>{let l=t[a._zod.def.type];return l?l(a,s):a},n=new Map;function o(a){let s=n.get(a);if(s===pZ)return new nv({type:"lazy",getter:()=>n.get(a)});if(s!==void 0)return s;n.set(a,pZ);let l=i(a),c=r(l,l!==a);return n.set(a,c),c}function i(a){let s=a._zod.def,l=s.type;switch(l){case"object":{let c=s.shape,u=Object.keys(c),d=!1,f={};for(let p of u){let h=o(c[p]);h!==c[p]&&(d=!0),f[p]=h}let m=s.catchall;return s.catchall&&(m=o(s.catchall),m!==s.catchall&&(d=!0)),d?nt(a,{...s,shape:f,catchall:m}):a}case"array":{let c=o(s.element);return c===s.element?a:nt(a,{...s,element:c})}case"tuple":{let c=s.items,u=!1,d=[];for(let m of c){let p=o(m);p!==m&&(u=!0),d.push(p)}let f=s.rest;return s.rest&&(f=o(s.rest),f!==s.rest&&(u=!0)),u?nt(a,{...s,items:d,rest:f}):a}case"record":case"map":{let c=o(s.keyType),u=o(s.valueType);return c===s.keyType&&u===s.valueType?a:nt(a,{...s,keyType:c,valueType:u})}case"set":{let c=o(s.valueType);return c===s.valueType?a:nt(a,{...s,valueType:c})}case"union":{let c=s.options,u=!1,d=[];for(let f of c){let m=o(f);m!==f&&(u=!0),d.push(m)}return u?nt(a,{...s,options:d}):a}case"intersection":{let c=o(s.left),u=o(s.right);return c===s.left&&u===s.right?a:nt(a,{...s,left:c,right:u})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let c=o(s.innerType);return c===s.innerType?a:nt(a,{...s,innerType:c})}case"pipe":{let c=o(s.in),u=o(s.out);return c===s.in&&u===s.out?a:nt(a,{...s,in:c,out:u})}case"function":{let c=o(s.input),u=o(s.output);return c===s.input&&u===s.output?a:nt(a,{...s,input:c,output:u})}case"lazy":{let c=s.getter,{_cachedInner:u,...d}=s;return nt(a,{...d,getter:()=>o(c())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return o(e)}function hZ(e){return Dv(e,{object:t=>t.partial(),union:t=>{let r=t._zod.def;return r.discriminator===void 0?t:Am(r.options)}})}function Eue(e,t){if(!t?.length)return e;let r=e._zod.def;return nt(e,wi(r,{checks:[...r.checks??[],...t]}),{parent:!0})}function gZ(e){return Eue(e.out,e.checks)}function Tue(e){return e.in._zod.traits.has("$ZodTransform")?gZ(e):e.in}function vZ(e){return Dv(e,{pipe:t=>Tue(t._zod.def),default:(t,r)=>r?Ru(t._zod.def.innerType):t,catch:(t,r)=>r?t._zod.def.innerType:t})}function xZ(e){return Dv(e,{pipe:t=>gZ(t._zod.def),prefault:(t,r)=>r?t._zod.def.innerType:t})}var Xz={};xa(Xz,{bigint:()=>Fue,boolean:()=>Aue,date:()=>Nue,number:()=>zue,string:()=>Oue});function Oue(e){return xT(Em,e)}function zue(e){return ST(Tm,e)}function Aue(e){return ET(Om,e)}function Fue(e){return OT(zm,e)}function Nue(e){return HT(yv,e)}var Ev=class extends Error{constructor(r,n){super(r);Kt(this,"fix",n);this.name="UserError"}},bZ=(e,t)=>{throw new Ev(e,t)};var Bue=P.enum(["user","cancelled","invalid","bug"]),yZ=P.strictObject({kind:Bue,message:P.string().max(2e3),fix:P.string().max(2e3).optional()}),Tv=class extends Error{constructor(t="Nothing changed."){super(t),this.name="Cancelled"}};function Qz(e){return e.kind==="cancelled"?new Tv(e.message):new Ev(e.message,e.fix)}function _Z(e){return e.issues.map(t=>(t.path.length?t.path.join(".")+": ":"")+t.message).join("; ")}function us(e){return{...e,cli:e.cli,kind:"operation"}}function Ou(e){return{...e,cli:e.cli,kind:"query"}}function Nm(e){return{...e,kind:"view"}}function Lue(e,t){let r=e.input.safeParse(t??{});return r.success||bZ("That does not work for "+e.title.toLowerCase()+": "+_Z(r.error)),r.data}function IZ(e,t){let r=e.inputs?.(t)??{};return Object.fromEntries(Object.entries(e.queries).map(([n,o])=>[n,Lue(o,r[n])]))}function Bm(e,t=Date.now()){let r=Math.max(0,Math.round((t-new Date(e).getTime())/1e3));return Number.isNaN(r)?"":r<45?"just now":r<3600?Math.round(r/60)+" min ago":r<86400?Math.round(r/3600)+" h ago":Math.round(r/86400)+" d ago"}function wZ(e,t,r=t+"s"){return e+" "+(e===1?t:r)}var Mue=["boolean","enum","number","text","secret","path","list","map","object","json"],jue=P.union([P.string(),P.number(),P.boolean()]),Ov=P.lazy(()=>P.strictObject({name:P.string(),key:P.array(P.string()),kind:P.enum(Mue),label:P.string(),help:P.string().optional(),optional:P.boolean(),default:P.unknown().optional(),choices:P.array(P.strictObject({value:jue,label:P.string()})).optional(),open:Ov.optional(),min:P.number().optional(),max:P.number().optional(),integer:P.boolean().optional(),range:P.string().optional(),pathKind:P.enum(["dir","file"]).optional(),literals:P.array(P.string()).optional(),element:Ov.optional(),fields:P.array(Ov).optional()}));function Uue(e){if(typeof e!="object"||e===null||Array.isArray(e))return String(e);let t=e;return typeof t.host=="string"&&typeof t.guest=="string"?t.host+" \u2192 "+t.guest+(t.readOnly?" (read-only)":""):Object.values(t).filter(n=>typeof n=="string"&&n!=="").slice(0,2).join(" \xB7 ")||"{ "+Object.keys(t).join(", ")+" }"}function Jz(e,t){return e.length>t?e.slice(0,Math.max(0,t-1))+"\u2026":e}function N0(e,t,r=60){if(e===void 0)return{text:"not set",tone:"muted"};if(t?.kind==="secret")return e===""?{text:"(empty)",tone:"muted"}:{text:"***"};if(e===!0)return{text:"On",tone:"ok"};if(e===!1)return{text:"Off",tone:"muted"};if(e===null)return{text:"none",tone:"muted"};if(typeof e=="string")return e===""?{text:"(empty)",tone:"muted"}:{text:Jz(e,r)};if(typeof e=="number")return{text:String(e)};if(Array.isArray(e))return e.length===0?{text:"none",tone:"muted"}:{text:Jz(e.length+" \xB7 "+e.map(o=>typeof o=="object"?Uue(o):String(o)).join(", "),r)};let n=Object.keys(e);return n.length?{text:Jz(n.length+" \xB7 "+n.join(", "),r)}:{text:"none",tone:"muted"}}function SZ(e,t){if(t===void 0||t==="")return e.optional||e.kind==="text"?void 0:"Required.";if(e.kind==="number"){let r=typeof t=="number"?t:Number(t);if(!Number.isFinite(r))return"Enter a number.";if(e.integer&&!Number.isInteger(r))return"Enter a whole number.";if(e.min!==void 0&&r<e.min||e.max!==void 0&&r>e.max)return e.range?"Use "+e.range+".":"Out of range."}if(e.kind==="enum"&&!e.open&&!e.choices?.some(r=>r.value===t))return"Choose one."}var Lm=P.array(P.string()).optional(),kZ=P.strictObject({value:P.string(),label:P.string(),description:P.string().optional()}),Vue=P.strictObject({kind:P.literal("confirm"),title:P.string(),lines:Lm,yes:P.string().optional(),danger:P.boolean().optional(),typed:P.string().optional(),implied:P.boolean().optional(),noTerminal:P.strictObject({message:P.string(),fix:P.string()}).optional()}),Hue=P.strictObject({kind:P.literal("choose"),title:P.string(),lines:Lm,choices:P.array(kZ).min(1),initial:P.string().optional()}),Wue=P.strictObject({kind:P.literal("text"),title:P.string(),lines:Lm,initial:P.string().optional(),allowEmpty:P.boolean().optional(),problem:P.string().optional()}),Zue=P.strictObject({kind:P.literal("secret"),title:P.string(),lines:Lm,problem:P.string().optional()}),que=P.strictObject({kind:P.literal("path"),title:P.string(),lines:Lm,pathKind:P.enum(["dir","file"]),initial:P.string().optional(),literals:P.array(P.string()).optional(),problem:P.string().optional()}),Kue=P.strictObject({kind:P.literal("checklist"),title:P.string(),lines:Lm,choices:P.array(kZ),checked:P.array(P.string()).optional()}),CZ=P.discriminatedUnion("kind",[Vue,Hue,Wue,Zue,que,Kue]),uQe={confirm:P.boolean(),choose:P.string().max(1e3).optional(),text:P.string().max(1e4).optional(),secret:P.string().max(1e4).optional(),path:P.string().max(2e3).optional(),checklist:P.array(P.string().max(1e3)).max(1e3).optional()};async function Yz(e,t,r){for(let n=t;;){let o=await e(n);if(o===void 0||!r)return o;let i=r(o);if(i===!0)return o;n={...n,problem:i}}}function Gue(e,t){return{progress:r=>t.progress(r),log:(r,n)=>t.log(r,n),confirm:r=>e({...r,kind:"confirm"}),choose:r=>e({...r,kind:"choose"}),text:({validate:r,...n})=>Yz(e,{...n,kind:"text"},r),secret:({validate:r,...n})=>Yz(e,{...n,kind:"secret"},r),path:({validate:r,...n})=>Yz(e,{...n,kind:"path"},r),checklist:r=>e({...r,kind:"checklist"})}}var dQe=Gue(e=>Promise.reject(new Error("A query asked a question: "+e.title)),{progress:()=>{},log:()=>{}});var pa=P.string().regex(/^[A-Za-z0-9_-]{1,64}$/),PZ=P.string().regex(/^[a-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*)+$/).max(80),Xue=P.enum(["ok","warn","danger","muted","accent"]),Que=P.strictObject({t:P.literal("call"),id:pa,op:PZ,input:P.unknown()}),Jue=P.strictObject({t:P.literal("answer"),id:pa,value:P.unknown()}),Yue=P.strictObject({t:P.literal("subscribe"),id:pa,query:PZ,input:P.unknown()}),ede=P.strictObject({t:P.literal("unsubscribe"),id:pa}),gQe=P.discriminatedUnion("t",[Que,Jue,Yue,ede]),$Z=P.discriminatedUnion("t",[P.strictObject({t:P.literal("progress"),id:pa,text:P.string()}),P.strictObject({t:P.literal("log"),id:pa,text:P.string(),tone:Xue.optional()}),P.strictObject({t:P.literal("ask"),id:pa,question:CZ}),P.strictObject({t:P.literal("result"),id:pa,output:P.unknown()}),P.strictObject({t:P.literal("error"),id:pa,error:yZ}),P.strictObject({t:P.literal("data"),id:pa,output:P.unknown()})]);function ds(e,t,r={}){return{kind:"operation",op:e.id,input:t,label:e.title,...e.danger?{danger:!0}:{},...r}}function Mm(e,t,r={}){return{kind:"link",target:e,label:t,...r}}function RZ(e){return e.sections.some(t=>(t.facts?.length??0)>0||(t.items?.length??0)>0)}var tde=P.object({name:P.string().describe("The project"),host:P.string().describe("Its folder on this PC"),guest:P.string().describe("Its folder in the sandbox"),mechanism:P.string().describe("How it got into the sandbox (launch, root, boot or share)"),here:P.boolean().describe("The project of the current folder"),setup:P.object({phase:P.string(),message:P.string()}).describe("How far its setup is"),databases:P.array(P.object({database:P.string(),port:P.number(),state:P.string()})),sessions:P.array(P.object({id:P.string(),harness:P.string(),viewers:P.string(),started:P.string()})),repoGuard:P.array(P.string()).describe("Repo guard findings in its folder")}),rde=P.object({running:P.boolean().describe("A Windows Sandbox is running"),phase:P.string().describe("What it is doing (ready, provisioning ...)"),message:P.string().optional().describe("Its last message"),headless:P.boolean().optional().describe("Its window is hidden"),startedAt:P.number().nullable().describe("When it started (ms), if known"),daemon:P.string().describe("The sandbox helper's answer"),account:P.string().nullable().describe("The Claude login it uses"),syncWatcher:P.boolean().describe("The background history sync runs")}),ode=P.object({shared:P.object({line:P.string().describe('"Running, started by alice (shared with you)"'),limited:P.boolean().describe("Not shared with you: nothing more is shown"),startedBy:P.string().nullable().describe("Whose it is")}).optional(),sandbox:rde,here:P.object({folder:P.string(),project:P.string().nullable(),guest:P.string().nullable()}),roots:P.array(P.object({host:P.string(),guest:P.string()})),projects:P.array(tde),otherSessions:P.array(P.object({id:P.string(),harness:P.string(),cwd:P.string()})),repoGuard:P.object({guarded:P.number(),findings:P.array(P.string())})}),DZ=P.object({message:P.string().describe("What happened")});function nde(e){let t=/^pong \((\d+) session/.exec(e);return t?"responding, "+wZ(Number(t[1]),"session")+" running":e}function EZ(e){return e.running&&e.startedAt?Bm(e.startedAt).replace(" ago",""):null}var e4=Ou({id:"sandbox.status",title:"Sandbox status",summary:"show what the sandbox is doing",input:P.object({}),output:ode,live:{everyMs:2500},cli:{name:"status",group:"Sessions",json:!0,shapeJson:e=>{if(e.shared?.limited)return{sandbox:{running:!0,shared:!1,startedBy:e.shared.startedBy}};let t=e.sandbox;return{sandbox:{...e.shared?.startedBy?{startedBy:e.shared.startedBy,shared:!0}:{},running:t.running,phase:t.phase,message:t.message,headless:t.headless,uptime:EZ(t),daemon:t.daemon,account:t.account,syncWatcher:t.syncWatcher},here:e.here,roots:e.roots,projects:e.projects,otherSessions:e.otherSessions,repoGuard:e.repoGuard}}}}),B0=us({id:"sandbox.showWindow",title:"Show the window",summary:"show the sandbox window",input:P.object({}),output:DZ,text:e=>e.message,cli:{name:"show",group:"Sessions"}}),L0=us({id:"sandbox.hideWindow",title:"Hide the window",summary:"hide the sandbox window (it keeps running)",input:P.object({}),output:DZ,text:e=>e.message,cli:{name:"hide",group:"Sessions"}}),M0=us({id:"sandbox.stop",title:"Stop the sandbox\u2026",summary:"shut the sandbox down (every project's sessions end)",input:P.object({}),output:P.object({stopped:P.boolean().describe("It was asked to shut down"),message:P.string()}),danger:!0,text:e=>e.message,cli:{name:"stop",group:"Agents",yes:"do not ask when other projects' sessions would end"}}),ide={launch:"started from here",root:"in a project root",boot:"mapped at start"};function ade(e){return{id:"project:"+e.name,label:e.name,hint:e.host+" -> "+e.guest+" ("+(ide[e.mechanism]??"wsb share")+")",marked:e.here,details:["setup: "+e.setup.phase+(e.setup.phase==="ready"?"":" - "+e.setup.message),...e.databases.length?["databases: "+e.databases.map(t=>t.database+" :"+t.port+" "+t.state).join(", ")]:[],...e.sessions.map(t=>"session "+t.id+" "+t.harness+" "+t.viewers+" "+Bm(t.started)),...e.repoGuard.map(t=>"guard: "+t)]}}function sde(e){let t=e.sandbox,r=e.projects.reduce((o,i)=>o+i.sessions.length,0)+e.otherSessions.length,n=(o,i,a,s={})=>({id:o,label:i,value:a,...s});return[...e.shared?.startedBy?[n("owner","Started by",e.shared.startedBy)]:[],n("running","Running",t.running?"yes":"no",{tone:t.running?"ok":"muted"}),...t.running?[n("phase","Phase",t.phase,{tone:t.phase==="ready"?"ok":"warn"}),n("message","Message",t.message||"-"),n("window","Window",t.headless?"hidden (sandbox show opens it)":"shown"),n("uptime","Uptime",EZ(t)??"-"),n("helper","Helper",t.daemon==="-"?"-":nde(t.daemon)),n("sessions","Sessions",String(r))]:[],n("account","Account",t.account??"none selected (sandbox account use)"),n("sync","Background sync",t.syncWatcher?"on":"off")]}function lde(e){let t=e.roots.map(n=>({id:"root:"+n.host,label:"root",hint:n.host+" -> "+n.guest+" (every project in it opens without a restart)"})),r=e.projects.some(n=>n.here);return{id:"projects",title:"Projects",items:[...e.projects.map(ade),...t],notes:[r?{text:"* = the project of this folder",tone:"muted"}:{text:e.here.folder+" is not in this sandbox (start it here: sandbox claude)",tone:"muted"}]}}function cde(e){let t=e.repoGuard.findings;return{id:"guard",title:"Repo guard",summary:e.repoGuard.guarded+" folder(s) guarded; "+(t.length?t.length+" change(s) neutralised:":"nothing from the sandbox needed neutralising"),items:t.slice(-10).map((r,n)=>({id:"guard:"+n,label:r,tone:"warn"}))}}function ude(e){let t=e.shared?{text:e.shared.line+(e.shared.limited?"":". Its window is on their desktop; use its agents here."),tone:"accent"}:void 0;if(e.shared?.limited)return{title:"Sandbox",notice:t,sections:[]};let r=e.sandbox.running,n={id:"status",facts:sde(e),actions:r?[ds(B0,{},{key:"w",verb:"show",importance:3}),ds(L0,{},{key:"h",verb:"hide",importance:3}),ds(M0,{},{key:"x",verb:"stop",importance:1})]:[]},o={id:"other-sessions",title:"Other sessions",items:e.otherSessions.map(i=>({id:"session:"+i.id,label:"session "+i.id,hint:i.harness+" "+i.cwd}))};return{title:"Sandbox",notice:t,sections:[n,...r?[lde(e)]:[],...o.items?.length?[o]:[],cde(e)]}}var TZ=Nm({id:"sandbox",title:"Sandbox",summary:"What the sandbox is doing, its window, and stopping it.",queries:{status:e4},operations:[B0,L0,M0],build:({status:e})=>ude(e)});var dde=P.object({viewers:P.number(),remote:P.number()}),fde=P.object({id:P.string().describe("The session"),launchId:P.string(),harness:P.string().describe("The agent"),cwd:P.string().describe("Its folder in the sandbox"),project:P.string().optional(),phase:P.enum(["starting","running","exited","failed"]).describe("What it is doing"),message:P.string(),updatedAt:P.string(),startedAt:P.string().describe("When it started"),conversation:P.string().optional(),exitCode:P.number().optional(),projectName:P.string().optional().describe("The project it runs in"),here:P.boolean().optional().describe("In the project of the current folder"),viewers:dde.nullable().optional(),canOpen:P.boolean()}),mde=P.object({sandboxRunning:P.boolean(),defaultAgent:P.string(),wide:P.boolean(),owner:P.string().optional(),sessions:P.array(fde)});function OZ(e){return e===void 0?"-":e===null?"unknown (older session)":e.remote+" here, "+(e.viewers-e.remote)+" in sandbox"}function pde(e){let t=(r,n)=>r.startedAt<n.startedAt?1:-1;return[...e.filter(r=>r.here).sort(t),...e.filter(r=>!r.here).sort(t)]}var t4=Ou({id:"sessions.list",title:"Sessions",summary:"list agent sessions and who is attached",input:P.object({wide:P.boolean().default(!1).describe("also show each session's folder")}),output:mde,live:{everyMs:2500},cli:{name:"sessions",group:"Sessions",json:!0,flags:{wide:{flag:"--wide",noMenu:!0}},shapeJson:e=>e.sessions.map(({canOpen:t,...r})=>r)}}),j0=us({id:"sessions.restart",title:"Restart agents",summary:"restart this project's running agents in place; they resume their conversation",input:P.object({harness:P.string().optional().describe("only this agent"),all:P.boolean().default(!1).describe("every project's sessions, not only this folder's")}),output:P.object({message:P.string().describe("The sandbox's answer")}),text:e=>e.message,cli:{name:"restart",group:"Agents",flags:{harness:{flag:"--harness",shownAs:"--agent",value:"name",choices:"harnesses"},all:{flag:"--all"}}}});function hde(e,t){let r=e.phase+(e.exitCode!==void 0?" ("+e.exitCode+")":""),n=e.phase==="running";return{id:e.id,label:e.harness+" "+(e.projectName??"-"),hint:r+" "+Bm(e.startedAt),badges:[{text:e.phase,tone:n?"ok":e.phase==="failed"?"danger":"muted"}],group:e.here?"This folder's project":"Other sessions",marked:e.here,description:n?"Opens this session's terminal (in a terminal, Ctrl+] detaches; the session keeps running).":void 0,details:["Session "+e.id,"Folder "+e.cwd,"Attached "+OZ(e.viewers)],cells:{here:e.here?"*":"",id:e.id,agent:e.harness,project:e.projectName??"-",state:r,attached:OZ(e.viewers),...t?{folder:e.cwd}:{},started:Bm(e.startedAt)},...n&&e.canOpen?{primary:Mm({kind:"terminal",session:e.id},"Open",{verb:"attach"})}:{},...n?{}:{disabled:"This session has ended."},...n&&!e.canOpen?{disabled:"Not reachable from this PC."}:{}}}function gde(e){let t=pde(e.sessions),r=e.defaultAgent,n=Mm({kind:"start-agent",agent:r},"Start "+r,{verb:"start"}),o=t.length&&!t.some(i=>i.phase==="running"||i.phase==="starting")?[{id:"start",actions:[{...n,description:"Starts "+r+" in this folder."}]}]:[];return{title:"Sessions",...e.owner?{notice:{text:e.owner,tone:"accent"}}:{},sections:[{id:"sessions",columns:[{key:"here",label:""},{key:"id",label:"ID"},{key:"agent",label:"AGENT"},{key:"project",label:"PROJECT"},{key:"state",label:"STATE"},{key:"attached",label:"ATTACHED"},...e.wide?[{key:"folder",label:"FOLDER"}]:[],{key:"started",label:"STARTED"}],items:t.map(i=>hde(i,e.wide)),notes:[...t.some(i=>i.here)?[{text:"* = the project of this folder",tone:"muted"}]:[],...e.wide?[]:[{text:"Folders: sandbox sessions --wide",tone:"muted",only:"cli"}]]},...o],actions:[...t.length?[ds(j0,{all:!1},{key:"r",verb:"restart agents",importance:1})]:[],Mm({kind:"command",argv:["resume"]},"Reopen last sessions",{key:"o",verb:"reopen last sessions",importance:2})],empty:{title:e.sandboxRunning?"No sessions":"No sandbox is running",text:e.sandboxRunning?"No agent is running. Start "+r+" in this folder.":"Starting "+r+" starts the sandbox too; its session is listed here.",action:n,cliText:"No sessions. Start one with: sandbox claude"}}}var zZ=Nm({id:"sessions",title:"Sessions",summary:"The agent sessions of the running sandbox: open one, restart the agents.",queries:{sessions:t4},operations:[j0],build:({sessions:e})=>gde(e)});var U0=P.enum(["user","project"]).describe("Your own settings (all projects) or this folder's .sandbox-config.json (this project)"),r4=P.string().regex(/^[A-Za-z0-9_$-]+(\.[A-Za-z0-9_$-]+)*$/).max(200).describe("The setting, e.g. sandbox.memoryMb"),vde=P.object({id:P.string().describe("The setting, e.g. sandbox.memoryMb"),key:P.array(P.string()),label:P.string(),category:P.string(),section:P.string().optional(),field:Ov,value:P.unknown(),set:P.boolean(),yours:P.unknown(),yoursSet:P.boolean(),inProject:P.unknown().optional(),default:P.unknown().optional(),locked:P.boolean()}),xde=P.object({scope:U0,file:P.string().describe("The file this scope edits"),exists:P.boolean(),dataFolder:P.string().optional(),categories:P.array(P.object({id:P.string(),label:P.string(),description:P.string()})),rows:P.array(vde)}),o4=Ou({id:"settings.list",title:"Settings",summary:"every setting with its value, by category",input:P.object({scope:U0.default("user")}),output:xde,cli:{name:"config",action:"list",json:!0}}),AZ=Ou({id:"settings.get",title:"Get a setting",summary:"show one setting (secrets as ***)",input:P.object({key:r4}),output:P.object({key:P.string(),value:P.unknown()}),text:e=>typeof e.value=="string"?e.value:JSON.stringify(e.value,null,2),surfaces:{except:{menu:"Settings shows every value",web:"the Settings page shows every value"}},cli:{name:"config",action:"get",positional:["key"]}}),V0=us({id:"settings.set",title:"Change a setting",summary:"change one setting (text is read like the command line: true/on, numbers, JSON)",input:P.object({scope:U0.default("user"),key:r4,value:P.unknown().describe("The new value")}),output:P.object({key:P.string(),changed:P.boolean(),message:P.string()}),text:e=>e.message,cli:{name:"config",action:"set",positional:["key","value"]}}),H0=us({id:"settings.reset",title:"Reset a setting",summary:"put one setting back to its default (in a project file: remove it)",input:P.object({scope:U0.default("user"),key:r4}),output:P.object({key:P.string(),changed:P.boolean(),message:P.string()}),text:e=>e.message,cli:{name:"config",action:"reset",positional:["key"]}});function bde(e,t){let r=n=>N0(n,e.field,40).text;return["Setting "+e.id,"All projects "+r(e.yours)+(e.yoursSet?" (your file)":" (built-in default)"),"This project "+(e.inProject===void 0?"not set":r(e.inProject)),...t==="user"?["Default "+r(e.default)]:[],...t==="project"&&e.locked?["A project can only make this stricter than your own setting."]:[]]}function yde(e,t){let r=t==="project"&&!e.set?"all projects: "+N0(e.yours,e.field,40).text:N0(e.value,e.field).text,n=e.field.kind==="secret"?"":e.value;return{id:e.id,label:e.label,hint:r,...e.set?{tone:t==="project"?"accent":"ok",badges:[{text:"set",tone:"accent"}]}:{},description:e.field.help,group:e.section,details:bde(e,t),keywords:e.id,cells:{setting:e.id,value:r},primary:ds(V0,{scope:t,key:e.id},{label:"Change",verb:"edit",fields:[{...e.field,name:"value",label:e.label}],initial:{value:n}}),actions:e.set?[ds(H0,{scope:t,key:e.id},{label:t==="project"?"Remove":"Reset to default",verb:"reset",key:"r"})]:[]}}function _de(e){return{id:"@data-folder",label:"Data folder",hint:e,cells:{setting:"storage.root",value:e},description:"Where your tools, logins, history and logs are kept between sandboxes. Move it with the menu (Settings > Data folder) or sandbox storage move <folder>.",primary:Mm({kind:"command",argv:["storage"]},"Data folder",{verb:"change"})}}function Ide(e){let t=e.categories.map(r=>({id:r.id,title:r.label,description:r.description,columns:[{key:"setting",label:"SETTING"},{key:"value",label:"VALUE"}],columnsOn:"cli",items:[...e.rows.filter(n=>n.category===r.id).map(n=>yde(n,e.scope)),...r.id==="general"&&e.dataFolder?[_de(e.dataFolder)]:[]]}));return{title:"Settings",notice:{text:"Editing "+e.file+(e.exists?"":" (created when you save)")+(e.scope==="project"?": only what a project may set; needs your approval at the next launch":""),tone:e.scope==="project"?"accent":"muted"},sections:t}}var FZ=Nm({id:"settings",title:"Settings",summary:"Every setting, for all projects or just this project, with its value, default and description.",queries:{settings:o4},operations:[V0,H0],tabs:{param:"scope",choices:[{value:"user",label:"All projects"},{value:"project",label:"This project"}]},inputs:e=>({settings:{scope:e.scope}}),build:({settings:e})=>Ide(e)});var NZ=[B0,L0,M0,j0,V0,H0],wde=[e4,t4,o4,AZ],Sde=[TZ,zZ,FZ],MQe=[...NZ,...wde];function W0(e){return NZ.find(t=>t.id===e)}function BZ(e){return Sde.find(t=>t.id===e)}var LZ=[{label:"Agents",elsewhere:"Start agents from the menu (sandbox) or with sandbox <agent>."},{label:"Sessions",view:"sessions"},{label:"Sandbox",view:"sandbox"},{label:"Apps",elsewhere:"Choose apps in the menu (sandbox > Apps)."},{label:"Settings",view:"settings"},{label:"Accounts",elsewhere:"Manage logins in the menu (sandbox > Accounts) or with sandbox account."},{label:"Maintenance",elsewhere:"Doctor, repair, data and updates are in the menu (sandbox > Maintenance)."}];var jv=b(S(),1);var xq=b(S(),1);var Ml=b(S(),1);var Zr=b(R(),1);function kde({agent:e,close:t}){let[r,n]=(0,Ml.useState)(null),[o,i]=(0,Ml.useState)(null),[a,s]=(0,Ml.useState)(e??null),[l,c]=(0,Ml.useState)(null),[u,d]=(0,Ml.useState)(!1);(0,Ml.useEffect)(()=>{Hf.info().then(p=>{n(p),s(h=>h??p.defaultHarness),c(p.projects[0]?.name??null)},p=>i(p instanceof Error?p.message:"The server did not answer."))},[]);let f=p=>{p.preventDefault(),!(!a||!l)&&(d(!0),Hf.create({harness:a,project:l}).then(h=>{t(),Ur.show({message:"Session started.",color:"green"}),bi("/s/"+h.id)},h=>{d(!1),i(h instanceof Error?h.message:"Could not start the session.")}))};if(!r&&!o)return(0,Zr.jsx)(ro,{size:"sm"});let m=r&&r.sandbox==="running"&&r.canUse;return(0,Zr.jsx)("form",{onSubmit:f,children:(0,Zr.jsxs)(fr,{gap:"md",children:[o&&(0,Zr.jsx)(mn,{color:"red",children:o}),r&&!m&&(0,Zr.jsx)(mn,{color:"orange",children:r.sandbox==="running"?"This sandbox is not shared with you.":"No sandbox is running. Start one on this PC with: sandbox "+(e??r.defaultHarness)}),m&&(0,Zr.jsxs)(Zr.Fragment,{children:[(0,Zr.jsx)(sl,{label:"Agent",data:[...r.harnesses],value:a,onChange:s,disabled:u}),(0,Zr.jsx)(sl,{label:"Project",data:r.projects.map(p=>({value:p.name,label:p.name+" ("+p.guest+")"})),value:l,onChange:c,disabled:u})]}),u&&(0,Zr.jsx)(mt,{size:"sm",children:"Starting the agent (the first time sets things up and can take a while)\u2026"}),(0,Zr.jsxs)(At,{justify:"flex-end",children:[(0,Zr.jsx)(bt,{variant:"default",onClick:t,disabled:u,children:"Cancel"}),(0,Zr.jsx)(bt,{type:"submit",loading:u,disabled:!m||!l||!a,children:"Start"})]})]})})}function MZ(e){let t=ea.open({title:"New session",centered:!0,children:(0,Zr.jsx)(kde,{agent:e,close:()=>ea.close(t)})})}var ha=b(S(),1);var Z0=b(S(),1),br=b(R(),1);function jZ(e){return e.kind==="confirm"?!1:void 0}function Cde({question:e,said:t,done:r}){let[n,o]=(0,Z0.useState)(e.kind==="text"||e.kind==="path"?e.initial??"":""),[i,a]=(0,Z0.useState)(e.kind==="choose"?e.initial??e.choices[0]?.value??"":""),[s,l]=(0,Z0.useState)(e.kind==="checklist"?[...e.checked??[]]:[]),c=[...t,...e.lines??[]],u="problem"in e?e.problem:void 0,d=e.kind!=="confirm"||!e.typed||n.trim().toLowerCase()===e.typed;return(0,br.jsx)("form",{onSubmit:m=>{m.preventDefault(),e.kind==="confirm"?r(d):e.kind==="choose"?r(i):e.kind==="checklist"?r(s):r(n===""&&e.kind==="text"&&!e.allowEmpty?void 0:n)},children:(0,br.jsxs)(fr,{gap:"sm",children:[c.map((m,p)=>(0,br.jsx)(mt,{size:"sm",children:m},p)),u&&(0,br.jsx)(mn,{color:"orange",variant:"light",p:"xs",children:u}),e.kind==="confirm"&&e.typed&&(0,br.jsx)(Yi,{label:'Type "'+e.typed+'" to confirm',value:n,onChange:m=>o(m.currentTarget.value),"data-autofocus":!0}),e.kind==="choose"&&(0,br.jsx)(Va.Group,{value:i,onChange:a,children:(0,br.jsx)(fr,{gap:"xs",children:e.choices.map(m=>(0,br.jsx)(Va,{value:m.value,label:m.label,description:m.description},m.value))})}),e.kind==="checklist"&&(0,br.jsx)(Ba.Group,{value:s,onChange:l,children:(0,br.jsx)(fr,{gap:"xs",children:e.choices.map(m=>(0,br.jsx)(Ba,{value:m.value,label:m.label,description:m.description},m.value))})}),(e.kind==="text"||e.kind==="path")&&(0,br.jsx)(Yi,{value:n,onChange:m=>o(m.currentTarget.value),description:e.kind==="path"?"The full path of a "+(e.pathKind==="file"?"file":"folder")+" on this PC":void 0,"data-autofocus":!0}),e.kind==="secret"&&(0,br.jsx)(Nc,{value:n,onChange:m=>o(m.currentTarget.value),"data-autofocus":!0}),(0,br.jsxs)(At,{justify:"flex-end",children:[(0,br.jsx)(bt,{variant:"default",onClick:()=>r(jZ(e)),children:"Cancel"}),(0,br.jsx)(bt,{type:"submit",color:e.kind==="confirm"&&e.danger?"red":void 0,disabled:!d,children:e.kind==="confirm"?e.yes??"Yes":"OK"})]})]})})}function UZ(e,t=[]){return new Promise(r=>{let n=!1,o=a=>{n||(n=!0,ea.close(i),r(a))},i=ea.open({title:e.title,centered:!0,onClose:()=>o(jZ(e)),children:(0,br.jsx)(Cde,{question:e,said:t,done:o})})})}var KZ=b(R(),1),VZ=(0,ha.createContext)(null);function HZ({client:e,children:t}){return(0,KZ.jsx)(VZ.Provider,{value:e,children:t})}function WZ(){let e=(0,ha.useContext)(VZ);if(!e)throw new Error("useRpc needs an RpcProvider");return e}var Pde={ask:()=>Promise.resolve(void 0)};function ZZ(e,t){let r=WZ(),n=Cf(),o=e.live!==void 0,i=JSON.stringify(t??{}),[a,s]=(0,ha.useState)(null),l=n$({queryKey:[e.id,i],queryFn:()=>r.call(e.id,t,Pde),enabled:!o});(0,ha.useEffect)(()=>{if(o)return r.subscribe(e.id,JSON.parse(i),u=>{s(null),n.setQueryData([e.id,i],u)},s)},[r,n,e.id,i,o]);let c=a??l.error;return{data:l.data,error:c,pending:l.data===void 0&&!c}}function qZ(){let e=WZ(),t=Cf();return(0,ha.useCallback)(async(r,n={})=>{let o=W0(r.op),i="op-"+Date.now(),a=[],s=!1;try{let l=await e.call(r.op,{...r.input,...n},{progress:d=>{let f={id:i,title:r.label,message:d,loading:!0,autoClose:!1};s?Ur.update(f):Ur.show(f),s=!0},log:d=>a.push(d),ask:d=>UZ(d,a.splice(0))}),c=o?.text?.(l)??"Done.",u={id:i,title:r.label,message:c,color:"green",loading:!1,autoClose:5e3};s?Ur.update(u):Ur.show(u)}catch(l){if(s&&Ur.hide(i),l instanceof Tv)return;let c=l.fix;Ur.show({title:l instanceof Error?l.message:"It did not work.",message:c??a.join(" "),color:"red",autoClose:1e4})}finally{await t.invalidateQueries()}},[e,t])}var zo=b(S(),1);var q0=b(S(),1);function $de(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw new Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}var Rde=typeof window<"u"?q0.useLayoutEffect:q0.useEffect;function qr(e,t){Rde(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function GZ(e,t){e&&$de(e),qr(`mantine-form:${e}:set-field-value`,r=>t.setFieldValue(r.detail.path,r.detail.value)),qr(`mantine-form:${e}:set-values`,r=>t.setValues(r.detail)),qr(`mantine-form:${e}:set-initial-values`,r=>t.setInitialValues(r.detail)),qr(`mantine-form:${e}:set-errors`,r=>t.setErrors(r.detail)),qr(`mantine-form:${e}:set-field-error`,r=>t.setFieldError(r.detail.path,r.detail.error)),qr(`mantine-form:${e}:clear-field-error`,r=>t.clearFieldError(r.detail)),qr(`mantine-form:${e}:clear-errors`,t.clearErrors),qr(`mantine-form:${e}:reset`,t.reset),qr(`mantine-form:${e}:validate`,t.validate),qr(`mantine-form:${e}:validate-field`,r=>t.validateField(r.detail)),qr(`mantine-form:${e}:reorder-list-item`,r=>t.reorderListItem(r.detail.path,r.detail.payload)),qr(`mantine-form:${e}:remove-list-item`,r=>t.removeListItem(r.detail.path,r.detail.index)),qr(`mantine-form:${e}:insert-list-item`,r=>t.insertListItem(r.detail.path,r.detail.item,r.detail.index)),qr(`mantine-form:${e}:set-dirty`,r=>t.setDirty(r.detail)),qr(`mantine-form:${e}:set-touched`,r=>t.setTouched(r.detail)),qr(`mantine-form:${e}:reset-dirty`,r=>t.resetDirty(r.detail)),qr(`mantine-form:${e}:reset-touched`,t.resetTouched)}function XZ(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){let{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var fs=b(S(),1);function zv(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{let n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}function QZ(e){let[t,r]=(0,fs.useState)(zv(e)),n=(0,fs.useRef)(t),o=(0,fs.useCallback)(l=>{r(c=>{let u=zv(typeof l=="function"?l(c):l);return n.current=u,u})},[]),i=(0,fs.useCallback)(()=>o({}),[]),a=(0,fs.useCallback)(l=>{n.current[l]!==void 0&&o(c=>{let u={...c};return delete u[l],u})},[t]),s=(0,fs.useCallback)((l,c)=>{c==null||c===!1?a(l):n.current[l]!==c&&o(u=>({...u,[l]:c}))},[t]);return{errorsState:t,setErrors:o,clearErrors:i,setFieldError:s,clearFieldError:a}}var Fv=b(S(),1);function Av(e,t){if(t===null||typeof t!="object")return{};let r={...t};return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}function JZ(e,t){let r=e.substring(t.length+1).split(".")[0];return parseInt(r,10)}function n4(e,t,r,n){if(t===void 0)return r;let o=`${String(e)}`,i=r;n===-1&&(i=Av(`${o}.${t}`,i));let a={...i},s=new Set;return Object.entries(i).filter(([l])=>{if(!l.startsWith(`${o}.`))return!1;let c=JZ(l,o);return Number.isNaN(c)?!1:c>=t}).forEach(([l,c])=>{let u=JZ(l,o),d=l.replace(`${o}.${u}`,`${o}.${u+n}`);a[d]=c,s.add(d),s.has(l)||delete a[l]}),a}function YZ(e,{from:t,to:r},n){let o=`${e}.${t}`,i=`${e}.${r}`,a={...n},s=new Set;return Object.keys(n).forEach(l=>{if(s.has(l))return;let c,u;if(l.startsWith(o)?(c=l,u=l.replace(o,i)):l.startsWith(i)&&(c=l.replace(i,o),u=l),c&&u){let d=a[c],f=a[u];f===void 0?delete a[c]:a[c]=f,d===void 0?delete a[u]:a[u]=d,s.add(c),s.add(u)}}),a}function eq(e,t,r){typeof r.value=="object"&&(r.value=zu(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||t==="__proto__"?Object.defineProperty(e,t,r):e[t]=r.value}function zu(e){if(typeof e!="object")return e;var t=0,r,n,o,i=Object.prototype.toString.call(e);if(i==="[object Object]"?o=Object.create(e.__proto__||null):i==="[object Array]"?o=Array(e.length):i==="[object Set]"?(o=new Set,e.forEach(function(a){o.add(zu(a))})):i==="[object Map]"?(o=new Map,e.forEach(function(a,s){o.set(zu(s),zu(a))})):i==="[object Date]"?o=new Date(+e):i==="[object RegExp]"?o=new RegExp(e.source,e.flags):i==="[object DataView]"?o=new e.constructor(zu(e.buffer)):i==="[object ArrayBuffer]"?o=e.slice(0):i.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)eq(o,n[t],Object.getOwnPropertyDescriptor(e,n[t]));for(t=0,n=Object.getOwnPropertyNames(e);t<n.length;t++)Object.hasOwnProperty.call(o,r=n[t])&&o[r]===e[r]||eq(o,r,Object.getOwnPropertyDescriptor(e,r))}return o||e}function K0(e){return typeof e!="string"?[]:e.split(".")}function It(e,t){let r=K0(e);if(r.length===0||typeof t!="object"||t===null)return;let n=t[r[0]];for(let o=1;o<r.length&&n!=null;o+=1)n=n[r[o]];return n}function ga(e,t,r){let n=K0(e);if(n.length===0)return r;let o=zu(r);if(n.length===1)return o[n[0]]=t,o;let i=o[n[0]];for(let a=1;a<n.length-1;a+=1){if(i===void 0)return o;i=i[n[a]]}return i[n[n.length-1]]=t,o}function tq(e,{from:t,to:r},n){let o=It(e,n);if(!Array.isArray(o))return n;let i=[...o],a=o[t];return i.splice(t,1),i.splice(r,0,a),ga(e,i,n)}function rq(e,t,r,n){let o=It(e,n);if(!Array.isArray(o))return n;let i=[...o];return i.splice(typeof r=="number"?r:i.length,0,t),ga(e,i,n)}function oq(e,t,r){let n=It(e,r);return Array.isArray(n)?ga(e,n.filter((o,i)=>i!==t),r):r}function nq(e,t,r,n){let o=It(e,n);if(!Array.isArray(o)||o.length<=r)return n;let i=[...o];return i[r]=t,ga(e,i,n)}function iq({$values:e,$errors:t,$status:r}){let n=(0,Fv.useCallback)((s,l)=>{r.clearFieldDirty(s),t.setErrors(c=>YZ(s,l,c)),e.setValues({values:tq(s,l,e.refValues.current),updateState:!0})},[]),o=(0,Fv.useCallback)((s,l)=>{r.clearFieldDirty(s),t.setErrors(c=>n4(s,l,c,-1)),e.setValues({values:oq(s,l,e.refValues.current),updateState:!0})},[]),i=(0,Fv.useCallback)((s,l,c)=>{r.clearFieldDirty(s),t.setErrors(u=>n4(s,c,u,1)),e.setValues({values:rq(s,l,c,e.refValues.current),updateState:!0})},[]),a=(0,Fv.useCallback)((s,l,c)=>{r.clearFieldDirty(s),e.setValues({values:nq(s,c,l,e.refValues.current),updateState:!0})},[]);return{reorderListItem:n,removeListItem:o,insertListItem:i,replaceListItem:a}}var yr=b(S(),1),Nv=b(sq(),1);function jm(e,t){let r=Object.keys(e);if(typeof t=="string"){let n=r.filter(o=>o.startsWith(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function lq({initialDirty:e,initialTouched:t,mode:r,$values:n}){let[o,i]=(0,yr.useState)(t),[a,s]=(0,yr.useState)(e),l=(0,yr.useRef)(t),c=(0,yr.useRef)(e),u=(0,yr.useCallback)(I=>{let k=typeof I=="function"?I(l.current):I;l.current=k,r==="controlled"&&i(k)},[]),d=(0,yr.useCallback)((I,k=!1)=>{let C=typeof I=="function"?I(c.current):I;c.current=C,(r==="controlled"||k)&&s(C)},[]),f=(0,yr.useCallback)(()=>u({}),[]),m=(0,yr.useCallback)(I=>{let k=I?{...n.refValues.current,...I}:n.refValues.current;n.setValuesSnapshot(k),d({})},[]),p=(0,yr.useCallback)((I,k)=>{u(C=>jm(C,I)===k?C:{...C,[I]:k})},[]),h=(0,yr.useCallback)((I,k,C)=>{d(U=>jm(U,I)===k?U:{...U,[I]:k},C)},[]),y=(0,yr.useCallback)((I,k)=>{let C=jm(c.current,I),U=!(0,Nv.default)(It(I,n.getValuesSnapshot()),k),H=Av(I,c.current);H[I]=U,d(H,C!==U)},[]),v=(0,yr.useCallback)(I=>jm(l.current,I),[]),g=(0,yr.useCallback)(I=>d(k=>{if(typeof I!="string")return k;let C=Av(I,k);return delete C[I],(0,Nv.default)(C,k)?k:C}),[]),x=(0,yr.useCallback)(I=>{if(I){let C=It(I,c.current);if(typeof C=="boolean")return C;let U=It(I,n.refValues.current),H=It(I,n.valuesSnapshot.current);return!(0,Nv.default)(U,H)}return Object.keys(c.current).length>0?jm(c.current):!(0,Nv.default)(n.refValues.current,n.valuesSnapshot.current)},[]),_=(0,yr.useCallback)(()=>c.current,[]),w=(0,yr.useCallback)(()=>l.current,[]);return{touchedState:o,dirtyState:a,touchedRef:l,dirtyRef:c,setTouched:u,setDirty:d,resetDirty:m,resetTouched:f,isTouched:v,setFieldTouched:p,setFieldDirty:h,setTouchedState:i,setDirtyState:s,clearFieldDirty:g,isDirty:x,getDirty:_,getTouched:w,setCalculatedFieldDirty:y}}var rn=b(S(),1);function cq({initialValues:e,onValuesChange:t,mode:r}){let n=(0,rn.useRef)(!1),[o,i]=(0,rn.useState)(e||{}),a=(0,rn.useRef)(o),s=(0,rn.useRef)(o),l=(0,rn.useCallback)(({values:h,subscribers:y,updateState:v=!0,mergeWithPreviousValues:g=!0})=>{let x=a.current,_=h instanceof Function?h(a.current):h,w=g?{...x,..._}:_;a.current=w,v&&i(w),t?.(w,x),y?.filter(Boolean).forEach(I=>I({updatedValues:w,previousValues:x}))},[t]),c=(0,rn.useCallback)(h=>{let y=It(h.path,a.current),v=h.value instanceof Function?h.value(y):h.value;if(y!==v){let g=a.current,x=ga(h.path,v,a.current);l({values:x,updateState:h.updateState}),h.subscribers?.filter(Boolean).forEach(_=>_({path:h.path,updatedValues:x,previousValues:g}))}},[l]),u=(0,rn.useCallback)(h=>{s.current=h},[]),d=(0,rn.useCallback)((h,y)=>{n.current||(n.current=!0,l({values:h,updateState:r==="controlled"}),u(h),y())},[l]),f=(0,rn.useCallback)(()=>{l({values:s.current,updateState:!0,mergeWithPreviousValues:!1})},[l]),m=(0,rn.useCallback)(()=>a.current,[]),p=(0,rn.useCallback)(()=>s.current,[]);return{initialized:n,stateValues:o,refValues:a,valuesSnapshot:s,setValues:l,setFieldValue:c,resetValues:f,setValuesSnapshot:u,initialize:d,getValues:m,getValuesSnapshot:p}}var Au=b(S(),1);function uq({$status:e}){let t=(0,Au.useRef)({}),r=(0,Au.useCallback)((o,i)=>{(0,Au.useEffect)(()=>(t.current[o]=t.current[o]||[],t.current[o].push(i),()=>{t.current[o]=t.current[o].filter(a=>a!==i)}),[i])},[]),n=(0,Au.useCallback)(o=>t.current[o]?t.current[o].map(i=>a=>i({previousValue:It(o,a.previousValues),value:It(o,a.updatedValues),touched:e.isTouched(o),dirty:e.isDirty(o)})):[],[]);return{subscribers:t,watch:r,getFieldSubscribers:n}}function i4(e,t){return e?`${e}-${t.toString()}`:t.toString()}var G0=Symbol("root-rule");function dq(e){let t=zv(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function a4(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,i)=>{let a=e[i],s=`${r===""?"":`${r}.`}${i}`,l=It(s,t),c=!1;return typeof a=="function"&&(o[s]=a(l,t,s)),typeof a=="object"&&Array.isArray(l)&&(c=!0,l.forEach((u,d)=>a4(a,t,`${s}.${d}`,o)),G0 in a&&(o[s]=a[G0](l,t,s))),typeof a=="object"&&typeof l=="object"&&l!==null&&(c||a4(a,t,s,o),G0 in a&&(o[s]=a[G0](l,t,s))),o},n)}function Bv(e,t){return dq(typeof e=="function"?e(t):a4(e,t))}function Lv(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};let n=Bv(t,r),o=Object.keys(n.errors).find(i=>e.split(".").every((a,s)=>a===i.split(".")[s]));return{hasError:!!o,error:o?n.errors[o]:null}}var fq="__MANTINE_FORM_INDEX__";function s4(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${fq}`)):!1:!1}function l4({name:e,mode:t="controlled",initialValues:r,initialErrors:n={},initialDirty:o={},initialTouched:i={},clearInputErrorOnChange:a=!0,validateInputOnChange:s=!1,validateInputOnBlur:l=!1,onValuesChange:c,transformValues:u=h=>h,enhanceGetInputProps:d,validate:f,onSubmitPreventDefault:m="always",touchTrigger:p="change"}={}){let h=QZ(n),y=cq({initialValues:r,onValuesChange:c,mode:t}),v=lq({initialDirty:o,initialTouched:i,$values:y,mode:t}),g=iq({$values:y,$errors:h,$status:v}),x=uq({$status:v}),[_,w]=(0,zo.useState)(0),[I,k]=(0,zo.useState)({}),[C,U]=(0,zo.useState)(!1),H=(0,zo.useCallback)(()=>{y.resetValues(),h.clearErrors(),v.resetDirty(),v.resetTouched(),t==="uncontrolled"&&w(q=>q+1)},[]),W=(0,zo.useCallback)(q=>{a&&h.clearErrors(),t==="uncontrolled"&&w(ae=>ae+1),Object.keys(x.subscribers.current).forEach(ae=>{let ye=It(ae,y.refValues.current),se=It(ae,q);ye!==se&&x.getFieldSubscribers(ae).forEach(ke=>ke({previousValues:q,updatedValues:y.refValues.current}))})},[a]),X=(0,zo.useCallback)(q=>{let ae=y.refValues.current;y.initialize(q,()=>t==="uncontrolled"&&w(ye=>ye+1)),W(ae)},[W]),N=(0,zo.useCallback)((q,ae,ye)=>{let se=s4(q,s),ke=ae instanceof Function?ae(It(q,y.refValues.current)):ae;v.setCalculatedFieldDirty(q,ke),p==="change"&&v.setFieldTouched(q,!0),!se&&a&&h.clearFieldError(q),y.setFieldValue({path:q,value:ae,updateState:t==="controlled",subscribers:[...x.getFieldSubscribers(q),se?ze=>{let Ve=Lv(q,f,ze.updatedValues);Ve.hasError?h.setFieldError(q,Ve.error):h.clearFieldError(q)}:null,ye?.forceUpdate!==!1&&t!=="controlled"?()=>k(ze=>({...ze,[q]:(ze[q]||0)+1})):null]})},[c,f]),A=(0,zo.useCallback)(q=>{let ae=y.refValues.current;y.setValues({values:q,updateState:t==="controlled"}),W(ae)},[c,W]),B=(0,zo.useCallback)(()=>{let q=Bv(f,y.refValues.current);return h.setErrors(q.errors),q},[f]),T=(0,zo.useCallback)(q=>{let ae=Lv(q,f,y.refValues.current);return ae.hasError?h.setFieldError(q,ae.error):h.clearFieldError(q),ae},[f]),M=(q,{type:ae="input",withError:ye=!0,withFocus:se=!0,...ke}={})=>{let Ve={onChange:XZ(Ke=>N(q,Ke,{forceUpdate:!1})),"data-path":i4(e,q)};return ye&&(Ve.error=h.errorsState[q]),ae==="checkbox"?Ve[t==="controlled"?"checked":"defaultChecked"]=It(q,y.refValues.current):Ve[t==="controlled"?"value":"defaultValue"]=It(q,y.refValues.current),se&&(Ve.onFocus=()=>v.setFieldTouched(q,!0),Ve.onBlur=()=>{if(s4(q,l)){let Ke=Lv(q,f,y.refValues.current);Ke.hasError?h.setFieldError(q,Ke.error):h.clearFieldError(q)}}),Object.assign(Ve,d?.({inputProps:Ve,field:q,options:{type:ae,withError:ye,withFocus:se,...ke},form:ge}))},$=(q,ae)=>ye=>{m==="always"&&ye?.preventDefault();let se=B();if(se.hasErrors)m==="validation-failed"&&ye?.preventDefault(),ae?.(se.errors,y.refValues.current,ye);else{let ke=q?.(u(y.refValues.current),ye);ke instanceof Promise&&(U(!0),ke.finally(()=>U(!1)))}},O=q=>u(q||y.refValues.current),Z=(0,zo.useCallback)(q=>{q.preventDefault(),H()},[]),Y=(0,zo.useCallback)(q=>q?!Lv(q,f,y.refValues.current).hasError:!Bv(f,y.refValues.current).hasErrors,[f]),te=q=>`${_}-${q}-${I[q]||0}`,ve=(0,zo.useCallback)(q=>document.querySelector(`[data-path="${i4(e,q)}"]`),[]),ge={watch:x.watch,initialized:y.initialized.current,values:y.stateValues,getValues:y.getValues,getInitialValues:y.getValuesSnapshot,setInitialValues:y.setValuesSnapshot,initialize:X,setValues:A,setFieldValue:N,submitting:C,setSubmitting:U,errors:h.errorsState,setErrors:h.setErrors,setFieldError:h.setFieldError,clearFieldError:h.clearFieldError,clearErrors:h.clearErrors,resetDirty:v.resetDirty,setTouched:v.setTouched,setDirty:v.setDirty,isTouched:v.isTouched,resetTouched:v.resetTouched,isDirty:v.isDirty,getTouched:v.getTouched,getDirty:v.getDirty,reorderListItem:g.reorderListItem,insertListItem:g.insertListItem,removeListItem:g.removeListItem,replaceListItem:g.replaceListItem,reset:H,validate:B,validateField:T,getInputProps:M,onSubmit:$,onReset:Z,isValid:Y,getTransformedValues:O,key:te,getInputNode:ve};return GZ(e,ge),ge}function mq(e,t){return r=>{try{return nm(e,r),{}}catch(n){if(n instanceof jg){let o={};return t?.errorPriority==="first"&&n.issues.reverse(),n.issues.forEach(i=>{o[i.path.join(".")]=i.message}),o}throw n}}}var Q0=b(S(),1),Ao=b(R(),1),X0="@custom";function hq(e){return(e.choices??[]).map(t=>({value:String(t.value),label:t.label}))}function gq(e,t){return e.choices?.find(r=>String(r.value)===t)?.value}function Dde({field:e,value:t,onChange:r,error:n}){let o=e.choices?.some(l=>l.value===t)??!1,[i,a]=(0,Q0.useState)(!o&&t!==void 0&&e.open!==void 0),s=[...hq(e),...e.open?[{value:X0,label:"Custom\u2026"}]:[]];return(0,Ao.jsxs)(fr,{gap:"xs",children:[(0,Ao.jsx)(sl,{label:e.label,description:e.help,data:s,value:i?X0:o?String(t):null,error:i?void 0:n,allowDeselect:!1,onChange:l=>{a(l===X0),l!==X0&&r(gq(e,l))}}),i&&e.open&&(0,Ao.jsx)(c4,{field:{...e.open,label:"Your own value",help:void 0},value:t,onChange:r,error:n})]})}function pq({field:e,value:t,onChange:r,error:n}){let[o,i]=(0,Q0.useState)(t===void 0?"":JSON.stringify(t,null,2)),[a,s]=(0,Q0.useState)();return(0,Ao.jsx)(Ph,{label:e.label,description:e.help,value:o,error:a??n,formatOnBlur:!0,autosize:!0,minRows:3,onChange:l=>{i(l);try{r(l.trim()===""?void 0:JSON.parse(l)),s(void 0)}catch{s("This is not valid JSON yet.")}}})}function c4(e){let{field:t,value:r,onChange:n,error:o}=e,i={label:t.label,description:t.help,error:o};switch(t.kind){case"boolean":return(0,Ao.jsx)(bf,{label:t.label,description:t.help,checked:r===!0,error:o,onChange:a=>n(a.currentTarget.checked)});case"enum":return(0,Ao.jsx)(Dde,{...e});case"number":return(0,Ao.jsx)(Mh,{...i,value:typeof r=="number"?r:"",min:t.min,max:t.max,allowDecimal:!t.integer,placeholder:t.range,onChange:a=>n(typeof a=="number"?a:void 0)});case"secret":return(0,Ao.jsx)(Nc,{...i,value:typeof r=="string"?r:"",placeholder:"Type a new value",autoComplete:"off",onChange:a=>n(a.currentTarget.value)});case"path":case"text":return(0,Ao.jsx)(Yi,{...i,description:t.kind==="path"?[t.help,"The full path of a "+(t.pathKind==="file"?"file":"folder")+" on this PC."].filter(Boolean).join(" "):t.help,value:typeof r=="string"?r:"",onChange:a=>n(a.currentTarget.value)});case"list":{let a=Array.isArray(r)?r.map(s=>String(s)):[];return t.element?.kind==="enum"?(0,Ao.jsx)(Fh,{...i,data:hq(t.element),value:a,onChange:s=>n(s.map(l=>gq(t.element,l)??l))}):t.element&&["text","path"].includes(t.element.kind)?(0,Ao.jsx)(Wh,{...i,value:a,onChange:n,clearable:!0}):(0,Ao.jsx)(pq,{...e})}default:return(0,Ao.jsx)(pq,{...e})}}var ms=b(R(),1);function Ede(e){let t=W0(e.op)?.input,r=(e.fields??[]).map(o=>o.name);if(!(t instanceof P.ZodObject)||!r.length)return;let n=t.shape;return P.object(Object.fromEntries(r.filter(o=>n[o]).map(o=>[o,n[o]])))}function Tde({action:e,submit:t,cancel:r}){let n=e.fields??[],o=Ede(e),i=o?mq(o):void 0,a=l4({mode:"controlled",initialValues:{...e.initial},validate:s=>{let l={};for(let c of n){let u=SZ(c,s[c.name]);u&&(l[c.name]=u)}return{...i?i(s):{},...l}}});return(0,ms.jsx)("form",{onSubmit:a.onSubmit(t),children:(0,ms.jsxs)(fr,{gap:"md",children:[n.map(s=>(0,ms.jsx)(c4,{field:s,value:a.values[s.name],error:a.errors[s.name],onChange:l=>a.setFieldValue(s.name,l)},s.name)),(0,ms.jsxs)(At,{justify:"flex-end",children:[(0,ms.jsx)(bt,{variant:"default",onClick:r,children:"Cancel"}),(0,ms.jsx)(bt,{type:"submit",color:e.danger?"red":void 0,children:"Save"})]})]})})}function vq(e){return new Promise(t=>{let r=!1,n=a=>{r||(r=!0,ea.close(i),t(a))},o=e.fields??[],i=ea.open({title:o.length===1?o[0].label:e.label,centered:!0,onClose:()=>n(void 0),children:(0,ms.jsx)(Tde,{action:e,submit:n,cancel:()=>n(void 0)})})})}var bq=b(R(),1);function Fu(e){return e!==void 0&&!(e.kind==="link"&&e.target.kind==="command")}function Mv(){let e=qZ();return(0,xq.useCallback)(async t=>{if(t.kind==="operation"){let n=t.fields?.length?await vq(t):{};n&&await e(t,n);return}let r=t.target;r.kind==="terminal"?bi("/s/"+r.session):r.kind==="start-agent"?MZ(r.agent):r.kind==="view"&&bi(Ja(r.view))},[e])}function J0({action:e,...t}){let r=Mv();if(!Fu(e))return null;let n=e.kind==="operation"&&e.danger;return(0,bq.jsx)(bt,{size:"xs",variant:n?"light":"default",color:n?"red":void 0,title:e.description,onClick:()=>{r(e)},...t,children:e.label})}var Ode={ok:"green",warn:"orange",danger:"red",muted:"gray",accent:"blue"};function Um(e){return e?Ode[e]:void 0}var we=b(R(),1),zde=20;function Ade({facts:e}){return(0,we.jsx)(Vh,{cols:{base:1,sm:2},spacing:"xs",verticalSpacing:4,children:e.map(t=>(0,we.jsxs)(At,{gap:"xs",wrap:"nowrap",title:t.description,children:[(0,we.jsx)(mt,{size:"sm",c:"dimmed",w:130,style:{flex:"none"},children:t.label}),(0,we.jsx)(mt,{size:"sm",c:Um(t.tone),style:{wordBreak:"break-word"},children:t.value})]},t.id))})}function Fde({item:e}){let t=Mv(),r=Fu(e.primary)&&!e.disabled?e.primary:void 0;return(0,we.jsx)(L,{py:6,style:{borderTop:"1px solid var(--mantine-color-default-border)"},children:(0,we.jsxs)(At,{justify:"space-between",wrap:"nowrap",align:"flex-start",gap:"sm",children:[(0,we.jsxs)(L,{style:{minWidth:0},children:[(0,we.jsxs)(At,{gap:6,children:[(0,we.jsxs)(mt,{fw:500,size:"sm",c:Um(e.tone),children:[e.marked?"* ":"",e.label]}),e.badges?.map(n=>(0,we.jsx)(zc,{size:"xs",variant:"light",color:Um(n.tone)??"gray",children:n.text},n.text))]}),e.hint&&(0,we.jsx)(mt,{size:"sm",c:"dimmed",style:{wordBreak:"break-word"},children:e.hint}),e.description&&(0,we.jsx)(mt,{size:"xs",children:e.description}),e.details?.map((n,o)=>(0,we.jsx)(mt,{size:"xs",c:"dimmed",ff:"monospace",style:{wordBreak:"break-word"},children:n},o)),e.disabled&&(0,we.jsx)(mt,{size:"xs",c:"dimmed",fs:"italic",children:e.disabled})]}),(0,we.jsxs)(At,{gap:6,wrap:"nowrap",style:{flex:"none"},children:[r&&(0,we.jsx)(bt,{size:"xs",onClick:()=>{t(r)},children:r.label}),e.actions?.map((n,o)=>(0,we.jsx)(J0,{action:n},o))]})]})})}function Nde({section:e}){let t=Mv(),r=e.columns??[];return(0,we.jsx)(Wt.ScrollContainer,{minWidth:560,children:(0,we.jsxs)(Wt,{highlightOnHover:!0,verticalSpacing:4,fz:"sm",children:[(0,we.jsx)(Wt.Thead,{children:(0,we.jsxs)(Wt.Tr,{children:[r.map(n=>(0,we.jsx)(Wt.Th,{children:n.label},n.key)),(0,we.jsx)(Wt.Th,{})]})}),(0,we.jsx)(Wt.Tbody,{children:(e.items??[]).map(n=>{let o=Fu(n.primary)&&!n.disabled?n.primary:void 0;return(0,we.jsxs)(Wt.Tr,{c:n.disabled?"dimmed":void 0,children:[r.map(i=>(0,we.jsx)(Wt.Td,{children:n.cells?.[i.key]??""},i.key)),(0,we.jsx)(Wt.Td,{children:o&&(0,we.jsx)(bt,{size:"compact-xs",onClick:()=>{t(o)},children:o.label})})]},n.id)})})]})})}function Bde({items:e}){let t=[],r;for(let n of e)n.group&&n.group!==r&&t.push((0,we.jsx)(mt,{size:"xs",fw:700,tt:"uppercase",c:"dimmed",mt:"xs",children:n.group},"g:"+n.group)),r=n.group,t.push((0,we.jsx)(Fde,{item:n},n.id));return(0,we.jsx)(L,{children:t})}function Lde({section:e}){let t=(e.notes??[]).filter(o=>o.only===void 0||o.only==="web"),r=(e.actions??[]).filter(Fu),n=e.items??[];return!e.facts?.length&&!n.length&&!r.length&&!e.summary?null:(0,we.jsx)(Ac,{withBorder:!0,padding:"md",radius:"md",children:(0,we.jsxs)(fr,{gap:"xs",children:[(e.title||e.summary)&&(0,we.jsxs)(At,{gap:"xs",align:"baseline",children:[e.title&&(0,we.jsx)(Wa,{order:4,children:e.title}),e.summary&&(0,we.jsx)(mt,{size:"sm",c:"dimmed",children:e.summary})]}),e.description&&(0,we.jsx)(mt,{size:"sm",c:"dimmed",children:e.description}),e.facts?.length?(0,we.jsx)(Ade,{facts:e.facts}):null,n.length?e.columns&&e.columnsOn!=="cli"?(0,we.jsx)(Nde,{section:e}):(0,we.jsx)(Bde,{items:n}):null,t.map((o,i)=>(0,we.jsx)(mt,{size:"xs",c:Um(o.tone)??"dimmed",children:o.text},i)),r.length>0&&(0,we.jsx)(At,{gap:"xs",children:r.map((o,i)=>(0,we.jsx)(J0,{action:o},i))})]})})}function Mde(e,t){let r=t.trim().toLowerCase();if(!r)return e;let n=o=>[o.label,o.hint,o.description,o.keywords,o.group].some(i=>i?.toLowerCase().includes(r));return{...e,sections:e.sections.map(o=>({...o,facts:[],actions:[],items:(o.items??[]).filter(n)})).filter(o=>o.items.length>0)}}function yq({page:e,toolbar:t}){let r=Mv(),[n,o]=(0,jv.useState)(""),i=(0,jv.useMemo)(()=>e.sections.reduce((u,d)=>u+(d.items?.length??0),0),[e]),a=(0,jv.useMemo)(()=>Mde(e,n),[e,n]),s=(e.actions??[]).filter(Fu),l=e.empty,c=Fu(l?.action)?l?.action:void 0;return(0,we.jsxs)(fr,{gap:"md",children:[(0,we.jsxs)(At,{justify:"space-between",gap:"xs",children:[(0,we.jsx)(Wa,{order:2,children:e.title}),(0,we.jsxs)(At,{gap:"xs",children:[t,s.map((u,d)=>(0,we.jsx)(J0,{action:u},d))]})]}),e.notice&&(0,we.jsx)(mn,{color:Um(e.notice.tone)??"blue",variant:"light",p:"xs",children:e.notice.text}),i>zde&&(0,we.jsx)(Yi,{placeholder:"Search",value:n,onChange:u=>o(u.currentTarget.value),"aria-label":"Search this page"}),!RZ(e)&&l?(0,we.jsx)(Ac,{withBorder:!0,padding:"lg",radius:"md",children:(0,we.jsxs)(fr,{gap:"sm",align:"flex-start",children:[l.title&&(0,we.jsx)(Wa,{order:4,children:l.title}),(0,we.jsx)(mt,{size:"sm",children:l.text}),c&&(0,we.jsx)(bt,{onClick:()=>{r(c)},children:c.label})]})}):a.sections.map(u=>(0,we.jsx)(Lde,{section:u},u.id))]})}var jl=b(R(),1);function jde(e,t){let r=e.tabs;if(!r)return{};let n=t[r.param];return{[r.param]:r.choices.some(o=>o.value===n)?n:r.choices[0].value}}function Ude({view:e,params:t}){let r=IZ(e,t),o=Object.keys(e.queries).map(c=>[c,ZZ(e.queries[c],r[c])]),i=o.find(([,c])=>c.error);if(i){let c=i[1].error;return(0,jl.jsx)(mn,{color:"red",title:c.message,children:c.fix??"Try again in a moment."})}if(o.some(([,c])=>c.pending))return(0,jl.jsx)(ro,{});let a=e.build(Object.fromEntries(o.map(([c,u])=>[c,u.data])),t),s=e.tabs,l=s?(0,jl.jsx)(Uh,{size:"xs",data:s.choices.map(c=>({value:c.value,label:c.label})),value:t[s.param],onChange:c=>bi(Ja(e.id,{[s.param]:c}))}):void 0;return(0,jl.jsx)(yq,{page:a,toolbar:l})}function _q({view:e,params:t}){let r=BZ(e);if(!r)return(0,jl.jsxs)(mn,{color:"orange",children:["There is no page called ",e,"."]});let n=jde(r,t);return(0,jl.jsx)(Ude,{view:r,params:n},e+JSON.stringify(n))}var _n=b(R(),1),Vde={Agents:c$,Sessions:d$,Sandbox:tI,Apps:s$,Settings:u$,Accounts:m$,Maintenance:f$};function u4({active:e,bare:t=!1,children:r}){let[n,{toggle:o,close:i}]=zS(!1);return(0,_n.jsxs)(Ko,{header:{height:48},navbar:{width:220,breakpoint:"sm",collapsed:{mobile:!n}},padding:t?0:"md",children:[(0,_n.jsx)(Ko.Header,{children:(0,_n.jsxs)(At,{h:"100%",px:"md",gap:"sm",children:[(0,_n.jsx)(Sh,{opened:n,onClick:o,hiddenFrom:"sm",size:"sm","aria-label":"Navigation"}),(0,_n.jsx)(mt,{fw:700,children:"Sandbox"})]})}),(0,_n.jsx)(Ko.Navbar,{p:"xs","aria-label":"Main",children:LZ.map(a=>{let s=Vde[a.label]??tI,l=(0,_n.jsx)(Nh,{label:a.label,leftSection:(0,_n.jsx)(s,{size:18,stroke:1.6}),active:a.view!==void 0&&a.view===e,disabled:!a.view,href:a.view?Ja(a.view):void 0,onClick:c=>{c.preventDefault(),a.view&&(i(),bi(Ja(a.view)))}},a.label);return a.view?l:(0,_n.jsx)(Lc,{label:a.elsewhere,position:"right",multiline:!0,w:240,children:(0,_n.jsx)("div",{children:l})},a.label)})}),(0,_n.jsx)(Ko.Main,{style:t?{display:"flex",height:"100dvh"}:void 0,children:r})]})}var Jn=b(R(),1);function Hde(e){let t=/^#k=([0-9a-f]{64})$/.exec(e);return t?t[1]:null}async function Wde(){let e=Hde(location.hash);if(e){history.replaceState(null,"",location.pathname+location.search);try{await Hf.login(e)}catch{return"out"}}try{return await Hf.info(),"in"}catch{return"out"}}function Iq(){let[e,t]=(0,Y0.useState)("checking"),r=u9();return(0,Y0.useEffect)(()=>{Wde().then(t)},[]),e==="checking"?(0,Jn.jsx)(cf,{h:"100dvh",children:(0,Jn.jsx)(ro,{})}):e==="out"?(0,Jn.jsx)(cf,{h:"100dvh",p:"md",children:(0,Jn.jsxs)(fr,{gap:"xs",align:"center",children:[(0,Jn.jsx)(Wa,{order:3,children:"Not signed in"}),(0,Jn.jsx)(mt,{children:"Open this page with sandbox web open on this PC. It signs you in."})]})}):r.page==="terminal"?(0,Jn.jsx)(u4,{active:"sessions",bare:!0,children:(0,Jn.jsx)(yU,{id:r.id})}):(0,Jn.jsx)(u4,{active:r.view,children:(0,Jn.jsx)(_q,{view:r.view,params:r.params})})}var wq=[500,1e3,2e3,4e3,8e3],eS=class{constructor(){Kt(this,"socket",null);Kt(this,"attempt",0);Kt(this,"next",1);Kt(this,"queue",[]);Kt(this,"calls",new Map);Kt(this,"subscriptions",new Map);Kt(this,"listeners",new Set)}onConnection(t){return this.listeners.add(t),()=>this.listeners.delete(t)}connect(){if(this.socket)return this.socket;let t=location.protocol==="https:"?"wss:":"ws:",r=new WebSocket(t+"//"+location.host+"/api/rpc");return this.socket=r,r.onopen=()=>{this.attempt=0,this.listeners.forEach(n=>n(!0));for(let[n,o]of this.subscriptions)this.send({t:"subscribe",id:n,query:o.query,input:o.input});for(let n of this.queue.splice(0))r.send(n)},r.onmessage=n=>{if(typeof n.data!="string")return;let o;try{o=JSON.parse(n.data)}catch{return}let i=$Z.safeParse(o);i.success&&this.receive(i.data)},r.onclose=()=>{if(this.socket!==r)return;this.socket=null,this.listeners.forEach(o=>o(!1));for(let o of this.calls.values())o.reject(new Error("The connection to the sandbox web server dropped."));this.calls.clear();let n=wq[Math.min(this.attempt++,wq.length-1)];this.subscriptions.size&&window.setTimeout(()=>this.connect(),n)},r}send(t){let r=JSON.stringify(t),n=this.connect();n.readyState===WebSocket.OPEN?n.send(r):this.queue.push(r)}async receive(t){let r=this.subscriptions.get(t.id);if(r){t.t==="data"&&r.data(t.output),t.t==="error"&&r.error(Qz(t.error));return}let n=this.calls.get(t.id);if(n)switch(t.t){case"progress":n.handlers.progress?.(t.text);return;case"log":n.handlers.log?.(t.text,t.tone);return;case"ask":{let o=await n.handlers.ask(t.question);this.send({t:"answer",id:t.id,value:o});return}case"result":this.calls.delete(t.id),n.resolve(t.output);return;case"error":this.calls.delete(t.id),n.reject(Qz(t.error));return}}call(t,r,n){let o="c"+this.next++;return new Promise((i,a)=>{this.calls.set(o,{handlers:n,resolve:i,reject:a}),this.send({t:"call",id:o,op:t,input:r})})}subscribe(t,r,n,o){let i="s"+this.next++;return this.subscriptions.set(i,{query:t,input:r,data:n,error:o}),this.send({t:"subscribe",id:i,query:t,input:r}),()=>{this.subscriptions.delete(i),this.socket?.readyState===WebSocket.OPEN&&this.send({t:"unsubscribe",id:i})}}};var Ul=b(R(),1),Zde={primaryColor:"blue",defaultRadius:"md"},qde=new o$({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}}),Kde=new eS,Sq=document.getElementById("root");Sq&&(0,kq.createRoot)(Sq).render((0,Ul.jsx)(xx,{theme:Zde,defaultColorScheme:"auto",children:(0,Ul.jsx)(LP,{client:qde,children:(0,Ul.jsx)(HZ,{client:Kde,children:(0,Ul.jsxs)(PP,{children:[(0,Ul.jsx)(gi,{position:"bottom-right"}),(0,Ul.jsx)(Iq,{})]})})})}));