claude-mux 0.9.2 → 0.9.3

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 (62) hide show
  1. package/dist/commands/update.d.ts.map +1 -1
  2. package/dist/commands/update.js +23 -1
  3. package/dist/commands/update.js.map +1 -1
  4. package/dist/utils/version.d.ts +1 -1
  5. package/dist/utils/version.js +1 -1
  6. package/{web/.svelte-kit/output/client/_app/immutable/chunks/BU5h8NYO.js → dist/web/client/_app/immutable/chunks/1A3AeVAA.js} +1 -1
  7. package/dist/web/client/_app/immutable/chunks/CTGl6QSA.js +3 -0
  8. package/{web/.svelte-kit/output/client/_app/immutable/chunks/DHeexKFx.js → dist/web/client/_app/immutable/chunks/C_m4I3tU.js} +1 -1
  9. package/dist/web/client/_app/immutable/chunks/{BB9TuzmK.js → ZheqT_LH.js} +1 -1
  10. package/dist/web/client/_app/immutable/entry/{app.B24VM-EE.js → app.CfbgvVK7.js} +2 -2
  11. package/dist/web/client/_app/immutable/entry/start.DZs6fkCj.js +1 -0
  12. package/dist/web/client/_app/immutable/nodes/{0.BWJ-EEUf.js → 0.Dsfwy1bM.js} +1 -1
  13. package/dist/web/client/_app/immutable/nodes/{1.DILU-70h.js → 1.B6xIIS11.js} +1 -1
  14. package/dist/web/client/_app/immutable/nodes/{2.ClTKvGQu.js → 2.DnQQqi6w.js} +1 -1
  15. package/dist/web/client/_app/immutable/nodes/{3.BqgdxZ4J.js → 3.B4yVZvTz.js} +1 -1
  16. package/dist/web/client/_app/version.json +1 -1
  17. package/dist/web/server/chunks/{0-CWPTrtx7.js → 0-BMNVXQEW.js} +6 -6
  18. package/dist/web/server/chunks/{0-CWPTrtx7.js.map → 0-BMNVXQEW.js.map} +1 -1
  19. package/dist/web/server/chunks/{1-BvD2TuDo.js → 1-C4iDSSKl.js} +3 -3
  20. package/dist/web/server/chunks/{1-BvD2TuDo.js.map → 1-C4iDSSKl.js.map} +1 -1
  21. package/dist/web/server/chunks/{2-dcOGLSIi.js → 2-CEQq-65q.js} +5 -5
  22. package/dist/web/server/chunks/{2-dcOGLSIi.js.map → 2-CEQq-65q.js.map} +1 -1
  23. package/dist/web/server/chunks/{3-OuXGZ-UL.js → 3-BZJs1a9Z.js} +5 -5
  24. package/dist/web/server/chunks/{3-OuXGZ-UL.js.map → 3-BZJs1a9Z.js.map} +1 -1
  25. package/dist/web/server/index.js +1 -1
  26. package/dist/web/server/index.js.map +1 -1
  27. package/dist/web/server/manifest.js +9 -9
  28. package/dist/web/server/manifest.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/commands/update.ts +22 -1
  31. package/src/utils/version.ts +1 -1
  32. package/web/.svelte-kit/adapter-bun/chunks/internal.js +1 -1
  33. package/web/.svelte-kit/adapter-bun/manifest-full.js +1 -1
  34. package/web/.svelte-kit/adapter-bun/manifest.js +1 -1
  35. package/web/.svelte-kit/adapter-bun/nodes/0.js +1 -1
  36. package/web/.svelte-kit/adapter-bun/nodes/1.js +1 -1
  37. package/web/.svelte-kit/adapter-bun/nodes/2.js +1 -1
  38. package/web/.svelte-kit/adapter-bun/nodes/3.js +1 -1
  39. package/web/.svelte-kit/generated/server/internal.js +1 -1
  40. package/web/.svelte-kit/output/client/.vite/manifest.json +48 -48
  41. package/{dist/web/client/_app/immutable/chunks/BU5h8NYO.js → web/.svelte-kit/output/client/_app/immutable/chunks/1A3AeVAA.js} +1 -1
  42. package/web/.svelte-kit/output/client/_app/immutable/chunks/CTGl6QSA.js +3 -0
  43. package/{dist/web/client/_app/immutable/chunks/DHeexKFx.js → web/.svelte-kit/output/client/_app/immutable/chunks/C_m4I3tU.js} +1 -1
  44. package/web/.svelte-kit/output/client/_app/immutable/chunks/{BB9TuzmK.js → ZheqT_LH.js} +1 -1
  45. package/web/.svelte-kit/output/client/_app/immutable/entry/{app.B24VM-EE.js → app.CfbgvVK7.js} +2 -2
  46. package/web/.svelte-kit/output/client/_app/immutable/entry/start.DZs6fkCj.js +1 -0
  47. package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.BWJ-EEUf.js → 0.Dsfwy1bM.js} +1 -1
  48. package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.DILU-70h.js → 1.B6xIIS11.js} +1 -1
  49. package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.ClTKvGQu.js → 2.DnQQqi6w.js} +1 -1
  50. package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.BqgdxZ4J.js → 3.B4yVZvTz.js} +1 -1
  51. package/web/.svelte-kit/output/client/_app/version.json +1 -1
  52. package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
  53. package/web/.svelte-kit/output/server/manifest-full.js +1 -1
  54. package/web/.svelte-kit/output/server/manifest.js +1 -1
  55. package/web/.svelte-kit/output/server/nodes/0.js +1 -1
  56. package/web/.svelte-kit/output/server/nodes/1.js +1 -1
  57. package/web/.svelte-kit/output/server/nodes/2.js +1 -1
  58. package/web/.svelte-kit/output/server/nodes/3.js +1 -1
  59. package/dist/web/client/_app/immutable/chunks/jAm107uH.js +0 -3
  60. package/dist/web/client/_app/immutable/entry/start.DcbBqC7C.js +0 -1
  61. package/web/.svelte-kit/output/client/_app/immutable/chunks/jAm107uH.js +0 -3
  62. package/web/.svelte-kit/output/client/_app/immutable/entry/start.DcbBqC7C.js +0 -1
@@ -14,13 +14,13 @@ const manifest = (() => {
14
14
  },
15
15
  _: {
16
16
  client: {
17
- start: "_app/immutable/entry/start.DcbBqC7C.js",
18
- app: "_app/immutable/entry/app.B24VM-EE.js",
17
+ start: "_app/immutable/entry/start.DZs6fkCj.js",
18
+ app: "_app/immutable/entry/app.CfbgvVK7.js",
19
19
  imports: [
20
- "_app/immutable/entry/start.DcbBqC7C.js",
21
- "_app/immutable/chunks/jAm107uH.js",
20
+ "_app/immutable/entry/start.DZs6fkCj.js",
21
+ "_app/immutable/chunks/CTGl6QSA.js",
22
22
  "_app/immutable/chunks/BIuG5Qqu.js",
23
- "_app/immutable/entry/app.B24VM-EE.js",
23
+ "_app/immutable/entry/app.CfbgvVK7.js",
24
24
  "_app/immutable/chunks/BIuG5Qqu.js",
25
25
  "_app/immutable/chunks/D7LHlC1M.js",
26
26
  "_app/immutable/chunks/CGb10hB5.js"
@@ -30,10 +30,10 @@ const manifest = (() => {
30
30
  uses_env_dynamic_public: false
31
31
  },
32
32
  nodes: [
33
- __memo(() => import("./chunks/0-CWPTrtx7.js")),
34
- __memo(() => import("./chunks/1-BvD2TuDo.js")),
35
- __memo(() => import("./chunks/2-dcOGLSIi.js")),
36
- __memo(() => import("./chunks/3-OuXGZ-UL.js"))
33
+ __memo(() => import("./chunks/0-BMNVXQEW.js")),
34
+ __memo(() => import("./chunks/1-C4iDSSKl.js")),
35
+ __memo(() => import("./chunks/2-CEQq-65q.js")),
36
+ __memo(() => import("./chunks/3-BZJs1a9Z.js"))
37
37
  ],
38
38
  remotes: {},
39
39
  routes: [
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","names":[],"sources":["../../../web/.svelte-kit/adapter-bun/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.svg\",\"robots.txt\"]),\n\tmimeTypes: {\".svg\":\"image/svg+xml\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.DcbBqC7C.js\",app:\"_app/immutable/entry/app.B24VM-EE.js\",imports:[\"_app/immutable/entry/start.DcbBqC7C.js\",\"_app/immutable/chunks/jAm107uH.js\",\"_app/immutable/chunks/BIuG5Qqu.js\",\"_app/immutable/entry/app.B24VM-EE.js\",\"_app/immutable/chunks/BIuG5Qqu.js\",\"_app/immutable/chunks/D7LHlC1M.js\",\"_app/immutable/chunks/CGb10hB5.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/browse\",\n\t\t\t\tpattern: /^\\/api\\/browse\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/browse/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/chrome\",\n\t\t\t\tpattern: /^\\/api\\/chrome\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/chrome/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/files/image\",\n\t\t\t\tpattern: /^\\/api\\/files\\/image\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/files/image/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/health\",\n\t\t\t\tpattern: /^\\/api\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/projects/new-session\",\n\t\t\t\tpattern: /^\\/api\\/projects\\/new-session\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/projects/new-session/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/servers/discover\",\n\t\t\t\tpattern: /^\\/api\\/servers\\/discover\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/servers/discover/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/attach\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/attach\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/attach/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/kill\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/kill\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/kill/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[target]/output\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/output\\/?$/,\n\t\t\t\tparams: [{\"name\":\"target\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_target_/output/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/queue\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/queue\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/queue/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/rename\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/rename\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/rename/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/restart\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/restart\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/restart/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/screenshots\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/screenshots\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/send\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/send\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/send/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/voice\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/voice\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/voice/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/tmux/panes\",\n\t\t\t\tpattern: /^\\/api\\/tmux\\/panes\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/tmux/panes/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/downloads/[file]\",\n\t\t\t\tpattern: /^\\/downloads\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"file\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/downloads/_file_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/session/[target]\",\n\t\t\t\tpattern: /^\\/session\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"target\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"mappings":"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"}
1
+ {"version":3,"file":"manifest.js","names":[],"sources":["../../../web/.svelte-kit/adapter-bun/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.svg\",\"robots.txt\"]),\n\tmimeTypes: {\".svg\":\"image/svg+xml\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.DZs6fkCj.js\",app:\"_app/immutable/entry/app.CfbgvVK7.js\",imports:[\"_app/immutable/entry/start.DZs6fkCj.js\",\"_app/immutable/chunks/CTGl6QSA.js\",\"_app/immutable/chunks/BIuG5Qqu.js\",\"_app/immutable/entry/app.CfbgvVK7.js\",\"_app/immutable/chunks/BIuG5Qqu.js\",\"_app/immutable/chunks/D7LHlC1M.js\",\"_app/immutable/chunks/CGb10hB5.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/browse\",\n\t\t\t\tpattern: /^\\/api\\/browse\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/browse/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/chrome\",\n\t\t\t\tpattern: /^\\/api\\/chrome\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/chrome/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/files/image\",\n\t\t\t\tpattern: /^\\/api\\/files\\/image\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/files/image/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/health\",\n\t\t\t\tpattern: /^\\/api\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/projects/new-session\",\n\t\t\t\tpattern: /^\\/api\\/projects\\/new-session\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/projects/new-session/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/servers/discover\",\n\t\t\t\tpattern: /^\\/api\\/servers\\/discover\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/servers/discover/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/attach\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/attach\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/attach/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/kill\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/kill\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/kill/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[target]/output\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/output\\/?$/,\n\t\t\t\tparams: [{\"name\":\"target\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_target_/output/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/queue\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/queue\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/queue/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/rename\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/rename\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/rename/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/restart\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/restart\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/restart/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/screenshots\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/screenshots\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/send\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/send\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/send/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[id]/voice\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/voice\\/?$/,\n\t\t\t\tparams: [{\"name\":\"id\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/voice/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/tmux/panes\",\n\t\t\t\tpattern: /^\\/api\\/tmux\\/panes\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/tmux/panes/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/downloads/[file]\",\n\t\t\t\tpattern: /^\\/downloads\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"file\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/downloads/_file_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/session/[target]\",\n\t\t\t\tpattern: /^\\/session\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"target\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"mappings":";AAAA,MAAa,kBAAkB;CAC/B,SAAS,OAAO,IAAI;EACnB,IAAI;EACJ,aAAa,UAAW,QAAQ,GAAG;CACpC;CAEA,OAAO;EACN,QAAQ;EACR,SAAS;EACT,QAAQ,IAAI,IAAI,CAAC,eAAc,YAAY,CAAC;EAC5C,WAAW;GAAC,QAAO;GAAgB,QAAO;EAAY;EACtD,GAAG;GACF,QAAQ;IAAC,OAAM;IAAyC,KAAI;IAAuC,SAAQ;KAAC;KAAyC;KAAoC;KAAoC;KAAuC;KAAoC;KAAoC;IAAmC;IAAE,aAAY,CAAC;IAAE,OAAM,CAAC;IAAE,yBAAwB;GAAK;GACta,OAAO;IACN,aAAa,OAAO,yBAAe;IACnC,aAAa,OAAO,yBAAe;IACnC,aAAa,OAAO,yBAAe;IACnC,aAAa,OAAO,yBAAe;GACpC;GACA,SAAS,CAET;GACA,QAAQ;IACP;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;MAAE,SAAS,CAAC,CAAE;MAAG,QAAQ,CAAC,CAAE;MAAG,MAAM;KAAE;KAC7C,UAAU;IACX;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAA+C;IAC9E;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAA+C;IAC9E;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAAoD;IACnF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAA+C;IAC9E;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAA6D;IAC5F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAAyD;IACxF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAAiD;IAChF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAAsD;IACrF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA6D;IAC5F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA2D;IAC1F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAS,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACxE,MAAM;KACN,UAAU,aAAa,OAAO,kCAAiE;IAChG;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA4D;IAC3F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA6D;IAC5F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA8D;IAC7F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAAkE;IACjG;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA2D;IAC1F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAK,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACpE,MAAM;KACN,UAAU,aAAa,OAAO,kCAA4D;IAC3F;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;KACT,MAAM;KACN,UAAU,aAAa,OAAO,kCAAmD;IAClF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAO,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACtE,MAAM;KACN,UAAU,aAAa,OAAO,kCAAqD;IACpF;IACA;KACC,IAAI;KACJ,SAAS;KACT,QAAQ,CAAC;MAAC,QAAO;MAAS,YAAW;MAAM,QAAO;MAAM,WAAU;KAAK,CAAC;KACxE,MAAM;MAAE,SAAS,CAAC,CAAE;MAAG,QAAQ,CAAC,CAAE;MAAG,MAAM;KAAE;KAC7C,UAAU;IACX;GACD;GACA,oCAAoB,IAAI,IAAI,CAAC,CAAC;GAC9B,UAAU,YAAY;IAErB,OAAO,CAAG;GACX;GACA,eAAe,CAAC;EACjB;CACD;AACA,GAAG;AAEH,MAAa,8BAAc,IAAI,IAAI,CAAC,CAAC;AAErC,MAAa,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mux",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Real-time web dashboard for monitoring and controlling multiple Claude Code sessions",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",
@@ -1,11 +1,24 @@
1
1
  import { Command } from "commander";
2
2
  import { execSync, spawnSync } from "child_process";
3
3
  import { setTimeout as delay } from "timers/promises";
4
+ import { existsSync } from "fs";
5
+ import { join } from "path";
6
+ import { homedir } from "os";
4
7
  import { VERSION } from "../utils/version.js";
5
8
  import { runSetup } from "../setup/index.js";
6
9
  import { isPidAlive } from "../utils/pid.js";
7
10
  import { DEFAULT_SERVER_PORT } from "../utils/paths.js";
8
11
 
12
+ const UNIT_PATH = join(homedir(), ".config", "systemd", "user", "claude-mux.service");
13
+
14
+ // SSH non-login shells often lack XDG_RUNTIME_DIR, which `systemctl --user`
15
+ // needs to reach the user manager. Set it ourselves when missing.
16
+ function ensureXdgRuntime(): void {
17
+ if (process.env.XDG_RUNTIME_DIR) return;
18
+ const uid = typeof process.getuid === "function" ? process.getuid() : null;
19
+ if (uid !== null) process.env.XDG_RUNTIME_DIR = `/run/user/${uid}`;
20
+ }
21
+
9
22
  function getLatestVersion(): string | null {
10
23
  try {
11
24
  const out = execSync("npm view claude-mux version", {
@@ -21,6 +34,11 @@ function getLatestVersion(): string | null {
21
34
  const SYSTEMD_UNIT = "claude-mux.service";
22
35
 
23
36
  function isSystemdManaged(): boolean {
37
+ // Unit file present means `service install` was run on this host; that's
38
+ // the authoritative signal. is-active can return false negatives under
39
+ // SSH non-login where XDG_RUNTIME_DIR is unset.
40
+ if (existsSync(UNIT_PATH)) return true;
41
+ ensureXdgRuntime();
24
42
  const r = spawnSync("systemctl", ["--user", "is-active", "--quiet", SYSTEMD_UNIT], {
25
43
  stdio: ["pipe", "pipe", "pipe"],
26
44
  });
@@ -28,6 +46,7 @@ function isSystemdManaged(): boolean {
28
46
  }
29
47
 
30
48
  function systemctlUser(...args: string[]): number {
49
+ ensureXdgRuntime();
31
50
  const r = spawnSync("systemctl", ["--user", ...args], { stdio: "inherit" });
32
51
  return r.status ?? 1;
33
52
  }
@@ -72,11 +91,13 @@ async function stopProd(pid: number): Promise<void> {
72
91
 
73
92
  function startProd(): void {
74
93
  console.log(`Starting prod server on 127.0.0.1:${DEFAULT_SERVER_PORT}...`);
94
+ // POSIX-clean: with stdin/stdout/stderr redirected, `&` alone fully detaches.
95
+ // `disown` is bash-only and breaks under /bin/sh = dash (Debian/Ubuntu).
75
96
  const result = spawnSync(
76
97
  "sh",
77
98
  [
78
99
  "-c",
79
- `nohup claude-mux serve --port ${DEFAULT_SERVER_PORT} --host 127.0.0.1 > /tmp/claude-mux-prod.log 2>&1 & disown`,
100
+ `nohup claude-mux serve --port ${DEFAULT_SERVER_PORT} --host 127.0.0.1 < /dev/null > /tmp/claude-mux-prod.log 2>&1 &`,
80
101
  ],
81
102
  { stdio: "inherit" }
82
103
  );
@@ -2,4 +2,4 @@
2
2
  * Central version constant for claude-watch.
3
3
  * Keep in sync with package.json version.
4
4
  */
5
- export const VERSION = "0.9.2";
5
+ export const VERSION = "0.9.3";
@@ -97,7 +97,7 @@ const options = {
97
97
  <div class="error">
98
98
  <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
99
99
  },
100
- version_hash: "1dehaal"
100
+ version_hash: "xe3lva"
101
101
  };
102
102
  async function get_hooks() {
103
103
  let handle;
@@ -10,7 +10,7 @@ return {
10
10
  assets: new Set(["favicon.svg","robots.txt"]),
11
11
  mimeTypes: {".svg":"image/svg+xml",".txt":"text/plain"},
12
12
  _: {
13
- client: {start:"_app/immutable/entry/start.DcbBqC7C.js",app:"_app/immutable/entry/app.B24VM-EE.js",imports:["_app/immutable/entry/start.DcbBqC7C.js","_app/immutable/chunks/jAm107uH.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/entry/app.B24VM-EE.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/CGb10hB5.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
+ client: {start:"_app/immutable/entry/start.DZs6fkCj.js",app:"_app/immutable/entry/app.CfbgvVK7.js",imports:["_app/immutable/entry/start.DZs6fkCj.js","_app/immutable/chunks/CTGl6QSA.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/entry/app.CfbgvVK7.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/CGb10hB5.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
14
14
  nodes: [
15
15
  __memo(() => import('./nodes/0.js')),
16
16
  __memo(() => import('./nodes/1.js')),
@@ -10,7 +10,7 @@ return {
10
10
  assets: new Set(["favicon.svg","robots.txt"]),
11
11
  mimeTypes: {".svg":"image/svg+xml",".txt":"text/plain"},
12
12
  _: {
13
- client: {start:"_app/immutable/entry/start.DcbBqC7C.js",app:"_app/immutable/entry/app.B24VM-EE.js",imports:["_app/immutable/entry/start.DcbBqC7C.js","_app/immutable/chunks/jAm107uH.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/entry/app.B24VM-EE.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/CGb10hB5.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
+ client: {start:"_app/immutable/entry/start.DZs6fkCj.js",app:"_app/immutable/entry/app.CfbgvVK7.js",imports:["_app/immutable/entry/start.DZs6fkCj.js","_app/immutable/chunks/CTGl6QSA.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/entry/app.CfbgvVK7.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/CGb10hB5.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
14
14
  nodes: [
15
15
  __memo(() => import('./nodes/0.js')),
16
16
  __memo(() => import('./nodes/1.js')),
@@ -5,6 +5,6 @@ let component_cache;
5
5
  export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
6
6
  export { server };
7
7
  export const server_id = "src/routes/+layout.server.ts";
8
- export const imports = ["_app/immutable/nodes/0.BWJ-EEUf.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/DHeexKFx.js","_app/immutable/chunks/jAm107uH.js","_app/immutable/chunks/BU5h8NYO.js","_app/immutable/chunks/BB9TuzmK.js"];
8
+ export const imports = ["_app/immutable/nodes/0.Dsfwy1bM.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/C_m4I3tU.js","_app/immutable/chunks/CTGl6QSA.js","_app/immutable/chunks/1A3AeVAA.js","_app/immutable/chunks/ZheqT_LH.js"];
9
9
  export const stylesheets = ["_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css","_app/immutable/assets/0._7q2-APf.css"];
10
10
  export const fonts = [];
@@ -3,6 +3,6 @@
3
3
  export const index = 1;
4
4
  let component_cache;
5
5
  export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
6
- export const imports = ["_app/immutable/nodes/1.DILU-70h.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/jAm107uH.js"];
6
+ export const imports = ["_app/immutable/nodes/1.B6xIIS11.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CTGl6QSA.js"];
7
7
  export const stylesheets = [];
8
8
  export const fonts = [];
@@ -3,6 +3,6 @@
3
3
  export const index = 2;
4
4
  let component_cache;
5
5
  export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
6
- export const imports = ["_app/immutable/nodes/2.ClTKvGQu.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/DHeexKFx.js","_app/immutable/chunks/jAm107uH.js","_app/immutable/chunks/BB9TuzmK.js"];
6
+ export const imports = ["_app/immutable/nodes/2.DnQQqi6w.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/C_m4I3tU.js","_app/immutable/chunks/CTGl6QSA.js","_app/immutable/chunks/ZheqT_LH.js"];
7
7
  export const stylesheets = ["_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css","_app/immutable/assets/2.s6Kx4oz1.css"];
8
8
  export const fonts = [];
@@ -8,6 +8,6 @@ export const universal = {
8
8
  "ssr": false
9
9
  };
10
10
  export const universal_id = "src/routes/session/[target]/+page.ts";
11
- export const imports = ["_app/immutable/nodes/3.BqgdxZ4J.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/DHeexKFx.js","_app/immutable/chunks/jAm107uH.js","_app/immutable/chunks/BU5h8NYO.js"];
11
+ export const imports = ["_app/immutable/nodes/3.B4yVZvTz.js","_app/immutable/chunks/D7LHlC1M.js","_app/immutable/chunks/BIuG5Qqu.js","_app/immutable/chunks/CGb10hB5.js","_app/immutable/chunks/C_m4I3tU.js","_app/immutable/chunks/CTGl6QSA.js","_app/immutable/chunks/1A3AeVAA.js"];
12
12
  export const stylesheets = ["_app/immutable/assets/3.luY-vLwW.css"];
13
13
  export const fonts = [];
@@ -25,7 +25,7 @@ export const options = {
25
25
  app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\" class=\"dark\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon.svg\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
26
26
  error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
27
27
  },
28
- version_hash: "1dehaal"
28
+ version_hash: "xe3lva"
29
29
  };
30
30
 
31
31
  export async function get_hooks() {
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "../node_modules/.bun/@sveltejs+kit@2.60.1+8fdad0328da2fdc5/node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
3
- "file": "_app/immutable/entry/start.DcbBqC7C.js",
3
+ "file": "_app/immutable/entry/start.DZs6fkCj.js",
4
4
  "name": "entry/start",
5
5
  "src": "../node_modules/.bun/@sveltejs+kit@2.60.1+8fdad0328da2fdc5/node_modules/@sveltejs/kit/src/runtime/client/entry.js",
6
6
  "isEntry": true,
7
7
  "imports": [
8
- "_jAm107uH.js"
8
+ "_CTGl6QSA.js"
9
9
  ]
10
10
  },
11
11
  ".svelte-kit/generated/client-optimized/app.js": {
12
- "file": "_app/immutable/entry/app.B24VM-EE.js",
12
+ "file": "_app/immutable/entry/app.CfbgvVK7.js",
13
13
  "name": "entry/app",
14
14
  "src": ".svelte-kit/generated/client-optimized/app.js",
15
15
  "isEntry": true,
@@ -26,7 +26,7 @@
26
26
  ]
27
27
  },
28
28
  ".svelte-kit/generated/client-optimized/nodes/0.js": {
29
- "file": "_app/immutable/nodes/0.BWJ-EEUf.js",
29
+ "file": "_app/immutable/nodes/0.Dsfwy1bM.js",
30
30
  "name": "nodes/0",
31
31
  "src": ".svelte-kit/generated/client-optimized/nodes/0.js",
32
32
  "isEntry": true,
@@ -35,16 +35,16 @@
35
35
  "_D7LHlC1M.js",
36
36
  "_BIuG5Qqu.js",
37
37
  "_CGb10hB5.js",
38
- "_DHeexKFx.js",
39
- "_BU5h8NYO.js",
40
- "_BB9TuzmK.js"
38
+ "_C_m4I3tU.js",
39
+ "_1A3AeVAA.js",
40
+ "_ZheqT_LH.js"
41
41
  ],
42
42
  "css": [
43
43
  "_app/immutable/assets/0._7q2-APf.css"
44
44
  ]
45
45
  },
46
46
  ".svelte-kit/generated/client-optimized/nodes/1.js": {
47
- "file": "_app/immutable/nodes/1.DILU-70h.js",
47
+ "file": "_app/immutable/nodes/1.B6xIIS11.js",
48
48
  "name": "nodes/1",
49
49
  "src": ".svelte-kit/generated/client-optimized/nodes/1.js",
50
50
  "isEntry": true,
@@ -52,11 +52,11 @@
52
52
  "imports": [
53
53
  "_D7LHlC1M.js",
54
54
  "_BIuG5Qqu.js",
55
- "_jAm107uH.js"
55
+ "_CTGl6QSA.js"
56
56
  ]
57
57
  },
58
58
  ".svelte-kit/generated/client-optimized/nodes/2.js": {
59
- "file": "_app/immutable/nodes/2.ClTKvGQu.js",
59
+ "file": "_app/immutable/nodes/2.DnQQqi6w.js",
60
60
  "name": "nodes/2",
61
61
  "src": ".svelte-kit/generated/client-optimized/nodes/2.js",
62
62
  "isEntry": true,
@@ -65,16 +65,16 @@
65
65
  "_D7LHlC1M.js",
66
66
  "_BIuG5Qqu.js",
67
67
  "_CGb10hB5.js",
68
- "_DHeexKFx.js",
69
- "_BB9TuzmK.js",
70
- "_jAm107uH.js"
68
+ "_C_m4I3tU.js",
69
+ "_ZheqT_LH.js",
70
+ "_CTGl6QSA.js"
71
71
  ],
72
72
  "css": [
73
73
  "_app/immutable/assets/2.s6Kx4oz1.css"
74
74
  ]
75
75
  },
76
76
  ".svelte-kit/generated/client-optimized/nodes/3.js": {
77
- "file": "_app/immutable/nodes/3.BqgdxZ4J.js",
77
+ "file": "_app/immutable/nodes/3.B4yVZvTz.js",
78
78
  "name": "nodes/3",
79
79
  "src": ".svelte-kit/generated/client-optimized/nodes/3.js",
80
80
  "isEntry": true,
@@ -83,44 +83,30 @@
83
83
  "_D7LHlC1M.js",
84
84
  "_BIuG5Qqu.js",
85
85
  "_CGb10hB5.js",
86
- "_DHeexKFx.js",
87
- "_jAm107uH.js",
88
- "_BU5h8NYO.js"
86
+ "_C_m4I3tU.js",
87
+ "_CTGl6QSA.js",
88
+ "_1A3AeVAA.js"
89
89
  ],
90
90
  "css": [
91
91
  "_app/immutable/assets/3.luY-vLwW.css"
92
92
  ]
93
93
  },
94
- "_AllSessionsPanel.Chdj8GD8.css": {
95
- "file": "_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css",
96
- "src": "_AllSessionsPanel.Chdj8GD8.css"
97
- },
98
- "_BB9TuzmK.js": {
99
- "file": "_app/immutable/chunks/BB9TuzmK.js",
100
- "name": "AllSessionsPanel",
94
+ "_1A3AeVAA.js": {
95
+ "file": "_app/immutable/chunks/1A3AeVAA.js",
96
+ "name": "preferences.svelte",
101
97
  "imports": [
102
- "_D7LHlC1M.js",
103
98
  "_BIuG5Qqu.js",
104
- "_CGb10hB5.js",
105
- "_DHeexKFx.js",
106
- "_jAm107uH.js"
107
- ],
108
- "css": [
109
- "_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css"
99
+ "_C_m4I3tU.js"
110
100
  ]
111
101
  },
102
+ "_AllSessionsPanel.Chdj8GD8.css": {
103
+ "file": "_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css",
104
+ "src": "_AllSessionsPanel.Chdj8GD8.css"
105
+ },
112
106
  "_BIuG5Qqu.js": {
113
107
  "file": "_app/immutable/chunks/BIuG5Qqu.js",
114
108
  "name": "index-client"
115
109
  },
116
- "_BU5h8NYO.js": {
117
- "file": "_app/immutable/chunks/BU5h8NYO.js",
118
- "name": "preferences.svelte",
119
- "imports": [
120
- "_BIuG5Qqu.js",
121
- "_DHeexKFx.js"
122
- ]
123
- },
124
110
  "_CGb10hB5.js": {
125
111
  "file": "_app/immutable/chunks/CGb10hB5.js",
126
112
  "name": "props",
@@ -128,28 +114,42 @@
128
114
  "_BIuG5Qqu.js"
129
115
  ]
130
116
  },
131
- "_D7LHlC1M.js": {
132
- "file": "_app/immutable/chunks/D7LHlC1M.js",
133
- "name": "disclose-version",
117
+ "_CTGl6QSA.js": {
118
+ "file": "_app/immutable/chunks/CTGl6QSA.js",
119
+ "name": "entry",
134
120
  "imports": [
135
121
  "_BIuG5Qqu.js"
136
122
  ]
137
123
  },
138
- "_DHeexKFx.js": {
139
- "file": "_app/immutable/chunks/DHeexKFx.js",
124
+ "_C_m4I3tU.js": {
125
+ "file": "_app/immutable/chunks/C_m4I3tU.js",
140
126
  "name": "sidebarActions.svelte",
141
127
  "imports": [
142
128
  "_BIuG5Qqu.js",
143
- "_jAm107uH.js",
129
+ "_CTGl6QSA.js",
144
130
  "_D7LHlC1M.js",
145
131
  "_CGb10hB5.js"
146
132
  ]
147
133
  },
148
- "_jAm107uH.js": {
149
- "file": "_app/immutable/chunks/jAm107uH.js",
150
- "name": "entry",
134
+ "_D7LHlC1M.js": {
135
+ "file": "_app/immutable/chunks/D7LHlC1M.js",
136
+ "name": "disclose-version",
151
137
  "imports": [
152
138
  "_BIuG5Qqu.js"
153
139
  ]
140
+ },
141
+ "_ZheqT_LH.js": {
142
+ "file": "_app/immutable/chunks/ZheqT_LH.js",
143
+ "name": "AllSessionsPanel",
144
+ "imports": [
145
+ "_D7LHlC1M.js",
146
+ "_BIuG5Qqu.js",
147
+ "_CGb10hB5.js",
148
+ "_C_m4I3tU.js",
149
+ "_CTGl6QSA.js"
150
+ ],
151
+ "css": [
152
+ "_app/immutable/assets/AllSessionsPanel.Chdj8GD8.css"
153
+ ]
154
154
  }
155
155
  }
@@ -1 +1 @@
1
- import{bn as r,a_ as t,am as i,bb as p}from"./BIuG5Qqu.js";import{L as a}from"./DHeexKFx.js";const s=a("claude-mux-preferences",{terminalTheming:!0,keepAwake:!1});class f{#e=r(t(s.load()));get prefs(){return i(this.#e)}set prefs(e){p(this.#e,e,!0)}get terminalTheming(){return this.prefs.terminalTheming}set terminalTheming(e){this.prefs.terminalTheming!==e&&(this.prefs.terminalTheming=e,s.save(this.prefs))}get keepAwake(){return this.prefs.keepAwake}set keepAwake(e){this.prefs.keepAwake!==e&&(this.prefs.keepAwake=e,s.save(this.prefs))}toggle(e){typeof this.prefs[e]=="boolean"&&(this.prefs[e]=!this.prefs[e],s.save(this.prefs))}}const o=new f;export{o as p};
1
+ import{bn as r,a_ as t,am as i,bb as p}from"./BIuG5Qqu.js";import{L as a}from"./C_m4I3tU.js";const s=a("claude-mux-preferences",{terminalTheming:!0,keepAwake:!1});class f{#e=r(t(s.load()));get prefs(){return i(this.#e)}set prefs(e){p(this.#e,e,!0)}get terminalTheming(){return this.prefs.terminalTheming}set terminalTheming(e){this.prefs.terminalTheming!==e&&(this.prefs.terminalTheming=e,s.save(this.prefs))}get keepAwake(){return this.prefs.keepAwake}set keepAwake(e){this.prefs.keepAwake!==e&&(this.prefs.keepAwake=e,s.save(this.prefs))}toggle(e){typeof this.prefs[e]=="boolean"&&(this.prefs[e]=!this.prefs[e],s.save(this.prefs))}}const o=new f;export{o as p};
@@ -0,0 +1,3 @@
1
+ import{bB as Pe,aW as He,bn as P,am as x,bb as N,bt as ie,bi as It}from"./BIuG5Qqu.js";class me{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ne extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}new URL("sveltekit-internal://");function Tt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Ut(e){return e.split("%25").map(decodeURI).join("%25")}function Lt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ke({href:e}){return e.split("#")[0]}function Pt(e,t,r,n=!1){const o=new URL(e);Object.defineProperty(o,"searchParams",{value:new Proxy(o.searchParams,{get(a,c){if(c==="get"||c==="getAll"||c==="has")return(l,...f)=>(r(l),a[c](l,...f));t();const s=Reflect.get(a,c);return typeof s=="function"?s.bind(a):s}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];n&&i.push("hash");for(const a of i)Object.defineProperty(o,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return o}function C(){}function xt(...e){let t=5381;for(const r of e)if(typeof r=="string"){let n=r.length;for(;n;)t=t*33^r.charCodeAt(--n)}else if(ArrayBuffer.isView(r)){const n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);let o=n.length;for(;o;)t=t*33^n[--o]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Nt(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}const Ot=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&z.delete(Oe(e)),Ot(e,t));const z=new Map;function jt(e,t){const r=Oe(e,t),n=document.querySelector(r);if(n?.textContent){n.remove();let{body:o,...i}=JSON.parse(n.textContent);const a=n.getAttribute("data-ttl");return a&&z.set(r,{body:o,init:i,ttl:1e3*Number(a)}),n.getAttribute("data-b64")!==null&&(o=Nt(o)),Promise.resolve(new Response(o,i))}return window.fetch(e,t)}function Ct(e,t,r){if(z.size>0){const n=Oe(e,r),o=z.get(n);if(o){if(performance.now()<o.ttl&&["default","force-cache","only-if-cached",void 0].includes(r?.cache))return new Response(o.body,o.init);z.delete(n)}}return window.fetch(t,r)}function Oe(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const o=[];t.headers&&o.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&o.push(t.body),n+=`[data-hash="${xt(...o)}"]`}return n}const Dt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function $t(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ft(e).map(n=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(o)return t.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const a=n.split(/\[(.+?)\](?!\])/);return"/"+a.map((s,l)=>{if(l%2){if(s.startsWith("x+"))return Ee(String.fromCharCode(parseInt(s.slice(2),16)));if(s.startsWith("u+"))return Ee(String.fromCharCode(...s.slice(2).split("-").map(_=>parseInt(_,16))));const f=Dt.exec(s),[,h,d,p,u]=f;return t.push({name:p,matcher:u,optional:!!h,rest:!!d,chained:d?l===1&&a[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Ee(s)}).join("")}).join("")}/?$`),params:t}}function Bt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ft(e){return e.slice(1).split("/").filter(Bt)}function Mt(e,t,r){const n={},o=e.slice(1),i=o.filter(c=>c!==void 0);let a=0;for(let c=0;c<t.length;c+=1){const s=t[c];let l=o[c-a];if(s.chained&&s.rest&&a&&(l=o.slice(c-a,c+1).filter(f=>f).join("/"),a=0),l===void 0)if(s.rest)l="";else continue;if(!s.matcher||r[s.matcher](l)){n[s.name]=l;const f=t[c+1],h=o[c+1];f&&!f.rest&&f.optional&&h&&s.chained&&(a=0),!f&&!h&&Object.keys(n).length===i.length&&(a=0);continue}if(s.optional&&s.chained){a++;continue}return}if(!a)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function qt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const o=new Set(t);return Object.entries(r).map(([c,[s,l,f]])=>{const{pattern:h,params:d}=$t(c),p={id:c,exec:u=>{const _=h.exec(u);if(_)return Mt(_,d,n)},errors:[1,...f||[]].map(u=>e[u]),layouts:[0,...l||[]].map(a),leaf:i(s)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function i(c){const s=c<0;return s&&(c=~c),[s,e[c]]}function a(c){return c===void 0?c:[o.has(c),e[c]]}}function rt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ge(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const L=globalThis.__sveltekit_xe3lva?.base??"",Vt=globalThis.__sveltekit_xe3lva?.assets??L??"",Ht="1779191136372",nt="sveltekit:snapshot",at="sveltekit:scroll",ot="sveltekit:states",Gt="sveltekit:pageurl",H="sveltekit:history",ee="sveltekit:navigation",M={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ae=location.origin;function je(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const r=document.getElementsByTagName("base");t=r.length?r[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ye={...M,"":M.hover};function st(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function it(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=st(e)}}function Re(e,t,r){let n;try{if(n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),r&&n.hash.match(/^#[^/]/)){const c=location.hash.split("#")[1]||"/";n.hash=`#${c}${n.hash}`}}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,i=!n||!!o||ye(n,t,r)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=n?.origin===ae&&e.hasAttribute("download");return{url:n,external:i,target:o,download:a}}function ce(e){let t=null,r=null,n=null,o=null,i=null,a=null,c=e;for(;c&&c!==document.documentElement;)n===null&&(n=V(c,"preload-code")),o===null&&(o=V(c,"preload-data")),t===null&&(t=V(c,"keepfocus")),r===null&&(r=V(c,"noscroll")),i===null&&(i=V(c,"reload")),a===null&&(a=V(c,"replacestate")),c=st(c);function s(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ye[n??"off"],preload_data:Ye[o??"off"],keepfocus:s(t),noscroll:s(r),reload:s(i),replace_state:s(a)}}function We(e){const t=Pe(e);let r=!0;function n(){r=!0,t.update(a=>a)}function o(a){r=!1,t.set(a)}function i(a){let c;return t.subscribe(s=>{(c===void 0||r&&s!==c)&&a(c=s)})}return{notify:n,set:o,subscribe:i}}const ct={v:C};function Yt(){const{set:e,subscribe:t}=Pe(!1);let r;async function n(){clearTimeout(r);try{const o=await fetch(`${Vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!o.ok)return!1;const a=(await o.json()).version!==Ht;return a&&(e(!0),ct.v(),clearTimeout(r)),a}catch{return!1}}return{subscribe:t,check:n}}function ye(e,t,r){return e.origin!==ae||!e.pathname.startsWith(t)?!0:r?e.pathname!==location.pathname:!1}function Cr(e){}const Wt=-1,Jt=-2,Kt=-3,Xt=-4,zt=-5,Zt=-6,Qt=-7,lt=2**32-1,Ie=lt-1;function er(e){return!(!Number.isInteger(e)||e<0||e>Ie)}function tr(e){return!(!Number.isInteger(e)||e<0||e>lt)}function rr(e){return Uint8Array.fromBase64(e).buffer}function nr(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function ar(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer}const or=typeof Uint8Array.fromBase64=="function",sr=typeof process=="object"&&process.versions?.node!==void 0,ir=or?rr:sr?nr:ar;function cr(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);let o=null;function i(a,c=!1){if(a===Wt)return;if(a===Kt)return NaN;if(a===Xt)return 1/0;if(a===zt)return-1/0;if(a===Zt)return-0;if(c||typeof a!="number")throw new Error("Invalid input");if(a in n)return n[a];const s=r[a];if(!s||typeof s!="object")n[a]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const l=s[0],f=t&&Object.hasOwn(t,l)?t[l]:void 0;if(f){let h=s[1];if(typeof h!="number"&&(h=r.push(s[1])-1),o??=new Set,o.has(h))throw new Error("Invalid circular reference");return o.add(h),n[a]=f(i(h)),o.delete(h),n[a]}switch(l){case"Date":n[a]=new Date(s[1]);break;case"Set":const h=new Set;n[a]=h;for(let u=1;u<s.length;u+=1)h.add(i(s[u]));break;case"Map":const d=new Map;n[a]=d;for(let u=1;u<s.length;u+=2)d.set(i(s[u]),i(s[u+1]));break;case"RegExp":n[a]=new RegExp(s[1],s[2]);break;case"Object":{const u=s[1];if(typeof r[u]=="object"&&r[u][0]!=="BigInt")throw new Error("Invalid input");n[a]=Object(i(u));break}case"BigInt":n[a]=BigInt(s[1]);break;case"null":const p=Object.create(null);n[a]=p;for(let u=1;u<s.length;u+=2){if(s[u]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");p[s[u]]=i(s[u+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(r[s[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const u=globalThis[l],_=i(s[1]);n[a]=s[2]!==void 0?new u(_,s[2],s[3]):new u(_);break}case"ArrayBuffer":{const u=s[1];if(typeof u!="string")throw new Error("Invalid ArrayBuffer encoding");const _=ir(u);n[a]=_;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const u=l.slice(9);n[a]=Temporal[u].from(s[1]);break}case"URL":{const u=new URL(s[1]);n[a]=u;break}case"URLSearchParams":{const u=new URLSearchParams(s[1]);n[a]=u;break}default:throw new Error(`Unknown type ${l}`)}}else if(s[0]===Qt){const l=s[1];if(!tr(l))throw new Error("Invalid input");const f=[];n[a]=f,f[Ie]=void 0,delete f[Ie];for(let h=2;h<s.length;h+=2){const d=s[h];if(!er(d)||d>=l)throw new Error("Invalid input");f[d]=i(s[h+1])}f.length=l}else{const l=new Array(s.length);n[a]=l;for(let f=0;f<s.length;f+=1){const h=s[f];h!==Jt&&(l[f]=i(h))}}else{const l={};n[a]=l;for(const f of Object.keys(s)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=s[f];l[f]=i(h)}}return n[a]}return i(0)}const ft=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ft];const lr=new Set([...ft]);[...lr];function fr(e){return e.filter(t=>t!=null)}const ur="x-sveltekit-invalidated",dr="x-sveltekit-trailing-slash";function oe(e,t){return e+"/"+t}function le(e){return e instanceof me||e instanceof Ne?e.status:500}function hr(e){return e instanceof Ne?e.text:"Internal Error"}let I,te,Ae;const pr=He.toString().includes("$$")||/function \w+\(\) \{\}/.test(He.toString()),Je="a:";pr?(I={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Je)},te={current:null},Ae={current:!1}):(I=new class{#e=P({});get data(){return x(this.#e)}set data(t){N(this.#e,t)}#t=P(null);get form(){return x(this.#t)}set form(t){N(this.#t,t)}#r=P(null);get error(){return x(this.#r)}set error(t){N(this.#r,t)}#n=P({});get params(){return x(this.#n)}set params(t){N(this.#n,t)}#a=P({id:null});get route(){return x(this.#a)}set route(t){N(this.#a,t)}#o=P({});get state(){return x(this.#o)}set state(t){N(this.#o,t)}#s=P(-1);get status(){return x(this.#s)}set status(t){N(this.#s,t)}#i=P(new URL(Je));get url(){return x(this.#i)}set url(t){N(this.#i,t)}},te=new class{#e=P(null);get current(){return x(this.#e)}set current(t){N(this.#e,t)}},Ae=new class{#e=P(!1);get current(){return x(this.#e)}set current(t){N(this.#e,t)}},ct.v=()=>Ae.current=!0);function ut(e){Object.assign(I,e)}const _r="/__data.json",gr=".html__data.json";function mr(e){return e.endsWith(".html")?e.replace(/\.html$/,gr):e.replace(/\/$/,"")+_r}const Ke={spanContext(){return yr},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},yr={traceId:"",spanId:"",traceFlags:0};async function*wr(e){let t=!1,r="";const n=new TextDecoder;for(;;){let o=r.indexOf(`
2
+ `);for(;o!==-1;){const a=r.slice(0,o).trim();r=r.slice(o+1),a&&(yield JSON.parse(a)),o=r.indexOf(`
3
+ `)}if(t){const a=r.trim();a&&(yield JSON.parse(a));return}const i=await e.read();t=i.done,i.value&&(r+=n.decode(i.value,{stream:!0})),t&&(r+=n.decode())}}const vr=new Set(["icon","shortcut icon","apple-touch-icon"]);let K=null;const B=rt(at)??{},re=rt(nt)??{},$={url:We({}),page:We({}),navigating:Pe(null),updated:Yt()};function Ce(e){B[e]=q()}function br(e,t){let r=e+1;for(;B[r];)delete B[r],r+=1;for(r=t+1;re[r];)delete re[r],r+=1}function W(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function dt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let De,Te,fe,j,Ue,b;const ue=[],de=[];let T=null;function he(){T?.fork?.then(e=>e?.discard()),T=null}const se=new Map,ht=new Set,kr=new Set,Z=new Set;let y={branch:[],error:null,url:null},$e=!1,pe=!1,Xe=!0,ne=!1,X=!1,pt=!1,Be=!1,_t,S,U,D;const Q=new Set,ze=new Map,Ze=new Map;async function Fr(e,t,r){globalThis.__sveltekit_xe3lva&&(globalThis.__sveltekit_xe3lva.query,globalThis.__sveltekit_xe3lva.prerender),document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),De=qt(e),j=document.documentElement,Ue=t,Te=e.nodes[0],fe=e.nodes[1],Te(),fe(),S=history.state?.[H],U=history.state?.[ee],S||(S=U=Date.now(),history.replaceState({...history.state,[H]:S,[ee]:U},""));const n=B[S];function o(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(o(),await xr(Ue,r)):(await G({type:"enter",url:je(b.hash?Or(new URL(location.href)):location.href),replace_state:!0}),o()),Pr()}function Er(){ue.length=0,Be=!1}function gt(e){de.some(t=>t?.snapshot)&&(re[e]=de.map(t=>t?.snapshot?.capture()))}function mt(e){re[e]?.forEach((t,r)=>{de[r]?.snapshot?.restore(t)})}function Qe(){Ce(S),Ge(at,B),gt(U),Ge(nt,re)}async function yt(e,t,r,n){let o,i;t.invalidateAll&&he(),await G({type:"goto",url:je(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){Be=!0,o=new Set;for(const[a,c]of ze)for(const s of c.keys())o.add(oe(a,s));i=new Set;for(const[a,c]of Ze)for(const s of c.keys())i.add(oe(a,s))}t.invalidate&&t.invalidate.forEach(Lr)}}),t.invalidateAll&&ie().then(ie).then(()=>{for(const[a,c]of ze)for(const[s,{resource:l}]of c)o?.has(oe(a,s))&&l.refresh();for(const[a,c]of Ze)for(const[s,{resource:l}]of c)i?.has(oe(a,s))&&l.reconnect()})}async function Ar(e){if(e.id!==T?.id){he();const t={};Q.add(t),T={id:e.id,token:t,promise:bt({...e,preload:t}).then(r=>(Q.delete(t),r.type==="loaded"&&r.state.error&&he(),r)),fork:null}}return T.promise}async function Se(e){const t=(await ve(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function wt(e,t,r){const n={params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)};y={...e.state,nav:n};const o=document.querySelector("style[data-sveltekit]");if(o&&o.remove(),ut(e.props.page),_t=new b.root({target:t,props:{...e.props,stores:$,components:de},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),mt(U),r){const i={from:null,to:{...n,scroll:B[S]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};Z.forEach(a=>a(i))}pe=!0}async function _e({url:e,params:t,branch:r,errors:n,status:o,error:i,route:a,form:c}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of r)u?.slash!==void 0&&(s=u.slash);e.pathname=Tt(e.pathname,s),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:r,error:i,route:a},props:{constructors:fr(r).map(u=>u.node.component),page:Ve(I)}};c!==void 0&&(l.props.form=c);let f={},h=!I,d=0;for(let u=0;u<Math.max(r.length,y.branch.length);u+=1){const _=r[u],k=y.branch[u];_?.data!==k?.data&&(h=!0),_&&(f={...f,..._.data},h&&(l.props[`data_${d}`]=f),d+=1)}return(!y.url||e.href!==y.url.href||y.error!==i||c!==void 0&&c!==I.form||h)&&(l.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:o,url:new URL(e),form:c??null,data:h?f:I.data}),l}async function Fe({loader:e,parent:t,url:r,params:n,route:o,server_data_node:i}){let a=null,c=!0;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let f=function(...d){for(const p of d){const{href:u}=new URL(p,r);s.dependencies.add(u)}};const h={tracing:{enabled:!1,root:Ke,current:Ke},route:new Proxy(o,{get:(d,p)=>(c&&(s.route=!0),d[p])}),params:new Proxy(n,{get:(d,p)=>(c&&s.params.add(p),d[p])}),data:i?.data??null,url:Pt(r,()=>{c&&(s.url=!0)},d=>{c&&s.search_params.add(d)},b.hash),async fetch(d,p){d instanceof Request&&(p={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...p});const{resolved:u,promise:_}=vt(d,p,r);return c&&f(u.href),_},setHeaders:C,depends:f,parent(){return c&&(s.parent=!0),t()},untrack(d){c=!1;try{return d()}finally{c=!0}}};a=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function vt(e,t,r){let n=e instanceof Request?e.url:e;const o=new URL(n,r);o.origin===r.origin&&(n=o.href.slice(r.origin.length));const i=pe?Ct(n,o.href,t):jt(n,t);return{resolved:o,promise:i}}function et(e,t,r,n,o,i){if(Be)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&r)return!0;for(const a of o.search_params)if(n.has(a))return!0;for(const a of o.params)if(i[a]!==y.params[a])return!0;for(const a of o.dependencies)if(ue.some(c=>c(new URL(a))))return!0;return!1}function Me(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Sr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const o=e.searchParams.getAll(n),i=t.searchParams.getAll(n);o.every(a=>i.includes(a))&&i.every(a=>o.includes(a))&&r.delete(n)}return r}function tt({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:Ve(I),constructors:[]}}}async function bt({id:e,invalidating:t,url:r,params:n,route:o,preload:i}){if(T?.id===e)return Q.delete(T.token),T.promise;const{errors:a,layouts:c,leaf:s}=o,l=[...c,s];a.forEach(m=>m?.().catch(C)),l.forEach(m=>m?.[1]().catch(C));let f=null;const h=y.url?e!==ge(y.url):!1,d=y.route?o.id!==y.route.id:!1,p=Sr(y.url,r);let u=!1;{const m=l.map((w,E)=>{const A=y.branch[E],v=!!w?.[0]&&(A?.loader!==w[1]||et(u,d,h,p,A.server?.uses,n));return v&&(u=!0),v});if(m.some(Boolean)){try{f=await At(r,m)}catch(w){const E=await Y(w,{url:r,params:n,route:{id:e}});return Q.has(i)?tt({error:E,url:r,params:n,route:o}):we({status:le(w),error:E,url:r,route:o})}if(f.type==="redirect")return f}}const _=f?.nodes;let k=!1;const g=l.map(async(m,w)=>{if(!m)return;const E=y.branch[w],A=_?.[w];if((!A||A.type==="skip")&&m[1]===E?.loader&&!et(k,d,h,p,E.universal?.uses,n))return E;if(k=!0,A?.type==="error")throw A;return Fe({loader:m[1],url:r,params:n,route:o,parent:async()=>{const O={};for(let F=0;F<w;F+=1)Object.assign(O,(await g[F])?.data);return O},server_data_node:Me(A===void 0&&m[0]?{type:"skip"}:A??null,m[0]?E?.server:void 0)})});for(const m of g)m.catch(C);const R=[];for(let m=0;m<l.length;m+=1)if(l[m])try{R.push(await g[m])}catch(w){if(w instanceof xe)return{type:"redirect",location:w.location};if(Q.has(i))return tt({error:await Y(w,{params:n,url:r,route:{id:o.id}}),url:r,params:n,route:o});let E=le(w),A;if(_?.includes(w))E=w.status??E,A=w.error;else if(w instanceof me)A=w.body;else{if(await $.updated.check())return await dt(),await W(r);A=await Y(w,{params:n,url:r,route:{id:o.id}})}const v=await Rr(m,R,a);return v?_e({url:r,params:n,branch:R.slice(0,v.idx).concat(v.node),errors:a,status:E,error:A,route:o}):await Et(r,{id:o.id},A,E)}else R.push(void 0);return _e({url:r,params:n,branch:R,errors:a,status:200,error:null,route:o,form:t?void 0:null})}async function Rr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function we({status:e,error:t,url:r,route:n}){const o={};let i=null;if(b.server_loads[0]===0)try{const c=await At(r,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;i=c.nodes[0]??null}catch{(r.origin!==ae||r.pathname!==location.pathname||$e)&&await W(r)}try{const a=await Fe({loader:Te,url:r,params:o,route:n,parent:()=>Promise.resolve({}),server_data_node:Me(i)}),c={node:await fe(),loader:fe,universal:null,server:null,data:null};return _e({url:r,params:o,branch:[a,c],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof xe)return yt(new URL(a.location,location.href),{},0);throw a}}async function Ir(e){const t=e.href;if(se.has(t))return se.get(t);let r;try{const n=(async()=>{let o=await b.hooks.reroute({url:new URL(e),fetch:async(i,a)=>vt(i,a,e).promise})??e;if(typeof o=="string"){const i=new URL(e);b.hash?i.hash=o:i.pathname=o,o=i}return o})();se.set(t,n),r=await n}catch{se.delete(t);return}return r}async function ve(e,t){if(e&&!ye(e,L,b.hash)){const r=await Ir(e);if(!r)return;const n=Tr(r);for(const o of De){const i=o.exec(n);if(i)return{id:ge(e),invalidating:t,route:o,params:Lt(i),url:e}}}}function Tr(e){return Ut(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ge(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function kt({url:e,type:t,intent:r,delta:n,event:o,scroll:i}){let a=!1;const c=qe(y,r,e,t,i??null);n!==void 0&&(c.navigation.delta=n),o!==void 0&&(c.navigation.event=o);const s={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation cancelled"))}};return ne||ht.forEach(l=>l(s)),a?null:c}async function G({type:e,url:t,popped:r,keepfocus:n,noscroll:o,replace_state:i,state:a={},redirect_count:c=0,nav_token:s={},accept:l=C,block:f=C,event:h}){const d=D;D=s;const p=await ve(t,!1),u=e==="enter"?qe(y,p,t,e):kt({url:t,type:e,delta:r?.delta,intent:p,scroll:r?.scroll,event:h});if(!u){f(),D===s&&(D=d);return}const _=S,k=U;l(),ne=!0,pe&&u.navigation.type!=="enter"&&$.navigating.set(te.current=u.navigation);let g=p&&await bt(p);if(!g){if(ye(t,L,b.hash))return await W(t,i);g=await Et(t,{id:null},await Y(new Ne(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=p?.url||t,D!==s)return u.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(c<20){await G({type:e,url:new URL(g.location,t),popped:r,keepfocus:n,noscroll:o,replace_state:i,state:a,redirect_count:c+1,nav_token:s}),u.fulfil(void 0);return}g=await we({status:500,error:await Y(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await dt(),await W(t,i));if(Er(),Ce(_),gt(k),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),a=r?r.state:a,!r){const v=i?0:1,O={[H]:S+=v,[ee]:U+=v,[ot]:a};(i?history.replaceState:history.pushState).call(history,O,"",t),i||br(S,U)}const R=p&&T?.id===p.id?T.fork:null;T?.fork&&!R&&he(),T=null,g.props.page.state=a;let m;if(pe){const v=(await Promise.all(Array.from(kr,J=>J(u.navigation)))).filter(J=>typeof J=="function");if(v.length>0){let J=function(){v.forEach(be=>{Z.delete(be)})};v.push(J),v.forEach(be=>{Z.add(be)})}const O=u.navigation.to;y={...g.state,nav:{params:O.params,route:O.route,url:O.url}},g.props.page&&(g.props.page.url=t);const F=R&&await R;F?m=F.commit():(K=null,_t.$set(g.props),K&&Object.assign(g.props.page,K),ut(g.props.page),m=It?.()),pt=!0}else await wt(g,Ue,!1);const{activeElement:w}=document;if(await m,await ie(),await ie(),D!==s)return u.reject(new Error("navigation aborted")),!1;g.props.page&&K&&Object.assign(g.props.page,K);let E=null;if(Xe){const v=r?r.scroll:o?q():null;v?scrollTo(v.x,v.y):(E=t.hash&&document.getElementById(Rt(t)))?E.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==w&&document.activeElement!==document.body;!n&&!A&&Nr(t,!E),Xe=!0,ne=!1,e==="popstate"&&mt(U),u.fulfil(void 0),u.navigation.to&&(u.navigation.to.scroll=q()),Z.forEach(v=>v(u.navigation)),$.navigating.set(te.current=null)}async function Et(e,t,r,n,o){return e.origin===ae&&e.pathname===location.pathname&&!$e?await we({status:n,error:r,url:e,route:t}):await W(e,o)}function Ur(){let e,t={element:void 0,href:void 0},r;j.addEventListener("mousemove",c=>{const s=c.target;clearTimeout(e),e=setTimeout(()=>{i(s,M.hover)},20)});function n(c){c.defaultPrevented||i(c.composedPath()[0],M.tap)}j.addEventListener("mousedown",n),j.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(c=>{for(const s of c)s.isIntersecting&&(Se(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function i(c,s){const l=it(c,j),f=l===t.element&&l?.href===t.href&&s>=r;if(!l||f)return;const{url:h,external:d,download:p}=Re(l,L,b.hash);if(d||p)return;const u=ce(l),_=h&&ge(y.url)===ge(h);if(!(u.reload||_))if(s<=u.preload_data){t={element:l,href:l.href},r=M.tap;const k=await ve(h,!1);if(!k)return;Ar(k)}else s<=u.preload_code&&(t={element:l,href:l.href},r=s,Se(h))}function a(){o.disconnect();for(const c of j.querySelectorAll("a")){const{url:s,external:l,download:f}=Re(c,L,b.hash);if(l||f)continue;const h=ce(c);h.reload||(h.preload_code===M.viewport&&o.observe(c),h.preload_code===M.eager&&Se(s))}}Z.add(a),a()}function Y(e,t){if(e instanceof me)return e.body;const r=le(e),n=hr(e);return b.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Mr(e,t={}){return e=new URL(je(e)),e.origin!==ae?Promise.reject(new Error("goto: invalid URL")):yt(e,t,0)}function Lr(e){if(typeof e=="function")ue.push(e);else{const{href:t}=new URL(e,location.href);ue.push(r=>r.href===t)}}function Pr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Qe(),!ne){const n=qe(y,void 0,null,"leave"),o={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};ht.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||Ur(),j.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=it(t.composedPath()[0],j);if(!r)return;const{url:n,external:o,target:i,download:a}=Re(r,L,b.hash);if(!n)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ce(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||a)return;const[l,f]=(b.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=l===ke(location);if(o||c.reload&&(!h||!f)){kt({url:n,type:"link",event:t})?ne=!0:t.preventDefault();return}if(f!==void 0&&h){const[,d]=y.url.href.split("#");if(d===f){if(t.preventDefault(),f===""||f==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const p=r.ownerDocument.getElementById(decodeURIComponent(f));p&&(p.scrollIntoView(),p.focus())}return}if(X=!0,Ce(S),e(n),!c.replace_state)return;X=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await G({type:"link",url:n,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??n.href===location.href,event:t})}),j.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const a=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(ye(a,L,!1))return;const c=t.target,s=ce(c);if(s.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,n);a.search=new URLSearchParams(l).toString(),G({type:"form",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Le){if(t.state?.[H]){const r=t.state[H];if(D={},r===S)return;const n=B[r],o=t.state[ot]??{},i=new URL(t.state[Gt]??location.href),a=t.state[ee],c=y.url?ke(location)===ke(y.url):!1;if(a===U&&(pt||c)){o!==I.state&&(I.state=o),e(i),B[S]=q(),n&&scrollTo(n.x,n.y),S=r;return}const l=r-S;await G({type:"popstate",url:i,popped:{state:o,scroll:n,delta:l},accept:()=>{S=r,U=a},block:()=>{history.go(-l)},nav_token:D,event:t})}else if(!X){const r=new URL(location.href);e(r),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{X&&(X=!1,history.replaceState({...history.state,[H]:++S,[ee]:U},"",location.href))});for(const t of document.querySelectorAll("link"))vr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(te.current=null)});function e(t){y.url=I.url=t,$.page.set(Ve(I)),$.page.notify()}}async function xr(e,{status:t=200,error:r,node_ids:n,params:o,route:i,server_route:a,data:c,form:s}){$e=!0;const l=new URL(location.href);let f;({params:o={},route:i={id:null}}=await ve(l,!1)||{}),f=De.find(({id:p})=>p===i.id);let h,d=!0;try{const p=n.map(async(_,k)=>{const g=c[k];return g?.uses&&(g.uses=St(g.uses)),Fe({loader:b.nodes[_],url:l,params:o,route:i,parent:async()=>{const R={};for(let m=0;m<k;m+=1)Object.assign(R,(await p[m]).data);return R},server_data_node:Me(g)})}),u=await Promise.all(p);if(f){const _=f.layouts;for(let k=0;k<_.length;k++)_[k]||u.splice(k,0,void 0)}h=await _e({url:l,params:o,branch:u,status:t,error:r,errors:f?.errors,form:s,route:f??null})}catch(p){if(p instanceof xe){await W(new URL(p.location,location.href));return}h=await we({status:le(p),error:await Y(p,{url:l,params:o,route:i}),url:l,route:i}),e.textContent="",d=!1}h.props.page&&(h.props.page.state={}),await wt(h,e,d)}async function At(e,t){const r=new URL(e);r.pathname=mr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(dr,"1"),r.searchParams.append(ur,t.map(i=>i?"1":"0").join(""));const n=window.fetch,o=await n(r.href,{});if(!o.ok){let i;throw o.headers.get("content-type")?.includes("application/json")?i=await o.json():o.status===404?i="Not Found":o.status===500&&(i="Internal Error"),new me(o.status,i)}return new Promise(async i=>{const a=new Map,c=o.body.getReader();function s(l){return cr(l,{...b.decoders,Promise:f=>new Promise((h,d)=>{a.set(f,{fulfil:h,reject:d})})})}for await(const l of wr(c)){if(l.type==="redirect")return i(l);if(l.type==="data")l.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=St(f.uses),f.data=s(f.data))}),i(l);else if(l.type==="chunk"){const{id:f,data:h,error:d}=l,p=a.get(f);a.delete(f),d?p.reject(s(d)):p.fulfil(s(h))}}})}function St(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Le=!1;function Nr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=Rt(e);if(n&&document.getElementById(n)){const{x:i,y:a}=q();setTimeout(()=>{const c=history.state;Le=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(c,"",e),t&&scrollTo(i,a),Le=!1})}else{const i=document.body,a=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),a!==null?i.setAttribute("tabindex",a):i.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const i=[];for(let a=0;a<o.rangeCount;a+=1)i.push(o.getRangeAt(a));setTimeout(()=>{if(o.rangeCount===i.length){for(let a=0;a<o.rangeCount;a+=1){const c=i[a],s=o.getRangeAt(a);if(c.commonAncestorContainer!==s.commonAncestorContainer||c.startContainer!==s.startContainer||c.endContainer!==s.endContainer||c.startOffset!==s.startOffset||c.endOffset!==s.endOffset)return}o.removeAllRanges()}})}}}function qe(e,t,r,n,o=null){let i,a;const c=new Promise((l,f)=>{i=l,a=f});return c.catch(C),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:o},willUnload:!t,type:n,complete:c},fulfil:i,reject:a}}function Ve(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Or(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(b.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{$ as a,Mr as g,Cr as l,I as p,Fr as s};