home-hosted 0.13.0 → 0.20.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 (485) hide show
  1. package/README.md +117 -322
  2. package/bin/home-hosted.mjs +41 -0
  3. package/dist/chunks/account-DiLrSyww.js +359 -0
  4. package/dist/chunks/account-DiLrSyww.js.map +1 -0
  5. package/dist/chunks/add-DEIYVkNK.js +183 -0
  6. package/dist/chunks/add-DEIYVkNK.js.map +1 -0
  7. package/dist/chunks/{archive-DP-XQR8X.js → archive-DFi3qK1c.js} +25 -73
  8. package/dist/chunks/archive-DFi3qK1c.js.map +1 -0
  9. package/dist/chunks/{atomic-C1PfJpE7.js → atomic-SZUwDtGD.js} +3 -6
  10. package/dist/chunks/atomic-SZUwDtGD.js.map +1 -0
  11. package/dist/chunks/{backup-CZcVca2a.js → backup-DnyxIzw0.js} +110 -190
  12. package/dist/chunks/backup-DnyxIzw0.js.map +1 -0
  13. package/dist/chunks/backups-BrrN6cwW.js +2203 -0
  14. package/dist/chunks/backups-BrrN6cwW.js.map +1 -0
  15. package/dist/chunks/bind-DIxrnUst.js +43 -0
  16. package/dist/chunks/bind-DIxrnUst.js.map +1 -0
  17. package/dist/chunks/config-text-DxMOQQnk.js +34 -0
  18. package/dist/chunks/config-text-DxMOQQnk.js.map +1 -0
  19. package/dist/chunks/{contracts-CMBD1TF9.js → contracts-CxZ7u1L3.js} +1239 -1454
  20. package/dist/chunks/contracts-CxZ7u1L3.js.map +1 -0
  21. package/dist/chunks/daemon-BAAYUYQC.js +211 -0
  22. package/dist/chunks/daemon-BAAYUYQC.js.map +1 -0
  23. package/dist/chunks/daemon-log-Ccu-69vB.js +179 -0
  24. package/dist/chunks/daemon-log-Ccu-69vB.js.map +1 -0
  25. package/dist/chunks/deploy-CggSOEkq.js +144 -0
  26. package/dist/chunks/deploy-CggSOEkq.js.map +1 -0
  27. package/dist/chunks/{docker-Cy9Lyvda.js → docker--Un0uLfF.js} +32 -68
  28. package/dist/chunks/docker--Un0uLfF.js.map +1 -0
  29. package/dist/chunks/{down-pKbGCW9d.js → down-CpIN7LEQ.js} +34 -94
  30. package/dist/chunks/down-CpIN7LEQ.js.map +1 -0
  31. package/dist/chunks/exposure-CDJNvOCK.js +229 -0
  32. package/dist/chunks/exposure-CDJNvOCK.js.map +1 -0
  33. package/dist/chunks/import-Bd4VZH0f.js +205 -0
  34. package/dist/chunks/import-Bd4VZH0f.js.map +1 -0
  35. package/dist/chunks/import-plan--fDS_l5r.js +147 -0
  36. package/dist/chunks/import-plan--fDS_l5r.js.map +1 -0
  37. package/dist/chunks/import-write-BTfbeV26.js +42 -0
  38. package/dist/chunks/import-write-BTfbeV26.js.map +1 -0
  39. package/dist/chunks/{init-BZ7hK9Vf.js → init-Bv3oH65x.js} +14 -50
  40. package/dist/chunks/init-Bv3oH65x.js.map +1 -0
  41. package/dist/chunks/job-CYOdN6Ub.js +341 -0
  42. package/dist/chunks/job-CYOdN6Ub.js.map +1 -0
  43. package/dist/chunks/jobs-BX4ahcfh.js +489 -0
  44. package/dist/chunks/jobs-BX4ahcfh.js.map +1 -0
  45. package/dist/chunks/last-stop-DD3lHwo_.js +42 -0
  46. package/dist/chunks/last-stop-DD3lHwo_.js.map +1 -0
  47. package/dist/chunks/layout-D0ysDNav.js +18 -0
  48. package/dist/chunks/layout-D0ysDNav.js.map +1 -0
  49. package/dist/chunks/lazy-kfcBNeqj.js +48 -0
  50. package/dist/chunks/lazy-kfcBNeqj.js.map +1 -0
  51. package/dist/chunks/log-buffer-B7jmn7ts.js +110 -0
  52. package/dist/chunks/log-buffer-B7jmn7ts.js.map +1 -0
  53. package/dist/chunks/log-files-CZL2UhuE.js +488 -0
  54. package/dist/chunks/log-files-CZL2UhuE.js.map +1 -0
  55. package/dist/chunks/{logger-B5U4GD3j.js → logger-BnrKTBHQ.js} +2 -6
  56. package/dist/chunks/logger-BnrKTBHQ.js.map +1 -0
  57. package/dist/chunks/{logs---TI_bxM.js → logs-DxKI6OW2.js} +23 -73
  58. package/dist/chunks/logs-DxKI6OW2.js.map +1 -0
  59. package/dist/chunks/ls-BseUHy_m.js +128 -0
  60. package/dist/chunks/ls-BseUHy_m.js.map +1 -0
  61. package/dist/chunks/migrate-D4w_dXDm.js +268 -0
  62. package/dist/chunks/migrate-D4w_dXDm.js.map +1 -0
  63. package/dist/chunks/{nanny-B-Eu0sFW.js → nanny-BWh7nuvv.js} +21 -14
  64. package/dist/chunks/nanny-BWh7nuvv.js.map +1 -0
  65. package/dist/chunks/{nanny-ChMtq1Zl.js → nanny-BjF2-1pv.js} +3 -3
  66. package/dist/chunks/{nanny-ChMtq1Zl.js.map → nanny-BjF2-1pv.js.map} +1 -1
  67. package/dist/chunks/nanny-DGTXVq5d.js +806 -0
  68. package/dist/chunks/nanny-DGTXVq5d.js.map +1 -0
  69. package/dist/chunks/{nanny-sweep-DErnlPY1.js → nanny-sweep-hjmZ_p7S.js} +14 -24
  70. package/dist/chunks/nanny-sweep-hjmZ_p7S.js.map +1 -0
  71. package/dist/chunks/{nearest-6KgQEDUe.js → nearest-DOx4jySJ.js} +2 -10
  72. package/dist/chunks/nearest-DOx4jySJ.js.map +1 -0
  73. package/dist/chunks/{parse-DhmG26fI.js → parse-DVMPLUDe.js} +47 -72
  74. package/dist/chunks/parse-DVMPLUDe.js.map +1 -0
  75. package/dist/chunks/password-policy-Clq6PGE-.js +9 -0
  76. package/dist/chunks/password-policy-Clq6PGE-.js.map +1 -0
  77. package/dist/chunks/{paths-CGlGDrOU.js → paths-C34-TJLh.js} +32 -56
  78. package/dist/chunks/paths-C34-TJLh.js.map +1 -0
  79. package/dist/chunks/{port-B8WBTRMk.js → port-CnsrxKNR.js} +27 -71
  80. package/dist/chunks/port-CnsrxKNR.js.map +1 -0
  81. package/dist/chunks/process-CboOFPU_.js +192 -0
  82. package/dist/chunks/process-CboOFPU_.js.map +1 -0
  83. package/dist/chunks/{restart-Des4DrAN.js → restart-C0J8dZ2L.js} +11 -29
  84. package/dist/chunks/restart-C0J8dZ2L.js.map +1 -0
  85. package/dist/chunks/run-deploy-DoNDvwT4.js +91 -0
  86. package/dist/chunks/run-deploy-DoNDvwT4.js.map +1 -0
  87. package/dist/chunks/{schema-B240VXcV.js → schema-CZ6f-PHD.js} +7 -20
  88. package/dist/chunks/schema-CZ6f-PHD.js.map +1 -0
  89. package/dist/chunks/secret-MY397r90.js +219 -0
  90. package/dist/chunks/secret-MY397r90.js.map +1 -0
  91. package/dist/chunks/secrets-CG5N4lwY.js +1061 -0
  92. package/dist/chunks/secrets-CG5N4lwY.js.map +1 -0
  93. package/dist/chunks/server-Dm_dXfTW.js +255 -0
  94. package/dist/chunks/server-Dm_dXfTW.js.map +1 -0
  95. package/dist/chunks/server-attention-UQwYXqKe.js +10 -0
  96. package/dist/chunks/server-attention-UQwYXqKe.js.map +1 -0
  97. package/dist/chunks/server-create-D7nvhgBd.js +96 -0
  98. package/dist/chunks/server-create-D7nvhgBd.js.map +1 -0
  99. package/dist/chunks/server-ids-BEQD2rFz.js +23 -0
  100. package/dist/chunks/server-ids-BEQD2rFz.js.map +1 -0
  101. package/dist/chunks/server-vars-DMYmHutL.js +27 -0
  102. package/dist/chunks/server-vars-DMYmHutL.js.map +1 -0
  103. package/dist/chunks/service-C8l-ewNA.js +585 -0
  104. package/dist/chunks/service-C8l-ewNA.js.map +1 -0
  105. package/dist/chunks/{settings-xu-XTfWg.js → settings-CtYDs5PX.js} +62 -78
  106. package/dist/chunks/settings-CtYDs5PX.js.map +1 -0
  107. package/dist/chunks/{setup-temp-CAN4_bA-.js → setup-temp-TAtDmMMU.js} +43 -37
  108. package/dist/chunks/setup-temp-TAtDmMMU.js.map +1 -0
  109. package/dist/chunks/shape-CDGeYl_J.js +9 -0
  110. package/dist/chunks/shape-CDGeYl_J.js.map +1 -0
  111. package/dist/chunks/{src-BtWMFmzZ.js → src-BnzkVy_M.js} +12548 -10576
  112. package/dist/chunks/src-BnzkVy_M.js.map +1 -0
  113. package/dist/chunks/{status-DT1EsA-B.js → status-efbbfYZQ.js} +53 -26
  114. package/dist/chunks/status-efbbfYZQ.js.map +1 -0
  115. package/dist/chunks/store-Bs_Lljjm.js +2082 -0
  116. package/dist/chunks/store-Bs_Lljjm.js.map +1 -0
  117. package/dist/chunks/template-xan58bJh.js +28 -0
  118. package/dist/chunks/template-xan58bJh.js.map +1 -0
  119. package/dist/chunks/token-DDeWfZA4.js +142 -0
  120. package/dist/chunks/token-DDeWfZA4.js.map +1 -0
  121. package/dist/chunks/{ui-D562aqw5.js → ui-BcIAtyxE.js} +68 -79
  122. package/dist/chunks/ui-BcIAtyxE.js.map +1 -0
  123. package/dist/chunks/{ui-dir-CsU3uLNV.js → ui-dir-ClCzVRc3.js} +3 -7
  124. package/dist/chunks/ui-dir-ClCzVRc3.js.map +1 -0
  125. package/dist/chunks/ui-format-CDvvqOoi.js +53 -0
  126. package/dist/chunks/ui-format-CDvvqOoi.js.map +1 -0
  127. package/dist/chunks/{ui-release-DKzVvlLd.js → ui-release-XbJ85pYI.js} +36 -38
  128. package/dist/chunks/ui-release-XbJ85pYI.js.map +1 -0
  129. package/dist/chunks/{ui-revert-EkBBwRTt.js → ui-revert-Dgawq7ze.js} +4 -4
  130. package/dist/chunks/ui-revert-Dgawq7ze.js.map +1 -0
  131. package/dist/chunks/{ui-switch-BnZTdMDd.js → ui-switch-CfQMbZ0g.js} +31 -38
  132. package/dist/chunks/ui-switch-CfQMbZ0g.js.map +1 -0
  133. package/dist/chunks/{ui-update-_xryLYxw.js → ui-update-B3PPivUm.js} +30 -48
  134. package/dist/chunks/ui-update-B3PPivUm.js.map +1 -0
  135. package/dist/chunks/ui-update-CAiH2tFb.js +109 -0
  136. package/dist/chunks/ui-update-CAiH2tFb.js.map +1 -0
  137. package/dist/chunks/{up-Pdz-l6IH.js → up-BQSnYxYd.js} +47 -53
  138. package/dist/chunks/up-BQSnYxYd.js.map +1 -0
  139. package/dist/chunks/{usage-DFrCVXpT.js → usage-KG8TeOio.js} +7 -20
  140. package/dist/chunks/usage-KG8TeOio.js.map +1 -0
  141. package/dist/chunks/{workspaces-DYcfvKV_.js → workspaces-D9akpzU8.js} +80 -68
  142. package/dist/chunks/workspaces-D9akpzU8.js.map +1 -0
  143. package/dist/chunks/{wsl-temperature-BiCI4iK6.js → wsl-temperature-D-_d4Yk1.js} +47 -42
  144. package/dist/chunks/wsl-temperature-D-_d4Yk1.js.map +1 -0
  145. package/dist/cli.js +306 -238
  146. package/dist/cli.js.map +1 -1
  147. package/dist/client.js +76 -29
  148. package/dist/client.js.map +1 -1
  149. package/dist/types/api/acme.d.ts +3 -7
  150. package/dist/types/api/auth/$.routes.d.ts +107 -16
  151. package/dist/types/api/backups.d.ts +5 -5
  152. package/dist/types/api/control.d.ts +747 -38
  153. package/dist/types/api/ddns.d.ts +13 -18
  154. package/dist/types/api/events.d.ts +9 -3
  155. package/dist/types/api/health.d.ts +2 -4
  156. package/dist/types/api/jobs.d.ts +438 -0
  157. package/dist/types/api/logs.d.ts +20 -0
  158. package/dist/types/api/metrics.d.ts +2 -5
  159. package/dist/types/api/notifications.d.ts +3 -6
  160. package/dist/types/api/proxy.d.ts +63 -23
  161. package/dist/types/api/server-ops.d.ts +17 -0
  162. package/dist/types/api/servers/$.routes.d.ts +418 -186
  163. package/dist/types/api/session-required.d.ts +16 -0
  164. package/dist/types/api/settings.d.ts +7 -7
  165. package/dist/types/api/state.d.ts +100 -10
  166. package/dist/types/api/static.d.ts +2 -2
  167. package/dist/types/api/tls.d.ts +2 -5
  168. package/dist/types/api/workspaces/$.routes.d.ts +186 -12
  169. package/dist/types/api/wsl-temperature.d.ts +4 -10
  170. package/dist/types/app.d.ts +4511 -2778
  171. package/dist/types/cli/account.d.ts +23 -0
  172. package/dist/types/cli/add.d.ts +96 -0
  173. package/dist/types/cli/args.d.ts +24 -35
  174. package/dist/types/cli/backup-offline.d.ts +2 -8
  175. package/dist/types/cli/backup.d.ts +12 -21
  176. package/dist/types/cli/down.d.ts +15 -41
  177. package/dist/types/cli/import-plan.d.ts +55 -0
  178. package/dist/types/cli/import-write.d.ts +5 -0
  179. package/dist/types/cli/import.d.ts +86 -0
  180. package/dist/types/cli/io.d.ts +26 -35
  181. package/dist/types/cli/job.d.ts +99 -0
  182. package/dist/types/cli/logs.d.ts +1 -10
  183. package/dist/types/cli/ls.d.ts +57 -0
  184. package/dist/types/cli/migrate.d.ts +31 -8
  185. package/dist/types/cli/nearest.d.ts +1 -9
  186. package/dist/types/cli/run-deploy.d.ts +36 -0
  187. package/dist/types/cli/secret.d.ts +90 -0
  188. package/dist/types/cli/server.d.ts +6 -15
  189. package/dist/types/cli/service.d.ts +135 -0
  190. package/dist/types/cli/setup-temp.d.ts +17 -13
  191. package/dist/types/cli/status.d.ts +7 -1
  192. package/dist/types/cli/token.d.ts +6 -0
  193. package/dist/types/cli/ui-switch.d.ts +3 -14
  194. package/dist/types/cli/ui-update.d.ts +3 -16
  195. package/dist/types/cli/up.d.ts +9 -22
  196. package/dist/types/cli/usage.d.ts +2 -6
  197. package/dist/types/cli.d.ts +1 -10
  198. package/dist/types/client.d.ts +4099 -1142
  199. package/dist/types/config/accounts.d.ts +16 -0
  200. package/dist/types/config/jobs.d.ts +68 -0
  201. package/dist/types/config/layout.d.ts +2 -8
  202. package/dist/types/config/migrations.d.ts +9 -41
  203. package/dist/types/config/parse.d.ts +8 -13
  204. package/dist/types/config/patch.d.ts +1 -6
  205. package/dist/types/config/schema.d.ts +16 -18
  206. package/dist/types/config/secret-parts.d.ts +6 -27
  207. package/dist/types/config/secrets.d.ts +167 -88
  208. package/dist/types/config/seed.d.ts +1 -6
  209. package/dist/types/config/server-ids.d.ts +2 -11
  210. package/dist/types/config/settings.d.ts +13 -49
  211. package/dist/types/config/store.d.ts +17 -54
  212. package/dist/types/config/workspaces.d.ts +24 -56
  213. package/dist/types/helpers/action-result.d.ts +18 -32
  214. package/dist/types/helpers/atomic.d.ts +1 -4
  215. package/dist/types/helpers/backoff.d.ts +0 -1
  216. package/dist/types/helpers/bind.d.ts +3 -11
  217. package/dist/types/helpers/config-text.d.ts +4 -19
  218. package/dist/types/helpers/cookies.d.ts +2 -7
  219. package/dist/types/helpers/copy-tree.d.ts +4 -12
  220. package/dist/types/helpers/daemon-log.d.ts +8 -33
  221. package/dist/types/helpers/daemon.d.ts +20 -70
  222. package/dist/types/helpers/deferred.d.ts +2 -4
  223. package/dist/types/helpers/env-file.d.ts +2 -7
  224. package/dist/types/helpers/error.d.ts +3 -14
  225. package/dist/types/helpers/event-stream.d.ts +18 -10
  226. package/dist/types/helpers/factory.d.ts +2 -3
  227. package/dist/types/helpers/last-stop.d.ts +5 -12
  228. package/dist/types/helpers/logger.d.ts +1 -5
  229. package/dist/types/helpers/open.d.ts +0 -1
  230. package/dist/types/helpers/openapi.d.ts +19 -5
  231. package/dist/types/helpers/paths.d.ts +18 -53
  232. package/dist/types/helpers/restore-lock.d.ts +2 -17
  233. package/dist/types/helpers/runtime.d.ts +3 -13
  234. package/dist/types/helpers/secret-compare.d.ts +2 -10
  235. package/dist/types/helpers/server-create.d.ts +15 -0
  236. package/dist/types/helpers/shell.d.ts +2 -16
  237. package/dist/types/helpers/sse.d.ts +8 -6
  238. package/dist/types/helpers/ui-dir.d.ts +1 -5
  239. package/dist/types/helpers/utf8-chunks.d.ts +2 -8
  240. package/dist/types/helpers/validate.d.ts +2 -4
  241. package/dist/types/helpers/validator.d.ts +8 -4
  242. package/dist/types/helpers/version.d.ts +1 -6
  243. package/dist/types/helpers/workspace.d.ts +24 -16
  244. package/dist/types/index.d.ts +2 -3
  245. package/dist/types/middleware/auth.d.ts +8 -27
  246. package/dist/types/middleware/body-limit.d.ts +10 -0
  247. package/dist/types/middleware/host.d.ts +4 -23
  248. package/dist/types/middleware/loopback.d.ts +1 -8
  249. package/dist/types/middleware/token-scope.d.ts +34 -0
  250. package/dist/types/node-compat.d.ts +43 -0
  251. package/dist/types/openapi-reference.d.ts +4 -19
  252. package/dist/types/openapi.d.ts +5 -8
  253. package/dist/types/providers/archive.d.ts +8 -25
  254. package/dist/types/providers/backup-hook.d.ts +4 -19
  255. package/dist/types/providers/ddns/dyndns2.d.ts +0 -3
  256. package/dist/types/providers/ddns/index.d.ts +2 -3
  257. package/dist/types/providers/ddns/ip.d.ts +2 -12
  258. package/dist/types/providers/ddns/namecheap-api.d.ts +3 -2
  259. package/dist/types/providers/ddns/types.d.ts +6 -32
  260. package/dist/types/providers/ddns/zone.d.ts +1 -4
  261. package/dist/types/providers/docker.d.ts +18 -45
  262. package/dist/types/providers/entry-state.d.ts +4 -9
  263. package/dist/types/providers/health-check.d.ts +1 -5
  264. package/dist/types/providers/host.d.ts +33 -108
  265. package/dist/types/providers/identity.d.ts +9 -34
  266. package/dist/types/providers/log-tail.d.ts +14 -24
  267. package/dist/types/providers/nanny-sweep.d.ts +8 -25
  268. package/dist/types/providers/nanny.d.ts +16 -58
  269. package/dist/types/providers/port.d.ts +28 -83
  270. package/dist/types/providers/proc.d.ts +22 -80
  271. package/dist/types/providers/process.d.ts +12 -36
  272. package/dist/types/providers/proxy/admin.d.ts +11 -0
  273. package/dist/types/providers/proxy/types.d.ts +4 -16
  274. package/dist/types/providers/telegram.d.ts +1 -17
  275. package/dist/types/providers/ui-release.d.ts +15 -25
  276. package/dist/types/providers/webhook.d.ts +8 -29
  277. package/dist/types/providers/wsl-temperature.d.ts +13 -22
  278. package/dist/types/services/acme-challenge.d.ts +2 -16
  279. package/dist/types/services/auth.d.ts +65 -80
  280. package/dist/types/services/backups/archive-safety.d.ts +30 -0
  281. package/dist/types/services/backups/paths.d.ts +31 -0
  282. package/dist/types/services/backups.d.ts +61 -271
  283. package/dist/types/services/config-watch.d.ts +3 -15
  284. package/dist/types/services/control-server.d.ts +6 -10
  285. package/dist/types/services/ddns.d.ts +12 -13
  286. package/dist/types/services/dependencies.d.ts +3 -14
  287. package/dist/types/services/deploy.d.ts +34 -0
  288. package/dist/types/services/events.d.ts +15 -9
  289. package/dist/types/services/exposure.d.ts +13 -63
  290. package/dist/types/services/history.d.ts +5 -14
  291. package/dist/types/services/host-monitor.d.ts +6 -11
  292. package/dist/types/services/init.d.ts +5 -35
  293. package/dist/types/services/job-ledger.d.ts +27 -0
  294. package/dist/types/services/jobs.d.ts +113 -0
  295. package/dist/types/services/log-buffer.d.ts +7 -8
  296. package/dist/types/services/log-files.d.ts +12 -42
  297. package/dist/types/services/log-relay.d.ts +3 -13
  298. package/dist/types/services/nanny.d.ts +3 -10
  299. package/dist/types/services/notifications.d.ts +31 -61
  300. package/dist/types/services/panel.d.ts +32 -78
  301. package/dist/types/services/proxy-certificates/certificates.d.ts +31 -69
  302. package/dist/types/services/proxy-config.d.ts +15 -36
  303. package/dist/types/services/proxy-dns01.d.ts +14 -0
  304. package/dist/types/services/proxy.d.ts +73 -254
  305. package/dist/types/services/scheduler.d.ts +46 -0
  306. package/dist/types/services/state.d.ts +17 -8
  307. package/dist/types/services/supervisor/compose.d.ts +2 -6
  308. package/dist/types/services/supervisor/entry.d.ts +29 -32
  309. package/dist/types/services/supervisor/health.d.ts +8 -31
  310. package/dist/types/services/supervisor/job-run.d.ts +36 -0
  311. package/dist/types/services/supervisor/output.d.ts +13 -77
  312. package/dist/types/services/supervisor/persistent.d.ts +5 -11
  313. package/dist/types/services/supervisor/port-preflight.d.ts +4 -10
  314. package/dist/types/services/supervisor/records.d.ts +27 -60
  315. package/dist/types/services/supervisor/restart-required.d.ts +13 -0
  316. package/dist/types/services/supervisor/spawn.d.ts +3 -5
  317. package/dist/types/services/supervisor/view.d.ts +3 -1
  318. package/dist/types/services/supervisor.d.ts +31 -43
  319. package/dist/types/services/tls.d.ts +6 -17
  320. package/dist/types/services/ui-update.d.ts +19 -17
  321. package/dist/types/services/ui.d.ts +10 -19
  322. package/dist/types/shared/action-outcome.d.ts +2 -7
  323. package/dist/types/shared/api-client.d.ts +133 -177
  324. package/dist/types/shared/api-scopes.d.ts +17 -0
  325. package/dist/types/shared/backup-scope.d.ts +16 -90
  326. package/dist/types/shared/clone.d.ts +2 -11
  327. package/dist/types/shared/contracts/accounts.d.ts +99 -0
  328. package/dist/types/shared/contracts/backups.d.ts +219 -0
  329. package/dist/types/shared/contracts/ddns.d.ts +208 -0
  330. package/dist/types/shared/contracts/frames.d.ts +1395 -0
  331. package/dist/types/shared/contracts/index.d.ts +3 -0
  332. package/dist/types/shared/contracts/logs.d.ts +107 -0
  333. package/dist/types/shared/contracts/proxy.d.ts +303 -0
  334. package/dist/types/shared/contracts.d.ts +852 -1982
  335. package/dist/types/shared/cpu-scale.d.ts +3 -19
  336. package/dist/types/shared/crash-cause.d.ts +8 -0
  337. package/dist/types/shared/cron.d.ts +70 -0
  338. package/dist/types/shared/ddns-form.d.ts +9 -43
  339. package/dist/types/shared/endpoint.d.ts +1 -7
  340. package/dist/types/shared/error-codes.d.ts +438 -0
  341. package/dist/types/shared/error-message.d.ts +1 -7
  342. package/dist/types/shared/fields.d.ts +7 -17
  343. package/dist/types/shared/form-repair.d.ts +1 -5
  344. package/dist/types/shared/generated.d.ts +3 -19
  345. package/dist/types/shared/host-readings.d.ts +25 -128
  346. package/dist/types/shared/lazy.d.ts +1 -1
  347. package/dist/types/shared/live-frames.d.ts +2 -8
  348. package/dist/types/shared/live-series.d.ts +2 -8
  349. package/dist/types/shared/live-store.d.ts +4 -8
  350. package/dist/types/shared/log-download.d.ts +6 -0
  351. package/dist/types/shared/meta.d.ts +6 -0
  352. package/dist/types/shared/password-policy.d.ts +10 -0
  353. package/dist/types/shared/patch-diff.d.ts +13 -72
  354. package/dist/types/shared/port-reading.d.ts +18 -0
  355. package/dist/types/shared/probe-latency.d.ts +3 -21
  356. package/dist/types/shared/proxy-form.d.ts +33 -74
  357. package/dist/types/shared/proxy-validate.d.ts +11 -0
  358. package/dist/types/shared/query-params.d.ts +8 -0
  359. package/dist/types/shared/server-attention.d.ts +2 -27
  360. package/dist/types/shared/server-form.d.ts +15 -54
  361. package/dist/types/shared/server-key.d.ts +1 -12
  362. package/dist/types/shared/server-readings.d.ts +7 -32
  363. package/dist/types/shared/server-url.d.ts +9 -31
  364. package/dist/types/shared/shape.d.ts +1 -16
  365. package/dist/types/shared/stream-access.d.ts +2 -8
  366. package/dist/types/shared/ui-format.d.ts +25 -65
  367. package/docs/API.md +315 -107
  368. package/docs/BACKUPS.md +61 -56
  369. package/docs/CLI.md +255 -49
  370. package/docs/DDNS.md +35 -49
  371. package/docs/JOBS.md +129 -0
  372. package/docs/NOTIFICATIONS.md +58 -90
  373. package/docs/REVERSE_PROXY.md +116 -188
  374. package/docs/SECURITY.md +126 -44
  375. package/docs/SERVERS.md +282 -409
  376. package/docs/UI_CREATION.md +90 -47
  377. package/docs/demo/blank-host-restore.sh +31 -7
  378. package/package.json +15 -6
  379. package/scripts/prepare.mjs +47 -0
  380. package/uis/stock/dist/assets/CopyButton-8mliL0xi.js +1 -0
  381. package/uis/stock/dist/assets/GlobalSettingsView-BINXY77E.js +1 -0
  382. package/uis/stock/dist/assets/LogViewer-kiSnTwdY.js +1 -0
  383. package/uis/stock/dist/assets/LogsView-DDXf_ONs.js +1 -0
  384. package/uis/stock/dist/assets/Modal-lrUuViF2.js +39 -0
  385. package/uis/stock/dist/assets/ProxyView-uXMaJdSQ.js +1 -0
  386. package/uis/stock/dist/assets/ServerDetailView-CW0Vb_c0.js +4 -0
  387. package/uis/stock/dist/assets/SettingsShell-B135xWjJ.js +1 -0
  388. package/uis/stock/dist/assets/SettingsView-BLtWxVkl.js +2 -0
  389. package/uis/stock/dist/assets/de-BIoTrHBQ.js +1 -0
  390. package/uis/stock/dist/assets/es-x4-ih8lH.js +1 -0
  391. package/uis/stock/dist/assets/fr-DatqBBkO.js +1 -0
  392. package/uis/stock/dist/assets/index-CnojaKcA.css +2 -0
  393. package/uis/stock/dist/assets/index-D-CiZReu.js +16 -0
  394. package/uis/stock/dist/assets/ja-CW1703Gw.js +1 -0
  395. package/uis/stock/dist/assets/ko-wFbT4XtK.js +1 -0
  396. package/uis/stock/dist/assets/ru-C1p5C4VN.js +1 -0
  397. package/uis/stock/dist/assets/useUnsavedGuard-BcsXsfCC.js +9 -0
  398. package/uis/stock/dist/assets/vi-CDqr0uie.js +1 -0
  399. package/uis/stock/dist/assets/zh-CN-BJ7iit-X.js +1 -0
  400. package/uis/stock/dist/index.html +4 -3
  401. package/uis/stock/dist/ui.json +3 -3
  402. package/dist/chunks/archive-DP-XQR8X.js.map +0 -1
  403. package/dist/chunks/atomic-C1PfJpE7.js.map +0 -1
  404. package/dist/chunks/backup-CZcVca2a.js.map +0 -1
  405. package/dist/chunks/backups-CFRaWe_m.js +0 -4691
  406. package/dist/chunks/backups-CFRaWe_m.js.map +0 -1
  407. package/dist/chunks/config-text-DifCHhnz.js +0 -50
  408. package/dist/chunks/config-text-DifCHhnz.js.map +0 -1
  409. package/dist/chunks/contracts-CMBD1TF9.js.map +0 -1
  410. package/dist/chunks/daemon-log-BVj8cDEo.js +0 -241
  411. package/dist/chunks/daemon-log-BVj8cDEo.js.map +0 -1
  412. package/dist/chunks/daemon-qKVECISl.js +0 -247
  413. package/dist/chunks/daemon-qKVECISl.js.map +0 -1
  414. package/dist/chunks/docker-Cy9Lyvda.js.map +0 -1
  415. package/dist/chunks/down-pKbGCW9d.js.map +0 -1
  416. package/dist/chunks/init-BZ7hK9Vf.js.map +0 -1
  417. package/dist/chunks/last-stop-C-BXz_XI.js +0 -53
  418. package/dist/chunks/last-stop-C-BXz_XI.js.map +0 -1
  419. package/dist/chunks/layout-DwTtmund.js +0 -24
  420. package/dist/chunks/layout-DwTtmund.js.map +0 -1
  421. package/dist/chunks/lazy-Ce5zEAq1.js +0 -66
  422. package/dist/chunks/lazy-Ce5zEAq1.js.map +0 -1
  423. package/dist/chunks/log-buffer-Dy9HHDMD.js +0 -414
  424. package/dist/chunks/log-buffer-Dy9HHDMD.js.map +0 -1
  425. package/dist/chunks/logger-B5U4GD3j.js.map +0 -1
  426. package/dist/chunks/logs---TI_bxM.js.map +0 -1
  427. package/dist/chunks/migrate-Cfoq-Vgh.js +0 -155
  428. package/dist/chunks/migrate-Cfoq-Vgh.js.map +0 -1
  429. package/dist/chunks/nanny-B-Eu0sFW.js.map +0 -1
  430. package/dist/chunks/nanny-BtWfy0QH.js +0 -1167
  431. package/dist/chunks/nanny-BtWfy0QH.js.map +0 -1
  432. package/dist/chunks/nanny-sweep-DErnlPY1.js.map +0 -1
  433. package/dist/chunks/nearest-6KgQEDUe.js.map +0 -1
  434. package/dist/chunks/parse-DhmG26fI.js.map +0 -1
  435. package/dist/chunks/paths-CGlGDrOU.js.map +0 -1
  436. package/dist/chunks/port-B8WBTRMk.js.map +0 -1
  437. package/dist/chunks/restart-Des4DrAN.js.map +0 -1
  438. package/dist/chunks/schema-B240VXcV.js.map +0 -1
  439. package/dist/chunks/secrets-BieELnZh.js +0 -562
  440. package/dist/chunks/secrets-BieELnZh.js.map +0 -1
  441. package/dist/chunks/server-Bge2r2qQ.js +0 -169
  442. package/dist/chunks/server-Bge2r2qQ.js.map +0 -1
  443. package/dist/chunks/server-ids-DRuNLVCV.js +0 -32
  444. package/dist/chunks/server-ids-DRuNLVCV.js.map +0 -1
  445. package/dist/chunks/set-password-D5vZqqSX.js +0 -43
  446. package/dist/chunks/set-password-D5vZqqSX.js.map +0 -1
  447. package/dist/chunks/set-token-obPiEJYk.js +0 -78
  448. package/dist/chunks/set-token-obPiEJYk.js.map +0 -1
  449. package/dist/chunks/settings-xu-XTfWg.js.map +0 -1
  450. package/dist/chunks/setup-temp-CAN4_bA-.js.map +0 -1
  451. package/dist/chunks/shape-DnTKzjQ2.js +0 -24
  452. package/dist/chunks/shape-DnTKzjQ2.js.map +0 -1
  453. package/dist/chunks/src-BtWMFmzZ.js.map +0 -1
  454. package/dist/chunks/status-DT1EsA-B.js.map +0 -1
  455. package/dist/chunks/ui-D562aqw5.js.map +0 -1
  456. package/dist/chunks/ui-dir-CsU3uLNV.js.map +0 -1
  457. package/dist/chunks/ui-release-DKzVvlLd.js.map +0 -1
  458. package/dist/chunks/ui-revert-EkBBwRTt.js.map +0 -1
  459. package/dist/chunks/ui-switch-BnZTdMDd.js.map +0 -1
  460. package/dist/chunks/ui-update-_xryLYxw.js.map +0 -1
  461. package/dist/chunks/up-Pdz-l6IH.js.map +0 -1
  462. package/dist/chunks/usage-DFrCVXpT.js.map +0 -1
  463. package/dist/chunks/workspaces-DYcfvKV_.js.map +0 -1
  464. package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +0 -1
  465. package/dist/types/cli/set-password.d.ts +0 -14
  466. package/dist/types/cli/set-token.d.ts +0 -21
  467. package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +0 -1
  468. package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +0 -1
  469. package/uis/stock/dist/assets/LogViewer-DIliXy62.js +0 -1
  470. package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +0 -1
  471. package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +0 -39
  472. package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +0 -1
  473. package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +0 -2
  474. package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +0 -1
  475. package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +0 -2
  476. package/uis/stock/dist/assets/de-BRITeb0H.js +0 -1
  477. package/uis/stock/dist/assets/es-B2zIEssV.js +0 -1
  478. package/uis/stock/dist/assets/fr-s0ZOBEqh.js +0 -1
  479. package/uis/stock/dist/assets/index-C1MehbKy.css +0 -2
  480. package/uis/stock/dist/assets/index-CnBN54wF.js +0 -15
  481. package/uis/stock/dist/assets/ja-CU7MR85V.js +0 -1
  482. package/uis/stock/dist/assets/ko-tL5Me6d-.js +0 -1
  483. package/uis/stock/dist/assets/ru-92yrvkNJ.js +0 -1
  484. package/uis/stock/dist/assets/vi-CzvY16k2.js +0 -1
  485. package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +0 -1
@@ -0,0 +1,39 @@
1
+ var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>w(e)===`[object Map]`,h=e=>w(e)===`[object Set]`,g=e=>w(e)===`[object Date]`,_=e=>w(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),T=e=>w(e).slice(8,-1),ee=e=>w(e)===`[object Object]`,E=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ne=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},re=/-\w/g,D=ne(e=>e.replace(re,e=>e.slice(1).toUpperCase())),ie=/\B([A-Z])/g,ae=ne(e=>e.replace(ie,`-$1`).toLowerCase()),oe=ne(e=>e.charAt(0).toUpperCase()+e.slice(1)),se=ne(e=>e?`on${oe(e)}`:``),O=(e,t)=>!Object.is(e,t),ce=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},le=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ue=e=>{let t=parseFloat(e);return isNaN(t)?e:t},de=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},fe,pe=()=>fe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},me=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function he(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?ye(r):he(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var ge=/;(?![^(]*\))/g,_e=/:([^]+)/,ve=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ye(e){let t={};return e.replace(ve,e=>e.startsWith(`/*`)?``:e).split(ge).forEach(e=>{if(e){let n=e.split(_e);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function be(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=be(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function xe(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=be(t)),n&&(e.style=he(n)),e}var Se=n(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`);function Ce(e){return!!e||e===``}function we(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Oe(e[i],t[i],n);return r}function Te(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Oe(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function Ee(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?Te(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!Oe(e[r],t[r],n))return!1}return String(e)===String(t)}function De(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Oe(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=b(e),i=b(t),r||i?e===t:(r=p(e),i=p(t),r||i?r&&i?De(e,t,n,we):!1:(r=x(e),i=x(t),r||i?!r||!i?!1:De(e,t,n,Ee):String(e)===String(t))))}function ke(e,t){return e.findIndex(e=>Oe(e,t))}var Ae=e=>!!(e&&e.__v_isRef===!0),je=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?Ae(e)?je(e.value):JSON.stringify(e,Me,2):String(e),Me=(e,t)=>Ae(t)?Me(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ne(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ne(e))}:b(t)?Ne(t):x(t)&&!p(t)&&!ee(t)?String(t):t,Ne=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Pe(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Fe,Ie=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Fe&&(Fe.active?(this.parent=Fe,this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Fe;try{return Fe=this,e()}finally{Fe=t}}}on(){++this._on===1&&(this.prevScope=Fe,Fe=this)}off(){if(this._on>0&&--this._on===0){if(Fe===this)Fe=this.prevScope;else{let e=Fe;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Le(e){return new Ie(e)}function Re(){return Fe}function ze(e,t=!1){Fe&&Fe.cleanups.push(e)}var Be,Ve=new WeakSet,He=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Fe&&(Fe.active?Fe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ve.has(this)&&(Ve.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ke(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,st(this),Ye(this);let e=Be,t=rt;Be=this,rt=!0;try{return this.fn()}finally{Xe(this),Be=e,rt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)$e(e);this.deps=this.depsTail=void 0,st(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ve.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ze(this)&&this.run()}get dirty(){return Ze(this)}},Ue=0,We,Ge;function Ke(e,t=!1){e.flags|=8,t?(e.next=Ge,Ge=e):(e.next=We,We=e)}function qe(){Ue++}function Je(){if(--Ue>0)return;if(Ge){let e=Ge;for(Ge=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;We;){let t=We;for(We=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ye(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),$e(r),et(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ze(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ct)||(e.globalVersion=ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ze(e))))return;e.flags|=2;let t=e.dep,n=Be,r=rt;Be=e,rt=!0;try{Ye(e);let n=e.fn(e._value);(t.version===0||O(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Be=n,rt=r,Xe(e),e.flags&=-3}}function $e(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)$e(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function et(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function tt(e,t){e.effect instanceof He&&(e=e.effect.fn);let n=new He(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function nt(e){e.effect.stop()}var rt=!0,it=[];function at(){it.push(rt),rt=!1}function ot(){let e=it.pop();rt=e===void 0||e}function st(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Be;Be=void 0;try{t()}finally{Be=e}}}var ct=0,lt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ut=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Be||!rt||Be===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Be)t=this.activeLink=new lt(Be,this),Be.deps?(t.prevDep=Be.depsTail,Be.depsTail.nextDep=t,Be.depsTail=t):Be.deps=Be.depsTail=t,dt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Be.depsTail,t.nextDep=void 0,Be.depsTail.nextDep=t,Be.depsTail=t,Be.deps===t&&(Be.deps=e)}return t}trigger(e){this.version++,ct++,this.notify(e)}notify(e){qe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Je()}}};function dt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)dt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ft=new WeakMap,pt=Symbol(``),mt=Symbol(``),ht=Symbol(``);function gt(e,t,n){if(rt&&Be){let t=ft.get(e);t||ft.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new ut),r.map=t,r.key=n),r.track()}}function _t(e,t,n,r,i,a){let o=ft.get(e);if(!o){ct++;return}let s=e=>{e&&e.trigger()};if(qe(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ht||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ht)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(pt)),m(e)&&s(o.get(mt)));break;case`delete`:i||(s(o.get(pt)),m(e)&&s(o.get(mt)));break;case`set`:m(e)&&s(o.get(pt))}}Je()}function vt(e,t){let n=ft.get(e);return n&&n.get(t)}function yt(e){let t=k(e);return t===e||(gt(t,`iterate`,ht),ln(e))?t:cn(e)?sn(e)?t.map(e=>pn(fn(e))):t.map(pn):t.map(fn)}function bt(e){return gt(e=k(e),`iterate`,ht),e}function xt(e,t){return cn(e)?pn(sn(e)?fn(t):t):fn(t)}var St={__proto__:null,[Symbol.iterator](){return Ct(this,Symbol.iterator,e=>xt(this,e))},concat(...e){return yt(this).concat(...e.map(e=>p(e)?yt(e):e))},entries(){return Ct(this,`entries`,e=>(e[1]=xt(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>xt(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>xt(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>xt(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return yt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return yt(this).toReversed()},toSorted(e){return yt(this).toSorted(e)},toSpliced(...e){return yt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return Ct(this,`values`,e=>xt(this,e))}};function Ct(e,t,n){let r=bt(e),i=r[t],a=i.call(r);if(r!==e&&!ln(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>wt(a.next(),n),i!==Tt[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>wt(a._next(),n)}return a}function wt(e,t){return e.done||(e.value=t(e.value)),e}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=bt(e),s=o!==e&&!ln(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,xt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=bt(e),a=i!==e&&!ln(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=xt(e,t)),n.call(this,t,xt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?xt(e,c):c}function Ot(e,t,n){let r=k(e);gt(r,`iterate`,ht);let i=r[t](...n);return(i===-1||i===!1)&&un(n[0])?(n[0]=k(n[0]),r[t](...n)):i}function kt(e,t,n=[]){at(),qe();let r=k(e)[t].apply(e,n);return Je(),ot(),r}var At=n(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Mt(e){b(e)||(e=String(e));let t=k(this);return gt(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=St[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,mn(e)?e:n);if((b(t)?jt.has(t):At(t))||(r||gt(e,`get`,t),i))return o;if(mn(o)){let e=a&&E(t)?o:o.value;return r&&x(e)?rn(e):e}return x(o)?r?rn(o):tn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&E(t);if(!this._isShallow){let e=cn(i);if(!ln(n)&&!cn(n)&&(i=k(i),n=k(n)),!a&&mn(i)&&!mn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,mn(e)?e:r);return e===k(r)&&s&&(o?O(n,i)&&_t(e,`set`,t,n,i):_t(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&_t(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!jt.has(t))&&gt(e,`has`,t),n}ownKeys(e){return gt(e,`iterate`,p(e)?`length`:pt),Reflect.ownKeys(e)}},Ft=class extends Nt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},It=new Pt,Lt=new Ft,Rt=new Pt(!0),zt=new Ft(!0),Bt=e=>e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=k(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Bt:t?pn:fn;return!t&&gt(a,`iterate`,c?mt:pt),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=k(r),a=k(n);e||(O(n,a)&&gt(i,`get`,n),gt(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?pn:fn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&gt(k(t),`iterate`,pt),t.size},has(t){let n=this.__v_raw,r=k(n),i=k(t);return e||(O(t,i)&&gt(r,`has`,t),gt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=k(a),s=t?Bt:e?pn:fn;return!e&&gt(o,`iterate`,pt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){let n=k(this),r=Vt(n),i=k(e),a=!t&&!ln(e)&&!cn(e)?i:e;return r.has.call(n,a)||O(e,a)&&r.has.call(n,e)||O(i,a)&&r.has.call(n,i)||(n.add(a),_t(n,`add`,a,a)),this},set(e,n){!t&&!ln(n)&&!cn(n)&&(n=k(n));let r=k(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=k(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?O(n,s)&&_t(r,`set`,e,n,s):_t(r,`add`,e,n),this},delete(e){let t=k(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=k(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&_t(t,`delete`,e,void 0,a),o},clear(){let e=k(this),t=e.size!==0,n=e.clear();return t&&_t(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(f(n,i)&&i in r?n:r,i,a)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return cn(e)?e:on(e,!1,It,Kt,Xt)}function nn(e){return on(e,!1,Rt,qt,Zt)}function rn(e){return on(e,!0,Lt,Jt,Qt)}function an(e){return on(e,!0,zt,Yt,$t)}function on(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=en(T(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function sn(e){return cn(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function k(e){let t=e&&e.__v_raw;return t?k(t):e}function dn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&le(e,`__v_skip`,!0),e}var fn=e=>x(e)?tn(e):e,pn=e=>x(e)?rn(e):e;function mn(e){return e?e.__v_isRef===!0:!1}function A(e){return gn(e,!1)}function hn(e){return gn(e,!0)}function gn(e,t){return mn(e)?e:new _n(e,t)}var _n=class{constructor(e,t){this.dep=new ut,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:k(e),this._value=t?e:fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||ln(e)||cn(e);e=n?e:k(e),O(e,t)&&(this._rawValue=e,this._value=n?e:fn(e),this.dep.trigger())}};function vn(e){e.dep&&e.dep.trigger()}function j(e){return mn(e)?e.value:e}function yn(e){return v(e)?e():j(e)}var bn={get:(e,t,n)=>t===`__v_raw`?e:j(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return mn(i)&&!mn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function xn(e){return sn(e)?e:new Proxy(e,bn)}var Sn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new ut,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Cn(e){return new Sn(e)}function wn(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=On(e,n);return t}var Tn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=k(e);let r=!0,i=e;if(!p(e)||b(this._key)||!E(this._key))do r=!un(i)||ln(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=j(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&mn(this._raw[this._key])){let t=this._object[this._key];if(mn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return vt(this._raw,this._key)}},En=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Dn(e,t,n){return mn(e)?e:v(e)?new En(e):x(e)&&arguments.length>1?On(e,t,n):A(e)}function On(e,t,n){return new Tn(e,t,n)}var kn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ut(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Be!==this)return Ke(this,!0),!0}get value(){let e=this.dep.track();return Qe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function An(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new kn(r,i,n)}var jn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Mn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Nn={},Pn=new WeakMap,Fn=void 0;function In(){return Fn}function Ln(e,t=!1,n=Fn){if(n){let t=Pn.get(n);t||Pn.set(n,t=[]),t.push(e)}}function Rn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:ln(e)||o===!1||o===0?zn(e,1):zn(e),m,h,g,_,y=!1,b=!1;if(mn(e)?(h=()=>e.value,y=ln(e)):sn(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>sn(e)||ln(e)),h=()=>e.map(e=>{if(mn(e))return e.value;if(sn(e))return f(e);if(v(e))return d?d(e,2):e()})):h=v(e)?t?d?()=>d(e,2):e:()=>{if(g){at();try{g()}finally{ot()}}let t=Fn;Fn=m;try{return d?d(e,3,[_]):e(_)}finally{Fn=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>zn(e(),t)}let x=Re(),S=()=>{m.stop(),x&&x.active&&u(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{try{return e(...t)}finally{S()}}}let C=b?Array(e.length).fill(Nn):Nn,w=e=>{if(m.flags&1&&(m.dirty||e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>O(e,C[t])):O(n,C))){let e=Fn;at();try{g&&g(),Fn=m;let e=[n,C===Nn?void 0:b&&C[0]===Nn?[]:C,_];C=n,d?d(t,3,e):t(...e)}finally{Fn=e,ot()}}}else m.run()}};return l&&l(w),m=new He(h),m.scheduler=c?()=>c(w,!1):w,_=e=>Ln(e,!1,m),g=m.onStop=()=>{let e=Pn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Pn.delete(m)}},t?i?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function zn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,mn(e))zn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)zn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{zn(e,t,n)});else if(ee(e)){for(let r in e)zn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&zn(e[r],t,n)}return e}var Bn=[];function Vn(e){Bn.push(e)}function Hn(){Bn.pop()}function Un(e,t){}var Wn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Gn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function Kn(e,t,n,r){try{return r?e(...r):e()}catch(e){Jn(e,t,n)}}function qn(e,t,n,r){if(v(e)){let i=Kn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Jn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(qn(e[a],t,n,r));return i}}function Jn(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){at(),Kn(o,null,10,[e,i,a]),ot();return}}Yn(e,n,a,i,s)}function Yn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Xn=[],Zn=-1,Qn=[],$n=null,er=0,tr=Promise.resolve(),nr=null;function rr(e){let t=nr||tr;return e?t.then(this?e.bind(this):e):t}function ir(e){let t=Zn+1,n=Xn.length;for(;t<n;){let r=t+n>>>1,i=Xn[r],a=fr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function ar(e){if(!(e.flags&1)){let t=fr(e),n=Xn[Xn.length-1];!n||!(e.flags&2)&&t>=fr(n)?Xn.push(e):Xn.splice(ir(t),0,e),e.flags|=1,or()}}function or(){nr||=tr.then(pr)}function sr(e){if(!p(e))$n&&e.id===-1?$n.splice(er+1,0,e):e.flags&1||(Qn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Qn.push(e[t]);or()}function cr(e,t,n,r=Zn+1){for(;r<Xn.length;r++){let n=Xn[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;Xn.splice(r,1),r=e?r-1:Zn,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function lr(e,t,n=0){if(Qn.length){let e=Qn,r=0;if(t){e=[];for(let i=0;i<Qn.length;i++){let a=Qn[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?Qn[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>fr(e)-fr(t));if(Qn.length=r,$n){for(let e=0;e<i.length;e++)$n.push(i[e]);return}for($n=i,er=0;er<$n.length;er++){let e=$n[er];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}$n=null,er=0}}var ur=!1;function dr(e,t){if(ur){e();return}let n=t===void 0?void 0:new Set(Qn);e(),ur=!0;try{cr(void 0,t),lr(void 0,n,t)}finally{ur=!1}}var fr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pr(e){try{for(Zn=0;Zn<Xn.length;Zn++){let e=Xn[Zn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Kn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Zn<Xn.length;Zn++){let e=Xn[Zn];e&&(e.flags&=-2)}Zn=-1,Xn.length=0,lr(e),nr=null,(Xn.length||Qn.length)&&pr(e)}}var mr,hr=[];function gr(e,t){mr=e,mr?(mr.enabled=!0,hr.forEach(({event:e,args:t})=>mr.emit(e,...t)),hr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{gr(e,t)}),setTimeout(()=>{mr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,hr=[])},3e3)):hr=[]}var _r=null,vr=null;function yr(e){let t=_r;return _r=e,vr=e&&e.type.__scopeId||null,t}function br(e){vr=e}function xr(){vr=null}var Sr=e=>M;function M(e,t=_r,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ss(-1);let i=yr(t),a=vs.length,o;try{o=e(...n)}finally{for(let e=vs.length;e>a;e--)bs();yr(i),r._d&&Ss(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Cr(e,t){if(_r===null)return e;let n=dc(_r),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&zn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function wr(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(at(),qn(c,n,8,[e.el,s,e,t]),ot())}}function Tr(e,t){if(qs){let n=qs.provides,r=qs.parent&&qs.parent.provides;r===n&&(n=qs.provides=Object.create(r)),n[e]=t}}function Er(e,t,n=!1){let r=Js();if(r||lo){let i=lo?lo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function Dr(){return!!(Js()||lo)}var Or=Symbol.for(`v-scx`),kr=()=>Er(Or);function Ar(e,t){return Pr(e,null,t)}function jr(e,t){return Pr(e,null,{flush:`post`})}function Mr(e,t){return Pr(e,null,{flush:`sync`})}function Nr(e,t,n){return Pr(e,t,n)}function Pr(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(ec){if(s===`sync`){let e=kr();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=qs;u.call=(e,t,n)=>qn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{e.i=p,Uo(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():ar(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Rn(e,t,u);return ec&&(f?f.push(h):d&&h()),h}function Fr(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Ir(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=Zs(this),s=Pr(i,a.bind(r),n);return o(),s}function Ir(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Lr=new WeakMap,Rr=Symbol(`_vte`),zr=e=>e.__isTeleport,Br=e=>e&&(e.disabled||e.disabled===``),Vr=e=>e&&(e.defer||e.defer===``),Hr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Ur=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Wr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Gr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Br(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Br(e.props),r=e.target=Wr(e.props,m),a=Xr(r,e,h,p);r&&(o!==`svg`&&Hr(r)?o=`svg`:o!==`mathml`&&Ur(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Yr(e,!1)))},S=e=>{let t=()=>{if(Lr.get(e)===t){if(Lr.delete(e),Br(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Yr(e,!0)}x(e)}};Lr.set(e,t),Uo(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Vr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Yr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Lr.get(e);if(u){u.flags|=8,Lr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Br(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Hr(p)?o=`svg`:(o===`mathml`||Ur(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Xo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Wr(t.props,m);e&&(t.target=e,Kr(t,e,null,l,0))}else g&&Kr(t,p,h,l,1);Yr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Br(f),m=a||!p,h=Lr.get(e);if(h&&(h.flags|=8,Lr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Kr,hydrate:qr};function Kr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Lr.has(e)&&(!d||Br(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function qr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Wr(t.props,c),h=Br(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Xr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Xr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Yr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Jr=Gr;function Yr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Xr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Rr]=o,e&&(r(a,e,i),r(o,e,i)),o}var Zr=Symbol(`_leaveCb`),Qr=Symbol(`_enterCb`);function $r(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ia(()=>{e.isMounted=!0}),sa(()=>{e.isUnmounting=!0}),e}var ei=[Function,Array],ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ei,onEnter:ei,onAfterEnter:ei,onEnterCancelled:ei,onBeforeLeave:ei,onLeave:ei,onAfterLeave:ei,onLeaveCancelled:ei,onBeforeAppear:ei,onAppear:ei,onAfterAppear:ei,onAppearCancelled:ei},ni={name:`BaseTransition`,props:ti,setup(e,{slots:t}){let n=Js(),r=$r();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?Ls():void 0;if(!a)return;let o=k(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n,e=>l=e);c.type!==gs&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==gs&&!Ds(u,c)&&di(n.subTree)){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==gs)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==gs?e.delayLeave=(e,t,n)=>{let i=ai(r,u);i[String(u.key)]=u,e[Zr]=()=>{t(),e[Zr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==gs){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ai(n,e),C=(e,t)=>{e&&qn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Zr]&&t[Zr](!0);let i=S[x];if(i&&Ds(e,i)){let e=i.el[Zr];if(!e){let t=di(i);e=t&&t.el[Zr]}e&&e()}C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[Qr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Qr]=void 0)};let c=t[Qr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Qr]&&t[Qr](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Zr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Zr]=void 0,S[i]===e&&delete S[i])};let o=t[Zr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=oi(e,t,n,r,i);return i&&i(a),a}};return T}function si(e){if(Ki(e))return e=Ps(e),e.children=null,e}function ci(e){if(!Ki(e))return zr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&v(n.default))return n.default()}}function li(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;li(zr(n.type)&&ci(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===ms&&p(e.children)){let n=vo(e.children,!1);n&&li(n,t)}}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===ms?(o.patchFlag&128&&i++,r=r.concat(ui(o.children,t,s))):(t||o.type!==gs)&&r.push(s==null?o:Ps(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function di(e){if(e.component)return di(e.component.subTree);if(e.type===ms){let t=p(e.children)&&vo(e.children,!1);return t?di(t):void 0}if(e.type!==gs)return e}function N(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function fi(){let e=Js();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function pi(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function mi(e){let t=Js(),n=hn(null);if(t){let i=t.refs===r?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>_i(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Ui(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?dc(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,_=k(g),b=g===r?o:e=>!hi(h,e)&&f(_,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==d){if(vi(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(mn(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))Kn(d,l,12,[c,h]);else{let t=y(d),r=mn(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),Uo(t,n)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{t.hasChildNodes()?(f(t.firstChild,e,null,null,null),lr(),t._vnode=e):(n(null,e,t),lr(),t._vnode=e)},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,ee=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let E=null;switch(S){case hs:ee===3?(n.data!==r.children&&(bi(),n.data=r.children),E=a(n)):r.children===``?(l(r.el=i(``),o(n),n),E=n):E=x();break;case gs:y(n)?(E=a(n),v(r.el=n.content.firstChild,n,s)):E=ee!==8||b?x():a(n);break;case _s:if(b&&(n=a(n),ee=n.nodeType),ee===1||ee===3){E=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.nodeType===1?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=a(E);return b?a(E):E}x();break;case ms:E=b?h(n,r,s,c,u,d):x();break;default:if(w&1)E=(ee!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(w&6){r.slotScopeIds=u;let e=o(n);if(E=b?_(n):wi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,Ci(e),d),(Ui(r)||r.component.asyncDep)&&!r.component.subTree){let t;b?(t=I(_s),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?Fs(``):I(n.nodeType===8?gs:`div`),t.el=n,r.component.subTree=t}}else w&64?E=ee===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():w&128&&(E=r.type.hydrate(n,r,s,c,Ci(o(n)),u,d,e,f))}return C!=null&&_i(C,null,c,r),E},p=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1){h&&wr(t,null,n,`created`);let l=!1;if(y(e)){l=Yo(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!Ai(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===`
2
+ `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
3
+ `)&&(Ai(e,0)||bi(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||s(a)&&!te(a)||a[0]===`.`||t&&!te(a)||u&&u.includes(a)){if(Di(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&sn(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Hs(x,n,t),h&&wr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&ds(()=>{x&&Hs(x,n,t),l&&g.enter(e),h&&wr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=Rs(d[t]),g=h.type===hs;e?(g&&!u&&t+1<p&&Rs(d[t+1]).type===hs&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i(``),r):(m||(m=!0,Ai(r,1)||bi()),n(null,h,r,null,o,s,Ci(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Mi(e,t)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,Ci(d),s),r&&(r.vnode.el=t.el,wo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=new Set([`src`,`srcset`,`href`,`poster`]);function Di(e,t,n){return Ei.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var Oi=`data-allow-mismatch`,ki={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ai(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oi);)e=e.parentElement;return ji(e&&e.getAttribute(Oi),t)}function ji(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(ki[t])}}function Mi(e,t){return Ai(e.parentElement,1)||Ni(e)||Pi(t)}function Ni(e){return e.nodeType===1&&ji(e.getAttribute(Oi),1)}function Pi({props:e}){let t=e&&e[Oi];return typeof t==`string`&&ji(t,1)}var Fi=pe().requestIdleCallback||(e=>setTimeout(e,1)),Ii=pe().cancelIdleCallback||(e=>clearTimeout(e)),Li=(e=1e4)=>t=>{let n=Fi(t,{timeout:e});return()=>Ii(n)};function Ri(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var zi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e),i=e=>{if(Ri(e))return t(),r.disconnect(),!1;if(getComputedStyle(e).display===`contents`){for(let t=0;t<e.children.length;t++)if(i(e.children[t])===!1)return!1}r.observe(e)};return n(e=>{if(e instanceof Element)return i(e)}),()=>r.disconnect()},Bi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Vi=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Hi(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ui=e=>!!e.type.__asyncLoader;function Wi(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return N({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Hi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=qs;if(pi(e),u)return()=>Gi(u,e);let t=t=>{l=null,Jn(t,e,13,!r)};if(s&&e.suspense||ec)return p().then(t=>()=>Gi(t,e)).catch(e=>(t(e),()=>r?I(r,{error:e}):null));let a=A(!1),c=A(),d=A(!!i),f,m;return ca(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?l=null:(t(n),c.value=n)}),()=>{if(a.value&&u)return Gi(u,e);if(c.value&&r)return I(r,{error:c.value});if(n&&!d.value)return Gi(n,e)}}})}function Gi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=I(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ki=e=>e.type.__isKeepAlive,qi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Js(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Uo(()=>{a.isDeactivated=!1,a.a&&ce(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Hs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;$o(t.m),$o(t.a),l(e,f,null,1,s),Uo(()=>{t.da&&ce(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Hs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){$i(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=fc(Ui(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Ds(t,o))?p(t):o&&($i(o),t&&$i(t)),i.delete(e),a.delete(e)}Nr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ji(e,t)),t&&m(e=>!Ji(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ts(n.subTree.type)?Uo(()=>{let e=ea(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,ea(n.subTree)))};return ia(_),oa(_),sa(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ea(t);if(e.type===i.type&&e.key===i.key){$i(i);let e=i.component.da;e&&Uo(e,r)}else p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Es(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ea(r);if(s.type===gs)return o=null,s;let c=s.type,l=fc(Ui(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ji(u,l))||d&&l&&Ji(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ps(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ts(r.type)?r:s}}};function Ji(e,t){return p(e)?e.some(e=>Ji(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Yi(e,t){Zi(e,`a`,t)}function Xi(e,t){Zi(e,`da`,t)}function Zi(e,t,n=qs){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ta(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ki(e.parent.vnode)&&Qi(r,t,n,e),e=e.parent}}function Qi(e,t,n,r){let i=ta(t,e,r,!0);ca(()=>{u(r[t],i)},n)}function $i(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ea(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=qs,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{at();let i=Zs(n),a=qn(t,n,e,r);return i(),ot(),a};return r?i.unshift(a):i.push(a),a}}var na=e=>(t,n=qs)=>{(!ec||e===`sp`)&&ta(e,(...e)=>t(...e),n)},ra=na(`bm`),ia=na(`m`),aa=na(`bu`),oa=na(`u`),sa=na(`bum`),ca=na(`um`),la=na(`sp`),ua=na(`rtg`),da=na(`rtc`);function fa(e,t=qs){ta(`ec`,e,t)}var pa=`components`,ma=`directives`;function ha(e,t){return ya(pa,e,!0,t)||e}var ga=Symbol.for(`v-ndc`);function _a(e){return y(e)?ya(pa,e,!1)||e:e||ga}function va(e){return ya(ma,e)}function ya(e,t,n=!0,r=!1){let i=_r||qs;if(i){let n=i.type;if(e===pa){let e=fc(n,!1);if(e&&(e===t||e===D(t)||e===oe(D(t))))return n}let a=ba(i[e]||n[e],t)||ba(i.appContext[e],t);return!a&&r?n:a}}function ba(e,t){return e&&(e[t]||e[D(t)]||e[oe(D(t))])}function xa(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&sn(e),r=!1,s=!1;n&&(r=!ln(e),s=cn(e),e=bt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?pn(fn(e[n])):fn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(x(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function Sa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function P(e,t,n,r,i,a){if(n??={},_r.ce||_r.parent&&Ui(_r.parent)&&_r.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),F(),Ts(ms,null,[I(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=vs.length;F();let c;try{let i=o&&Ca(o(n)),s=n.key||a||i&&i.key;c=Ts(ms,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=vs.length;e>s;e--)bs();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Ca(e){return e.some(e=>!Es(e)||!(e.type===gs||e.type===ms&&!Ca(e.children)))?e:null}function wa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:se(r)]=e[r];return n}var Ta=e=>e?$s(e)?dc(e):Ta(e.parent):null,Ea=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ta(e.parent),$root:e=>Ta(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xa(e),$forceUpdate:e=>e.f||=()=>{ar(e.update)},$nextTick:e=>e.n||=rr.bind(e.proxy),$watch:e=>Fr.bind(e)}),Da=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),Oa={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(Da(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else Ga&&(s[t]=0)}let u=Ea[t],d,p;if(u)return t===`$attrs`&&gt(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return Da(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||Da(t,c)||f(o,c)||f(i,c)||f(Ea,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},ka=l({},Oa,{get(e,t){if(t!==Symbol.unscopables)return Oa.get(e,t,e)},has(e,t){return t[0]!==`_`&&!me(t)}});function Aa(){return null}function ja(){return null}function Ma(e){}function Na(e){}function Pa(){return null}function Fa(){}function Ia(e,t){return null}function La(){return za(`useSlots`).slots}function Ra(){return za(`useAttrs`).attrs}function za(e){let t=Js();return t.setupContext||=uc(t)}function Ba(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Va(e,t){let n=Ba(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ha(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Ba(e),Ba(t))}function Ua(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Wa(e){let t=Js(),n=ec,r=e();Qs(),n&&Xs(!1);let i=()=>{Zs(t),n&&Xs(!0)},a=()=>{Js()!==t&&t.scope.off(),Qs(),n&&Xs(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ga=!0;function Ka(e){let t=Xa(e),n=e.proxy,r=e.ctx;Ga=!1,t.beforeCreate&&Ja(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:E,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:D,components:ie,directives:ae,filters:oe}=t;if(u&&qa(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=tn(t))}if(Ga=!0,o)for(let e in o){let t=o[e],i=L({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a,set:!v(t)&&v(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Ya(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Tr(t,e[t])})}d&&Ja(d,e,`c`);function se(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(se(ra,f),se(ia,m),se(aa,h),se(oa,g),se(Yi,_),se(Xi,y),se(fa,te),se(da,ee),se(ua,E),se(sa,S),se(ca,w),se(la,ne),p(re)){if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===a&&(e.render=T),D!=null&&(e.inheritAttrs=D),ie&&(e.components=ie),ae&&(e.directives=ae),ne&&pi(e)}function qa(e,t,n=a){p(e)&&(e=to(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Er(r.from||n,r.default,!0):Er(r.from||n):Er(r),mn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ja(e,t,n){qn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ya(e,t,n,r){let i=r.includes(`.`)?Ir(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Nr(i,n)}else if(v(e))Nr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Ya(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Nr(i,r,e)}}}function Xa(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Za(c,e,o,!0)),Za(c,t,o)),x(t)&&a.set(t,c),c}function Za(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Za(e,a,n,!0),i&&i.forEach(t=>Za(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Qa[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Qa={data:$a,props:io,emits:io,methods:ro,computed:ro,beforeCreate:no,created:no,beforeMount:no,mounted:no,beforeUpdate:no,updated:no,beforeDestroy:no,beforeUnmount:no,destroyed:no,unmounted:no,activated:no,deactivated:no,errorCaptured:no,serverPrefetch:no,components:ro,directives:ro,watch:ao,provide:$a,inject:eo};function $a(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function eo(e,t){return ro(to(e),to(t))}function to(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function no(e,t){return e?[...new Set([].concat(e,t))]:t}function ro(e,t){return e?l(Object.create(null),e,t):t}function io(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Ba(e),Ba(t??{})):t}function ao(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=no(e[r],t[r]);return n}function oo(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var so=0;function co(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=oo(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:so++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_c,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||I(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,dc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(qn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=lo;lo=c;try{return e()}finally{lo=t}}};return c}}var lo=null;function uo(e,t,n=r){let i=Js(),a=D(t),o=ae(t),s=fo(e,a),c=Cn((s,c)=>{let l,u=r,d;return Mr(()=>{let t=e[a];O(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!O(s,l)&&!(u!==r&&O(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),O(e,u)&&(O(e,s)&&!O(s,d)||p&&u!==r&&!O(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var fo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${ae(t)}Modifiers`];function po(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&fo(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(ue)));let c,l=i[c=se(t)]||i[c=se(D(t))];!l&&o&&(l=i[c=se(ae(t))]),l&&qn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,qn(u,e,6,a)}}var mo=new WeakMap;function ho(e,t,n=!1){let r=n?mo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=ho(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function go(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,ae(t))||f(e,t))}function _o(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=yr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Rs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Rs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:yo(s)}}catch(t){vs.length=0,Jn(t,e,1),v=I(gs)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=bo(y,a)),b=Ps(b,y,!1,!0))}return n.dirs&&(b=Ps(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(zr(b.type)&&ci(b)||b,n.transition),v=b,yr(_),v}function vo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Es(r)){if(r.type!==gs||r.children===`v-if`){if(n)return;n=r}}else return}return n}var yo=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},bo=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?So(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Co(o,r,n)&&!go(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||So(r,o,l):!!o;return!1}function So(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!f(e,a)||Co(t,e,a)&&!go(n,a))return!0}return!1}function Co(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Oe(r,i):r!==i}function wo({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var To={},Eo=()=>Object.create(To),Do=e=>Object.getPrototypeOf(e)===To;function Oo(e,t,n,r=!1){let i={},a=Eo();e.propsDefaults=Object.create(null),Ao(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:nn(i):e.type.props?i:a,e.attrs=a}function ko(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=k(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(go(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=D(o);i[t]=jo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ao(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=ae(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=jo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&&_t(e.attrs,`set`,``)}function Ao(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(te(r))continue;let l=t[r],u;a&&f(a,u=D(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:go(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=k(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=jo(a,t,s,i[s],e,!f(i,s))}}return s}function jo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Zs(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ae(n))&&(r=!0))}return r}var Mo=new WeakMap;function No(e,t,n=!1){let a=n?Mo:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=No(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=D(s[e]);Po(t)&&(c[t]=r)}else if(s)for(let e in s){let t=D(e);if(Po(t)){let n=s[e],r=c[t]=p(n)||v(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return x(e)&&a.set(e,m),m}function Po(e){return e[0]!==`$`&&!te(e)}var Fo=e=>e===`_`||e===`_ctx`||e===`$stable`,Io=e=>p(e)?e.map(Rs):[Rs(e)],Lo=(e,t,n)=>{if(t._n)return t;let r=M((...e)=>Io(t(...e)),n);return r._c=!1,r},Ro=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Fo(n))continue;let i=e[n];if(v(i))t[n]=Lo(n,i,r);else if(i!=null){let e=Io(i);t[n]=()=>e}}},zo=(e,t)=>{let n=Io(t);e.slots.default=()=>n},Bo=(e,t,n)=>{for(let r in t)(n||!Fo(r))&&(e[r]=t[r])},Vo=(e,t,n)=>{let r=e.slots=Eo();if(e.vnode.shapeFlag&32){let e=t._;e?(Bo(r,t,n),n&&le(r,`_`,e,!0)):Ro(t,r)}else t&&zo(e,t)},Ho=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Bo(a,t,n):(o=!t.$stable,Ro(t,a)),s=t}else t&&(zo(e,t),s={default:1});if(o)for(let e in a)!Fo(e)&&s[e]==null&&delete a[e]},Uo=ds;function Wo(e){return Ko(e)}function Go(e){return Ko(e,Ti)}function Ko(e,t){let n=pe();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ds(e,t)&&(r=be(e),he(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case hs:y(e,t,n,r);break;case gs:b(e,t,n,r);break;case _s:e??x(t,n,r,s);break;case ms:ie(e,t,n,r,a,o,s,c,l);break;default:f&1?w(e,t,n,r,a,o,s,c,l):f&6?ae(e,t,n,r,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,r,a,o,s,c,l,Se)}d!=null&&a?_i(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&_i(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,qo(e,a),s,u),_&&wr(e,null,r,`created`),ee(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!te(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Hs(f,r,e)}_&&wr(e,null,r,`beforeMount`);let v=Yo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Uo(()=>{try{f&&Hs(f,r,e),v&&g.enter(d),_&&wr(e,null,r,`mounted`)}finally{}},i)},ee=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||ts(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ee(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?zs(e[l]):Rs(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&Jo(n,!1),(g=h.onVnodeBeforeUpdate)&&Hs(g,n,t,e),f&&wr(t,e,n,`beforeUpdate`),n&&Jo(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,n,i,qo(t,a),o):s||ue(e,t,l,null,n,i,qo(t,a),o,!1),u>0){if(u&16)D(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&D(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&Uo(()=>{g&&Hs(g,n,t,e),f&&wr(t,e,n,`updated`)},i)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el||es(c),d=u&&(c.type===ms||!Ds(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},D=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!te(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(te(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},ie=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Xo(e,t,!0)):ue(e,t,n,f,i,a,s,c,l)},ae=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):oe(t,n,r,i,a,o,c):se(e,t,c)},oe=(e,t,n,r,i,a,o)=>{let s=e.component=Ks(e,r,i);if(Ki(e)&&(s.ctx.renderer=Se),tc(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,O,o,a),!e.el){let r=s.subTree=I(gs);b(null,r,t,n),e.placeholder=r.el}}else O(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(xo(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},O=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Qo(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{Uo(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Jo(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&ce(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Hs(d,s,t,c),Jo(e,!0);let f=_o(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),be(p),e,i,a),t.el=f.el,u===null&&wo(e,f.el),r&&Uo(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Uo(()=>Hs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ui(t);if(Jo(e,!1),l&&ce(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Hs(o,d,t),Jo(e,!0),s&&we){let t=()=>{e.subTree=_o(e),we(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=_o(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Uo(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Uo(()=>Hs(o,d,e),i)}(t.shapeFlag&256||d&&Ui(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Uo(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new He(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>ar(u),Jo(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ko(e,t.props,r,n),Ho(e,t.children,n),at(),cr(e),ot()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){fe(l,d,n,r,i,a,o,s,c);return}if(f&256){de(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ye(l,i,a),d!==l&&p(n,d)):u&16?m&16?fe(l,d,n,r,i,a,o,s,c):ye(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},de=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?zs(t[p]):Rs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ye(e,a,o,!0,!1,f):E(t,n,r,a,o,s,c,l,f)},fe=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?zs(t[u]):Rs(t[u]);if(Ds(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?zs(t[p]):Rs(t[p]);if(Ds(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?zs(t[u]):Rs(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)he(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?zs(t[u]):Rs(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){he(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ds(r,t[_])){i=_;break}i===void 0?he(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Zo(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||es(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(i,n,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)me(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,Se);else if(c===ms){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n)}else if(c===_s)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Zr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Uo(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Zr];a._isLeaving&&a[Zr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},he=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(at(),_i(s,null,n,e,!0),ot()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ui(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Hs(_,t,e),u&6)ve(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&wr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==ms||d>0&&d&64)?ye(l,t,n,!1,!0):(a===ms&&d&384||!i&&u&16)&&ye(c,t,n),r&&ge(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Uo(()=>{_&&Hs(_,t,e),h&&wr(e,null,t,`unmounted`),v&&(e.el=null)},n)},ge=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===ms;if(a&&!i){_e(n,r);return}if(t===_s){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?di(e):e,c=()=>{a?m(n)&&_e(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},_e=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ve=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;$o(c),$o(l),r&&ce(r),i.stop(),a?(a.flags|=8,he(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,he(o,e,t,n)),s&&Uo(s,t),Uo(()=>{e.isUnmounted=!0},t)},ye=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)he(e[o],t,n,r,i)},be=e=>{if(e.shapeFlag&6)return be(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Rr];return n?h(n):t},xe=(e,t,n)=>{dr(()=>{e==null?t._vnode&&he(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:Gs())},Se={p:v,um:he,m:me,r:ge,mt:oe,mc:E,pc:ue,pbc:re,n:be,o:e},Ce,we;return t&&([Ce,we]=t(Se)),{render:xe,hydrate:Ce,createApp:co(xe,Ce)}}function qo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Jo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xo(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=zs(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Xo(t,a)),a.type===hs&&(a.patchFlag===-1&&(a=i[e]=zs(a)),a.el=t.el),a.type===gs&&!a.el&&(a.el=t.el)}}function Zo(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Qo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}function $o(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function es(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?es(t.subTree):null}var ts=e=>e.__isSuspense,ns=0,rs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)as(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}os(e,t,n,r,i,o,s,c,l)}},hydrate:cs,normalize:ls};function is(e,t){let n=e.props&&e.props[t];v(n)&&n()}function as(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ss(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(is(e,`onPending`),is(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),fs(f,e.ssFallback)):f.resolve(!1,!0)}function os(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Ds(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),fs(d,p))):(d.pendingId=ns++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),fs(d,p))):m&&Ds(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Ds(m,f))c(m,f,n,r,i,d,a,o,s),fs(d,f);else if(is(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:ns++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ss(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ps(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?de(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ns++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),sr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&Uo(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,fs(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&sr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),is(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;is(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),fs(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n,r){let i=!!x.pendingBranch;i&&x.deps++;let a=e.vnode.el;e.asyncDep.catch(t=>{Jn(t,e,0)}).then(o=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;if(Qs(),!e.scope.active){i&&--x.deps===0&&x.resolve();return}e.asyncResolved=!0;let{vnode:s}=e;rc(e,o,!1),a&&(s.el=a);let c=!a&&e.subTree.el;t(e,s,h(a||e.subTree.el),a?null:m(e.subTree),x,r,n),c&&(s.placeholder=null,g(c)),wo(e,s.el),i&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function cs(e,t,n,r,i,a,o,s,c){let l=t.suspense=ss(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ls(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=us(r?n.default:n),e.ssFallback=r?us(n.fallback):I(gs)}function us(e){let t;if(v(e)){let n=xs&&e._c;n&&(e._d=!1,F()),e=e(),n&&(e._d=!0,t=ys,bs())}return p(e)&&(e=vo(e)),e=Rs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ds(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):sr(e)}function fs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,wo(r,i))}function ps(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var ms=Symbol.for(`v-fgt`),hs=Symbol.for(`v-txt`),gs=Symbol.for(`v-cmt`),_s=Symbol.for(`v-stc`),vs=[],ys=null;function F(e=!1){vs.push(ys=e?null:[])}function bs(){vs.pop(),ys=vs[vs.length-1]||null}var xs=1;function Ss(e,t=!1){xs+=e,e<0&&ys&&t&&(ys.hasOnce=!0)}function Cs(e){return e.dynamicChildren=xs>0?ys||i:null,bs(),xs>0&&ys&&ys.push(e),e}function ws(e,t,n,r,i,a){return Cs(js(e,t,n,r,i,a,!0))}function Ts(e,t,n,r,i){return Cs(I(e,t,n,r,i,!0))}function Es(e){return e?e.__v_isVNode===!0:!1}function Ds(e,t){return e.type===t.type&&e.key===t.key}function Os(e){}var ks=({key:e})=>e??null,As=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||mn(e)||v(e)?{i:_r,r:e,k:t,f:!!n}:e);function js(e,t=null,n=null,r=0,i=null,a=e===ms?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ks(t),ref:t&&As(t),scopeId:vr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_r};return s?(Bs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),xs>0&&!o&&ys&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ys.push(c),c}var I=Ms;function Ms(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ga)&&(e=gs),Es(e)){let r=Ps(e,t,!0);return n&&Bs(r,n),xs>0&&!a&&ys&&(r.shapeFlag&6?ys[ys.indexOf(e)]=r:ys.push(r)),r.patchFlag=-2,r}if(pc(e)&&(e=e.__vccOpts),t){t=Ns(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=be(e)),x(n)&&(un(n)&&!p(n)&&(n=l({},n)),t.style=he(n))}let o=y(e)?1:ts(e)?128:zr(e)?64:x(e)?4:v(e)?2:0;return js(e,t,n,r,i,o,a,!0)}function Ns(e){return e?un(e)||Do(e)?l({},e):e:null}function Ps(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Vs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ks(l),ref:t&&t.ref?n&&a?p(a)?a.concat(As(t)):[a,As(t)]:As(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ms?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ps(e.ssContent),ssFallback:e.ssFallback&&Ps(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&li(u,c.clone(u)),u}function Fs(e=` `,t=0){return I(hs,null,e,t)}function Is(e,t){let n=I(_s,null,e);return n.staticCount=t,n}function Ls(e=``,t=!1){return t?(F(),Ts(gs,null,e)):I(gs,null,e)}function Rs(e){return e==null||typeof e==`boolean`?I(gs):p(e)?I(ms,null,e.slice()):Es(e)?zs(e):I(hs,null,String(e))}function zs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ps(e)}function Bs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Bs(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Do(t)?t._ctx=_r:r===3&&_r&&(_r.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Bs(e,{default:t});return}t={default:t,_ctx:_r},n=32}else t=String(t),r&64?(n=16,t=[Fs(t)]):n=8;e.children=t,e.shapeFlag|=n}function Vs(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=be([t.class,r.class]));else if(e===`style`)t.style=he([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Hs(e,t,n,r=null){qn(e,t,7,[n,r])}var Us=oo(),Ws=0;function Gs(){return Ws}function Ks(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Us,o={uid:Ws++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ie(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:No(i,a),emitsOptions:ho(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=po.bind(null,o),e.ce&&e.ce(o),o}var qs=null,Js=()=>qs||_r,Ys,Xs;{let e=pe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ys=t(`__VUE_INSTANCE_SETTERS__`,e=>qs=e),Xs=t(`__VUE_SSR_SETTERS__`,e=>ec=e)}var Zs=e=>{let t=qs;return Ys(e),e.scope.on(),()=>{e.scope.off(),Ys(t)}},Qs=()=>{qs&&qs.scope.off(),Ys(null)};function $s(e){return e.vnode.shapeFlag&4}var ec=!1;function tc(e,t=!1,n=!1){t&&Xs(t);let{props:r,children:i}=e.vnode,a=$s(e);Oo(e,r,a,t),Vo(e,i,n||t);let o=a?nc(e,t):void 0;return t&&Xs(!1),o}function nc(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oa);let{setup:r}=n;if(r){at();let n=e.setupContext=r.length>1?uc(e):null,i=Zs(e),a=Kn(r,e,0,[e.props,n]),o=S(a);if(ot(),i(),(o||e.sp)&&!Ui(e)&&pi(e),o){if(a.then(Qs,Qs),t)return a.then(n=>{Xs(!0);try{rc(e,n,t)}finally{Xs(!1)}}).catch(t=>{Jn(t,e,0)});e.asyncDep=a}else rc(e,a,t)}else cc(e,t)}function rc(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=xn(t)),cc(e,n)}var ic,ac;function oc(e){ic=e,ac=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ka))}}var sc=()=>!ic;function cc(e,t,n){let r=e.type;if(!e.render){if(!t&&ic&&!r.render){let t=r.template||Xa(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=ic(t,s)}}e.render=r.render||a,ac&&ac(e)}{let t=Zs(e);at();try{Ka(e)}finally{ot(),t()}}}var lc={get(e,t){return gt(e,`get`,``),e[t]}};function uc(e){return{attrs:new Proxy(e.attrs,lc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function dc(e){return e.exposed?e.exposeProxy||=new Proxy(xn(dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ea)return Ea[n](e)},has(e,t){return t in e||t in Ea}}):e.proxy}function fc(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function pc(e){return v(e)&&`__vccOpts`in e}var L=(e,t)=>An(e,t,ec);function R(e,t,n){try{Ss(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?Es(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Es(n)&&(n=[n]),I(e,t,n))}finally{Ss(1)}}function mc(){}function hc(e,t,n,r){let i=n[r];if(i&&gc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function gc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(O(n[e],t[e]))return!1;return xs>0&&ys&&ys.push(e),!0}var _c=`3.5.44`,vc=a,yc=Gn,bc=mr,xc=gr,Sc={createComponentInstance:Ks,setupComponent:tc,renderComponentRoot:_o,setCurrentRenderingInstance:yr,isVNode:Es,normalizeVNode:Rs,getComponentPublicInstance:dc,ensureValidVNode:Ca,pushWarningContext:Vn,popWarningContext:Hn},Cc=void 0,wc=typeof window<`u`&&window.trustedTypes;if(wc)try{Cc=wc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Tc=Cc?e=>Cc.createHTML(e):e=>e,Ec=`http://www.w3.org/2000/svg`,Dc=`http://www.w3.org/1998/Math/MathML`,Oc=typeof document<`u`?document:null,kc=Oc&&Oc.createElement(`template`),Ac={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Oc.createElementNS(Ec,e):t===`mathml`?Oc.createElementNS(Dc,e):n?Oc.createElement(e,{is:n}):Oc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oc.createTextNode(e),createComment:e=>Oc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{kc.innerHTML=Tc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=kc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=`transition`,Mc=`animation`,Nc=Symbol(`_vtc`),Pc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fc=l({},ti,Pc),Ic=(e=>(e.displayName=`Transition`,e.props=Fc,e))((e,{slots:t})=>R(ii,zc(e),t)),Lc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},Rc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function zc(e){let t={};for(let n in e)n in Pc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Bc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,Uc(e,t?d:s),Uc(e,t?u:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,Uc(e,f),Uc(e,m),Uc(e,p),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>ee(t,e,n);Lc(i,[t,o]),Wc(()=>{Uc(t,e?c:a),Hc(t,e?d:s),Rc(i)||Kc(t,r,g,o)})};return l(t,{onBeforeEnter(e){Lc(v,[e]),Hc(e,a),Hc(e,o)},onBeforeAppear(e){Lc(C,[e]),Hc(e,c),Hc(e,u)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);Hc(e,f),e._enterCancelled?(Hc(e,p),Xc(e)):(Xc(e),Hc(e,p)),Wc(()=>{e._isLeaving&&(Uc(e,f),Hc(e,m),Rc(x)||Kc(e,r,_,n))}),Lc(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),Lc(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),Lc(T,[e])},onLeaveCancelled(e){E(e),Lc(S,[e])}})}function Bc(e){if(e==null)return null;if(x(e))return[Vc(e.enter),Vc(e.leave)];{let t=Vc(e);return[t,t]}}function Vc(e){return de(e)}function Hc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Nc]||(e[Nc]=new Set)).add(t)}function Uc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Nc];n&&(n.delete(t),n.size||(e[Nc]=void 0))}function Wc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Gc=0;function Kc(e,t,n,r){let i=e._endId=++Gc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function qc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${jc}Delay`),a=r(`${jc}Duration`),o=Jc(i,a),s=r(`${Mc}Delay`),c=r(`${Mc}Duration`),l=Jc(s,c),u=null,d=0,f=0;t===jc?o>0&&(u=jc,d=o,f=a.length):t===Mc?l>0&&(u=Mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?jc:Mc:null,f=u?u===jc?a.length:c.length:0);let p=u===jc&&/\b(?:transform|all)(?:,|$)/.test(r(`${jc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Jc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Yc(t)+Yc(e[n])))}function Yc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Zc(e,t,n){let r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qc=Symbol(`_vod`),$c=Symbol(`_vsh`),el={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),tl(e,!0),r.enter(e)):r.leave(e,()=>{tl(e,!1)}):tl(e,t))},beforeUnmount(e,{value:t}){tl(e,t)}};function tl(e,t){e.style.display=t?e[Qc]:`none`,e[$c]=!t}function nl(){el.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var rl=Symbol(``);function il(e){let t=Js();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ol(e,n))},r=()=>{let r=e(t.proxy);t.ce?ol(t.ce,r):al(t.subTree,r),n(r)};aa(()=>{sr(r)}),ia(()=>{Nr(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ca(()=>e.disconnect())})}function al(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{al(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ol(e.el,t);else if(e.type===ms)e.children.forEach(e=>al(e,t));else if(e.type===_s){let{el:n,anchor:r}=e;for(;n&&(ol(n,t),n!==r);)n=n.nextSibling}}function ol(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Pe(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[rl]=r}}var sl=/(?:^|;)\s*display\s*:/;function cl(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ul(r,t,``)}else for(let e in t)n[e]??ul(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ul(r,i,``):ml(e,i,!y(t)&&t?t[i]:void 0,o)||ul(r,i,o)}}else if(i){if(t!==n){let e=r[rl];e&&(n+=`;`+e),r.cssText=n,a=sl.test(n)}}else t&&e.removeAttribute(`style`);Qc in e&&((!i||t!==n)&&(e[Qc]=a?r.display:``),e[$c]&&(r.display=`none`))}var ll=/\s*!important$/;function ul(e,t,n){if(p(n))n.forEach(n=>ul(e,t,n));else if(n??=``,t.startsWith(`--`))ll.test(n)?e.setProperty(t,n.replace(ll,``),`important`):e.setProperty(t,n);else{let r=pl(e,t);ll.test(n)?e.setProperty(ae(r),n.replace(ll,``),`important`):e[r]=n}}var dl=[`Webkit`,`Moz`,`ms`],fl={};function pl(e,t){let n=fl[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return fl[t]=r;r=oe(r);for(let n=0;n<dl.length;n++){let i=dl[n]+r;if(i in e)return fl[t]=i}return t}function ml(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var hl=`http://www.w3.org/1999/xlink`;function gl(e,t,n,r,i,a=Se(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(hl,t.slice(6,t.length)):e.setAttributeNS(hl,t,n):n==null||a&&!Ce(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function _l(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Tc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ce(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function vl(e,t,n,r){e.addEventListener(t,n,r)}function yl(e,t,n,r){e.removeEventListener(t,n,r)}var bl=Symbol(`_vei`);function xl(e,t,n,r,i=null){let a=e[bl]||(e[bl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=wl(t);r?vl(e,n,a[t]=Ol(r,i),s):o&&(yl(e,n,o,s),a[t]=void 0)}}var Sl=/(Once|Passive|Capture)$/,Cl=/^on:?(?:Once|Passive|Capture)$/;function wl(e){let t,n;for(;(n=e.match(Sl))&&!Cl.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):ae(e.slice(2)),t]}var Tl=0,El=Promise.resolve(),Dl=()=>Tl||=(El.then(()=>Tl=0),Date.now());function Ol(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&qn(e,t,5,a)}}else qn(r,t,5,[e])};return n.value=e,n.attached=Dl(),n}var kl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Al=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Zc(e,r,o):t===`style`?cl(e,n,r):s(t)?c(t)||xl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):jl(e,t,r,o))?(_l(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&gl(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Ml(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?_l(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),gl(e,t,r,o))};function jl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&kl(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return kl(t)&&y(n)?!1:t in e}function Ml(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var Nl={};function Pl(e,t,n){let r=N(e,t);ee(r)&&(r=l({},r,t));class i extends Ll{constructor(e){super(r,e,n)}}return i.def=r,i}var Fl=((e,t)=>Pl(e,t,Pu)),Il=typeof HTMLElement<`u`?HTMLElement:class{},Ll=class e extends Il{constructor(e,t={},n=Nu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Nu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,rr(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=de(this._props[e])),(i||=Object.create(null))[D(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>j(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Nl,r=D(e);t&&this._numberProps&&this._numberProps[r]&&(n=de(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Nl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(ae(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(ae(e),t+``):t||this.removeAttribute(ae(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),ju(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=I(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ee(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),ae(e)!==e&&t(ae(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Rl(e){let t=Js();return t&&t.ce||null}function zl(){let e=Rl();return e&&e.shadowRoot}function Bl(e=`$style`){{let t=Js();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Vl=new WeakMap,Hl=new WeakMap,Ul=Symbol(`_moveCb`),Wl=Symbol(`_enterCb`),Gl=new WeakMap,Kl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},Fc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Js(),r=$r(),i,a,o,s,c=()=>(s===void 0&&(s=i.length>0&&tu(i[0].el,n.vnode.el,Jl(e))),s);return oa(()=>{if(Gl.delete(n),!c()){i=[],o=void 0;return}let t=Jl(e);i.forEach(ql);let r=o&&eu(o,n.vnode.el);o=void 0,i.forEach(e=>Yl(e,r));let a=i.filter(Xl);Xc(n.vnode.el),a.forEach(e=>{let n=e.el,r=n.style;Hc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ul]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ul]=null,Uc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let l=k(e),u=zc(l),d=l.tag||ms;if(i=[],s=void 0,a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[$c]&&(i.push(t),li(t,oi(t,u,r,n)),Vl.set(t,Zl(t.el)))}a=t.default?ui(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&li(t,oi(t,u,r,n))}return i.length&&(o=Ql(n),Gl.set(n,c)),I(d,null,a)}}});function ql(e){let t=e.el;t[Ul]&&t[Ul](),t[Wl]&&t[Wl]()}function Jl(e){return e.moveClass||`${e.name||`v`}-move`}function Yl(e,t){Hl.set(e,Zl(e.el,t))}function Xl(e){let t=Vl.get(e),n=Hl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Zl(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function Ql(e){let t;for(let n=e.parent;n;n=n.parent){let r=Gl.get(n);if(r){let i=$l(n.vnode.el,e.vnode.el);i&&(t||=[]).push(l(Zl(i),{item:i,willMove:r}))}}return t}function $l(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function eu(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&Zl(n.item,n)}function tu(e,t,n){let r=e.cloneNode(),i=e[Nc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=qc(r);return a.removeChild(r),o}var nu=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>ce(t,e):t};function ru(e){e.target.composing=!0}function iu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var au=Symbol(`_assign`),ou=Symbol(`_initialValue`);function su(e,t,n){return t&&(e=e.trim()),n&&(e=ue(e)),e}var cu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[ou]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[ou]=e.defaultValue.replace(/\r\n?/g,`
4
+ `))),e[au]=nu(i);let a=r||i.props&&i.props.type===`number`;vl(e,t?`change`:`input`,t=>{t.target.composing||e[au](su(e.value,n,a))}),(n||a)&&vl(e,`change`,()=>{e.value=su(e.value,n,a)}),t||(vl(e,`compositionstart`,ru),vl(e,`compositionend`,iu),vl(e,`change`,iu))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[ou];delete e[ou],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[au](su(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[au]=nu(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ue(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},lu={deep:!0,created(e,t,n){e[au]=nu(n),vl(e,`change`,()=>{let t=e._modelValue,n=hu(e),r=e.checked,i=e[au];if(p(t)){let e=ke(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(gu(e,r))})},mounted:uu,beforeUpdate(e,t,n){e[au]=nu(n),uu(e,t,n)}};function uu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=ke(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Oe(t,gu(e,!0))}e.checked!==i&&(e.checked=i)}var du={created(e,{value:t},n){e.checked=Oe(t,n.props.value),e[au]=nu(n),vl(e,`change`,()=>{e[au](hu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[au]=nu(r),t!==n&&(e.checked=Oe(t,r.props.value))}},fu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,vl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ue(hu(e)):hu(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[au](i)}finally{rr(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[au]=nu(r)},mounted(e,{value:t}){mu(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[au]=nu(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!pu(t,n[1],n[0]))&&mu(e,t)}};function pu(e,t,n){if(!n||p(e))return Oe(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function mu(e,t){let n=e.multiple,r=p(t);if(!n||r||h(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=hu(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):ke(t,o)>-1}else a.selected=t.has(o)}else if(Oe(hu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function hu(e){return`_value`in e?e._value:e.value}function gu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var _u={created(e,t,n){yu(e,t,n,null,`created`)},mounted(e,t,n){yu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){yu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){yu(e,t,n,r,`updated`)}};function vu(e,t){switch(e){case`SELECT`:return fu;case`TEXTAREA`:return cu;default:switch(t){case`checkbox`:return lu;case`radio`:return du;default:return cu}}}function yu(e,t,n,r,i){let a=vu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function bu(){cu.getSSRProps=({value:e})=>({value:e}),du.getSSRProps=({value:e},t)=>{if(t.props&&Oe(t.props.value,e))return{checked:!0}},lu.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&ke(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_u.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=vu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var xu=[`ctrl`,`shift`,`alt`,`meta`],Su={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>xu.some(n=>e[`${n}Key`]&&!t.includes(n))},Cu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Su[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},wu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Tu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ae(n.key);if(t.some(e=>e===r||wu[e]===r))return e(n)}))},Eu=l({patchProp:Al},Ac),Du,Ou=!1;function ku(){return Du||=Wo(Eu)}function Au(){return Du=Ou?Du:Go(Eu),Ou=!0,Du}var ju=((...e)=>{ku().render(...e)}),Mu=((...e)=>{Au().hydrate(...e)}),Nu=((...e)=>{let t=ku().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Iu(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Fu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Pu=((...e)=>{let t=Au().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Iu(e);if(t)return n(t,!0,Fu(t))},t});function Fu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Iu(e){return y(e)?document.querySelector(e):e}var Lu=!1,Ru=()=>{Lu||(Lu=!0,bu(),nl())},zu=t({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ti,Comment:()=>gs,DeprecationTypes:()=>null,EffectScope:()=>Ie,ErrorCodes:()=>Wn,ErrorTypeStrings:()=>yc,Fragment:()=>ms,KeepAlive:()=>qi,ReactiveEffect:()=>He,Static:()=>_s,Suspense:()=>rs,Teleport:()=>Jr,Text:()=>hs,TrackOpTypes:()=>jn,Transition:()=>Ic,TransitionGroup:()=>Kl,TriggerOpTypes:()=>Mn,VueElement:()=>Ll,assertNumber:()=>Un,callWithAsyncErrorHandling:()=>qn,callWithErrorHandling:()=>Kn,camelize:()=>D,capitalize:()=>oe,cloneVNode:()=>Ps,compatUtils:()=>null,compile:()=>Bu,computed:()=>L,createApp:()=>Nu,createBlock:()=>Ts,createCommentVNode:()=>Ls,createElementBlock:()=>ws,createElementVNode:()=>js,createHydrationRenderer:()=>Go,createPropsRestProxy:()=>Ua,createRenderer:()=>Wo,createSSRApp:()=>Pu,createSlots:()=>Sa,createStaticVNode:()=>Is,createTextVNode:()=>Fs,createVNode:()=>I,customRef:()=>Cn,defineAsyncComponent:()=>Wi,defineComponent:()=>N,defineCustomElement:()=>Pl,defineEmits:()=>ja,defineExpose:()=>Ma,defineModel:()=>Fa,defineOptions:()=>Na,defineProps:()=>Aa,defineSSRCustomElement:()=>Fl,defineSlots:()=>Pa,devtools:()=>bc,effect:()=>tt,effectScope:()=>Le,getCurrentInstance:()=>Js,getCurrentScope:()=>Re,getCurrentWatcher:()=>In,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>Ns,h:()=>R,handleError:()=>Jn,hasInjectionContext:()=>Dr,hydrate:()=>Mu,hydrateOnIdle:()=>Li,hydrateOnInteraction:()=>Vi,hydrateOnMediaQuery:()=>Bi,hydrateOnVisible:()=>zi,initCustomFormatter:()=>mc,initDirectivesForSSR:()=>Ru,inject:()=>Er,isMemoSame:()=>gc,isProxy:()=>un,isReactive:()=>sn,isReadonly:()=>cn,isRef:()=>mn,isRuntimeOnly:()=>sc,isShallow:()=>ln,isVNode:()=>Es,markRaw:()=>dn,mergeDefaults:()=>Va,mergeModels:()=>Ha,mergeProps:()=>Vs,nextTick:()=>rr,nodeOps:()=>Ac,normalizeClass:()=>be,normalizeProps:()=>xe,normalizeStyle:()=>he,onActivated:()=>Yi,onBeforeMount:()=>ra,onBeforeUnmount:()=>sa,onBeforeUpdate:()=>aa,onDeactivated:()=>Xi,onErrorCaptured:()=>fa,onMounted:()=>ia,onRenderTracked:()=>da,onRenderTriggered:()=>ua,onScopeDispose:()=>ze,onServerPrefetch:()=>la,onUnmounted:()=>ca,onUpdated:()=>oa,onWatcherCleanup:()=>Ln,openBlock:()=>F,patchProp:()=>Al,popScopeId:()=>xr,provide:()=>Tr,proxyRefs:()=>xn,pushScopeId:()=>br,queuePostFlushCb:()=>sr,reactive:()=>tn,readonly:()=>rn,ref:()=>A,registerRuntimeCompiler:()=>oc,render:()=>ju,renderList:()=>xa,renderSlot:()=>P,resolveComponent:()=>ha,resolveDirective:()=>va,resolveDynamicComponent:()=>_a,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>Ss,setDevtoolsHook:()=>xc,setTransitionHooks:()=>li,shallowReactive:()=>nn,shallowReadonly:()=>an,shallowRef:()=>hn,ssrContextKey:()=>Or,ssrUtils:()=>Sc,stop:()=>nt,toDisplayString:()=>je,toHandlerKey:()=>se,toHandlers:()=>wa,toRaw:()=>k,toRef:()=>Dn,toRefs:()=>wn,toValue:()=>yn,transformVNodeArgs:()=>Os,triggerRef:()=>vn,unref:()=>j,useAttrs:()=>Ra,useCssModule:()=>Bl,useCssVars:()=>il,useHost:()=>Rl,useId:()=>fi,useModel:()=>uo,useSSRContext:()=>kr,useShadowRoot:()=>zl,useSlots:()=>La,useTemplateRef:()=>mi,useTransitionState:()=>$r,vModelCheckbox:()=>lu,vModelDynamic:()=>_u,vModelRadio:()=>du,vModelSelect:()=>fu,vModelText:()=>cu,vShow:()=>el,version:()=>_c,warn:()=>vc,watch:()=>Nr,watchEffect:()=>Ar,watchPostEffect:()=>jr,watchSyncEffect:()=>Mr,withAsyncContext:()=>Wa,withCtx:()=>M,withDefaults:()=>Ia,withDirectives:()=>Cr,withKeys:()=>Tu,withMemo:()=>hc,withModifiers:()=>Cu,withScopeId:()=>Sr}),Bu=()=>{};function Vu(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=Er(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(Tr(r,e),e)]}function Hu(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Uu(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Wu(e,t){return Re()?(ze(e,t),!0):!1}function Gu(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return Wu(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function Ku(e){let t=!1,n,r=Le(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var qu=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ju=e=>e!==void 0,Yu=Object.prototype.toString,Xu=e=>Yu.call(e)===`[object Object]`,Zu=Qu();function Qu(){var e,t;return qu&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function $u(e){return Array.isArray(e)?e:[e]}function ed(e){return e||Js()}function td(e){if(!qu)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=Le(!0),n=r.run(()=>e(...a))),Wu(i),n))}function nd(e){return tn(mn(e)?new Proxy({},{get(t,n,r){return j(Reflect.get(e.value,n,r))},set(t,n,r){return mn(e.value[n])&&!mn(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function rd(e){return nd(L(e))}function id(e,...t){let n=t.flat(),r=n[0];return rd(()=>Object.fromEntries(typeof r==`function`?Object.entries(wn(e)).filter(([e,t])=>!r(yn(t),e)):Object.entries(wn(e)).filter(e=>!n.includes(e[0]))))}function ad(e,t=1e4){return Cn((n,r)=>{let i=yn(e),a,o=()=>setTimeout(()=>{i=yn(e),r()},yn(t));return Wu(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function od(e,t){ed(t)&&sa(e,t)}function sd(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=hn(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},yn(t))}return r&&(a.value=!0,qu&&l()),Wu(c),{isPending:an(a),start:l,stop:c}}function cd(e,t,n){return Nr(e,t,{...n,immediate:!0})}var ld=qu?window:void 0;qu&&window.document,qu&&window.navigator,qu&&window.location;function ud(e){let t=yn(e);return t?.$el??t}function dd(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=L(()=>{let t=$u(yn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return cd(()=>[n.value?.map(e=>ud(e))??[ld].filter(e=>e!=null),$u(yn(n.value?e[1]:e[0])),$u(j(n.value?e[2]:e[1])),yn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Xu(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function fd(){let e=hn(!1),t=Js();return t&&ia(()=>{e.value=!0},t),e}function pd(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function md(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=ld,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=pd(t);return dd(i,a,e=>{e.repeat&&yn(s)||c(e)&&n(e)},o)}function hd(e){return JSON.parse(JSON.stringify(e))}function gd(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=Js(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):hd(e):e,g=()=>Ju(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=A(g()),r=!1;return Nr(()=>e[t],e=>{r||(r=!0,n.value=h(e),rr(()=>r=!1))}),Nr(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return L({get(){return g()},set(e){_(e)}})}function _d(e){return e?e.flatMap(e=>e.type===ms?_d(e.children):[e]):[]}var[vd,yd]=Vu(`ConfigProvider`),bd=new WeakMap;function xd(e,t){let n=bd.get(e);n||(n={owners:new Set,original:e.body.style.pointerEvents},bd.set(e,n)),n.owners.add(t),e.body.style.pointerEvents=`none`}function Sd(e,t){let n=bd.get(e);n?.owners.delete(t)&&n.owners.size===0&&(bd.delete(e),e.body.style.pointerEvents=n.original)}function Cd(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function wd(e,t,n=`.`,r){if(!Cd(t))return wd(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:Cd(a)&&Cd(i[t])?wd(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function Td(e){return(...t)=>t.reduce((t,n)=>wd(t,n,``,e),{})}var Ed=Td(),Dd=Symbol(`useBodyScrollLock`),Od=td(()=>{let e=A(new Map),t=A(),n=L(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=vd({scrollBody:A(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,Sd(document,Dd),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,Zu&&i?.(),t.value=void 0};return Nr(n,(e,o)=>{if(!qu)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?Ed({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),Zu&&(i=dd(document,`touchmove`,e=>jd(e),{passive:!1})),rr(()=>{n.value&&(xd(document,Dd),document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function kd(e){let t=Math.random().toString(36).substring(2,7),n=Od();n.value.set(t,e??!1);let r=L({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return od(()=>{n.value.delete(t)}),r}function Ad(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:Ad(t)}}function jd(e){let t=e||window.event,n=t.target;return n instanceof Element&&Ad(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Md(e){let t=vd({dir:A(`ltr`)});return L(()=>e?.value||t.dir?.value||`ltr`)}function Nd(e){let t=Js(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[se(D(t))]=(...n)=>e(t,...n)}),r}function Pd(){let e=Js(),t=A(),n=L(()=>r());oa(()=>{n.value!==r()&&vn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ud(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}function Fd(e){let t=Js(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=Dn(e);return L(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[D(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function Id(e,t){let n=Fd(e),r=t?Nd(t):{};return L(()=>({...n.value,...r}))}var Ld=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rd=new WeakMap,zd=new WeakMap,Bd={},Vd=0,Hd=function(e){return e&&(e.host||Hd(e.parentNode))},Ud=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Hd(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Wd=function(e,t,n,r){var i=Ud(t,Array.isArray(e)?e:[e]);Bd[n]||(Bd[n]=new WeakMap);var a=Bd[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Rd.get(e)||0)+1,l=(a.get(e)||0)+1;Rd.set(e,c),a.set(e,l),o.push(e),c===1&&i&&zd.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Vd++,function(){o.forEach(function(e){var t=Rd.get(e)-1,i=a.get(e)-1;Rd.set(e,t),a.set(e,i),t||(zd.has(e)||e.removeAttribute(r),zd.delete(e)),i||e.removeAttribute(n)}),Vd--,Vd||(Rd=new WeakMap,Rd=new WeakMap,zd=new WeakMap,Bd={})}},Gd=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ld(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Wd(r,i,n,`aria-hidden`)):function(){return null}};function Kd(e){let t;Nr(()=>ud(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Gd(e):t&&t()}),ca(()=>{t&&t()})}var qd=0;function Jd(e,t=`reka`){if(e)return e;let n,r=vd({useId:void 0});return n=r.useId?r.useId():`useId`in zu?fi?.():`${++qd}`,t?`${t}-${n}`:n}function Yd(e){let t=A(),n=L(()=>t.value?.width??0),r=L(()=>t.value?.height??0),i;return ia(()=>{let n=ud(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),ca(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function Xd(e,t){let n=A(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Zd(e,t){let n=A({}),r=A(`none`),i=A(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??ld,{state:c,dispatch:l}=Xd(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(qu){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};Nr(e,async(e,i)=>{let a=i!==e;if(await rr(),a){let a=r.value,o=Qd(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{if(e.target!==t.value)return;let n=Qd(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=Qd(t.value))},p=Nr(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=Nr(c,()=>{let e=Qd(t.value);r.value=c.value===`mounted`?e:`none`});return ca(()=>{p(),m(),t.value&&(t.value.removeEventListener(`animationstart`,f),t.value.removeEventListener(`animationcancel`,d),t.value.removeEventListener(`animationend`,d)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:L(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function Qd(e){return e&&getComputedStyle(e).animationName||`none`}var $d=N({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=wn(e),a=A(),{isPresent:o}=Zd(r,a);n({present:o});let s=t.default({present:o.value});s=_d(s||[]);let c=Js();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
5
+ `)].join(`
6
+ `))}return()=>i.value||r.value||o.value?R(t.default({present:o.value})[0],{ref:e=>{let t=ud(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),ef=N({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=_d(n.default()),r=e.findIndex(e=>e.type!==gs);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Vs(t,i.props):t,o=Ps({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),tf=[`area`,`img`,`input`],nf=N({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&tf.includes(r)?()=>R(r,t):r===`template`?()=>R(ef,t,{default:n.default}):()=>R(e.as,t,{default:n.default})}}),[rf,af]=Vu(`DialogRoot`),of=N({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=gd(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=A(),a=A(),{modal:o,unmountOnHide:s}=wn(n);return af({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>P(e.$slots,`default`,{open:j(r),close:()=>r.value=!1})}}),sf=N({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;Pd();let n=rf();return(r,i)=>(F(),Ts(j(nf),Vs(t,{type:e.as===`button`?`button`:void 0,onClick:i[0]||=e=>j(n).onOpenChange(!1)}),{default:M(()=>[P(r.$slots,`default`)]),_:3},16,[`type`]))}}),cf=`dismissableLayer.pointerDownOutside`,lf=`dismissableLayer.focusOutside`;function uf(e){if(typeof e!=`object`||!e)return!1;let t=e.ownerDocument?.defaultView;return typeof Element<`u`&&e instanceof Element||!!t&&e instanceof t.Element}function df(e,t){if(!uf(t))return!1;if(e.contains(t))return!0;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function ff(e,t,n=!0){let r=A(!1),i=A(()=>{});return Ar(a=>{if(!qu||!yn(n))return;let o=t?.value?.ownerDocument??globalThis.document,s=async n=>{let a=n.target;if(t?.value&&a){if(df(t.value,a))o.removeEventListener(`click`,i.value),r.value=!1;else{if(n.target&&!r.value){let t={originalEvent:n};function r(){Uu(cf,e,t)}n.pointerType===`touch`?(o.removeEventListener(`click`,i.value),i.value=r,o.addEventListener(`click`,i.value,{once:!0})):r()}else o.removeEventListener(`click`,i.value);r.value=!1}}},c=window.setTimeout(()=>{o.addEventListener(`pointerdown`,s)},0);a(()=>{window.clearTimeout(c),o.removeEventListener(`pointerdown`,s),o.removeEventListener(`click`,i.value)})}),{onPointerDownCapture:()=>{yn(n)&&(r.value=!0)}}}function pf(e,t,n=!0){let r=A(!1);return Ar(i=>{if(!qu||!yn(n))return;let a=t?.value?.ownerDocument??globalThis.document,o=async n=>{if(!t?.value)return;await rr(),await rr();let i=n.target;t.value&&i&&!df(t.value,i)&&n.target&&!r.value&&Uu(lf,e,{originalEvent:n})};a.addEventListener(`focusin`,o),i(()=>a.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{yn(n)&&(r.value=!0)},onBlurCapture:()=>{yn(n)&&(r.value=!1)}}}var mf=tn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hf=N({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Pd(),o=L(()=>a.value?.ownerDocument??globalThis.document),s=L(()=>mf.layersRoot),c=L(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=L(()=>mf.layersWithOutsidePointerEventsDisabled.size>0),u=L(()=>{let e=Array.from(s.value),[t]=[...mf.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=ff(async e=>{let t=[...mf.branches].some(t=>t?.contains(e.target));n.present&&u.value&&!t&&(r(`pointerDownOutside`,e),r(`interactOutside`,e),await rr(),e.defaultPrevented||r(`dismiss`))},a,()=>n.present),f=pf(e=>{let t=[...mf.branches].some(t=>t?.contains(e.target));n.present&&!t&&(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return md(`Escape`,e=>{n.present&&c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))},{target:()=>o.value?.defaultView??globalThis.window}),Nr([a,()=>n.disableOutsidePointerEvents,()=>n.present],([e,t,n],r,i)=>{if(e&&n&&t){let t=e.ownerDocument;xd(t,e),mf.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{mf.layersWithOutsidePointerEventsDisabled.delete(e),Sd(t,e)})}},{immediate:!0}),Nr([a,()=>n.present],([e,t],n,r)=>{e&&t&&(s.value.add(e),r(()=>{s.value.delete(e)}))},{immediate:!0}),Ar(e=>{e(()=>{a.value&&(s.value.delete(a.value),mf.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(t,n)=>(F(),Ts(j(nf),{ref:j(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:he({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:j(f).onFocusCapture,onBlurCapture:j(f).onBlurCapture,onPointerdownCapture:j(d).onPointerDownCapture},{default:M(()=>[P(t.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),gf=Ku(()=>A([]));function _f(){let e=gf();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=vf(e.value,t),e.value.unshift(t)},remove(t){e.value=vf(e.value,t),e.value[0]?.resume()}}}function vf(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var yf=`focusScope.autoFocusOnMount`,bf=`focusScope.autoFocusOnUnmount`,xf={bubbles:!1,cancelable:!0};function Sf(e,t){let n=t;for(;n;){if(e.contains(n))return!0;n=n.getRootNode().host??null}return!1}function Cf(e,{select:t=!1}={}){let n=Hu();for(let r of e)if(kf(r,{select:t}),Hu()!==n)return!0}function wf(e){let t=Tf(e);return[Ef(t,e),Ef(t.reverse(),e)]}function Tf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t.sort((e,t)=>e.tabIndex===t.tabIndex?0:e.tabIndex===0?1:t.tabIndex===0?-1:e.tabIndex-t.tabIndex)}function Ef(e,t){for(let n of e)if(!Df(n,{upTo:t}))return n}function Df(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Of(e){return e instanceof HTMLInputElement&&`select`in e}function kf(e,{select:t=!1}={}){if(e&&e.focus){let n=Hu();e.focus({preventScroll:!0}),e!==n&&Of(e)&&t&&e.select()}}var Af=N({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=Pd(),o=A(null),s=_f(),c=tn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Ar(e=>{if(!qu)return;let t=a.value;if(!n.trapped)return;let r=t?.ownerDocument??document,i=t?t.getRootNode():r;function s(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:kf(o.value,{select:!0})}function l(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||kf(o.value,{select:!0}))}function u(e){let n=o.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=Hu();r&&t.contains(r)||t.contains(n)||kf(t)}function d(e){if(c.paused||!t)return;let n=e.composedPath()[0];Sf(t,n)||kf(o.value,{select:!0})}i.addEventListener(`focusin`,s),i.addEventListener(`focusout`,l),i!==r&&r.addEventListener(`focusin`,d);let f=new MutationObserver(u);t&&f.observe(t,{childList:!0,subtree:!0}),e(()=>{i.removeEventListener(`focusin`,s),i.removeEventListener(`focusout`,l),i!==r&&r.removeEventListener(`focusin`,d),f.disconnect()})});function l(e,t){let n=new CustomEvent(yf,xf),i=e=>r(`mountAutoFocus`,e);e.addEventListener(yf,i),e.dispatchEvent(n),e.removeEventListener(yf,i),n.defaultPrevented||(Cf(Tf(e),{select:!0}),Hu()===t&&kf(e))}Ar(async e=>{let t=a.value;if(await rr(),!t)return;n.present!==!1&&s.add(c);let i=Hu();!t.contains(i)&&n.present!==!1&&l(t,i),e(()=>{let e=new CustomEvent(bf,xf),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(bf,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||kf(i??document.body,{select:!0}),t.removeEventListener(bf,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),Nr(()=>n.present,async(e,t)=>{if(!qu)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await rr();let n=a.value;if(!n)return;let r=Hu();n.contains(r)||l(n,r)});function u(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Hu();if(t&&r){let t=e.currentTarget,[i,a]=wf(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&kf(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&kf(a,{select:!0})):r===t&&e.preventDefault()}}return(t,n)=>(F(),Ts(j(nf),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:u},{default:M(()=>[P(t.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),jf=`menu.itemSelect`,Mf=[`Enter`,` `],Nf=[`ArrowDown`,`PageUp`,`Home`],Pf=[`ArrowUp`,`PageDown`,`End`],Ff=[...Nf,...Pf];[...Mf],[...Mf];function If(e){return e?`open`:`closed`}function Lf(e){let{onEntryFocus:t,onEntryFocusOnce:n,...r}=e;return r}function Rf(e){let t=Hu();for(let n of e)if(n===t||(n.focus(),Hu()!==t))return}function zf(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Bf(e,t){return t?zf({x:e.clientX,y:e.clientY},t):!1}function Vf(e){return e.pointerType===`mouse`}var Hf=N({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=rf(),{forwardRef:a,currentElement:o}=Pd();return i.titleId||=Jd(void 0,`reka-dialog-title`),i.descriptionId||=Jd(void 0,`reka-dialog-description`),ia(()=>{i.contentElement=o,Hu()!==document.body&&(i.triggerElement.value=Hu())}),(t,o)=>(F(),Ts(j(Af),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:o[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:o[6]||=e=>r(`closeAutoFocus`,e)},{default:M(()=>[I(j(hf),Vs({id:j(i).contentId,ref:j(a),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":j(i).descriptionId,"aria-labelledby":j(i).titleId,"data-state":j(If)(j(i).open.value)},t.$attrs,{onDismiss:o[0]||=e=>j(i).onOpenChange(!1),onEscapeKeyDown:o[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:o[2]||=e=>r(`focusOutside`,e),onInteractOutside:o[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:o[4]||=e=>r(`pointerDownOutside`,e)}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),Uf=N({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=rf(),a=Nd(r),{forwardRef:o,currentElement:s}=Pd();Kd(L(()=>n.present?s.value:void 0));let c=L(()=>{let{present:e,...t}=n;return t});return Nr(()=>n.present,(e,t)=>{!e&&t&&i.triggerElement.value?.focus()}),(t,r)=>(F(),Ts(Hf,Vs({...c.value,...j(a)},{ref:j(o),present:e.present,"trap-focus":j(i).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:r[0]||=e=>{e.defaultPrevented||(e.preventDefault(),j(i).triggerElement.value?.focus())},onPointerDownOutside:r[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:r[2]||=e=>{e.preventDefault()}}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),Wf=N({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=Nd(t);Pd();let i=rf(),a=A(!1),o=A(!1),s=L(()=>{let{present:e,...t}=n;return t});return Nr(()=>n.present,(e,t)=>{!e&&t&&(a.value||i.triggerElement.value?.focus(),a.value=!1,o.value=!1)}),(t,n)=>(F(),Ts(Hf,Vs({...s.value,...j(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:n[0]||=e=>{e.defaultPrevented||(a.value||j(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:n[1]||=e=>{e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;j(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`present`]))}}),Gf=N({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=rf(),a=Nd(r),{forwardRef:o}=Pd(),s=L(()=>n.forceMount||!i.unmountOnHide.value);return(t,r)=>(F(),Ts(j($d),{present:j(i).open.value,"force-mount":s.value},{default:M(({present:r})=>[j(i).modal.value?Cr((F(),Ts(Uf,Vs({key:0,ref:j(o),present:!s.value||r},{...n,...j(a),...t.$attrs}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`present`])),[[el,e.forceMount||j(i).unmountOnHide.value||r]]):Cr((F(),Ts(Wf,Vs({key:1,ref:j(o),present:!s.value||r},{...n,...j(a),...t.$attrs}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`present`])),[[el,e.forceMount||j(i).unmountOnHide.value||r]])]),_:3},8,[`present`,`force-mount`]))}}),Kf=N({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;Pd();let n=rf();return(e,r)=>(F(),Ts(j(nf),Vs(t,{id:j(n).descriptionId}),{default:M(()=>[P(e.$slots,`default`)]),_:3},16,[`id`]))}}),qf=N({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=rf(),r=kd(t.present);return Nr(()=>t.present,e=>r.value=e),Pd(),(t,r)=>(F(),Ts(j(nf),{as:e.as,"as-child":e.asChild,"data-state":j(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:r[0]||=Cu(()=>{},[`left`,`self`,`prevent`])},{default:M(()=>[P(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),Jf=N({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=rf(),{forwardRef:r}=Pd(),i=L(()=>t.forceMount||!n.unmountOnHide.value);return(t,a)=>j(n)?.modal.value?(F(),Ts(j($d),{key:0,present:j(n).open.value,"force-mount":i.value},{default:M(({present:a})=>[Cr(I(qf,Vs(t.$attrs,{ref:j(r),as:e.as,"as-child":e.asChild,present:!i.value||a}),{default:M(()=>[P(t.$slots,`default`)]),_:3},16,[`as`,`as-child`,`present`]),[[el,e.forceMount||j(n).unmountOnHide.value||a]])]),_:3},8,[`present`,`force-mount`])):Ls(`v-if`,!0)}}),Yf=N({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=vd({}),r=L(()=>t.to??n.teleportTo?.value??`body`),i=fd();return(t,n)=>j(i)||e.forceMount?(F(),Ts(Jr,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[P(t.$slots,`default`)],8,[`to`,`disabled`,`defer`])):Ls(`v-if`,!0)}}),Xf=N({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(F(),Ts(j(Yf),xe(Ns(t)),{default:M(()=>[P(e.$slots,`default`)]),_:3},16))}}),Zf=N({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=rf();return Pd(),(e,r)=>(F(),Ts(j(nf),Vs(t,{id:j(n).titleId}),{default:M(()=>[P(e.$slots,`default`)]),_:3},16,[`id`]))}}),Qf=N({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(t,n)=>(F(),Ts(j(nf),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`fully-hidden`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:M(()=>[P(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),[$f,ep]=Vu(`PopperRoot`),tp=N({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=A();return ep({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>P(e.$slots,`default`)}}),np=N({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Pd(),i=$f();return jr(()=>{i.onAnchorChange(t.reference??r.value)}),(t,r)=>(F(),Ts(j(nf),{ref:j(n),as:e.as,"as-child":e.asChild},{default:M(()=>[P(t.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function rp(e){return e!==null}function ip(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ap(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function ap(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var op=[`top`,`right`,`bottom`,`left`],sp=Math.min,cp=Math.max,lp=Math.round,up=Math.floor,dp=e=>({x:e,y:e}),fp={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function pp(e,t,n){return cp(e,sp(t,n))}function mp(e,t){return typeof e==`function`?e(t):e}function hp(e){return e.split(`-`)[0]}function gp(e){return e.split(`-`)[1]}function _p(e){return e===`x`?`y`:`x`}function vp(e){return e===`y`?`height`:`width`}function yp(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function bp(e){return _p(yp(e))}function xp(e,t,n){n===void 0&&(n=!1);let r=gp(e),i=bp(e),a=vp(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ap(o)),[o,Ap(o)]}function Sp(e){let t=Ap(e);return[Cp(e),t,Cp(t)]}function Cp(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var wp=[`left`,`right`],Tp=[`right`,`left`],Ep=[`top`,`bottom`],Dp=[`bottom`,`top`];function Op(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Tp:wp:t?wp:Tp;case`left`:case`right`:return t?Ep:Dp;default:return[]}}function kp(e,t,n,r){let i=gp(e),a=Op(hp(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Cp)))),a}function Ap(e){let t=hp(e);return fp[t]+e.slice(t.length)}function jp(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Mp(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:jp(e)}function Np(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Pp(e,t,n){let{reference:r,floating:i}=e,a=yp(t),o=bp(t),s=vp(o),c=hp(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=gp(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Fp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=mp(t,e),p=Mp(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Np(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Np(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ip=50,Lp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Fp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Pp(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ip&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Pp(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Rp=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=mp(e,t)||{};if(l==null)return{};let d=Mp(u),f={x:n,y:r},p=bp(i),m=vp(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=sp(d[_],T),E=sp(d[v],T),te=C-h[m]-E,ne=C/2-h[m]/2+w,re=pp(ee,ne,te),D=!c.arrow&&gp(i)!=null&&ne!==re&&a.reference[m]/2-(ne<ee?ee:E)-h[m]/2<0,ie=D?ne<ee?ne-ee:ne-te:0;return{[p]:f[p]+ie,data:{[p]:re,centerOffset:ne-re-ie,...D&&{alignmentOffset:ie}},reset:D}}}),zp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=mp(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=hp(r),_=yp(o),v=hp(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ap(o)]:Sp(o)),x=p!==`none`;!d&&x&&b.push(...kp(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=xp(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===yp(t)||T.every(e=>yp(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=yp(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Bp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return op.some(t=>e[t]>=0)}var Hp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=mp(e,t);switch(i){case`referenceHidden`:{let e=Bp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vp(e)}}}case`escaped`:{let e=Bp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Vp(e)}}}default:return{}}}}},Up=new Set([`left`,`top`]);async function Wp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=hp(n),s=gp(n),c=yp(n)===`y`,l=Up.has(o)?-1:1,u=a&&c?-1:1,d=mp(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Gp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Wp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Kp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=mp(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=yp(i),p=_p(f),m=u[p],h=u[f],g=(e,t)=>pp(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},qp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=mp(e,t),u={x:n,y:r},d=yp(i),f=_p(d),p=u[f],m=u[d],h=mp(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Up.has(hp(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Jp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=mp(e,t),c=await i.detectOverflow(t,s),l=hp(n),u=gp(n),d=yp(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=sp(p-c[m],g),y=sp(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*cp(c.left,c.right):S=p-2*cp(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Yp(){return typeof window<`u`}function Xp(e){return $p(e)?(e.nodeName||``).toLowerCase():`#document`}function Zp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qp(e){return(($p(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function $p(e){return Yp()?e instanceof Node||e instanceof Zp(e).Node:!1}function em(e){return Yp()?e instanceof Element||e instanceof Zp(e).Element:!1}function tm(e){return Yp()?e instanceof HTMLElement||e instanceof Zp(e).HTMLElement:!1}function nm(e){return!Yp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Zp(e).ShadowRoot}function rm(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=mm(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function im(e){return/^(table|td|th)$/.test(Xp(e))}function am(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var om=/transform|translate|scale|rotate|perspective|filter/,sm=/paint|layout|strict|content/,cm=e=>!!e&&e!==`none`,lm;function um(e){let t=em(e)?mm(e):e;return cm(t.transform)||cm(t.translate)||cm(t.scale)||cm(t.rotate)||cm(t.perspective)||!fm()&&(cm(t.backdropFilter)||cm(t.filter))||om.test(t.willChange||``)||sm.test(t.contain||``)}function dm(e){let t=gm(e);for(;tm(t)&&!pm(t);){if(um(t))return t;if(am(t))return null;t=gm(t)}return null}function fm(){return lm??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),lm}function pm(e){return/^(html|body|#document)$/.test(Xp(e))}function mm(e){return Zp(e).getComputedStyle(e)}function hm(e){return em(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gm(e){if(Xp(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||nm(e)&&e.host||Qp(e);return nm(t)?t.host:t}function _m(e){let t=gm(e);return pm(t)?(e.ownerDocument||e).body:tm(t)&&rm(t)?t:_m(t)}function vm(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=_m(e),i=r===e.ownerDocument?.body,a=Zp(r);if(i){let e=ym(a);return t.concat(a,a.visualViewport||[],rm(r)?r:[],e&&n?vm(e):[])}return t.concat(r,vm(r,[],n))}function ym(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bm(e){let t=mm(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=tm(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=lp(n)!==a||lp(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function xm(e){return em(e)?e:e.contextElement}function Sm(e){let t=xm(e);if(!tm(t))return dp(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=bm(t),o=(a?lp(n.width):n.width)/r,s=(a?lp(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Cm=dp(0);function wm(e){let t=Zp(e);return!fm()||!t.visualViewport?Cm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tm(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Zp(e)}function Em(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=xm(e),o=dp(1);t&&(r?em(r)&&(o=Sm(r)):o=Sm(e));let s=Tm(a,n,r)?wm(a):dp(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Zp(a),t=em(r)?Zp(r):r,n=e,i=ym(n);for(;i&&t!==n;){let e=Sm(i),t=i.getBoundingClientRect(),r=mm(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Zp(i),i=ym(n)}}return Np({width:u,height:d,x:c,y:l})}function Dm(e,t){let n=hm(e).scrollLeft;return t?t.left+n:Em(Qp(e)).left+n}function Om(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Dm(e,n),y:n.top+t.scrollTop}}function km(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Qp(r),s=t?am(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=dp(1),u=dp(0),d=tm(r);if((d||!a)&&((Xp(r)!==`body`||rm(o))&&(c=hm(r)),d)){let e=Em(r);l=Sm(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Om(o,c):dp(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Am(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function jm(e){let t=hm(e),n=e.ownerDocument.body,r=cp(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=cp(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Dm(e),o=-t.scrollTop;return mm(n).direction===`rtl`&&(a+=cp(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Mm=25;function Nm(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Zp(e),a=Qp(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!fm()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Dm(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Mm&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Pm(e,t){let n=Em(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Sm(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fm(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Nm(e,n,t);else if(t===`document`)r=jm(Qp(e));else if(em(t))r=Pm(t,n);else{let n=wm(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Np(r)}function Im(e,t){let n=t.get(e);if(n)return n;let r=vm(e,[],!1).filter(e=>em(e)&&Xp(e)!==`body`),i=null,a=mm(e).position===`fixed`,o=a?gm(e):e;for(;em(o)&&!pm(o);){let e=mm(o),t=um(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=gm(o)}return t.set(e,r),r}function Lm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?am(t)?[]:Im(t,this._c):[].concat(n),r],o=Fm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Fm(t,a[e],i);s=cp(n.top,s),c=sp(n.right,c),l=sp(n.bottom,l),u=cp(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Rm(e){let{width:t,height:n}=bm(e);return{width:t,height:n}}function zm(e,t,n){let r=tm(t),i=Qp(t),a=n===`fixed`,o=Em(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=dp(0);if((r||!a)&&((Xp(t)!==`body`||rm(i))&&(s=hm(t)),r)){let e=Em(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Dm(i));let l=i&&!r&&!a?Om(i,s):dp(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Bm(e){return mm(e).position===`static`}function Vm(e,t){if(!tm(e)||mm(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Qp(e)===n&&(n=n.ownerDocument.body),n}function Hm(e,t){let n=Zp(e);if(am(e))return n;if(!tm(e)){let t=gm(e);for(;t&&!pm(t);){if(em(t)&&!Bm(t))return t;t=gm(t)}return n}let r=Vm(e,t);for(;r&&im(r)&&Bm(r);)r=Vm(r,t);return r&&pm(r)&&Bm(r)&&!um(r)?n:r||dm(e)||n}var Um=async function(e){let t=this.getOffsetParent||Hm,n=this.getDimensions,r=await n(e.floating);return{reference:zm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wm(e){return mm(e).direction===`rtl`}var Gm={convertOffsetParentRelativeRectToViewportRelativeRect:km,getDocumentElement:Qp,getClippingRect:Lm,getOffsetParent:Hm,getElementRects:Um,getClientRects:Am,getDimensions:Rm,getScale:Sm,isElement:em,isRTL:Wm};function Km(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qm(e,t,n){let r=null,i,a=Qp(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=up(d),h=up(a.clientWidth-(u+f)),g=up(a.clientHeight-(d+p)),_=up(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:cp(0,sp(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Km(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Zp(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Jm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=xm(e),u=i||a?[...l?vm(l):[],...t?vm(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?qm(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Em(e):null;c&&g();function g(){let t=Em(e);h&&!Km(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ym=Gp,Xm=Kp,Zm=zp,Qm=Jp,$m=Hp,eh=Rp,th=qp,nh=(e,t,n)=>{let r=new Map,i=n??{},a={...Gm,...i.platform,_c:r};return Lp(e,t,{...i,platform:a})};function rh(e){return typeof e==`object`&&!!e&&`$el`in e}function ih(e){if(rh(e)){let t=e.$el;return $p(t)&&Xp(t)===`#comment`?null:t}return e}function ah(e){return{name:`arrow`,options:e,fn(t){let n=ih(yn(e.element));return n==null?{}:eh({element:n,padding:e.padding}).fn(t)}}}function oh(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sh(e,t){let n=oh(e);return Math.round(t*n)/n}function ch(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=L(()=>yn(n.open)??!0),a=L(()=>yn(n.middleware)),o=L(()=>yn(n.placement)??`bottom`),s=L(()=>yn(n.strategy)??`absolute`),c=L(()=>yn(n.transform)??!0),l=L(()=>ih(e.value)),u=L(()=>ih(t.value)),d=A(0),f=A(0),p=A(s.value),m=A(o.value),h=hn({}),g=A(!1),_=L(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=sh(u.value,d.value),n=sh(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...oh(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;nh(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){b(),r===void 0?y():l.value!=null&&u.value!=null&&(v=r(l.value,u.value,y))}function S(){i.value||(g.value=!1)}return Nr([a,o,s,i],y,{flush:`sync`}),Nr([l,u],x,{flush:`sync`}),Nr(i,S,{flush:`sync`}),Re()&&ze(b),{x:an(d),y:an(f),strategy:an(p),placement:an(m),middlewareData:an(h),isPositioned:an(g),floatingStyles:_,update:y}}var lh=[`dir`],uh={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[dh,fh]=Vu(`PopperContent`),ph=N({inheritAttrs:!1,__name:`PopperContent`,props:Va({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...uh}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=$f(),{forwardRef:a,currentElement:o}=Pd(),s=Md(L(()=>n.dir)),c=A(),l=A(),{width:u,height:d}=Yd(l),f=L(()=>n.side+(n.align===`center`?``:`-${n.align}`)),p=L(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),m=L(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=L(()=>({padding:p.value,boundary:m.value.filter(rp),altBoundary:m.value.length>0})),g=L(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),_=L(()=>[Ym({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Zm({...h.value,...g.value}),n.avoidCollisions&&Xm({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?th():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Zm({...h.value,...g.value}),Qm({...h.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),l.value&&ah({element:l.value,padding:n.arrowPadding}),ip({arrowWidth:u.value,arrowHeight:d.value,dir:s.value}),n.hideWhenDetached&&$m({strategy:`referenceHidden`,...h.value})]),{floatingStyles:v,placement:y,isPositioned:b,middlewareData:x,update:S}=ch(L(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...e)=>Jm(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:_}),C=L(()=>ap(y.value)[0]),w=L(()=>ap(y.value)[1]);jr(()=>{b.value&&r(`placed`)});let T=L(()=>{let e=x.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),ee=A(``);return Ar(()=>{o.value&&(ee.value=window.getComputedStyle(o.value).zIndex)}),fh({placedSide:C,onArrowChange:e=>l.value=e,arrowX:L(()=>x.value.arrow?.x??0),arrowY:L(()=>x.value.arrow?.y??0),shouldHideArrow:T}),(e,t)=>(F(),ws(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,dir:j(s),style:he({...j(v),transform:j(b)?j(v).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ee.value,"--reka-popper-transform-origin":[j(x).transformOrigin?.x,j(x).transformOrigin?.y].join(` `),...j(x).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?hc([n.asChild,n.as,C.value,w.value,j(b),...Object.values(e.$attrs),...n.memoDependencies],()=>(F(),Ts(j(nf),Vs({key:0,ref:j(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,style:{animation:j(b)?void 0:`none`}}),{default:M(()=>[P(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(F(),Ts(j(nf),Vs({key:1,ref:j(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,dir:j(s),style:{animation:j(b)?void 0:`none`}}),{default:M(()=>[P(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,lh))}}),mh=e=>e.startsWith(`/`);function hh(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function gh(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&hh(e.default)}var _h=Object.assign;function vh(e,t){let n={};for(let r in t){let i=t[r];n[r]=bh(i)?i.map(e):e(i)}return n}var yh=()=>{},bh=Array.isArray;function xh(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Sh=Symbol(``);function Ch(e,t){return _h(Error(),{type:e,[Sh]:!0},t)}function wh(e,t){return e instanceof Error&&Sh in e&&(t==null||!!(e.type&t))}var Th=Symbol(``),Eh=Symbol(``),Dh=Symbol(``),Oh=Symbol(``),kh=Symbol(``),Ah=Symbol(``);function jh(){return Er(Dh)}function Mh(e){return Er(Oh)}var Nh={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ph=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function Fh(e){return e!=null}function Ih(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Nh.width,a=e.size??e.height??Nh.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ph(...c):Ph(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Nh[`stroke-width`])*Number(e.size??e.width??Nh.width)/Number(t.size??t.width??Nh.width):t.strokeWidth??Nh[`stroke-width`];return[`svg`,{...Object.entries(Nh).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Fh(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Fh(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Fh(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var Lh=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Rh=e=>e===``,zh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Bh=Symbol(`lucide-icons`);function Vh(){return Er(Bh,{})}var Hh=({name:e,iconNode:t,"icon-node":n,icon:r={name:e&&zh(e),node:t??n??[],size:24,aliases:[]},absoluteStrokeWidth:i,"absolute-stroke-width":a,nonScalingStroke:o,"non-scaling-stroke":s,strokeWidth:c,"stroke-width":l,size:u,width:d=u,height:f=u,color:p,...m},{slots:h})=>{let{size:g,color:_,strokeWidth:v=2,absoluteStrokeWidth:y=!1,nonScalingStroke:b=!1,class:x=``}=Vh(),S=Rh(i)||Rh(a)||i===!0||a===!0||y===!0,C=Rh(o)||Rh(s)||o===!0||s===!0||b===!0;delete m.class;let w=h.default?.(),[,T,ee=[]]=Ih(r,{color:p??_,width:d??u??g,height:f??u??g,strokeWidth:c??l??v,absoluteStrokeWidth:S,nonScalingStroke:C,className:x,hasA11yProp:w!=null&&w.length>0||Lh(m),attributes:m});return R(`svg`,T,[...ee.map(([e,t])=>R(e,t)),...w??[]])};function Uh(e,t=[]){let n=typeof e==`string`?{name:e,node:t}:e;return(e,{slots:t})=>R(Hh,{...e,icon:n},t.default?{default:t.default}:void 0)}var Wh=Uh({name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]}),Gh=Uh({name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]}),Kh=Uh({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]});function qh(e){return e instanceof Error?e.message:String(e)}async function Jh(e,t){let n;try{n=await e()}catch(e){return{outcome:{ok:!1,error:qh(e)},actionError:e}}try{await t()}catch(e){return{outcome:{ok:!0,value:n},refetchError:e}}return{outcome:{ok:!0,value:n}}}var Yh=e=>Array.isArray(e)?e:[e],Xh=(e,t)=>{let n=[[],[]];for(let r of e)t(r)?n[0].push(r):n[1].push(r);return n},Zh=Array,Qh=(e,t)=>e.includes(t),$h=(e,t=0)=>[...Array(e)].map((e,n)=>n+t),eg=(e,t,n)=>e===void 0?t===void 0?[]:Array.isArray(t)?t:[t]:(n?.prepend?Array.isArray(t)?e.unshift(...t):e.unshift(t):Array.isArray(t)?e.push(...t):e.push(t),e),tg=(e,t)=>t==null?e??[]:e==null?Yh(t):e.concat(t),ng=(...e)=>e.reduce(tg,[]),rg=(e,t,n)=>{if(e===void 0)return Array.isArray(t)?t:[t];let r=n?.isEqual??((e,t)=>e===t);for(let n of Yh(t))e.some(e=>r(e,n))||e.push(n);return e},ig=(e,t)=>e.reduce((e,n)=>{let r=n[t];return e[r]=eg(e[r],n),e},{}),ag=(e,t,n)=>e.length===t.length&&e.every(n?.isEqual?(e,r)=>n.isEqual(e,t[r]):(e,n)=>e===t[n]),og=(e,t)=>sg(e)===t,sg=e=>{let t=typeof e;return t===`object`?e===null?`null`:`object`:t===`function`?`object`:t},cg={boolean:`boolean`,null:`null`,undefined:`undefined`,bigint:`a bigint`,number:`a number`,object:`an object`,string:`a string`,symbol:`a symbol`},lg={...cg,function:`a function`},ug=class extends Error{},dg=e=>fg(e,ug),fg=(e,t=Error)=>{throw new t(e)},pg=class extends Error{name=`ParseError`},z=e=>fg(e,pg),mg=e=>` ${e}`,hg=(e,t)=>{let n={},r=Array.isArray(e),i=!1;for(let[a,o]of Object.entries(e).entries()){let e=r?t(a,o[1]):t(...o,a);i||=typeof e[0]==`number`;let s=Array.isArray(e[0])||e.length===0?e:[e];for(let[e,t]of s)typeof e==`object`?n[e.group]=eg(n[e.group],t):n[e]=t}return i?Object.values(n):n},gg=Object.entries,_g=e=>Object.keys(e),vg=(e,t)=>e in t,yg=(e,t)=>t in e,bg=class{constructor(e){Object.assign(this,e)}},xg=class{},Sg=class extends xg{},Cg=(e,t)=>{let n={},r={},i;for(i in e)i in t?n[i]=e[i]:r[i]=e[i];return[n,r]},wg=(e,t)=>Cg(e,t)[1],Tg=e=>Object.keys(e).length===0,Eg=e=>[...Object.entries(e),...Object.getOwnPropertySymbols(e).map(t=>[t,e[t]])],Dg=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Og=e=>{let t=Object.keys(e).sort(),n={};for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n},kg=mg(`unset​`),Ag=e=>Object.values(e).filter(t=>typeof t==`number`||typeof e[t]!=`number`),jg={Array,Boolean,Date,Error,Function,Map,Number,Promise,RegExp,Set,String,WeakMap,WeakSet},Mg=globalThis.File??Blob,Ng={ArrayBuffer,Blob,File:Mg,FormData,Headers,Request,Response,URL},Pg={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array},Fg={...jg,...Ng,...Pg,String,Number,Boolean},Ig=e=>{if(Array.isArray(e))return`Array`;let t=Object.getPrototypeOf(e);for(;t?.constructor&&(!vg(t.constructor.name,Fg)||!(e instanceof Fg[t.constructor.name]));)t=Object.getPrototypeOf(t);let n=t?.constructor?.name;if(n!==void 0&&n!==`Object`)return n},Lg=e=>typeof e==`object`&&e?Ig(e)??`object`:sg(e),Rg=Array.isArray,zg={Array:`an array`,Function:`a function`,Date:`a Date`,RegExp:`a RegExp`,Error:`an Error`,Map:`a Map`,Set:`a Set`,String:`a String object`,Number:`a Number object`,Boolean:`a Boolean object`,Promise:`a Promise`,WeakMap:`a WeakMap`,WeakSet:`a WeakSet`},Bg={ArrayBuffer:`an ArrayBuffer instance`,Blob:`a Blob instance`,File:`a File instance`,FormData:`a FormData instance`,Headers:`a Headers instance`,Request:`a Request instance`,Response:`a Response instance`,URL:`a URL instance`},Vg={Int8Array:`an Int8Array`,Uint8Array:`a Uint8Array`,Uint8ClampedArray:`a Uint8ClampedArray`,Int16Array:`an Int16Array`,Uint16Array:`a Uint16Array`,Int32Array:`an Int32Array`,Uint32Array:`a Uint32Array`,Float32Array:`a Float32Array`,Float64Array:`a Float64Array`,BigInt64Array:`a BigInt64Array`,BigUint64Array:`a BigUint64Array`},Hg={...zg,...Bg,...Vg},Ug=e=>{let t=Object(e).name??null;return t&&vg(t,Fg)&&Fg[t]===e?t:null},Wg=(e,t)=>{let n=e.prototype;for(;n!==null;){if(n===t.prototype)return!0;n=Object.getPrototypeOf(n)}return!1},Gg=e=>Kg(e,new Map),Kg=(e,t)=>{if(typeof e!=`object`||!e)return e;if(t?.has(e))return t.get(e);let n=Ug(e.constructor);if(n===`Date`)return new Date(e.getTime());if(n&&n!==`Array`)return e;let r=Array.isArray(e)?e.slice():Object.create(Object.getPrototypeOf(e)),i=Object.getOwnPropertyDescriptors(e);if(t){t.set(e,r);for(let e in i){let n=i[e];`get`in n||`set`in n||(n.value=Kg(n.value,t))}}return Object.defineProperties(r,i),r},qg=e=>{let t=kg;return()=>t===kg?t=e():t},Jg=e=>typeof e==`function`&&e.length===0,Yg=class extends Function{constructor(...e){let t=e.slice(0,-1),n=e[e.length-1];try{super(...t,n)}catch(t){return dg(`Encountered an unexpected error while compiling your definition:
7
+ Message: ${t}
8
+ Source: (${e.slice(0,-1)}) => {
9
+ ${e[e.length-1]}
10
+ }`)}}},Xg=class{constructor(e,...[t]){return Object.assign(Object.setPrototypeOf(e.bind(t?.bind??this),this.constructor.prototype),t?.attach)}},Zg=qg(()=>{try{return Function(`return false`)()}catch{return!0}});mg(`brand`),mg(`arkInferred`),mg(`args`);var Qg=class{constructor(){}},$g={fileName:()=>{try{return((Error().stack?.split(`
11
+ `)[2]?.trim()||``).match(/\(?(.+?)(?::\d+:\d+)?\)?$/)?.[1]||`unknown`).replace(/^file:\/\//,``)}catch{return`unknown`}},env:{}},e_=e=>e.length===0?e:e[0].toUpperCase()+e.slice(1),t_=e=>e.length===0?e:e[0].toLowerCase()+e.slice(1),n_=e=>new RegExp(r_(e),typeof e==`string`?``:e.flags),r_=e=>`^(?:${typeof e==`string`?e:e.source})$`,i_={negativeLookahead:e=>`(?!${e})`,nonCapturingGroup:e=>`(?:${e})`},a_={" ":1,"\n":1," ":1},o_=`^-0\\.?0*$`,s_=`[1-9]\\d*`,c_=`\\.\\d+`,l_=`\\.\\d*[1-9]`,u_=e=>n_(i_.negativeLookahead(o_)+i_.nonCapturingGroup(`-?`+i_.nonCapturingGroup(i_.nonCapturingGroup(`0|`+s_)+i_.nonCapturingGroup(e.decimalPattern)+`?`)+(e.allowDecimalOnly?`|`+e.decimalPattern+`?`:``))),d_=u_({decimalPattern:l_,allowDecimalOnly:!1}),f_=d_.test.bind(d_),p_=u_({decimalPattern:c_,allowDecimalOnly:!0});p_.test.bind(p_);var m_=/^-?\d*\.?\d*$/,h_=e=>e.length!==0&&m_.test(e),g_=n_(i_.negativeLookahead(`^-0$`)+`-?`+i_.nonCapturingGroup(i_.nonCapturingGroup(`0|`+s_))),__=g_.test.bind(g_),v_=/^-?\d+$/,y_=v_.test.bind(v_),b_={number:`a number`,bigint:`a bigint`,integer:`an integer`},x_=(e,t)=>`'${e}' was parsed as ${b_[t]} but could not be narrowed to a literal value. Avoid unnecessary leading or trailing zeros and other abnormal notation`,S_=(e,t)=>t===`number`?f_(e):__(e),C_=(e,t)=>t===`number`?Number(e):Number.parseInt(e),w_=(e,t)=>t===`number`?h_(e):y_(e),T_=(e,t)=>O_(e,`number`,t),E_=(e,t)=>O_(e,`number`,{...t,strict:!0}),D_=(e,t)=>O_(e,`integer`,t),O_=(e,t,n)=>{let r=C_(e,t);return!Number.isNaN(r)&&w_(e,t)?n?.strict?S_(e,t)?r:z(x_(e,t)):r:n?.errorOnFail?z(n?.errorOnFail===!0?`Failed to parse ${b_[t]} from '${e}'`:n?.errorOnFail):void 0},k_=e=>{if(e[e.length-1]!==`n`)return;let t=e.slice(0,-1),n;try{n=BigInt(t)}catch{return}if(g_.test(t))return n;if(v_.test(t))return z(x_(e,`bigint`))},A_={version:`0.56.7`,filename:$g.fileName(),FileConstructor:Mg},j_=new Map,M_=Object.create(null),N_=e=>{let t=j_.get(e);if(t)return t;let n=F_(e);return M_[n]?n=`${n}${M_[n]++}`:M_[n]=1,A_[n]=e,j_.set(e,n),n},P_=e=>/^[$A-Z_a-z][\w$]*$/.test(e),F_=e=>{switch(typeof e){case`object`:{if(e===null)break;let t=Ig(e)??`object`;return t[0].toLowerCase()+t.slice(1)}case`function`:return P_(e.name)?e.name:`fn`;case`symbol`:return e.description&&P_(e.description)?e.description:`symbol`}return dg(`Unexpected attempt to register serializable value of type ${sg(e)}`)},I_=e=>typeof e==`string`?JSON.stringify(e):typeof e==`bigint`?`${e}n`:`${e}`,L_=(e,t={})=>H_(e,{onUndefined:`$ark.undefined`,onBigInt:e=>`$ark.bigint-${e}`,...t},[]),B=(e,t)=>{switch(sg(e)){case`object`:let n=e,r=n.constructor?.name??`Object`;return r===`Object`||r===`Array`?t?.quoteKeys===!1?R_(n,t?.indent??0,``):JSON.stringify(H_(n,z_,[]),null,t?.indent).replace(V_,`$1`):R_(n,t?.indent??0,``);case`symbol`:return z_.onSymbol(e);default:return I_(e)}},R_=(e,t,n)=>{if(typeof e==`function`)return z_.onFunction(e);if(typeof e!=`object`||!e)return I_(e);let r=n+` `.repeat(t);if(Array.isArray(e)){if(e.length===0)return`[]`;let i=e.map(e=>R_(e,t,r)).join(`,
12
+ `+r);return t?`[\n${r}${i}\n${n}]`:`[${i}]`}let i=e.constructor?.name??`Object`;if(i===`Object`){let i=Eg(e).map(([e,n])=>{let i=typeof e==`symbol`?z_.onSymbol(e):P_(e)?e:JSON.stringify(e),a=R_(n,t,r);return`${r}${i}: ${a}`});return i.length===0?`{}`:t?`{\n${i.join(`,
13
+ `)}\n${n}}`:`{${i.join(`, `)}}`}return e instanceof Date?U_(e):`expression`in e&&typeof e.expression==`string`?e.expression:i},z_={onCycle:()=>`(cycle)`,onSymbol:e=>`Symbol(${N_(e)})`,onFunction:e=>`Function(${N_(e)})`,onBigInt:e=>`${B_}${e}n`},B_=``,V_=RegExp(`"${B_}(-?\\d+n)"`,`g`),H_=(e,t,n)=>{switch(sg(e)){case`object`:{let r=e;if(`toJSON`in r&&typeof r.toJSON==`function`)return r.toJSON();if(typeof r==`function`)return z_.onFunction(r);if(n.includes(r))return`(cycle)`;let i=[...n,r];if(Array.isArray(r))return r.map(e=>H_(e,t,i));if(r instanceof Date)return r.toDateString();let a={};for(let e in r)a[e]=H_(r[e],t,i);for(let e of Object.getOwnPropertySymbols(r))a[t.onSymbol?.(e)??e.toString()]=H_(r[e],t,i);return a}case`symbol`:return z_.onSymbol(e);case`bigint`:return t.onBigInt?.(e)??`${e}n`;case`undefined`:return t.onUndefined??`undefined`;case`string`:return e.replace(/\\/g,`\\\\`);default:return e}},U_=e=>{let t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),i=e.getHours(),a=e.getMinutes(),o=e.getSeconds(),s=e.getMilliseconds();if(n===0&&r===1&&i===0&&a===0&&o===0&&s===0)return`${t}`;let c=`${W_[n]} ${r}, ${t}`;if(i===0&&a===0&&o===0&&s===0)return c;let l=i%12||12,u=i<12?` AM`:` PM`,d=o||s?`${l}:${G_(a,2)}:${G_(o,2)}`:`${l}:${G_(a,2)}`;return s&&(d+=`.${G_(s,3)}`),`${d+u}, ${c}`},W_=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],G_=(e,t)=>String(e).padStart(t,`0`),K_=(e,t,...[n])=>{let r=n?.stringifySymbol??B,i=e;switch(typeof t){case`string`:i=P_(t)?e===``?t:`${e}.${t}`:`${e}[${JSON.stringify(t)}]`;break;case`number`:i=`${e}[${t}]`;break;case`symbol`:i=`${e}[${r(t)}]`;break;default:n?.stringifyNonKey?i=`${e}[${n.stringifyNonKey(t)}]`:z(`${B(t)} must be a PropertyKey or stringifyNonKey must be passed to options`)}return i},q_=(e,...t)=>e.reduce((e,n)=>K_(e,n,...t),``),J_=class extends Zh{cache={};constructor(...e){super(),this.push(...e)}toJSON(){if(this.cache.json)return this.cache.json;this.cache.json=[];for(let e=0;e<this.length;e++)this.cache.json.push(typeof this[e]==`symbol`?B(this[e]):this[e]);return this.cache.json}stringify(){return this.cache.stringify?this.cache.stringify:this.cache.stringify=q_(this)}stringifyAncestors(){if(this.cache.stringifyAncestors)return this.cache.stringifyAncestors;let e=``,t=[e];for(let n of this)e=K_(e,n),t.push(e);return this.cache.stringifyAncestors=t}},Y_=class{chars;i;def;constructor(e){this.def=e,this.chars=[...e],this.i=0}shift(){return this.chars[this.i++]??``}get lookahead(){return this.chars[this.i]??``}get nextLookahead(){return this.chars[this.i+1]??``}get length(){return this.chars.length}shiftUntil(e){let t=``;for(;this.lookahead&&!e(this,t);)t+=this.shift();return t}shiftUntilEscapable(e,t=``){let n=``;for(;this.lookahead;)if(this.lookahead===`\\`)this.shift(),e(this,n)?n+=this.shift():this.lookahead===`\\`?n+=`${t}${this.shift()}`:n+=`\\${this.shift()}`;else if(e(this,n))break;else n+=this.shift();return n}shiftUntilLookahead(e){return typeof e==`string`?this.shiftUntil(t=>t.lookahead===e):this.shiftUntil(t=>t.lookahead in e)}shiftUntilNonWhitespace(){return this.shiftUntil(()=>!(this.lookahead in a_))}jumpToIndex(e){this.i=e<0?this.length+e:e}jumpForward(e){this.i+=e}get location(){return this.i}get unscanned(){return this.chars.slice(this.i,this.length).join(``)}get scanned(){return this.chars.slice(0,this.i).join(``)}sliceChars(e,t){return this.chars.slice(e,t).join(``)}lookaheadIs(e){return this.lookahead===e}lookaheadIsIn(e){return this.lookahead in e}},X_=(e,t)=>`Unmatched ${e}${t===``?``:` before ${t}`}`,Z_=e=>`Missing ${e}`;mg(`implementedTraits`);for(var Q_=`$ark`,$_=2;Q_ in globalThis;)Q_=`$ark${$_++}`;var ev=Q_;globalThis[ev]=A_;var V=A_,tv=e=>`${ev}.${e}`,nv=e=>tv(N_(e)),rv=class extends Sg{argNames;body=``;constructor(...e){super(),this.argNames=e;for(let t of e){if(t in this)throw Error(`Arg name '${t}' would overwrite an existing property on FunctionBody`);this[t]=t}}indentation=0;indent(){return this.indentation+=4,this}dedent(){return this.indentation-=4,this}prop(e,t=!1){return av(e,t)}index(e,t=!1){return sv(`${e}`,t)}line(e){return this.body+=`${` `.repeat(this.indentation)}${e}\n`,this}const(e,t){return this.line(`const ${e} = ${t}`),this}let(e,t){return this.line(`let ${e} = ${t}`)}set(e,t){return this.line(`${e} = ${t}`)}if(e,t){return this.block(`if (${e})`,t)}elseIf(e,t){return this.block(`else if (${e})`,t)}else(e){return this.block(`else`,e)}for(e,t,n=0){return this.block(`for (let i = ${n}; ${e}; i++)`,t)}forIn(e,t){return this.block(`for (const k in ${e})`,t)}block(e,t,n=``){return this.line(`${e} {`),this.indent(),t(this),this.dedent(),this.line(`}${n}`)}return(e=``){return this.line(`return ${e}`)}write(e=`anonymous`,t=0){return`${e}(${this.argNames.join(`, `)}) { ${t?this.body.split(`
14
+ `).map(e=>` `.repeat(t)+`${e}`).join(`
15
+ `):this.body} }`}compile(){return new Yg(...this.argNames,this.body)}},iv=e=>og(e,`object`)||typeof e==`symbol`?nv(e):I_(e),av=(e,t=!1)=>typeof e==`string`&&P_(e)?`${t?`?`:``}.${e}`:sv(ov(e),t),ov=e=>typeof e==`symbol`?nv(e):JSON.stringify(e),sv=(e,t=!1)=>`${t?`?.`:``}[${e}]`,cv=class extends rv{traversalKind;optimistic;constructor(e){super(`data`,`ctx`),this.traversalKind=e.kind,this.optimistic=e.optimistic===!0}invoke(e,t){let n=t?.arg??this.data,r=typeof e==`string`||this.requiresContextFor(e),i=typeof e==`string`?e:e.id;return r?`${this.referenceToId(i,t)}(${n}, ${this.ctx})`:`${this.referenceToId(i,t)}(${n})`}referenceToId(e,t){let n=`this.${e}${t?.kind??this.traversalKind}`;return t?.bind?`${n}.bind(${t?.bind})`:n}requiresContextFor(e){return this.traversalKind===`Apply`||e.allowsRequiresContext}initializeErrorCount(){return this.const(`errorCount`,`ctx.currentErrorCount`)}returnIfFail(){return this.if(`ctx.currentErrorCount > errorCount`,()=>this.return())}returnIfFailFast(){return this.if(`ctx.failFast && ctx.currentErrorCount > errorCount`,()=>this.return())}traverseKey(e,t,n){let r=this.requiresContextFor(n);return r&&this.line(`${this.ctx}.path.push(${e})`),this.check(n,{arg:t}),r&&this.line(`${this.ctx}.path.pop()`),this}check(e,t){return this.traversalKind===`Allows`?this.if(`!${this.invoke(e,t)}`,()=>this.return(!1)):this.line(this.invoke(e,t))}},lv=e=>hg(e,(e,t)=>[e,Rg(t)?[...t]:t]),uv=mg(`arkKind`),H=(e,t)=>e?.[uv]===t,dv=e=>H(e,`root`)||H(e,`constraint`),fv=[`unit`,`proto`,`domain`],pv=[`required`,`optional`,`index`,`sequence`],mv=[`pattern`,`divisor`,`exactLength`,`max`,`min`,`maxLength`,`minLength`,`before`,`after`],hv=[...mv,`structure`,`predicate`],gv=[...hv,...pv],_v=[`alias`,`union`,`morph`,`unit`,`intersection`,`proto`,`domain`],vv=[..._v,...gv],yv=hg(gv,(e,t)=>[t,1]),bv=hg([...pv,`undeclared`],(e,t)=>[t,1]),xv=hg(vv,(e,t)=>[t,e]),Sv=e=>typeof e==`string`&&e in xv,Cv=e=>xv[e],wv=e=>_v.slice(Cv(e)+1);[...wv(`union`)],[...wv(`morph`)];var Tv=e=>typeof e==`string`||typeof e==`boolean`||e===null?e:typeof e==`number`?Number.isNaN(e)?`NaN`:e===1/0?`Infinity`:e===-1/0?`-Infinity`:e:iv(e),Ev=e=>{let t=`{ `;for(let[n,r]of Object.entries(e))t+=`${n}: ${iv(r)}, `;return t+` }`},Dv=e=>{let t=e;return t.hasAssociatedError&&(t.defaults.expected??=e=>`description`in e?e.description:t.defaults.description(e),t.defaults.actual??=e=>B(e),t.defaults.problem??=e=>`must be ${e.expected}${e.actual?` (was ${e.actual})`:``}`,t.defaults.message??=e=>{if(e.path.length===0)return e.problem;let t=`${e.propString} ${e.problem}`;return t[0]===`[`?`value at ${t}`:t}),t},Ov={Error:class extends Error{name=`ToJsonSchemaError`;code;context;constructor(e,t){super(B(t,{quoteKeys:!1,indent:4})),this.code=e,this.context=t}hasCode(e){return this.code===e}},throw:(...e)=>{throw new Ov.Error(...e)},throwInternalOperandError:(e,t)=>dg(`Unexpected JSON Schema input for ${e}: ${B(t)}`),defaultConfig:{target:`draft-2020-12`,dialect:`https://json-schema.org/draft/2020-12/schema`,useRefs:!1,fallback:{arrayObject:e=>Ov.throw(`arrayObject`,e),arrayPostfix:e=>Ov.throw(`arrayPostfix`,e),defaultValue:e=>Ov.throw(`defaultValue`,e),domain:e=>Ov.throw(`domain`,e),morph:e=>Ov.throw(`morph`,e),patternIntersection:e=>Ov.throw(`patternIntersection`,e),predicate:e=>Ov.throw(`predicate`,e),proto:e=>Ov.throw(`proto`,e),symbolKey:e=>Ov.throw(`symbolKey`,e),unit:e=>Ov.throw(`unit`,e),date:e=>Ov.throw(`date`,e)}}};V.config??={};var kv=(e,t)=>{if(!t)return e;let n={...e},r;for(r in t){let i={...e.keywords};if(r===`keywords`){for(let e in t[r]){let n=t.keywords[e];n!==void 0&&(i[e]=typeof n==`string`?{description:n}:n)}n.keywords=i}else r===`toJsonSchema`?n[r]=jv(e.toJsonSchema,t.toJsonSchema):Sv(r)?n[r]={...e[r],...t[r]}:n[r]=t[r]}return n},Av={"draft-2020-12":`https://json-schema.org/draft/2020-12/schema`,"draft-07":`http://json-schema.org/draft-07/schema#`},jv=((e,t)=>{if(!e)return Mv(t??{},void 0);if(!t)return e;let n={...e},r;for(r in t)r===`fallback`?n.fallback=Nv(e.fallback,t.fallback):n[r]=t[r];return Mv(n,t)}),Mv=(e,t)=>t?.dialect===void 0?t?.target===void 0?e:{...e,dialect:Av[t.target]}:e,Nv=(e,t)=>{e=Pv(e),t=Pv(t);let n={},r;for(r in Ov.defaultConfig.fallback)n[r]=t[r]??t.default??e[r]??e.default??Ov.defaultConfig.fallback[r];return n},Pv=e=>typeof e==`function`?{default:e}:e??{},Fv=class e extends Sg{[uv]=`error`;path;data;nodeConfig;input;ctx;constructor({prefixPath:e,relativePath:t,...n},r){super(),this.input=n,this.ctx=r,Dg(this,n);let i=r.data;n.code===`union`&&(n.errors=n.errors.flatMap(n=>{let r=n.hasCode(`union`)?n.errors:[n];return!e&&!t?r:r.map(n=>n.transform(n=>({...n,path:ng(e,n.path,t)})))})),this.nodeConfig=r.config[this.code];let a=[...n.path??r.path];t&&a.push(...t),e&&a.unshift(...e),this.path=new J_(...a),this.data=`data`in n?n.data:i}transform(t){return new e(t({data:this.data,path:this.path,...this.input}),this.ctx)}hasCode(e){return this.code===e}get propString(){return q_(this.path)}get expected(){if(this.input.expected)return this.input.expected;let e=this.meta?.expected??this.nodeConfig.expected;return typeof e==`function`?e(this.input):e}get actual(){if(this.input.actual)return this.input.actual;let e=this.meta?.actual??this.nodeConfig.actual;return typeof e==`function`?e(this.data):e}get problem(){if(this.input.problem)return this.input.problem;let e=this.meta?.problem??this.nodeConfig.problem;return typeof e==`function`?e(this):e}get message(){if(this.input.message)return this.input.message;let e=this.meta?.message??this.nodeConfig.message;return typeof e==`function`?e(this):e}get flat(){return this.hasCode(`intersection`)?[...this.errors]:[this]}toJSON(){return{data:this.data,path:this.path,...this.input,expected:this.expected,actual:this.actual,problem:this.problem,message:this.message}}toString(){return this.message}throw(){throw this}},Iv=class e extends Zh{[uv]=`errors`;static get[Symbol.species](){return Array}ctx;constructor(e){super(),this.ctx=e}byPath=Object.create(null);get flatByPath(){return hg(this.byPath,(e,t)=>[e,t.flat])}get flatProblemsByPath(){return hg(this.byPath,(e,t)=>[e,t.flat.map(e=>e.problem)])}byAncestorPath=Object.create(null);count=0;mutable=this;throw(){throw this.toTraversalError()}toTraversalError(){return new Lv(this)}add(e){let t=this.byPath[e.propString];if(t){if(e===t||t.hasCode(`union`)&&t.errors.length===0)return;let n=e.hasCode(`union`)&&e.errors.length===0?e:new Fv({code:`intersection`,errors:t.hasCode(`intersection`)?[...t.errors,e]:[t,e]},this.ctx),r=this.indexOf(t);this.mutable[r===-1?this.length:r]=n,this.byPath[e.propString]=n,this.addAncestorPaths(e)}else this.byPath[e.propString]=e,this.addAncestorPaths(e),this.mutable.push(e);this.count++}transform(t){let n=new e(this.ctx);for(let e of this)n.add(t(e));return n}merge(e){for(let t of e)this.add(new Fv({...t,path:[...this.ctx.path,...t.path]},this.ctx))}affectsPath(e){return this.length===0?!1:e.stringifyAncestors().some(e=>e in this.byPath)||e.stringify()in this.byAncestorPath}get summary(){return this.toString()}get message(){return this.summary}get issues(){return this}toJSON(){return[...this.map(e=>e.toJSON())]}toString(){return this.join(`
16
+ `)}addAncestorPaths(e){for(let t of e.path.stringifyAncestors())this.byAncestorPath[t]=eg(this.byAncestorPath[t],e)}},Lv=class extends Error{name=`TraversalError`;constructor(e){e.length===1?super(e.summary):super(`
17
+ `+e.map(e=>` • ${Rv(e)}`).join(`
18
+ `)),Object.defineProperty(this,"arkErrors",{value:e,enumerable:!1})}},Rv=e=>e.toString().split(`
19
+ `).join(`
20
+ `),zv=class{path=[];errors=new Iv(this);root;config;queuedMorphs=[];branches=[];seen={};constructor(e,t){this.root=e,this.config=t}get data(){let e=this.root;for(let t of this.path)e=e?.[t];return e}get propString(){return q_(this.path)}reject(e){return this.error(e),!1}mustBe(e){return this.error(e),!1}error(e){let t=typeof e==`object`?e.code?e:{...e,code:`predicate`}:{code:`predicate`,expected:e};return this.errorFromContext(t)}hasError(){return this.currentErrorCount!==0}get currentBranch(){return this.branches[this.branches.length-1]}queueMorphs(e){let t={path:new J_(...this.path),morphs:e};this.currentBranch?this.currentBranch.queuedMorphs.push(t):this.queuedMorphs.push(t)}finalize(e){return this.queuedMorphs.length&&(typeof this.root==`object`&&this.root!==null&&this.config.clone&&(this.root=this.config.clone(this.root)),this.applyQueuedMorphs()),this.hasError()?e?e(this.errors):this.errors:this.root}get currentErrorCount(){return this.currentBranch?+!!this.currentBranch.error:this.errors.count}get failFast(){return this.branches.length!==0}pushBranch(){this.branches.push({error:void 0,queuedMorphs:[]})}popBranch(){return this.branches.pop()}get external(){return this}errorFromNodeContext(e){return this.errorFromContext(e)}errorFromContext(e){let t=new Fv(e,this);return this.currentBranch?this.currentBranch.error=t:this.errors.add(t),t}applyQueuedMorphs(){for(;this.queuedMorphs.length;){let e=this.queuedMorphs;this.queuedMorphs=[];for(let{path:t,morphs:n}of e)this.errors.affectsPath(t)||this.applyMorphsAtPath(t,n)}}applyMorphsAtPath(e,t){let n=e[e.length-1],r;if(n!==void 0){r=this.root;for(let t=0;t<e.length-1;t++)r=r[e[t]]}for(let i of t){this.path=[...e];let t=dv(i),a=i(r===void 0?this.root:r[n],this);if(a instanceof Fv){this.errors.add(a);break}if(a instanceof Iv){t||this.errors.merge(a),this.queuedMorphs=[];break}r===void 0?this.root=a:r[n]=a,this.applyQueuedMorphs()}}},Bv=(e,t,n)=>{if(!n)return t();n.path.push(e);let r=t();return n.path.pop(),r},Vv=class extends Xg{attachments;$;onFail;includesTransform;includesContextualPredicate;isCyclic;allowsRequiresContext;rootApplyStrategy;contextFreeMorph;rootApply;referencesById;shallowReferences;flatRefs;flatMorphs;allows;get shallowMorphs(){return[]}constructor(e,t){super((e,t,n=this.onFail)=>t?(this.traverseApply(e,t),t.hasError()?t.errors:t.data):this.rootApply(e,n),{attach:e}),this.attachments=e,this.$=t,this.onFail=this.meta.onFail??this.$.resolvedConfig.onFail,this.includesTransform=this.hasKind(`morph`)||this.hasKind(`structure`)&&this.structuralMorph!==void 0||this.hasKind(`sequence`)&&this.inner.defaultables!==void 0,this.includesContextualPredicate=this.hasKind(`predicate`)&&this.inner.predicate.length!==1,this.isCyclic=this.kind===`alias`,this.referencesById={[this.id]:this},this.shallowReferences=this.hasKind(`structure`)?[this,...this.children]:this.children.reduce((e,t)=>Xv(e,t.shallowReferences),[this]);let n=this.isStructural();this.flatRefs=[],this.flatMorphs=[];for(let e=0;e<this.children.length;e++){if(this.includesTransform||=this.children[e].includesTransform,this.includesContextualPredicate||=this.children[e].includesContextualPredicate,this.isCyclic||=this.children[e].isCyclic,!n){let t=this.children[e].flatRefs;for(let e=0;e<t.length;e++){let n=t[e];if(!this.flatRefs.some(e=>Jv(e,n))){this.flatRefs.push(n);for(let e of n.node.branches)(e.hasKind(`morph`)||e.hasKind(`intersection`)&&e.structure?.structuralMorph!==void 0)&&this.flatMorphs.push({path:n.path,propString:n.propString,node:e})}}}Object.assign(this.referencesById,this.children[e].referencesById)}this.flatRefs.sort((e,t)=>e.path.length>t.path.length?1:e.path.length<t.path.length?-1:e.propString>t.propString?1:e.propString<t.propString||e.node.expression<t.node.expression?-1:1),this.allowsRequiresContext=this.includesContextualPredicate||this.isCyclic,this.rootApplyStrategy=!this.allowsRequiresContext&&this.flatMorphs.length===0?this.shallowMorphs.length===0?`allows`:this.shallowMorphs.every(e=>e.length===1||e.name===`$arkStructuralMorph`)?this.hasKind(`union`)?this.branches.some(e=>e.shallowMorphs.length>1)?`contextual`:`branchedOptimistic`:this.shallowMorphs.length>1?`contextual`:`optimistic`:`contextual`:`contextual`,this.rootApply=this.createRootApply(),this.allows=this.allowsRequiresContext?e=>this.traverseAllows(e,new zv(e,this.$.resolvedConfig)):e=>this.traverseAllows(e)}createRootApply(){switch(this.rootApplyStrategy){case`allows`:return(e,t)=>{if(this.allows(e))return e;let n=new zv(e,this.$.resolvedConfig);return this.traverseApply(e,n),n.finalize(t)};case`contextual`:return(e,t)=>{let n=new zv(e,this.$.resolvedConfig);return this.traverseApply(e,n),n.finalize(t)};case`optimistic`:this.contextFreeMorph=this.shallowMorphs[0];let e=this.$.resolvedConfig.clone;return(t,n)=>{if(this.allows(t))return this.contextFreeMorph(e&&(typeof t==`object`&&t||typeof t==`function`)?e(t):t);let r=new zv(t,this.$.resolvedConfig);return this.traverseApply(t,r),r.finalize(n)};case`branchedOptimistic`:return this.createBranchedOptimisticRootApply();default:return this.rootApplyStrategy,dg(`Unexpected rootApplyStrategy ${this.rootApplyStrategy}`)}}compiledMeta=Kv(this.metaJson);cacheGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}get description(){return this.cacheGetter(`description`,this.meta?.description??this.$.resolvedConfig[this.kind].description(this))}get references(){return Object.values(this.referencesById)}precedence=Cv(this.kind);precompilation;assert=(e,t)=>this(e,t,e=>e.throw());traverse(e,t){return this(e,t,null)}get in(){return this.cacheGetter(`in`,this.rawIn.isRoot()?this.$.finalize(this.rawIn):this.rawIn)}get rawIn(){return this.cacheGetter(`rawIn`,this.getIo(`in`))}get out(){return this.cacheGetter(`out`,this.rawOut.isRoot()?this.$.finalize(this.rawOut):this.rawOut)}get rawOut(){return this.cacheGetter(`rawOut`,this.getIo(`out`))}getIo(e){if(!this.includesTransform)return this;let t={};for(let[n,r]of this.innerEntries){let i=this.impl.keys[n];if(i.reduceIo)i.reduceIo(e,t,r);else if(i.child){let i=r;t[n]=Rg(i)?i.map(t=>e===`in`?t.rawIn:t.rawOut):e===`in`?i.rawIn:i.rawOut}else t[n]=r}return this.$.node(this.kind,t)}toJSON(){return this.json}toString(){return`Type<${this.expression}>`}equals(e){let t=dv(e)?e:this.$.parseDefinition(e);return this.innerHash===t.innerHash}ifEquals(e){return this.equals(e)?this:void 0}hasKind(e){return this.kind===e}assertHasKind(e){return this.kind!==e&&fg(`${this.kind} node was not of asserted kind ${e}`),this}hasKindIn(...e){return e.includes(this.kind)}assertHasKindIn(...e){return Qh(e,this.kind)||fg(`${this.kind} node was not one of asserted kinds ${e}`),this}isBasis(){return Qh(fv,this.kind)}isConstraint(){return Qh(gv,this.kind)}isStructural(){return Qh(pv,this.kind)}isRefinement(){return Qh(hv,this.kind)}isRoot(){return Qh(_v,this.kind)}isUnknown(){return this.hasKind(`intersection`)&&this.children.length===0}isNever(){return this.hasKind(`union`)&&this.children.length===0}hasUnit(e){return this.hasKind(`unit`)&&this.allows(e)}hasOpenIntersection(){return this.impl.intersectionIsOpen}get nestableExpression(){return this.expression}select(e){let t=Hv.normalize(e);return this._select(t)}_select(e){let t=Hv.applyBoundary[e.boundary??`references`](this);return e.kind&&(t=t.filter(t=>t.kind===e.kind)),e.where&&(t=t.filter(e.where)),Hv.applyMethod[e.method??`filter`](t,this,e)}transform(e,t){return this._transform(e,this._createTransformContext(t))}_createTransformContext(e){return{root:this,selected:void 0,seen:{},path:[],parseOptions:{prereduced:e?.prereduced??!1},undeclaredKeyHandling:void 0,...e}}_transform(e,t){let n=t.bindScope??this.$;if(t.seen[this.id])return this.$.lazilyResolve(t.seen[this.id]);if(t.shouldTransform?.(this,t)===!1)return this;let r;t.seen[this.id]=()=>r,this.hasKind(`structure`)&&this.undeclared!==t.undeclaredKeyHandling&&(t={...t,undeclaredKeyHandling:this.undeclared});let i=hg(this.inner,(n,r)=>{if(!this.impl.keys[n].child)return[n,r];let i=r;if(!Rg(i)){let r=i._transform(e,t);return r?[n,r]:[]}if(i.length===0)return[n,r];let a=i.flatMap(n=>n._transform(e,t)??[]);return a.length?[n,a]:[]});delete t.seen[this.id];let a=Object.assign(i,{meta:this.meta}),o=t.selected&&!t.selected.includes(this)?a:e(this.kind,a,t);if(o===null)return null;if(dv(o))return r=o;let s=Object.keys(o);return(s.length===0||s.length===1&&s[0]===`meta`)&&!Tg(this.inner)?null:(this.kind===`required`||this.kind===`optional`||this.kind===`index`)&&!(`value`in o)?t.undeclaredKeyHandling?{...o,value:V.intrinsic.unknown}:null:(this.kind===`morph`&&(o.in??=V.intrinsic.unknown),r=n.node(this.kind,o,t.parseOptions))}configureReferences(e,t=`references`){let n=Hv.normalize(t),r=typeof e==`string`?(t,n)=>({...n,meta:{...n.meta,description:e}}):typeof e==`function`?(t,n)=>({...n,meta:e(n.meta)}):(t,n)=>({...n,meta:{...n.meta,...e}});if(n.boundary===`self`)return this.$.node(this.kind,r(this.kind,{...this.inner,meta:this.meta}));let i=this._select(n),a=i&&Yh(i),o=n.boundary===`child`?(e,t)=>t.root.children.includes(e):n.boundary===`shallow`?e=>e.kind!==`structure`:()=>!0;return this.$.finalize(this.transform(r,{shouldTransform:o,selected:a}))}},Hv={applyBoundary:{self:e=>[e],child:e=>[...e.children],shallow:e=>[...e.shallowReferences],references:e=>[...e.references]},applyMethod:{filter:e=>e,assertFilter:(e,t,n)=>(e.length===0&&fg(Uv(t,n)),e),find:e=>e[0],assertFind:(e,t,n)=>(e.length===0&&fg(Uv(t,n)),e[0])},normalize:e=>typeof e==`function`?{boundary:`references`,method:`filter`,where:e}:typeof e==`string`?vg(e,Hv.applyBoundary)?{method:`filter`,boundary:e}:{boundary:`references`,method:`filter`,kind:e}:{boundary:`references`,method:`filter`,...e}},Uv=(e,t)=>`${e} had no references matching ${B(t)}.`,Wv=e=>q_(e,{stringifyNonKey:e=>e.expression}),Gv=/"(\$ark\.[^"]+)"/g,Kv=e=>JSON.stringify(e).replace(Gv,`$1`),qv=(e,t)=>({path:e,node:t,propString:Wv(e)}),Jv=(e,t)=>e.propString===t.propString&&e.node.equals(t.node),Yv=(e,t)=>rg(e,t,{isEqual:Jv}),Xv=(e,t)=>rg(e,t,{isEqual:(e,t)=>e.equals(t)}),U=class e extends Array{static init(t,n,r,i){return new e({kind:t,l:n,r,path:i?.path??[],optional:i?.optional??!1})}add(e,t,n,r){return this.push({kind:e,l:t,r:n,path:r?.path??[],optional:r?.optional??!1}),this}get summary(){return this.describeReasons()}describeReasons(){if(this.length===1){let{path:e,l:t,r:n}=this[0],r=q_(e);return $v(`Intersection${r&&` at ${r}`} of ${Zv(t,n)}`)}return`The following intersections result in unsatisfiable types:\n• ${this.map(({path:e,l:t,r:n})=>`${e}: ${Zv(t,n)}`).join(`
21
+ • `)}`}throw(){return z(this.describeReasons())}invert(){let t=this.map(e=>({...e,l:e.r,r:e.l}));return t instanceof e?t:new e(...t)}withPrefixKey(t,n){let r=this.map(e=>({...e,path:[t,...e.path],optional:e.optional||n===`optional`}));return r instanceof e?r:new e(...r)}toNeverIfDisjoint(){return V.intrinsic.never}},Zv=(e,t)=>`${Qv(e)} and ${Qv(t)}`,Qv=e=>dv(e)?e.expression:Rg(e)?e.map(Qv).join(` | `)||`never`:String(e),$v=e=>`${e} results in an unsatisfiable type`,ey={},ty=(e,t,n)=>ry(e,t,{$:n,invert:!1,pipe:!1}),ny=(e,t,n)=>ry(e,t,{$:n,invert:!1,pipe:!0}),ry=((e,t,n)=>{let r=n.pipe?`|>`:`&`,i=`${e.hash}${r}${t.hash}`;if(ey[i]!==void 0)return ey[i];if(!n.pipe){let n=`${t.hash}${r}${e.hash}`;if(ey[n]!==void 0){let e=ey[n],t=e instanceof U?e.invert():e;return ey[i]=t,t}}let a=!n.pipe||!e.includesTransform&&!t.includesTransform;if(a&&e.equals(t))return e;let o=a?iy(e,t,n):e.hasKindIn(..._v)?ay(e,t,n):iy(e,t,n);return dv(o)&&(e.equals(o)?o=e:t.equals(o)&&(o=t)),ey[i]=o,o}),iy=(e,t,n)=>{let r=e.precedence<t.precedence?e.kind:t.kind,i=e.impl.intersections[t.kind]??t.impl.intersections[e.kind];if(i===void 0)return null;if(r===e.kind)return i(e,t,n);{let r=i(t,e,{...n,invert:!n.invert});return r instanceof U&&(r=r.invert()),r}},ay=(e,t,n)=>e.includesTransform||t.includesTransform?n.invert?oy(t,e,n):oy(e,t,n):iy(e,t,n),oy=(e,t,n)=>e.distribute(e=>sy(e,t,n),r=>{let i=r.filter(dv);if(i.length===0)return U.init(`union`,e.branches,t.branches);if(i.length<e.branches.length||!e.branches.every((e,t)=>e.rawIn.equals(i[t].rawIn)))return n.$.parseSchema(i);if(i.length===1)return i[0];let a={branches:i};return n.$.parseSchema(a)}),sy=(e,t,n)=>{if(e.hasKind(`morph`)){let r=[...e.morphs];if(e.lastMorphIfNode){let i=ry(e.lastMorphIfNode,t,n);if(i instanceof U)return i;r[r.length-1]=i}else r.push(t);return n.$.node(`morph`,{morphs:r,in:e.inner.in})}if(t.hasKind(`morph`)){let r=ry(e,t.rawIn,n);return r instanceof U?r:n.$.node(`morph`,{morphs:[t],in:r})}return n.$.node(`morph`,{morphs:[t],in:e})},cy=class extends Vv{constructor(e,t){super(e,t),Object.defineProperty(this,uv,{value:`constraint`,enumerable:!1})}impliedSiblings;intersect(e){return ty(this,e,this.$)}},ly=class extends cy{traverseApply=(e,t)=>{this.traverseAllows(e,t)||t.errorFromNodeContext(this.errorContext)};compile(e){e.traversalKind===`Allows`?e.return(this.compiledCondition):e.if(this.compiledNegation,()=>e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`))}get errorContext(){return{code:this.kind,description:this.description,meta:this.meta,...this.inner}}get compiledErrorContext(){return Ev(this.errorContext)}},uy=e=>(t,n)=>{if(Rg(t)){if(t.length===0)return;let r=t.map(t=>n.$.node(e,t));return e===`predicate`?r:r.sort((e,t)=>e.hash<t.hash?-1:1)}let r=n.$.node(e,t);if(!r.isRoot())return r.hasOpenIntersection()?[r]:r},dy=e=>{let t=e.r.shift();if(!t){let t=e.l.length===0&&e.kind===`structure`?V.intrinsic.unknown.internal:e.ctx.$.node(e.kind,Object.assign(e.baseInner,py(e.l)),{prereduced:!0});for(let n of e.roots){if(t instanceof U)return t;t=ry(n,t,e.ctx)}return t}let n=!1;for(let r=0;r<e.l.length;r++){let i=ry(e.l[r],t,e.ctx);if(i!==null){if(i instanceof U)return i;if(i.isRoot())return e.roots.push(i),e.l.splice(r),dy(e);if(!n)e.l[r]=i,n=!0;else if(!e.l.includes(i))return dg(`Unexpectedly encountered multiple distinct intersection results for refinement ${t}`)}}if(n||e.l.push(t),e.kind===`intersection`&&t.impliedSiblings)for(let n of t.impliedSiblings)rg(e.r,n);return dy(e)},fy=e=>Object.entries(e).flatMap(([e,t])=>e in yv?t:[]).sort((e,t)=>e.precedence<t.precedence?-1:e.precedence>t.precedence?1:e.kind===`predicate`&&t.kind===`predicate`?0:e.hash<t.hash?-1:1),py=e=>{let t={};for(let n of e)if(n.hasOpenIntersection())t[n.kind]=eg(t[n.kind],n);else{if(t[n.kind])return dg(`Unexpected intersection of closed refinements of kind ${n.kind}`);t[n.kind]=n}return t},my=(...e)=>z(hy(...e)),hy=(e,t,n)=>{let r=n.hasKind(`morph`)?`a morph`:n.isUnknown()?`unknown`:n.exclude(t).defaultShortDescription;return`${e_(e)} operand must be ${t.description} (was ${r})`},gy=(e,t,n)=>new vy(e,t,n,n,null),_y=class extends Xg{},vy=class extends Xg{[uv]=`generic`;paramDefs;bodyDef;$;arg$;baseInstantiation;hkt;description;constructor(e,t,n,r,i){super((...e)=>{let n=hg(this.names,(t,n)=>{let r=this.arg$.parse(e[t]);return r.extends(this.constraints[t])||z(yy(n,this.constraints[t].expression,r.expression)),[n,r]});if(this.defIsLazy()){let e=this.bodyDef(n);return this.$.parse(e)}return this.$.parse(t,{args:n})}),this.paramDefs=e,this.bodyDef=t,this.$=n,this.arg$=r,this.hkt=i,this.description=i?new i().description??`a generic type for ${i.constructor.name}`:`a generic type`,this.baseInstantiation=this(...this.constraints)}defIsLazy(){return this.bodyDef instanceof _y}cacheGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}get json(){return this.cacheGetter(`json`,{params:this.params.map(e=>e[1].isUnknown()?e[0]:[e[0],e[1].json]),body:L_(this.bodyDef)})}get params(){return this.cacheGetter(`params`,this.paramDefs.map(e=>typeof e==`string`?[e,V.intrinsic.unknown]:[e[0],this.$.parse(e[1])]))}get names(){return this.cacheGetter(`names`,this.params.map(e=>e[0]))}get constraints(){return this.cacheGetter(`constraints`,this.params.map(e=>e[1]))}get internal(){return this}get referencesById(){return this.baseInstantiation.internal.referencesById}get references(){return this.baseInstantiation.internal.references}},yy=(e,t,n)=>`${e} must be assignable to ${t} (was ${n})`,by=e=>`valid according to ${e?.name||`an anonymous predicate`}`,xy={implementation:Dv({kind:`predicate`,hasAssociatedError:!0,collapsibleKey:`predicate`,keys:{predicate:{}},normalize:e=>typeof e==`function`?{predicate:e}:e,defaults:{description:e=>by(e.predicate),expected:e=>e.description??by(e.predicate)},intersectionIsOpen:!0,intersections:{predicate:()=>null}}),Node:class extends cy{serializedPredicate=nv(this.predicate);compiledCondition=`${this.serializedPredicate}(data, ctx)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=null;expression=this.serializedPredicate;traverseAllows=this.predicate;errorContext={code:`predicate`,description:this.description,meta:this.meta};compiledErrorContext=Ev(this.errorContext);traverseApply=(e,t)=>{let n=t.currentErrorCount;!this.predicate(e,t.external)&&t.currentErrorCount===n&&t.errorFromNodeContext(this.errorContext)};compile(e){e.traversalKind===`Allows`?e.return(this.compiledCondition):(e.initializeErrorCount(),e.if(`${this.compiledNegation} && ctx.currentErrorCount === errorCount`,()=>e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`)))}reduceJsonSchema(e,t){return t.fallback.predicate({code:`predicate`,base:e,predicate:this.predicate})}}},Sy={implementation:Dv({kind:`divisor`,collapsibleKey:`rule`,keys:{rule:{parse:e=>Number.isInteger(e)?e:z(Cy(e))}},normalize:e=>typeof e==`number`?{rule:e}:e,hasAssociatedError:!0,defaults:{description:e=>e.rule===1?`an integer`:e.rule===2?`even`:`a multiple of ${e.rule}`},intersections:{divisor:(e,t,n)=>n.$.node(`divisor`,{rule:Math.abs(e.rule*t.rule/wy(e.rule,t.rule))})},obviatesBasisDescription:!0}),Node:class extends ly{traverseAllows=e=>e%this.rule===0;compiledCondition=`data % ${this.rule} === 0`;compiledNegation=`data % ${this.rule} !== 0`;impliedBasis=V.intrinsic.number.internal;expression=`% ${this.rule}`;reduceJsonSchema(e){return e.type=`integer`,this.rule===1||(e.multipleOf=this.rule),e}}},Cy=e=>`divisor must be an integer (was ${e})`,wy=(e,t)=>{let n,r=e,i=t;for(;i!==0;)n=i,i=r%i,r=n;return r},Ty=class extends ly{boundOperandKind=Py[this.kind];compiledActual=this.boundOperandKind===`value`?`data`:this.boundOperandKind===`length`?`data.length`:`data.valueOf()`;comparator=Fy(this.kind,this.exclusive);numericLimit=this.rule.valueOf();expression=`${this.comparator} ${this.rule}`;compiledCondition=`${this.compiledActual} ${this.comparator} ${this.numericLimit}`;compiledNegation=`${this.compiledActual} ${Ey[this.comparator]} ${this.numericLimit}`;stringLimit=this.boundOperandKind===`date`?Iy(this.numericLimit):`${this.numericLimit}`;limitKind=this.comparator[0]===`<`?`upper`:`lower`;isStricterThan(e){return(this.limitKind===`upper`?this.numericLimit<e.numericLimit:this.numericLimit>e.numericLimit)||this.numericLimit===e.numericLimit&&this.exclusive===!0&&!e.exclusive}overlapsRange(e){return!(this.isStricterThan(e)||this.numericLimit===e.numericLimit&&(this.exclusive||e.exclusive))}overlapIsUnit(e){return this.numericLimit===e.numericLimit&&!this.exclusive&&!e.exclusive}},Ey={"<":`>=`,"<=":`>`,">":`<=`,">=":`<`},Dy={min:`max`,minLength:`maxLength`,after:`before`},Oy={parse:e=>e||void 0},ky=e=>t=>{if(typeof t==`number`)return{rule:t};let{exclusive:n,...r}=t;return n?{...r,rule:e===`minLength`?r.rule+1:r.rule-1}:r},Ay=e=>t=>{if(typeof t==`number`||typeof t==`string`||t instanceof Date)return{rule:t};let{exclusive:n,...r}=t;if(!n)return r;let i=typeof r.rule==`number`?r.rule:typeof r.rule==`string`?new Date(r.rule).valueOf():r.rule.valueOf();return n?{...r,rule:e===`after`?i+1:i-1}:r},jy=e=>typeof e==`string`||typeof e==`number`?new Date(e):e,My=(e,t)=>`${e} bound must be a positive integer (was ${t})`,Ny=e=>t=>((!Number.isInteger(t)||t<0)&&z(My(e,t)),t),Py={min:`value`,max:`value`,minLength:`length`,maxLength:`length`,after:`date`,before:`date`},Fy=(e,t)=>`${vg(e,Dy)?`>`:`<`}${t?``:`=`}`,Iy=e=>typeof e==`string`?e:new Date(e).toLocaleString(),Ly=e=>`Bounded expression ${e} must be exactly one of number, string, Array, or Date`,Ry={implementation:Dv({kind:`after`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{parse:jy,serialize:e=>e.toISOString()}},normalize:Ay(`after`),defaults:{description:e=>`${e.collapsibleLimitString} or later`,actual:U_},intersections:{after:(e,t)=>e.isStricterThan(t)?e:t}}),Node:class extends Ty{impliedBasis=V.intrinsic.Date.internal;collapsibleLimitString=U_(this.rule);traverseAllows=e=>e>=this.rule;reduceJsonSchema(e,t){return t.fallback.date({code:`date`,base:e,after:this.rule})}}},zy={implementation:Dv({kind:`before`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{parse:jy,serialize:e=>e.toISOString()}},normalize:Ay(`before`),defaults:{description:e=>`${e.collapsibleLimitString} or earlier`,actual:U_},intersections:{before:(e,t)=>e.isStricterThan(t)?e:t,after:(e,t,n)=>e.overlapsRange(t)?e.overlapIsUnit(t)?n.$.node(`unit`,{unit:e.rule}):null:U.init(`range`,e,t)}}),Node:class extends Ty{collapsibleLimitString=U_(this.rule);traverseAllows=e=>e<=this.rule;impliedBasis=V.intrinsic.Date.internal;reduceJsonSchema(e,t){return t.fallback.date({code:`date`,base:e,before:this.rule})}}},By={implementation:Dv({kind:`exactLength`,collapsibleKey:`rule`,keys:{rule:{parse:Ny(`exactLength`)}},normalize:e=>typeof e==`number`?{rule:e}:e,hasAssociatedError:!0,defaults:{description:e=>`exactly length ${e.rule}`,actual:e=>`${e.length}`},intersections:{exactLength:(e,t,n)=>U.init(`unit`,n.$.node(`unit`,{unit:e.rule}),n.$.node(`unit`,{unit:t.rule}),{path:[`length`]}),minLength:(e,t)=>e.rule>=t.rule?e:U.init(`range`,e,t),maxLength:(e,t)=>e.rule<=t.rule?e:U.init(`range`,e,t)}}),Node:class extends ly{traverseAllows=e=>e.length===this.rule;compiledCondition=`data.length === ${this.rule}`;compiledNegation=`data.length !== ${this.rule}`;impliedBasis=V.intrinsic.lengthBoundable.internal;expression=`== ${this.rule}`;reduceJsonSchema(e){switch(e.type){case`string`:return e.minLength=this.rule,e.maxLength=this.rule,e;case`array`:return e.minItems=this.rule,e.maxItems=this.rule,e;default:return Ov.throwInternalOperandError(`exactLength`,e)}}}},Vy={implementation:Dv({kind:`max`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{},exclusive:Oy},normalize:e=>typeof e==`number`?{rule:e}:e,defaults:{description:e=>e.rule===0?e.exclusive?`negative`:`non-positive`:`${e.exclusive?`less than`:`at most`} ${e.rule}`},intersections:{max:(e,t)=>e.isStricterThan(t)?e:t,min:(e,t,n)=>e.overlapsRange(t)?e.overlapIsUnit(t)?n.$.node(`unit`,{unit:e.rule}):null:U.init(`range`,e,t)},obviatesBasisDescription:!0}),Node:class extends Ty{impliedBasis=V.intrinsic.number.internal;traverseAllows=this.exclusive?e=>e<this.rule:e=>e<=this.rule;reduceJsonSchema(e){return this.exclusive?e.exclusiveMaximum=this.rule:e.maximum=this.rule,e}}},Hy={implementation:Dv({kind:`maxLength`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{parse:Ny(`maxLength`)}},reduce:(e,t)=>e.rule===0?t.node(`exactLength`,e):void 0,normalize:ky(`maxLength`),defaults:{description:e=>`at most length ${e.rule}`,actual:e=>`${e.length}`},intersections:{maxLength:(e,t)=>e.isStricterThan(t)?e:t,minLength:(e,t,n)=>e.overlapsRange(t)?e.overlapIsUnit(t)?n.$.node(`exactLength`,{rule:e.rule}):null:U.init(`range`,e,t)}}),Node:class extends Ty{impliedBasis=V.intrinsic.lengthBoundable.internal;traverseAllows=e=>e.length<=this.rule;reduceJsonSchema(e){switch(e.type){case`string`:return e.maxLength=this.rule,e;case`array`:return e.maxItems=this.rule,e;default:return Ov.throwInternalOperandError(`maxLength`,e)}}}},Uy={implementation:Dv({kind:`min`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{},exclusive:Oy},normalize:e=>typeof e==`number`?{rule:e}:e,defaults:{description:e=>e.rule===0?e.exclusive?`positive`:`non-negative`:`${e.exclusive?`more than`:`at least`} ${e.rule}`},intersections:{min:(e,t)=>e.isStricterThan(t)?e:t},obviatesBasisDescription:!0}),Node:class extends Ty{impliedBasis=V.intrinsic.number.internal;traverseAllows=this.exclusive?e=>e>this.rule:e=>e>=this.rule;reduceJsonSchema(e){return this.exclusive?e.exclusiveMinimum=this.rule:e.minimum=this.rule,e}}},Wy={implementation:Dv({kind:`minLength`,collapsibleKey:`rule`,hasAssociatedError:!0,keys:{rule:{parse:Ny(`minLength`)}},reduce:e=>e.rule===0?V.intrinsic.unknown:void 0,normalize:ky(`minLength`),defaults:{description:e=>e.rule===1?`non-empty`:`at least length ${e.rule}`,actual:e=>e.length===0?``:`${e.length}`},intersections:{minLength:(e,t)=>e.isStricterThan(t)?e:t}}),Node:class extends Ty{impliedBasis=V.intrinsic.lengthBoundable.internal;traverseAllows=e=>e.length>=this.rule;reduceJsonSchema(e){switch(e.type){case`string`:return e.minLength=this.rule,e;case`array`:return e.minItems=this.rule,e;default:return Ov.throwInternalOperandError(`minLength`,e)}}}},Gy={min:Uy.implementation,max:Vy.implementation,minLength:Wy.implementation,maxLength:Hy.implementation,exactLength:By.implementation,after:Ry.implementation,before:zy.implementation},Ky={min:Uy.Node,max:Vy.Node,minLength:Wy.Node,maxLength:Hy.Node,exactLength:By.Node,after:Ry.Node,before:zy.Node},qy={implementation:Dv({kind:`pattern`,collapsibleKey:`rule`,keys:{rule:{},flags:{}},normalize:e=>typeof e==`string`?{rule:e}:e instanceof RegExp?e.flags?{rule:e.source,flags:e.flags}:{rule:e.source}:e,obviatesBasisDescription:!0,obviatesBasisExpression:!0,hasAssociatedError:!0,intersectionIsOpen:!0,defaults:{description:e=>`matched by ${e.rule}`},intersections:{pattern:()=>null}}),Node:class extends ly{instance=new RegExp(this.rule,this.flags);expression=`${this.instance}`;traverseAllows=this.instance.test.bind(this.instance);compiledCondition=`${this.expression}.test(data)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=V.intrinsic.string.internal;reduceJsonSchema(e,t){return e.pattern?t.fallback.patternIntersection({code:`patternIntersection`,base:e,pattern:this.rule}):(e.pattern=this.rule,e)}}},Jy=(e,t)=>{let n=Yy(e);return t&&!t.includes(n)?z(`Root of kind ${n} should be one of ${t}`):n},Yy=e=>{if(H(e,`root`))return e.kind;if(typeof e==`string`)return e[0]===`$`?`alias`:e in cg?`domain`:`proto`;if(typeof e==`function`)return`proto`;if(typeof e!=`object`||!e)return z(Xy(e));if(`morphs`in e)return`morph`;if(`branches`in e||Rg(e))return`union`;if(`unit`in e)return`unit`;if(`reference`in e)return`alias`;let t=Object.keys(e);return t.length===0||t.some(e=>e in yv)?`intersection`:`proto`in e?`proto`:`domain`in e?`domain`:z(Xy(e))},Xy=e=>`${B(e)} is not a valid type schema`,Zy={},Qy=e=>Rg(e)?e.map(e=>e.collapsibleJson):e.collapsibleJson,$y={};V.nodesByRegisteredId=$y;var eb=e=>(Zy[e]??=0,`${e}${++Zy[e]}`),tb=e=>{let t=Bx[e.kind],n=t.applyConfig?.(e.def,e.$.resolvedConfig)??e.def,r={},{meta:i,...a}=n,o=i===void 0?{}:typeof i==`string`?{description:i}:i,s=gg(a).sort(([e],[t])=>Sv(e)?Sv(t)?Cv(e)-Cv(t):1:Sv(t)||e<t?-1:1).filter(([e,t])=>{if(e.startsWith(`meta.`)){let n=e.slice(5);return o[n]=t,!1}return!0});for(let n of s){let i=n[0],a=t.keys[i];if(!a)return z(`Key ${i} is not valid on ${e.kind} schema`);let o=a.parse?a.parse(n[1],e):n[1];o!==kg&&(o!==void 0||a.preserveUndefined)&&(r[i]=o)}if(t.reduce&&!e.prereduced){let n=t.reduce(r,e.$);if(n)return n instanceof U?n.throw():ib(n,o)}return nb({id:e.id,kind:e.kind,inner:r,meta:o,$:e.$})},nb=({id:e,kind:t,inner:n,meta:r,$:i,ignoreCache:a})=>{let o=Bx[t],s=gg(n),c=[],l={};for(let[e,t]of s){let n=o.keys[e],r=n.serialize??(n.child?Qy:Tv);if(l[e]=r(t),n.child===!0){let e=t;Rg(e)?c.push(...e):c.push(e)}else typeof n.child==`function`&&c.push(...n.child(t))}o.finalizeInnerJson&&(l=o.finalizeInnerJson(l));let u={...l},d={};Tg(r)||(d=hg(r,(e,t)=>[e,e===`examples`?t:Tv(t)]),u.meta=ab(d,`description`,!0)),l=ab(l,o.collapsibleKey,!1);let f=JSON.stringify({kind:t,...l});u=ab(u,o.collapsibleKey,!1);let p=ab(u,o.collapsibleKey,!0),m=JSON.stringify({kind:t,...u});if(i.nodesByHash[m]&&!a)return i.nodesByHash[m];let h={id:e,kind:t,impl:o,inner:n,innerEntries:s,innerJson:l,innerHash:f,meta:r,metaJson:d,json:u,hash:m,collapsibleJson:p,children:c};if(t!==`intersection`)for(let e in n)e!==`in`&&e!==`out`&&(h[e]=n[e]);let g=new Vx[t](h,i);return i.nodesByHash[m]=g},rb=(e,t)=>e.id===t?e:(dv($y[t])&&dg(`Unexpected attempt to overwrite node id ${t}`),nb({id:t,kind:e.kind,inner:e.inner,meta:e.meta,$:e.$,ignoreCache:!0})),ib=(e,t,n)=>(n&&dv($y[n])&&dg(`Unexpected attempt to overwrite node id ${n}`),nb({id:n??eb(t.alias??e.kind),kind:e.kind,inner:e.inner,meta:t,$:e.$})),ab=(e,t,n)=>{let r=Object.keys(e);if(r.length===1&&r[0]===t){let r=e[t];if(n||og(r,`object`)&&(Object.keys(r).length===1||Array.isArray(r)))return r}return e},ob=(e,t,n)=>{if(e.key!==t.key)return null;let r=e.key,i=ry(e.value,t.value,n),a=e.required||t.required?`required`:`optional`;if(i instanceof U){if(a===`optional`)i=V.intrinsic.never.internal;else return i.withPrefixKey(e.key,e.required&&t.required?`required`:`optional`)}if(a===`required`)return n.$.node(`required`,{key:r,value:i});let o=e.hasDefault()?t.hasDefault()?e.default===t.default?e.default:z(cb(e.default,t.default)):e.default:t.hasDefault()?t.default:kg;return n.$.node(`optional`,{key:r,value:i,default:o})},sb=class extends cy{required=this.kind===`required`;optional=this.kind===`optional`;impliedBasis=V.intrinsic.object.internal;serializedKey=iv(this.key);compiledKey=typeof this.key==`string`?this.key:this.serializedKey;flatRefs=eg(this.value.flatRefs.map(e=>qv([this.key,...e.path],e.node)),qv([this.key],this.value));_transform(e,t){t.path.push(this.key);let n=super._transform(e,t);return t.path.pop(),n}hasDefault(){return`default`in this.inner}traverseAllows=(e,t)=>this.key in e?Bv(this.key,()=>this.value.traverseAllows(e[this.key],t),t):this.optional;traverseApply=(e,t)=>{this.key in e?Bv(this.key,()=>this.value.traverseApply(e[this.key],t),t):this.hasKind(`required`)&&t.errorFromNodeContext(this.errorContext)};compile(e){e.if(`${this.serializedKey} in data`,()=>e.traverseKey(this.serializedKey,`data${e.prop(this.key)}`,this.value)),this.hasKind(`required`)&&e.else(()=>e.traversalKind===`Apply`?e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`):e.return(!1)),e.traversalKind===`Allows`&&e.return(!0)}},cb=(e,t)=>`Invalid intersection of default values ${B(e)} & ${B(t)}`,lb={implementation:Dv({kind:`optional`,hasAssociatedError:!1,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(e,t)=>t.$.parseSchema(e)},default:{preserveUndefined:!0}},normalize:e=>e,reduce:(e,t)=>{if(t.resolvedConfig.exactOptionalPropertyTypes===!1&&!e.value.allows(void 0))return t.node(`optional`,{...e,value:e.value.or(W.undefined)},{prereduced:!0})},defaults:{description:e=>`${e.compiledKey}?: ${e.value.description}`},intersections:{optional:ob}}),Node:class extends sb{constructor(...e){super(...e),`default`in this.inner&&pb(this.value,this.inner.default,this.key)}get rawIn(){let e=super.rawIn;return this.hasDefault()?this.$.node(`optional`,wg(e.inner,{default:!0}),{prereduced:!0}):e}get outProp(){if(!this.hasDefault())return this;let{default:e,...t}=this.inner;return this.cacheGetter(`outProp`,this.$.node(`required`,t,{prereduced:!0}))}expression=this.hasDefault()?`${this.compiledKey}: ${this.value.expression} = ${B(this.inner.default)}`:`${this.compiledKey}?: ${this.value.expression}`;defaultValueMorph=db(this);defaultValueMorphRef=this.defaultValueMorph&&nv(this.defaultValueMorph)}},ub={},db=e=>{if(!e.hasDefault())return;let t=`{${e.compiledKey}: ${e.value.id} = ${Tv(e.default)}}`;return ub[t]??=fb(e.key,e.value,e.default)},fb=(e,t,n)=>{if(typeof n==`function`)return t.includesTransform?(r,i)=>(Bv(e,()=>t(r[e]=n(),i),i),r):t=>(t[e]=n(),t);let r=t.includesTransform?t.assert(n):n;return og(r,`object`)?(r,i)=>(Bv(e,()=>t(r[e]=n,i),i),r):t=>(t[e]=r,t)},pb=(e,t,n)=>{let r=Jg(t);og(t,`object`)&&!r&&z(mb(n));let i=e.in(r?t():t);return i instanceof Iv&&(n===null&&z(`Default ${i.summary}`),z(`Default for ${i.transform(e=>e.transform(e=>({...e,prefixPath:[n]}))).summary}`)),t},mb=e=>`Non-primitive default ${e===null?``:typeof e==`number`?`for value at [${e}] `:`for ${iv(e)} `}must be specified as a function like () => ({my: 'object'})`,hb=class extends Vv{constructor(e,t){super(e,t),Object.defineProperty(this,uv,{value:`root`,enumerable:!1})}get rawIn(){return super.rawIn}get rawOut(){return super.rawOut}get internal(){return this}get"~standard"(){return{vendor:`arktype`,version:1,validate:e=>{let t=this(e);return t instanceof Iv?t:{value:t}},jsonSchema:{input:e=>this.rawIn.toJsonSchema({target:yb(e.target),...e.libraryOptions}),output:e=>this.rawOut.toJsonSchema({target:yb(e.target),...e.libraryOptions})}}}as(){return this}brand(e){return e===``?z(gb):this}readonly(){return this}branches=this.hasKind(`union`)?this.inner.branches:[this];distribute(e,t){let n=this.branches.map(e);return t?.(n)??n}get shortDescription(){return this.meta.description??this.defaultShortDescription}toJsonSchema(e={}){let t=jv(this.$.resolvedConfig.toJsonSchema,e);t.useRefs||=this.isCyclic;let n=typeof t.dialect==`string`?{$schema:t.dialect}:{};if(Object.assign(n,this.toJsonSchemaRecurse(t)),t.useRefs){let e=hg(this.references,(e,n)=>n.isRoot()&&!n.alwaysExpandJsonSchema?[n.id,n.toResolvedJsonSchema(t)]:[]);t.target===`draft-07`?Object.assign(n,{definitions:e}):n.$defs=e}return n}toJsonSchemaRecurse(e){return e.useRefs&&!this.alwaysExpandJsonSchema?{$ref:`#/${e.target===`draft-07`?`definitions`:`$defs`}/${this.id}`}:this.toResolvedJsonSchema(e)}get alwaysExpandJsonSchema(){return this.isBasis()||this.kind===`alias`||this.hasKind(`union`)&&this.isBoolean}toResolvedJsonSchema(e){let t=this.innerToJsonSchema(e);for(let n in this.meta){let r=this.meta[n];t[n]=typeof r!=`function`&&V.intrinsic.jsonData.allows(r)?r:n==="default"?e.fallback.defaultValue({code:`defaultValue`,base:t,value:r}):this.metaJson[n]}return t}intersect(e){let t=this.$.parseDefinition(e),n=this.rawIntersect(t);return n instanceof U?n:this.$.finalize(n)}rawIntersect(e){return ty(this,e,this.$)}toNeverIfDisjoint(){return this}and(e){let t=this.intersect(e);return t instanceof U?t.throw():t}rawAnd(e){let t=this.rawIntersect(e);return t instanceof U?t.throw():t}or(e){let t=this.$.parseDefinition(e);return this.$.finalize(this.rawOr(t))}rawOr(e){let t=[...this.branches,...e.branches];return this.$.node(`union`,t)}map(e){return this.$.schema(this.applyStructuralOperation(`map`,[e]))}pick(...e){return this.$.schema(this.applyStructuralOperation(`pick`,e))}omit(...e){return this.$.schema(this.applyStructuralOperation(`omit`,e))}required(){return this.$.schema(this.applyStructuralOperation(`required`,[]))}partial(){return this.$.schema(this.applyStructuralOperation(`partial`,[]))}_keyof;keyof(){if(this._keyof)return this._keyof;let e=this.applyStructuralOperation(`keyof`,[]).reduce((e,t)=>e.intersect(t).toNeverIfDisjoint(),V.intrinsic.unknown.internal);return e.branches.length===0&&z($v(`keyof ${this.expression}`)),this._keyof=this.$.finalize(e)}get props(){return this.branches.length===1?[...this.applyStructuralOperation(`props`,[])[0]]:z(Cb(this.expression))}merge(e){let t=this.$.parseDefinition(e);return this.$.schema(t.distribute(e=>this.applyStructuralOperation(`merge`,[Sb(e)??z(wb(`merge`,e.expression))])))}applyStructuralOperation(e,t){return this.distribute(n=>{if(n.equals(V.intrinsic.object)&&e!==`merge`&&e!==`props`)return n;let r=Sb(n);if(r||z(wb(e,n.expression)),e===`keyof`)return r.keyof();if(e===`get`)return r.get(...t);if(e===`props`)return r.props;let i=r[e===`required`?`require`:e===`partial`?`optionalize`:e](...t),a=e===`required`||e===`partial`;return a&&i.equals(r)?n:this.$.node(`intersection`,{...a&&i.sequence?{proto:Array}:{domain:`object`},structure:i})})}get(...e){return e[0]===void 0?this:this.$.schema(this.applyStructuralOperation(`get`,e))}extract(e){let t=this.$.parseDefinition(e);return this.$.schema(this.branches.filter(e=>e.extends(t)))}exclude(e){let t=this.$.parseDefinition(e);return this.$.schema(this.branches.filter(e=>!e.extends(t)))}array(){return this.$.finalize(this.rawArray())}rawArray(){return this.$.parseSchema(this.isUnknown()?{proto:Array}:{proto:Array,sequence:this},{prereduced:!0})}overlaps(e){return!(this.intersect(e)instanceof U)}extends(e){if(this.isNever())return!0;let t=this.intersect(e);return!(t instanceof U)&&this.equals(t)}ifExtends(e){return this.extends(e)?this:void 0}subsumes(e){return this.$.parseDefinition(e).extends(this)}configure(e,t=`shallow`){return this.configureReferences(e,t)}describe(e,t=`shallow`){return this.configure({description:e},t)}optional(){return[this,`?`]}default(e){return pb(this,e,null),[this,`=`,e]}from(e){return this.assert(e)}_pipe(...e){let t=e.reduce((e,t)=>e.rawPipeOnce(t),this);return this.$.finalize(t)}tryPipe(...e){let t=e.reduce((e,t)=>e.rawPipeOnce(H(t,`root`)?t:((e,n)=>{try{return t(e,n)}catch(e){return n.error({code:`predicate`,predicate:t,actual:`aborted due to error:\n ${e}\n`})}})),this);return this.$.finalize(t)}pipe=Object.assign(this._pipe.bind(this),{try:this.tryPipe.bind(this)});to(e){return this.$.finalize(this.toNode(this.$.parseDefinition(e)))}toNode(e){let t=ny(this,e,this.$);return t instanceof U?t.throw():t}rawPipeOnce(e){return H(e,`root`)?this.toNode(e):this.distribute(t=>t.hasKind(`morph`)?this.$.node(`morph`,{in:t.inner.in,morphs:[...t.morphs,e]}):this.$.node(`morph`,{in:t,morphs:[e]}),this.$.parseSchema)}narrow(e){return this.constrainOut(`predicate`,e)}constrain(e,t){return this._constrain(`root`,e,t)}constrainIn(e,t){return this._constrain(`in`,e,t)}constrainOut(e,t){return this._constrain(`out`,e,t)}_constrain(e,t,n){let r=this.$.node(t,n);if(r.isRoot())return r.isUnknown()?this:dg(`Unexpected constraint node ${r}`);let i=e===`root`?this:e===`in`?this.rawIn:this.rawOut;if(i.hasKind(`morph`)||r.impliedBasis&&!i.extends(r.impliedBasis))return my(t,r.impliedBasis,this);let a=this.$.node(`intersection`,{[r.kind]:r}),o=e===`out`?ny(this,a,this.$):ty(this,a,this.$);return o instanceof U&&o.throw(),this.$.finalize(o)}onUndeclaredKey(e){let t=typeof e==`string`?e:e.rule,n=typeof e!=`string`&&e.deep;return this.$.finalize(this.transform((e,n)=>e===`structure`?t===`ignore`?wg(n,{undeclared:1}):{...n,undeclared:t}:n,n?void 0:{shouldTransform:e=>!Qh(pv,e.kind)}))}hasEqualMorphs(e){return!this.includesTransform&&!e.includesTransform||!(!ag(this.shallowMorphs,e.shallowMorphs)||!ag(this.flatMorphs,e.flatMorphs,{isEqual:(e,t)=>e.propString===t.propString&&(e.node.hasKind(`morph`)&&t.node.hasKind(`morph`)?e.node.hasEqualMorphs(t.node):e.node.hasKind(`intersection`)&&t.node.hasKind(`intersection`)?e.node.structure?.structuralMorphRef===t.node.structure?.structuralMorphRef:!1)}))}onDeepUndeclaredKey(e){return this.onUndeclaredKey({rule:e,deep:!0})}filter(e){return this.constrainIn(`predicate`,e)}divisibleBy(e){return this.constrain(`divisor`,e)}matching(e){return this.constrain(`pattern`,e)}atLeast(e){return this.constrain(`min`,e)}atMost(e){return this.constrain(`max`,e)}moreThan(e){return this.constrain(`min`,bb(e))}lessThan(e){return this.constrain(`max`,bb(e))}atLeastLength(e){return this.constrain(`minLength`,e)}atMostLength(e){return this.constrain(`maxLength`,e)}moreThanLength(e){return this.constrain(`minLength`,bb(e))}lessThanLength(e){return this.constrain(`maxLength`,bb(e))}exactlyLength(e){return this.constrain(`exactLength`,e)}atOrAfter(e){return this.constrain(`after`,e)}atOrBefore(e){return this.constrain(`before`,e)}laterThan(e){return this.constrain(`after`,bb(e))}earlierThan(e){return this.constrain(`before`,bb(e))}},gb=`Expected a non-empty brand name after #`,_b=[`draft-2020-12`,`draft-07`],vb=e=>`JSONSchema target '${e}' is not supported (must be ${_b.map(e=>`"${e}"`).join(` or `)})`,yb=e=>(Qh(_b,e)||z(vb(e)),e),bb=e=>typeof e==`object`&&!(e instanceof Date)?{...e,exclusive:!0}:{rule:e,exclusive:!0},xb=(e,t)=>H(t,`root`)?H(e,`root`)?e.extends(t):t.allows(e):H(e,`root`)?e.hasUnit(t):t===e,Sb=e=>e.hasKind(`morph`)?null:e.hasKind(`intersection`)?e.inner.structure??(e.basis?.domain===`object`?e.$.bindReference(V.intrinsic.emptyStructure):null):e.isBasis()&&e.domain===`object`?e.$.bindReference(V.intrinsic.emptyStructure):null,Cb=e=>`Props cannot be extracted from a union. Use .distribute to extract props from each branch instead. Received:
22
+ ${e}`,wb=(e,t)=>`${e} operand must be an object (was ${t})`,Tb=(e,t)=>hg(wv(e),(e,n)=>[n,t]),Eb=e=>typeof e==`string`?{reference:e}:e,Db=e=>e instanceof U?V.intrinsic.never.internal:e,Ob=Dv({kind:`alias`,hasAssociatedError:!1,collapsibleKey:`reference`,keys:{reference:{serialize:e=>e.startsWith(`$`)?e:`$ark.${e}`},resolve:{}},normalize:Eb,defaults:{description:e=>e.reference},intersections:{alias:(e,t,n)=>n.$.lazilyResolve(()=>Db(ry(e.resolution,t.resolution,n)),`${e.reference}${n.pipe?`=>`:`&`}${t.reference}`),...Tb(`alias`,(e,t,n)=>t.isUnknown()?e:t.isNever()?t:t.isBasis()&&!t.overlaps(V.intrinsic.object)?U.init(`assignability`,V.intrinsic.object,t):n.$.lazilyResolve(()=>Db(ry(e.resolution,t,n)),`${e.reference}${n.pipe?`=>`:`&`}${t.id}`))}}),kb=class extends hb{expression=this.reference;structure=void 0;get resolution(){let e=this._resolve();return $y[this.id]=e}_resolve(){if(this.resolve)return this.resolve();if(this.reference[0]===`$`)return this.$.resolveRoot(this.reference.slice(1));let e=$y[this.reference],t=[];for(;H(e,`context`);){if(t.includes(e.id))return z(Ab(e.id,t));t.push(e.id),e=$y[e.id]}return H(e,`root`)?e:dg(`Unexpected resolution for reference ${this.reference}
23
+ Seen: [${t.join(`->`)}]
24
+ Resolution: ${B(e)}`)}get resolutionId(){if(this.reference.includes(`&`)||this.reference.includes(`=>`))return this.resolution.id;if(this.reference[0]!==`$`)return this.reference;let e=this.reference.slice(1),t=this.$.resolutions[e];return typeof t==`string`?t:H(t,`root`)?t.id:dg(`Unexpected resolution for reference ${this.reference}: ${B(t)}`)}get defaultShortDescription(){return cg.object}innerToJsonSchema(e){return this.resolution.toJsonSchemaRecurse(e)}traverseAllows=(e,t)=>{let n=t.seen[this.reference];return n?.includes(e)?!0:(t.seen[this.reference]=eg(n,e),this.resolution.traverseAllows(e,t))};traverseApply=(e,t)=>{let n=t.seen[this.reference];n?.includes(e)||(t.seen[this.reference]=eg(n,e),this.resolution.traverseApply(e,t))};compile(e){let t=this.resolutionId;e.if(`ctx.seen.${t} && ctx.seen.${t}.includes(data)`,()=>e.return(!0)),e.if(`!ctx.seen.${t}`,()=>e.line(`ctx.seen.${t} = []`)),e.line(`ctx.seen.${t}.push(data)`),e.return(e.invoke(t))}},Ab=(e,t)=>`Alias '${e}' has a shallow resolution cycle: ${[...t,e].join(`->`)}`,jb={implementation:Ob,Node:kb},Mb=class extends hb{traverseApply=(e,t)=>{this.traverseAllows(e,t)||t.errorFromNodeContext(this.errorContext)};get errorContext(){return{code:this.kind,description:this.description,meta:this.meta,...this.inner}}get compiledErrorContext(){return Ev(this.errorContext)}compile(e){e.traversalKind===`Allows`?e.return(this.compiledCondition):e.if(this.compiledNegation,()=>e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`))}},Nb={implementation:Dv({kind:`domain`,hasAssociatedError:!0,collapsibleKey:`domain`,keys:{domain:{},numberAllowsNaN:{}},normalize:e=>typeof e==`string`?{domain:e}:yg(e,`numberAllowsNaN`)&&e.domain!==`number`?z(Nb.writeBadAllowNanMessage(e.domain)):e,applyConfig:(e,t)=>e.numberAllowsNaN===void 0&&e.domain===`number`&&t.numberAllowsNaN?{...e,numberAllowsNaN:!0}:e,defaults:{description:e=>cg[e.domain],actual:e=>Number.isNaN(e)?`NaN`:cg[sg(e)]},intersections:{domain:(e,t)=>e.domain===`number`&&t.domain===`number`?e.numberAllowsNaN?t:e:U.init(`domain`,e,t)}}),Node:class extends Mb{requiresNaNCheck=this.domain===`number`&&!this.numberAllowsNaN;traverseAllows=this.requiresNaNCheck?e=>typeof e==`number`&&!Number.isNaN(e):e=>sg(e)===this.domain;compiledCondition=this.domain===`object`?`((typeof data === "object" && data !== null) || typeof data === "function")`:`typeof data === "${this.domain}"${this.requiresNaNCheck?` && !Number.isNaN(data)`:``}`;compiledNegation=this.domain===`object`?`((typeof data !== "object" || data === null) && typeof data !== "function")`:`typeof data !== "${this.domain}"${this.requiresNaNCheck?` || Number.isNaN(data)`:``}`;expression=this.numberAllowsNaN?`number | NaN`:this.domain;get nestableExpression(){return this.numberAllowsNaN?`(${this.expression})`:this.expression}get defaultShortDescription(){return cg[this.domain]}innerToJsonSchema(e){return this.domain===`bigint`||this.domain===`symbol`?e.fallback.domain({code:`domain`,base:{},domain:this.domain}):{type:this.domain}}},writeBadAllowNanMessage:e=>`numberAllowsNaN may only be specified with domain "number" (was ${e})`},Pb={implementation:Dv({kind:`intersection`,hasAssociatedError:!0,normalize:e=>{if(dv(e))return e;let{structure:t,...n}=e,r=!!t,i=t??{},a=hg(n,(e,t)=>vg(e,bv)?(r&&z(`Flattened structure key ${e} cannot be specified alongside a root 'structure' key.`),i[e]=t,[]):[e,t]);return(H(i,`constraint`)||!Tg(i))&&(a.structure=i),a},finalizeInnerJson:({structure:e,...t})=>og(e,`object`)?{...e,...t}:t,keys:{domain:{child:!0,parse:(e,t)=>t.$.node(`domain`,e)},proto:{child:!0,parse:(e,t)=>t.$.node(`proto`,e)},structure:{child:!0,parse:(e,t)=>t.$.node(`structure`,e),serialize:e=>{if(!e.sequence?.minLength)return e.collapsibleJson;let{sequence:t,...n}=e.collapsibleJson,{minVariadicLength:r,...i}=t,a=i.variadic&&Object.keys(i).length===1?i.variadic:i;return{...n,sequence:a}}},divisor:{child:!0,parse:uy(`divisor`)},max:{child:!0,parse:uy(`max`)},min:{child:!0,parse:uy(`min`)},maxLength:{child:!0,parse:uy(`maxLength`)},minLength:{child:!0,parse:uy(`minLength`)},exactLength:{child:!0,parse:uy(`exactLength`)},before:{child:!0,parse:uy(`before`)},after:{child:!0,parse:uy(`after`)},pattern:{child:!0,parse:uy(`pattern`)},predicate:{child:!0,parse:uy(`predicate`)}},reduce:(e,t)=>Ib({},e,{$:t,invert:!1,pipe:!1}),defaults:{description:e=>{if(e.children.length===0)return`unknown`;if(e.structure)return e.structure.description;let t=[];if(e.basis&&!e.prestructurals.some(e=>e.impl.obviatesBasisDescription)&&t.push(e.basis.description),e.prestructurals.length){let n=e.prestructurals.slice().sort((e,t)=>e.kind===`min`&&t.kind===`max`?-1:0).map(e=>e.description);t.push(...n)}return e.inner.predicate&&t.push(...e.inner.predicate.map(e=>e.description)),t.join(` and `)},expected:e=>` ◦ ${e.errors.map(e=>e.expected).join(`
25
+ ◦ `)}`,problem:e=>`(${e.actual}) must be...\n${e.expected}`},intersections:{intersection:(e,t,n)=>Ib(e.inner,t.inner,n),...Tb(`intersection`,(e,t,n)=>{if(e.children.length===0)return t;let{domain:r,proto:i,...a}=e.inner,o=i??r,s=o?ry(o,t,n):t;return s instanceof U?s:e?.basis?.equals(s)?e:e.$.node(`intersection`,{...a,[s.kind]:s},{prereduced:!0})})}}),Node:class extends hb{basis=this.inner.domain??this.inner.proto??null;prestructurals=[];refinements=this.children.filter(e=>e.isRefinement()?(Qh(mv,e.kind)&&this.prestructurals.push(e),!0):!1);structure=this.inner.structure;expression=Fb(this);get shallowMorphs(){return this.inner.structure?.structuralMorph?[this.inner.structure.structuralMorph]:[]}get defaultShortDescription(){return this.basis?.defaultShortDescription??`present`}innerToJsonSchema(e){return this.children.reduce((t,n)=>n.isBasis()?n.toJsonSchemaRecurse(e):n.reduceJsonSchema(t,e),{})}traverseAllows=(e,t)=>this.children.every(n=>n.traverseAllows(e,t));traverseApply=(e,t)=>{let n=t.currentErrorCount;if(!(this.basis&&(this.basis.traverseApply(e,t),t.currentErrorCount>n))){if(this.prestructurals.length){for(let r=0;r<this.prestructurals.length-1;r++)if(this.prestructurals[r].traverseApply(e,t),t.failFast&&t.currentErrorCount>n)return;if(this.prestructurals[this.prestructurals.length-1].traverseApply(e,t),t.currentErrorCount>n)return}if(!(this.structure&&(this.structure.traverseApply(e,t),t.currentErrorCount>n))&&this.inner.predicate){for(let r=0;r<this.inner.predicate.length-1;r++)if(this.inner.predicate[r].traverseApply(e,t),t.failFast&&t.currentErrorCount>n)return;this.inner.predicate[this.inner.predicate.length-1].traverseApply(e,t)}}};compile(e){if(e.traversalKind===`Allows`){for(let t of this.children)e.check(t);e.return(!0)}else{if(e.initializeErrorCount(),this.basis&&(e.check(this.basis),this.children.length>1&&e.returnIfFail()),this.prestructurals.length){for(let t=0;t<this.prestructurals.length-1;t++)e.check(this.prestructurals[t]),e.returnIfFailFast();e.check(this.prestructurals[this.prestructurals.length-1]),(this.structure||this.inner.predicate)&&e.returnIfFail()}if(this.structure&&(e.check(this.structure),this.inner.predicate&&e.returnIfFail()),this.inner.predicate){for(let t=0;t<this.inner.predicate.length-1;t++)e.check(this.inner.predicate[t]),e.returnIfFail();e.check(this.inner.predicate[this.inner.predicate.length-1])}}}}},Fb=e=>{if(e.structure?.expression)return e.structure.expression;let t=e.basis&&!e.prestructurals.some(e=>e.impl.obviatesBasisExpression)?e.basis.nestableExpression:``,n=e.prestructurals.map(e=>e.expression).join(` & `),r=`${t}${t&&n?` `:``}${n}`;return r===`Array == 0`?`[]`:r||`unknown`},Ib=(e,t,n)=>{let r={},i=e.proto??e.domain,a=t.proto??t.domain,o=i?a?ry(i,a,n):i:a;return o instanceof U?o:(o&&(r[o.kind]=o),dy({kind:`intersection`,baseInner:r,l:fy(e),r:fy(t),roots:[],ctx:n}))},Lb={implementation:Dv({kind:`morph`,hasAssociatedError:!1,keys:{in:{child:!0,parse:(e,t)=>t.$.parseSchema(e)},morphs:{parse:Yh,serialize:e=>e.map(e=>H(e,`root`)?e.json:nv(e))},declaredIn:{child:!1,serialize:e=>e.json},declaredOut:{child:!1,serialize:e=>e.json}},normalize:e=>e,defaults:{description:e=>`a morph from ${e.rawIn.description} to ${e.rawOut?.description??`unknown`}`},intersections:{morph:(e,t,n)=>{if(!e.hasEqualMorphs(t))return z(Rb(e.expression,t.expression));let r=ry(e.rawIn,t.rawIn,n);if(r instanceof U)return r;let i={morphs:e.morphs};if(e.declaredIn||t.declaredIn){let r=ry(e.rawIn,t.rawIn,n);if(r instanceof U)return r.throw();i.declaredIn=r}if(e.declaredOut||t.declaredOut){let r=ry(e.rawOut,t.rawOut,n);if(r instanceof U)return r.throw();i.declaredOut=r}return r.distribute(e=>n.$.node(`morph`,{...i,in:e}),n.$.parseSchema)},...Tb(`morph`,(e,t,n)=>{let r=e.inner.in?ry(e.inner.in,t,n):t;return r instanceof U?r:r.equals(e.inner.in)?e:n.$.node(`morph`,{...e.inner,in:r})})}}),Node:class extends hb{serializedMorphs=this.morphs.map(nv);compiledMorphs=`[${this.serializedMorphs}]`;lastMorph=this.inner.morphs[this.inner.morphs.length-1];lastMorphIfNode=H(this.lastMorph,`root`)?this.lastMorph:void 0;introspectableIn=this.inner.in;introspectableOut=this.lastMorphIfNode?Object.assign(this.referencesById,this.lastMorphIfNode.referencesById)&&this.lastMorphIfNode.rawOut:void 0;get shallowMorphs(){return Array.isArray(this.inner.in?.shallowMorphs)?[...this.inner.in.shallowMorphs,...this.morphs]:this.morphs}get rawIn(){return this.declaredIn??this.inner.in?.rawIn??V.intrinsic.unknown.internal}get rawOut(){return this.declaredOut??this.introspectableOut??V.intrinsic.unknown.internal}declareIn(e){return this.$.node(`morph`,{...this.inner,declaredIn:e})}declareOut(e){return this.$.node(`morph`,{...this.inner,declaredOut:e})}expression=`(In: ${this.rawIn.expression}) => ${this.lastMorphIfNode?`To`:`Out`}<${this.rawOut.expression}>`;get defaultShortDescription(){return this.rawIn.meta.description??this.rawIn.defaultShortDescription}innerToJsonSchema(e){return e.fallback.morph({code:`morph`,base:this.rawIn.toJsonSchemaRecurse(e),out:this.introspectableOut?.toJsonSchemaRecurse(e)??null})}compile(e){if(e.traversalKind===`Allows`){if(!this.introspectableIn)return;e.return(e.invoke(this.introspectableIn))}else this.introspectableIn&&e.line(e.invoke(this.introspectableIn)),e.line(`ctx.queueMorphs(${this.compiledMorphs})`)}traverseAllows=(e,t)=>!this.introspectableIn||this.introspectableIn.traverseAllows(e,t);traverseApply=(e,t)=>{this.introspectableIn&&this.introspectableIn.traverseApply(e,t),t.queueMorphs(this.morphs)};hasEqualMorphs(e){return ag(this.morphs,e.morphs,{isEqual:(e,t)=>e===t||H(e,`root`)&&H(t,`root`)&&e.equals(t)})}}},Rb=(e,t)=>`The intersection of distinct morphs at a single path is indeterminate:
26
+ Left: ${e}
27
+ Right: ${t}`,zb={implementation:Dv({kind:`proto`,hasAssociatedError:!0,collapsibleKey:`proto`,keys:{proto:{serialize:e=>Ug(e)??Tv(e)},dateAllowsInvalid:{}},normalize:e=>{let t=typeof e==`string`?{proto:Fg[e]}:typeof e==`function`?dv(e)?e:{proto:e}:typeof e.proto==`string`?{...e,proto:Fg[e.proto]}:e;return typeof t.proto!=`function`&&z(zb.writeInvalidSchemaMessage(t.proto)),yg(t,`dateAllowsInvalid`)&&t.proto!==Date&&z(zb.writeBadInvalidDateMessage(t.proto)),t},applyConfig:(e,t)=>e.dateAllowsInvalid===void 0&&e.proto===Date&&t.dateAllowsInvalid?{...e,dateAllowsInvalid:!0}:e,defaults:{description:e=>e.builtinName?Hg[e.builtinName]:`an instance of ${e.proto.name}`,actual:e=>e instanceof Date&&e.toString()===`Invalid Date`?`an invalid Date`:Lg(e)},intersections:{proto:(e,t)=>e.proto===Date&&t.proto===Date?e.dateAllowsInvalid?t:e:Wg(e.proto,t.proto)?e:Wg(t.proto,e.proto)?t:U.init(`proto`,e,t),domain:(e,t)=>t.domain===`object`?e:U.init(`domain`,V.intrinsic.object.internal,t)}}),Node:class extends Mb{builtinName=Ug(this.proto);serializedConstructor=this.json.proto;requiresInvalidDateCheck=this.proto===Date&&!this.dateAllowsInvalid;isArrayProto=this.proto===Array;traverseAllows=this.requiresInvalidDateCheck?e=>e instanceof Date&&e.toString()!==`Invalid Date`:this.isArrayProto?e=>Rg(e):e=>e instanceof this.proto;compiledCondition=this.isArrayProto?`Array.isArray(data)`:`data instanceof ${this.serializedConstructor}${this.requiresInvalidDateCheck?` && data.toString() !== "Invalid Date"`:``}`;compiledNegation=`!(${this.compiledCondition})`;innerToJsonSchema(e){switch(this.builtinName){case`Array`:return{type:`array`};case`Date`:return e.fallback.date?.({code:`date`,base:{}})??e.fallback.proto({code:`proto`,base:{},proto:this.proto});default:return e.fallback.proto({code:`proto`,base:{},proto:this.proto})}}expression=this.dateAllowsInvalid?`Date | InvalidDate`:this.proto.name;get nestableExpression(){return this.dateAllowsInvalid?`(${this.expression})`:this.expression}domain=`object`;get defaultShortDescription(){return this.description}},writeBadInvalidDateMessage:e=>`dateAllowsInvalid may only be specified with constructor Date (was ${e.name})`,writeInvalidSchemaMessage:e=>`instanceOf operand must be a function (was ${sg(e)})`},Bb=Dv({kind:`union`,hasAssociatedError:!0,collapsibleKey:`branches`,keys:{ordered:{},branches:{child:!0,parse:(e,t)=>{let n=[];for(let r of e){let e=H(r,`root`)?r.branches:t.$.parseSchema(r).branches;for(let r of e)if(r.hasKind(`morph`)){let e=n.findIndex(e=>e.hasKind(`morph`)&&e.hasEqualMorphs(r));if(e===-1)n.push(r);else{let i=n[e],a=i.inner.in&&r.inner.in?i.inner.in.rawOr(r.inner.in):i.rawIn.rawOr(r.rawIn);n[e]=t.$.node(`morph`,{...i.inner,in:a})}}else n.push(r)}return t.def.ordered||n.sort((e,t)=>e.hash<t.hash?-1:1),n}}},normalize:e=>Rg(e)?{branches:e}:e,reduce:(e,t)=>{let n=tx(e);if(n.length===1)return n[0];if(n.length!==e.branches.length)return t.node(`union`,{...e,branches:n},{prereduced:!0})},defaults:{description:e=>e.distribute(e=>e.description,$b),expected:e=>{let t=ig(e.errors,`propString`);return $b(Object.entries(t).map(([e,t])=>{let n=[];for(let e of t)rg(n,e.expected);let r=$b(n),i=t.every(e=>e.actual===t[0].actual)?t[0].actual:B(t[0].data);return`${e&&`${e} `}must be ${r}${i&&` (was ${i})`}`}))},problem:e=>e.expected,message:e=>e.problem[0]===`[`?`value at ${e.problem}`:e.problem},intersections:{union:(e,t,n)=>{if(e.isNever!==t.isNever)return U.init(`presence`,e,t);let r;return e.ordered?(t.ordered&&z(ax(e.expression,t.expression)),r=ex(t.branches,e.branches,n),r instanceof U&&r.invert()):r=ex(e.branches,t.branches,n),r instanceof U?r:n.$.parseSchema(e.ordered||t.ordered?{branches:r,ordered:!0}:{branches:r})},...Tb(`union`,(e,t,n)=>{let r=ex(e.branches,[t],n);return r instanceof U?r:r.length===1?r[0]:n.$.parseSchema(e.ordered?{branches:r,ordered:!0}:{branches:r})})}}),Vb=class extends hb{isBoolean=this.branches.length===2&&this.branches[0].hasUnit(!1)&&this.branches[1].hasUnit(!0);get branchGroups(){let e=[],t=-1;for(let n of this.branches)n.hasKind(`unit`)&&n.domain===`boolean`?t===-1?(t=e.length,e.push(n)):e[t]=V.intrinsic.boolean:e.push(n);return e}unitBranches=this.branches.filter(e=>e.rawIn.hasKind(`unit`));discriminant=this.discriminate();discriminantJson=this.discriminant?Xb(this.discriminant):null;expression=this.distribute(e=>e.nestableExpression,Qb);createBranchedOptimisticRootApply(){return(e,t)=>{let n=this.traverseOptimistic(e);if(n!==kg)return n;let r=new zv(e,this.$.resolvedConfig);return this.traverseApply(e,r),r.finalize(t)}}get shallowMorphs(){return this.branches.reduce((e,t)=>rg(e,t.shallowMorphs),[])}get defaultShortDescription(){return this.distribute(e=>e.defaultShortDescription,$b)}innerToJsonSchema(e){if(this.branchGroups.length===1&&this.branchGroups[0].equals(V.intrinsic.boolean))return{type:`boolean`};let t=this.branchGroups.map(t=>t.toJsonSchemaRecurse(e));return t.every(e=>Object.keys(e).length===1&&yg(e,`const`))?{enum:t.map(e=>e.const)}:{anyOf:t}}traverseAllows=(e,t)=>this.branches.some(n=>n.traverseAllows(e,t));traverseApply=(e,t)=>{let n=[];for(let r=0;r<this.branches.length;r++){if(t.pushBranch(),this.branches[r].traverseApply(e,t),!t.hasError())return this.branches[r].includesTransform?t.queuedMorphs.push(...t.popBranch().queuedMorphs):t.popBranch();n.push(t.popBranch().error)}t.errorFromNodeContext({code:`union`,errors:n,meta:this.meta})};traverseOptimistic=e=>{for(let t=0;t<this.branches.length;t++){let n=this.branches[t];if(n.traverseAllows(e))return n.contextFreeMorph?n.contextFreeMorph(e):e}return kg};compile(e){if(!this.discriminant||this.unitBranches.length===this.branches.length&&this.branches.length===2)return this.compileIndiscriminable(e);let t=this.discriminant.optionallyChainedPropString;this.discriminant.kind===`domain`&&(t=`typeof ${t} === "object" ? ${t} === null ? "null" : "object" : typeof ${t} === "function" ? "object" : typeof ${t}`);let n=this.discriminant.cases,r=Object.keys(n),{optimistic:i}=e;if(e.optimistic=!1,e.block(`switch(${t})`,()=>{for(let t in n){let r=n[t],a=t==="default"?t:`case ${t}`,o;o=r===!0?i?`data`:`true`:i?r.rootApplyStrategy===`branchedOptimistic`?e.invoke(r,{kind:`Optimistic`}):r.contextFreeMorph?`${e.invoke(r)} ? ${nv(r.contextFreeMorph)}(data) : "${kg}"`:`${e.invoke(r)} ? data : "${kg}"`:e.invoke(r),e.line(`${a}: return ${o}`)}return e}),e.traversalKind===`Allows`){e.return(i?`"${kg}"`:!1);return}let a=$b(this.discriminant.kind===`domain`?r.map(e=>{let t=e.slice(1,-1);return t===`function`?cg.object:cg[t]}):r),o=this.discriminant.path.map(e=>typeof e==`symbol`?nv(e):JSON.stringify(e)),s=JSON.stringify(a),c=this.discriminant.kind===`domain`?`${qb}[${t}]`:`${Jb}(${t})`;e.line(`ctx.errorFromNodeContext({
28
+ code: "predicate",
29
+ expected: ${s},
30
+ actual: ${c},
31
+ relativePath: [${o}],
32
+ meta: ${this.compiledMeta}
33
+ })`)}compileIndiscriminable(e){if(e.traversalKind===`Apply`){e.const(`errors`,`[]`);for(let t of this.branches)e.line(`ctx.pushBranch()`).line(e.invoke(t)).if(`!ctx.hasError()`,()=>e.return(t.includesTransform?`ctx.queuedMorphs.push(...ctx.popBranch().queuedMorphs)`:`ctx.popBranch()`)).line(`errors.push(ctx.popBranch().error)`);e.line(`ctx.errorFromNodeContext({ code: "union", errors, meta: ${this.compiledMeta} })`)}else{let{optimistic:t}=e;e.optimistic=!1;for(let n of this.branches)e.if(`${e.invoke(n)}`,()=>e.return(t?n.contextFreeMorph?`${nv(n.contextFreeMorph)}(data)`:`data`:!0));e.return(t?`"${kg}"`:!1)}}get nestableExpression(){return this.isBoolean?`boolean`:`(${this.expression})`}discriminate(){if(this.branches.length<2)return null;if(this.unitBranches.length===this.branches.length)return{kind:`unit`,path:[],optionallyChainedPropString:`data`,cases:hg(this.unitBranches,(e,t)=>[`${t.rawIn.serializedValue}`,!t.hasKind(`morph`)||t])};let e=[];for(let t=0;t<this.branches.length-1;t++){let n=this.branches[t];for(let r=t+1;r<this.branches.length;r++){let i=this.branches[r],a=ty(n.rawIn,i.rawIn,n.$);if(a instanceof U)for(let n of a){if(!n.kind||n.optional)continue;let i,a;if(n.kind===`domain`){let e=n.l,t=n.r;i=`"${typeof e==`string`?e:e.domain}"`,a=`"${typeof t==`string`?t:t.domain}"`}else if(n.kind===`unit`)i=n.l.serializedValue,a=n.r.serializedValue;else continue;let o=e.find(e=>ag(e.path,n.path)&&e.kind===n.kind);o?(o.cases[i]?o.cases[i].branchIndices=rg(o.cases[i].branchIndices,t):o.cases[i]??={branchIndices:[t],condition:n.l},o.cases[a]?o.cases[a].branchIndices=rg(o.cases[a].branchIndices,r):o.cases[a]??={branchIndices:[r],condition:n.r}):e.push({kind:n.kind,cases:{[i]:{branchIndices:[t],condition:n.l},[a]:{branchIndices:[r],condition:n.r}},path:n.path})}}}let t=this.ordered?Wb(e,this.branches):e;if(!t.length)return null;let n=Hb(t,this),r={};for(let e in n.best.cases){let t=Ub(n,e);if(t===null){r[e]=!0;continue}if(t.length===this.branches.length)return null;this.ordered&&t.sort((e,t)=>e.originalIndex-t.originalIndex);let i=t.map(e=>e.branch),a=i.length===1?i[0]:this.$.node(`union`,this.ordered?{branches:i,ordered:!0}:i);Object.assign(this.referencesById,a.referencesById),r[e]=a}if(n.defaultEntries.length){let e=n.defaultEntries.map(e=>e.branch);r.default=this.$.node(`union`,this.ordered?{branches:e,ordered:!0}:e,{prereduced:!0}),Object.assign(this.referencesById,r.default.referencesById)}return Object.assign(n.location,{cases:r})}},Hb=(e,t)=>{let n=e.sort((e,t)=>e.path.length===t.path.length?Object.keys(t.cases).length-Object.keys(e.cases).length:e.path.length-t.path.length)[0];return{best:n,location:{kind:n.kind,path:n.path,optionallyChainedPropString:Kb(n.path)},defaultEntries:t.branches.map((e,t)=>({originalIndex:t,branch:e})),node:t}},Ub=(e,t)=>{let n=e.best.cases[t],r=Gb(n.condition,e.location.path,e.node.$),i=[],a=[];for(let t=0;t<e.defaultEntries.length;t++){let o=e.defaultEntries[t];if(n.branchIndices.includes(o.originalIndex)){let t=rx(e.node.branches[o.originalIndex],e.location);t===null?i=null:i?.push({originalIndex:o.originalIndex,branch:t})}else if(o.branch.hasKind(`alias`)&&r.hasKind(`domain`)&&r.domain===`object`)i?.push(o);else{if(o.branch.rawIn.overlaps(r)){let t=rx(o.branch,e.location);i?.push({originalIndex:o.originalIndex,branch:t})}a.push(o)}}return e.defaultEntries=a,i},Wb=(e,t)=>e.filter(e=>{let n=Object.values(e.cases).map(e=>e.branchIndices);for(let e=0;e<n.length-1;e++){let r=n[e];for(let i=e+1;i<n.length;i++){let e=n[i];for(let n of r)for(let r of e)if(n>r&&t[n].overlaps(t[r]))return!1}}return!0}),Gb=(e,t,n)=>{let r=e===`undefined`?n.node(`unit`,{unit:void 0}):e===`null`?n.node(`unit`,{unit:null}):e===`boolean`?n.units([!0,!1]):e;for(let e=t.length-1;e>=0;e--){let i=t[e];r=n.node(`intersection`,typeof i==`number`?{proto:`Array`,sequence:[...$h(i).map(e=>({})),r]}:{domain:`object`,required:[{key:i,value:r}]})}return r},Kb=e=>e.reduce((e,t)=>e+av(t,!0),`data`),qb=nv(lg),Jb=nv(B),Yb={implementation:Bb,Node:Vb},Xb=e=>({kind:e.kind,path:e.path.map(e=>typeof e==`string`?e:iv(e)),cases:hg(e.cases,(e,t)=>[e,t===!0?t:t.hasKind(`union`)&&t.discriminantJson?t.discriminantJson:t.json])}),Zb={delimiter:` | `,finalDelimiter:` | `},Qb=e=>$b(e,Zb),$b=(e,t)=>{let n=t?.delimiter??`, `,r=t?.finalDelimiter??` or `;if(e.length===0)return`never`;if(e.length===1)return e[0];if(e.length===2&&e[0]===`false`&&e[1]===`true`||e[0]===`true`&&e[1]===`false`)return`boolean`;let i={},a=e.filter(e=>i[e]?!1:i[e]=!0),o=a.pop();return`${a.join(n)}${a.length?r:``}${o}`},ex=(e,t,n)=>{let r=t.map(()=>[]);for(let i=0;i<e.length;i++){let a={};for(let o=0;o<t.length;o++){if(r[o]===null)continue;if(e[i].equals(t[o])){r[o]=null,a={};break}let s=ry(e[i],t[o],n);if(!(s instanceof U)){if(s.equals(e[i])){r[o].push(e[i]),a={};break}s.equals(t[o])?r[o]=null:a[o]=s}}for(let e in a)r[e][i]=a[e]}let i=r.flatMap((e,n)=>e?.flatMap(e=>e.branches)??t[n]);return i.length===0?U.init(`union`,e,t):i},tx=({branches:e,ordered:t})=>{if(e.length<2)return e;let n=e.map(()=>!0);for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length&&n[r]&&n[i];i++){if(e[r].equals(e[i])){n[i]=!1;continue}let a=ty(e[r].rawIn,e[i].rawIn,e[0].$);a instanceof U||(t||nx(e[r],e[i]),a.equals(e[r].rawIn)?n[r]=!!t:a.equals(e[i].rawIn)&&(n[i]=!1))}return e.filter((e,t)=>n[t])},nx=(e,t)=>{(e.includesTransform||t.includesTransform)&&(ag(e.shallowMorphs,t.shallowMorphs)||z(ix(e.expression,t.expression)),ag(e.flatMorphs,t.flatMorphs,{isEqual:(e,t)=>e.propString===t.propString&&(e.node.hasKind(`morph`)&&t.node.hasKind(`morph`)?e.node.hasEqualMorphs(t.node):e.node.hasKind(`intersection`)&&t.node.hasKind(`intersection`)?e.node.structure?.structuralMorphRef===t.node.structure?.structuralMorphRef:!1)})||z(ix(e.expression,t.expression)))},rx=(e,t)=>e.transform((e,t)=>e===`domain`||e===`unit`?null:t,{shouldTransform:(e,n)=>{let r=Kb(n.path);return t.optionallyChainedPropString.startsWith(r)?e.hasKind(`domain`)&&e.domain===`object`||(e.hasKind(`domain`)||t.kind===`unit`)&&r===t.optionallyChainedPropString?!0:e.children.length!==0&&e.kind!==`index`:!1}}),ix=(e,t)=>`An unordered union of a type including a morph and a type with overlapping input is indeterminate:
34
+ Left: ${e}
35
+ Right: ${t}`,ax=(e,t)=>`The intersection of two ordered unions is indeterminate:
36
+ Left: ${e}
37
+ Right: ${t}`,ox={implementation:Dv({kind:`unit`,hasAssociatedError:!0,keys:{unit:{preserveUndefined:!0,serialize:e=>e instanceof Date?e.toISOString():Tv(e)}},normalize:e=>e,defaults:{description:e=>B(e.unit),problem:({expected:e,actual:t})=>`${e===t?`must be reference equal to ${e} (serialized to the same value)`:`must be ${e} (was ${t})`}`},intersections:{unit:(e,t)=>U.init(`unit`,e,t),...Tb(`unit`,(e,t)=>{if(t.allows(e.unit))return e;let n=t.hasKind(`intersection`)?t.basis:t;if(n){let t=n.hasKind(`domain`)?n:V.intrinsic.object;if(e.domain!==t.domain){let n=e.domain===`undefined`||e.domain===`null`||e.domain===`boolean`?e.domain:V.intrinsic[e.domain];return U.init(`domain`,n,t)}}return U.init(`assignability`,e,t.hasKind(`intersection`)?t.children.find(t=>!t.allows(e.unit)):t)})}}),Node:class extends Mb{compiledValue=this.json.unit;serializedValue=typeof this.unit==`string`||this.unit instanceof Date?JSON.stringify(this.compiledValue):`${this.compiledValue}`;compiledCondition=sx(this.unit,this.serializedValue);compiledNegation=sx(this.unit,this.serializedValue,`negated`);expression=B(this.unit);domain=sg(this.unit);get defaultShortDescription(){return this.domain===`object`?cg.object:this.description}innerToJsonSchema(e){return this.unit===null?{type:`null`}:V.intrinsic.jsonPrimitive.allows(this.unit)?{const:this.unit}:e.fallback.unit({code:`unit`,base:{},unit:this.unit})}traverseAllows=this.unit instanceof Date?e=>e instanceof Date&&e.toISOString()===this.compiledValue:Number.isNaN(this.unit)?e=>Number.isNaN(e):e=>e===this.unit}},sx=(e,t,n)=>{if(e instanceof Date){let e=`data instanceof Date && data.toISOString() === ${t}`;return n?`!(${e})`:e}return Number.isNaN(e)?`${n?`!`:``}Number.isNaN(data)`:`data ${n?`!`:`=`}== ${t}`},cx={implementation:Dv({kind:`index`,hasAssociatedError:!1,intersectionIsOpen:!0,keys:{signature:{child:!0,parse:(e,t)=>{let n=t.$.parseSchema(e);if(!n.extends(V.intrinsic.key))return z(ux(n.expression));let r=n.branches.filter(e=>e.hasKind(`unit`));return r.length?z(lx(r.map(e=>B(e.unit)))):n}},value:{child:!0,parse:(e,t)=>t.$.parseSchema(e)}},normalize:e=>e,defaults:{description:e=>`[${e.signature.expression}]: ${e.value.description}`},intersections:{index:(e,t,n)=>{if(e.signature.equals(t.signature)){let r=ry(e.value,t.value,n),i=r instanceof U?V.intrinsic.never.internal:r;return n.$.node(`index`,{signature:e.signature,value:i})}return e.signature.extends(t.signature)&&e.value.subsumes(t.value)?t:t.signature.extends(e.signature)&&t.value.subsumes(e.value)?e:null}}}),Node:class extends cy{impliedBasis=V.intrinsic.object.internal;expression=`[${this.signature.expression}]: ${this.value.expression}`;flatRefs=eg(this.value.flatRefs.map(e=>qv([this.signature,...e.path],e.node)),qv([this.signature],this.value));traverseAllows=(e,t)=>Eg(e).every(e=>!this.signature.traverseAllows(e[0],t)||Bv(e[0],()=>this.value.traverseAllows(e[1],t),t));traverseApply=(e,t)=>{for(let n of Eg(e))this.signature.traverseAllows(n[0],t)&&Bv(n[0],()=>this.value.traverseApply(n[1],t),t)};_transform(e,t){t.path.push(this.signature);let n=super._transform(e,t);return t.path.pop(),n}compile(){}}},lx=e=>`Index keys ${e.join(`, `)} should be specified as named props.`,ux=e=>`Indexed key definition '${e}' must be a string or symbol`,dx={implementation:Dv({kind:`required`,hasAssociatedError:!0,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(e,t)=>t.$.parseSchema(e)}},normalize:e=>e,defaults:{description:e=>`${e.compiledKey}: ${e.value.description}`,expected:e=>e.missingValueDescription,actual:()=>`missing`},intersections:{required:ob,optional:ob}}),Node:class extends sb{expression=`${this.compiledKey}: ${this.value.expression}`;errorContext=Object.freeze({code:`required`,missingValueDescription:this.value.defaultShortDescription,relativePath:[this.key],meta:this.meta});compiledErrorContext=Ev(this.errorContext)}},fx=Dv({kind:`sequence`,hasAssociatedError:!1,collapsibleKey:`variadic`,keys:{prefix:{child:!0,parse:(e,t)=>{if(e.length!==0)return e.map(e=>t.$.parseSchema(e))}},optionals:{child:!0,parse:(e,t)=>{if(e.length!==0)return e.map(e=>t.$.parseSchema(e))}},defaultables:{child:e=>e.map(e=>e[0]),parse:(e,t)=>{if(e.length!==0)return e.map(e=>{let n=t.$.parseSchema(e[0]);return pb(n,e[1],null),[n,e[1]]})},serialize:e=>e.map(e=>[e[0].collapsibleJson,Tv(e[1])]),reduceIo:(e,t,n)=>{e===`in`?t.optionals=n.map(e=>e[0].rawIn):t.prefix=n.map(e=>e[0].rawOut)}},variadic:{child:!0,parse:(e,t)=>t.$.parseSchema(e,t)},minVariadicLength:{parse:e=>e===0?void 0:e},postfix:{child:!0,parse:(e,t)=>{if(e.length!==0)return e.map(e=>t.$.parseSchema(e))}}},normalize:e=>{if(typeof e==`string`)return{variadic:e};if(`variadic`in e||`prefix`in e||`defaultables`in e||`optionals`in e||`postfix`in e||`minVariadicLength`in e){if(e.postfix?.length){if(!e.variadic)return z(bx);if(e.optionals?.length||e.defaultables?.length)return z(yx)}return e.minVariadicLength&&!e.variadic?z(`minVariadicLength may not be specified without a variadic element`):e}return{variadic:e}},reduce:(e,t)=>{let n=e.minVariadicLength??0,r=e.prefix?.slice()??[],i=e.defaultables?.slice()??[],a=e.optionals?.slice()??[],o=e.postfix?.slice()??[];if(e.variadic){for(;a[a.length-1]?.equals(e.variadic);)a.pop();if(a.length===0&&i.length===0)for(;r[r.length-1]?.equals(e.variadic);)r.pop(),n++;for(;o[0]?.equals(e.variadic);)o.shift(),n++}else a.length===0&&i.length===0&&r.push(...o.splice(0));if(n!==e.minVariadicLength||e.prefix&&e.prefix.length!==r.length)return t.node(`sequence`,{...e,prefix:r,defaultables:i,optionals:a,postfix:o,minVariadicLength:n},{prereduced:!0})},defaults:{description:e=>e.isVariadicOnly?`${e.variadic.nestableExpression}[]`:`[${e.tuple.map(e=>e.kind===`defaultables`?`${e.node.nestableExpression} = ${B(e.default)}`:e.kind===`optionals`?`${e.node.nestableExpression}?`:e.kind===`variadic`?`...${e.node.nestableExpression}[]`:e.node.expression).join(`, `)}]`},intersections:{sequence:(e,t,n)=>{let r=xx({l:e.tuple,r:t.tuple,disjoint:new U,result:[],fixedVariants:[],ctx:n}),i=r.disjoint.length===0?[r,...r.fixedVariants]:r.fixedVariants;return i.length===0?r.disjoint:i.length===1?n.$.node(`sequence`,vx(i[0].result)):n.$.node(`union`,i.map(e=>({proto:Array,sequence:vx(e.result)})))}}}),px=class extends cy{impliedBasis=V.intrinsic.Array.internal;tuple=_x(this.inner);prefixLength=this.prefix?.length??0;defaultablesLength=this.defaultables?.length??0;optionalsLength=this.optionals?.length??0;postfixLength=this.postfix?.length??0;defaultablesAndOptionals=[];prevariadic=this.tuple.filter(e=>e.kind===`defaultables`||e.kind===`optionals`?(this.defaultablesAndOptionals.push(e.node),!0):e.kind===`prefix`);variadicOrPostfix=tg(this.variadic&&[this.variadic],this.postfix);flatRefs=this.addFlatRefs();addFlatRefs(){return Yv(this.flatRefs,this.prevariadic.flatMap((e,t)=>eg(e.node.flatRefs.map(e=>qv([`${t}`,...e.path],e.node)),qv([`${t}`],e.node)))),Yv(this.flatRefs,this.variadicOrPostfix.flatMap(e=>eg(e.flatRefs.map(e=>qv([V.intrinsic.nonNegativeIntegerString.internal,...e.path],e.node)),qv([V.intrinsic.nonNegativeIntegerString.internal],e)))),this.flatRefs}isVariadicOnly=this.prevariadic.length+this.postfixLength===0;minVariadicLength=this.inner.minVariadicLength??0;minLength=this.prefixLength+this.minVariadicLength+this.postfixLength;minLengthNode=this.minLength===0?null:this.$.node(`minLength`,this.minLength);maxLength=this.variadic?null:this.tuple.length;maxLengthNode=this.maxLength===null?null:this.$.node(`maxLength`,this.maxLength);impliedSiblings=this.minLengthNode?this.maxLengthNode?[this.minLengthNode,this.maxLengthNode]:[this.minLengthNode]:this.maxLengthNode?[this.maxLengthNode]:[];defaultValueMorphs=hx(this);defaultValueMorphsReference=this.defaultValueMorphs.length?nv(this.defaultValueMorphs):void 0;optionalize(){let{prefix:e,defaultables:t,...n}=this.inner;return e?this.$.node(`sequence`,{...n,optionals:tg(e,this.defaultablesAndOptionals)}):this}require(){let{defaultables:e,optionals:t,...n}=this.inner;return this.$.node(`sequence`,{...n,prefix:tg(this.prefix,this.defaultablesAndOptionals)})}elementAtIndex(e,t){if(t<this.prevariadic.length)return this.tuple[t];let n=e.length-this.postfixLength;return t>=n?{kind:`postfix`,node:this.postfix[t-n]}:{kind:`variadic`,node:this.variadic??dg(`Unexpected attempt to access index ${t} on ${this}`)}}traverseAllows=(e,t)=>{for(let n=0;n<e.length;n++)if(!this.elementAtIndex(e,n).node.traverseAllows(e[n],t))return!1;return!0};traverseApply=(e,t)=>{let n=t.currentErrorCount,r=0;for(;r<e.length;r++)if(Bv(r,()=>this.elementAtIndex(e,r).node.traverseApply(e[r],t),t),t.failFast&&t.currentErrorCount>n)return};get element(){return this.cacheGetter(`element`,this.$.node(`union`,this.children))}compile(e){if(e.traversalKind===`Apply`&&e.initializeErrorCount(),this.prefix)for(let[t,n]of this.prefix.entries())e.traverseKey(`${t}`,`data[${t}]`,n),e.traversalKind===`Apply`&&e.returnIfFailFast();for(let[t,n]of this.defaultablesAndOptionals.entries()){let r=`${t+this.prefixLength}`;e.if(`${r} >= data.length`,()=>e.traversalKind===`Allows`?e.return(!0):e.return()),e.traverseKey(r,`data[${r}]`,n),e.traversalKind===`Apply`&&e.returnIfFailFast()}if(this.variadic&&(this.postfix&&e.const(`firstPostfixIndex`,`data.length${this.postfix?`- ${this.postfix.length}`:``}`),e.for(`i < ${this.postfix?`firstPostfixIndex`:`data.length`}`,()=>(e.traverseKey(`i`,`data[i]`,this.variadic),e.traversalKind===`Apply`?e.returnIfFailFast():e),this.prevariadic.length),this.postfix))for(let[t,n]of this.postfix.entries()){let r=`firstPostfixIndex + ${t}`;e.traverseKey(r,`data[${r}]`,n),e.traversalKind===`Apply`&&e.returnIfFailFast()}e.traversalKind===`Allows`&&e.return(!0)}_transform(e,t){t.path.push(V.intrinsic.nonNegativeIntegerString.internal);let n=super._transform(e,t);return t.path.pop(),n}expression=this.description;reduceJsonSchema(e,t){let n=t.target===`draft-07`;if(this.prevariadic.length){let r=this.prevariadic.map(e=>{let n=e.node.toJsonSchemaRecurse(t);if(e.kind===`defaultables`){let r=typeof e.default==`function`?e.default():e.default;n.default=V.intrinsic.jsonData.allows(r)?r:t.fallback.defaultValue({code:`defaultValue`,base:n,value:r})}return n});n?e.items=r:e.prefixItems=r}if(this.minLength&&(e.minItems=this.minLength),this.variadic){let r=this.variadic.toJsonSchemaRecurse(t);if(n&&this.prevariadic.length?e.additionalItems=r:e.items=r,this.maxLength&&(e.maxItems=this.maxLength),this.postfix){let n=this.postfix.map(e=>e.toJsonSchemaRecurse(t));e=t.fallback.arrayPostfix({code:`arrayPostfix`,base:e,elements:n})}}else n?e.additionalItems=!1:e.items=!1,delete e.maxItems;return e}},mx={},hx=e=>{if(!e.defaultables)return[];let t=[],n=`[`,r=e.prefixLength+e.defaultablesLength-1;for(let i=e.prefixLength;i<=r;i++){let[r,a]=e.defaultables[i-e.prefixLength];t.push(fb(i,r,a)),n+=`${i}: ${r.id} = ${Tv(a)}, `}return n+=`]`,mx[n]??=t},gx={implementation:fx,Node:px},_x=e=>{let t=[];if(e.prefix)for(let n of e.prefix)t.push({kind:`prefix`,node:n});if(e.defaultables)for(let[n,r]of e.defaultables)t.push({kind:`defaultables`,node:n,default:r});if(e.optionals)for(let n of e.optionals)t.push({kind:`optionals`,node:n});if(e.variadic&&t.push({kind:`variadic`,node:e.variadic}),e.postfix)for(let n of e.postfix)t.push({kind:`postfix`,node:n});return t},vx=e=>e.reduce((e,t)=>(t.kind===`variadic`?e.variadic=t.node:t.kind===`defaultables`?e.defaultables=eg(e.defaultables,[[t.node,t.default]]):e[t.kind]=eg(e[t.kind],t.node),e),{}),yx=`A postfix required element cannot follow an optional or defaultable element`,bx=`A postfix element requires a variadic element`,xx=e=>{let[t,...n]=e.l,[r,...i]=e.r;if(!t||!r)return e;let a=n[n.length-1]?.kind===`postfix`,o=i[i.length-1]?.kind===`postfix`,s=t.kind===`prefix`||r.kind===`prefix`?`prefix`:t.kind===`postfix`||r.kind===`postfix`?`postfix`:t.kind===`variadic`&&r.kind===`variadic`?`variadic`:a||o?`prefix`:t.kind===`defaultables`||r.kind===`defaultables`?`defaultables`:`optionals`;if(t.kind===`prefix`&&r.kind===`variadic`&&o){let t=xx({...e,fixedVariants:[],r:i.map(e=>({...e,kind:`prefix`}))});t.disjoint.length===0&&e.fixedVariants.push(t)}else if(r.kind===`prefix`&&t.kind===`variadic`&&a){let t=xx({...e,fixedVariants:[],l:n.map(e=>({...e,kind:`prefix`}))});t.disjoint.length===0&&e.fixedVariants.push(t)}let c=ry(t.node,r.node,e.ctx);if(c instanceof U){if(s===`prefix`||s===`postfix`)e.disjoint.push(...c.withPrefixKey(s===`prefix`?e.result.length:`-${n.length+1}`,Sx(t)&&Sx(r)?`required`:`optional`)),e.result=[...e.result,{kind:s,node:V.intrinsic.never.internal}];else if(s===`optionals`||s===`defaultables`)return e;else return xx({...e,fixedVariants:[],l:n.map(e=>({...e,kind:`prefix`})),r:n.map(e=>({...e,kind:`prefix`}))})}else s===`defaultables`?(t.kind===`defaultables`&&r.kind===`defaultables`&&t.default!==r.default&&z(cb(t.default,r.default)),e.result=[...e.result,{kind:s,node:c,default:t.kind===`defaultables`?t.default:r.kind===`defaultables`?r.default:dg(`Unexpected defaultable intersection from ${t.kind} and ${r.kind} elements.`)}]):e.result=[...e.result,{kind:s,node:c}];let l=e.l.length,u=e.r.length;return(t.kind!==`variadic`||l>=u&&(r.kind===`variadic`||u===1))&&(e.l=n),(r.kind!==`variadic`||u>=l&&(t.kind===`variadic`||l===1))&&(e.r=i),xx(e)},Sx=e=>e.kind===`prefix`||e.kind===`postfix`,Cx=e=>t=>{if(t.props.length||t.index){let n=t.index?.map(t=>t[e])??[];for(let r of t.props)n.push(r[e]);t.undeclared&&n.push(`+ (undeclared): ${t.undeclared}`);let r=`{ ${n.join(`, `)} }`;return t.sequence?`${r} & ${t.sequence.description}`:r}return t.sequence?.description??`{}`},wx=Cx(`description`),Tx=Cx(`expression`),Ex=(e,t,n)=>{let r=e.required?`required`:`optional`;if(!t.signature.allows(e.key))return null;let i=ty(e.value,t.value,n);return i instanceof U?r===`optional`?n.node(`optional`,{key:e.key,value:V.intrinsic.never.internal}):i.withPrefixKey(e.key,e.kind):null},Dx=Dv({kind:`structure`,hasAssociatedError:!1,normalize:e=>e,applyConfig:(e,t)=>!e.undeclared&&t.onUndeclaredKey!==`ignore`?{...e,undeclared:t.onUndeclaredKey}:e,keys:{required:{child:!0,parse:uy(`required`),reduceIo:(e,t,n)=>{t.required=eg(t.required,n.map(t=>e===`in`?t.rawIn:t.rawOut))}},optional:{child:!0,parse:uy(`optional`),reduceIo:(e,t,n)=>{if(e===`in`)t.optional=n.map(e=>e.rawIn);else for(let e of n)t[e.outProp.kind]=eg(t[e.outProp.kind],e.outProp.rawOut)}},index:{child:!0,parse:uy(`index`)},sequence:{child:!0,parse:uy(`sequence`)},undeclared:{parse:e=>e===`ignore`?void 0:e,reduceIo:(e,t,n)=>{n===`reject`?t.undeclared=`reject`:e===`in`?delete t.undeclared:t.undeclared=`reject`}}},defaults:{description:wx},intersections:{structure:(e,t,n)=>{let r={...e.inner},i={...t.inner},a=new U,o=[];if(e.undeclared){let r=e.keyof();for(let e of t.requiredKeys)r.allows(e)||a.add(`presence`,V.intrinsic.never.internal,t.propsByKey[e].value,{path:[e]});i.optional&&=i.optional.filter(e=>r.allows(e.key)),i.index&&=i.index.flatMap(e=>{if(e.signature.extends(r))return e;let t=ty(r,e.signature,n.$);if(t instanceof U)return[];let i=Ix(t,e.value,n.$);return o.push(...i.required??[]),o.push(...i.optional??[]),i.index??[]})}if(t.undeclared){let i=t.keyof();for(let t of e.requiredKeys)i.allows(t)||a.add(`presence`,e.propsByKey[t].value,V.intrinsic.never.internal,{path:[t]});r.optional&&=r.optional.filter(e=>i.allows(e.key)),r.index&&=r.index.flatMap(e=>{if(e.signature.extends(i))return e;let t=ty(i,e.signature,n.$);if(t instanceof U)return[];let r=Ix(t,e.value,n.$);return o.push(...r.required??[]),o.push(...r.optional??[]),r.index??[]})}let s={};(e.undeclared||t.undeclared)&&(s.undeclared=e.undeclared===`reject`||t.undeclared===`reject`?`reject`:`delete`);let c=dy({kind:`structure`,baseInner:s,l:fy(r),r:[...fy(i),...o],roots:[],ctx:n});return c instanceof U&&a.push(...c),a.length?a:c}},reduce:(e,t)=>{if(!e.required&&!e.optional)return;let n=Object.create(null),r=!1,i=e.optional?[...e.optional]:[];if(e.required)for(let r=0;r<e.required.length;r++){let i=e.required[r];if(i.key in n&&z(zx(i.key)),n[i.key]=!0,e.index)for(let n of e.index){let e=Ex(i,n,t);if(e instanceof U)return e}}if(e.optional)for(let a=0;a<e.optional.length;a++){let o=e.optional[a];if(o.key in n&&z(zx(o.key)),n[o.key]=!0,e.index)for(let n of e.index){let e=Ex(o,n,t);if(e instanceof U)return e;e!==null&&(i[a]=e,r=!0)}}if(r)return t.node(`structure`,{...e,optional:i},{prereduced:!0})}}),Ox=class extends cy{impliedBasis=V.intrinsic.object.internal;impliedSiblings=this.children.flatMap(e=>e.impliedSiblings??[]);props=tg(this.required,this.optional);propsByKey=hg(this.props,(e,t)=>[t.key,t]);propsByKeyReference=nv(this.propsByKey);expression=Tx(this);requiredKeys=this.required?.map(e=>e.key)??[];optionalKeys=this.optional?.map(e=>e.key)??[];literalKeys=[...this.requiredKeys,...this.optionalKeys];_keyof;keyof(){if(this._keyof)return this._keyof;let e=this.$.units(this.literalKeys).branches;if(this.index)for(let{signature:t}of this.index)e=e.concat(t.branches);return this._keyof=this.$.node(`union`,e)}map(e){return this.$.node(`structure`,this.props.flatMap(e).reduce((e,t)=>{let n=this.propsByKey[t.key];if(dv(t))return t.kind!==`required`&&t.kind!==`optional`?z(`Map result must have kind "required" or "optional" (was ${t.kind})`):(e[t.kind]=eg(e[t.kind],t),e);let r=t.kind??n?.kind??`required`,i=hg(t,(e,t)=>e in lb.implementation.keys?[e,t]:[]);return e[r]=eg(e[r],this.$.node(r,i)),e},{}))}assertHasKeys(e){let t=e.filter(e=>!xb(e,this.keyof()));if(t.length)return z(Rx(this.expression,t))}get(e,...t){let n,r=!1,i=Px(e);if((typeof i==`string`||typeof i==`symbol`)&&this.propsByKey[i]&&(n=this.propsByKey[i].value,r=this.propsByKey[i].required),this.index)for(let e of this.index)xb(i,e.signature)&&(n=n?.and(e.value)??e.value);if(this.sequence&&xb(i,V.intrinsic.nonNegativeIntegerString)){if(H(i,`root`))this.sequence.variadic&&(n=n?.and(this.sequence.element)??this.sequence.element);else{let e=Number.parseInt(i);if(e<this.sequence.prevariadic.length){let t=this.sequence.prevariadic[e].node;n=n?.and(t)??t,r||=e<this.sequence.prefixLength}else if(this.sequence.variadic){let e=this.$.node(`union`,this.sequence.variadicOrPostfix);n=n?.and(e)??e}}}if(!n)return this.sequence?.variadic&&H(i,`root`)&&i.extends(V.intrinsic.number)?z(Fx(i.expression,this.sequence.expression)):z(Rx(this.expression,[i]));let a=n.get(...t);return r?a:a.or(V.intrinsic.undefined)}pick(...e){return this.assertHasKeys(e),this.$.node(`structure`,this.filterKeys(`pick`,e))}omit(...e){return this.assertHasKeys(e),this.$.node(`structure`,this.filterKeys(`omit`,e))}optionalize(){let{required:e,...t}=this.inner;return this.$.node(`structure`,{...t,...t.sequence?{sequence:t.sequence.optionalize()}:{},optional:this.props.map(e=>e.hasKind(`required`)?this.$.node(`optional`,e.inner):e)})}require(){let{optional:e,...t}=this.inner;return this.$.node(`structure`,{...t,...t.sequence?{sequence:t.sequence.require()}:{},required:this.props.map(e=>e.hasKind(`optional`)?{key:e.key,value:e.value}:e)})}merge(e){let t=this.filterKeys(`omit`,[e.keyof()]);return e.required&&(t.required=eg(t.required,e.required)),e.optional&&(t.optional=eg(t.optional,e.optional)),e.index&&(t.index=eg(t.index,e.index)),e.sequence&&(t.sequence=e.sequence),e.undeclared?t.undeclared=e.undeclared:delete t.undeclared,this.$.node(`structure`,t)}filterKeys(e,t){let n=lv(this.inner),r=n=>{let r=t.some(e=>xb(n,e));return e===`pick`?r:!r};return n.required&&=n.required.filter(e=>r(e.key)),n.optional&&=n.optional.filter(e=>r(e.key)),n.index&&=n.index.filter(e=>r(e.signature)),n}traverseAllows=(e,t)=>this._traverse(`Allows`,e,t);traverseApply=(e,t)=>this._traverse(`Apply`,e,t);_traverse=(e,t,n)=>{let r=n?.currentErrorCount??0;for(let i=0;i<this.props.length;i++)if(e===`Allows`){if(!this.props[i].traverseAllows(t,n))return!1}else if(this.props[i].traverseApply(t,n),n.failFast&&n.currentErrorCount>r)return!1;if(this.sequence){if(e===`Allows`){if(!this.sequence.traverseAllows(t,n))return!1}else if(this.sequence.traverseApply(t,n),n.failFast&&n.currentErrorCount>r)return!1}if(this.index||this.undeclared===`reject`){let i=Object.keys(t);i.push(...Object.getOwnPropertySymbols(t));for(let a=0;a<i.length;a++){let o=i[a];if(this.index){for(let i of this.index)if(i.signature.traverseAllows(o,n)){if(e===`Allows`){if(!Bv(o,()=>i.value.traverseAllows(t[o],n),n))return!1}else if(Bv(o,()=>i.value.traverseApply(t[o],n),n),n.failFast&&n.currentErrorCount>r)return!1}}if(this.undeclared===`reject`&&!this.declaresKey(o)&&(e===`Allows`||(n.errorFromNodeContext({code:`predicate`,expected:`removed`,actual:``,relativePath:[o],meta:this.meta}),n.failFast)))return!1}}return this.structuralMorph&&n&&!n.hasError()&&n.queueMorphs([this.structuralMorph]),!0};get defaultable(){return this.cacheGetter(`defaultable`,this.optional?.filter(e=>e.hasDefault())??[])}declaresKey=e=>e in this.propsByKey||this.index?.some(t=>t.signature.allows(e))||this.sequence!==void 0&&V.intrinsic.nonNegativeIntegerString.allows(e);_compileDeclaresKey(e){let t=[];if(this.props.length&&t.push(`k in ${this.propsByKeyReference}`),this.index)for(let n of this.index)t.push(e.invoke(n.signature,{kind:`Allows`,arg:`k`}));return this.sequence&&t.push(`$ark.intrinsic.nonNegativeIntegerString.allows(k)`),t.join(` || `)||`false`}get structuralMorph(){return this.cacheGetter(`structuralMorph`,jx(this))}structuralMorphRef=this.structuralMorph&&nv(this.structuralMorph);compile(e){e.traversalKind===`Apply`&&e.initializeErrorCount();for(let t of this.props)e.check(t),e.traversalKind===`Apply`&&e.returnIfFailFast();if(this.sequence&&(e.check(this.sequence),e.traversalKind===`Apply`&&e.returnIfFailFast()),(this.index||this.undeclared===`reject`)&&(e.const(`keys`,`Object.keys(data)`),e.line(`keys.push(...Object.getOwnPropertySymbols(data))`),e.for(`i < keys.length`,()=>this.compileExhaustiveEntry(e))),e.traversalKind===`Allows`)return e.return(!0);this.structuralMorphRef&&e.if(`ctx && !ctx.hasError()`,()=>(e.line(`ctx.queueMorphs([`),Mx(e,this),e.line(`])`)))}compileExhaustiveEntry(e){if(e.const(`k`,`keys[i]`),this.index)for(let t of this.index)e.if(`${e.invoke(t.signature,{arg:`k`,kind:`Allows`})}`,()=>e.traverseKey(`k`,`data[k]`,t.value));return this.undeclared===`reject`&&e.if(`!(${this._compileDeclaresKey(e)})`,()=>e.traversalKind===`Allows`?e.return(!1):e.line(`ctx.errorFromNodeContext({ code: "predicate", expected: "removed", actual: "", relativePath: [k], meta: ${this.compiledMeta} })`).if(`ctx.failFast`,()=>e.return())),e}reduceJsonSchema(e,t){switch(e.type){case`object`:return this.reduceObjectJsonSchema(e,t);case`array`:let n=this.sequence?.reduceJsonSchema(e,t)??e;return this.props.length||this.index?t.fallback.arrayObject({code:`arrayObject`,base:n,object:this.reduceObjectJsonSchema({type:`object`},t)}):n;default:return Ov.throwInternalOperandError(`structure`,e)}}reduceObjectJsonSchema(e,t){if(this.props.length){e.properties={};for(let n of this.props){let r=n.value.toJsonSchemaRecurse(t);if(typeof n.key==`symbol`)t.fallback.symbolKey({code:`symbolKey`,base:e,key:n.key,value:r,optional:n.optional});else{if(n.hasDefault()){let e=typeof n.default==`function`?n.default():n.default;r.default=V.intrinsic.jsonData.allows(e)?e:t.fallback.defaultValue({code:`defaultValue`,base:r,value:e})}e.properties[n.key]=r}}this.requiredKeys.length&&e.properties&&(e.required=this.requiredKeys.filter(t=>typeof t==`string`&&t in e.properties))}if(this.index)for(let n of this.index){let r=n.value.toJsonSchemaRecurse(t);if(n.signature.equals(V.intrinsic.string))e.additionalProperties=r;else for(let i of n.signature.branches){if(!i.extends(V.intrinsic.string)){e=t.fallback.symbolKey({code:`symbolKey`,base:e,key:null,value:r,optional:!1});continue}let n={type:`string`};if(i.hasKind(`morph`)&&(n=t.fallback.morph({code:`morph`,base:i.rawIn.toJsonSchemaRecurse(t),out:i.rawOut.toJsonSchemaRecurse(t)})),!i.hasKind(`intersection`))return dg(`Unexpected index branch kind ${i.kind}.`);let{pattern:a}=i.inner;if(a){let i=Object.assign(n,{pattern:a[0].rule});for(let e=1;e<a.length;e++)n=t.fallback.patternIntersection({code:`patternIntersection`,base:i,pattern:a[e].rule});e.patternProperties??={},e.patternProperties[i.pattern]=r}}}return this.undeclared&&!e.additionalProperties&&(e.additionalProperties=!1),e}},kx={},Ax=e=>{let t=``;for(let n=0;n<e.defaultable.length;n++)t+=e.defaultable[n].defaultValueMorphRef;if(e.sequence?.defaultValueMorphsReference&&(t+=e.sequence?.defaultValueMorphsReference),e.undeclared===`delete`){if(t+=`delete !(`,e.required)for(let n of e.required)t+=n.compiledKey+` | `;if(e.optional)for(let n of e.optional)t+=n.compiledKey+` | `;if(e.index)for(let n of e.index)t+=n.signature.id+` | `;if(e.sequence){if(e.sequence.maxLength===null)t+=W.nonNegativeIntegerString.id;else for(let n=0;n<e.sequence.tuple.length;n++)t+=n+` | `}t+=`)`}return t},jx=e=>{let t=Ax(e);return t?kx[t]?kx[t]:kx[t]=(t,n)=>{for(let r=0;r<e.defaultable.length;r++)e.defaultable[r].key in t||e.defaultable[r].defaultValueMorph(t,n);if(e.sequence?.defaultables)for(let r=t.length-e.sequence.prefixLength;r<e.sequence.defaultables.length;r++)e.sequence.defaultValueMorphs[r](t,n);if(e.undeclared===`delete`)for(let n in t)e.declaresKey(n)||delete t[n];return t}:void 0},Mx=(e,t)=>{let n=`(data${t.defaultable.some(e=>e.defaultValueMorph.length===2)||t.sequence?.defaultValueMorphs.some(e=>e.length===2)?`, ctx`:``})`;return e.block(`${n} => `,e=>{for(let r=0;r<t.defaultable.length;r++){let{serializedKey:i,defaultValueMorphRef:a}=t.defaultable[r];e.if(`!(${i} in data)`,e=>e.line(`${a}${n}`))}return t.sequence?.defaultables&&e.for(`i < ${t.sequence.defaultables.length}`,e=>e.line(`${t.sequence.defaultValueMorphsReference}[i]${n}`),`data.length - ${t.sequence.prefixLength}`),t.undeclared===`delete`&&e.forIn(`data`,e=>e.if(`!(${t._compileDeclaresKey(e)})`,e=>e.line(`delete data[k]`))),e.return(`data`)})},Nx={implementation:Dx,Node:Ox},Px=e=>(H(e,`root`)&&e.hasKind(`unit`)&&(e=e.unit),typeof e==`number`&&(e=`${e}`),e),Fx=(e,t)=>`${e} is not allowed as an array index on ${t}. Use the 'nonNegativeIntegerString' keyword instead.`,Ix=(e,t,n)=>{let[r,i]=Xh(e.branches,e=>e.hasKind(`unit`));if(!r.length)return{index:n.node(`index`,{signature:e,value:t})};let a={};for(let e of r){let r=n.node(`required`,{key:e.unit,value:t});a[r.kind]=eg(a[r.kind],r)}return i.length&&(a.index=n.node(`index`,{signature:i,value:t})),a},Lx=e=>H(e,`root`)?e.expression:B(e),Rx=(e,t)=>`Key${t.length===1?``:`s`} ${t.map(Lx).join(`, `)} ${t.length===1?`does`:`do`} not exist on ${e}`,zx=e=>`Duplicate key ${iv(e)}`,Bx={...Gy,alias:jb.implementation,domain:Nb.implementation,unit:ox.implementation,proto:zb.implementation,union:Yb.implementation,morph:Lb.implementation,intersection:Pb.implementation,divisor:Sy.implementation,pattern:qy.implementation,predicate:xy.implementation,required:dx.implementation,optional:lb.implementation,index:cx.implementation,sequence:gx.implementation,structure:Nx.implementation};V.defaultConfig=Og(Object.assign(hg(Bx,(e,t)=>[e,t.defaults]),{jitless:Zg(),clone:Gg,onUndeclaredKey:`ignore`,exactOptionalPropertyTypes:!0,numberAllowsNaN:!1,dateAllowsInvalid:!1,onFail:null,keywords:{},toJsonSchema:Ov.defaultConfig})),V.resolvedConfig=kv(V.defaultConfig,V.config);var Vx={...Ky,alias:jb.Node,domain:Nb.Node,unit:ox.Node,proto:zb.Node,union:Yb.Node,morph:Lb.Node,intersection:Pb.Node,divisor:Sy.Node,pattern:qy.Node,predicate:xy.Node,required:dx.Node,optional:lb.Node,index:cx.Node,sequence:gx.Node,structure:Nx.Node},Hx=class extends bg{get[uv](){return`module`}},Ux=(e,t)=>new Hx(hg(e,(e,n)=>[e,H(n,`module`)?Ux(n,t):t.bindReference(n)])),Wx=e=>Rg(e)?e:`branches`in e&&Rg(e.branches)?e.branches:void 0,Gx=(e,t)=>z(`Node of kind ${t} is not valid as a ${e} definition`),Kx=e=>`#${e} duplicates public alias ${e}`,qx=0;V.ambient??={};var Jx,Yx=`function $`,Xx=e=>Zx(e,Qx(e)),Zx=(e,t,n)=>{let r=t.write(Yx,4),i=t.compile()();for(let t of e)(!t.precompilation||n&&t.$===n)&&(t.traverseAllows=i[`${t.id}Allows`].bind(i),t.isRoot()&&!t.allowsRequiresContext&&(t.allows=t.traverseAllows),t.traverseApply=i[`${t.id}Apply`].bind(i),i[`${t.id}Optimistic`]&&(t.traverseOptimistic=i[`${t.id}Optimistic`].bind(i)),t.precompilation=r)},Qx=e=>new rv().return(e.reduce((e,t)=>{let n=new cv({kind:`Allows`}).indent();t.compile(n);let r=n.write(`${t.id}Allows`),i=new cv({kind:`Apply`}).indent();t.compile(i);let a=`${e}${r},\n${i.write(`${t.id}Apply`)},\n`;if(!t.hasKind(`union`))return a;let o=new cv({kind:`Allows`,optimistic:!0}).indent();return t.compile(o),`${a}${o.write(`${t.id}Optimistic`)},\n`},`{
38
+ `)+`}`),$x=class{config;resolvedConfig;name;get[uv](){return`scope`}referencesById={};references=[];resolutions={};exportedNames=[];aliases={};resolved=!1;nodesByHash={};intrinsic;constructor(e,t){this.config=kv(V.config,t),this.resolvedConfig=kv(V.resolvedConfig,t),this.name=this.resolvedConfig.name??`anonymousScope${qx++}`;let n=Object.entries(e).map(e=>this.preparseOwnAliasEntry(...e));for(let[e,t]of n){let n=e;if(e[0]===`#`?(n=e.slice(1),n in this.aliases&&z(Kx(n)),this.aliases[n]=t):(n in this.aliases&&z(Kx(e)),this.aliases[n]=t,this.exportedNames.push(n)),!H(t,`module`)&&!H(t,`generic`)&&!Jg(t)){let e=this.preparseOwnDefinitionFormat(t,{alias:n});this.resolutions[n]=H(e,`root`)?this.bindReference(e):this.createParseContext(e).id}}Jx??=this.node(`union`,{branches:[`string`,`number`,`object`,`bigint`,`symbol`,{unit:!0},{unit:!1},{unit:void 0},{unit:null}]},{prereduced:!0}),this.nodesByHash[Jx.hash]=this.node(`intersection`,{},{prereduced:!0}),this.intrinsic=V.intrinsic?hg(V.intrinsic,(e,t)=>e.startsWith(`json`)?[]:[e,this.bindReference(t)]):{}}cacheGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}get internal(){return this}_json;get json(){return this._json||this.export(),this._json}defineSchema(e){return e}generic=(...e)=>{let t=this;return(n,r)=>new vy(e,r?new _y(n):n,t,t,r??null)};units=(e,t)=>{let n=[];for(let t of e)n.includes(t)||n.push(t);let r=n.map(e=>this.node(`unit`,{unit:e},t));return this.node(`union`,r,{...t,prereduced:!0})};lazyResolutions=[];lazilyResolve(e,t){let n=this.node(`alias`,{reference:t??`synthetic`,resolve:e},{prereduced:!0});return this.resolved||this.lazyResolutions.push(n),n}schema=(e,t)=>this.finalize(this.parseSchema(e,t));parseSchema=(e,t)=>this.node(Jy(e),e,t);preparseNode(e,t,n){let r=typeof e==`string`?e:Jy(t,e);if(dv(t)&&t.kind===r)return t;if(r===`alias`&&!n?.prereduced){let{reference:e}=jb.implementation.normalize(t,this);if(e.startsWith(`$`)){let n=this.resolveRoot(e.slice(1));t=n,r=n.kind}}else if(r===`union`&&og(t,`object`)){let e=Wx(t);e?.length===1&&(t=e[0],r=Jy(t))}if(dv(t)&&t.kind===r)return t;let i=Bx[r].normalize?.(t,this)??t;return dv(i)?i.kind===r?i:Gx(r,i.kind):{...n,$:this,kind:r,def:i,prefix:n.alias??r}}bindReference(e){let t;return t=dv(e)?e.$===this?e:new e.constructor(e.attachments,this):e.$===this?e:new vy(e.params,e.bodyDef,e.$,this,e.hkt),this.resolved||Object.assign(this.referencesById,t.referencesById),t}resolveRoot(e){return this.maybeResolveRoot(e)??z(uS(e))}maybeResolveRoot(e){let t=this.maybeResolve(e);if(!H(t,`generic`))return t}maybeResolveSubalias(e){return oS(this.aliases,e)??oS(this.ambient,e)}get ambient(){return V.ambient}maybeResolve(e){let t=this.resolutions[e];if(t){if(typeof t!=`string`)return this.bindReference(t);let n=$y[t];if(H(n,`root`))return this.resolutions[e]=n;if(H(n,`context`)){if(n.phase===`resolving`)return this.node(`alias`,{reference:`$${e}`},{prereduced:!0});if(n.phase===`resolved`)return dg(`Unexpected resolved context for was uncached by its scope: ${B(n)}`);n.phase=`resolving`;let t=this.bindReference(this.parseOwnDefinitionFormat(n.def,n));return n.phase=`resolved`,$y[t.id]=t,$y[n.id]=t,this.resolutions[e]=t}return dg(`Unexpected nodesById entry for ${t}: ${B(n)}`)}let n=this.aliases[e]??this.ambient?.[e];return n?(n=this.normalizeRootScopeValue(n),H(n,`generic`)?this.resolutions[e]=this.bindReference(n):H(n,`module`)?(n.root||z(fS(e)),this.resolutions[e]=this.bindReference(n.root)):this.resolutions[e]=this.parse(n,{alias:e})):this.maybeResolveSubalias(e)}createParseContext(e){let t=e.id??eb(e.prefix);return $y[t]=Object.assign(e,{[uv]:`context`,$:this,id:t,phase:`unresolved`})}traversal(e){return new zv(e,this.resolvedConfig)}import(...e){return new Hx(hg(this.export(...e),(e,t)=>[`#${e}`,t]))}precompilation;_exportedResolutions;_exports;export(...e){if(!this._exports){this._exports={};for(let e of this.exportedNames){let t=this.aliases[e];this._exports[e]=H(t,`module`)?Ux(t,this):rS(this.maybeResolve(e))}for(let e of this.lazyResolutions)e.resolution;if(this._exportedResolutions=lS(this,this._exports),this._json=aS(this._exportedResolutions),Object.assign(this.resolutions,this._exportedResolutions),this.references=Object.values(this.referencesById),!this.resolvedConfig.jitless){let e=Qx(this.references);this.precompilation=e.write(Yx,4),Zx(this.references,e,this)}this.resolved=!0}return new Hx(hg(e.length?e:this.exportedNames,(e,t)=>[t,this._exports[t]]))}resolve(e){return this.export()[e]}node=(e,t,n={})=>{let r=this.preparseNode(e,t,n);if(dv(r))return this.bindReference(r);let i=r.id!==void 0,a=this.createParseContext(r),o=tb(a),s=this.bindReference(o);return i?$y[a.id]=s:tS(a.id,s),s};parse=(e,t={})=>this.finalize(this.parseDefinition(e,t));parseDefinition(e,t={}){if(H(e,`root`))return this.bindReference(e);let n=this.preparseOwnDefinitionFormat(e,t);if(H(n,`root`))return this.bindReference(n);let r=n.id!==void 0,i=this.createParseContext(n),a=this.bindReference(this.parseOwnDefinitionFormat(e,i));return a.isCyclic&&(a=rb(a,i.id)),r?$y[i.id]=a:tS(i.id,a),a}finalize(e){return e.isCyclic&&nS(e)||(rS(e),!e.precompilation&&!this.resolvedConfig.jitless&&Xx(e.references)),e}},eS=class extends $x{parseOwnDefinitionFormat(e,t){return tb(t)}preparseOwnDefinitionFormat(e,t){return this.preparseNode(Jy(e),e,t)}preparseOwnAliasEntry(e,t){return[e,t]}normalizeRootScopeValue(e){return e}},tS=(e,t)=>{t.id===e?$y[e]=t:delete $y[e]},nS=e=>e.references.some(e=>e.hasKind(`alias`)&&e.reference[0]!==`$`&&H($y[e.reference],`context`)),rS=e=>{let t=e.references.filter(e=>e.hasKind(`alias`));for(let n of t){iS(n.referencesById,n.resolution.referencesById);for(let t of e.references)n.id in t.referencesById&&iS(t.referencesById,n.referencesById)}return e},iS=(e,t)=>{for(let n in t)e[n]??=t[n]},aS=e=>hg(e,(e,t)=>[e,H(t,`root`)||H(t,`generic`)?t.json:H(t,`module`)?aS(t):dg(`Unexpected resolution ${B(t)}`)]),oS=(e,t)=>{let n=t.indexOf(`.`);if(n===-1)return;let r=t.slice(0,n),i=e[r];if(i===void 0)return;if(!H(i,`module`))return z(dS(r));let a=t.slice(n+1),o=i[a];if(o===void 0)return oS(i,a);if(H(o,`root`)||H(o,`generic`))return o;if(H(o,`module`))return o.root??z(fS(t));dg(`Unexpected resolution for alias '${t}': ${B(o)}`)},sS=(e,t)=>new eS(e,t),cS=new eS({}),lS=(e,t)=>{let n={};for(let r in t){let i=t[r];if(H(i,`module`)){let t=hg(lS(e,i),(e,t)=>[`${r}.${e}`,t]);Object.assign(n,t)}else H(i,`root`)||H(i,`generic`)?n[r]=i:dg(`Unexpected scope resolution ${B(i)}`)}return n},uS=e=>`'${e}' is unresolvable`,dS=e=>`'${e}' must reference a module to be accessed using dot syntax`,fS=e=>`Reference to submodule '${e}' must specify an alias`;cS.export();var pS=cS.schema,mS=cS.node;cS.defineSchema;var hS=cS.generic,gS=`^(?:0|[1-9]\\d*)$`;nv(new RegExp(gS));var _S=sS({bigint:`bigint`,boolean:[{unit:!1},{unit:!0}],false:{unit:!1},never:[],null:{unit:null},number:`number`,object:`object`,string:`string`,symbol:`symbol`,true:{unit:!0},unknown:{},undefined:{unit:void 0},Array,Date},{prereducedAliases:!0}).export();V.intrinsic={..._S};var vS=sS({integer:{domain:`number`,divisor:1},lengthBoundable:[`string`,Array],key:[`string`,`symbol`],nonNegativeIntegerString:{domain:`string`,pattern:gS}},{prereducedAliases:!0}).export();Object.assign(V.intrinsic,vS);var yS=sS({jsonPrimitive:[`string`,`number`,{unit:!0},{unit:!1},{unit:null}],jsonObject:{domain:`object`,index:{signature:`string`,value:`$jsonData`}},jsonData:[`$jsonPrimitive`,`$jsonObject`]},{prereducedAliases:!0}).export(),W={..._S,...vS,...yS,emptyStructure:mS(`structure`,{},{prereduced:!0})};V.intrinsic={...W};var bS=((e,t)=>new RegExp(e,t));Object.assign(bS,{as:bS});var xS=e=>typeof e==`string`&&e[0]===`d`&&(e[1]===`'`||e[1]===`"`)&&e[e.length-1]===e[1],SS=e=>e.toString()!==`Invalid Date`,CS=e=>e.slice(2,-1),wS=e=>`'${e}' could not be parsed by the Date constructor`,TS=(e,t)=>ES(e,t),ES=(e,t)=>{let n=new Date(e);if(SS(n))return n;let r=T_(e);if(r!==void 0){let e=new Date(r);if(SS(e))return e}return t?z(t===!0?wS(e):t):void 0},DS=pS({proto:`Array`,sequence:`string`,required:{key:`groups`,value:[`object`,{unit:void 0}]}}),OS=(e,t)=>{let n=e.scanner.shiftUntilEscapable(PS[NS[t]],t in MS?`\\`:``);if(e.scanner.lookahead===``)return e.error(IS(n,t));if(e.scanner.shift(),t in MS){let r;try{r=new RegExp(n)}catch(e){z(String(e))}e.root=e.ctx.$.node(`intersection`,{domain:`string`,pattern:n},{prereduced:!0}),t===`x/`&&(e.root=e.ctx.$.node(`morph`,{in:e.root,morphs:e=>r.exec(e),declaredOut:DS}))}else if(vg(t,kS))e.root=e.ctx.$.node(`unit`,{unit:n});else{let t=TS(n,wS(n));e.root=e.ctx.$.node(`unit`,{meta:n,unit:t})}},kS={"'":1,'"':1},AS={"/":1,"'":1,'"':1},jS={"d'":`'`,'d"':`"`,"'":`'`,'"':`"`},MS={"/":`/`,"x/":`/`},NS={...jS,...MS},PS={"'":e=>e.lookahead===`'`,'"':e=>e.lookahead===`"`,"/":e=>e.lookahead===`/`},FS={'"':`double-quote`,"'":`single-quote`,"/":`forward slash`},IS=(e,t)=>`${t}${e} requires a closing ${FS[NS[t]]}`,LS=e=>`Private type references should not include '#'. Use '${e}' instead.`,RS=`Optional definitions like 'string?' are only valid as properties in an object or tuple`,zS=`Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple`,BS={"<":1,">":1,"=":1,"|":1,"&":1,")":1,"[":1,"%":1,",":1,":":1,"?":1,"#":1,...a_},VS=(e,t)=>e===`>`?t[0]===`=`?t[1]===`=`:t.trimStart()===``||vg(t.trimStart()[0],BS):e===`=`?t[0]!==`=`:e===`,`||e===`?`,HS=(e,t,n)=>US(e,t,n,[]),US=(e,t,n,r)=>{let i=n.parseUntilFinalizer();return r.push(i.root),i.finalizer===`>`?r.length===t.params.length?r:n.error(WS(e,t.names,r.map(e=>e.expression))):i.finalizer===`,`?US(e,t,n,r):i.error(Z_(`>`))},WS=(e,t,n)=>`${e}<${t.join(`, `)}> requires exactly ${t.length} args (got ${n.length}${n.length===0?``:`: ${n.join(`, `)}`})`,GS=e=>{let t=e.scanner.shiftUntilLookahead(BS);t===`keyof`?e.addPrefix(`keyof`):e.root=qS(e,t)},KS=(e,t,n)=>(n.scanner.shiftUntilNonWhitespace(),n.scanner.shift()===`<`?t(...HS(e,t,n)):n.error(WS(e,t.names,[]))),qS=(e,t)=>JS(e,t)??YS(e,t)??e.error(t===``?e.scanner.lookahead===`#`?LS(e.shiftedBy(1).scanner.shiftUntilLookahead(BS)):XS(e):uS(t)),JS=(e,t)=>{if(e.ctx.args?.[t]){let n=e.ctx.args[t];return typeof n==`string`?e.ctx.$.node(`alias`,{reference:n},{prereduced:!0}):n}let n=e.ctx.$.maybeResolve(t);if(H(n,`root`))return n;if(n!==void 0)return H(n,`generic`)?KS(t,n,e):z(`Unexpected resolution ${B(n)}`)},YS=(e,t)=>{let n=E_(t);if(n!==void 0)return e.ctx.$.node(`unit`,{unit:n});let r=k_(t);if(r!==void 0)return e.ctx.$.node(`unit`,{unit:r})},XS=e=>{let t=e.previousOperator();return t?ZS(t,e.scanner.unscanned):QS(e.scanner.unscanned)},ZS=(e,t=``)=>`Token '${e}' requires a right operand${t?` before '${t}'`:``}`,QS=e=>`Expected an expression${e?` before '${e}'`:``}`,$S=e=>e.scanner.lookahead===``?e.error(XS(e)):e.scanner.lookahead===`(`?e.shiftedBy(1).reduceGroupOpen():e.scanner.lookaheadIsIn(AS)?OS(e,e.scanner.shift()):e.scanner.lookaheadIsIn(a_)?$S(e.shiftedBy(1)):e.scanner.lookahead===`d`?e.scanner.nextLookahead in kS?OS(e,`${e.scanner.shift()}${e.scanner.shift()}`):GS(e):e.scanner.lookahead===`x`&&e.scanner.nextLookahead===`/`?e.shiftedBy(2)&&OS(e,`x/`):GS(e),eC={">":!0,">=":!0},tC={"<":!0,"<=":!0},nC={"<":`>`,">":`<`,"<=":`>=`,">=":`<=`,"==":`==`},rC=(e,t)=>`Left bounds are only valid when paired with right bounds (try ...${t}${e})`,iC=e=>`Left-bounded expressions must specify their limits using < or <= (was ${e})`,aC=(e,t,n,r)=>`An expression may have at most one left bound (parsed ${e}${nC[t]}, ${n}${nC[r]})`,oC=(e,t)=>{let n=cC(e,t);if(e.root.hasKind(`unit`)){if(typeof e.root.unit==`number`){e.reduceLeftBound(e.root.unit,n),e.unsetRoot();return}if(e.root.unit instanceof Date){let t=`d'${e.root.description??e.root.unit.toISOString()}'`;e.unsetRoot(),e.reduceLeftBound(t,n);return}}return dC(e,n)},sC={"<":1,">":1,"=":1},cC=(e,t)=>e.scanner.lookaheadIs(`=`)?`${t}${e.scanner.shift()}`:t,lC=(e,t,n,r)=>n.extends(V.intrinsic.number)?typeof t==`number`?e===`==`?[`min`,`max`]:e[0]===`>`?[`min`]:[`max`]:z(fC(e,t,r)):n.extends(V.intrinsic.lengthBoundable)?typeof t==`number`?e===`==`?[`exactLength`]:e[0]===`>`?[`minLength`]:[`maxLength`]:z(fC(e,t,r)):n.extends(V.intrinsic.Date)?e===`==`?[`after`,`before`]:e[0]===`>`?[`after`]:[`before`]:z(Ly(n.expression)),uC=e=>({rule:xS(e.limit)?CS(e.limit):e.limit,exclusive:e.comparator.length===1}),dC=(e,t)=>{let n=e.unsetRoot(),r=e.scanner.location;e.parseOperand();let i=e.unsetRoot(),a=e.scanner.sliceChars(r,e.scanner.location);if(e.root=n,!i.hasKind(`unit`)||typeof i.unit!=`number`&&!(i.unit instanceof Date))return e.error(fC(t,a,`right`));let o=i.unit,s=t.length===1,c=lC(t,typeof o==`number`?o:a,n,`right`);for(let n of c)e.constrainRoot(n,t===`==`?{rule:o}:{rule:o,exclusive:s});if(!e.branches.leftBound)return;if(!vg(t,tC))return e.error(iC(t));let l=lC(e.branches.leftBound.comparator,e.branches.leftBound.limit,n,`left`);e.constrainRoot(l[0],uC(e.branches.leftBound)),e.branches.leftBound=null},fC=(e,t,n)=>`Comparator ${n===`left`?nC[e]:e} must be ${n===`left`?`preceded`:`followed`} by a corresponding literal (was ${t})`,pC=e=>{e.scanner.shiftUntilNonWhitespace();let t=e.scanner.shiftUntilLookahead(BS);e.root=e.root.brand(t)},mC=e=>{e.scanner.shiftUntilNonWhitespace();let t=e.scanner.shiftUntilLookahead(BS),n=D_(t,{errorOnFail:hC(t)});n===0&&e.error(hC(0)),e.root=e.root.constrain(`divisor`,n)},hC=e=>`% operator must be followed by a non-zero integer literal (was ${e})`,gC=e=>{let t=e.scanner.shift();return t===``?e.finalize(``):t===`[`?e.scanner.shift()===`]`?e.setRoot(e.root.rawArray()):e.error(vC):t===`|`?e.scanner.lookahead===`>`?e.shiftedBy(1).pushRootToBranch(`|>`):e.pushRootToBranch(t):t===`&`?e.pushRootToBranch(t):t===`)`?e.finalizeGroup():VS(t,e.scanner.unscanned)?e.finalize(t):vg(t,sC)?oC(e,t):t===`%`?mC(e):t===`#`?pC(e):t in a_?gC(e):e.error(_C(t))},_C=(e,t=``)=>`'${e}' is not allowed here${t&&` (should be ${t})`}`,vC=`Missing expected ']'`,yC={"[]":()=>[],"{}":()=>({})},bC=_g(yC),xC=e=>{let t=e.unsetRoot();e.scanner.shiftUntilNonWhitespace();let n=bC.find(t=>e.scanner.unscanned.startsWith(t));if(n!==void 0)return e.scanner.jumpForward(n.length),[t,`=`,yC[n]];e.parseOperand();let r=e.unsetRoot();return r.hasKind(`unit`)?[t,`=`,r.unit instanceof Date?()=>new Date(r.unit):r.unit]:e.error(SC(r.expression))},SC=e=>`Default value '${e}' must be a literal value`,CC=(e,t)=>{let n=t.$.maybeResolveRoot(e);if(n)return n;if(e.endsWith(`[]`)){let n=t.$.maybeResolveRoot(e.slice(0,-2));if(n)return n.rawArray()}let r=new DC(new Y_(e),t),i=wC(r);return r.finalizer===`>`&&z(_C(`>`)),i},wC=e=>{e.parseOperand();let t=TC(e).root;return t?(e.finalizer===`=`?t=xC(e):e.finalizer===`?`&&(t=[t,`?`]),e.scanner.shiftUntilNonWhitespace(),e.scanner.lookahead&&z(_C(e.scanner.lookahead)),t):dg(`Root was unexpectedly unset after parsing string '${e.scanner.scanned}'`)},TC=e=>{for(;e.finalizer===void 0;)EC(e);return e},EC=e=>e.hasRoot()?e.parseOperator():e.parseOperand(),DC=class e{root;branches={prefixes:[],leftBound:null,intersection:null,union:null,pipe:null};finalizer;groups=[];scanner;ctx;constructor(e,t){this.scanner=e,this.ctx=t}error(e){return z(e)}hasRoot(){return this.root!==void 0}setRoot(e){this.root=e}unsetRoot(){let e=this.root;return this.root=void 0,e}constrainRoot(...e){this.root=this.root.constrain(e[0],e[1])}finalize(e){if(this.groups.length)return this.error(Z_(`)`));this.finalizeBranches(),this.finalizer=e}reduceLeftBound(e,t){let n=nC[t];if(!vg(n,eC))return this.error(iC(t));if(this.branches.leftBound)return this.error(aC(this.branches.leftBound.limit,this.branches.leftBound.comparator,e,n));this.branches.leftBound={comparator:n,limit:e}}finalizeBranches(){this.assertRangeUnset(),this.branches.pipe?(this.pushRootToBranch(`|>`),this.root=this.branches.pipe):this.branches.union?(this.pushRootToBranch(`|`),this.root=this.branches.union):this.branches.intersection?(this.pushRootToBranch(`&`),this.root=this.branches.intersection):this.applyPrefixes()}finalizeGroup(){this.finalizeBranches();let e=this.groups.pop();if(!e)return this.error(X_(`)`,this.scanner.unscanned));this.branches=e}addPrefix(e){this.branches.prefixes.push(e)}applyPrefixes(){for(;this.branches.prefixes.length;){let e=this.branches.prefixes.pop();this.root=e===`keyof`?this.root.keyof():dg(`Unexpected prefix '${e}'`)}}pushRootToBranch(e){this.assertRangeUnset(),this.applyPrefixes();let t=this.root;this.root=void 0,this.branches.intersection=this.branches.intersection?.rawAnd(t)??t,e!==`&`&&(this.branches.union=this.branches.union?.rawOr(this.branches.intersection)??this.branches.intersection,this.branches.intersection=null,e!==`|`&&(this.branches.pipe=this.branches.pipe?.rawPipeOnce(this.branches.union)??this.branches.union,this.branches.union=null))}parseUntilFinalizer(){return TC(new e(this.scanner,this.ctx))}parseOperator(){return gC(this)}parseOperand(){return $S(this)}assertRangeUnset(){if(this.branches.leftBound)return this.error(rC(this.branches.leftBound.limit,this.branches.leftBound.comparator))}reduceGroupOpen(){this.groups.push(this.branches),this.branches={prefixes:[],leftBound:null,union:null,intersection:null,pipe:null}}previousOperator(){return this.branches.leftBound?.comparator??this.branches.prefixes[this.branches.prefixes.length-1]??(this.branches.intersection?`&`:this.branches.union?`|`:this.branches.pipe?`|>`:void 0)}shiftedBy(e){return this.scanner.jumpForward(e),this}},OC=`An empty string is not a valid generic parameter name`,kC=(e,t,n)=>{e.shiftUntilNonWhitespace();let r=e.shiftUntilLookahead(BS);return r===``?e.lookahead===``&&t.length?t:z(OC):(e.shiftUntilNonWhitespace(),jC(e,r,t,n))},AC=`extends `,jC=(e,t,n,r)=>{if(e.shiftUntilNonWhitespace(),e.unscanned.startsWith(AC))e.jumpForward(8);else return e.lookahead===`,`&&e.shift(),n.push(t),kC(e,n,r);let i=TC(new DC(e,r));return n.push([t,i.root]),kC(e,n,r)},MC=class extends Xg{constructor(e){let t=(...t)=>{let n=t.indexOf(`:`),r=n===-1?t.length-1:n-1,i=t.slice(0,r+1),a=e.parse(i).assertHasKind(`intersection`),o=e.intrinsic.unknown;if(n!==-1){if(n!==t.length-2)return z(PC);o=e.parse(t[n+1])}return e=>new NC(e,a,o)};super(t,{attach:{$:e,raw:t}})}},NC=class extends Xg{raw;params;returns;expression;constructor(e,t,n){let r=`typed ${e.name}`,i={[r]:(...r)=>{let i=e(...t.assert(r));return n.assert(i)}}[r];super(i),this.raw=e,this.params=t,this.returns=n;let a=t.expression;a[0]===`[`&&a[a.length-1]===`]`?a=a.slice(1,-1):a.endsWith(`[]`)&&(a=`...${a}`),this.expression=`(${a}) => ${n?.expression??`unknown`}`}},PC=`":" must be followed by exactly one return type e.g:
39
+ fn("string", ":", "number")(s => s.length)`,FC=class extends Xg{$;constructor(e){super((...t)=>new IC(e)(...t),{bind:e}),this.$=e}in(e){return new IC(this.$,e===void 0?void 0:this.$.parse(e))}at(e,t){return new IC(this.$).at(e,t)}case(e,t){return new IC(this.$).case(e,t)}},IC=class extends Xg{$;in;key;branches=[];constructor(e,t){super(e=>this.caseEntries(Object.entries(e).map(([e,t])=>e==="default"?[e,t]:[this.$.parse(e),t]))),this.$=e,this.in=t}at(e,t){return this.key&&z(zC),this.branches.length&&z(RC),this.key=e,t?this.match(t):this}case(e,t){return this.caseEntry(this.$.parse(e),t)}caseEntry(e,t){let n=(this.key?this.$.parse({[this.key]:e}):e).pipe(t);return this.branches.push(n),this}match(e){return this(e)}strings(e){return this.caseEntries(Object.entries(e).map(([e,t])=>e==="default"?[e,t]:[this.$.node(`unit`,{unit:e}),t]))}caseEntries(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(n==="default")return t!==e.length-1&&z(`default may only be specified as the last key of a switch definition`),this.default(r);if(typeof r!=`function`)return z(`Value for case "${n}" must be a function (was ${sg(r)})`);this.caseEntry(n,r)}return this}default(e){typeof e==`function`&&this.case(W.unknown,e);let t={branches:this.branches,ordered:!0};(e===`never`||e===`assert`)&&(t.meta={onFail:LC});let n=this.$.node(`union`,t);if(!this.in)return this.$.finalize(n);let r=this.in.pipe(n);return(e===`never`||e===`assert`)&&(r=r.configureReferences({onFail:LC},`self`)),this.$.finalize(r)}},LC=e=>e.throw(),RC=`A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`,zC=`At most one key matcher may be specified per expression`,BC=(e,t)=>{if(Rg(e)){if(e[1]===`=`)return[t.$.parseOwnDefinitionFormat(e[0],t),`=`,e[2]];if(e[1]===`?`)return[t.$.parseOwnDefinitionFormat(e[0],t),`?`]}return Cw(e,t)},VC=`Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`,HC=`Only required keys may specify default values, e.g. { value: 'number = 0' }`,UC=(e,t)=>{let n,r={},i=Eg(e);for(let[e,a]of i){let i=qC(e);if(i.kind===`spread`){if(!Tg(r))return z(KC);let e=t.$.parseOwnDefinitionFormat(a,t);if(e.equals(W.object))continue;if(!e.hasKind(`intersection`)||!e.basis?.equals(W.object))return z(JC(e.expression));n=e.structure;continue}if(i.kind===`undeclared`){a!==`reject`&&a!==`delete`&&a!==`ignore`&&z(GC(a)),r.undeclared=a;continue}let o=BC(a,t),s=i;if(i.kind===`required`){Rg(o)?WC(r,`optional`,o[1]===`=`?{key:i.normalized,value:o[0],default:o[2]}:{key:i.normalized,value:o[0]},t):WC(r,`required`,{key:i.normalized,value:o},t);continue}if(Rg(o)&&(o[1]===`?`&&z(VC),o[1]===`=`&&z(HC)),i.kind===`optional`){WC(r,`optional`,{key:i.normalized,value:o},t);continue}let c=Ix(t.$.parseOwnDefinitionFormat(s.normalized,t),o,t.$);c.index&&(r.index=eg(r.index,c.index)),c.required&&(r.required=eg(r.required,c.required))}let a=t.$.node(`structure`,r);return t.$.parseSchema({domain:`object`,structure:n?.merge(a)??a})},WC=(e,t,n,r)=>{e[t]=eg(e[t],r.$.node(t,n))},GC=e=>`Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${B(e)})`,KC=`Spread operator may only be used as the first key in an object`,qC=e=>typeof e==`symbol`?{kind:`required`,normalized:e}:e[e.length-1]===`?`?e[e.length-2]===`\\`?{kind:`required`,normalized:`${e.slice(0,-2)}?`}:{kind:`optional`,normalized:e.slice(0,-1)}:e[0]===`[`&&e[e.length-1]===`]`?{kind:`index`,normalized:e.slice(1,-1)}:e[0]===`\\`&&e[1]===`[`&&e[e.length-1]===`]`?{kind:`required`,normalized:e.slice(1)}:e===`...`?{kind:`spread`}:e===`+`?{kind:`undeclared`}:{kind:`required`,normalized:e===`\\...`?`...`:e===`\\+`?`+`:e},JC=e=>`Spread operand must resolve to an object literal type (was ${e})`,YC=(e,t)=>lw(e)?cw[e[0]](e,t):sw(e)?ow[e[1]](e,t):null,XC=(e,t)=>t.$.parseOwnDefinitionFormat(e[1],t).keyof(),ZC=(e,t)=>{if(e[2]===void 0)return z(ZS(e[1],``));let n=t.$.parseOwnDefinitionFormat(e[0],t),r=t.$.parseOwnDefinitionFormat(e[2],t);if(e[1]===`|`)return t.$.node(`union`,{branches:[n,r]});let i=e[1]===`&`?ty(n,r,t.$):ny(n,r,t.$);return i instanceof U?i.throw():i},QC=(e,t)=>t.$.parseOwnDefinitionFormat(e[0],t).rawArray(),$C=(e,t)=>typeof e[2]==`function`?t.$.parseOwnDefinitionFormat(e[0],t).pipe(e[2]):z(ew(`=>`,e[2])),ew=(e,t)=>`${e===`:`?`Narrow`:`Morph`} expression requires a function following '${e}' (was ${typeof t})`,tw=(e,t)=>typeof e[2]==`function`?t.$.parseOwnDefinitionFormat(e[0],t).constrain(`predicate`,e[2]):z(ew(`:`,e[2])),nw=(e,t)=>t.$.parseOwnDefinitionFormat(e[0],t).configure(e[2],e[3]),rw=e=>e,iw=rw({"[]":QC,"?":()=>z(RS)}),aw=rw({"|":ZC,"&":ZC,":":tw,"=>":$C,"|>":ZC,"@":nw,"=":()=>z(zS)}),ow={...iw,...aw},sw=e=>ow[e[1]]!==void 0,cw=(e=>e)({keyof:XC,instanceof:(e,t)=>{if(typeof e[1]!=`function`)return z(uw(Lg(e[1])));let n=e.slice(1).map(e=>typeof e==`function`?t.$.node(`proto`,{proto:e}):z(uw(Lg(e))));return n.length===1?n[0]:t.$.node(`union`,{branches:n})},"===":(e,t)=>t.$.units(e.slice(1))}),lw=e=>cw[e[0]]!==void 0,uw=e=>`Expected a constructor following 'instanceof' operator (was ${e})`,dw=(e,t)=>{let n=[{}],r=0;for(;r<e.length;){let i=!1;e[r]===`...`&&r<e.length-1&&(i=!0,r++);let a=BC(e[r],t),[o,s,c]=Rg(a)?a:[a];if(r++,i){if(!o.extends(V.intrinsic.Array))return z(_w(o.expression));n=n.flatMap(e=>o.distribute(t=>gw(lv(e),t)))}else n=n.map(e=>s===`?`?pw(e,o):s===`=`?mw(e,o,c):fw(e,o))}return t.$.parseSchema(n.map(e=>Tg(e)?{proto:Array,exactLength:0}:{proto:Array,sequence:e}))},fw=(e,t)=>e.defaultables||e.optionals?z(e.variadic?yx:yw):(e.variadic?e.postfix=eg(e.postfix,t):e.prefix=eg(e.prefix,t),e),pw=(e,t)=>e.variadic?z(bw):(e.optionals=eg(e.optionals,t),e),mw=(e,t,n)=>e.variadic?z(bw):e.optionals?z(xw):(e.defaultables=eg(e.defaultables,[[t,n]]),e),hw=(e,t)=>(e.postfix&&z(vw),e.variadic?e.variadic.equals(t)||z(vw):e.variadic=t.internal,e),gw=(e,t)=>{let n=t.select({method:`find`,kind:`sequence`});if(!n)return hw(e,V.intrinsic.unknown);if(n.prefix)for(let t of n.prefix)fw(e,t);if(n.optionals)for(let t of n.optionals)pw(e,t);if(n.variadic&&hw(e,n.variadic),n.postfix)for(let t of n.postfix)fw(e,t);return e},_w=e=>`Spread element must be an array (was ${e})`,vw=`A tuple may have at most one variadic element`,yw=`A required element may not follow an optional element`,bw=`An optional element may not follow a variadic element`,xw=`A defaultable element may not follow an optional element without a default`,Sw=new WeakMap,Cw=(e,t)=>{if(typeof e==`string`){if(t.args&&Object.keys(t.args).some(t=>e.includes(t)))return CC(e,t);let n=Sw.get(t.$);return n||(n={},Sw.set(t.$,n)),n[e]??=CC(e,t)}return og(e,`object`)?ww(e,t):z(Dw(sg(e)))},ww=(e,t)=>{let n=Ig(e);switch(n){case void 0:return H(e,`root`)?e:`~standard`in e?Tw(e,t):UC(e,t);case`Array`:return Ew(e,t);case`RegExp`:return t.$.node(`intersection`,{domain:`string`,pattern:e},{prereduced:!0});case`Function`:{let t=Jg(e)?e():e;return H(t,`root`)?t:z(Dw(`Function`))}default:return z(Dw(n??B(e)))}},Tw=(e,t)=>t.$.intrinsic.unknown.pipe((t,n)=>{let r=e[`~standard`].validate(t);if(!r.issues)return r.value;for(let{message:e,path:t}of r.issues)t&&t.length?n.error({problem:t_(e),relativePath:t.map(e=>typeof e==`object`?e.key:e)}):n.error({message:e})}),Ew=(e,t)=>YC(e,t)??dw(e,t),Dw=e=>`Type definitions must be strings or objects (was ${e})`,Ow=class extends Xg{constructor(e){let t=Object.assign({errors:Iv,hkt:Qg,$:e,raw:e.parse,module:e.constructor.module,scope:e.constructor.scope,declare:e.declare,define:e.define,match:e.match,generic:e.generic,schema:e.schema,keywords:e.ambient,unit:e.unit,enumerated:e.enumerated,instanceOf:e.instanceOf,valueOf:e.valueOf,or:e.or,and:e.and,merge:e.merge,pipe:e.pipe,fn:e.fn},e.ambientAttachments);super((...t)=>{if(t.length===1)return e.parse(t[0]);if(t.length===2&&typeof t[0]==`string`&&t[0][0]===`<`&&t[0][t[0].length-1]===`>`){let n=t[0].slice(1,-1);return new vy(e.parseGenericParams(n,{}),t[1],e,e,null)}return e.parse(t)},{attach:t})}},kw=V,Aw=class e extends $x{get ambientAttachments(){if(kw.typeAttachments)return this.cacheGetter(`ambientAttachments`,hg(kw.typeAttachments,(e,t)=>[e,this.bindReference(t)]))}preparseOwnAliasEntry(e,t){let n=e.indexOf(`<`);if(n===-1){if(H(t,`module`)||H(t,`generic`))return[e,t];let n=this.name===`ark`?e:e===`root`?this.name:`${this.name}.${e}`,r=this.resolvedConfig.keywords?.[n];return r&&(t=[t,`@`,r]),[e,t]}e[e.length-1]!==`>`&&z(`'>' must be the last character of a generic declaration in a scope`);let r=e.slice(0,n),i=e.slice(n+1,-1);return[r,()=>gy(this.parseGenericParams(i,{alias:r}),t,this)]}parseGenericParams(e,t){return kC(new Y_(e),[],this.createParseContext({...t,def:e,prefix:`generic`}))}normalizeRootScopeValue(e){return Jg(e)&&!H(e,`generic`)?e():e}preparseOwnDefinitionFormat(e,t){return{...t,def:e,prefix:t.alias??`type`}}parseOwnDefinitionFormat(e,t){!(t.alias&&t.alias in this.aliases)&&!t.args&&(t.args={this:t.id});let n=Cw(e,t);if(Rg(n)){if(n[1]===`=`)return z(zS);if(n[1]===`?`)return z(RS)}return n}unit=e=>this.units([e]);valueOf=e=>this.units(Ag(e));enumerated=(...e)=>this.units(e);instanceOf=e=>this.node(`proto`,{proto:e},{prereduced:!0});or=(...e)=>this.schema(e.map(e=>this.parse(e)));and=(...e)=>e.reduce((e,t)=>e.and(this.parse(t)),this.intrinsic.unknown);merge=(...e)=>e.reduce((e,t)=>e.merge(this.parse(t)),this.intrinsic.object);pipe=(...e)=>this.intrinsic.unknown.pipe(...e);fn=new MC(this);match=new FC(this);declare=()=>({type:this.type});define(e){return e}type=new Ow(this);static scope=((t,n={})=>new e(t,n));static module=((t,n={})=>e.scope(t,n).export())},jw=Object.assign(Aw.scope,{define:e=>e}),G=Aw,Mw=class extends Qg{description='merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`'},Nw=hS([`base`,W.object],[`props`,W.object])(e=>e.base.merge(e.props),Mw),Pw=G.module({Key:W.key,Merge:Nw}),Fw=class extends Qg{},Iw=hS(`element`)(e=>{let t=e.element.exclude(W.Array),n=t.array();return t.rawOr(n).pipe(Yh).distribute(e=>e.assertHasKind(`morph`).declareOut(n),pS)},Fw),Lw=G.module({root:W.Array,readonly:`root`,index:W.nonNegativeIntegerString,liftFrom:Iw},{name:`Array`}),Rw=pS([`string`,A_.FileConstructor]),zw=pS({meta:`an object representing parsed form data`,domain:`object`,index:{signature:`string`,value:Rw.rawOr(Rw.array())}}),Bw=G.module({root:[`instanceof`,FormData],value:Rw,parsed:zw,parse:pS({in:FormData,morphs:e=>{let t={};for(let[n,r]of e)if(n in t){let e=t[n];typeof e==`string`||e instanceof A_.FileConstructor?t[n]=[e,r]:e.push(r)}else t[n]=r;return t},declaredOut:zw})},{name:`FormData`}),Vw=G.module({Int8:[`instanceof`,Int8Array],Uint8:[`instanceof`,Uint8Array],Uint8Clamped:[`instanceof`,Uint8ClampedArray],Int16:[`instanceof`,Int16Array],Uint16:[`instanceof`,Uint16Array],Int32:[`instanceof`,Int32Array],Uint32:[`instanceof`,Uint32Array],Float32:[`instanceof`,Float32Array],Float64:[`instanceof`,Float64Array],BigInt64:[`instanceof`,BigInt64Array],BigUint64:[`instanceof`,BigUint64Array]},{name:`TypedArray`}),Hw={Boolean:1,Number:1,String:1},Uw=G.module({...hg({...jg,...Ng},(e,t)=>e in Hw?[]:[e,[`instanceof`,t]]),Array:Lw,TypedArray:Vw,FormData:Bw}),Ww=pS({domain:{domain:`number`,meta:`a number representing a Unix timestamp`},divisor:{rule:1,meta:`an integer representing a Unix timestamp`},min:{rule:-864e13,meta:`a Unix timestamp after -8640000000000000`},max:{rule:864e13,meta:`a Unix timestamp before 8640000000000000`},meta:`an integer representing a safe Unix timestamp`}),Gw=pS({domain:`number`,divisor:1}),Kw=G.module({root:W.number,integer:Gw,epoch:Ww,safe:pS({domain:{domain:`number`,numberAllowsNaN:!1},min:-(2**53-1),max:2**53-1}),NaN:[`===`,NaN],Infinity:[`===`,1/0],NegativeInfinity:[`===`,-1/0]},{name:`number`}),qw=(e,t,n)=>{let r={domain:`string`,pattern:{rule:e.source,flags:e.flags,meta:t}};return n&&(r.meta={format:n}),mS(`intersection`,r)},Jw=qw(g_,`a well-formed integer string`),Yw=G.module({root:Jw,parse:pS({in:Jw,morphs:(e,t)=>{let n=Number.parseInt(e);return Number.isSafeInteger(n)?n:t.error(`an integer in the range Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER`)},declaredOut:W.integer})},{name:`string.integer`}),Xw=qw(/^[\dA-Fa-f]+$/,`hex characters only`),Zw=qw(/^[1-9A-HJ-NP-Za-km-z]+$/,`base58-encoded`),Qw=G.module({root:qw(/^(?:[\d+/A-Za-z]{4})*(?:[\d+/A-Za-z]{2}==|[\d+/A-Za-z]{3}=)?$/,`base64-encoded`),url:qw(/^(?:[\w-]{4})*(?:[\w-]{2}(?:==|%3D%3D)?|[\w-]{3}(?:=|%3D)?)?$/,`base64url-encoded`)},{name:`string.base64`}),$w=qw(/^[A-Z].*$/,`capitalized`),eT=G.module({root:pS({in:`string`,morphs:e=>e.charAt(0).toUpperCase()+e.slice(1),declaredOut:$w}),preformatted:$w},{name:`string.capitalize`}),tT=pS({domain:`string`,pattern:{meta:`a credit card number`,rule:`^(?:4\\d{12}(?:\\d{3,6})?|5[1-5]\\d{14}|(222[1-9]|22[3-9]\\d|2[3-6]\\d{2}|27[01]\\d|2720)\\d{12}|6(?:011|5\\d\\d)\\d{12,15}|3[47]\\d{13}|3(?:0[0-5]|[68]\\d)\\d{11}|(?:2131|1800|35\\d{3})\\d{11}|6[27]\\d{14}|^(81\\d{14,17}))$`},predicate:{meta:`a credit card number`,predicate:e=>{let t=e.replace(/[ -]+/g,``),n=0,r,i,a=!1;for(let e=t.length-1;e>=0;e--)r=t.substring(e,e+1),i=Number.parseInt(r,10),a?(i*=2,n+=i>=10?i%10+1:i):n+=i,a=!a;return!!(n%10==0&&t)}}}),nT=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))(T((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([,.]\d+(?!:))?)?(\17[0-5]\d([,.]\d+)?)?([Zz]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,rT=pS({domain:`string`,predicate:{meta:`a parsable date`,predicate:e=>!Number.isNaN(new Date(e).valueOf())}}).assertHasKind(`intersection`),iT=Yw.root.internal.narrow((e,t)=>{let n=Number.parseInt(e),r=Kw.epoch(n);return r instanceof Iv?(t.errors.merge(r),!1):!0}).configure({description:`an integer string representing a safe Unix timestamp`},`self`).assertHasKind(`intersection`),aT=G.module({root:iT,parse:pS({in:iT,morphs:e=>new Date(Number.parseInt(e)),declaredOut:W.Date})},{name:`string.date.epoch`}),oT=qw(nT,`an ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) date`).internal.assertHasKind(`intersection`),sT=G.module({root:oT,parse:pS({in:oT,morphs:e=>new Date(e),declaredOut:W.Date})},{name:`string.date.iso`}),cT=G.module({root:rT,parse:pS({declaredIn:rT,in:`string`,morphs:(e,t)=>{let n=new Date(e);return Number.isNaN(n.valueOf())?t.error(`a parsable date`):n},declaredOut:W.Date}),iso:sT,epoch:aT},{name:`string.date`}),lT=qw(/^[\w%+.-]+@[\d.A-Za-z-]+\.[A-Za-z]{2,}$/,`an email address`,`email`),uT=`(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])`,dT=`(${uT}[.]){3}${uT}`,fT=RegExp(`^${dT}$`),pT=`(?:[0-9a-fA-F]{1,4})`,mT=RegExp(`^((?:${pT}:){7}(?:${pT}|:)|(?:${pT}:){6}(?:${dT}|:${pT}|:)|(?:${pT}:){5}(?::${dT}|(:${pT}){1,2}|:)|(?:${pT}:){4}(?:(:${pT}){0,1}:${dT}|(:${pT}){1,3}|:)|(?:${pT}:){3}(?:(:${pT}){0,2}:${dT}|(:${pT}){1,4}|:)|(?:${pT}:){2}(?:(:${pT}){0,3}:${dT}|(:${pT}){1,5}|:)|(?:${pT}:){1}(?:(:${pT}){0,4}:${dT}|(:${pT}){1,6}|:)|(?::((?::${pT}){0,5}:${dT}|(?::${pT}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?$`),hT=G.module({root:[`v4 | v6`,`@`,`an IP address`],v4:qw(fT,`an IPv4 address`,`ipv4`),v6:qw(mT,`an IPv6 address`,`ipv6`)},{name:`string.ip`}),gT=`a JSON string`,_T=e=>{if(!(e instanceof SyntaxError))throw e;return`must be ${gT} (${e})`},vT=pS({meta:gT,domain:`string`,predicate:{meta:gT,predicate:(e,t)=>{try{return JSON.parse(e),!0}catch(e){return t.reject({code:`predicate`,expected:gT,problem:_T(e)})}}}}),yT=G.module({root:vT,parse:pS({meta:`safe JSON string parser`,in:`string`,morphs:(e,t)=>{if(e.length===0)return t.error({code:`predicate`,expected:gT,actual:`empty`});try{return JSON.parse(e)}catch(e){return t.error({code:`predicate`,expected:gT,problem:_T(e)})}},declaredOut:W.jsonObject})},{name:`string.json`}),bT=qw(/^[a-z]*$/,`only lowercase letters`),xT=G.module({root:pS({in:`string`,morphs:e=>e.toLowerCase(),declaredOut:bT}),preformatted:bT},{name:`string.lower`}),ST=[`NFC`,`NFD`,`NFKC`,`NFKD`],CT=hg(ST,(e,t)=>[t,pS({domain:`string`,predicate:e=>e.normalize(t)===e,meta:`${t}-normalized unicode`})]),wT=hg(ST,(e,t)=>[t,pS({in:`string`,morphs:e=>e.normalize(t),declaredOut:CT[t]})]),TT=G.module({root:wT.NFC,preformatted:CT.NFC},{name:`string.normalize.NFC`}),ET=G.module({root:wT.NFD,preformatted:CT.NFD},{name:`string.normalize.NFD`}),DT=G.module({root:wT.NFKC,preformatted:CT.NFKC},{name:`string.normalize.NFKC`}),OT=G.module({root:wT.NFKD,preformatted:CT.NFKD},{name:`string.normalize.NFKD`}),kT=G.module({root:`NFC`,NFC:TT,NFD:ET,NFKC:DT,NFKD:OT},{name:`string.normalize`}),AT=qw(p_,`a well-formed numeric string`),jT=G.module({root:AT,parse:pS({in:AT,morphs:e=>Number.parseFloat(e),declaredOut:W.number})},{name:`string.numeric`}),MT=`a regex pattern`,NT=pS({domain:`string`,predicate:{meta:MT,predicate:(e,t)=>{try{return new RegExp(e),!0}catch(e){return t.reject({code:`predicate`,expected:MT,problem:String(e)})}}},meta:{format:`regex`}}),PT=qw(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/,`a semantic version (see https://semver.org/)`),FT=qw(/^\S.*\S$|^\S?$/,`trimmed`),IT=G.module({root:pS({in:`string`,morphs:e=>e.trim(),declaredOut:FT}),preformatted:FT},{name:`string.trim`}),LT=qw(/^[A-Z]*$/,`only uppercase letters`),RT=G.module({root:pS({in:`string`,morphs:e=>e.toUpperCase(),declaredOut:LT}),preformatted:LT},{name:`string.upper`}),zT=pS({domain:`string`,predicate:{meta:`a URL string`,predicate:e=>URL.canParse(e)},meta:{format:`uri`}}),BT=G.module({root:zT,parse:pS({declaredIn:zT,in:`string`,morphs:(e,t)=>{try{return new URL(e)}catch{return t.error(`a URL string`)}},declaredOut:pS(URL)})},{name:`string.url`}),VT=G.module({root:[`versioned | nil | max`,`@`,{description:`a UUID`,format:`uuid`}],"#nil":`'00000000-0000-0000-0000-000000000000'`,"#max":`'ffffffff-ffff-ffff-ffff-ffffffffffff'`,"#versioned":/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-[1-8][\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,v1:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-1[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv1`),v2:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-2[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv2`),v3:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-3[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv3`),v4:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-4[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv4`),v5:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-5[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv5`),v6:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-6[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv6`),v7:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-7[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv7`),v8:qw(/^[\dA-Fa-f]{8}-[\dA-Fa-f]{4}-8[\dA-Fa-f]{3}-[89ABab][\dA-Fa-f]{3}-[\dA-Fa-f]{12}$/,`a UUIDv8`)},{name:`string.uuid`}),HT=G.module({root:W.string,alpha:qw(/^[A-Za-z]*$/,`only letters`),alphanumeric:qw(/^[\dA-Za-z]*$/,`only letters and digits 0-9`),hex:Xw,base58:Zw,base64:Qw,capitalize:eT,creditCard:tT,date:cT,digits:qw(/^\d*$/,`only digits 0-9`),email:lT,integer:Yw,ip:hT,json:yT,lower:xT,normalize:kT,numeric:jT,regex:NT,semver:PT,trim:IT,upper:RT,url:BT,uuid:VT},{name:`string`}),UT=G.module({bigint:W.bigint,boolean:W.boolean,false:W.false,never:W.never,null:W.null,number:W.number,object:W.object,string:W.string,symbol:W.symbol,true:W.true,unknown:W.unknown,undefined:W.undefined}),WT=G.module({root:W.unknown,any:W.unknown},{name:`unknown`}),GT=G.module({root:W.jsonObject,stringify:mS(`morph`,{in:W.jsonObject,morphs:e=>JSON.stringify(e),declaredOut:W.string})},{name:`object.json`}),KT=G.module({root:W.object,json:GT},{name:`object`}),qT=class extends Qg{description='instantiate an object from an index signature and corresponding value type like `Record("string", "number")`'},JT=hS([`K`,W.key],`V`)(e=>({domain:`object`,index:{signature:e.K,value:e.V}}),qT),YT=class extends Qg{description='pick a set of properties from an object like `Pick(User, "name | age")`'},XT=hS([`T`,W.object],[`K`,W.key])(e=>e.T.pick(e.K),YT),ZT=class extends Qg{description='omit a set of properties from an object like `Omit(User, "age")`'},QT=hS([`T`,W.object],[`K`,W.key])(e=>e.T.omit(e.K),ZT),$T=class extends Qg{description="make all named properties of an object optional like `Partial(User)`"},eE=hS([`T`,W.object])(e=>e.T.partial(),$T),tE=class extends Qg{description="make all named properties of an object required like `Required(User)`"},nE=hS([`T`,W.object])(e=>e.T.required(),tE),rE=class extends Qg{description='exclude branches of a union like `Exclude("boolean", "true")`'},iE=hS(`T`,`U`)(e=>e.T.exclude(e.U),rE),aE=class extends Qg{description='extract branches of a union like `Extract("0 | false | 1", "number")`'},oE=hS(`T`,`U`)(e=>e.T.extract(e.U),aE),sE=G.module({Exclude:iE,Extract:oE,Omit:QT,Partial:eE,Pick:XT,Record:JT,Required:nE}),cE=jw({...UT,...sE,...Uw,...Pw,string:HT,number:Kw,object:KT,unknown:WT},{prereducedAliases:!0,name:`ark`}),lE=cE.export();Object.assign(kw.ambient,lE),kw.typeAttachments={string:lE.string.root,number:lE.number.root,bigint:lE.bigint,boolean:lE.boolean,symbol:lE.symbol,undefined:lE.undefined,null:lE.null,object:lE.object.root,unknown:lE.unknown.root,false:lE.false,true:lE.true,never:lE.never,arrayIndex:lE.Array.index,Key:lE.Key,Record:lE.Record,Array:lE.Array.root,Date:lE.Date};var K=Object.assign(cE.type,kw.typeAttachments);cE.match,cE.fn,cE.generic,cE.schema,cE.define,cE.declare;var uE=0,dE=[];function q(e){let t,n=()=>(t===void 0&&(t=e(),uE+=1),t);dE.push(n);let r=new Map;return new Proxy((()=>void 0),{apply(e,t,r){let i=n();return r.length===0?i:Reflect.apply(i,t,r)},get(e,t){if(t===`length`)return 0;let i=n(),a=Reflect.get(i,t,i);if(typeof a!=`function`||`~standard`in a)return a;let o=r.get(t);return o===void 0&&(o=a.bind(i),r.set(t,o)),o},has:(e,t)=>Reflect.has(n(),t),getPrototypeOf:()=>Reflect.getPrototypeOf(n())})}var fE=q(()=>K.enumerated(`read`,`lifecycle`,`config`,`proxy`,`admin`)),pE=q(()=>K({id:`1 <= string <= 64`,secret:`1 <= string <= 512`}).onUndeclaredKey(`reject`)),mE=q(()=>K(`1 <= string <= 512`)),hE=q(()=>K({currentSecret:mE,newSecret:mE}).onUndeclaredKey(`reject`)),gE=q(()=>K({id:`string`,label:`string`,scopes:fE.array(),"workspaces?":`string[]`,enabled:`boolean`,isDefault:`boolean`,short:`boolean`,createdAt:`number`,updatedAt:`number`,"lastUsedAt?":`number`}).onDeepUndeclaredKey(`ignore`)),_E=q(()=>K({scope:fE,workspaceLimited:`boolean`}));q(()=>K({accounts:gE.array(),"scopes?":_E.array()})),q(()=>K({account:gE}));var vE=q(()=>K({id:`1 <= string <= 64`,"label?":`1 <= string <= 120`,scopes:fE.array().atLeastLength(1),"workspaces?":`string[]`,"secret?":mE}).onUndeclaredKey(`reject`)),yE=q(()=>K({"label?":`1 <= string <= 120`,"scopes?":fE.array().atLeastLength(1),"workspaces?":K(`string[]`).or(K(`null`)),"enabled?":`boolean`}).onUndeclaredKey(`reject`));q(()=>K({account:gE,secret:`string`}));var bE=q(()=>K({name:`string`,sizeBytes:`number`,createdAt:`number`,encrypted:`boolean`})),xE=q(()=>K({id:`string`,label:`string`,"labelKey?":`string`,"labelParams?":`Record<string, string>`,kind:`"settings" | "secrets" | "tls" | "workspace"`,"workspaceId?":`string`,note:`string | null`,"noteKey?":`string`,"noteParams?":`Record<string, string>`,items:K({id:`string`,label:`string`,"labelKey?":`string`,"labelParams?":`Record<string, string>`,kind:`"settings" | "servers" | "secrets" | "jobs" | "data"`,"secret?":`string`,"path?":`string`,"origin?":`string`,included:`boolean`,note:`string | null`,"noteKey?":`string`,"noteParams?":`Record<string, string>`,"ignoreGenerated?":`boolean`}).array()})),SE=q(()=>wO.onDeepUndeclaredKey(`ignore`)),CE=q(()=>K({enabled:`boolean`,dir:`string`,keep:`number`,"schedule?":SE,"lastAutomaticAt?":`number | null`,"scheduleError?":K({message:`string`,at:`number`}),includePaths:K(`string[]`),"entries?":xE.array(),"files?":bE.array()})),wE=q(()=>K({dir:`string`,entries:xE.array(),files:bE.array()})),TE=q(()=>K({id:`string`,label:`string`,"labelKey?":`string`,"labelParams?":`Record<string, string>`,kind:`"settings" | "secrets" | "servers" | "jobs" | "tls" | "data"`,"workspaceId?":`string`,restorable:`boolean`,selected:`boolean`,note:`string | null`,"noteKey?":`string`,"noteParams?":`Record<string, string>`})),EE=q(()=>K({label:`string`,"labelKey?":`string`,"labelParams?":`Record<string, string>`,"reasonKey?":`string`,"reasonParams?":`Record<string, string>`}));q(()=>K({dryRun:`boolean`,encrypted:`boolean`,needsPassword:`boolean`,"archive?":K({"writtenBy?":`string`,"schema?":`number`}),items:TE.array(),"hooks?":K({serverId:`string`,workspaceId:`string`,action:`"dump" | "load"`,ok:`boolean`,"output?":`string`}).array(),applied:K(`string[]`),"appliedIds?":K(`string[]`),skipped:K(`string[]`),"skippedItems?":EE.array(),restartRequired:`boolean`,reloaded:`boolean`,"replacedUnderRunning?":K({workspaceId:`string`,serverId:`string`,path:`string`}).array(),"createdWorkspaces?":K(`string[]`),error:`string?`})),q(()=>K({password:mE.optional(),include:K(`string[] >= 1`).optional(),exclude:K(`string[] >= 1`).optional()}).onUndeclaredKey(`reject`)),q(()=>K({name:`string?`,password:mE.optional(),include:K(`string[]`).optional(),exclude:K(`string[] >= 1`).optional()}).onUndeclaredKey(`reject`));var DE=q(()=>K.enumerated(`A`,`AAAA`)),OE=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,provider:`string >= 1`,label:`string = ""`}).onUndeclaredKey(`reject`)),kE=q(()=>K({host:`/^[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])?)+$/`,account:`string >= 1`,types:DE.array().default(()=>[`A`]),zone:`string?`,ttl:`number.integer >= 1?`,proxied:`boolean = false`,enabled:`boolean = true`}).onUndeclaredKey(`reject`)),AE=q(()=>K({enabled:`boolean = true`,url:`string = ""`}).onUndeclaredKey(`reject`)),jE=q(()=>K({enabled:`boolean = false`,url:`string = ""`}).onUndeclaredKey(`reject`)),ME=q(()=>K({enabled:`boolean = false`,intervalMs:`number >= 60000 = 300000`,ipv4:AE.default(()=>({})),ipv6:jE.default(()=>({})),ttl:`number.integer >= 1 = 1`,accounts:OE.array().default(()=>[]),domains:kE.array().default(()=>[])}).onUndeclaredKey(`reject`)),NE=q(()=>K(`"pending" | "ok" | "unchanged" | "error" | "skipped"`)),PE=q(()=>K({host:`string`,account:`string`,provider:`string`,type:DE,ip:`string | null`,state:NE,message:`string | null`,updatedAt:`number | null`,"stopped?":`boolean`})),FE=q(()=>K({enabled:`boolean`,running:`boolean`,lastRunAt:`number | null`,lastResult:`string | null`,ipv4:`string | null`,ipv6:`string | null`,records:PE.array()})),IE=q(()=>K({key:`string`,label:`string`,hint:`string = ""`,optional:`boolean = false`})),LE=q(()=>K({id:`string`,label:`string`,docsUrl:`string`,families:DE.array(),fields:IE.array(),ttl:`boolean`,proxied:`boolean`,txt:`boolean`})),RE=q(()=>K({config:ME,status:FE,providers:LE.array(),credentials:K(`string[]`)}).onDeepUndeclaredKey(`ignore`));q(()=>K({provider:`string >= 1`,credentials:K(`Record<string, string>`)}).onUndeclaredKey(`reject`)),q(()=>K({enabled:`boolean?`,intervalMs:`number >= 60000?`,ipv4:K({enabled:`boolean?`,url:`string?`}).onUndeclaredKey(`reject`).optional(),ipv6:K({enabled:`boolean?`,url:`string?`}).onUndeclaredKey(`reject`).optional(),ttl:`number.integer >= 1?`,accounts:OE.array().optional(),domains:kE.array().optional()}).onUndeclaredKey(`reject`));var zE=q(()=>K.enumerated(`caddy`)),BE=q(()=>K.enumerated(`server`,`panel`,`external`)),VE=q(()=>K.enumerated(`auto`,`off`,`manual`)),HE=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,host:`/^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/`,enabled:`boolean = true`,target:BE.default(()=>`server`),workspace:`string = ""`,server:`string = ""`,url:`string = ""`,path:`string = ""`,tls:VE.default(()=>`auto`),dnsAccount:`string = ""`,"upstreamSkipVerify?":`boolean`}).onUndeclaredKey(`reject`)),UE=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,label:`string = ""`}).onUndeclaredKey(`reject`)),WE=q(()=>K.enumerated(`off`,`local`,`uploaded`,`issued`,`pending`,`failed`,`fallback`)),GE=q(()=>K({enabled:`boolean = false`,resolvers:K(`string[]`).default(()=>[])}).onUndeclaredKey(`reject`)),KE=q(()=>K({enabled:`boolean = false`,engine:zE.default(()=>`caddy`),httpPort:`1 <= number.integer <= 65535 = 80`,httpsPort:`1 <= number.integer <= 65535 = 443`,email:`string = ""`,staging:`boolean = false`,dns01:GE.default(()=>({})),certificates:UE.array().default(()=>[]),routes:HE.array().default(()=>[])}).onUndeclaredKey(`reject`)),qE=q(()=>K.enumerated(`downloaded`,`custom`)),JE=q(()=>K({id:zE,installed:`boolean`,version:`string | null`,source:qE.or(K(`null`)),path:`string | null`,bytes:`number | null`,error:`string | null`})),YE=q(()=>K({id:zE,label:`string`,docsUrl:`string`,releaseUrl:`string`,acme:`boolean`,internalCa:`boolean`,dns01:`boolean`,tcp:`boolean`})),XE=q(()=>K.enumerated(`ok`,`disabled`,`no-upstream`,`error`)),ZE=q(()=>K({route:HE,status:XE,upstream:`string | null`,message:`string | null`,"certificate?":K({state:WE,message:`string | null`,"retryInMinutes?":`number`})}).onDeepUndeclaredKey(`ignore`)),QE=q(()=>K.enumerated(`off`,`stopped`,`starting`,`running`,`error`,`unsupported`)),$E=q(()=>K({state:QE,pid:`number | null`,urls:K(`string[]`),certExpiryDays:`number | null`,since:`number | null`,lastError:`string | null`})),eD=q(()=>K({id:`string`,label:`string`,present:`boolean`,used:`boolean`,subject:`string | null`,issuer:`string | null`,validTo:`string | null`,daysRemaining:`number | null`,hosts:K(`string[]`),error:`string | null`})),tD=q(()=>K({workspace:`string`,account:`string`,provider:`string`,label:`string`,writesTxt:`boolean`,hasCredentials:`boolean`,"zones?":`string[]`})),nD=q(()=>K({config:KE,engine:JE,engines:YE.array(),status:$E,routes:ZE.array(),certificates:eD.array(),"dnsAccounts?":tD.array(),"applyError?":`string`}).onDeepUndeclaredKey(`ignore`)),rD=q(()=>K({id:`string`,host:`string`,enabled:`boolean?`,target:BE.optional(),workspace:`string?`,server:`string?`,url:`string?`,path:`string?`,tls:VE.optional(),dnsAccount:`string?`,upstreamSkipVerify:`boolean?`}).onUndeclaredKey(`reject`)),iD=q(()=>K({enabled:`boolean?`,engine:zE.optional(),httpPort:`1 <= number.integer <= 65535?`,httpsPort:`1 <= number.integer <= 65535?`,email:`string?`,staging:`boolean?`,dns01:K({enabled:`boolean | null?`,resolvers:`string[] | null?`}).onUndeclaredKey(`reject`).optional(),certificates:UE.array().optional(),routes:rD.array().optional()}).onUndeclaredKey(`reject`)),aD=q(()=>K({label:`string = ""`,certificate:`string >= 1`,privateKey:`string >= 1`}).onUndeclaredKey(`reject`));q(()=>K({version:`string = ""`}).onUndeclaredKey(`reject`));var oD={diskUsedPercent:90,memoryUsedPercent:90,swapUsedPercent:50,tempCelsius:85},sD={sampled:!1,unmeasured:[],staleSince:null,cpuUsedPercent:null,memoryUsedPercent:null,swapUsedPercent:null,load1m:null,load5m:null,load15m:null,loadPerCpu:null,tempCelsius:null,disks:[],loadBand:null,memoryBand:null,swapBand:null,tempBand:null};function cD(e){return typeof e==`number`&&Number.isFinite(e)?e:null}var lD={warnAt:80,dangerAt:95};function uD(e){return e===null||!Number.isFinite(e)?null:e>=lD.dangerAt?`danger`:e>=lD.warnAt?`warn`:`ok`}function dD(e){return e===void 0||!Number.isFinite(e)||e<=0?oD.tempCelsius:e}function fD(e,t){let n=cD(e);return n===null?null:n/dD(t)*100}function pD(e,t,n){if(e===null||!Number.isFinite(e))return null;let r=t===void 0||!Number.isFinite(t)?n:t;return r<=0?`ok`:e>=r?`danger`:e>=r*.7?`warn`:`ok`}function mD(e){if(e==null)return sD;if(e.sampledAt===null||e.enabled===!1)return{...sD,staleSince:e.sampledAt,disks:[]};let t=new Set(e.unmeasured??[]),n=(e,n)=>t.has(e)?null:cD(n),r=n(`load`,e.loadAvg[0]),i=cD(e.cpus),a=r===null?null:r/Math.max(1,i??1),o=n(`memory`,e.memoryUsedPercent),s=n(`swap`,e.swapUsedPercent),c=cD(e.tempCelsius);return{sampled:!0,unmeasured:[...t].filter(e=>[`load`,`memory`,`swap`].includes(e)),staleSince:null,cpuUsedPercent:cD(e.cpuUsedPercent),memoryUsedPercent:o,swapUsedPercent:s,load1m:r,load5m:n(`load`,e.loadAvg[1]),load15m:n(`load`,e.loadAvg[2]),loadPerCpu:a,loadBand:pD(a,e.loadAlertPerCpu,2),memoryBand:pD(o,e.memoryUsedPercentAlert,oD.memoryUsedPercent),swapBand:pD(s,e.swapUsedPercentAlert,oD.swapUsedPercent),tempBand:pD(c,e.tempCelsiusAlert,oD.tempCelsius),tempCelsius:c,disks:e.disks.map(t=>({...t,band:pD(cD(t.usedPercent),e.diskUsedPercentAlert,oD.diskUsedPercent)}))}}q(()=>K(`"0" | "1" | "true" | "false"`).pipe(e=>e===`1`||e===`true`));function hD(e,t){return q(()=>K(`string.integer.parse`).pipe(K(`${e} <= number <= ${t}`)))}var gD=q(()=>K({type:`"hello" | "state"`,ts:`number`,state:yk}).onDeepUndeclaredKey(`ignore`)),_D=q(()=>K({type:`"server"`,ts:`number`,"workspaceId?":`string`,serverId:`string`,server:pk}).onDeepUndeclaredKey(`ignore`)),vD=q(()=>K({type:`"log"`,ts:`number`,"workspaceId?":`string`,serverId:`string`,lines:ok.array()}).onDeepUndeclaredKey(`ignore`)),yD=q(()=>K({type:`"ping"`,ts:`number`}).onDeepUndeclaredKey(`ignore`)),bD=q(()=>gD.or(_D).or(vD).or(yD));q(()=>K({lines:ok.array()})),q(()=>K({jobId:`string`,enabled:`boolean`,sizeBytes:`number`,files:`string[]`,lines:ok.array()})),q(()=>K({"tail?":hD(50,5e3),search:`string?`,stream:`"stdout" | "stderr" | "system"?`,"since?":hD(0,9999999999999),"before?":hD(0,9999999999999)}));var xD=q(()=>K(/^\d{1,13}(?::\d{1,9})?$/).pipe(e=>{let[t,n]=e.split(`:`);return{ts:Number(t),n:n===void 0?null:Number(n)}}));q(()=>K({"tail?":hD(50,5e3),search:`string?`,stream:`"stdout" | "stderr" | "system"?`,"after?":xD,"since?":xD,"before?":xD}));var SD=q(()=>K({name:`string`,sizeBytes:`number`})),CD=q(()=>K({serverId:`string`,label:`string`,status:nk,enabled:`boolean`,sizeBytes:`number`,files:SD.array()})),wD=q(()=>K({servers:CD.array()})),TD=q(()=>K({serverId:`string`,enabled:`boolean`,sizeBytes:`number`,files:K(`string[]`),searched:`number | null`,lines:ok.array()})),ED=q(()=>K(`"local" | "lan" | /^\\d{1,3}(?:\\.\\d{1,3}){3}$/`)),DD=q(()=>K(`/^[a-z0-9][a-z0-9_-]*$/`)),OD=q(()=>K(/^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9][a-z0-9_-]{0,39}$/).describe(`a lowercase id of at most 40 letters, digits, - or _, starting with a letter or digit, and not a Windows device name (con, prn, aux, nul, com1-9, lpt1-9)`));q(()=>K({id:DD,label:`1 <= string <= 60`}).onUndeclaredKey(`reject`));var kD=q(()=>K({"id?":OD,"label?":`1 <= string <= 60`}).onUndeclaredKey(`reject`)),AD=q(()=>K({label:`1 <= string <= 60`}).onUndeclaredKey(`reject`));function jD(e){let t=ED(e);return t instanceof K.errors?null:t}var MD=q(()=>K(`1 <= number.integer <= 65535 | null`)),ND=q(()=>K.enumerated(`block`,`warn`,`follow`,`reclaim`,`kill`)),PD=q(()=>K({enabled:`boolean = true`,maxRetries:`number.integer >= 0 = 3`,baseDelayMs:`number >= 0 = 1000`,factor:`number >= 1 = 2`,maxDelayMs:`number >= 0 = 30000`,resetAfterMs:`number >= 0 = 60000`}).onUndeclaredKey(`reject`)),FD=q(()=>K({scheme:`"http" | "https" = "http"`,allowInvalidCert:`boolean = false`,path:`string = "/"`,method:`"GET" | "HEAD" = "GET"`,expectStatus:`100 <= number.integer <= 599 | null?`,expectStatusBelow:`101 <= number.integer <= 600 = 400`,expectBody:`string = ""`}).onUndeclaredKey(`reject`)),ID=q(()=>K({maxRssBytes:`number.integer >= 0 = 0`}).onUndeclaredKey(`reject`)),LD=q(()=>K({enabled:`boolean = true`,mode:`"port" | "http" = "port"`,http:FD.default(()=>({})),intervalMs:`number >= 500 = 5000`,timeoutMs:`number >= 100 = 1500`,unhealthyThreshold:`number.integer >= 1 = 3`,forceRestartAfterMs:`number >= 0 = 0`,startTimeoutMs:`number >= 0 = 20000`}).onUndeclaredKey(`reject`)),RD=q(()=>K({signal:`"SIGTERM" | "SIGINT" | "SIGKILL" = "SIGTERM"`,killGroup:`boolean = true`,graceMs:`number >= 0 = 5000`,killPortHolders:`boolean = false`}).onUndeclaredKey(`reject`)),zD=q(()=>K({command:`string >= 1`,args:K(`string[]`).default(()=>[]),"cwd?":`string`,timeoutMs:`number >= 1000 = 300000`}).onUndeclaredKey(`reject`)),BD=q(()=>K({steps:zD.array().atLeastLength(1),restart:`boolean = true`}).onUndeclaredKey(`reject`)),VD=q(()=>K({command:`string >= 1?`,args:`string[]?`,"cwd?":`string`,timeoutMs:`number >= 1000?`}).onUndeclaredKey(`reject`)),HD=q(()=>K({"steps?":VD.array(),"restart?":`boolean`}).onUndeclaredKey(`reject`)),UD=q(()=>BD.or(K(`null`))),WD=q(()=>HD.or(K(`null`))),GD=q(()=>K({running:`boolean`,"lastAt?":`number`,"lastOutcome?":`"ok" | "failed"`,"lastError?":`string`})),KD=q(()=>K({command:`string`,args:K(`string[]`).default(()=>[]),env:K(`Record<string, string>`).default(()=>({})),timeoutMs:`number >= 1000 = 120000`,runOnce:`boolean = true`}).onUndeclaredKey(`reject`)),qD=q(()=>KD.or(K(`null`))),JD=q(()=>K({command:`string >= 1?`,args:`string[]?`,env:`Record<string, string>?`,timeoutMs:`number >= 1000?`,runOnce:`boolean?`}).onUndeclaredKey(`reject`)),YD=q(()=>JD.or(K(`null`))),XD=q(()=>K({command:`string >= 1`,args:K(`string[]`).default(()=>[]),env:K(`Record<string, string>`).default(()=>({})),timeoutMs:`number >= 1000 = 600000`,waitMs:`number >= 0 = 2000`}).onUndeclaredKey(`reject`)),ZD=q(()=>XD.or(K(`null`))),QD=q(()=>K({command:`string >= 1?`,args:`string[]?`,env:`Record<string, string>?`,timeoutMs:`number >= 1000?`,waitMs:`number >= 0?`}).onUndeclaredKey(`reject`)),$D=q(()=>QD.or(K(`null`))),eO=q(()=>K(`string | null`)),tO=q(()=>K(`50 <= number.integer <= 100000`)),nO=q(()=>K(`/^[A-Za-z_][A-Za-z0-9_]*$/`).describe(`an environment-variable name: a letter or underscore, then letters, digits or underscores`)),rO=q(()=>K(nO.array())),iO=q(()=>K(/^\S+(?: +\S+){4}$/).describe(`a 5-field cron expression (minute hour day-of-month month day-of-week); no seconds field, no @macros`)),aO=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,"label?":eO,"description?":`string`,enabled:`boolean = true`,command:`string >= 1`,args:K(`string[]`).default(()=>[]),cwd:`string = "."`,env:K(`Record<string, string>`).default(()=>({})),secretEnv:rO.default(()=>[]),schedule:iO,timeoutSeconds:K(`1 <= number.integer <= 86400`).default(3600),catchUp:`boolean = true`}).onUndeclaredKey(`reject`));q(()=>K({"meta?":K({"writtenBy?":`string`,"schema?":`number`}),jobs:aO.array()}).onUndeclaredKey(`reject`));var oO=q(()=>K(`"schedule" | "manual" | "catch-up"`)),sO=q(()=>K(`"running" | "ok" | "failed" | "timeout" | "cancelled" | "spawn-error" | "interrupted"`)),cO=q(()=>K({runId:`string`,trigger:oO,"scheduledFor?":`number`,startedAt:`number`,endedAt:`number | null`,outcome:sO,exitCode:`number | null`,signal:`string | null`,"error?":`string`}).onDeepUndeclaredKey(`ignore`)),lO=q(()=>K({id:`string`,"label?":`string`,"description?":`string`,enabled:`boolean`,command:`string`,args:`string[]`,schedule:`string`,"nextRunAt?":`number | null`,running:`boolean`,"current?":K({runId:`string`,startedAt:`number`,trigger:oO}).onUndeclaredKey(`ignore`),"last?":K({runId:`string`,outcome:sO,exitCode:`number | null`,signal:`string | null`,startedAt:`number`,endedAt:`number`,durationMs:`number`}).onUndeclaredKey(`ignore`),"problem?":`string`,"lastRunAt?":`number`,"lastExitCode?":`number | null`,"logPath?":`string`,"secretEnv?":`string[]`,"secretEnvSet?":`string[]`,"timeoutSeconds?":`number`,"catchUp?":`boolean`,"cwd?":`string`,"env?":`Record<string, string>`}).onDeepUndeclaredKey(`ignore`));q(()=>K({jobs:lO.array(),"fileError?":`string`}).onDeepUndeclaredKey(`ignore`)),q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,"label?":eO,"description?":`string`,"enabled?":`boolean`,command:`string >= 1`,"args?":`string[]`,"cwd?":`string`,"env?":`Record<string, string>`,"secretEnv?":`string[]`,schedule:iO,"timeoutSeconds?":`1 <= number.integer <= 86400`,"catchUp?":`boolean`}).onUndeclaredKey(`reject`)),q(()=>K({"label?":eO.or(K(`null`)),"description?":`string | null`,"enabled?":`boolean`,"command?":`string >= 1`,"args?":`string[]`,"cwd?":`string`,"env?":`Record<string, string>`,"secretEnv?":`string[]`,"schedule?":iO,"timeoutSeconds?":`1 <= number.integer <= 86400`,"catchUp?":`boolean`}).onUndeclaredKey(`reject`)),q(()=>K({runId:`string`,"run?":cO}).onDeepUndeclaredKey(`ignore`)),q(()=>K({runs:cO.array()}).onDeepUndeclaredKey(`ignore`));var uO=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,label:eO.optional(),enabled:`boolean = true`,autostart:`boolean = false`,persistent:`boolean = false`,command:`string >= 1`,args:K(`string[]`).default(()=>[]),cwd:`string = "."`,env:K(`Record<string, string>`).default(()=>({})),dataEnvs:K(`Record<string, string>`).default(()=>({})),bootstrap:qD.optional(),deploy:UD.optional(),dump:ZD.optional(),load:ZD.optional(),port:MD.optional(),bind:ED.default(()=>`local`),onPortConflict:ND.default(`block`),restart:PD.default(()=>({})),health:LD.default(()=>({})),stop:RD.default(()=>({})),logBufferLines:tO.default(()=>500),dependsOn:K(`string[]`).default(()=>[]),envFile:`string = ""`,resources:ID.default(()=>({})),backupPaths:K(`string[]`).default(()=>[]),backupIgnoreGenerated:`boolean = true`,secretEnv:rO.default(()=>[])}).onUndeclaredKey(`reject`)),dO=q(()=>K({enabled:`boolean = true`,sessionTtlMs:`number >= 60000 = 604800000`,cookieSecure:`"auto" | "always" | "never" = "auto"`,trustProxy:`boolean | "loopback" = "loopback"`,maxLoginAttempts:`number.integer >= 1 = 5`,lockoutMs:`number >= 1000 = 60000`}).onUndeclaredKey(`reject`)),fO={onCrash:`boolean = true`,onUnhealthy:`boolean = true`,onForcedRestart:`boolean = true`,onRecovered:`boolean = false`,onHost:`boolean = true`,onDdns:`boolean = true`,cooldownMs:`number >= 0 = 120000`},pO=q(()=>K({...fO}).onUndeclaredKey(`reject`)),mO=q(()=>K({...fO})),hO=`boolean = true`,gO=q(()=>K({kind:`"telegram"`,id:`/^[a-z0-9][a-z0-9_-]*$/`,enabled:`boolean = false`,chatId:`string = ""`,useOwnSettings:hO,...fO}).onUndeclaredKey(`reject`)),_O=q(()=>K({kind:`"webhook"`,id:`/^[a-z0-9][a-z0-9_-]*$/`,url:`string = ""`,enabled:`boolean = true`,method:`"POST" | "PUT" = "POST"`,format:`"json" | "text" = "json"`,headers:`string = ""`,useOwnSettings:hO,...fO}).onUndeclaredKey(`reject`)),vO=q(()=>gO.or(_O)),yO=q(()=>vO.array());q(()=>K({defaults:pO.default(()=>({})),destinations:yO.default(()=>[])}).onUndeclaredKey(`reject`));var bO=q(()=>K({persist:`boolean = true`,maxBytes:`10000 <= number <= 100000000 = 2000000`,keep:`1 <= number.integer <= 10 = 3`}).onUndeclaredKey(`reject`)),xO=q(()=>K({enabled:`boolean = false`}).onUndeclaredKey(`reject`)),SO=q(()=>K({enabled:`boolean = true`,intervalMs:`number >= 5000 = 15000`,diskPaths:K(`string[]`).default(()=>[`.`]),diskUsedPercent:`number >= 0 = ${oD.diskUsedPercent}`,memoryUsedPercent:`number >= 0 = ${oD.memoryUsedPercent}`,swapUsedPercent:`number >= 0 = ${oD.swapUsedPercent}`,loadPerCpu:K(`number >= 0`).default(2),tempCelsius:`number >= 0 = ${oD.tempCelsius}`,tempCommand:`string <= 512 = ""`,tempCommandTimeoutMs:`100 <= number <= 30000 = 5000`}).onUndeclaredKey(`reject`)),CO=q(()=>K({mode:`"only" | "except"`,ids:K(`string >= 1`).array().atLeastLength(1)}).onUndeclaredKey(`reject`)),wO=q(()=>K({intervalMs:`number.integer >= 0 = 0`,keep:`number.integer >= 1 = 7`,scope:CO.optional()}).onUndeclaredKey(`reject`));q(()=>K({enabled:`boolean = true`,dir:`string = ".backups"`,keep:`number.integer >= 1 = 5`,includePaths:K(`string[]`).default(()=>[]),schedule:wO.default(()=>({}))}).onUndeclaredKey(`reject`));var TO=q(()=>K(/^(?:\*\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i).array().atMostLength(64));q(()=>K({label:`1 <= string <= 60 = "home-hosted"`,port:`1 <= number.integer <= 65535 = 3999`,host:ED.default(()=>`local`),openBrowser:`boolean = false`,allowedHosts:TO.default(()=>[]),auth:dO.default(()=>({})),tls:xO.default(()=>({}))}).onUndeclaredKey(`reject`));var EO=q(()=>K({enabled:`boolean = true`,autostart:`boolean = false`,bind:ED.default(()=>`local`),onPortConflict:ND.default(`block`),restart:PD.default(()=>({})),health:LD.default(()=>({})),stop:RD.default(()=>({})),logBufferLines:tO.default(()=>500)}).onUndeclaredKey(`reject`)),DO=q(()=>K({enabled:`boolean?`,maxRetries:`number.integer >= 0?`,baseDelayMs:`number >= 0?`,factor:`number >= 1?`,maxDelayMs:`number >= 0?`,resetAfterMs:`number >= 0?`}).onUndeclaredKey(`reject`)),OO=q(()=>K({scheme:`"http" | "https"?`,allowInvalidCert:`boolean?`,path:`string?`,method:`"GET" | "HEAD"?`,expectStatus:`number.integer | null?`,expectStatusBelow:`number.integer?`,expectBody:`string?`}).onUndeclaredKey(`reject`)),kO=q(()=>K({maxRssBytes:`number.integer >= 0?`}).onUndeclaredKey(`reject`)),AO=q(()=>K({enabled:`boolean?`,mode:`"port" | "http"?`,http:OO.optional(),intervalMs:`number >= 500?`,timeoutMs:`number >= 100?`,unhealthyThreshold:`number.integer >= 1?`,forceRestartAfterMs:`number >= 0?`,startTimeoutMs:`number >= 0?`}).onUndeclaredKey(`reject`)),jO=q(()=>K({signal:`"SIGTERM" | "SIGINT" | "SIGKILL"?`,killGroup:`boolean?`,graceMs:`number >= 0?`,killPortHolders:`boolean?`}).onUndeclaredKey(`reject`)),MO=q(()=>K({enabled:`boolean?`,sessionTtlMs:`number >= 60000?`,cookieSecure:`"auto" | "always" | "never"?`,trustProxy:`boolean | "loopback"?`,maxLoginAttempts:`number.integer >= 1?`,lockoutMs:`number >= 1000?`}).onUndeclaredKey(`reject`)),NO={onCrash:`boolean?`,onUnhealthy:`boolean?`,onForcedRestart:`boolean?`,onRecovered:`boolean?`,onHost:`boolean?`,onDdns:`boolean?`,cooldownMs:`number >= 0?`},PO=q(()=>K({kind:`"telegram" | "webhook"`,id:`/^[a-z0-9][a-z0-9_-]*$/`,enabled:`boolean?`,useOwnSettings:`boolean?`,chatId:`string?`,url:`string?`,method:`"POST" | "PUT"?`,format:`"json" | "text"?`,headers:`string?`,...NO}).onUndeclaredKey(`reject`)),FO=q(()=>K({defaults:K({...NO}).onUndeclaredKey(`reject`).optional(),destinations:PO.array().optional()}).onUndeclaredKey(`reject`)),IO=q(()=>K({enabled:`boolean?`,intervalMs:`number >= 5000?`,diskPaths:K(`string[]`).optional(),diskUsedPercent:`number >= 0?`,memoryUsedPercent:`number >= 0?`,swapUsedPercent:`number >= 0?`,loadPerCpu:`number >= 0?`,tempCelsius:`number >= 0?`,tempCommand:`string <= 512?`,tempCommandTimeoutMs:`100 <= number <= 30000?`}).onUndeclaredKey(`reject`)),LO=q(()=>K({intervalMs:`number.integer >= 0?`,keep:`number.integer >= 1?`,scope:CO.or(K(`null`)).optional()}).onUndeclaredKey(`reject`)),RO=q(()=>K({enabled:`boolean?`,dir:`string?`,keep:`number.integer >= 1?`,includePaths:K(`string[]`).optional(),schedule:LO.optional()}).onUndeclaredKey(`reject`)),zO=q(()=>K({persist:`boolean?`,maxBytes:`10000 <= number <= 100000000?`,keep:`1 <= number.integer <= 10?`}).onUndeclaredKey(`reject`)),BO=q(()=>K({enabled:`boolean?`}).onUndeclaredKey(`reject`)),VO=q(()=>K({label:`1 <= string <= 60 | null?`,port:`1 <= number.integer <= 65535?`,host:ED.optional(),openBrowser:`boolean?`,allowedHosts:TO.optional(),auth:MO.optional(),tls:BO.optional()}).onUndeclaredKey(`reject`)),HO=q(()=>K({enabled:`boolean?`,autostart:`boolean?`,bind:ED.optional(),onPortConflict:ND.optional(),restart:DO.optional(),health:AO.optional(),stop:jO.optional(),logBufferLines:tO.optional()}).onUndeclaredKey(`reject`));function UO(){return{label:eO.optional(),enabled:`boolean?`,autostart:`boolean?`,persistent:`boolean?`,command:`string?`,args:`string[]?`,cwd:`string?`,env:`Record<string, string>?`,dataEnvs:`Record<string, string>?`,bootstrap:YD.optional(),deploy:WD.optional(),dump:$D.optional(),load:$D.optional(),port:MD.optional(),bind:ED.optional(),onPortConflict:ND.optional(),restart:DO.optional(),health:AO.optional(),stop:jO.optional(),logBufferLines:tO.optional(),dependsOn:K(`string[]`).optional(),envFile:`string?`,resources:kO.optional(),backupPaths:K(`string[]`).optional(),backupIgnoreGenerated:`boolean?`,secretEnv:rO.optional()}}var WO=q(()=>K(UO()).onUndeclaredKey(`reject`)),GO=q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`,...UO(),command:`string`}).onUndeclaredKey(`reject`));q(()=>K({server:uO,"warnings?":`string[]`}).onDeepUndeclaredKey(`ignore`)),q(()=>K({serverId:`string`,command:`string`,args:`string[]`,cwd:`string`,env:`Record<string, string>`,logDir:`string`,logs:bO,stop:RD}).onDeepUndeclaredKey(`ignore`));var KO=q(()=>K({code:`number | null`,signal:`string | null`,at:`number`,runtimeMs:`number`}).onDeepUndeclaredKey(`ignore`));q(()=>K({serverId:`string`,nannyPid:`number`,childPid:`number | null`,startedAt:`number`,logFile:`string`,heartbeatAt:`number`,"lastExit?":KO}).onDeepUndeclaredKey(`ignore`)),q(()=>K({restarts:`number.integer >= 0`,"healthRestarts?":`number.integer >= 0`,bootstrapDone:`boolean`,"pendingLoad?":`string | null`,"lastPid?":`number | null`,"lastStartedAt?":`number | null`}));var qO=q(()=>K({control:VO.optional(),host:IO.optional(),backups:RO.optional()}).onUndeclaredKey(`reject`)),JO=q(()=>K({defaults:HO.optional(),logs:zO.optional(),notifications:FO.optional()}).onUndeclaredKey(`reject`)),YO=q(()=>K({enabled:`boolean`,passwordSet:`boolean`,passwordUpdatedAt:`number | null`,apiTokenSet:`boolean?`,usingDefaultPassword:`boolean`,exposed:`boolean`,blockedReason:`string | null`,sessionTtlMs:`number`,cookieSecure:`string`,trustProxy:`boolean | "loopback"`,maxLoginAttempts:`number`,lockoutMs:`number`})),XO=q(()=>K({enabled:`boolean`,certPresent:`boolean`,subject:`string | null`,issuer:`string | null`,validFrom:`string | null`,validTo:`string | null`,daysRemaining:`number | null`,fingerprint:`string | null`,keyMatches:`boolean | null`,error:`string | null`})),ZO={onCrash:`boolean`,onUnhealthy:`boolean`,onForcedRestart:`boolean`,onRecovered:`boolean`,onHost:`boolean`,onDdns:`boolean?`,cooldownMs:`number`},QO=q(()=>K({id:`string`,kind:`"telegram" | "webhook"`,enabled:`boolean`,useOwnSettings:`boolean`,...ZO,chatId:`string | null`,tokenSet:`boolean`,url:`string | null`,method:`"POST" | "PUT" | null`,format:`"json" | "text" | null`,headers:`string | null`,"lastResult?":`string | null`,"lastResultAt?":`number | null`}));q(()=>K({chats:K({id:`string | number`,title:`string`}).array()}));var $O=q(()=>K({"defaults?":mO,"destinations?":QO.array()})),ek=q(()=>K.enumerated(`session`,`token`,`local`)),tk=q(()=>K({kind:ek,"name?":`string`}));q(()=>K({authenticated:`boolean`,authRequired:`boolean`,passwordSet:`boolean`,apiTokenSet:`boolean?`,usingDefaultPassword:`boolean`,"accountId?":`string`,"defaultPassword?":`string`,sessionTtlMs:`number`,"credential?":tk})),q(()=>K({version:`string`,apiVersion:`number.integer`,credential:tk,actor:`string`,refused:`string[]`,features:K({proxy:`boolean`,ddns:`boolean`,temperature:`boolean`}),errorCodes:`string[]`,events:`string[]`}).onDeepUndeclaredKey(`ignore`));var nk=q(()=>K(`"stopped" | "starting" | "running" | "stopping" | "backoff" | "crashed" | "conflict"`)),rk=q(()=>K(`"disabled" | "unknown" | "healthy" | "unhealthy"`)),ik=q(()=>K(`"unknown" | "free" | "in-use"`)),ak=q(()=>K(`"stdout" | "stderr" | "system"`)),ok=q(()=>K({ts:`number`,stream:ak,text:`string`,"cursor?":`string`}));q(()=>K({run:cO,lines:ok.array(),"truncated?":`boolean`}).onDeepUndeclaredKey(`ignore`));var sk=q(()=>K.enumerated(`policy`,`user`,`agent`,`boot`)),ck=q(()=>K({serverId:`string`,ts:`number`,type:`"start" | "exit" | "crash" | "forced-restart" | "unhealthy" | "recovered" | "deploy"`,detail:`string`,runtimeMs:`number?`,"outcome?":`"ok" | "failed"`,"actor?":sk})),lk=q(()=>K({windowMs:`number`,uptimeRatio:`number | null`,restarts:`number`,crashes:`number`,forcedRestarts:`number`,lastCrashAt:`number | null`,lastExitAt:`number | null`,lastRuntimeMs:`number | null`,events:ck.array()})),uk=q(()=>K({cpuPercent:`number | null`,rssBytes:`number | null`,processes:`number`,sampledAt:`number`})),dk=q(()=>K({path:`string`,totalBytes:`number`,freeBytes:`number`,usedPercent:`number`})),fk=q(()=>K({enabled:`boolean`,cpus:`number`,loadAvg:K(`number[]`),"cpuUsedPercent?":`number | null`,uptimeMs:`number`,memoryUsedPercent:`number`,swapUsedPercent:`number`,tempCelsius:`number | null`,disks:dk.array(),alerts:K(`string[]`),sampledAt:`number | null`,"loadAlertPerCpu?":`number`,"memoryUsedPercentAlert?":`number`,"swapUsedPercentAlert?":`number`,"tempCelsiusAlert?":`number`,"diskUsedPercentAlert?":`number`,"unmeasured?":K(`string[]`)}));q(()=>K({wsl:`boolean`,supported:`boolean`,configured:`boolean`,scriptWritten:`boolean`,libraryPresent:`boolean`,scriptPath:`string | null`,"tempCommand?":`string | null`,"lastReadingCelsius?":`number | null`,"lastError?":`string | null`,"needsDownload?":`boolean`}));var pk=q(()=>K({id:`string`,"workspaceId?":`string`,config:uO,bindHost:`string`,url:`string | null`,status:nk,health:rk,portState:ik,pid:`number | null`,adopted:`boolean?`,"stoppedByPanel?":`boolean`,startedAt:`number | null`,exitCode:`number | null`,exitSignal:`string | null`,restarts:`number`,maxRetries:`number`,lastError:`string | null`,"lastStderr?":`string[]`,nextRetryAt:`number | null`,unhealthySince:`number | null`,bufferedLines:`number`,history:lk,responseMs:`number | null`,resources:uk.or(K(`null`)),"secretEnvSet?":`string[]`,"deploy?":GD,"restartRequired?":`boolean`}).onDeepUndeclaredKey(`ignore`));q(()=>K({status:`"ok" | "degraded"`,uptimeMs:`number`,"servers?":K({total:`number`,running:`number`,crashed:`number`,unhealthy:`number`}),"hostAlerts?":`string[]`,"home?":`string`}));var mk=q(()=>K({label:`string`,port:`number`,host:`string`,bindHost:`string`,url:`string`,openBrowser:`boolean`,"allowedHosts?":`string[]`,restartRequired:`boolean`,protocol:`string`,auth:YO,tls:XO})),hk=q(()=>K({"name?":`string`,"version?":`string | null`,"uploadedAt?":`number`,"files?":`number.integer >= 1`,"repo?":`string`,"tag?":`string`,"asset?":`string`,"unix?":`number.integer >= 0`})),gk=q(()=>K({custom:`boolean`,dir:`string`,meta:hk.or(K(`null`))})),_k=q(()=>K({serverId:`string`,pid:`number`,startedAt:`number | null`})),vk=q(()=>K({id:`string`,label:`string`,configPath:`string`,settingsPath:`string`,configError:`string | null`,"configWarnings?":K(`string[]`),logsDir:`string`,defaults:EO,logs:bO,notifications:$O,"ddns?":FE,serverCount:`number`,runningCount:`number`,crashedCount:`number`,"orphans?":_k.array(),servers:pk.array(),"jobs?":lO.array(),"jobsError?":`string`}).onDeepUndeclaredKey(`ignore`)),yk=q(()=>K({control:mk,host:fk,backups:CE,ui:gk,workspaces:vk.array(),"proxy?":nD,projectDir:`string`,dataRoot:`string`,"settingsPath?":`string`,"version?":`string`,"settingsError?":K({message:`string`,path:`string`}).or(`null`)}).onDeepUndeclaredKey(`ignore`));q(()=>K({"limit?":hD(1,1e5)})),q(()=>K({ok:`boolean`,"error?":`string`,"message?":`string`,"code?":`string`,"dependents?":`string[]`})),q(()=>K({ok:`boolean`,"error?":`string`}));var bk=q(()=>K({control:mk,rebinding:`boolean`,targetUrl:`string`}));q(()=>K({ok:`boolean`})),q(()=>K({ok:`boolean`,files:bE.array()})),q(()=>K({ok:`boolean`,"meta?":gk.get(`meta`),ui:gk,"removed?":`boolean`}));var xk=q(()=>K({file:bE,files:bE.array(),"warnings?":`string[]`})),Sk=q(()=>K({apply:`false`,entries:xE.array(),includePaths:`string[]`}));q(()=>Sk.or(xk)),q(()=>K({botToken:`string?`,chatId:`string?`}).onUndeclaredKey(`reject`)),q(()=>K({id:`/^[a-z0-9][a-z0-9_-]*$/`})),q(()=>K({target:_O.omit(`kind`,`id`).and(K({id:`string?`,kind:`"webhook"?`})),id:`string?`}).onUndeclaredKey(`reject`)),q(()=>K({botToken:`string >= 1`}).onUndeclaredKey(`reject`)),q(()=>K({message:`string`,code:`string`,"detail?":`unknown`})),q(()=>K({"set?":K({"[string]":`string`}),"unset?":K(`string[]`)}).onUndeclaredKey(`reject`));var Ck=q(()=>K({certificate:`string >= 1`,privateKey:`string >= 1`}).onUndeclaredKey(`reject`)),wk=q(()=>K({control:mk,host:SO,backups:CE,ui:gk}).onDeepUndeclaredKey(`ignore`)),Tk=q(()=>wk.and(K({rebinding:`boolean`,targetUrl:`string | null`}))),Ek=q(()=>K({id:`string`,label:`string`,settingsPath:`string`,configPath:`string`,configError:`string | null`,defaults:EO,logs:bO,notifications:$O}).onDeepUndeclaredKey(`ignore`)),Dk=q(()=>K({id:`string`,workspaceId:`string`,label:`string`,status:nk,"cpuPercent?":`number`,"rssBytes?":`number`,"processes?":`number`,"sampledAt?":`number`,"restarts?":`number`,"crashes?":`number`,"uptimeRatio?":`number`,"lastExitAt?":`number`}));q(()=>K({servers:Dk.array(),"sampledAt?":`number`}));var Ok=q(()=>K({ok:`boolean`,port:`number | null`,terminated:`number[]`,forced:`number[]`,skipped:`number[]`,free:`boolean`}));function kk(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ak=e=>typeof e==`string`,jk=e=>typeof e==`number`&&Number.isFinite(e);function Mk(e){return kk(e)&&Ak(e.id)&&Ak(e.status)&&kk(e.config)}function Nk(e){return kk(e)&&Ak(e.id)&&Array.isArray(e.servers)&&e.servers.every(Mk)}function Pk(e){return kk(e)&&kk(e.control)&&kk(e.host)&&kk(e.backups)&&kk(e.ui)&&Array.isArray(e.workspaces)&&e.workspaces.every(Nk)&&(e.proxy===void 0||kk(e.proxy))}function Fk(e){return kk(e)&&jk(e.ts)&&Ak(e.stream)&&Ak(e.text)}function Ik(e){if(!kk(e)||!jk(e.ts)||e.workspaceId!==void 0&&!Ak(e.workspaceId))return!1;switch(e.type){case`hello`:case`state`:return Pk(e.state);case`server`:return Ak(e.serverId)&&Mk(e.server);case`log`:return Ak(e.serverId)&&Array.isArray(e.lines)&&e.lines.every(Fk);case`ping`:return!0;default:return!1}}function Lk(e){let t;try{t=JSON.parse(e)}catch{return null}let n=bD(t);return n instanceof K.errors?Ik(t)?{frame:t,lenient:!0}:null:{frame:n,lenient:!1}}function Rk(e){let t=yk(e);return t instanceof K.errors?Pk(e)?e:null:t}var zk={responseMs:null,cpuPercent:null,rssBytes:null,processes:null};function Bk(e){return e.status===`running`?{responseMs:e.responseMs??null,cpuPercent:e.resources?.cpuPercent??null,rssBytes:e.resources?.rssBytes??null,processes:e.resources?.processes??null}:zk}function Vk(e,t){let n=0;for(let r of e){let e=Bk(r)[t];if(typeof e!=`number`)return null;n+=e}return n}var Hk=4e3;function Uk(){return{ts:[],cpu:[],rss:[],probe:[],lastSampledAt:-1}}function Wk(e,t){let n=e.ts.length-t;n<=0||(e.ts.splice(0,n),e.cpu.splice(0,n),e.rss.splice(0,n),e.probe.splice(0,n))}function Gk(e,t,n,r){let i=t.resources?.sampledAt??0,a=e.ts[e.ts.length-1]??0,o=i!==e.lastSampledAt||n-a>=Hk,s=Bk(t);o?(e.lastSampledAt=i,e.ts.push(n),e.cpu.push(s.cpuPercent),e.rss.push(s.rssBytes),e.probe.push(s.responseMs),Wk(e,r)):e.probe.length>0&&(e.probe[e.probe.length-1]=s.responseMs)}function Kk(e,t){return`${e}/${t}`}function qk(e=1e3,t=3e4){let n=e;return{next(){let e=n;return n=Math.min(n*2,t),e},reset(){n=e}}}var Jk=[`hello`,`state`,`server`,`log`];function Yk(e){let t=e.observe??(e=>e),n=e.now??Date.now,r=new Map,i=new Map,a=null,o=!1;function s(t,n){let r=qk(),i=null,a=null,s=!1,c=null;async function l(){let t=await e.checkSession().catch(()=>!0);s||(t?a=setTimeout(()=>{a=null,s||d()},r.next()):(s=!0,n.onGiveUp()))}function u(){return c===null?t:`${t}${t.includes(`?`)?`&`:`?`}since=${encodeURIComponent(c)}`}function d(){let t=e.openEventSource(u());i=t,t.onopen=()=>{i===t&&(r.reset(),n.onOpen())},t.onerror=()=>{i===t&&(n.onError?.(),t.readyState===2&&(t.close(),i=null,l()))};for(let e of Jk)t.addEventListener(e,e=>{if(i!==t)return;let r=e.lastEventId;typeof r==`string`&&r.length>0&&(c=r);let a=Lk(e.data);a===null?console.warn(`[home-hosted] ignored malformed SSE frame`):(a.lenient&&!o&&(o=!0,console.warn(`[home-hosted] the panel sent values this UI does not know; showing them as-is`)),n.onFrame(a.frame))})}return d(),{close(){s=!0,i?.close(),i=null,a!==null&&clearTimeout(a),a=null}}}function c(e){let n=i.get(e);if(n)return n;let r=t(Uk());return i.set(e,r),r}function l(t,r){Gk(c(Kk(r,t.id)),t,n(),e.seriesCapacity)}function u(t){e.state.set(t);for(let e of t.workspaces)for(let t of e.servers)l(t,e.id)}function d(t){let n=e.state.get();if(!n)return;let r=t.workspaceId,i=r===void 0?n.workspaces.filter(e=>e.servers.some(e=>e.id===t.id)):n.workspaces.filter(e=>e.id===r);if(i.length!==1)return;let a=i[0],o=r===void 0?{...t,workspaceId:a.id}:t;a.servers=a.servers.some(e=>e.id===t.id)?a.servers.map(e=>e.id===t.id?o:e):[...a.servers,o],l(o,a.id)}function f(e){let t=r.get(e);if(t)return t;let n={lines:[],version:0,refs:0,stream:null};return r.set(e,n),n}function p(t,n,r){n.lines=r,n.version+=1,e.onLogs?.(t)}function m(t,n){let r=f(t),i=r.lines.concat(n);p(t,r,i.length>e.maxLines?i.slice(i.length-e.maxLines):i)}function h(e){p(e,f(e),[])}function g(t,n,r){let i=Kk(t,n);h(i),r.stream=s(e.serverStreamUrl(t,n),{onOpen:()=>h(i),onFrame(e){e.type===`log`?m(i,e.lines):e.type===`server`&&d(e.server)},onGiveUp(){r.stream=null}})}function _(e){e.type===`hello`||e.type===`state`?u(e.state):e.type===`server`?d(e.server):e.type===`log`&&e.workspaceId!==void 0&&m(Kk(e.workspaceId,e.serverId),e.lines)}return{connect(){a||=(e.onConnection?.(`connecting`),s(e.eventsUrl,{onOpen:()=>e.onConnection?.(`open`),onError:()=>e.onConnection?.(`closed`),onFrame:_,onGiveUp(){a=null}}))},disconnect(){a?.close(),a=null},applyState:u,lines(e){return r.get(e)?.lines??[]},logVersion(e){return r.get(e)?.version??0},resetLogs(e){r.has(e)&&h(e)},acquireLogs(e,t){let n=f(Kk(e,t));n.refs+=1,n.stream||g(e,t,n)},releaseLogs(e,t){let n=r.get(Kk(e,t));n&&(n.refs=Math.max(0,n.refs-1),n.refs===0&&(n.stream?.close(),n.stream=null))},series:c,forget(e,t){let n=Kk(e,t);r.get(n)?.stream?.close(),r.delete(n),i.delete(n)}}}var Xk=class extends Error{name=`AuthRequiredError`;constructor(){super(`authentication required`)}},Zk=class extends Error{code;name=`LocalOnlyError`;constructor(e,t){super(e),this.code=t}},Qk=new Set([`AUTH_UNARMED`,`AUTH_DISABLED_REMOTE`]);async function J(e,t){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,...t?.headers}}),r=$k(await n.text(),n.ok);if(!n.ok)throw n.status===401&&kk(r)&&r.code===`AUTH_REQUIRED`?new Xk:n.status===401&&kk(r)&&typeof r.code==`string`&&Qk.has(r.code)?new Zk(eA(r,n.status),r.code):Error(eA(r,n.status));return r}function $k(e,t){if(e.length===0)return null;try{return JSON.parse(e)}catch(e){if(t)throw e;return null}}function eA(e,t){if(kk(e)){if(typeof e.message==`string`&&e.message.length>0)return e.message;if(typeof e.error==`string`&&e.error.length>0)return e.error;if(e.error!==void 0&&e.error!==null&&String(e.error).length>0)return String(e.error)}return`request failed with ${t}`}var tA={SERVER_DISABLED:`switch this server on first`,SERVER_BUSY:`a change is already in progress — try again in a moment`,PORT_IN_USE:`free the port, or choose another`,DEPENDENCY_FAILED:`start the entry it depends on first`};function nA(e){if(!kk(e)||e.ok!==!1)return``;let t=typeof e.code==`string`?e.code:``,n=typeof e.error==`string`&&e.error.length>0?e.error:typeof e.message==`string`?e.message:``,r=tA[t];return r===void 0?n:n.length===0?r:`${n} — ${r}`}async function rA(e){let t=nD(e);if(t instanceof K.errors)throw Error(`proxy contract mismatch: ${t.summary}`);return t}async function iA(e){let t=RE(e);if(t instanceof K.errors)throw Error(`ddns contract mismatch: ${t.summary}`);return t}function aA(e){return J(`/api/proxy/${e}`,{method:`POST`}).then(rA)}function oA(){return aA(`apply`)}function sA(e){return`/api/backups/${encodeURIComponent(e)}/download`}function cA(e){let t={};for(let n of[`include`,`exclude`]){let r=e[n];if(r!==void 0){if(r.length===0)throw Error(`nothing is ${n===`include`?`selected`:`excluded`}: omit \`${n}\` or name at least one item`);t[n]=r}}return t}function lA(e={}){let t=cA(e);return e.password!==void 0&&e.password.length>0&&(t.password=e.password),t}function uA(e={}){return J(`/api/backups`,{method:`POST`,body:JSON.stringify(lA(e))})}function dA(e){return!kk(e)||!Array.isArray(e.warnings)?[]:e.warnings.filter(e=>typeof e==`string`&&e.length>0)}function fA(){return J(`/api/auth/accounts`)}function pA(e){let t=vE(e);if(t instanceof K.errors)throw Error(t.summary);return J(`/api/auth/accounts`,{method:`POST`,body:JSON.stringify(t)})}function mA(e,t){let n=yE(t);if(n instanceof K.errors)throw Error(n.summary);return J(`/api/auth/accounts/${encodeURIComponent(e)}`,{method:`PATCH`,body:JSON.stringify(n)})}function hA(e){return J(`/api/auth/accounts/${encodeURIComponent(e)}`,{method:`DELETE`})}function gA(e,t){let n=hE(e===void 0?{newSecret:t}:{currentSecret:e,newSecret:t});if(n instanceof K.errors)throw Error(n.summary);return J(`/api/auth/accounts/me/secret`,{method:`POST`,body:JSON.stringify(n)})}function _A(){return J(`/api/auth/password`,{method:`DELETE`})}async function vA(e){return rA(await J(`/api/proxy/certificates/${encodeURIComponent(e)}`,{method:`DELETE`}))}function yA(e){return J(`/api/backups/${encodeURIComponent(e)}`,{method:`DELETE`})}function bA(){return J(`/api/host/temperature`)}function xA(e={}){return J(`/api/host/temperature${e.download===!0?`?download=true`:``}`,{method:`POST`})}function SA(){return J(`/api/host/temperature`,{method:`DELETE`})}async function CA(){return rA(await J(`/api/proxy`))}function wA(){return J(`/api/auth/session`)}function TA(){return J(`/api/settings`)}async function EA(e=``){return rA(await J(`/api/proxy/engine`,{method:`POST`,body:JSON.stringify({version:e})}))}function DA(e,t){let n=pE({id:e,secret:t});if(n instanceof K.errors)throw Error(n.summary);return J(`/api/auth/login`,{method:`POST`,body:JSON.stringify(n)})}function OA(){return J(`/api/auth/logout`,{method:`POST`})}async function kA(e){let t=iD(e);if(t instanceof K.errors)throw Error(t.summary);return rA(await J(`/api/proxy`,{method:`PATCH`,body:JSON.stringify(t)}))}function AA(e){let t=cA(e);return e.password!==void 0&&e.password.length>0&&(t.password=e.password),t}function jA(e,t,n={}){return J(`/api/backups/restore?confirm=${t}`,{method:`POST`,body:JSON.stringify({name:e,...AA(n)})})}async function MA(e,t,n={}){let r=new FormData;r.append(`file`,e);for(let[e,t]of Object.entries(AA(n)))r.append(e,e===`password`?String(t):JSON.stringify(t));let i=await fetch(`/api/backups/restore?confirm=${t}`,{method:`POST`,body:r}),a=await i.json().catch(()=>null);if(!i.ok)throw Error(a?.message??a?.error??`restore failed with ${i.status}`);return a}async function NA(e){return rA(await J(`/api/proxy/routes/${encodeURIComponent(e)}/retry-certificate`,{method:`POST`}))}function PA(){return aA(`revert`)}function FA(){return J(`/api/settings/ui`,{method:`DELETE`})}function IA(){return aA(`start`)}function LA(){return aA(`stop`)}async function RA(e,t,n,r){let i=aD({label:t,certificate:n,privateKey:r});if(i instanceof K.errors)throw Error(i.summary);return rA(await J(`/api/proxy/certificates/${encodeURIComponent(e)}`,{method:`PUT`,body:JSON.stringify(i)}))}async function zA(e){let t=new FormData;t.append(`file`,e);let n=await fetch(`/api/settings/ui`,{method:`POST`,body:t}),r=await n.json().catch(()=>null);if(!n.ok)throw Error(r?.message??r?.error??`the upload failed with ${n.status}`);return r}var BA=()=>null;function Y(e,t,n){let r=n===void 0?new URLSearchParams:new URLSearchParams(n),i=t!=null&&t.length>0?t:BA();i!=null&&i.length>0&&r.set(`workspace`,i);let a=r.toString();return a.length===0?e:`${e}${e.includes(`?`)?`&`:`?`}${a}`}function VA(e,t,n){let r=e(t);if(r instanceof K.errors)throw Error(`${n} contract mismatch: ${r.summary}`);return r}function HA(e,t){let n=e(t);if(n instanceof K.errors)throw Error(n.summary);return n}var UA=K({workspace:vk}),WA=K({ok:`boolean`,removed:`unknown`});async function GA(){let e=Rk(await J(`/api/state`));if(e===null)throw Error(`state contract mismatch`);return e}async function KA(e){return VA(UA,e,`workspace`).workspace}async function qA(e={}){let t=VA(kD,e,`workspace`);return KA(await J(`/api/workspaces`,{method:`POST`,body:JSON.stringify(t)}))}async function JA(e,t){let n=VA(AD,{label:t},`workspace rename`);return KA(await J(`/api/workspaces/${encodeURIComponent(e)}`,{method:`PATCH`,body:JSON.stringify(n)}))}async function YA(e){return VA(WA,await J(`/api/workspaces/${encodeURIComponent(e)}`,{method:`DELETE`}),`workspace removal`)}async function XA(e){let t=HA(qO,e);return VA(Tk,await J(`/api/settings`,{method:`PATCH`,body:JSON.stringify(t)}),`settings`)}async function ZA(e,t){let n=HA(JO,e);return VA(Ek,await J(Y(`/api/settings/workspace`,t),{method:`PATCH`,body:JSON.stringify(n)}),`workspace settings`)}async function QA(e){return VA(wD,await J(Y(`/api/logs`,e)),`logs`).servers}async function $A(e,t,n){let r=new URLSearchParams;return t.tail!==void 0&&r.set(`tail`,String(t.tail)),t.search!==void 0&&t.search.length>0&&r.set(`search`,t.search),t.stream!==void 0&&t.stream.length>0&&r.set(`stream`,t.stream),VA(TD,await J(Y(`/api/logs/${encodeURIComponent(e)}`,n,r)),`log history`)}function ej(e,t){return J(Y(`/api/logs/${encodeURIComponent(e)}`,t),{method:`DELETE`})}function tj(e,t,n){return Y(`/api/logs/${encodeURIComponent(e)}/download`,n,new URLSearchParams({file:t}))}async function nj(){return VA(wE,await J(`/api/backups`),`backups`)}function rj(e,t,n){return J(Y(`/api/notifications/destinations/${encodeURIComponent(e)}/token`,n),{method:`PUT`,body:JSON.stringify({botToken:t})})}function ij(e,t){return J(Y(`/api/notifications/destinations/${encodeURIComponent(e)}/token`,t),{method:`DELETE`})}function aj(e,t,n){return J(Y(`/api/notifications/destinations/${encodeURIComponent(e)}/test`,n),{method:`POST`,body:JSON.stringify(t)})}function oj(e,t,n){return J(Y(`/api/notifications/destinations/${encodeURIComponent(e)}/detect-chats`,n),{method:`POST`,body:JSON.stringify(t)})}function sj(e,t){return J(Y(`/api/notifications/test-webhook`,e),{method:`POST`,body:JSON.stringify(t)})}async function cj(e){return iA(await J(Y(`/api/ddns`,e)))}async function lj(e,t){return iA(await J(Y(`/api/ddns`,t),{method:`PUT`,body:JSON.stringify(e)}))}async function uj(e,t,n,r){return iA(await J(Y(`/api/ddns/credentials/${encodeURIComponent(e)}`,r),{method:`PUT`,body:JSON.stringify({provider:t,credentials:n})}))}async function dj(e,t){return iA(await J(Y(`/api/ddns/credentials/${encodeURIComponent(e)}`,t),{method:`DELETE`}))}async function fj(e){return iA(await J(Y(`/api/ddns/check`,e),{method:`POST`}))}function pj(e,t){return J(Y(`/api/servers/${encodeURIComponent(e)}/deploy`,t),{method:`POST`})}function mj(e){return J(Y(`/api/jobs`,e))}function hj(e,t){return J(Y(`/api/jobs`,t),{method:`POST`,body:JSON.stringify(e)})}function gj(e,t,n){return J(Y(`/api/jobs/${encodeURIComponent(e)}`,n),{method:`PATCH`,body:JSON.stringify(t)})}function _j(e,t){return J(Y(`/api/jobs/${encodeURIComponent(e)}`,t),{method:`DELETE`})}function vj(e,t){return J(Y(`/api/jobs/${encodeURIComponent(e)}/run`,t),{method:`POST`})}function yj(e,t){return J(Y(`/api/jobs/${encodeURIComponent(e)}/stop`,t),{method:`POST`})}function bj(e,t){return J(Y(`/api/jobs/${encodeURIComponent(e)}/runs`,t))}function xj(e,t,n){return J(Y(`/api/jobs/${encodeURIComponent(e)}/runs/${encodeURIComponent(t)}`,n))}function Sj(e,t,n){return J(Y(`/api/jobs/${encodeURIComponent(e)}/secrets`,n),{method:`PUT`,body:JSON.stringify(t)})}async function Cj(e,t,n){let r=await fetch(Y(`/api/servers/${encodeURIComponent(e)}/${t}`,n),{method:`POST`,headers:{"Content-Type":`application/json`}}),i=await r.json().catch(()=>null);if(!r.ok){let e=nA(i);throw Error(e.length>0?e:eA(i,r.status))}return i??{ok:!0}}function wj(e,t){return J(Y(`/api/servers/orphans/${encodeURIComponent(t)}/stop`,e),{method:`POST`})}function Tj(e){return J(Y(`/api/servers/start-all`,e),{method:`POST`})}async function Ej(e,t){let n=await fetch(Y(`/api/servers/${encodeURIComponent(e)}/free-port`,t),{method:`POST`,headers:{"Content-Type":`application/json`}}),r=await n.json().catch(()=>null);if(!n.ok)throw Error(eA(r,n.status));return VA(Ok,r??{ok:!0,port:null,terminated:[],forced:[],skipped:[],free:!1},`free port`)}function Dj(e,t={}){return J(Y(`/api/servers/stop-all`,e,t.withPersistent===!0?new URLSearchParams({withPersistent:`true`}):void 0),{method:`POST`})}function Oj(e,t){return J(Y(`/api/servers/${encodeURIComponent(e)}/clear-logs`,t),{method:`POST`})}function kj(e,t,n){return J(Y(`/api/servers/${encodeURIComponent(e)}/secrets`,n),{method:`PUT`,body:JSON.stringify(t)})}function Aj(e,t,n){return J(Y(`/api/servers/${encodeURIComponent(e)}`,n),{method:`PATCH`,body:JSON.stringify(t)})}function jj(e,t){return J(Y(`/api/servers/${encodeURIComponent(e)}`,t),{method:`DELETE`})}function Mj(e,t){return J(Y(`/api/servers`,t),{method:`POST`,body:JSON.stringify(e)})}function Nj(e,t){return Y(`/api/servers/${encodeURIComponent(e)}/stream`,t)}async function Pj(e,t){let n=VA(Ck,{certificate:e,privateKey:t},`tls upload`);return VA(bk,await J(`/api/settings/tls`,{method:`POST`,body:JSON.stringify(n)}),`tls`)}async function Fj(){return VA(bk,await J(`/api/settings/tls`,{method:`DELETE`}),`tls`)}async function Ij(e,t){let n;try{n=await e()}catch{return{action:`retry`}}if(n.authRequired&&!n.authenticated)return{action:`login`};try{await t()}catch(e){if(e instanceof Xk)return{action:`login`};if(e instanceof Zk)return{action:`refused`,message:e.message}}return{action:`retry`}}function Lj(e){return e===null||!Number.isFinite(e)?`—`:`${(e*100).toFixed(e>=.999?0:1)}%`}function Rj(e){let t=new Date(e);return Number.isFinite(t.getTime())?`${String(t.getFullYear()).padStart(4,`0`)}-${Vj(t.getMonth()+1)}-${Vj(t.getDate())}`:`—`}function zj(e){let t=new Date(e);return Number.isFinite(t.getTime())?`${Rj(e)} ${Vj(t.getHours())}:${Vj(t.getMinutes())}:${Vj(t.getSeconds())}`:`—`}function Bj(e){let t=new Date(e);return Number.isFinite(t.getTime())?`${Vj(t.getHours())}:${Vj(t.getMinutes())}:${Vj(t.getSeconds())}.${String(t.getMilliseconds()).padStart(3,`0`)}`:`—`}function Vj(e){return String(e).padStart(2,`0`)}var Hj={span:(e,t,n)=>n===null?`${e}${t}`:`${e}${t} ${n.value}${n.unit}`,now:()=>`now`,ahead:(e,t)=>`in ${e}${t}`,ago:(e,t)=>`${e}${t} ago`,never:()=>`never`};function Uj(e,t=Hj){if(!Number.isFinite(e)||e<0)return`—`;let n=Math.floor(e/1e3);if(n<60)return t.span(n,`s`,null);let r=Math.floor(n/60);if(r<60)return t.span(r,`m`,Wj(n%60,`s`));let i=Math.floor(r/60);return i<24?t.span(i,`h`,Wj(r%60,`m`)):t.span(Math.floor(i/24),`d`,Wj(i%24,`h`))}function Wj(e,t){return e===0?null:{value:e,unit:t}}function Gj(e,t,n=Hj){let r=Math.max(0,e-t);return r<1e3?n.now():r<6e4?n.ahead(Math.ceil(r/1e3),`s`):r<36e5?n.ahead(Math.ceil(r/6e4),`m`):r<864e5?n.ahead(Math.ceil(r/36e5),`h`):n.ahead(Math.ceil(r/864e5),`d`)}function Kj(e,t,n=Hj){if(e===null)return n.never();let r=Math.max(0,t-e);return r<6e4?n.ago(Math.floor(r/1e3),`s`):r<36e5?n.ago(Math.floor(r/6e4),`m`):r<864e5?n.ago(Math.floor(r/36e5),`h`):n.ago(Math.floor(r/864e5),`d`)}var qj=1e3;function Jj(e){return Math.round(e/qj)}function Yj(e){return Math.round(e)*qj}function Xj(e,t){return e==null||!Number.isFinite(e)?t:Yj(e)}function Zj(e){if(e===null)return null;if(e.settingsPath!==void 0)return e.settingsPath;if(e.dataRoot.length===0)return null;let t=e.dataRoot.includes(`\\`)&&!e.dataRoot.includes(`/`)?`\\`:`/`;return[e.dataRoot.endsWith(t)?e.dataRoot.slice(0,-1):e.dataRoot,`.hh`,`settings.json`].join(t)}var Qj=A(null),$j=A(null);function eM(e){return e===null?`wait`:e.authRequired&&!e.authenticated?`login`:`connect`}function tM(){async function e(){try{Qj.value=await wA()}catch{Qj.value=null}}async function t(e,t){$j.value=null;try{return Qj.value=await DA(e,t),!0}catch(e){return $j.value=qh(e),!1}}async function n(){try{await OA()}finally{await e()}}function r(){Qj.value={authenticated:!1,authRequired:!0,passwordSet:Qj.value?.passwordSet??!0,apiTokenSet:Qj.value?.apiTokenSet??!1,usingDefaultPassword:Qj.value?.usingDefaultPassword??!1,...Qj.value?.defaultPassword===void 0?{}:{defaultPassword:Qj.value.defaultPassword},sessionTtlMs:Qj.value?.sessionTtlMs??0}}async function i(t,n){$j.value=null;try{return await gA(t,n),await e(),null}catch(e){return qh(e)}}async function a(){$j.value=null;try{return await _A(),await e(),null}catch(e){return qh(e)}}return{session:rn(Qj),error:rn($j),refresh:e,login:t,logout:n,requireLogin:r,setMySecret:i,disableAuth:a}}var nM=A([]),rM=1;function iM(e){nM.value=nM.value.filter(t=>t.id!==e)}function aM(e,t=4800){let n=rM++;return nM.value=[...nM.value,{...e,id:n}],t>0&&setTimeout(iM,t,n),n}function oM(){return{toasts:rn(nM),dismiss:iM,push:aM,success:(e,t)=>aM({tone:`ok`,title:e,description:t}),failure:(e,t)=>aM({tone:`danger`,title:e,description:t},9e3),info:(e,t)=>aM({tone:`info`,title:e,description:t}),warn:(e,t)=>aM({tone:`warn`,title:e,description:t},7e3)}}var sM=t({default:()=>cM}),cM={"activity.emptyTitle":`No events in the last 24 hours`,"activity.emptyDescription":`Starts, exits, crashes and recoveries show up here as they happen.`,"activity.ran":`ran {duration}`,"addServer.title":`Add a server`,"addServer.description":`Tell it what to run in {workspace} — a command and the folder it runs in are enough to start.`,"addServer.thisWorkspace":`this workspace`,"addServer.identity":`Identity`,"addServer.id":`Id`,"addServer.idHint":`Lowercase letters, digits, dashes and underscores; used in URLs and logs.`,"addServer.labelHint":`Shown in the panel; defaults to the id.`,"addServer.process":`Process`,"addServer.commandHint":`The program to run, like node or python. It runs directly, not through a shell, so pipes and && do not work here.`,"addServer.argumentsHint":`One argument per line; whitespace inside a line is preserved.`,"addServer.portLifecycle":`Port & lifecycle`,"addServer.bindHint":`Local keeps it reachable from this computer only. LAN opens it to other devices on your network — choose that only if the server has its own login.`,"addServer.advanced":`Advanced settings`,"addServer.advancedHint":`environment, backups, policy, lifecycle, bootstrap`,"addServer.backups":`Backups`,"addServer.backupIgnore":`Ignore known generated files`,"addServer.bootstrapDescription":`A one-off command run before the first start.`,"addServer.bootstrapHint":`Installs, migrations, downloads — before the first start, not on every one.`,"addServer.policyResources":`Policy & resources`,"addServer.logBufferHint":`Blank keeps the default.`,"addServer.inheritNote":`Restart, health and stop start out matching {settings}; change one here and it is written into this entry instead of staying inherited.`,"addServer.serverDefaults":`Settings → Server defaults`,"addServer.placeholdersTitle":`Available placeholders (arguments and environment)`,"addServer.submit":`Add server`,"addServer.warningTitle":`Created, but it will not start as written`,"addServer.warningDismiss":`I understand — close`,"app.name":`home-hosted`,"app.tagline":`Process supervisor control panel`,"bind.customHint":`One of this machine's addresses, e.g. its Wi-Fi or VPN IP — reachable only on that network.`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.reset":`Reset`,"common.sending":`Sending…`,"common.keepIt":`Keep it`,"common.remove":`Remove`,"common.close":`Close`,"common.delete":`Delete`,"common.edit":`Edit`,"common.add":`Add`,"common.copy":`Copy`,"common.copied":`Copied`,"common.copyFailed":`Could not copy`,"common.enabled":`Enabled`,"common.disabled":`Disabled`,"common.none":`None`,"common.unknown":`unknown`,"common.selectAll":`Select all`,"common.selectNone":`Select none`,"common.name":`Name`,"common.label":`Label`,"common.hostname":`Hostname`,"common.port":`Port`,"common.command":`Command`,"common.environment":`Environment`,"common.memory":`Memory`,"common.cpu":`CPU`,"common.disk":`Disk`,"common.uptime":`Uptime`,"common.status":`Status`,"common.actions":`Actions`,"common.details":`Details`,"common.confirmQuestion":`{label}?`,"common.unset":`unset`,"common.never":`never`,"common.now":`now`,"common.dismiss":`Dismiss`,"common.notAvailable":`n/a`,"common.loading":`Loading…`,"connection.live":`Live`,"connection.connecting":`Connecting`,"connection.reconnecting":`Reconnecting`,"connection.liveUpdates":`Live updates`,"editor.title":`Edit configuration`,"editor.description":`Writes overrides to {file}; anything left alone keeps inheriting the defaults.`,"editor.inSync":`in sync`,"editor.process":`Process`,"editor.processDescription":`What gets spawned, where, and with which environment.`,"editor.labelPlaceholder":`falls back to the id`,"editor.argumentsHint":`One per line; {port} {host} {home} {projectDir} {dataRoot} {id} {label} {cwd} {bind} {lanIp} are substituted.`,"editor.portTitle":`Port & binding`,"editor.portDescription":`How the port is preflighted and where the process is reachable.`,"editor.bindHint":`A custom IPv4 the config already sets stays selectable.`,"editor.lifecycle":`Lifecycle`,"editor.lifecycleDescription":`Whether the supervisor owns this entry at all.`,"editor.save":`Save to servers.config.json`,"editor.changesTitle":`Unsaved changes`,"editor.changesDescription":`What Save would write to servers.config.json.`,"editor.nothingToSave":`Nothing to save.`,"editor.changedElsewhere":`This entry changed elsewhere while you were editing. Saving writes only your own edits; reload to see the new values and drop yours.`,"editor.reloadChanged":`Reload`,"health.disabled":`Not checked`,"health.unknown":`Not probed`,"health.healthy":`Healthy`,"health.unhealthy":`Unhealthy`,"history.start":`Started`,"history.exit":`Exited`,"history.crash":`Crashed`,"history.forcedRestart":`Forced restart`,"history.unhealthy":`Unhealthy`,"history.recovered":`Recovered`,"history.deploy":`deploy`,"host.loadPerCpu":`Load / cpu`,"host.cpuTemp":`CPU temp`,"host.samplingOff":`Host sampling is off`,"host.samplingOffDescription":`Turn it on in Settings to collect load, memory, disk and temperature.`,"host.swap":`Swap`,"host.cpus":`CPUs`,"host.loadAverage":`Load 1 / 5 / 15`,"host.memoryUsed":`Memory used`,"host.sampled":`Sampled`,"host.filesystems":`Filesystems`,"host.thresholdsBreached":`Thresholds breached`,"host.cpuUsage":`CPU usage`,"host.loadHint":`Load counts runnable tasks, it is not a percentage: 1.00 is one core’s worth of work. CPU usage above is the real share of this machine.`,"host.perCpu":`per cpu`,"host.samplingOffCompact":`Sampling is disabled in Settings.`,"host.statusOff":`off`,"host.unavailableReading":`unavailable on this platform`,"host.lastSampled":`last sampled {ago} — not a current reading`,"jobs.title":`Jobs`,"jobs.subtitle":`Short-lived commands on a schedule. The exit code is the outcome.`,"jobs.create":`New job`,"jobs.empty":`No jobs in this workspace yet`,"jobs.id":`Job id`,"jobs.idHint":`Lowercase letters, digits, - and _. It names this job’s log and history.`,"jobs.args":`Args`,"jobs.argsHint":`One per line`,"jobs.schedule":`Schedule`,"jobs.scheduleHint":`5-field cron in the host’s local time: minute hour day month weekday`,"jobs.next":`Next`,"jobs.last":`Last`,"jobs.neverRan":`never ran`,"jobs.noNextRun":`no next run`,"jobs.running":`running`,"jobs.disabled":`disabled`,"jobs.runNow":`Run now`,"jobs.exitCode":`exit {code}`,"jobs.disable":`disable`,"jobs.disableTitle":`Disable this job?`,"jobs.disableHint":`It stops running on its schedule until you enable it again. A run in flight still finishes.`,"jobs.enable":`enable`,"jobs.remove":`remove`,"jobs.removeTitle":`Remove this job?`,"jobs.removeHint":`The job goes, with its run history, its log and its stored secret values. A run in flight is stopped first.`,"jobs.actions":`Actions`,"jobs.editTitle":`Edit {id}`,"jobs.save":`Save`,"jobs.idImmutable":`The id names this job’s log and history, so it cannot be changed. Remove the job and create it under a new id instead.`,"jobs.timeoutHint":`How long one run may take before the panel stops it, up to a day`,"jobs.cwd":`Working directory`,"jobs.timeout":`Timeout (s)`,"jobs.secretEnv":`Secret environment names`,"jobs.secretEnvHint":`One name per line. Set its value in the box below; values live in the workspace secrets file, not here.`,"jobs.secretsNeedJob":`A value can be set once the job exists — the panel keys its values by the job id.`,"jobs.secretsSaveFirst":`A new name can take a value once the job is saved — the panel refuses a value for a name the stored job does not declare.`,"jobs.secretGroup":`Secret environment`,"jobs.logRefresh":`Refresh`,"jobs.stop":`Stop`,"jobs.runs":`runs`,"jobs.runningFor":`running for {duration}`,"jobs.fileError":`The jobs file cannot be read, so none of its jobs run: {error}`,"jobs.problem":`Not running — fix it in jobs.config.json: {problem}`,"jobs.description":`Description`,"jobs.nextRuns":`Next runs: {runs}`,"jobs.catchUp":`Catch up a missed run`,"jobs.catchUpHint":`When the panel starts after an occurrence it missed, run that one once`,"jobs.preset.hourly":`Hourly`,"jobs.preset.daily":`Daily`,"jobs.preset.weekly":`Weekly`,"jobs.preset.monthly":`Monthly`,"jobs.summary.everyMinute":`Every minute`,"jobs.summary.every":`Every {duration}`,"jobs.summary.hourly":`Every hour at :{minute}`,"jobs.summary.daily":`Every day at {time}`,"jobs.summary.weekly":`Every {days} at {time}`,"jobs.summary.monthly":`Day {day} of every month at {time}`,"jobs.outcome.running":`running`,"jobs.outcome.ok":`ok`,"jobs.outcome.failed":`failed`,"jobs.outcome.timeout":`timed out`,"jobs.outcome.cancelled":`stopped`,"jobs.outcome.spawn-error":`did not start`,"jobs.outcome.interrupted":`interrupted`,"jobs.trigger.schedule":`scheduled`,"jobs.trigger.manual":`by hand`,"jobs.trigger.catch-up":`catch-up`,"jobs.runsTitle":`Runs — {id}`,"jobs.runsDescription":`The last 50 runs, and what the one you pick wrote`,"jobs.noRuns":`This job has not run yet`,"jobs.runsList":`Runs, newest first`,"jobs.runTruncated":`Only the newest lines of this run are shown`,"killPort.trigger":`Kill what holds port {port}`,"killPort.title":`Kill the process on port {port}?`,"killPort.body":`It is asked to stop first, and killed only if it ignores that. Anything this panel supervises is refused, so a managed server cannot be lost this way.`,"killPort.confirm":`Kill it`,"language.label":`Language`,"language.select":`Select a language`,"lifecycle.restartTitle":`Restart policy`,"lifecycle.restartDescription":`Backoff between attempts after a crash.`,"lifecycle.restartOnCrash":`Restart on crash`,"lifecycle.maxRetries":`Max retries`,"lifecycle.maxRetriesHint":`Attempts before the server is left crashed.`,"lifecycle.baseDelay":`Base delay (ms)`,"lifecycle.factor":`Backoff factor`,"lifecycle.maxDelay":`Max delay (ms)`,"lifecycle.resetAfter":`Reset after (ms)`,"lifecycle.resetAfterHint":`A run this long clears the retry counter.`,"lifecycle.healthTitle":`Health check`,"lifecycle.healthDescription":`How readiness is probed once the process is up.`,"lifecycle.probe":`Probe this server`,"lifecycle.probeType":`Probe type`,"lifecycle.probePort":`TCP port — connection only`,"lifecycle.probeHttp":`HTTP request — assert a response`,"lifecycle.interval":`Interval (ms)`,"lifecycle.timeout":`Timeout (ms)`,"lifecycle.unhealthyAfter":`Unhealthy after`,"lifecycle.unhealthyAfterHint":`Consecutive failed probes.`,"lifecycle.forceRestartAfter":`Force restart after (ms)`,"lifecycle.forceRestartAfterHint":`0 disables it.`,"lifecycle.startTimeout":`Start timeout (ms)`,"lifecycle.httpScheme":`Scheme`,"lifecycle.allowInvalidCert":`Accept any certificate`,"lifecycle.allowInvalidCertHint":`For a self-signed backend. Only meaningful over https.`,"lifecycle.httpPath":`HTTP path`,"lifecycle.httpMethod":`HTTP method`,"lifecycle.expectStatus":`Expect status`,"lifecycle.expectStatusHint":`Blank accepts anything below.`,"lifecycle.expectStatusBelow":`Healthy below status`,"lifecycle.expectBody":`Body must contain`,"lifecycle.expectBodyPlaceholder":`optional substring`,"lifecycle.headBodyHint":`HEAD has no response body, so this check is ignored — use GET, or clear it.`,"lifecycle.stopTitle":`Stop behaviour`,"lifecycle.stopDescription":`How the process tree is asked to go away.`,"lifecycle.signal":`Signal`,"lifecycle.signalTerm":`SIGTERM — ask it to stop`,"lifecycle.signalInt":`SIGINT — interrupt (Ctrl-C)`,"lifecycle.signalKill":`SIGKILL — kill immediately`,"lifecycle.grace":`Grace period (ms)`,"lifecycle.killGroup":`Kill the whole process group`,"lifecycle.killPortHolders":`Also kill whatever holds the port`,"login.title":`Sign in to continue`,"login.firstRunTitle":`This panel has no password yet`,"login.firstRunSubtitle":`Anything on this machine can reach it. Set a password right after you are in.`,"login.authOffTitle":`Authentication is turned off`,"login.authOffSubtitle":`The panel only listens on loopback, which is the only thing protecting it right now.`,"login.subtitle":`The control panel is protected. Enter an account id and its secret to continue.`,"login.showPassword":`Show password`,"login.hidePassword":`Hide password`,"login.signIn":`Sign in`,"login.openDashboard":`Open the dashboard`,"login.exposed":`Exposed`,"login.defaultPasswordWarning":`Still on the first-run secret, which {command} prints on the machine. Change it under Settings — binding beyond 127.0.0.1 stays refused until you do.`,"login.noPasswordWarning":`No account exists. Open Settings from this machine to create one, or run {command}.`,"login.sessionNote":`Sessions stay signed in for {duration} after the last visit — each request extends that window. Signing out clears this browser only.`,"login.servedFromThisMachine":`served from this machine`,"login.accountId":`Account id`,"login.password":`Secret`,"logs.emptyHint":`No output yet.`,"logs.noMatches":`Nothing matches that search or stream filter.`,"logs.searchPlaceholder":`Search this output`,"logs.searchLabel":`Search the log output`,"logs.clearSearch":`Clear the search`,"logs.prevMatch":`Previous match`,"logs.nextMatch":`Next match`,"logs.showTimestamps":`Show timestamps`,"logs.hideTimestamps":`Hide timestamps`,"logs.timestampsShort":`ts`,"logs.pause":`Pause`,"logs.follow":`Follow`,"logs.clearHint":`Clear the in-memory buffer`,"logs.clearLabel":`Clear the log buffer`,"logs.downloadHint":`Download the persisted file`,"logs.downloadLabel":`Download the log file`,"logs.outputLabel":`Log output`,"logs.jumpToLatest":`Jump to latest`,"logs.streaming":`streaming`,"logs.paused":`paused`,"logs.snapshot":`snapshot`,"logs.linesOf":`{count} of {total} lines`,"logs.matches":`{count} matches`,"logs.streamAll":`All`,"logs.streamOut":`out`,"logs.streamErr":`err`,"logs.streamSys":`sys`,"metric.emptyHint":`collecting…`,"metric.notRunning":`not running`,"nav.global":`Global`,"nav.workspace":`Workspace`,"nav.others":`Others`,"nav.overview":`Overview`,"nav.servers":`Servers`,"nav.logs":`Logs`,"nav.jobs":`Jobs`,"nav.workspaceSettings":`Workspace settings`,"nav.globalOverview":`Global Overview`,"nav.globalSettings":`Global settings`,"nav.reverseProxy":`Reverse Proxy`,"nav.navigation":`Navigation`,"nav.closeNavigation":`Close navigation`,"nav.hostVitals":`Host vitals`,"notice.configError":`The config could not be read: {error}`,"notice.configErrorHint":`The panel keeps running the config it already had; fix {path} and it reloads on its own.`,"notice.defaultPassword":`This panel is still on the first-run secret it started with.`,"notice.defaultPasswordHint":`Change it in Global settings — binding beyond 127.0.0.1 stays refused until you do.`,"notice.noPassword":`Authentication is on but no password is set, so nothing is being asked for.`,"notice.noPasswordHint":`Set one in Global settings to actually lock the panel.`,"notice.exposed":`This panel is reachable beyond 127.0.0.1.`,"notice.exposedHint":`Keep the password strong, or put a TLS-terminating proxy in front of it.`,"notice.authOff":`Authentication is disabled — the panel is only protected by its loopback bind.`,"onPortConflict.block":`block — refuse to start`,"onPortConflict.warn":`warn — start anyway`,"onPortConflict.follow":`follow — adopt a detached restart of itself`,"onPortConflict.reclaim":`reclaim — replace it with a supervised copy`,"onPortConflict.kill":`kill — stop whatever holds the port`,"palette.placeholder":`Search servers, actions, settings…`,"palette.search":`Search`,"palette.openServer":`Open {label}`,"palette.serverLogs":`Logs for {label}`,"palette.startServer":`Start {label}`,"palette.stopServer":`Stop {label}`,"palette.restartServer":`Restart {label}`,"palette.goOverview":`Go to Overview`,"palette.goGlobalOverview":`Go to Global Overview`,"palette.goGlobalSettings":`Go to Global settings`,"palette.goProxy":`Go to Reverse Proxy`,"palette.goServers":`Go to Servers`,"palette.goLogs":`Go to Logs`,"palette.goWorkspaceSettings":`Go to Workspace settings`,"palette.startAll":`Start every enabled server here`,"palette.switchWorkspace":`Switch to {label}`,"palette.globalSetting":`Global setting: {label}`,"palette.workspaceSetting":`Workspace setting: {label}`,"palette.theme":`{theme} theme`,"palette.groupServers":`Servers`,"palette.groupActions":`Actions`,"palette.groupNavigate":`Navigate`,"palette.groupWorkspaces":`Workspaces`,"palette.groupAppearance":`Appearance`,"palette.navigate":`navigate`,"palette.run":`run`,"palette.noMatches":`Nothing matches “{query}”.`,"palette.goJobs":`Go to Jobs`,"presets.pickTitle":`What do you want to run?`,"presets.pickDescription":`Pick one and it fills the form for you. You can change every field afterwards.`,"presets.startFromScratch":`Start from scratch`,"presets.minecraft":`Minecraft`,"presets.minecraftHint":`A Java server: set the working directory to the folder holding server.jar, and raise the memory limit if it is a big world.`,"presets.node":`A Node app`,"presets.nodeHint":`A Node app: set the working directory to your project and change server.js if your entry file is named differently.`,"presets.python":`A Python server`,"presets.pythonHint":`A quick file server: it serves the working directory, so point that at the folder you want to share.`,"presets.docker":`Docker Compose`,"presets.dockerHint":`Runs docker compose up in the working directory; set the port to what the file publishes.`,"presets.bot":`A chat bot`,"presets.botHint":`A chat bot: set the working directory to its folder and change bot.js to your script. A bot has no port, so leave the port blank.`,"presets.jellyfin":`Jellyfin`,"presets.jellyfinHint":`A media server: start it once and set up your library in Jellyfin’s own web page on port 8096.`,"presets.gitea":`Gitea (rootless)`,"presets.giteaHint":`The rootless binary: set the working directory to its folder, then finish setup in its web page on port 3000. Git over SSH uses port 2222.`,"presets.mongodb":`MongoDB`,"presets.mongodbHint":`A database: the working directory holds its data folder, so add that folder to the entry’s backup paths.`,"presets.backToPresets":`Back to presets`,"proxy.account.automatic":`Automatic (the only account that can answer)`,"proxy.account.noTxt":`no TXT support`,"proxy.account.noCredentials":`no credentials`,"proxy.account.gone":`That account is no longer configured.`,"proxy.account.emptyHint":`DNS-01 writes the challenge record here. Empty uses the only account that can answer a challenge, when there is one.`,"proxy.account.cannotWrite":`A {provider} account cannot write TXT records, so it cannot answer a DNS-01 challenge.`,"proxy.account.noCredentialsYet":`No credentials are stored for this {provider} account yet.`,"proxy.account.through":`The challenge is written through this {provider} account.`,"proxy.account.noZones":`no zones — Automatic will not use it`,"proxy.certificate.title":`Uploaded certificates`,"proxy.certificate.description":`Served by routes set to “Uploaded certificate”. Everything else — public or local — is certified by the engine on its own.`,"proxy.certificate.add":`Add certificate`,"proxy.certificate.emptyTitle":`No certificate uploaded`,"proxy.certificate.emptyDescription":`A route set to “Uploaded certificate” needs a pair covering its hostname, or the engine has nothing to serve for it.`,"proxy.certificate.daysLeft":`{days} days left`,"proxy.certificate.subject":`Subject`,"proxy.certificate.issuer":`Issuer`,"proxy.certificate.validUntil":`Valid until`,"proxy.certificate.covers":`Covers`,"proxy.certificate.noSans":`no hostnames in its SANs`,"proxy.certificate.removeAria":`Remove {name}`,"proxy.certificate.removeQuestion":`Remove “{name}”?`,"proxy.certificate.removeBody":`The pair is deleted from disk. A route still set to “Uploaded certificate” keeps serving the engine's own certificate until you change it, and the panel refuses this while one still serves it.`,"proxy.certificate.removeIt":`Remove it`,"proxy.certificate.stored":`“{label}” stored.`,"proxy.certificate.removed":`“{name}” removed.`,"proxy.certificateDialog.title":`Add a certificate`,"proxy.certificateDialog.description":`The pair is stored on disk under its id, and a route set to “Uploaded certificate” can serve it.`,"proxy.certificateDialog.label":`Label`,"proxy.certificateDialog.labelPlaceholder":`Home wildcard`,"proxy.certificateDialog.id":`Id`,"proxy.certificateDialog.idHint":`names the files on disk`,"proxy.certificateDialog.certFile":`Certificate file (.pem, .crt)`,"proxy.certificateDialog.keyFile":`Private key file (.pem, .key)`,"proxy.certificateDialog.pasteCert":`Or paste the certificate`,"proxy.certificateDialog.pasteKey":`Or paste the private key`,"proxy.certificateDialog.certPlaceholder":`-----BEGIN CERTIFICATE-----`,"proxy.certificateDialog.keyPlaceholder":`-----BEGIN PRIVATE KEY-----`,"proxy.certificateDialog.store":`Store the certificate`,"proxy.certificateDialog.errorLabel":`a label is required`,"proxy.certificateDialog.errorId":`the id must start with a letter or digit, then letters, digits, dash or underscore`,"proxy.certificateDialog.errorTaken":`“{id}” is already used by another certificate`,"proxy.certificateDialog.errorCertificate":`paste or choose the certificate`,"proxy.certificateDialog.errorPrivateKey":`paste or choose the private key`,"proxy.engine.title":`Engine`,"proxy.engine.description":`The reverse proxy itself. The panel downloads the current build, supervises it and applies its configuration through the engine's own admin API.`,"proxy.engine.notInFrame":`The proxy state is not in this panel's frame yet.`,"proxy.engine.readFailed":`The engine could not be read`,"proxy.engine.notInstalled":`No engine installed`,"proxy.engine.installNote":`Installing downloads the current {engine} release the panel supervises — about 46 MB, once. Nothing is exposed until a route is added and the proxy is switched on.`,"proxy.engine.version":`Version`,"proxy.engine.notProbed":`not probed yet`,"proxy.engine.source":`Source`,"proxy.engine.sourceCustom":`a path configured by hand`,"proxy.engine.sourceDownloaded":`downloaded by the panel`,"proxy.engine.size":`Size`,"proxy.engine.binary":`Binary`,"proxy.engine.copyPath":`Copy the binary path`,"proxy.engine.address":`Live address`,"proxy.engine.process":`Process`,"proxy.engine.certificates":`Certificates`,"proxy.engine.noCert":`no public certificate yet`,"proxy.engine.expiresSoon":`soonest expires in {days} days`,"proxy.engine.acme":`ACME certificates`,"proxy.engine.localCa":`Local CA`,"proxy.engine.dns01":`DNS-01`,"proxy.engine.tcpUdp":`TCP/UDP`,"proxy.engine.documentation":`{engine} documentation`,"proxy.engine.failed":`The engine reported a failure`,"proxy.engine.setcapHint":`A privileged port (below 1024) needs this once on Linux:`,"proxy.engine.copyCommand":`Copy the command`,"proxy.engine.install":`Install engine`,"proxy.engine.start":`Start`,"proxy.engine.stop":`Stop`,"proxy.engine.apply":`Apply configuration`,"proxy.engine.revert":`Revert`,"proxy.engine.revertHint":`Go back to the configuration that applied before the last one`,"proxy.engine.update":`Update engine`,"proxy.listener.title":`Listener & certificates`,"proxy.listener.description":`Where the proxy listens. 80 and 443 are what a router forwards and what an ACME challenge expects; a port below 1024 needs a privileged bind.`,"proxy.listener.unprivilegedPorts":`unprivileged ports`,"proxy.listener.run":`Run the reverse proxy`,"proxy.listener.runHint":`Saved with Save settings; the panel starts or stops the engine to match.`,"proxy.listener.httpPort":`HTTP port`,"proxy.listener.httpPortHint":`ACME HTTP-01 challenges and the redirect to HTTPS.`,"proxy.listener.httpsPort":`HTTPS port`,"proxy.listener.httpsPortHint":`Where certificates are served.`,"proxy.listener.useFallback":`Use {http} / {https}`,"proxy.listener.useStandard":`Use 80 / 443`,"proxy.listener.forwardHint":`Running unprivileged — forward 80 and 443 to these ports on your router.`,"proxy.listener.privilegedTitle":`A port below 1024 needs a privileged bind`,"proxy.listener.privilegedBody":`Running the panel as your own user cannot bind 80 or 443 without permission. Either grant it once {how} and restart the engine, or keep {http}/{https} and forward 80/443 from your router. On Windows the port is free to bind, but something else may hold it.`,"proxy.listener.privilegedWithSetcap":`with {command} on the engine binary`,"proxy.listener.email":`ACME account e-mail`,"proxy.listener.emailPlaceholder":`you@example.com`,"proxy.listener.emailHint":`Let's Encrypt uses it to warn you about an expiring certificate. A local-only name gets the engine's own CA and needs none.`,"proxy.listener.emailNeededTitle":`An e-mail is needed for automatic HTTPS`,"proxy.listener.emailNeededBody":`“{host}” is a public hostname, so the engine asks a CA for a certificate and the account address is required. Fill it in, switch the route's TLS off, or turn on the staging endpoint while you try things out.`,"proxy.listener.staging":`Use the ACME staging endpoint`,"proxy.listener.stagingHint":`Untrusted certificates and no rate-limit burn while you try things out.`,"proxy.listener.dns01":`Answer challenges with DNS-01`,"proxy.listener.dns01Hint":`The panel writes the challenge record through a route's DNS account, so no inbound port is needed to get a certificate.`,"proxy.listener.resolvers":`Check the record against`,"proxy.listener.resolversPlaceholder":`1.1.1.1, 8.8.8.8`,"proxy.listener.resolversHint":`Nameservers the engine reads the record from; empty uses its own. Needed where split-horizon DNS shows it a different view.`,"proxy.listener.noAccountTitle":`No DNS account can answer a challenge`,"proxy.listener.noAccountBody":`DNS-01 is on, but no account has credentials it can use. Add one under Workspace Settings → Dynamic DNS, or public names stay on the port challenges and wait for a CA that cannot reach them.`,"proxy.listener.manyAccountsTitle":`Each public route has to pick an account`,"proxy.listener.manyAccountsBody":`More than one account can answer, so “Automatic” cannot choose. Pick one per route, or those names stay on the port challenges.`,"proxy.listener.accountNote":`Each route picks its own account, so names in different zones each get the right one. A route left on “Automatic” uses the only account the table names. A name no account answers stays on the port challenges.`,"proxy.listener.pendingNote":`A public name whose certificate is still being issued is reachable in the meantime — over HTTPS with a temporary untrusted certificate, or over plain HTTP with a page naming the ports to forward.`,"proxy.listener.pendingSave":`Pending save`,"proxy.listener.runPendingHint":`Not applied yet: Save starts or stops the engine to match. The engine buttons above act right away.`,"proxy.retry.inFallback":`~8 hours`,"proxy.retryButton.force":`Force retry certificate`,"proxy.retryButton.question":`Ask the CA again for {host}?`,"proxy.retryButton.body":`The engine failed to obtain a CA certificate for this hostname previously and is using its local CA. It retries automatically every {retryIn}.`,"proxy.retryButton.warning":`Retrying now will kill this route and make it unavailable for a bit, are you sure to continue?`,"proxy.retryButton.leave":`Leave it`,"proxy.retryButton.now":`Retry now`,"proxy.routeDialog.titleEdit":`Edit route`,"proxy.routeDialog.titleAdd":`Add route`,"proxy.routeDialog.description":`A hostname, what it forwards to, and how it is served over TLS.`,"proxy.routeDialog.hostname":`Hostname`,"proxy.routeDialog.hostnamePlaceholder":`gitea.example.com`,"proxy.routeDialog.path":`Path prefix`,"proxy.routeDialog.pathPlaceholder":`/optional`,"proxy.routeDialog.pathHint":`Empty serves the whole host.`,"proxy.routeDialog.target":`Target`,"proxy.routeDialog.tls":`TLS`,"proxy.routeDialog.dnsAccount":`DNS account`,"proxy.routeDialog.localNote":`A local-only name is signed by the engine's own CA, so no DNS account is involved.`,"proxy.routeDialog.workspace":`Workspace`,"proxy.routeDialog.server":`Server`,"proxy.routeDialog.noServers":`this workspace has no servers`,"proxy.routeDialog.stoppedNote":`A server that is stopped is not routed: the row shows “No upstream” until it runs again.`,"proxy.routeDialog.upstream":`Upstream`,"proxy.routeDialog.upstreamPlaceholder":`http://10.0.0.5:8080`,"proxy.routeDialog.upstreamHint":`A literal address, including the port. A scheme is optional.`,"proxy.routeDialog.panelNote":`Serving the control panel needs authentication on and a password that is not the default — the panel refuses the save otherwise.`,"proxy.routeDialog.save":`Save route`,"proxy.routeDialog.skipVerify":`Skip certificate verification for this upstream`,"proxy.routeDialog.skipVerifyHint":`For a backend that serves https with a certificate this machine does not trust (usually self-signed). It turns off the check between the proxy and that backend, so anything able to impersonate it is trusted.`,"proxy.routes.title":`Routes`,"proxy.routes.description":`One public hostname per service. A route may point at a supervised server in any workspace, at this panel, or at a literal upstream.`,"proxy.routes.add":`Add route`,"proxy.routes.cannotSaveTitle":`These routes cannot be saved as they stand`,"proxy.routes.cannotRoute":`{host} cannot be routed`,"proxy.routes.emptyTitle":`No routes yet`,"proxy.routes.emptyDescription":`Add one to expose a server through a domain — the engine gets the certificate on its own.`,"proxy.routes.addFirst":`Add the first route`,"proxy.routes.columnHostname":`Hostname`,"proxy.routes.columnTarget":`Target`,"proxy.routes.columnUpstream":`Upstream`,"proxy.routes.columnTls":`TLS`,"proxy.routes.columnState":`State`,"proxy.routes.columnOn":`On`,"proxy.routes.openInTab":`Open {url} in a new tab`,"proxy.routes.noHostname":`no hostname yet`,"proxy.routes.toggle":`Route {name}`,"proxy.routes.edit":`Edit {name}`,"proxy.routes.remove":`Remove {name}`,"proxy.status.certified":`certificate ready`,"proxy.status.localCa":`engine CA`,"proxy.status.uploaded":`uploaded pair`,"proxy.status.awaitingCa":`waiting for the CA`,"proxy.status.failed":`certificate failed`,"proxy.status.fellBack":`Fell back to Local CA`,"proxy.status.serving":`Serving`,"proxy.status.disabled":`Disabled`,"proxy.status.noUpstream":`No upstream`,"proxy.status.error":`Error`,"proxy.status.unapplied":`Not applied yet`,"proxy.status.off":`Off`,"proxy.status.stopped":`Stopped`,"proxy.status.starting":`Starting`,"proxy.status.running":`Running`,"proxy.status.unsupported":`Unsupported`,"proxy.target.server":`A supervised server`,"proxy.target.panel":`This control panel`,"proxy.target.external":`A literal upstream`,"proxy.target.controlPanel":`control panel`,"proxy.target.noServer":`no server picked`,"proxy.target.noUpstream":`no upstream`,"proxy.tls.auto":`Automatic — the engine decides`,"proxy.tls.off":`Off — plain HTTP`,"proxy.tls.manual":`Uploaded certificate`,"proxy.tls.plain":`plain HTTP`,"proxy.tls.uploaded":`uploaded certificate`,"proxy.tls.letsEncrypt":`Let’s Encrypt`,"proxy.tls.engineCa":`engine CA (local)`,"proxy.tls.hintOff":`Plain HTTP: no certificate is served for this hostname.`,"proxy.tls.hintManual":`Serves the certificate pair uploaded below.`,"proxy.tls.hintEmpty":`A public hostname gets an ACME certificate; a local-only name gets the engine’s own CA.`,"proxy.tls.hintPublic":`A public hostname, so the engine asks a CA for a certificate — an ACME account e-mail is needed.`,"proxy.tls.hintLocal":`A local-only name, so the engine signs it with its own locally-trusted CA.`,"proxy.validation.idPattern":`the id must start with a letter or digit, then letters, digits, dash or underscore`,"proxy.validation.hostRequired":`a hostname is required`,"proxy.validation.hostPattern":`a hostname of letters, digits, dots and dashes, e.g. home.example.com`,"proxy.validation.hostTaken":`"{host}" is already routed for this path`,"proxy.validation.pathSlash":`a path prefix starts with /`,"proxy.validation.pathSpace":`a path prefix cannot contain a space`,"proxy.validation.idTaken":`route id "{id}" is used twice`,"proxy.validation.workspaceRequired":`pick the workspace that owns the server`,"proxy.validation.serverRequired":`pick a server in that workspace`,"proxy.validation.url":`an upstream like http://10.0.0.5:8080`,"proxy.view.title":`Reverse Proxy`,"proxy.view.description":`Expose your servers through domains, with automatic HTTPS via 80/443 or a DNS challenge.`,"proxy.view.dnsNote":`For DNS-01, add the domain's DNS provider to any workspace under Workspace Settings → Dynamic DNS; a route can then pick that account, from any workspace.`,"proxy.view.readFailed":`The reverse proxy could not be read`,"proxy.view.reading":`Reading the reverse proxy…`,"proxy.view.engineInstalled":`Engine installed`,"proxy.view.engineStarting":`Engine starting`,"proxy.view.engineStopping":`Engine stopping`,"proxy.view.configApplied":`Configuration applied`,"proxy.view.configReverted":`Configuration reverted`,"proxy.view.settingsSaved":`Settings saved.`,"proxy.view.settingsSavedToast":`Settings saved`,"proxy.view.retryFailed":`the retry failed`,"proxy.view.retryAsked":`asking the CA again for {host}`,"proxy.view.fieldChanged":`field changed`,"proxy.view.noChanges":`No unsaved changes`,"proxy.view.discard":`Discard changes`,"proxy.view.save":`Save settings`,"proxy.view.concurrentEdit":`Someone else changed {ids} while you had this page open. Reload to see their version, then reapply your edit.`,"proxy.view.savedNotApplied":`Saved, but the engine did not apply it: {error}`,"proxy.view.savedNotAppliedToast":`Saved, not applied`,"secretEnv.env":`Secret environment names`,"secretEnv.envPlaceholder":`KEY_NAME`,"secretEnv.envHint":`One name per line. Set its value in the box below; values live in the workspace secrets file, not here.`,"secretEnv.valuesTitle":`Secret values`,"secretEnv.valuesDescription":`Written to the workspace secrets file and never sent back by the panel — only whether a value exists`,"secretEnv.valuesEmpty":`No secret names yet — add them above.`,"secretEnv.isSet":`set`,"secretEnv.notSet":`not set`,"secretEnv.placeholder":`enter a value…`,"secretEnv.placeholderSet":`a value is stored — enter a new one to replace it`,"secretEnv.save":`save`,"secretEnv.remove":`remove`,"secretEnv.saved":`{name} was stored`,"secretEnv.removed":`{name} was removed`,"secretEnv.removeTitle":`Remove the stored value for {name}?`,"secretEnv.removeHint":`The panel never shows a secret value back, so this one cannot be recovered — you would have to set it again.`,"secretEnv.unsaved":`needs saving`,"secretEnv.saveFirst":`save the config first`,"secretEnv.saveFirstHint":`A new name can take a value once the config is saved — the panel refuses a value for a name the stored entry does not declare.`,"serverCard.open":`Open {url}`,"serverCard.adoptedHint":`This process replaced itself: the panel adopted the successor instead of starting a second copy. Stop still works, its output stays where the successor sent it.`,"serverCard.detached":`detached`,"serverCard.persistentHint":"This entry runs under its own nanny, so it keeps running when the panel stops, restarts or is killed. `home-hosted down` reports it instead of stopping it; only an explicit stop does.","serverCard.persistent":`persistent`,"serverCard.disabled":`disabled`,"serverCard.autostart":`autostart`,"serverCard.healthProbe":`Health probe`,"serverCard.notProbed":`not probed`,"serverCard.restarts":`Restarts`,"serverCard.pid":`PID`,"serverCard.rss":`RSS`,"serverCard.procs":`Procs`,"serverCard.portFree":`free`,"serverCard.portInUse":`in use`,"serverCard.uptime24h":`24h up`,"serverCard.probe":`Probe`,"serverCard.crashes24h":`24h crashes`,"serverCard.lastCrash":`Last crash`,"serverCard.unhealthyFor":`Unhealthy for {duration}`,"serverCard.nextAttempt":`Next attempt {when}`,"serverCard.start":`Start`,"serverCard.stop":`Stop`,"serverCard.restart":`Restart`,"serverCard.detailsHint":`Live logs and full telemetry`,"serverCard.moreActions":`More actions for {label}`,"serverCard.disable":`Disable server`,"serverCard.enable":`Enable server`,"serverCard.removeFromAutostart":`Remove from autostart`,"serverCard.autostartWithPanel":`Autostart with the panel`,"serverCard.clearLogBuffer":`Clear log buffer`,"serverCard.removeServer":`Remove server`,"serverCard.removeTitle":`Remove this server?`,"serverCard.removeDescription":`{label} is removed from servers.config.json: its process is stopped, and its logs and crash history are deleted with it.`,"serverCard.statusField":`status`,"serverCard.idField":`id`,"serverCard.restartRequired":`Restart to apply`,"serverCard.restartRequiredHint":`The config changed since this process started — command, args, environment, port or a stop setting. It keeps running the old one until you restart it.`,"serverCard.deploy":`Deploy`,"serverCard.deploying":`Deploying…`,"serverCard.deployHint":`Run the deploy steps, then restart`,"serverCard.lastDeployFailed":`The last deploy failed — this is still the previous version`,"serverCard.portNone":`no port`,"serverCard.portListening":`listening`,"serverCard.openOutput":`Open output`,"serverDeploy.title":`Deploy steps`,"serverDeploy.description":`What to run to bring this entry up to date. A failed step stops the sequence and leaves the running process alone`,"serverDeploy.steps":`Steps, one per line`,"serverDeploy.stepsPlaceholder":`make build`,"serverDeploy.stepsHint":"`command arg arg`. Runs in the entry's working directory, with its environment","serverDeploy.restart":`Restart after a successful deploy`,"serverForm.workingDirectory":`Working directory`,"serverForm.cwdHint":`The folder it runs in. A relative path starts from the folder you launched the panel from.`,"serverForm.arguments":`Arguments`,"serverForm.portHint":`Blank means the server has no port to probe or preflight.`,"serverForm.bindAddress":`Bind address`,"serverForm.autostart":`Start with the panel`,"serverForm.autostartHint":`Starts it automatically every time the panel starts.`,"serverForm.persistent":`Persistent`,"serverForm.persistentHint":`Keeps running when the panel shuts down; stopping the panel leaves it up and only reports it.`,"serverForm.envHint":`KEY=value per line, exported to the process. Placeholders like {port} work here too.`,"serverForm.dataEnvs":`Data envs`,"serverForm.dataEnvsHint":`ENV=path per line — exported to the process and backed up automatically.`,"serverForm.envFile":`Env file`,"serverForm.envFilePlaceholder":`optional KEY=value file`,"serverForm.envFileHint":`Loaded at spawn; its values override env.`,"serverForm.dependsOn":`Depends on`,"serverForm.dependsOnHint":`Comma separated; started first and waited for until healthy, stopped last.`,"serverForm.backupPaths":`Extra backup paths`,"serverForm.backupPathsHint":`One per line, placeholders allowed; data envs are captured already.`,"serverForm.backupIgnore":`Ignore known generated files when backing this up`,"serverForm.backupIgnoreHint":`Skips node_modules, dist, .next and the other caches nothing restores from.`,"serverForm.bootstrap":`Bootstrap`,"serverForm.bootstrapDescription":`A one-off command run before the first start — installs, migrations, downloads.`,"serverForm.runBootstrap":`Run a bootstrap`,"serverForm.bootstrapHint":`Off means the entry has none and the key is sent as null.`,"serverForm.timeoutSeconds":`Timeout (s)`,"serverForm.runOnce":`Only once per session`,"serverForm.runOnceHint":`Off means every start re-runs it.`,"serverForm.bootstrapArgs":`Bootstrap arguments`,"serverForm.bootstrapArgsHint":`One per line; same placeholders as the main arguments.`,"serverForm.bootstrapEnv":`Bootstrap environment`,"serverForm.bootstrapEnvHint":`KEY=value per line, exported to the bootstrap process only.`,"serverForm.onPortConflict":`On port conflict`,"serverForm.logBufferLines":`Log buffer lines`,"serverForm.maxRssMb":`Max RSS (MB)`,"serverForm.maxRssHint":`Restart above this; blank or 0 disables it.`,"serverForm.enabledHint":`Off keeps the entry in the config but refuses to start it.`,"serverForm.backupHooks":`Backups: dump and load`,"serverForm.backupHooksDescription":`For a database engine: take its own consistent dump before a backup, and load it back after a restore. {dumpDir} is the directory both commands see.`,"serverForm.dumpEnabled":`Dump before backup`,"serverForm.dumpEnabledHint":`A failed dump refuses the backup, so an archive is never half-done.`,"serverForm.dumpCommand":`Dump command`,"serverForm.dumpArgs":`Dump arguments`,"serverForm.dumpArgsHint":`One per line. For example, --archive={dumpDir}/db.archive writes into the folder that goes into the backup.`,"serverForm.loadEnabled":`Load after restore`,"serverForm.loadEnabledHint":`Runs on the entry’s next start, once it is answering: mongorestore needs a live server.`,"serverForm.loadCommand":`Load command`,"serverForm.loadArgs":`Load arguments`,"serverForm.loadArgsHint":`One per line, reading from the same {dumpDir} the dump wrote to.`,"serverForm.hookEnv":`Environment`,"serverForm.example":`e.g. {value}`,"settings.accounts.title":`Accounts`,"settings.accounts.description":`One account signs in to the panel and authenticates the API. A secret is shown once — the panel keeps only a hash.`,"settings.accounts.shownOnce":`New secret — copy it now`,"settings.accounts.shownOnceDetail":`This is the only time it is shown. Sign in as {id}, or send it as Authorization: Bearer {id}:secret.`,"settings.accounts.loading":`Loading…`,"settings.accounts.empty":`No accounts yet`,"settings.accounts.id":`Account id`,"settings.accounts.idPlaceholder":`admin`,"settings.accounts.idHint":`Lowercase letters, digits, - and _, at most 40 characters. This is what you type to sign in.`,"settings.accounts.label":`Label`,"settings.accounts.labelPlaceholder":`the deploy bot`,"settings.accounts.scopes":`Scopes`,"settings.accounts.workspaces":`Workspaces`,"settings.accounts.lastUsed":`Last used`,"settings.accounts.actions":`Actions`,"settings.accounts.allWorkspaces":`every workspace`,"settings.accounts.neverUsed":`never used`,"settings.accounts.firstRun":`first-run`,"settings.accounts.disabled":`disabled`,"settings.accounts.disable":`disable`,"settings.accounts.enable":`enable`,"settings.accounts.revoke":`revoke`,"settings.accounts.revokeTitle":`Revoke this account?`,"settings.accounts.revokeHint":`Its sessions end immediately and the secret stops working. This cannot be undone.`,"settings.accounts.workspaceLimit":`Limit to workspaces`,"settings.accounts.create":`Create account`,"settings.accounts.scopeRead":`read — every GET`,"settings.accounts.scopeReadHint":`look at state, logs and metrics`,"settings.accounts.scopeLifecycle":`lifecycle — start and stop`,"settings.accounts.scopeLifecycleHint":`start, stop, restart, free a port, clear logs`,"settings.accounts.scopeConfig":`config — change entries and settings`,"settings.accounts.scopeConfigHint":`write servers, workspaces, settings and backups`,"settings.accounts.scopeAdmin":`admin — manage accounts`,"settings.accounts.scopeAdminHint":`create and revoke accounts, and change settings`,"settings.accounts.disableTitle":`Disable this account?`,"settings.accounts.disableHint":`Its sessions end immediately and its secret stops working until you enable it again.`,"settings.accounts.scopeProxy":`proxy — the reverse proxy`,"settings.accounts.scopeProxyHint":`add routes, run the engine and manage certificates`,"settings.accounts.panelWideNote":`*: this scope is always panel-wide — a workspace limit cannot narrow it`,"settings.accounts.workspaceEvery":`Every workspace`,"settings.accounts.workspaceSelected":`Only these`,"settings.accounts.workspacePickOne":`Pick at least one workspace, or choose every workspace.`,"settings.accounts.editTitle":`Edit {id}`,"settings.accounts.save":`Save account`,"settings.accounts.lastUsedHint":`The latest sign-in or API request made with this account.`,"settings.auth.policyTitle":`Access policy`,"settings.auth.policyDescription":`Authentication applies whether the panel is on loopback or exposed to the network.`,"settings.auth.requirePassword":`Require an account`,"settings.auth.requirePasswordHint":`Every request needs a signed-in session.`,"settings.auth.sessionLifetime":`Session lifetime (s)`,"settings.auth.sessionLifetimeHint":`Idle timeout in seconds: 604800 is one week of no activity. Each request restarts it.`,"settings.auth.cookieSecure":`Cookie Secure`,"settings.auth.cookieSecureAuto":`Auto — only over HTTPS`,"settings.auth.cookieSecureAlways":`Always`,"settings.auth.cookieSecureNever":`Never — plain HTTP`,"settings.auth.trustProxy":`Behind a reverse proxy`,"settings.auth.trustProxyOff":`No — ignore x-forwarded-*`,"settings.auth.trustProxyLoopback":`Yes, from this machine only`,"settings.auth.trustProxyAny":`Yes, from any caller`,"settings.auth.trustProxyHint":`Trust x-forwarded-* for the client address and protocol. 'From this machine only' is the safe choice for a proxy on the same host. 'From any caller' believes the caller's own header, so login lockout counts per forged address and can be bypassed.`,"settings.auth.maxLoginAttempts":`Max login attempts`,"settings.auth.maxLoginAttemptsHint":`Failures before a temporary lockout.`,"settings.auth.lockout":`Lockout (s)`,"settings.auth.defaultPasswordTitle":`Your account is still on the first-run secret`,"settings.auth.defaultPasswordText":`Set your own secret in Accounts above. Binding beyond {address} stays refused until you do.`,"settings.auth.blockedTitle":`This listener is being refused`,"settings.auth.noPasswordTitle":`Authentication is on but no password is set`,"settings.auth.noPasswordText":`Nothing is actually required yet, and binding beyond {address} stays refused until a password exists.`,"settings.auth.exposedTitle":`Reachable beyond 127.0.0.1`,"settings.auth.exposedText":`Keep the password strong, or put a TLS-terminating proxy in front of the panel.`,"settings.auth.changePassword":`Change your secret`,"settings.auth.setPassword":`Set a password`,"settings.auth.passwordDescription":`Stored as a scrypt hash in the secrets file, never in the config.`,"settings.auth.currentPassword":`Current secret`,"settings.auth.newPassword":`New secret`,"settings.auth.repeatPassword":`Repeat new secret`,"settings.auth.passwordMismatch":`The two passwords do not match.`,"settings.auth.updatePassword":`Update secret`,"settings.auth.setPasswordAndEnable":`Set password and enable auth`,"settings.auth.clearPassword":`Turn authentication off`,"settings.auth.clearPasswordConfirm":`Confirm`,"settings.auth.clearPasswordTitle":`Turn authentication off?`,"settings.auth.clearPasswordHint":`Anyone reaching the panel is let straight in. The accounts stay on disk — this is not the same act as revoking one.`,"settings.auth.shortPasswordTitle":`That is a short password`,"settings.auth.shortPasswordText":`It is allowed, but longer is the only thing standing between the network and this panel.`,"settings.auth.passwordUpdated":`Password updated. Other sessions were signed out.`,"settings.auth.passwordCleared":`Password cleared and authentication disabled.`,"settings.auth.exposureLength":`{n} characters is the bar for a panel reachable from the network — below it, binding beyond 127.0.0.1 stays refused.`,"settings.auth.exposureLengthTitle":`This is below the length the panel exposes behind`,"settings.backup.createTitle":`Create a backup`,"settings.backup.createDescription":`Pick what this archive captures. Nothing is written until you create it.`,"settings.backup.chooseItems":`Choose items`,"settings.backup.partialCapture":`Only the chosen items are captured.`,"settings.backup.withoutGlobalSettings":`Without the global settings, a restore can only place a workspace where the target panel already declares it.`,"settings.backup.password":`Password (optional)`,"settings.backup.passwordHint":`Encrypts the archive; restoring it asks for the same password.`,"settings.backup.create":`Create backup`,"settings.backup.chooseItemsFor":`{label} — choose items`,"settings.backup.subDescription":`A workspace can be captured whole or only its settings, servers, secrets and declared data paths.`,"settings.backup.selectedOf":`{selected} of {total} selected`,"settings.backup.nothingSelectable":`This workspace declares nothing selectable yet.`,"settings.backup.apply":`Apply`,"settings.backup.created":`Backup created.`,"settings.backup.leafSettingsHint":`Server defaults, log retention and notifications`,"settings.backup.leafServersHint":`Every entry in servers.config.json`,"settings.backup.leafJobsHint":`Every job in jobs.config.json`,"settings.backup.leafSecretsHint":`Telegram bot token and DDNS credentials`,"settings.backup.leafDataHint":`A declared data path`,"settings.backup.pathFromOrigin":`{path} — from {origin}`,"settings.backup.entrySettingsHint":`Listener, auth, host vitals and the backups policy`,"settings.backup.entrySecretsHint":`Password hash and API token hash`,"settings.backup.entryTlsHint":`The panel's own certificate pair`,"settings.backup.entryWorkspaceHint":`Its settings, servers, secrets and declared data paths`,"settings.backup.entryGlobalSettings":`Global settings`,"settings.backup.entryGlobalSecrets":`Global secrets (accounts, API tokens)`,"settings.backup.entryTlsCertificate":`TLS certificate`,"settings.backup.leafSettings":`Settings`,"settings.backup.leafServers":`Servers`,"settings.backup.leafJobs":`Jobs`,"settings.backup.leafSecrets":`Secrets`,"settings.backup.secretPassword":`Password`,"settings.backup.secretPasswordHint":`The panel's own password hash; restoring it reinstates the old password`,"settings.backup.secretApiToken":`API token`,"settings.backup.secretApiTokenHint":`The long-lived token scripts and agents use`,"settings.backup.secretTelegram":`Telegram bot token`,"settings.backup.secretTelegramHint":`Used for notifications`,"settings.backup.secretDdns":`DDNS credentials`,"settings.backup.secretDdnsHint":`Provider credentials, kept sealed with their key`,"settings.backup.restoreItemLabel":`{workspace}: {item}`,"settings.backup.noteMissing":`not set`,"settings.backup.noteCovered":`covered by {path}`,"settings.backup.noteAlreadyDeclared":`already declared by {origin}`,"settings.backup.noteContainsBackupDir":`contains the backup directory`,"settings.backup.noteMissingFromArchive":`missing from the archive`,"settings.backup.noteDeclaredByBackup":`declared by the backup's config, which is not being restored`,"settings.backup.noteNotDeclared":`not declared by this config, nor by the backup`,"settings.backup.noteRestoredFrom":`restored from {path}`,"settings.backup.createdWarnings":`The archive was written; worth a look:`,"settings.backup.secretAccounts":`Accounts`,"settings.backup.secretApiTokens":`API tokens`,"settings.backup.secretServerEnv":`Server secret environment`,"settings.backup.secretJobEnv":`Job secret environment`,"settings.backups.policyTitle":`Policy`,"settings.backups.policyDescription":`How many archives the panel keeps, and the extra paths every one of them captures.`,"settings.backups.allow":`Allow backups`,"settings.backups.allowHint":`Off stops new archives; whatever is already on disk stays downloadable and restorable.`,"settings.backups.offTitle":`Backups are off`,"settings.backups.offText":`Nothing new is archived until this is back on. The archives below can still be downloaded, restored and deleted.`,"settings.backups.keep":`Keep`,"settings.backups.keepHint":`Older archives are pruned after each backup.`,"settings.backups.schedule":`Automatic backups`,"settings.backups.scheduleHint":`The panel writes one archive on its own, on this interval.`,"settings.backups.scheduleHours":`Every (hours)`,"settings.backups.scheduleHoursHint":`24 is a daily archive.`,"settings.backups.scheduleKeep":`Keep automatic`,"settings.backups.scheduleKeepHint":`Manual archives are counted separately, by Keep.`,"settings.backups.scheduleLast":`Last automatic: {when}`,"settings.backups.scheduleFailed":`Last attempt failed at {when}: {message}`,"settings.backups.extraPaths":`Extra paths`,"settings.backups.extraPathsHint":`One per line, captured in every archive on top of what each workspace declares.`,"settings.backups.extraPathsPlaceholder":`{home}/myapp-data`,"settings.backups.archiveDirectory":`Archive directory`,"settings.backups.copyArchiveDirectory":`Copy the archive directory`,"settings.backups.changeDirectory":`Changing it is a file-level decision: edit {path}.`,"settings.backups.theSettingsFile":`the settings file`,"settings.backups.capturesTitle":`What a backup captures`,"settings.backups.capturesDescription":`Pick these in the create dialog. A workspace can be taken whole or only its settings, servers, secrets and declared data paths.`,"settings.backups.nothingSelectable":`Nothing is selectable yet.`,"settings.backups.fromOrigin":`from {origin}`,"settings.backups.notCaptured":`not captured`,"settings.backups.generatedSkipped":`generated directories skipped`,"settings.backups.included":`included`,"settings.backups.skipped":`skipped`,"settings.backups.workspacesNote":`This panel serves {count} workspaces; each is its own selectable entry.`,"settings.backups.archivesTitle":`Archives`,"settings.backups.archivesDescription":`Stored in the backup directory and downloadable at any time.`,"settings.backups.create":`Create backup…`,"settings.backups.restore":`Restore…`,"settings.backups.noArchives":`No archives yet`,"settings.backups.noArchivesEnabled":`Create one now to capture the panel and whichever workspaces you pick.`,"settings.backups.noArchivesDisabled":`Nothing has been archived yet, and backups are off.`,"settings.backups.encrypted":`encrypted`,"settings.backups.download":`Download`,"settings.backups.restoreAction":`Restore`,"settings.backups.confirmDelete":`Confirm delete`,"settings.backups.deleted":`Deleted {name}.`,"settings.backups.kindSettings":`settings`,"settings.backups.kindServers":`servers`,"settings.backups.kindJobs":`jobs`,"settings.backups.kindSecrets":`secrets`,"settings.backups.kindTls":`tls`,"settings.backups.kindData":`data`,"settings.backups.kindWorkspace":`workspace`,"settings.backups.scopeTitle":`What an automatic backup contains`,"settings.backups.scopeHint":`Left as it is, an automatic archive takes the whole default scope — every workspace and the extra paths. A choice here is written down as ids, so a workspace declared later is only covered when nothing was narrowed.`,"settings.backups.scopeChoose":`Choose…`,"settings.backups.scopeDialogTitle":`What an automatic backup contains`,"settings.backups.scopeDialogDescription":`Every automatic archive will capture this, unattended.`,"settings.backups.scopeMode":`Mode`,"settings.backups.scopeOnly":`Only these`,"settings.backups.scopeExcept":`Everything except`,"settings.backups.scopeOnlyHint":`The archive carries only what is ticked.`,"settings.backups.scopeExceptHint":`The archive carries everything except what is ticked.`,"settings.backups.scopeNothing":`Nothing is ticked — an archive of nothing is refused, so tick at least one item.`,"settings.backups.scopeSummaryAll":`Everything (the default scope)`,"settings.backups.scopeSummaryOnly":`Only {count} selected`,"settings.backups.scopeSummaryExcept":`Everything except {count}`,"settings.ddns.statePending":`Waiting`,"settings.ddns.stateOk":`Updated`,"settings.ddns.stateUnchanged":`Current`,"settings.ddns.stateSkipped":`Skipped`,"settings.ddns.stateError":`Failed`,"settings.ddns.passFinished":`Dynamic DNS pass finished`,"settings.ddns.credentialsSaved":`Credentials saved for {account}`,"settings.ddns.credentialsRemoved":`Credentials removed for {account}`,"settings.ddns.loadErrorTitle":`Dynamic DNS settings could not be loaded`,"settings.ddns.description":`Keep these hostnames pointed at this machine's public address. Credentials live in the secrets file, never in servers.config.json.`,"settings.ddns.checking":`checking`,"settings.ddns.needsAttention":`needs attention`,"settings.ddns.watching":`watching`,"settings.ddns.updateNow":`Update now`,"settings.ddns.enabled":`Keep dynamic DNS updated`,"settings.ddns.enabledHint":`A pass runs on the interval below; a provider is only called when the address actually changed.`,"settings.ddns.interval":`Check every (s)`,"settings.ddns.intervalHint":`60 is one minute; the default is five.`,"settings.ddns.ttl":`TTL (s)`,"settings.ddns.ttlHint":`1 means automatic where the provider supports it.`,"settings.ddns.detectIpv4":`Detect IPv4`,"settings.ddns.detectIpv4Hint":`Needed for A records.`,"settings.ddns.detectIpv6":`Detect IPv6`,"settings.ddns.detectIpv6Hint":`Needed for AAAA records.`,"settings.ddns.accountsTitle":`Provider accounts`,"settings.ddns.accountsDescription":`One entry per API token. Credentials are stored on the server and never come back.`,"settings.ddns.credentialsSet":`credentials saved`,"settings.ddns.noCredentials":`no credentials`,"settings.ddns.credentials":`Credentials`,"settings.ddns.removeAccountBlocked":`Remove the hostnames using this account first`,"settings.ddns.noAccounts":`No accounts yet. Pick a provider and add one.`,"settings.ddns.provider":`Provider`,"settings.ddns.accountId":`Account id`,"settings.ddns.accountIdPlaceholder":`cloudflare-home`,"settings.ddns.accountIdHint":"The account id names the account and keys its stored credentials; lowercase letters, digits, `-` and `_`.","settings.ddns.hostnamesTitle":`Hostnames`,"settings.ddns.hostnamesDescription":`The whole list to keep updated — suba.domain.com, domain.xyz and so on.`,"settings.ddns.account":`Account`,"settings.ddns.recordA":`A (IPv4)`,"settings.ddns.recordAaaa":`AAAA (IPv6)`,"settings.ddns.aaaaUnsupported":`This provider cannot manage AAAA records.`,"settings.ddns.proxied":`Proxied`,"settings.ddns.proxiedHint":`Cloudflare serves this record through its own network.`,"settings.ddns.ipv6Off":`IPv6 detection is off`,"settings.ddns.advanced":`Advanced`,"settings.ddns.advancedHint":`registered domain and TTL override`,"settings.ddns.registeredDomain":`Registered domain`,"settings.ddns.registeredDomainPlaceholder":`example.co.uk`,"settings.ddns.registeredDomainHint":`Only when the provider has to be told the apex, e.g. three-label domains.`,"settings.ddns.ttlOverride":`TTL override (s)`,"settings.ddns.ttlOverrideHint":`Blank uses the value above.`,"settings.ddns.noHostnames":`No hostnames yet.`,"settings.ddns.hostnamePlaceholder":`home.example.com`,"settings.ddns.lastPass":`Last pass`,"settings.ddns.ipv4Value":`IPv4 {address}`,"settings.ddns.ipv6Value":`IPv6 {address}`,"settings.ddns.type":`Type`,"settings.ddns.state":`State`,"settings.ddns.address":`Address`,"settings.ddns.detail":`Detail`,"settings.ddns.credentialsTitle":`Provider credentials`,"settings.ddns.credentialsDescription":`Saved fields are never sent back. Saving replaces every field for this account and runs a pass right away.`,"settings.ddns.optional":`Optional.`,"settings.ddns.whereToGet":`Where to get these`,"settings.ddns.forget":`Forget`,"settings.ddns.forgetConfirm":`Forget them`,"settings.ddns.forgetTitle":`Forget the stored credentials?`,"settings.ddns.forgetHint":`They are removed from disk and cannot be read back; you would need to paste them again.`,"settings.ddns.saveCredentials":`Save credentials`,"settings.defaults.description":`Applied to every entry that does not set its own value.`,"settings.defaults.enabledHint":`New entries start enabled.`,"settings.defaults.autostart":`Autostart with the panel`,"settings.defaults.bind":`Bind`,"settings.defaults.onPortConflict":`On port conflict`,"settings.defaults.conflictBlock":`Block the start`,"settings.defaults.conflictWarn":`Warn and start anyway`,"settings.defaults.conflictFollow":`Follow a detached restart of itself`,"settings.defaults.conflictReclaim":`Replace a detached restart with a supervised copy`,"settings.defaults.conflictKill":`Kill whatever holds the port`,"settings.defaults.logBufferLines":`Log buffer lines`,"settings.defaults.logBufferLinesHint":`Kept in memory per server.`,"settings.destination.title":`Destinations`,"settings.destination.generalTitle":`General`,"settings.destination.generalDescription":`What every destination follows unless it sets its own.`,"settings.destination.description":`Where events go. Each one may follow the general settings above, or carry its own.`,"settings.destination.addTelegram":`Add Telegram`,"settings.destination.addWebhook":`Add webhook`,"settings.destination.empty":`No destination yet. Add a Telegram chat or a webhook to start receiving alerts.`,"settings.destination.chatId":`Chat id`,"settings.destination.chatIdHint":`Use Detect chats to fill this from the bot's updates.`,"settings.destination.botToken":`Bot token`,"settings.destination.saveToken":`Save token`,"settings.destination.tokenSet":`token set`,"settings.destination.noToken":`no token`,"settings.destination.detectChats":`Detect chats`,"settings.destination.sendTest":`Send a test`,"settings.destination.remove":`Remove`,"settings.destination.removeQuestion":`Remove {name}?`,"settings.destination.removeBody":`Its events stop being sent, and any stored bot token for it is removed.`,"settings.destination.ownSettings":`Own settings`,"settings.destination.ownSettingsHint":`Off follows the general settings above.`,"settings.destination.lastSend":`Last send: {result} {when}`,"settings.destination.testSent":`Test sent.`,"settings.host.title":`Thresholds`,"settings.host.description":`A threshold of 0 disables that alert. Breaches notify once, and once more on recovery.`,"settings.host.enabled":`Sample this machine`,"settings.host.enabledHint":`Load, memory, swap, disk and CPU temperature, on the interval below.`,"settings.host.interval":`Interval (s)`,"settings.host.intervalHint":`How often the host is sampled and alerts are checked.`,"settings.host.diskPaths":`Disk paths`,"settings.host.diskPathsHint":`One per line; templates like {home} are expanded.`,"settings.host.diskUsed":`Disk used (%)`,"settings.host.memoryUsed":`Memory used (%)`,"settings.host.swapUsed":`Swap used (%)`,"settings.host.zeroDisables":`0 disables the alert.`,"settings.host.loadPerCpu":`Load per CPU`,"settings.host.loadPerCpuHint":`1-minute load average divided by the core count — a count, not a percentage: 1 means one core’s worth of waiting work. CPU usage is shown separately.`,"settings.host.tempCelsius":`CPU temperature (°C)`,"settings.host.tempCelsiusHint":`Above this is alerted; the tile reads n/a where the OS exposes no sensor.`,"settings.host.tempCommand":`Temperature command`,"settings.host.tempCommandHint":`Prints one number in °C. For a machine with no readable sensor — a WSL2 guest above all. Empty uses the built-in probe; docs/SERVERS.md has the WSL2 setup.`,"settings.host.tempCommandPlaceholder":`e.g. cat /sys/class/hwmon/hwmon0/temp1_input`,"settings.host.tempCommandTimeout":`Command timeout (ms)`,"settings.host.tempCommandTimeoutHint":`Killed after this long, so a hung helper cannot stall a sample.`,"settings.host.breachingNow":`Breaching now:`,"settings.host.nothingBreaching":`Nothing is breaching right now.`,"settings.host.wslTitle":`WSL2 temperature`,"settings.host.wslDescription":`A WSL2 guest exposes no CPU sensor. This reads the temperature through the Windows host instead — one button, and you can remove it again.`,"settings.host.wslSetup":`Set it up`,"settings.host.wslRemove":`Stop using it`,"settings.host.wslReading":`Reading {celsius}°C`,"settings.host.wslFailed":`It did not answer: {reason}`,"settings.host.wslNeedsLibrary":`LibreHardwareMonitor is not installed on Windows. Press the button to fetch it.`,"settings.host.wslDownloadNow":`Download and finish`,"settings.host.wslDownloadConfirm":`Download (~6 MB)`,"settings.host.wslDownloadTitle":`Download LibreHardwareMonitor?`,"settings.host.wslDownloadHint":`A third-party tool (~6 MB) from its GitHub release, pinned and sha256-checked. It reads the CPU temperature on the Windows side, where this guest cannot.`,"settings.interface.description":`The panel is a static site: keep the stock one, or serve your own build from the state directory.`,"settings.interface.currentlyServing":`Currently serving`,"settings.interface.copyDirectory":`Copy the UI directory`,"settings.interface.fileCount":`{count} files`,"settings.interface.sourceStock":`stock`,"settings.interface.sourceCustom":`custom`,"settings.interface.unnamed":`unnamed`,"settings.interface.panelVersion":`Panel version`,"settings.interface.copyPanelVersion":`Copy the panel version`,"settings.interface.panelVersionHint":`The release this panel process is running — {command} prints the same number.`,"settings.interface.panelName":`Panel name`,"settings.interface.panelNameHint":`Shown in the sidebar by the stock UI. A custom UI may show its own name instead.`,"settings.interface.uploadLabel":`Upload a UI build (.zip with an index.html)`,"settings.interface.docsHint":`See {docs} for the API contract. If a custom UI breaks the panel, {command} puts the stock one back from the terminal.`,"settings.interface.resetName":`Reset name`,"settings.interface.confirmRevert":`Confirm revert`,"settings.interface.revertToStock":`Revert to stock`,"settings.interface.revertTitle":`Delete the uploaded UI?`,"settings.interface.revertHint":`It is deleted, not archived — re-installing means uploading the zip again.`,"settings.interface.install":`Install UI`,"settings.interface.installed":`UI replaced with {name} — refresh the page`,"settings.interface.yourBuild":`your build`,"settings.interface.restored":`stock UI restored — refresh the page`,"settings.interface.nothingInstalled":`no custom UI was installed`,"settings.listener.description":`Where the panel answers. Moving this restarts the panel and sends this page to the new address.`,"settings.listener.port":`Control port`,"settings.listener.portHint":`Default 3999.`,"settings.listener.bind":`Bind`,"settings.listener.bindLocal":`Local`,"settings.listener.bindLan":`LAN`,"settings.listener.bindCustom":`Custom`,"settings.listener.bindLanHint":`0.0.0.0 — reachable from the whole network.`,"settings.listener.bindLocalHint":`127.0.0.1 — this machine only.`,"settings.listener.bindCustomHint":`A specific interface address you type in below.`,"settings.listener.ipv4":`IPv4 address`,"settings.listener.ipv4Placeholder":`192.168.1.20`,"settings.listener.ipv4Error":`Enter an IPv4 address, for example 192.168.1.20.`,"settings.listener.ipv4Hint":`Binding beyond 127.0.0.1 needs a real password.`,"settings.listener.openBrowser":`Open a browser when the panel comes up`,"settings.listener.liveAddress":`Live address`,"settings.listener.restartRequired":`restart required`,"settings.listener.copyLiveAddress":`Copy the live address`,"settings.listener.liveAddressHint":`What the listener is bound to right now; saved changes take effect after the panel rebinds.`,"settings.listener.allowedHosts":`Allowed public hostnames`,"settings.listener.allowedHostsHint":`One per line. Only needed for a name an external proxy or tunnel forwards here — IPs, local names and the panel’s own proxy routes always work. *.example.com matches subdomains.`,"settings.logs.title":`Retention`,"settings.logs.description":`The live view always comes from memory; these files survive a restart and feed the Logs page.`,"settings.logs.persist":`Keep logs on disk`,"settings.logs.persistHint":`Turn off to hold everything in memory only.`,"settings.logs.maxBytes":`Rotate at (bytes)`,"settings.logs.maxBytesHint":`Per server, before rolling to .1, .2, …`,"settings.logs.keep":`Keep rotated files`,"settings.logs.directory":`Logs directory`,"settings.logs.copyDirectory":`Copy the logs directory`,"settings.logs.browseHint":`Browse and download these files on the {logs} page.`,"settings.paths.dataRoot":`Data root`,"settings.paths.dataRootHint":`HHOSTED_HOME — global settings, workspaces, TLS, backups and the UI.`,"settings.paths.globalSettings":`Global settings`,"settings.paths.globalSettingsHint":`settings.json — listener, auth, TLS policy, host vitals, backups.`,"settings.paths.projectDir":`Project directory`,"settings.paths.projectDirHint":`Base for relative entry paths.`,"settings.paths.panelAddress":`Panel address`,"settings.paths.panelAddressHint":`Where this control panel is live right now.`,"settings.paths.serversConfig":`Servers config`,"settings.paths.serversConfigHint":`{label}'s servers.config.json.`,"settings.paths.workspaceSettings":`Workspace settings`,"settings.paths.workspaceSettingsHint":`Server defaults, log retention, notifications, DDNS.`,"settings.paths.logs":`Logs`,"settings.paths.logsHint":`Persisted output for this workspace.`,"settings.paths.copyPath":`Copy {label}`,"settings.paths.whereThingsLive":`Where things live`,"settings.paths.whereThingsLiveDescription":`Read-only. Copy a path straight into a shell or an editor.`,"settings.paths.workspaceFiles":`Workspace files`,"settings.paths.workspaceFilesDescription":`Each workspace owns its config, settings and log directory; nothing is shared between them.`,"settings.rebind.failed":`The control panel did not answer on {target}. Check the console for the new listener.`,"settings.restore.title":`Restore a backup`,"settings.restore.description":`Nothing is written until the plan is applied.`,"settings.restore.archive":`Archive`,"settings.restore.archiveHint":`A stored archive, or a .zip from this machine.`,"settings.restore.encryptedName":`{name} — encrypted`,"settings.restore.uploadOption":`Upload a file…`,"settings.restore.archiveFile":`Archive file (.zip)`,"settings.restore.unchangedTitle":`Nothing has changed yet`,"settings.restore.archiveLine":`Archive {name}.`,"settings.restore.uploadedArchive":`The uploaded archive.`,"settings.restore.passwordProtected":`This backup is password-protected.`,"settings.restore.password":`Password`,"settings.restore.checkAgain":`Check again with the password`,"settings.restore.choosePrompt":`Choose what to restore — {selected} of {total} selected.`,"settings.restore.willRestore":`Will restore: {items}.`,"settings.restore.skipped":`Skipped: {items}.`,"settings.restore.nothing":`nothing`,"settings.restore.restartNote":`The panel's own settings differ, so restart the panel afterwards.`,"settings.restore.reloadedNote":`Restored workspaces are reloaded immediately; entries marked autostart start on their own.`,"settings.restore.applyStored":`Apply this restore`,"settings.restore.applyUpload":`Restore the upload`,"settings.restore.restored":`Restored {count} item(s).`,"settings.restore.restoredWithNotes":`Restored {count} item(s) — {notes}.`,"settings.restore.noteReloaded":`the restored servers are live, autostart entries starting`,"settings.restore.noteRestart":`restart the panel to apply its own settings`,"settings.restore.reasonSymbolicLink":`symbolic link, skipped`,"settings.restore.reasonNotSelected":`not selected`,"settings.restore.reasonUnrestorable":`cannot be restored here`,"settings.restore.reasonInvalidSettings":`the archive's settings are not valid`,"settings.restore.reasonInvalidServers":`the archive's servers are not valid`,"settings.restore.reasonInvalidJobs":`the archive's jobs are not valid`,"settings.restore.reasonInvalidWorkspace":`not a usable workspace id`,"settings.restore.createdWorkspaces":`Created workspaces: {items}.`,"settings.restore.replacedUnderRunning":`Data was replaced under a running server — stop and start {items} so it reads the restored files.`,"settings.shell.noUnsavedChanges":`No unsaved changes`,"settings.shell.discard":`Discard changes`,"settings.shell.save":`Save settings`,"settings.shell.unsavedTitle":`Unsaved changes`,"settings.shell.nothingToSave":`Nothing to save.`,"settings.shell.leaveDescription":`Leave this page? These edits have not been saved and will be lost.`,"settings.shell.stay":`Stay on this page`,"settings.shell.leave":`Discard and leave`,"settings.telegram.title":`Telegram`,"settings.telegram.chatIdPlaceholder":`123456789 or @channel`,"settings.telegram.cooldown":`Cooldown per event (s)`,"settings.telegram.cooldownHint":`Per server and reason, so a flapping server cannot spam.`,"settings.telegram.onCrash":`Retries exhausted`,"settings.telegram.onUnhealthy":`Port unhealthy`,"settings.telegram.onForcedRestart":`Forced restart`,"settings.telegram.onRecovered":`Recovered`,"settings.telegram.onHost":`Host vitals breached`,"settings.telegram.onHostHint":`Disk, memory, swap, load and CPU temperature, per the thresholds under Host vitals.`,"settings.telegram.onDdns":`Dynamic DNS changed or failed`,"settings.telegram.onDdnsHint":`One message per pass that changed a record, and one for a pass that failed.`,"settings.telegram.tokenNote":`From @BotFather — a secret, never in servers.config.json.`,"settings.telegram.tokenPlaceholder":`123456789:AA…`,"settings.telegram.tokenSavedPlaceholder":`Saved — type a new token to replace it`,"settings.telegram.removeToken":`Remove token`,"settings.telegram.removeTokenTitle":`Remove the bot token?`,"settings.telegram.removeTokenHint":`Notifications stop until you paste a token again.`,"settings.telegram.tokenSaved":`Token saved.`,"settings.telegram.tokenSavedFor":`Token saved for @{username}.`,"settings.telegram.tokenRemoved":`Token removed.`,"settings.telegram.noChats":`No chats found. Send /start to the bot first, then detect again.`,"settings.tls.title":`HTTPS`,"settings.tls.description":`Upload a PEM pair and the panel serves TLS on its own listener. A self-signed certificate is fine on a home network.`,"settings.tls.serve":`Serve the panel over HTTPS`,"settings.tls.serveHint":`Saved with Save settings; the panel rebinds and this page follows it.`,"settings.tls.certificateTitle":`Certificate`,"settings.tls.certificateDescription":`PEM-encoded certificate and its private key. Both stay in the secrets file.`,"settings.tls.unusableTitle":`The stored certificate cannot be used`,"settings.tls.subject":`Subject`,"settings.tls.issuer":`Issuer`,"settings.tls.validUntil":`Valid until`,"settings.tls.days":`{count} days`,"settings.tls.privateKey":`Private key`,"settings.tls.keyMatches":`matches the certificate`,"settings.tls.keyMismatch":`does not match`,"settings.tls.fingerprint":`Fingerprint`,"settings.tls.copyFingerprint":`Copy the fingerprint`,"settings.tls.noCertificateTitle":`No certificate uploaded`,"settings.tls.noCertificateText":`Upload a PEM certificate and key below, then save. HTTPS is not served until a certificate is present.`,"settings.tls.certFile":`Certificate file (.pem, .crt)`,"settings.tls.keyFile":`Private key file (.pem, .key)`,"settings.tls.pasteCertificate":`Or paste the certificate`,"settings.tls.pasteKey":`Or paste the private key`,"settings.tls.saveCertificate":`Save certificate`,"settings.tls.removeCertificate":`Remove certificate`,"settings.tls.confirmRemove":`Confirm remove`,"settings.tls.removeTitle":`Remove the certificate?`,"settings.tls.removeHint":`TLS stays on but has nothing to serve, so the panel falls back to http once the listener rebinds.`,"settings.tls.stored":`Certificate stored.`,"settings.tls.removed":`Certificate removed.`,"settings.webhook.title":`Webhooks`,"settings.webhook.url":`URL`,"settings.webhook.urlPlaceholder":`https://ntfy.sh/my-topic`,"settings.webhook.method":`Method`,"settings.webhook.format":`Body`,"settings.webhook.formatJson":`JSON`,"settings.webhook.formatText":`Plain text`,"settings.webhook.formatHint":`JSON for Discord, Slack or your own endpoint; plain text for ntfy.`,"settings.webhook.headers":`Headers`,"settings.webhook.headersHint":`One Name: value per line, sent with every request. ntfy reads Title and Priority here; a bearer token goes in Authorization.`,"settings.webhook.presets":`Presets`,"settings.webhook.presetNtfy":`ntfy`,"settings.webhook.presetDiscord":`Discord`,"settings.webhook.presetSlack":`Slack`,"settings.webhook.removeQuestion":`Remove {name}?`,"settings.webhook.removeBody":`Its events stop being sent. The URL and headers are removed from this workspace's config.`,"status.stopped":`Stopped`,"status.starting":`Starting`,"status.running":`Running`,"status.stopping":`Stopping`,"status.backoff":`Restarting`,"status.crashed":`Crashed`,"status.conflict":`Port conflict`,"theme.label":`Theme: {theme}`,"theme.light":`light`,"theme.dark":`dark`,"theme.system":`system`,"toast.refreshFailed":`Refresh failed`,"toast.startFailed":`Could not start {id}`,"toast.stopFailed":`Could not stop {id}`,"toast.restartFailed":`Could not restart {id}`,"toast.startAllFailed":`Could not start every server`,"toast.startAllStarted":`Starting every enabled server`,"toast.stopOrphanFailed":`Could not stop the orphaned process “{id}”`,"toast.stopOrphanDone":`Orphaned process stopped`,"toast.stopAllFailed":`Could not stop every server`,"toast.stopAllStarted":`Stopping every server`,"toast.stopAllWithPersistent":`Stopping every server, persistent entries included`,"toast.autostartFailed":`Could not change autostart for {id}`,"toast.changeFailed":`Could not change {id}`,"toast.freePortFailed":`Could not free the port for {id}`,"toast.portFree":`Port {port} is free — start {id} now`,"toast.portHeld":`Port {port} is still held`,"toast.bindFailed":`Could not change the bind for {id}`,"toast.bindInvalid":`“{bind}” is not a bind value`,"toast.saveServerFailed":`Could not save {id}`,"toast.serverUpdated":`{id} updated`,"toast.saveSettingsFailed":`Could not save the settings`,"toast.clearLogsFailed":`Could not clear the logs for {id}`,"toast.logsCleared":`Buffer cleared`,"toast.addServerFailed":`Could not add the server`,"toast.serverAdded":`Server added`,"toast.removeServerFailed":`Could not remove {id}`,"toast.serverRemoved":`{id} removed`,"toast.readWorkspacesFailed":`Could not read the workspaces`,"toast.workspaceCreated":`Workspace “{workspace}” created`,"toast.workspaceCreateFailed":`Could not create the workspace`,"toast.workspaceRenamed":`Workspace renamed`,"toast.workspaceRenameFailed":`Could not rename the workspace`,"toast.workspaceDeleted":`Workspace deleted`,"toast.workspaceDeleteFailed":`Could not delete the workspace`,"toast.streamRefused":`Live updates stopped`,"toast.serverSavedRestart":`{id}: saved — restart to apply`,"topbar.search":`Search or run a command`,"topbar.openNavigation":`Open navigation`,"topbar.commandPalette":`Command palette`,"topbar.account":`Account`,"topbar.signedIn":`Signed in`,"topbar.signOut":`Sign out`,"topbar.workspaceLabel":`Workspace: {name}`,"validation.port":`Port must be a whole number between 1 and 65535.`,"validation.idRequired":`An id is required — it is the key this server lives under.`,"validation.idPattern":`The id must start with a lowercase letter or digit and contain only lowercase letters, digits, dashes and underscores.`,"validation.commandRequired":`A command is required — the executable the supervisor spawns.`,"validation.bootstrapCommand":`A bootstrap needs a command to run.`,"views.actions.addAServer":`Add a server`,"views.actions.addServer":`Add server`,"views.actions.startAll":`Start all`,"views.actions.stopAll":`Stop all`,"views.actions.stopAllIgnore":`Ignore`,"views.actions.stopAllWithPersistent":`With persistent`,"views.actions.stopAllQuestion":`Stop every server in this workspace?`,"views.actions.stopAllHint":`Persistent entries keep running unless you choose “With persistent”.`,"views.globalOverview.configError":`The config could not be read: {error}`,"views.globalOverview.degraded":`degraded`,"views.globalOverview.description":`Host vitals and every server from every workspace, grouped by where it lives.`,"views.globalOverview.emptyDescription":`Pick a workspace in the header and add the first process it should keep alive.`,"views.globalOverview.emptyTitle":`No servers anywhere yet`,"views.globalOverview.groupEmptyDescription":`Add one and it will show up here and on the workspace page.`,"views.globalOverview.groupRunning":`{running}/{total} running`,"views.globalOverview.hostUptime":`Host uptime`,"views.globalOverview.hostVitals":`Host vitals`,"views.globalOverview.hostVitalsNote":`This machine, shared by every workspace.`,"views.globalOverview.openWorkspace":`Open workspace`,"views.globalOverview.panelUptime":`Panel uptime`,"views.globalOverview.samplingOff":`sampling off`,"views.globalOverview.samplingOn":`sampling on`,"views.globalOverview.serving":`serving`,"views.globalOverview.workspaces":`Workspaces`,"views.globalSettings.authenticationDescription":`Who may sign in to this panel, and how a session is trusted.`,"views.globalSettings.backupsDescription":`One archive per capture, covering the panel and any workspace you pick.`,"views.globalSettings.changesDescription":`What Save would write to the panel's settings file.`,"views.globalSettings.description":`Listener, access, host vitals, backups, TLS and paths for this panel — shared by every workspace.`,"views.globalSettings.hostDescription":`Alert thresholds for this machine's own resources.`,"views.globalSettings.interfaceDescription":`Serve your own panel UI instead of the stock one.`,"views.globalSettings.languageDescription":`The language this panel is shown in, for this browser.`,"views.globalSettings.languageNote":`Your choice is kept in this browser and applies to the login page too. It does not change the panel's own log output or its API messages.`,"views.globalSettings.listenerDescription":`Where the control panel listens and how it announces itself.`,"views.globalSettings.loadErrorTitle":`Some file-only values could not be loaded`,"views.globalSettings.navLabel":`Global settings sections`,"views.globalSettings.pathsDescription":`Where home-hosted keeps its files, globally and per workspace.`,"views.globalSettings.saved":`Settings saved.`,"views.globalSettings.savedRebinding":`Settings saved — the panel is moving to a new address.`,"views.globalSettings.savedToast":`Settings saved`,"views.globalSettings.sectionAuthentication":`Authentication`,"views.globalSettings.sectionBackups":`Backups`,"views.globalSettings.sectionHost":`Host vitals`,"views.globalSettings.sectionInterface":`Interface`,"views.globalSettings.sectionListener":`Listener`,"views.globalSettings.sectionPaths":`Paths`,"views.globalSettings.sectionTls":`TLS`,"views.globalSettings.title":`Global settings`,"views.globalSettings.tlsDescription":`Serve the panel over HTTPS with your own certificate.`,"views.logs.clear":`Clear`,"views.logs.clearDescription":`{server} — the file on disk is truncated. The process keeps running and new lines are written from here on.`,"views.logs.clearFile":`Clear file`,"views.logs.clearNote":`Download it first if the output is still needed — this cannot be undone from the panel.`,"views.logs.clearTitle":`Clear the persisted log file?`,"views.logs.fileEmpty":`The persisted file is empty.`,"views.logs.loadedLines":`loaded {count} lines`,"views.logs.modeLive":`Live stream`,"views.logs.modePersisted":`Persisted`,"views.logs.noServersDescription":`Add one and its output will be persisted here.`,"views.logs.noServersTitle":`No servers`,"views.logs.nothingOnDisk":`Nothing on disk for this server — persistence is off, or it has not written anything yet.`,"views.logs.nothingPersisted":`nothing persisted`,"views.logs.persistedSummary":`{workspace} · {persisted} of {total} servers on disk · {size}`,"views.logs.persistedTitle":`Persisted logs`,"views.logs.pickServerDescription":`Persisted output and live streams are per server. Choose one from the list.`,"views.logs.pickServerTitle":`Pick a server`,"views.logs.reload":`Reload`,"views.logs.retentionNote":`Rotation and retention are set under Workspace settings → Logs.`,"views.logs.searchedLines":`searched {count} lines`,"views.logs.tailAria":`Tail size`,"views.logs.waitingOutput":`Connected — waiting for output.`,"views.logs.serverAria":`Server`,"views.logs.searchFile":`Search the whole file`,"views.logs.searchLive":`Filter the live output`,"views.overview.acrossTree":`across the tree`,"views.overview.cpuNow":`{value}% cpu now`,"views.overview.crashedOrUnhealthy":`crashed or unhealthy`,"views.overview.description":`Live state of every server in this workspace, refreshed over a single event stream.`,"views.overview.emptyDescription":`Add the first process this workspace should keep alive.`,"views.overview.emptyTitle":`No servers in this workspace`,"views.overview.enabled":`{count} enabled`,"views.overview.longestUptime":`Longest uptime`,"views.overview.needsAttention":`Needs attention`,"views.overview.notUp":`{count} not up`,"views.overview.nothingBroken":`nothing is broken`,"views.overview.nothingRunning":`nothing running`,"views.overview.openFullList":`Open the full list`,"views.overview.peak":`peak {value}`,"views.overview.processMemory":`Process memory`,"views.overview.recentActivity":`Recent activity`,"views.overview.running":`Running`,"views.overview.sampling":`resource history is sampled every 5 s and kept for this session`,"views.overview.stopped":`Stopped`,"views.overview.workspaceLabel":`workspace {id}`,"views.route.server":`Server`,"views.serverDetail.allServers":`All servers`,"views.serverDetail.autostart":`Autostart with the panel`,"views.serverDetail.backToServers":`Back to servers`,"views.serverDetail.bind":`Bind`,"views.serverDetail.bindCustom":`{bind} — custom`,"views.serverDetail.bindLan":`0.0.0.0 — every interface`,"views.serverDetail.bindLocal":`127.0.0.1 — this machine only`,"views.serverDetail.closeEditor":`Close editor`,"views.serverDetail.copyJson":`Copy the JSON config`,"views.serverDetail.crashes24":`24h crashes`,"views.serverDetail.dependencies":`Dependencies`,"views.serverDetail.detached":`detached`,"views.serverDetail.detachedHint":`This process replaced itself: the panel adopted the successor instead of starting a second copy. Stop still works, its output stays where the successor sent it.`,"views.serverDetail.disableServer":`Disable server`,"views.serverDetail.disabledNote":`Disabled — Start and Restart are refused until it is enabled again.`,"views.serverDetail.editHint":`Edit every field of this entry`,"views.serverDetail.effectiveConfig":`Effective configuration`,"views.serverDetail.effectiveConfigNote":`Defaults from Settings are already merged into these values.`,"views.serverDetail.enableServer":`Enable server`,"views.serverDetail.eventHistory":`Event history`,"views.serverDetail.eventHistoryNote":`Kept by the panel for 24 hours.`,"views.serverDetail.fieldArgs":`args`,"views.serverDetail.fieldBackupPaths":`backup paths`,"views.serverDetail.fieldBootstrap":`bootstrap`,"views.serverDetail.fieldCommand":`command`,"views.serverDetail.fieldCwd":`cwd`,"views.serverDetail.fieldDataEnvs":`data envs`,"views.serverDetail.fieldDependsOn":`depends on`,"views.serverDetail.fieldEnv":`env`,"views.serverDetail.fieldEnvFile":`env file`,"views.serverDetail.fieldHealth":`health`,"views.serverDetail.fieldLogBuffer":`log buffer`,"views.serverDetail.fieldOnPortConflict":`on port conflict`,"views.serverDetail.fieldPortBind":`port · bind`,"views.serverDetail.fieldRestart":`restart`,"views.serverDetail.fieldRssLimit":`RSS limit`,"views.serverDetail.fieldStop":`stop`,"views.serverDetail.fields":`Fields`,"views.serverDetail.goneDescription":`{id} is not in servers.config.json any more. It may have been removed from another tab.`,"views.serverDetail.goneTitle":`That server is gone`,"views.serverDetail.health":`Health`,"views.serverDetail.healthProbe":`Health probe`,"views.serverDetail.lastCrash":`Last crash`,"views.serverDetail.lastProbe":`Last probe`,"views.serverDetail.memoryRss":`Memory (RSS)`,"views.serverDetail.moreActions":`More actions for {label}`,"views.serverDetail.neverWritten":`This server has not written anything yet.`,"views.serverDetail.nextAttempt":`Next attempt`,"views.serverDetail.persistent":`persistent`,"views.serverDetail.persistentHint":"This entry runs under its own nanny, so it keeps running when the panel stops, restarts or is killed. `home-hosted down` reports it instead of stopping it; only Stop does.","views.serverDetail.pid":`PID`,"views.serverDetail.portFree":`free`,"views.serverDetail.portInUse":`in use`,"views.serverDetail.portState":`Port state`,"views.serverDetail.probeFailed":`The health probe has not passed.`,"views.serverDetail.probeFailedFor":`The health probe has not passed for {duration}.`,"views.serverDetail.processes":`Processes`,"views.serverDetail.rawJson":`Raw JSON`,"views.serverDetail.removeAutostart":`Remove from autostart`,"views.serverDetail.removeDescription":`{label} is removed from servers.config.json: its process is stopped, and its logs and crash history are deleted with it.`,"views.serverDetail.removeNote":`This cannot be undone from the panel — the entry has to be added back by hand or from a backup.`,"views.serverDetail.removeServer":`Remove server`,"views.serverDetail.removeTitle":`Remove this server?`,"views.serverDetail.restart":`Restart`,"views.serverDetail.restarts":`Restarts`,"views.serverDetail.sectionConfig":`Configuration`,"views.serverDetail.sectionHistory":`History`,"views.serverDetail.sectionOutput":`Live output`,"views.serverDetail.start":`Start`,"views.serverDetail.startsOnItsOwn":`Starts on its own. Add ids under {code} to order it after other servers.`,"views.serverDetail.stop":`Stop`,"views.serverDetail.telemetry":`Telemetry`,"views.serverDetail.telemetryNote":`Sampled every 5 s while this page is open.`,"views.serverDetail.unhealthyFor":`Unhealthy for`,"views.serverDetail.uptime24":`24h uptime`,"views.serverDetail.waitingFirstLine":`Waiting for the first line…`,"views.serverDetail.portNone":`no port`,"views.serverDetail.portListening":`listening`,"views.serverDetail.jumpToOutput":`Jump to output`,"views.serverDetail.disabledBadge":`Disabled`,"views.serverDetail.discardTitle":`Discard unsaved changes?`,"views.serverDetail.discardDescription":`The configuration editor holds edits that are not saved yet. Leaving now throws them away.`,"views.serverDetail.keepEditing":`Keep editing`,"views.serverDetail.discardChanges":`Discard changes`,"views.servers.clearFilter":`Clear the filter`,"views.servers.clearFilters":`Clear filters`,"views.servers.description":`Every entry in {workspace}'s servers.config.json, with live resources, health and history.`,"views.servers.emptyDescription":`Add the first process this panel should supervise. Its command, args, env and working directory all live in the config file.`,"views.servers.emptyTitle":`No servers configured`,"views.servers.filterAll":`All`,"views.servers.filterAria":`Filter servers`,"views.servers.filterAttention":`Attention`,"views.servers.filterDisabled":`Disabled`,"views.servers.filterPlaceholder":`Filter by id, label, command or port`,"views.servers.filterRunning":`Running`,"views.servers.filterStopped":`Stopped`,"views.servers.noMatchDescription":`Try a different status or clear the search.`,"views.servers.noMatchTitle":`Nothing matches that filter`,"views.servers.orphansTitle":`Orphaned processes`,"views.servers.orphansDescription":`These were started by the panel and no server entry owns them any more — a renamed or removed entry left them running. Stop them here or they keep holding their resources.`,"views.servers.orphanStartedAt":`started {when}`,"views.servers.stopOrphan":`Stop it`,"views.servers.orphanPid":`pid {pid}`,"views.settings.changesDescription":`What Save would write to {workspace}'s settings.`,"views.settings.configErrorNote":`The panel keeps supervising with the config it already had; fixing the file reloads it on its own.`,"views.settings.configErrorTitle":`The workspace config could not be read`,"views.settings.configWarningTitle":`This workspace's config has a warning`,"views.settings.ddnsDescription":`Keep hostnames pointed at this machine's public address, whichever registrar holds them.`,"views.settings.defaultsDescription":`Applied to every entry in this workspace that does not set its own value.`,"views.settings.description":`Server defaults, log retention, notifications and dynamic DNS for {workspace}.`,"views.settings.logsDescription":`How much output this workspace keeps on disk and for how long.`,"views.settings.navLabel":`Workspace settings sections`,"views.settings.notificationsDescription":`Crash and health alerts for this workspace, sent to a Telegram chat.`,"views.settings.saveFailed":`The settings could not be saved.`,"views.settings.saved":`Workspace settings saved.`,"views.settings.savedToast":`Workspace settings saved`,"views.settings.sectionDdns":`Dynamic DNS`,"views.settings.sectionDefaults":`Server defaults`,"views.settings.sectionLogs":`Logs`,"views.settings.sectionNotifications":`Notifications`,"views.settings.concurrentEdit":`Someone else changed {ids} while you had this page open. Reload to see their version, then reapply your edit.`,"workspace.new":`New workspace`,"workspace.rename":`Rename workspace`,"workspace.create":`Create workspace`,"workspace.renameAction":`Rename`,"workspace.createHint":`Its own settings, servers, logs, secrets and backups entry — served by this same panel.`,"workspace.renameHint":`Only the name changes; the workspace id stays, so URLs and paths keep working.`,"workspace.nameHint":`Shown in the header.`,"workspace.nameHintId":`Shown in the header. Id: {id}`,"workspace.none":`No workspace`,"workspace.delete":`Delete workspace`,"workspace.listHeading":`Workspaces`,"workspace.emptyList":`The panel serves no workspace yet.`,"workspace.newAction":`New workspace…`,"workspace.renameActionFor":`Rename “{name}”…`,"workspace.deleteActionFor":`Delete “{name}”…`,"workspace.deleteTitle":`Delete “{name}”?`,"workspace.deleteBody":`Its servers are stopped, and its config, settings, logs, secrets and nanny state are removed from disk. A backup taken first is the only way back.`,"workspace.nameRequired":`A workspace needs a name.`,"workspace.namePlaceholder":`Home lab`,"editor.unsaved":{one:`unsaved change`,other:`unsaved changes`},"editor.saveChanges":{one:`Save {count} change`,other:`Save {count} changes`},"logs.lines":{one:`{count} line`,other:`{count} lines`},"palette.results":{one:`{count} result`,other:`{count} results`},"proxy.retry.inMinutes":{one:`~{count} minute`,other:`~{count} minutes`},"proxy.retry.inHours":{one:`~{count} hour`,other:`~{count} hours`},"settings.backup.entriesCount":{one:`{count} entry`,other:`{count} entries`},"settings.backup.itemsSelected":{one:`{count} item selected`,other:`{count} items selected`},"settings.ddns.hostnameCount":{one:`{count} hostname`,other:`{count} hostnames`},"settings.shell.fieldsChanged":{one:`field changed`,other:`fields changed`},"settings.shell.saveChanges":{one:`Save {count} change`,other:`Save {count} changes`},"views.globalOverview.needLook":{one:`{count} server needs a look`,other:`{count} servers need a look`},"views.globalOverview.serversTotal":{one:`{count} server in total`,other:`{count} servers in total`},"views.logs.filesOnDisk":{one:`{count} file`,other:`{count} files`},"views.overview.needLook":{one:`{count} server needs a look`,other:`{count} servers need a look`}},lM=/\{(\w+)\}/g;function uM(e,t){return`${e}:${t||`index`}`}function dM(e,t){if(e==null)return null;let n=_M(e,t);return n===void 0?null:n}function fM(e,t,n){n?.preserveExisting?hM(e,t):mM(e,t)}function pM(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function mM(e,t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i===`__proto__`)continue;let a=t[i];if(typeof a!=`object`||!a||Array.isArray(a)){e[i]=a;continue}let o=e[i];typeof o==`object`&&o&&!Array.isArray(o)?mM(o,a):e[i]=a}}function hM(e,t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i===`__proto__`)continue;let a=t[i];if(!Object.prototype.hasOwnProperty.call(e,i)){e[i]=a;continue}let o=e[i];pM(a)&&pM(o)&&hM(o,a)}}function gM(e,t){return!t||e.indexOf(`{`)===-1?e:e.replace(lM,(e,n)=>{let r=t[n];return r===void 0?`{${n}}`:String(r)})}function _M(e,t){if(e==null||typeof t!=`string`||t.length===0)return;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(!t.includes(`.`))return;let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;let t=r;if(!Object.prototype.hasOwnProperty.call(t,e))return;r=t[e]}return r}function vM(e,t,n){if(typeof t!=`string`||t.length===0)return e;if(Object.prototype.hasOwnProperty.call(e,t)||!t.includes(`.`))return t===`__proto__`?e:{...e,[t]:n};let r=t.split(`.`);if(r.some(e=>e===`__proto__`))return e;let i={...e},a=i;for(let e of r.slice(0,-1)){let t=a[e],n=pM(t)?{...t}:{};a[e]=n,a=n}return a[r[r.length-1]]=n,i}function yM(e,t){let n=bM(e,t),r={};return xM(e,t,``,r),Object.keys(r).length===0?n:{...n,...r}}function bM(e,t){let n={...e};for(let e of Object.keys(t)){if(e===`__proto__`)continue;let r=t[e];if(r==null)continue;let i=n[e];n[e]=pM(r)&&pM(i)?bM(i,r):r}return n}function xM(e,t,n,r){for(let i of Object.keys(e)){if(i===`__proto__`)continue;let a=e[i];if(!pM(a))continue;let o=n?`${n}.${i}`:i,s=t[i];pM(s)?xM(a,s,o,r):s!=null&&SM(a,o,r)}}function SM(e,t,n){for(let r of Object.keys(e)){if(r===`__proto__`)continue;let i=e[r],a=`${t}.${r}`;pM(i)?SM(i,a,n):n[a]=i}}var CM=(e,t,n,r,i)=>{let a=i(e);if(!a)return null;let o=a.toString().split(`|`);if(o.length===0)return null;let s=t<o.length?o[t]:o[o.length-1];return s?gM(s.trim(),{...n,count:t}):null};function wM(e){if(!e)return``;let t=Object.keys(e).sort();if(t.length===0)return``;let n={};for(let r of t)n[r]=e[r];return JSON.stringify(n)}function TM(e,t){let n=wM(t);return n?`${e}\0${n}`:e}var EM=class{constructor(e={}){this.numberCache=new Map,this.dateCache=new Map,this.relativeCache=new Map,this.numberFormats=e.numberFormats??{},this.datetimeFormats=e.datetimeFormats??{}}setNumberFormats(e){this.numberFormats=e,this.numberCache.clear()}setDateTimeFormats(e){this.datetimeFormats=e,this.dateCache.clear()}getNumberFormats(){return this.numberFormats}getDateTimeFormats(){return this.datetimeFormats}clearCache(){this.numberCache.clear(),this.dateCache.clear(),this.relativeCache.clear()}resolveNumberFormat(e,t){return this.numberFormats[e]?.[t]??this.numberFormats[e.split(`-`)[0]]?.[t]}resolveDateTimeFormat(e,t){return this.datetimeFormats[e]?.[t]??this.datetimeFormats[e.split(`-`)[0]]?.[t]}getNumberFormatter(e,t){let n=TM(e,t),r=this.numberCache.get(n);return r||(r=new Intl.NumberFormat(e,t),this.numberCache.set(n,r)),r}getDateTimeFormatter(e,t){let n=TM(e,t),r=this.dateCache.get(n);return r||(r=new Intl.DateTimeFormat(e,t),this.dateCache.set(n,r)),r}getRelativeTimeFormatter(e,t){let n=TM(e,t),r=this.relativeCache.get(n);return r||(r=new Intl.RelativeTimeFormat(e,t),this.relativeCache.set(n,r)),r}formatNumber(e,t,n){return this.getNumberFormatter(t,n).format(e)}formatDate(e,t,n){let r=new Date(e);return Number.isNaN(r.getTime())?`Invalid Date`:this.getDateTimeFormatter(t,n).format(r)}formatRelativeTime(e,t,n){let r=new Date(e),i=this.getRelativeTimeFormatter(t,n);if(Number.isNaN(r.getTime()))return i.format(0,`second`);let a=Math.floor((Date.now()-r.getTime())/1e3);for(let{unit:e,seconds:t}of[{unit:`year`,seconds:31536e3},{unit:`month`,seconds:2592e3},{unit:`day`,seconds:86400},{unit:`hour`,seconds:3600},{unit:`minute`,seconds:60},{unit:`second`,seconds:1}]){let n=Math.floor(a/t);if(n>=1)return i.format(-n,e)}return i.format(0,`second`)}},DM=Symbol(`i18n-leaf-miss`),OM=new WeakMap;function kM(e){let t=OM.get(e);return t||(t={leafByChunk:new Map,generation:0},OM.set(e,t)),t}function AM(e){let t=e?.translations??new Map,n=kM(t),{leafByChunk:r}=n;function i(){n.generation++}function a(e){r.delete(e)}function o(){r.clear()}function s(e){let t=r.get(e);return t||(t=new Map,r.set(e,t)),t}function c(e,t,n){let i=r.get(e);if(i?.has(n)){let e=i.get(n);return e===DM?null:e}if(!t)return s(e).set(n,DM),null;let a=dM(t,n);return s(e).set(n,a===null?DM:a),a}function l(e,n){t.set(e,n),a(e),i()}function u(e,n){let r=t.get(e);r?(fM(r,n),a(e),i()):l(e,{...n})}return{hasCache(e,n){return t.has(uM(e,n))},getCache(e,n){return t.get(uM(e,n))},setCache(e,t,n){r.set(uM(e,t),n)},getGeneration(){return n.generation},hasTranslation(e,n){let r=`${e}:`;for(let[e,i]of t)if(e.startsWith(r)&&dM(i,n)!==null)return!0;return!1},hasPageTranslation(e,n){return t.has(uM(e,n))},getTranslation(e,n,r){let i=uM(e,n);return c(i,t.get(i),r)},lookupIn:c,loadTranslations(e,t,n=`index`){u(uM(e,n),t)},setTranslations(e,t,n=`index`){l(uM(e,n),t)},loadPageTranslations(e,n,r){let i=uM(e,n),a=t.get(i);!a||Object.keys(a).length===0?l(i,{...r}):u(i,r)},mergeTranslation(e,t,n,r=!1){u(uM(e,t),n)},clearCache(){t.clear(),o(),i()}}}var jM=class{constructor(e={}){this.formatter=new EM,this.pinnedCacheKey=``,this.pinnedTree=null,this.pinnedGeneration=-1,this.helper=AM(e.storage);let t={numberFormats:e.numberFormats,datetimeFormats:e.datetimeFormats};this.formatter=new EM(t),this.pluralFunc=e.plural&&e.plural!==CM?(t,n,r,i,a)=>e.plural(t,n,r,i,a)??CM(t,n,r,i,a):CM,this.missingWarn=e.missingWarn??!0,this.missingHandler=e.missingHandler,this.getCustomMissingHandler=e.getCustomMissingHandler}touch(){}resolveRouteName(e){return typeof e==`string`?e:this.getRoute()}ensurePinnedChunk(e,t){let n=uM(e,t),r=this.helper.getGeneration();(this.pinnedCacheKey!==n||this.pinnedGeneration!==r)&&(this.pinnedCacheKey=n,this.pinnedGeneration=r,this.pinnedTree=this.helper.getCache(e,t)??null)}invalidatePin(){this.pinnedCacheKey=``,this.pinnedTree=null,this.pinnedGeneration=-1}resolveLookup(e,t){let n=this.getLocale(),r=this.resolveRouteName(t),i=typeof e==`string`?e:String(e),a=t===void 0||r===this.getRoute(),o;if(a?(this.ensurePinnedChunk(n,r),o=this.helper.lookupIn(this.pinnedCacheKey,this.pinnedTree,i)):o=this.helper.getTranslation(n,r,i),o!==null)return o;let s=this.getFallbackLocale();return n===s?null:this.helper.getTranslation(s,r,i)}resolveHas(e,t){let n=this.getLocale(),r=this.resolveRouteName(t),i=typeof e==`string`?e:String(e);return t===void 0||r===this.getRoute()?(this.ensurePinnedChunk(n,r),this.helper.lookupIn(this.pinnedCacheKey,this.pinnedTree,i)!==null):this.helper.getTranslation(n,r,i)!==null}resolveTranslationTree(e,t){return yM(e,t)}resolveTranslations(e){this.touch();let t=this.getLocale(),n=this.resolveRouteName(e),r=this.helper.getCache(t,n)??{},i=this.getFallbackLocale();if(i===t)return r;let a=this.helper.getCache(i,n);return a?this.resolveTranslationTree(a,r):r}onTranslationsChanged(){}getMissingContext(e){return{locale:this.getLocale(),routeName:this.resolveRouteName(e)}}warnDev(e){this.missingWarn}warnMissing(e,t){let{locale:n,routeName:r}=this.getMissingContext(t),i=this.getCustomMissingHandler?.();i?i(n,String(e),r):this.missingHandler?this.missingHandler(n,String(e),r):this.warnDev(`Not found '${e}' key in '${n}' locale messages for route '${r}'.`)}warnMissingFormat(e,t,n){this.warnDev(`Not found '${t}' ${e} format in '${n}' locale. Falling back to default Intl options.`)}t(e,t,n,r){if(!e)return``;if(this.touch(),t===void 0&&n===void 0&&r===void 0&&typeof e==`string`)return this.resolveLookup(e)??(this.warnMissing(e),e);let i=this.resolveLookup(e,r);return i==null?(this.warnMissing(e,r),n===void 0?e:n||e):typeof i!=`string`||!t?i:gM(i,t)}ts(e,t,n,r){return this.t(e,t,n,r)?.toString()??n??e}tc(e,t,n){this.touch();let{count:r,...i}=typeof t==`number`?{count:t}:t;return r===void 0?n??e:this.pluralFunc(e,Number.parseInt(r.toString(),10),i,this.getLocale(),(e,t,n)=>{let r=this.resolveLookup(e);return r==null?n===void 0?void 0:n||e:typeof r!=`string`||!t?r:gM(r,t)})??n??e}tn(e,t,n,r){this.touch();let i=this.resolveNumberFormatArgs(t,n,r);return this.formatter.formatNumber(e,i.locale,i.options)}td(e,t,n,r){this.touch();let i=this.resolveDateTimeFormatArgs(t,n,r);return this.formatter.formatDate(e,i.locale,i.options)}tdr(e,t){return this.touch(),this.formatter.formatRelativeTime(e,this.getLocale(),t)}has(e,t){return this.touch(),this.resolveHas(e,t)}setTranslation(e,t){let n=this.getLocale(),r=this.getRoute(),i=this.helper.getCache(n,r)??{};this.helper.setTranslations(n,vM(i,String(e),t),r),this.invalidatePin(),this.onTranslationsChanged()}clearCache(){this.helper.clearCache(),this.formatter.clearCache(),this.invalidatePin()}resolveNumberFormatArgs(e,t,n){if(typeof e!=`string`)return{locale:this.getLocale(),options:e};let r=this.getLocale(),i;typeof t==`string`?(r=t,i=n):i=t;let a=this.formatter.resolveNumberFormat(r,e);return a||this.warnMissingFormat(`number`,e,r),!a&&!i?{locale:r,options:void 0}:{locale:r,options:a?{...a,...i}:i}}resolveDateTimeFormatArgs(e,t,n){if(typeof e!=`string`)return{locale:this.getLocale(),options:e};let r=this.getLocale(),i;typeof t==`string`?(r=t,i=n):i=t;let a=this.formatter.resolveDateTimeFormat(r,e);return a||this.warnMissingFormat(`datetime`,e,r),!a&&!i?{locale:r,options:void 0}:{locale:r,options:a?{...a,...i}:i}}loadTranslationsCore(e,t,n,r=`index`){n?this.helper.mergeTranslation(e,r,t,!0):this.helper.setTranslations(e,t,r),this.invalidatePin()}loadRouteTranslationsCore(e,t,n,r){r?this.helper.mergeTranslation(e,t,n,!0):this.helper.loadPageTranslations(e,t,n),this.invalidatePin()}extend(e){return Object.assign(this,e)}},MM=Symbol(`i18n`),NM=Symbol(`i18n-locales`),PM=Symbol(`i18n-default-locale`),FM=Symbol(`i18n-router-strategy`),IM=N({name:`I18nGroup`,props:{prefix:{type:String,required:!0},groupClass:{type:String,default:``}},setup(e,{slots:t}){let n=Er(MM);if(!n)throw Error(`[i18n-micro] I18nGroup: i18n instance not found. Make sure i18n plugin is installed.`);let r=(t,r)=>n.t(`${e.prefix}.${t}`,r,void 0,n.getRoute());return()=>R(`div`,{class:[`i18n-group`,e.groupClass]},t.default?.({prefix:e.prefix,t:r}))}}),LM=N({name:`I18nLink`,props:{to:{type:[String,Object],required:!0},activeStyle:{type:Object,default:()=>({})},localeRoute:{type:Function,default:void 0}},setup(e,{slots:t}){let n=Er(MM),r=Er(FM,void 0);if(!n)throw Error(`[i18n-micro] I18nLink: i18n instance not found. Make sure i18n plugin is installed.`);let i=L(()=>typeof e.to==`string`&&/^(?:https?:\/\/|\/\/|[a-zA-Z0-9-]+\.[a-zA-Z]{2,})|tel:|mailto:/.test(e.to)),a=L(()=>{if(i.value)return e.to;if(e.localeRoute){let t=e.localeRoute(e.to);return typeof t==`string`?t:t.path||`/`}if(!r?.resolvePath)return typeof e.to==`string`?e.to:e.to.path||`/`;let t=r.resolvePath(e.to,n.locale.value);return typeof t==`string`?t:t.path||`/`}),o=L(()=>i.value||!r?!1:r.getCurrentPath().replace(/#.*$/,``).replace(/\/$/,``)===a.value.replace(/#.*$/,``).replace(/\/$/,``)),s=L(()=>o.value?e.activeStyle:{});return()=>i.value?R(`a`,{href:a.value,target:`_blank`,rel:`noopener noreferrer`,style:s.value},t.default?.()):r?.linkComponent?R(r.linkComponent,{to:a.value,style:s.value},{default:t.default}):R(`a`,{href:a.value,style:s.value,onClick:e=>{e.preventDefault(),r?r.push({path:a.value}):window.location.href=a.value}},t.default?.())}}),RM=N({name:`I18nSwitcher`,props:{customLabels:{type:Object,default:()=>({})},customWrapperStyle:{type:Object,default:()=>({})},customButtonStyle:{type:Object,default:()=>({})},customDropdownStyle:{type:Object,default:()=>({})},customItemStyle:{type:Object,default:()=>({})},customLinkStyle:{type:Object,default:()=>({})},customActiveLinkStyle:{type:Object,default:()=>({})},customDisabledLinkStyle:{type:Object,default:()=>({})},customIconStyle:{type:Object,default:()=>({})},locales:{type:Array,default:void 0},currentLocale:{type:[String,Function],default:void 0},getLocaleName:{type:Function,default:void 0},switchLocale:{type:Function,default:void 0},localeRoute:{type:Function,default:void 0}},setup(e,{slots:t}){let n=Er(MM),r=Er(FM,void 0),i=Er(NM,void 0);if(!n)throw Error(`[i18n-micro] I18nSwitcher: i18n instance not found. Make sure i18n plugin is installed.`);if(!i&&!e.locales)throw Error(`[i18n-micro] I18nSwitcher: locales not provided. Make sure app.provide(I18nLocalesKey, locales) is called or pass locales prop.`);let a=L(()=>e.locales||i||[]),o=L(()=>a.value.filter(e=>!e.disabled)),s=L(()=>e.currentLocale===void 0?n.locale.value:typeof e.currentLocale==`function`?e.currentLocale():e.currentLocale),c=L(()=>a.value.some(e=>e.code===s.value&&e.disabled)),l=L(()=>e.getLocaleName?e.getLocaleName()||null:a.value.find(e=>e.code===n.locale.value)?.displayName||null),u=A(!1),d=A(null),f=e=>{e&&(e.stopPropagation(),e.preventDefault()),u.value=!u.value},p=t=>e.customLabels[t.code]||t.displayName||t.code,m=L(()=>{let e=a.value.find(e=>e.code===s.value);return e?p(e):l.value||s.value}),h=async t=>{if(u.value=!1,await rr(),e.switchLocale){e.switchLocale(t);return}if(n.locale.value=t,!r)return;let i=r.getCurrentPath(),a=e.localeRoute?(()=>{let n=e.localeRoute(i,t);return typeof n==`string`?n:n.path||`/`})():r?.resolvePath?(()=>{let e=r.resolvePath(i,t);return typeof e==`string`?e:e.path||`/`})():i;r.push({path:a})},g={position:`relative`,display:`inline-block`,verticalAlign:`middle`},_={padding:`4px 12px`,fontSize:`16px`,cursor:`pointer`,backgroundColor:`#fff`,border:`1px solid #333`,transition:`background-color 0.3s ease`,display:`flex`,alignItems:`center`,justifyContent:`space-between`},v={position:`absolute`,top:`100%`,left:`0`,zIndex:1e3,backgroundColor:`#fff`,border:`1px solid #333`,listStyle:`none`,padding:`0`,margin:`4px 0 0 0`,minWidth:`150px`,boxShadow:`0 2px 8px rgba(0,0,0,0.15)`},y={margin:`0`,padding:`0`},b={display:`block`,padding:`8px 12px`,color:`#333`,textDecoration:`none`,transition:`background-color 0.3s ease`,cursor:`pointer`},x={fontWeight:`bold`,color:`#007bff`,cursor:`not-allowed`},S={marginLeft:`8px`,display:`inline-block`,transition:`transform 0.3s ease`},C={transform:`rotate(180deg)`},w=e=>e?Array.isArray(e)?e:[e]:[],T=e=>{if(!u.value)return;let t=e.target;if(!t||!d.value)return;let n=d.value.contains(t),r=t.closest(`.i18n-switcher-button`)!==null;!n&&!r&&(u.value=!1)};return ia(()=>{document.addEventListener(`click`,T)}),ca(()=>{document.removeEventListener(`click`,T)}),()=>{let n=[];t[`before-button`]&&n.push(...w(t[`before-button`]()));let i=[];if(t[`before-selected-locale`]&&i.push(...w(t[`before-selected-locale`]())),i.push(R(`span`,m.value)),t[`after-selected-locale`]&&i.push(...w(t[`after-selected-locale`]())),i.push(R(`span`,{style:{...S,...u.value?C:{},...e.customIconStyle}},`▼`)),n.push(R(`button`,{class:`i18n-switcher-button`,style:{..._,...e.customButtonStyle,...c.value?e.customDisabledLinkStyle:{}},onClick:e=>{e.preventDefault(),e.stopPropagation(),f(e)},type:`button`,ariaHaspopup:!0,ariaExpanded:u.value},i)),t[`before-dropdown`]&&n.push(...w(t[`before-dropdown`]())),u.value){let i=[];t[`before-dropdown-items`]&&i.push(...w(t[`before-dropdown-items`]())),o.value.forEach(n=>{let a=[];t[`before-item`]&&a.push(...w(t[`before-item`]({locale:n})));let o=[];t[`before-link-content`]&&o.push(...w(t[`before-link-content`]({locale:n}))),o.push(p(n)),t[`after-link-content`]&&o.push(...w(t[`after-link-content`]({locale:n})));let c=typeof window<`u`?window.location.pathname:`/`,l=e.localeRoute?e.localeRoute(c,n.code):r?.resolvePath?r.resolvePath(c,n.code):c,u=typeof l==`string`?l:l.path||`#`,d=n.code===s.value;a.push(R(`a`,{class:`switcher-locale-${n.code}`,href:typeof u==`string`?u:`#`,style:{...b,...d?x:{},...e.customLinkStyle,...d?e.customActiveLinkStyle:{}},onClick:e=>{e.preventDefault(),e.stopPropagation(),h(n.code)}},o)),t[`after-item`]&&a.push(...w(t[`after-item`]({locale:n}))),i.push(R(`li`,{key:n.code,style:{...y,...e.customItemStyle}},a))}),t[`after-dropdown-items`]&&i.push(...w(t[`after-dropdown-items`]())),n.push(R(`ul`,{class:`i18n-switcher-dropdown`,style:{...v,...e.customDropdownStyle}},i))}return t[`after-dropdown`]&&n.push(...w(t[`after-dropdown`]())),R(`div`,{ref:d,class:`i18n-switcher-wrapper`,style:{...g,...e.customWrapperStyle}},n)}}}),zM=N({name:`I18nT`,inheritAttrs:!1,props:{keypath:{type:String,required:!0},plural:{type:[Number,String]},tag:{type:String,default:`span`},params:{type:Object,default:()=>({})},defaultValue:{type:String,default:``},html:{type:Boolean,default:!1},hideIfEmpty:{type:Boolean,default:!1},customPluralRule:{type:Function,default:null},number:{type:[Number,String]},date:{type:[Date,String,Number]},relativeDate:{type:[Date,String,Number]}},setup(e,{slots:t,attrs:n}){let r=Er(MM);if(!r)throw Error(`[i18n-micro] I18nT: i18n instance not found. Make sure i18n plugin is installed.`);return()=>{let i={},a=r.getRoute(),o={...n};delete o.innerHTML;let s=t=>e.html?R(e.tag,{...o,innerHTML:t}):R(e.tag,o,t);if(e.number!==void 0){let t=Number(e.number),n=r.tn(t),i=r.t(e.keypath,{number:n,...e.params},void 0,a);return s(String(i??``))}if(e.date!==void 0){let t=r.td(e.date),n=r.t(e.keypath,{date:t,...e.params},void 0,a);return s(String(n??``))}if(e.relativeDate!==void 0){let t=r.tdr(e.relativeDate),n=r.t(e.keypath,{relativeDate:t,...e.params},void 0,a);return s(String(n??``))}if(e.plural!==void 0){let t=Number.parseInt(e.plural.toString(),10);return e.customPluralRule?s(e.customPluralRule(e.keypath,t,e.params,r.locale.value,(e,t,n)=>r.t(e,t,n,a))||``):s(r.tc(e.keypath,{count:t,...e.params}))}let c=(r.t(e.keypath,{...e.params,...i},void 0,a)??``).toString();if(e.hideIfEmpty&&!c.trim())return e.defaultValue??null;if(e.html)return s(c);if(t.default)return R(e.tag,o,t.default({translation:c}));let l=[],u=0;for(let[e,n]of Object.entries(t)){if(e==="default")continue;let t=`{${e}}`,r=c.indexOf(t,u);r!==-1&&(r>u&&l.push(c.slice(u,r)),n&&l.push(R(n)),u=r+t.length)}return u<c.length&&l.push(c.slice(u)),t.default?R(e.tag,o,t.default({children:l})):l.length>0?R(e.tag,o,l):R(e.tag,o,c)}}}),BM=class extends jM{constructor(e){let t={translations:new Map};if(super({storage:t,plural:e.plural,missingWarn:e.missingWarn,missingHandler:e.missingHandler}),this.listeners=new Set,this.storage=t,this._locale=hn(e.locale),this._fallbackLocale=hn(e.fallbackLocale||e.locale),this._currentRoute=hn(`index`),this._revision=hn(0),e.messages)for(let[t,n]of Object.entries(e.messages))this.helper.loadTranslations(t,n)}get locale(){return this._locale}set locale(e){typeof e==`string`?this._locale.value=e:this._locale=e}get fallbackLocale(){return this._fallbackLocale}set fallbackLocale(e){typeof e==`string`?this._fallbackLocale.value=e:this._fallbackLocale=e}get currentRoute(){return this._currentRoute}setRoute(e){this._currentRoute.value=e}getLocale(){return this._locale.value}getFallbackLocale(){return this._fallbackLocale.value}getRoute(){return this._currentRoute.value}addTranslations(e,t,n=!0){super.loadTranslationsCore(e,t,n),this._revision.value++,this.notifyListeners()}addRouteTranslations(e,t,n,r=!0){super.loadRouteTranslationsCore(e,t,n,r),this._revision.value++,this.notifyListeners()}mergeTranslations(e,t,n){this.helper.mergeTranslation(e,t,n,!0),this._revision.value++,this.notifyListeners()}clearCache(){super.clearCache(),this._revision.value++,this.notifyListeners()}onTranslationsChanged(){this._revision.value++,this.notifyListeners()}subscribeToChanges(e){return this.listeners.add(e),()=>this.listeners.delete(e)}notifyListeners(){this.listeners.forEach(e=>e())}getStorage(){return this.storage}getRouteCache(){let e={};for(let[t,n]of this.storage.translations)e[t]=n;return e}};function VM(e){let{routingStrategy:t,locales:n,defaultLocale:r,...i}=e,a=new BM(i),o=null,s=t||null;return{global:a,setRoutingStrategy:e=>{s=e,o&&o.provide(FM,e)},install(e){o=e,e.provide(MM,a),s&&e.provide(FM,s),n&&e.provide(NM,n),r&&e.provide(PM,r),e.config.globalProperties.$t=(e,t,n,r)=>a.t(e,t,n,r),e.config.globalProperties.$ts=(e,t,n,r)=>a.ts(e,t,n,r),e.config.globalProperties.$tc=(e,t,n)=>a.tc(e,t,n),e.config.globalProperties.$tn=a.tn.bind(a),e.config.globalProperties.$td=a.td.bind(a),e.config.globalProperties.$tdr=a.tdr.bind(a),e.config.globalProperties.$has=(e,t)=>a.has(e,t),e.config.globalProperties.$i18n=a,e.component(`I18nT`,zM),e.component(`I18nLink`,LM),e.component(`I18nGroup`,IM),e.component(`I18nSwitcher`,RM)}}}var HM=[{code:`en`,iso:`en-US`,name:`English`},{code:`vi`,iso:`vi-VN`,name:`Tiếng Việt`},{code:`zh-CN`,iso:`zh-CN`,name:`简体中文`},{code:`ja`,iso:`ja-JP`,name:`日本語`},{code:`es`,iso:`es-ES`,name:`Español`},{code:`ko`,iso:`ko-KR`,name:`한국어`},{code:`ru`,iso:`ru-RU`,name:`Русский`},{code:`fr`,iso:`fr-FR`,name:`Français`},{code:`de`,iso:`de-DE`,name:`Deutsch`}],UM=`hh.locale`,WM=new Map(HM.map(e=>[e.code,e]));function GM(e){return WM.get(e)}function KM(e){return WM.has(e)}function qM(e){if(e.length===0)return null;let t=e.toLowerCase(),n=HM.find(e=>e.code.toLowerCase()===t);if(n!==void 0)return n.code;let r=t.split(`-`)[0];return HM.find(e=>e.code.toLowerCase()===r||e.code.toLowerCase().split(`-`)[0]===r)?.code??null}function JM(e,t,n){return e.replace(/\{(\w+)\}/g,(e,r)=>{if(r===`count`)return String(n);let i=t[r];return i===void 0?e:String(i)})}var YM=new Map,XM=(e,t,n,r,i)=>{let a=i(e);if(a==null)return null;if(typeof a==`string`)return JM(a.split(`|`)[0].trim(),n??{},t);let o=YM.get(r);o===void 0&&(o=new Intl.PluralRules(r),YM.set(r,o));let s=a[o.select(t)]??a.other;return typeof s==`string`?JM(s,n??{},t):null},ZM=`modulepreload`,QM=function(e){return`/`+e},$M={},eN=function(e){return e.pathname.endsWith(`.css`)},tN=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},nN=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=QM(t,n);let r=s(t),i=eN(r);return tN($M,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ZM,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},rN=Object.assign({"../../i18n/generated/en.json":sM}),iN=Object.assign({"../../i18n/generated/de.json":()=>nN(()=>import(`./de-BIoTrHBQ.js`),[]),"../../i18n/generated/es.json":()=>nN(()=>import(`./es-x4-ih8lH.js`),[]),"../../i18n/generated/fr.json":()=>nN(()=>import(`./fr-DatqBBkO.js`),[]),"../../i18n/generated/ja.json":()=>nN(()=>import(`./ja-CW1703Gw.js`),[]),"../../i18n/generated/ko.json":()=>nN(()=>import(`./ko-wFbT4XtK.js`),[]),"../../i18n/generated/ru.json":()=>nN(()=>import(`./ru-C1p5C4VN.js`),[]),"../../i18n/generated/vi.json":()=>nN(()=>import(`./vi-CDqr0uie.js`),[]),"../../i18n/generated/zh-CN.json":()=>nN(()=>import(`./zh-CN-BJ7iit-X.js`),[])}),aN=VM({locale:`en`,fallbackLocale:`en`,defaultLocale:`en`,plural:XM,missingWarn:!1,messages:{en:Object.values(rN)[0]?.default??{}},locales:HM.map(e=>({...e}))}),oN=new Set([`en`]),sN=new Map;function cN(){try{let e=localStorage.getItem(UM);if(e!==null&&KM(e))return e}catch{}return null}function lN(){let e=typeof navigator>`u`?[]:[...navigator.languages??[],navigator.language].filter(e=>typeof e==`string`);for(let t of e){let e=qM(t);if(e!==null)return e}return`en`}async function uN(e){if(oN.has(e))return;let t=sN.get(e);if(t!==void 0)return t;let n=iN[`../../i18n/generated/${e}.json`];if(n===void 0)return;let r=n().then(t=>{aN.global.addTranslations(e,t.default,!0),oN.add(e)}).finally(()=>sN.delete(e));return sN.set(e,r),r}function dN(e){typeof document<`u`&&(document.documentElement.lang=GM(e)?.iso??e)}async function fN(e){if(KM(e)&&e!==aN.global.locale.value){try{await uN(e)}catch{return}aN.global.locale.value=e,dN(e);try{localStorage.setItem(UM,e)}catch{}}}async function pN(){let e=cN()??lN();try{await uN(e)}catch{dN(`en`);return}e!==`en`&&(aN.global.locale.value=e),dN(e)}function X(e,t,n){let r=aN.global.t(e,t,n??null);return typeof r==`string`?r:String(r??``)}function mN(e,t,n){let r={...n,count:t},i=aN.global.resolveTranslations()[e];return i===void 0?X(e,r,e):XM(e,t,r,hN(),()=>i)??X(e,r,e)}function hN(){return aN.global.locale.value}function gN(e){let t=0;for(let n of e)n!==null&&n>t&&(t=n);return t}function _N(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n!=null)return n}return null}var vN=8e3,yN=A(null),bN=A(`connecting`),xN=A(Date.now()),SN=oM(),CN=A(0);async function wN(){let e=await Ij(()=>wA(),()=>GA());return e.action===`login`?(tM().requireLogin(),!1):e.action!==`refused`||(SN.failure(X(`toast.streamRefused`),e.message),!1)}var TN=Yk({openEventSource:e=>new EventSource(e),eventsUrl:`/api/events?logs=0`,serverStreamUrl:(e,t)=>Nj(t,e),state:{get:()=>yN.value,set:e=>{yN.value=e}},maxLines:vN,seriesCapacity:120,checkSession:wN,onConnection:e=>{bN.value=e},onLogs:()=>{CN.value+=1},observe:e=>tn(e)}),EN=null;function DN(e){return TN.lines(e)}function ON(e){TN.resetLogs(e)}function kN(){EN??=setInterval(()=>{xN.value=Date.now()},1e3),TN.connect()}function AN(){TN.disconnect(),EN&&clearInterval(EN),EN=null}function jN(e,t){let n=L(()=>{let n=yn(e),r=yn(t);return n===null||r===null?null:Kk(n,r)}),r=null;return Nr(n,e=>{if(r!==null&&r!==e){let[e,t]=r.split(`/`);e!==void 0&&t!==void 0&&TN.releaseLogs(e,t)}if(r=e,e!==null){let[t,n]=e.split(`/`);t!==void 0&&n!==void 0&&TN.acquireLogs(t,n)}},{immediate:!0}),ze(()=>{if(r!==null){let[e,t]=r.split(`/`);e!==void 0&&t!==void 0&&TN.releaseLogs(e,t)}r=null}),{version:L(()=>{let e=n.value;return CN.value,e===null?0:TN.logVersion(e)}),lines(){let e=n.value;return e===null?[]:DN(e)},count:L(()=>{let e=n.value;return CN.value,e===null?0:TN.lines(e).length}),clear(){let e=n.value;e!==null&&ON(e)}}}function MN(){let e=L(()=>yN.value?.workspaces??[]),t=L(()=>e.value.flatMap(e=>e.servers.map(t=>({workspace:e,server:t})))),n=L(()=>yN.value?.control??null),r=L(()=>yN.value?.host??null),i=L(()=>yN.value?.backups??null),a=L(()=>yN.value?.proxy??null),o=L(()=>yN.value?.projectDir??null),s=L(()=>yN.value?.dataRoot??null),c=L(()=>Zj(yN.value??null)),l=L(()=>yN.value?.version??null),u=L(()=>yN.value?.settingsError??null);function d(e){return yN.value?.workspaces.find(t=>t.id===e)}function f(e,t){return d(e)?.servers.find(e=>e.id===t)}function p(e,t){return TN.series(Kk(e,t))}async function m(){if(yN.value===null)try{TN.applyState(await GA())}catch(e){e instanceof Xk&&tM().requireLogin()}}async function h(e,t){let{outcome:n,actionError:r,refetchError:i}=await Jh(e,async()=>{TN.applyState(await GA())});if(!n.ok)return r instanceof Xk?tM().requireLogin():SN.failure(t.title,n.error),n;let a=typeof t.success==`function`?t.success(n.value):t.success;return a&&SN.success(a),i instanceof Xk?tM().requireLogin():i!==void 0&&SN.failure(X(`toast.refreshFailed`),qh(i)),n}async function g(e=X(`toast.refreshFailed`)){try{return TN.applyState(await GA()),{ok:!0,value:void 0}}catch(t){return t instanceof Xk?tM().requireLogin():SN.failure(e,qh(t)),{ok:!1,error:qh(t)}}}return{appState:yN,workspaces:e,allServers:t,control:n,host:r,backups:i,proxy:a,projectDir:o,dataRoot:s,settingsPath:c,version:l,settingsError:u,connection:rn(bN),now:rn(xN),workspaceById:d,ensureState:m,serverById:f,seriesOf:p,refresh:g,start:(e,t)=>h(()=>Cj(t,`start`,e),{title:X(`toast.startFailed`,{id:t})}),stop:(e,t)=>h(()=>Cj(t,`stop`,e),{title:X(`toast.stopFailed`,{id:t})}),restart:(e,t)=>h(()=>Cj(t,`restart`,e),{title:X(`toast.restartFailed`,{id:t})}),deploy:async(e,t)=>{await pj(t,e),await g()},startAll:e=>h(()=>Tj(e),{title:X(`toast.startAllFailed`),success:X(`toast.startAllStarted`)}),stopOrphan:(e,t)=>h(()=>wj(e,t),{title:X(`toast.stopOrphanFailed`,{id:t}),success:X(`toast.stopOrphanDone`)}),stopAll:(e,t={})=>h(()=>Dj(e,t),{title:X(`toast.stopAllFailed`),success:X(t.withPersistent===!0?`toast.stopAllWithPersistent`:`toast.stopAllStarted`)}),setAutostart:(e,t,n)=>h(()=>Aj(t,{autostart:n},e),{title:X(`toast.autostartFailed`,{id:t})}),setEnabled:(e,t,n)=>h(()=>Aj(t,{enabled:n},e),{title:X(`toast.changeFailed`,{id:t})}),freePort:(e,t)=>h(()=>Ej(t,e),{title:X(`toast.freePortFailed`,{id:t}),success:e=>e.free?X(`toast.portFree`,{port:e.port,id:t}):X(`toast.portHeld`,{port:e.port})}),setBind:(e,t,n)=>{let r=jD(n);if(r===null){let e=X(`toast.bindInvalid`,{bind:n});return SN.failure(X(`toast.bindFailed`,{id:t}),e),Promise.resolve({ok:!1,error:e})}return h(()=>Aj(t,{bind:r},e),{title:X(`toast.bindFailed`,{id:t})})},saveConfig:(e,t,n)=>h(()=>Aj(t,n,e),{title:X(`toast.saveServerFailed`,{id:t}),success:()=>f(e,t)?.restartRequired===!0?X(`toast.serverSavedRestart`,{id:t}):X(`toast.serverUpdated`,{id:t})}),saveGlobalSettings:e=>h(()=>XA(e),{title:X(`toast.saveSettingsFailed`)}),saveWorkspaceSettings:(e,t)=>h(()=>ZA(t,e),{title:X(`toast.saveSettingsFailed`)}),clearLogs:(e,t)=>h(async()=>{await Oj(t,e),ON(Kk(e,t))},{title:X(`toast.clearLogsFailed`,{id:t}),success:X(`toast.logsCleared`)}),create:(e,t)=>h(()=>Mj(t,e),{title:X(`toast.addServerFailed`),success:X(`toast.serverAdded`)}),remove:(e,t)=>h(async()=>{await jj(t,e),TN.forget(e,t)},{title:X(`toast.removeServerFailed`,{id:t}),success:X(`toast.serverRemoved`,{id:t})})}}function NN(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=NN(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function PN(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=NN(e))&&(r&&(r+=` `),r+=t);return r}var FN=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},IN=(e,t)=>({classGroupId:e,validator:t}),LN=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),RN=`-`,zN=[],BN=`arbitrary..`,VN=e=>{let t=WN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return UN(e);let n=e.split(RN);return HN(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?FN(i,t):t:i||zN}return n[e]||zN}}},HN=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=HN(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(RN):e.slice(t).join(RN),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},UN=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?BN+r:void 0})(),WN=e=>{let{theme:t,classGroups:n}=e;return GN(n,t)},GN=(e,t)=>{let n=LN();for(let r in e){let i=e[r];KN(i,n,r,t)}return n},KN=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];qN(i,t,n,r)}},qN=(e,t,n,r)=>{typeof e==`string`?JN(e,t,n):typeof e==`function`?YN(e,t,n,r):XN(e,t,n,r)},JN=(e,t,n)=>{let r=e===``?t:ZN(t,e);r.classGroupId=n},YN=(e,t,n,r)=>{QN(e)?KN(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(IN(n,e)))},XN=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];KN(o,ZN(t,a),n,r)}},ZN=(e,t)=>{let n=e,r=t.split(RN),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=LN(),n.nextPart.set(t,i)),n=i}return n},QN=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,$N=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},eP=`!`,tP=`:`,nP=[],rP=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),iP=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===tP){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(eP)?(c=s.slice(0,-1),l=!0):s.startsWith(eP)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return rP(t,l,c,u)};if(t){let e=t+tP,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):rP(nP,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},aP=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},oP=e=>({cache:$N(e.cacheSize),parseClassName:iP(e),sortModifiers:aP(e),postfixLookupClassGroupIds:sP(e),...VN(e)}),sP=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},cP=/\s+/,lP=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(cP),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+eP:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},uP=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=dP(n))&&(i&&(i+=` `),i+=r);return i},dP=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=dP(e[r]))&&(n&&(n+=` `),n+=t);return n},fP=(e,...t)=>{let n,r,i,a,o=o=>(n=oP(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=lP(e,n);return i(e,a),a};return a=o,(...e)=>a(uP(...e))},pP=[],mP=e=>{let t=t=>t[e]||pP;return t.isThemeGetter=!0,t.themeKey=e,t},hP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_P=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,xP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,SP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,CP=e=>_P.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),wP=e=>!!e&&Number.isInteger(Number(e)),TP=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),EP=e=>vP.test(e),DP=()=>!0,OP=e=>yP.test(e)&&!bP.test(e),kP=()=>!1,AP=e=>xP.test(e),jP=e=>SP.test(e),MP=e=>!Q(e)&&!$(e),NP=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),PP=e=>YP(e,$P,kP),Q=e=>hP.test(e),FP=e=>YP(e,eF,OP),IP=e=>YP(e,tF,Z),LP=e=>YP(e,rF,DP),RP=e=>YP(e,nF,kP),zP=e=>YP(e,ZP,kP),BP=e=>YP(e,QP,jP),VP=e=>YP(e,iF,AP),$=e=>gP.test(e),HP=e=>XP(e,eF),UP=e=>XP(e,nF),WP=e=>XP(e,ZP),GP=e=>XP(e,$P),KP=e=>XP(e,QP),qP=e=>XP(e,iF,!0),JP=e=>XP(e,rF,!0),YP=(e,t,n)=>{let r=hP.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},XP=(e,t,n=!1)=>{let r=gP.exec(e);return r?r[1]?t(r[1]):n:!1},ZP=e=>e===`position`||e===`percentage`,QP=e=>e===`image`||e===`url`,$P=e=>e===`length`||e===`size`||e===`bg-size`,eF=e=>e===`length`,tF=e=>e===`number`,nF=e=>e===`family-name`,rF=e=>e===`number`||e===`weight`,iF=e=>e===`shadow`,aF=fP(()=>{let e=mP(`color`),t=mP(`font`),n=mP(`text`),r=mP(`font-weight`),i=mP(`tracking`),a=mP(`leading`),o=mP(`breakpoint`),s=mP(`container`),c=mP(`spacing`),l=mP(`radius`),u=mP(`shadow`),d=mP(`inset-shadow`),f=mP(`text-shadow`),p=mP(`drop-shadow`),m=mP(`blur`),h=mP(`perspective`),g=mP(`aspect`),_=mP(`ease`),v=mP(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[CP,`full`,`auto`,...w()],ee=()=>[wP,`none`,`subgrid`,$,Q],E=()=>[`auto`,{span:[`full`,wP,$,Q]},wP,$,Q],te=()=>[wP,`auto`,$,Q],ne=()=>[`auto`,`min`,`max`,`fr`,$,Q],re=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ie=()=>[`auto`,...w()],ae=()=>[CP,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],oe=()=>[s,CP,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],se=()=>[CP,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,$,Q],ce=()=>[...b(),WP,zP,{position:[$,Q]}],le=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ue=()=>[`auto`,`cover`,`contain`,GP,PP,{size:[$,Q]}],de=()=>[TP,HP,FP],fe=()=>[``,`none`,`full`,l,$,Q],pe=()=>[``,Z,HP,FP],me=()=>[`solid`,`dashed`,`dotted`,`double`],he=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ge=()=>[Z,TP,WP,zP],_e=()=>[``,`none`,m,$,Q],ve=()=>[`none`,Z,$,Q],ye=()=>[`none`,Z,$,Q],be=()=>[Z,$,Q],xe=()=>[CP,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[EP],breakpoint:[EP],color:[DP],container:[EP],"drop-shadow":[EP],ease:[`in`,`out`,`in-out`],font:[MP],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[EP],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[EP],shadow:[EP],spacing:[`px`,Z],text:[EP],"text-shadow":[EP],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,CP,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[NP],columns:[{columns:[Z,`auto`,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[wP,`auto`,$,Q]}],basis:[{basis:[CP,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,CP,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[wP,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...re(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...re()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],"inline-size":[{inline:[`auto`,...oe()]}],"min-inline-size":[{"min-inline":[`auto`,...oe()]}],"max-inline-size":[{"max-inline":[`none`,...oe()]}],"block-size":[{block:[`auto`,...se()]}],"min-block-size":[{"min-block":[`auto`,...se()]}],"max-block-size":[{"max-block":[`none`,...se()]}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ae()]}],"font-size":[{text:[`base`,n,HP,FP]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,JP,LP]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,TP,Q]}],"font-family":[{font:[UP,RP,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,IP]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...me(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,FP]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[wP,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wP,$,Q],radial:[``,$,Q],conic:[``,wP,$,Q]},KP,BP]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...me(),`hidden`,`none`]}],"divide-style":[{divide:[...me(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...me(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,HP,FP]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`inner`,`none`,u,qP,VP]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,qP,VP]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:pe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Z,FP]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,qP,VP]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...he(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:_e()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,qP,VP]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],zoom:[{zoom:[wP,$,Q]}],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[Z,HP,FP,IP]}],stroke:[{stroke:[`none`,...O()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function oF(...e){return aF(PN(e))}var sF={stopped:{labelKey:`status.stopped`,tone:`neutral`,transitional:!1},starting:{labelKey:`status.starting`,tone:`warn`,transitional:!0},running:{labelKey:`status.running`,tone:`ok`,transitional:!1},stopping:{labelKey:`status.stopping`,tone:`warn`,transitional:!0},backoff:{labelKey:`status.backoff`,tone:`warn`,transitional:!0},crashed:{labelKey:`status.crashed`,tone:`danger`,transitional:!1},conflict:{labelKey:`status.conflict`,tone:`danger`,transitional:!1}},cF={disabled:{labelKey:`health.disabled`,tone:`neutral`},unknown:{labelKey:`health.unknown`,tone:`neutral`},healthy:{labelKey:`health.healthy`,tone:`ok`},unhealthy:{labelKey:`health.unhealthy`,tone:`danger`}};function lF(e){return sF[e]??{labelKey:`status.${e}`,tone:`neutral`,transitional:!1}}function uF(e){return cF[e]??{labelKey:`health.${e}`,tone:`neutral`}}function dF(e){return X(lF(e).labelKey,void 0,e)}function fF(e){return X(uF(e).labelKey,void 0,e)}var pF={ok:`text-ok`,warn:`text-warn`,danger:`text-danger`,info:`text-info`,neutral:`text-muted`,accent:`text-accent`},mF={ok:`bg-ok-soft text-ok border-ok/25`,warn:`bg-warn-soft text-warn border-warn/25`,danger:`bg-danger-soft text-danger border-danger/25`,info:`bg-info-soft text-info border-info/25`,neutral:`bg-hover text-muted border-line`,accent:`bg-accent-soft text-accent border-accent/25`},hF={ok:`bg-ok`,warn:`bg-warn`,danger:`bg-danger`,info:`bg-info`,neutral:`bg-faint`,accent:`bg-accent`};function gF(e,t){return e===`crashed`||e===`conflict`||t===`unhealthy`?`danger`:e===`starting`||e===`stopping`||e===`backoff`?`warn`:e===`running`?`ok`:`neutral`}var _F={start:`history.start`,exit:`history.exit`,crash:`history.crash`,"forced-restart":`history.forcedRestart`,unhealthy:`history.unhealthy`,recovered:`history.recovered`,deploy:`history.deploy`},vF={start:`ok`,exit:`neutral`,crash:`danger`,"forced-restart":`warn`,unhealthy:`warn`,recovered:`info`,deploy:`neutral`},yF={key:0,class:`grid size-10 place-items-center rounded-full border border-line bg-panel-2 text-faint`},bF={class:`max-w-sm space-y-1`},xF={class:`text-sm font-medium text-ink`},SF={key:0,class:`text-xs leading-relaxed text-muted`},CF={key:1,class:`flex items-center gap-2`},wF=N({__name:`EmptyState`,props:{title:{},description:{default:void 0},compact:{type:Boolean,default:!1}},setup(e){return(e,t)=>(F(),ws(`div`,{class:be(j(oF)(`flex flex-col items-center justify-center gap-3 text-center`,e.$props.compact?`px-4 py-8`:`px-6 py-14`))},[e.$slots.icon?(F(),ws(`div`,yF,[P(e.$slots,`icon`)])):Ls(``,!0),js(`div`,bF,[js(`p`,xF,je(e.$props.title),1),e.$props.description?(F(),ws(`p`,SF,je(e.$props.description),1)):Ls(``,!0)]),e.$slots.action?(F(),ws(`div`,CF,[P(e.$slots,`action`)])):Ls(``,!0)],2))}}),TF=`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/60 focus-visible:ring-offset-2 focus-visible:ring-offset-page`,EF=`text-xs font-medium text-muted`,DF=`text-2xs leading-4 text-faint`,OF=[`w-full min-w-0 rounded-control border border-line bg-page/60 px-2.5 py-1.5 text-sm text-ink`,`placeholder:text-faint transition-colors duration-150`,`hover:border-line/80 hover:bg-page`,`focus:border-accent focus:bg-page focus:outline-none focus:ring-2 focus:ring-accent/25`,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-[invalid=true]:border-danger aria-[invalid=true]:focus:ring-danger/25`].join(` `),kF=`${OF} font-mono text-xs`,AF=[`for`],jF={class:`relative`},MF=[`id`],NF=[`value`,`disabled`],PF={key:1,class:`text-2xs text-danger`},FF=N({inheritAttrs:!1,__name:`SelectField`,props:Ha({label:{default:void 0},hint:{default:void 0},error:{default:null},options:{},wide:{type:Boolean,default:!1},mono:{type:Boolean,default:!1}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=uo(e,`modelValue`),r=fi();return(e,i)=>(F(),ws(`div`,{class:be(j(oF)(`flex min-w-0 flex-col gap-1`,t.wide&&`sm:col-span-2`))},[t.label?(F(),ws(`label`,{key:0,for:j(r),class:be(j(EF))},je(t.label),11,AF)):Ls(``,!0),js(`div`,jF,[Cr(js(`select`,Vs({id:j(r),"onUpdate:modelValue":i[0]||=e=>n.value=e,class:j(oF)(j(OF),`cursor-pointer appearance-none pr-7`,t.mono&&`font-mono text-xs`,t.error&&`border-danger`)},e.$attrs),[(F(!0),ws(ms,null,xa(t.options,e=>(F(),ws(`option`,{key:e.value,value:e.value,disabled:e.disabled},je(e.label),9,NF))),128))],16,MF),[[fu,n.value]]),I(j(Wh),{class:`pointer-events-none absolute right-2 top-1/2 size-3.5 -translate-y-1/2 text-faint`,"aria-hidden":`true`})]),t.error?(F(),ws(`p`,PF,je(t.error),1)):t.hint?(F(),ws(`p`,{key:2,class:be(j(DF))},je(t.hint),3)):Ls(``,!0)],2))}}),IF=[`type`,`disabled`,`aria-busy`],LF=N({inheritAttrs:!1,__name:`AppButton`,props:{variant:{default:`secondary`},size:{default:`sm`},type:{default:`button`},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1}},setup(e){let t=e,n=Ra(),r={primary:`bg-accent text-accent-ink border-transparent hover:brightness-110 active:brightness-95 shadow-[inset_0_1px_0_rgb(255_255_255/0.14)]`,secondary:`bg-raise text-ink border-line hover:bg-hover`,ghost:`bg-transparent text-muted border-transparent hover:bg-hover hover:text-ink`,danger:`bg-danger text-white border-transparent hover:brightness-110 active:brightness-95`,"danger-ghost":`bg-transparent text-danger border-danger/30 hover:bg-danger-soft`},i={xs:`h-6 gap-1 px-1.5 text-2xs`,sm:`h-8 gap-1.5 px-2.5 text-xs`,md:`h-9 gap-2 px-3.5 text-sm`,icon:`h-9 w-9 justify-center`,"icon-sm":`h-8 w-8 justify-center`},a=L(()=>oF(`inline-flex select-none items-center rounded-control border font-medium whitespace-nowrap`,`transition-[background-color,border-color,color,filter,opacity] duration-150 ease-out`,`disabled:pointer-events-none disabled:opacity-45`,r[t.variant],i[t.size],t.block&&`w-full`,TF,n.class));return(e,r)=>(F(),ws(`button`,Vs({...j(n),class:void 0},{type:t.type,class:a.value,disabled:t.disabled||t.loading,"aria-busy":t.loading||void 0}),[t.loading?(F(),Ts(j(Gh),{key:0,class:`size-3.5 shrink-0 animate-spin`,"aria-hidden":`true`})):Ls(``,!0),P(e.$slots,`default`)],16,IF))}}),RF={class:`flex shrink-0 items-start justify-between gap-4 border-b border-line px-4 py-3`},zF={class:`min-w-0`},BF={class:`min-h-0 flex-1 overflow-y-auto px-4 py-3.5`},VF={key:0,class:`flex shrink-0 items-center justify-end gap-2 border-t border-line bg-panel-2 px-4 py-3`},HF=N({__name:`Modal`,props:Ha({title:{},description:{default:void 0},width:{default:`w-[min(92vw,34rem)]`}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let t=e,n=uo(e,`open`);return(e,r)=>(F(),Ts(j(of),{open:n.value,"onUpdate:open":r[0]||=e=>n.value=e},{default:M(()=>[I(j(Xf),null,{default:M(()=>[I(j(Jf),{class:`fixed inset-0 z-50 bg-black/45 backdrop-blur-[1px] data-[state=closed]:animate-[hh-fade-out_120ms_ease-in] data-[state=open]:animate-[hh-fade-in_150ms_ease-out]`}),I(j(Gf),{class:be(j(oF)(`fixed left-1/2 top-1/2 z-50 flex max-h-[88dvh] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden`,`rounded-panel border border-line bg-panel shadow-float`,`data-[state=closed]:animate-[hh-pop-out_120ms_ease-in] data-[state=open]:animate-[hh-pop-in_160ms_var(--ease-out-quick)]`,t.width))},{default:M(()=>[js(`header`,RF,[js(`div`,zF,[I(j(Zf),{class:`text-sm font-semibold text-ink`},{default:M(()=>[Fs(je(t.title),1)]),_:1}),t.description?(F(),Ts(j(Kf),{key:0,class:`mt-0.5 text-xs text-muted`},{default:M(()=>[Fs(je(t.description),1)]),_:1})):Ls(``,!0)]),I(j(sf),{class:be(j(oF)(`-mr-1 -mt-0.5 grid size-7 shrink-0 place-items-center rounded-control text-muted transition-colors duration-150 hover:bg-hover hover:text-ink`,j(TF))),"aria-label":j(X)(`common.close`)},{default:M(()=>[I(j(Kh),{class:`size-4`})]),_:1},8,[`class`,`aria-label`])]),js(`div`,BF,[P(e.$slots,`default`)]),e.$slots.footer?(F(),ws(`footer`,VF,[P(e.$slots,`footer`)])):Ls(``,!0)]),_:3},8,[`class`])]),_:3})]),_:3},8,[`open`]))}});export{vA as $,nf as $n,Xi as $r,jD as $t,X as A,je as Ai,Eh as An,Tu as Ar,PA as At,zj as B,Gf as Bn,Fs as Br,IA as Bt,MN as C,hn as Ci,yh as Cn,Ic as Cr,tj as Ct,hN as D,be as Di,Ah as Dn,_u as Dr,jA as Dt,gN as E,j as Ei,kh as En,lu as Er,JA as Et,oM as F,Qf as Fn,Ts as Fr,uj as Ft,Yj as G,Rf as Gn,R as Gr,gj as Gt,Lj as H,jf as Hn,N as Hr,LA as Ht,eM as I,Zf as In,Ls as Ir,rj as It,sA as J,Bf as Jn,Ha as Jr,zA as Jt,Xj as K,If as Kn,Er as Kr,RA as Kt,tM as L,Xf as Ln,ws as Lr,aj as Lt,nN as M,ph as Mn,ms as Mr,hA as Mt,HM as N,np as Nn,L as Nr,vj as Nt,pN as O,xe as Oi,Mh as On,cu as Or,MA as Ot,GM as P,tp as Pn,js as Pr,lj as Pt,ej as Q,of as Qn,sa as Qr,LD as Qt,Kj as R,Yf as Rn,Sa as Rr,Sj as Rt,AN as S,nn as Si,xh as Sn,Vu as Sr,mj as St,_N as T,yn as Ti,Dh as Tn,Nu as Tr,SA as Tt,Jj as U,Pf as Un,Js as Ur,sj as Ut,Uj as V,Ff as Vn,I as Vr,yj as Vt,Gj as W,Mf as Wn,Ns as Wr,mA as Wt,fj as X,Af as Xn,rr as Xr,Vk as Xt,dA as Y,Lf as Yn,Vs as Yr,Bk as Yt,dj as Z,hf as Zn,Yi as Zr,kk as Zt,gF as _,dn as _i,bh as _n,id as _r,bA as _t,DF as a,P as ai,mD as an,Fd as ar,qA as at,oF as b,rn as bi,hh as bn,sd as br,fA as bt,kF as c,wa as ci,K as cn,Md as cr,YA as ct,vF as d,La as di,Wh as dn,ud as dr,cj as dt,ia as ei,PD as en,ef as er,ij as et,hF as f,Nr as fi,Uh as fn,dd as fr,xj as ft,uF as g,mn as gi,mh as gn,qu as gr,TA as gt,fF as h,Cr as hi,Ch as hn,td as hr,CA as ht,TF as i,xa as ii,uD as in,Id as ir,hj as it,mN as j,uh as jn,Cu as jr,FA as jt,fN as k,he as ki,jh as kn,el as kr,NA as kt,wF as l,fi as li,qh as ln,kd as lr,oj as lt,pF as m,M as mi,_h as mn,Gu as mr,QA as mt,LF as n,F as ni,WO as nn,Jd as nr,pA as nt,OF as o,ha as oi,fD as on,Pd as or,yA as ot,mF as p,Ar as pi,vh as pn,gd as pr,$A as pt,oA as q,Vf as qn,Va as qr,Pj as qt,FF as r,Tr as ri,RD as rn,Kd as rr,uA as rt,EF as s,_a as si,HE as sn,Nd as sr,_j as st,HF as t,ca as ti,GO as tn,$d as tr,Fj as tt,_F as u,uo as ui,Kh as un,Ed as ur,nj as ut,dF as v,ze as vi,gh as vn,ad as vr,EA as vt,jN as w,wn as wi,Oh as wn,Kl as wr,kA as wt,kN as x,A as xi,Th as xn,Hu as xr,bj as xt,lF as y,tn as yi,wh as yn,Wu as yr,xA as yt,Bj as z,Jf as zn,Is as zr,kj as zt};