mongoku 2.7.0-compat → 2.7.1-compat

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 (143) hide show
  1. package/README.md +3 -0
  2. package/build/client/_app/immutable/chunks/{CeXlKXQN.js → By8u4tLX.js} +1 -1
  3. package/build/client/_app/immutable/chunks/By8u4tLX.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/By8u4tLX.js.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{BIUJX0Ps.js → C8xXYC2Z.js} +1 -1
  6. package/build/client/_app/immutable/chunks/C8xXYC2Z.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/C8xXYC2Z.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/CCpnxaiB.js +4 -0
  9. package/build/client/_app/immutable/chunks/CCpnxaiB.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/CCpnxaiB.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{BBqIHhSl.js → CYfKAzOk.js} +1 -1
  12. package/build/client/_app/immutable/chunks/CYfKAzOk.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/CYfKAzOk.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/DKLdLuLU.js +1 -0
  15. package/build/client/_app/immutable/chunks/DKLdLuLU.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/DKLdLuLU.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{DtqR9xj2.js → IE1XEpRW.js} +1 -1
  18. package/build/client/_app/immutable/chunks/IE1XEpRW.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/IE1XEpRW.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{DkIdyQoH.js → UnUXmJ43.js} +1 -1
  21. package/build/client/_app/immutable/chunks/UnUXmJ43.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/UnUXmJ43.js.gz +0 -0
  23. package/build/client/_app/immutable/entry/{app.DSC3O-oq.js → app.40CWB43o.js} +2 -2
  24. package/build/client/_app/immutable/entry/app.40CWB43o.js.br +0 -0
  25. package/build/client/_app/immutable/entry/app.40CWB43o.js.gz +0 -0
  26. package/build/client/_app/immutable/entry/start.lmVN1KK1.js +1 -0
  27. package/build/client/_app/immutable/entry/start.lmVN1KK1.js.br +0 -0
  28. package/build/client/_app/immutable/entry/start.lmVN1KK1.js.gz +0 -0
  29. package/build/client/_app/immutable/nodes/{0.CMAlzqMw.js → 0.DyclQIzW.js} +1 -1
  30. package/build/client/_app/immutable/nodes/0.DyclQIzW.js.br +0 -0
  31. package/build/client/_app/immutable/nodes/0.DyclQIzW.js.gz +0 -0
  32. package/build/client/_app/immutable/nodes/{1.B6Npt7WS.js → 1.C-sLMJ7d.js} +1 -1
  33. package/build/client/_app/immutable/nodes/1.C-sLMJ7d.js.br +0 -0
  34. package/build/client/_app/immutable/nodes/1.C-sLMJ7d.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/{10.UKtNnnWx.js → 10.VNwhfZRw.js} +1 -1
  36. package/build/client/_app/immutable/nodes/10.VNwhfZRw.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/10.VNwhfZRw.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/{11.DZQrIhD6.js → 11.Bn2rbCuv.js} +1 -1
  39. package/build/client/_app/immutable/nodes/11.Bn2rbCuv.js.br +0 -0
  40. package/build/client/_app/immutable/nodes/11.Bn2rbCuv.js.gz +0 -0
  41. package/build/client/_app/immutable/nodes/{12.Bb2XzJJ4.js → 12.BFq091A7.js} +1 -1
  42. package/build/client/_app/immutable/nodes/12.BFq091A7.js.br +0 -0
  43. package/build/client/_app/immutable/nodes/12.BFq091A7.js.gz +0 -0
  44. package/build/client/_app/immutable/nodes/{13.B_EllgAJ.js → 13.DbNsr4WX.js} +1 -1
  45. package/build/client/_app/immutable/nodes/13.DbNsr4WX.js.br +0 -0
  46. package/build/client/_app/immutable/nodes/13.DbNsr4WX.js.gz +0 -0
  47. package/build/client/_app/immutable/nodes/{14.Ds1Cbw86.js → 14.DTYaKKlW.js} +1 -1
  48. package/build/client/_app/immutable/nodes/14.DTYaKKlW.js.br +0 -0
  49. package/build/client/_app/immutable/nodes/14.DTYaKKlW.js.gz +0 -0
  50. package/build/client/_app/immutable/nodes/{7.DrDdJlUZ.js → 7.BE4cR7tR.js} +1 -1
  51. package/build/client/_app/immutable/nodes/7.BE4cR7tR.js.br +0 -0
  52. package/build/client/_app/immutable/nodes/7.BE4cR7tR.js.gz +0 -0
  53. package/build/client/_app/immutable/nodes/{8.DY5fyf2p.js → 8.CnKkrVDw.js} +1 -1
  54. package/build/client/_app/immutable/nodes/8.CnKkrVDw.js.br +0 -0
  55. package/build/client/_app/immutable/nodes/8.CnKkrVDw.js.gz +0 -0
  56. package/build/client/_app/immutable/nodes/{9.DSZg3ucy.js → 9.Bekrbf_Y.js} +1 -1
  57. package/build/client/_app/immutable/nodes/9.Bekrbf_Y.js.br +0 -0
  58. package/build/client/_app/immutable/nodes/9.Bekrbf_Y.js.gz +0 -0
  59. package/build/client/_app/version.json +1 -1
  60. package/build/client/_app/version.json.br +0 -0
  61. package/build/client/_app/version.json.gz +0 -0
  62. package/build/server/chunks/{0-94hvO2vX.js → 0-CjMXOm6-.js} +3 -3
  63. package/build/server/chunks/{0-94hvO2vX.js.map → 0-CjMXOm6-.js.map} +1 -1
  64. package/build/server/chunks/{1-DU2n-wa5.js → 1-IQ-QIckx.js} +2 -2
  65. package/build/server/chunks/{1-DU2n-wa5.js.map → 1-IQ-QIckx.js.map} +1 -1
  66. package/build/server/chunks/{10-CA3VfgE7.js → 10-DQlggkvf.js} +2 -2
  67. package/build/server/chunks/{10-CA3VfgE7.js.map → 10-DQlggkvf.js.map} +1 -1
  68. package/build/server/chunks/{11-xh-tBR25.js → 11-eOTEk6eF.js} +2 -2
  69. package/build/server/chunks/{11-xh-tBR25.js.map → 11-eOTEk6eF.js.map} +1 -1
  70. package/build/server/chunks/{12-CHoThn5d.js → 12-QziVeVSc.js} +2 -2
  71. package/build/server/chunks/{12-CHoThn5d.js.map → 12-QziVeVSc.js.map} +1 -1
  72. package/build/server/chunks/{13-s3o-iKja.js → 13-BjZYcyS0.js} +2 -2
  73. package/build/server/chunks/{13-s3o-iKja.js.map → 13-BjZYcyS0.js.map} +1 -1
  74. package/build/server/chunks/{14-Ch_I9f3x.js → 14-C_fye7SR.js} +2 -2
  75. package/build/server/chunks/{14-Ch_I9f3x.js.map → 14-C_fye7SR.js.map} +1 -1
  76. package/build/server/chunks/{7-B_ur3ckj.js → 7-Bs1j8mlV.js} +2 -2
  77. package/build/server/chunks/{7-B_ur3ckj.js.map → 7-Bs1j8mlV.js.map} +1 -1
  78. package/build/server/chunks/{8-BEcdRamT.js → 8-BkSFBslx.js} +2 -2
  79. package/build/server/chunks/{8-BEcdRamT.js.map → 8-BkSFBslx.js.map} +1 -1
  80. package/build/server/chunks/{9-CeMYWy9o.js → 9-C474Z3kx.js} +2 -2
  81. package/build/server/chunks/{9-CeMYWy9o.js.map → 9-C474Z3kx.js.map} +1 -1
  82. package/build/server/chunks/{_server.ts-Bs5HC7Wf.js → _server.ts-BmyzPj3L.js} +7 -3
  83. package/build/server/chunks/_server.ts-BmyzPj3L.js.map +1 -0
  84. package/build/server/chunks/{_server.ts-DRL9sDg4.js → _server.ts-BsZ825gJ.js} +2 -2
  85. package/build/server/chunks/{_server.ts-DRL9sDg4.js.map → _server.ts-BsZ825gJ.js.map} +1 -1
  86. package/build/server/chunks/{_server.ts-B3lXxheE.js → _server.ts-D67MghZb.js} +2 -2
  87. package/build/server/chunks/{_server.ts-B3lXxheE.js.map → _server.ts-D67MghZb.js.map} +1 -1
  88. package/build/server/chunks/{_server.ts-DqL5edUL.js → _server.ts-DKuI03oJ.js} +2 -2
  89. package/build/server/chunks/{_server.ts-DqL5edUL.js.map → _server.ts-DKuI03oJ.js.map} +1 -1
  90. package/build/server/chunks/{hooks.server-Cq7ufuFU.js → hooks.server-FwLGFfI8.js} +2 -2
  91. package/build/server/chunks/{hooks.server-Cq7ufuFU.js.map → hooks.server-FwLGFfI8.js.map} +1 -1
  92. package/build/server/chunks/{oauth-BfIECOev.js → oauth-CpJ4lGij.js} +32 -9
  93. package/build/server/chunks/oauth-CpJ4lGij.js.map +1 -0
  94. package/build/server/index.js +2 -2
  95. package/build/server/index.js.map +1 -1
  96. package/build/server/manifest.js +15 -15
  97. package/build/server/manifest.js.map +1 -1
  98. package/package.json +1 -1
  99. package/src/lib/server/oauth.ts +43 -7
  100. package/src/routes/auth/callback/+server.ts +7 -1
  101. package/build/client/_app/immutable/chunks/BBqIHhSl.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/BBqIHhSl.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/BIUJX0Ps.js.br +0 -0
  104. package/build/client/_app/immutable/chunks/BIUJX0Ps.js.gz +0 -0
  105. package/build/client/_app/immutable/chunks/CeXlKXQN.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/CeXlKXQN.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/ChTiw7nk.js +0 -4
  108. package/build/client/_app/immutable/chunks/ChTiw7nk.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/ChTiw7nk.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/Czyt1_Wc.js +0 -1
  111. package/build/client/_app/immutable/chunks/Czyt1_Wc.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/Czyt1_Wc.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/DkIdyQoH.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/DkIdyQoH.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/DtqR9xj2.js.br +0 -0
  116. package/build/client/_app/immutable/chunks/DtqR9xj2.js.gz +0 -0
  117. package/build/client/_app/immutable/entry/app.DSC3O-oq.js.br +0 -0
  118. package/build/client/_app/immutable/entry/app.DSC3O-oq.js.gz +0 -0
  119. package/build/client/_app/immutable/entry/start.DXWFdQeQ.js +0 -1
  120. package/build/client/_app/immutable/entry/start.DXWFdQeQ.js.br +0 -0
  121. package/build/client/_app/immutable/entry/start.DXWFdQeQ.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/0.CMAlzqMw.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/0.CMAlzqMw.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/1.B6Npt7WS.js.br +0 -4
  125. package/build/client/_app/immutable/nodes/1.B6Npt7WS.js.gz +0 -0
  126. package/build/client/_app/immutable/nodes/10.UKtNnnWx.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/10.UKtNnnWx.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/11.DZQrIhD6.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/11.DZQrIhD6.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/12.Bb2XzJJ4.js.br +0 -0
  131. package/build/client/_app/immutable/nodes/12.Bb2XzJJ4.js.gz +0 -0
  132. package/build/client/_app/immutable/nodes/13.B_EllgAJ.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/13.B_EllgAJ.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/14.Ds1Cbw86.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/14.Ds1Cbw86.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/7.DrDdJlUZ.js.br +0 -0
  137. package/build/client/_app/immutable/nodes/7.DrDdJlUZ.js.gz +0 -0
  138. package/build/client/_app/immutable/nodes/8.DY5fyf2p.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/8.DY5fyf2p.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/9.DSZg3ucy.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/9.DSZg3ucy.js.gz +0 -0
  142. package/build/server/chunks/_server.ts-Bs5HC7Wf.js.map +0 -1
  143. package/build/server/chunks/oauth-BfIECOev.js.map +0 -1
@@ -10,23 +10,23 @@ return {
10
10
  assets: new Set(["robots.txt"]),
11
11
  mimeTypes: {".txt":"text/plain"},
12
12
  _: {
13
- client: {start:"_app/immutable/entry/start.DXWFdQeQ.js",app:"_app/immutable/entry/app.DSC3O-oq.js",imports:["_app/immutable/entry/start.DXWFdQeQ.js","_app/immutable/chunks/ChTiw7nk.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/Czyt1_Wc.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/entry/app.DSC3O-oq.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/DaNl6Y92.js","_app/immutable/chunks/ULh2o3ji.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/chunks/CX0xC2bt.js","_app/immutable/chunks/DJHYr09v.js","_app/immutable/chunks/DwvJoC1a.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
+ client: {start:"_app/immutable/entry/start.lmVN1KK1.js",app:"_app/immutable/entry/app.40CWB43o.js",imports:["_app/immutable/entry/start.lmVN1KK1.js","_app/immutable/chunks/CCpnxaiB.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/DKLdLuLU.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/entry/app.40CWB43o.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/DaNl6Y92.js","_app/immutable/chunks/ULh2o3ji.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/chunks/CX0xC2bt.js","_app/immutable/chunks/DJHYr09v.js","_app/immutable/chunks/DwvJoC1a.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
14
14
  nodes: [
15
- __memo(() => import('./chunks/0-94hvO2vX.js')),
16
- __memo(() => import('./chunks/1-DU2n-wa5.js')),
15
+ __memo(() => import('./chunks/0-CjMXOm6-.js')),
16
+ __memo(() => import('./chunks/1-IQ-QIckx.js')),
17
17
  __memo(() => import('./chunks/2-BNTmkYSf.js')),
18
18
  __memo(() => import('./chunks/3-ClKd4dXQ.js')),
19
19
  __memo(() => import('./chunks/4-BSPVNKkN.js')),
20
20
  __memo(() => import('./chunks/5-BzxZlQk0.js')),
21
21
  __memo(() => import('./chunks/6-Bw8JUxiD.js')),
22
- __memo(() => import('./chunks/7-B_ur3ckj.js')),
23
- __memo(() => import('./chunks/8-BEcdRamT.js')),
24
- __memo(() => import('./chunks/9-CeMYWy9o.js')),
25
- __memo(() => import('./chunks/10-CA3VfgE7.js')),
26
- __memo(() => import('./chunks/11-xh-tBR25.js')),
27
- __memo(() => import('./chunks/12-CHoThn5d.js')),
28
- __memo(() => import('./chunks/13-s3o-iKja.js')),
29
- __memo(() => import('./chunks/14-Ch_I9f3x.js'))
22
+ __memo(() => import('./chunks/7-Bs1j8mlV.js')),
23
+ __memo(() => import('./chunks/8-BkSFBslx.js')),
24
+ __memo(() => import('./chunks/9-C474Z3kx.js')),
25
+ __memo(() => import('./chunks/10-DQlggkvf.js')),
26
+ __memo(() => import('./chunks/11-eOTEk6eF.js')),
27
+ __memo(() => import('./chunks/12-QziVeVSc.js')),
28
+ __memo(() => import('./chunks/13-BjZYcyS0.js')),
29
+ __memo(() => import('./chunks/14-C_fye7SR.js'))
30
30
  ],
31
31
  remotes: {
32
32
  'xxtqbu': __memo(() => import('./chunks/remote-xxtqbu-D0yn6nhQ.js'))
@@ -44,28 +44,28 @@ return {
44
44
  pattern: /^\/\.well-known\/cimd\.json\/?$/,
45
45
  params: [],
46
46
  page: null,
47
- endpoint: __memo(() => import('./chunks/_server.ts-DRL9sDg4.js'))
47
+ endpoint: __memo(() => import('./chunks/_server.ts-BsZ825gJ.js'))
48
48
  },
49
49
  {
50
50
  id: "/auth/callback",
51
51
  pattern: /^\/auth\/callback\/?$/,
52
52
  params: [],
53
53
  page: null,
54
- endpoint: __memo(() => import('./chunks/_server.ts-Bs5HC7Wf.js'))
54
+ endpoint: __memo(() => import('./chunks/_server.ts-BmyzPj3L.js'))
55
55
  },
56
56
  {
57
57
  id: "/auth/login",
58
58
  pattern: /^\/auth\/login\/?$/,
59
59
  params: [],
60
60
  page: null,
61
- endpoint: __memo(() => import('./chunks/_server.ts-DqL5edUL.js'))
61
+ endpoint: __memo(() => import('./chunks/_server.ts-DKuI03oJ.js'))
62
62
  },
63
63
  {
64
64
  id: "/auth/logout",
65
65
  pattern: /^\/auth\/logout\/?$/,
66
66
  params: [],
67
67
  page: { layouts: [0,], errors: [1,], leaf: 7 },
68
- endpoint: __memo(() => import('./chunks/_server.ts-B3lXxheE.js'))
68
+ endpoint: __memo(() => import('./chunks/_server.ts-D67MghZb.js'))
69
69
  },
70
70
  {
71
71
  id: "/favicon.ico",
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/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([\"robots.txt\"]),\n\tmimeTypes: {\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.DXWFdQeQ.js\",app:\"_app/immutable/entry/app.DSC3O-oq.js\",imports:[\"_app/immutable/entry/start.DXWFdQeQ.js\",\"_app/immutable/chunks/ChTiw7nk.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/Czyt1_Wc.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/entry/app.DSC3O-oq.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/DaNl6Y92.js\",\"_app/immutable/chunks/ULh2o3ji.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/chunks/CX0xC2bt.js\",\"_app/immutable/chunks/DJHYr09v.js\",\"_app/immutable/chunks/DwvJoC1a.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\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js')),\n\t\t\t__memo(() => import('./nodes/6.js')),\n\t\t\t__memo(() => import('./nodes/7.js')),\n\t\t\t__memo(() => import('./nodes/8.js')),\n\t\t\t__memo(() => import('./nodes/9.js')),\n\t\t\t__memo(() => import('./nodes/10.js')),\n\t\t\t__memo(() => import('./nodes/11.js')),\n\t\t\t__memo(() => import('./nodes/12.js')),\n\t\t\t__memo(() => import('./nodes/13.js')),\n\t\t\t__memo(() => import('./nodes/14.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t'xxtqbu': __memo(() => import('./chunks/remote-xxtqbu.js'))\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: 6 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/.well-known/cimd.json\",\n\t\t\t\tpattern: /^\\/\\.well-known\\/cimd\\.json\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/.well-known/cimd.json/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/callback\",\n\t\t\t\tpattern: /^\\/auth\\/callback\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/callback/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/login\",\n\t\t\t\tpattern: /^\\/auth\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/login/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/logout\",\n\t\t\t\tpattern: /^\\/auth\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 7 },\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/logout/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/favicon.ico\",\n\t\t\t\tpattern: /^\\/favicon\\.ico\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/favicon.ico/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers\",\n\t\t\t\tpattern: /^\\/servers\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 8 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,], errors: [1,,], leaf: 9 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,], errors: [1,,,], leaf: 10 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/documents\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/documents\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 11 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/documents/[document]\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/documents\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"document\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,5,], errors: [1,,,,,], leaf: 12 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/indexes\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/indexes\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 13 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/mappings\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/mappings\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 14 },\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 = \"\";"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;AAChC,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;AACjC,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAwC,CAAC,GAAG,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,sCAAsC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;AACjoB,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MA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,CAAC;;AAEW,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;AAEzB,MAAC,IAAI,GAAG;;;;"}
1
+ {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/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([\"robots.txt\"]),\n\tmimeTypes: {\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.lmVN1KK1.js\",app:\"_app/immutable/entry/app.40CWB43o.js\",imports:[\"_app/immutable/entry/start.lmVN1KK1.js\",\"_app/immutable/chunks/CCpnxaiB.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/DKLdLuLU.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/entry/app.40CWB43o.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/DaNl6Y92.js\",\"_app/immutable/chunks/ULh2o3ji.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/chunks/CX0xC2bt.js\",\"_app/immutable/chunks/DJHYr09v.js\",\"_app/immutable/chunks/DwvJoC1a.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\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js')),\n\t\t\t__memo(() => import('./nodes/6.js')),\n\t\t\t__memo(() => import('./nodes/7.js')),\n\t\t\t__memo(() => import('./nodes/8.js')),\n\t\t\t__memo(() => import('./nodes/9.js')),\n\t\t\t__memo(() => import('./nodes/10.js')),\n\t\t\t__memo(() => import('./nodes/11.js')),\n\t\t\t__memo(() => import('./nodes/12.js')),\n\t\t\t__memo(() => import('./nodes/13.js')),\n\t\t\t__memo(() => import('./nodes/14.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t'xxtqbu': __memo(() => import('./chunks/remote-xxtqbu.js'))\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: 6 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/.well-known/cimd.json\",\n\t\t\t\tpattern: /^\\/\\.well-known\\/cimd\\.json\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/.well-known/cimd.json/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/callback\",\n\t\t\t\tpattern: /^\\/auth\\/callback\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/callback/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/login\",\n\t\t\t\tpattern: /^\\/auth\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/login/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/auth/logout\",\n\t\t\t\tpattern: /^\\/auth\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 7 },\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/auth/logout/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/favicon.ico\",\n\t\t\t\tpattern: /^\\/favicon\\.ico\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/favicon.ico/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers\",\n\t\t\t\tpattern: /^\\/servers\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 8 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,], errors: [1,,], leaf: 9 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,], errors: [1,,,], leaf: 10 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/documents\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/documents\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 11 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/documents/[document]\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/documents\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"document\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,5,], errors: [1,,,,,], leaf: 12 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/indexes\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/indexes\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 13 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/servers/[server]/databases/[database]/collections/[collection]/mappings\",\n\t\t\t\tpattern: /^\\/servers\\/([^/]+?)\\/databases\\/([^/]+?)\\/collections\\/([^/]+?)\\/mappings\\/?$/,\n\t\t\t\tparams: [{\"name\":\"server\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"database\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"collection\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,2,3,4,], errors: [1,,,,], leaf: 14 },\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([]);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.anthony.moi@gmail.com>",
6
6
  "type": "module",
@@ -2,6 +2,11 @@ import { base } from "$app/paths";
2
2
  import { env } from "$env/dynamic/private";
3
3
  import { createHash, createHmac, randomBytes, timingSafeEqual } from "node:crypto";
4
4
 
5
+ export interface RequiredClaim {
6
+ field: string;
7
+ value: string;
8
+ }
9
+
5
10
  export interface OAuthConfig {
6
11
  clientId: string;
7
12
  issuerUrl: string;
@@ -11,6 +16,7 @@ export interface OAuthConfig {
11
16
  sessionSecret: string;
12
17
  sessionDuration: number;
13
18
  allowedSubs?: Set<string>;
19
+ requiredClaim?: RequiredClaim;
14
20
  }
15
21
 
16
22
  export interface SessionPayload {
@@ -106,6 +112,19 @@ export async function getOAuthConfig(): Promise<OAuthConfig | null> {
106
112
  )
107
113
  : undefined;
108
114
 
115
+ const requiredClaimRaw = env.MONGOKU_OAUTH_REQUIRED_CLAIM;
116
+ let requiredClaim: RequiredClaim | undefined;
117
+ if (requiredClaimRaw) {
118
+ const eqIndex = requiredClaimRaw.indexOf("=");
119
+ if (eqIndex <= 0) {
120
+ throw new Error('MONGOKU_OAUTH_REQUIRED_CLAIM must be in the format "field=value" (e.g. "authority=admin")');
121
+ }
122
+ requiredClaim = {
123
+ field: requiredClaimRaw.slice(0, eqIndex),
124
+ value: requiredClaimRaw.slice(eqIndex + 1),
125
+ };
126
+ }
127
+
109
128
  cachedConfig = {
110
129
  clientId,
111
130
  issuerUrl,
@@ -115,6 +134,7 @@ export async function getOAuthConfig(): Promise<OAuthConfig | null> {
115
134
  sessionSecret,
116
135
  sessionDuration: parseSessionDuration(env.MONGOKU_OAUTH_SESSION_DURATION),
117
136
  allowedSubs,
137
+ requiredClaim,
118
138
  };
119
139
 
120
140
  return cachedConfig;
@@ -191,25 +211,41 @@ export async function exchangeCode(
191
211
  return response.json();
192
212
  }
193
213
 
214
+ export interface IdTokenResult {
215
+ user: { sub?: string; name?: string; email?: string };
216
+ claims: Record<string, unknown>;
217
+ }
218
+
194
219
  /**
195
220
  * Extract user info from an OIDC id_token (JWT) without cryptographic verification.
196
221
  * This is safe because the token was obtained directly from the token endpoint over HTTPS.
197
222
  */
198
- export function extractUserFromIdToken(idToken: string): { sub?: string; name?: string; email?: string } {
223
+ export function extractUserFromIdToken(idToken: string): IdTokenResult {
199
224
  try {
200
225
  const parts = idToken.split(".");
201
226
  if (parts.length !== 3) {
202
- return {};
227
+ return { user: {}, claims: {} };
203
228
  }
204
- const payload = JSON.parse(Buffer.from(parts[1], "base64url").toString());
229
+ const claims = JSON.parse(Buffer.from(parts[1], "base64url").toString());
205
230
  return {
206
- sub: payload.sub,
207
- name: payload.name || payload.preferred_username,
208
- email: payload.email,
231
+ user: {
232
+ sub: claims.sub,
233
+ name: claims.name || claims.preferred_username,
234
+ email: claims.email,
235
+ },
236
+ claims,
209
237
  };
210
238
  } catch {
211
- return {};
239
+ return { user: {}, claims: {} };
240
+ }
241
+ }
242
+
243
+ export function checkRequiredClaim(claims: Record<string, unknown>, required: RequiredClaim): boolean {
244
+ const actual = claims[required.field];
245
+ if (Array.isArray(actual)) {
246
+ return actual.includes(required.value);
212
247
  }
248
+ return String(actual) === required.value;
213
249
  }
214
250
 
215
251
  export function createSessionCookie(
@@ -1,5 +1,6 @@
1
1
  import { base } from "$app/paths";
2
2
  import {
3
+ checkRequiredClaim,
3
4
  cookieOptions,
4
5
  createSessionCookie,
5
6
  exchangeCode,
@@ -43,14 +44,19 @@ export const GET: RequestHandler = async ({ url, cookies }) => {
43
44
  const tokens = await exchangeCode(config, url.origin, code, storedVerifier, getCallbackUrl(url.origin));
44
45
 
45
46
  let user: { sub?: string; name?: string; email?: string } = {};
47
+ let claims: Record<string, unknown> = {};
46
48
  if (tokens.id_token) {
47
- user = extractUserFromIdToken(tokens.id_token);
49
+ ({ user, claims } = extractUserFromIdToken(tokens.id_token));
48
50
  }
49
51
 
50
52
  if (config.allowedSubs && (!user.sub || !config.allowedSubs.has(user.sub))) {
51
53
  error(403, "Your account is not authorized to access this application");
52
54
  }
53
55
 
56
+ if (config.requiredClaim && !checkRequiredClaim(claims, config.requiredClaim)) {
57
+ error(403, `Required claim not satisfied: ${config.requiredClaim.field}=${config.requiredClaim.value}`);
58
+ }
59
+
54
60
  cookies.set("mongoku_session", createSessionCookie(config, user), cookieOptions(url, config.sessionDuration));
55
61
 
56
62
  redirect(302, `${base}/`);
@@ -1,4 +0,0 @@
1
- import{j as Rt,i as ae,bn as Pt}from"./C6nv_pni.js";import{c as Tt,e as Lt,d as jt,f as Ut,H as N,N as B,g as W,P as Le,p as O,i as je,b as T,s as M,w as Ct,n as Ae,h as tt,j as Se,k as ne,l as we,S as he,m as Ye,o as $t,q as Nt,t as xt,u as Ue,x as H,y as Dt,z as Bt,A as rt,B as Mt,C as Ft,D as at,E as nt}from"./Czyt1_Wc.js";class _e{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 Ce{constructor(t,r){this.status=t,this.location=r}}class $e extends Error{constructor(t,r,a){super(a),this.status=t,this.text=r}}function qt({nodes:e,server_loads:t,dictionary:r,matchers:a}){const n=new Set(t);return Object.entries(r).map(([l,[c,s,h]])=>{const{pattern:f,params:p}=Tt(l),d={id:l,exec:u=>{const w=f.exec(u);if(w)return Lt(w,p,a)},errors:[1,...h||[]].map(u=>e[u]),layouts:[0,...s||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(l){const c=l<0;return c&&(l=~l),[c,e[l]]}function i(l){return l===void 0?l:[n.has(l),e[l]]}}function ot(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ge(e,t,r=JSON.stringify){const a=r(t);try{sessionStorage[e]=a}catch{}}class K extends Error{constructor(t,r,a,n){super(t),this.name="DevalueError",this.path=r.join(""),this.value=a,this.root=n}}function Je(e){return Object(e)!==e}const Vt=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ht(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===Vt}function Kt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Yt(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
2
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function U(e){let t="",r=0;const a=e.length;for(let n=0;n<a;n+=1){const o=e[n],i=Yt(o);i&&(t+=e.slice(r,n)+i,r=n+1)}return`"${r===0?e:t+e.slice(r)}"`}function Gt(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const Jt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ze(e){return Jt.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function zt(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let r=0;r<e.length;r++){const a=e.charCodeAt(r);if(a<48||a>57)return!1}const t=+e;return!(t>=2**32-1||t<0)}function Zt(e){const t=Object.keys(e);for(var r=t.length-1;r>=0&&!zt(t[r]);r--);return t.length=r+1,t}function Wt(e){const t=new DataView(e);let r="";for(let a=0;a<e.byteLength;a++)r+=String.fromCharCode(t.getUint8(a));return er(r)}function Xt(e){const t=Qt(e),r=new ArrayBuffer(t.length),a=new DataView(r);for(let n=0;n<r.byteLength;n++)a.setUint8(n,t.charCodeAt(n));return r}const st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Qt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,a=0;for(let n=0;n<e.length;n++)r<<=6,r|=st.indexOf(e[n]),a+=6,a===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=a=0);return a===12?(r>>=4,t+=String.fromCharCode(r)):a===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}function er(e){let t="";for(let r=0;r<e.length;r+=3){const a=[void 0,void 0,void 0,void 0];a[0]=e.charCodeAt(r)>>2,a[1]=(e.charCodeAt(r)&3)<<4,e.length>r+1&&(a[1]|=e.charCodeAt(r+1)>>4,a[2]=(e.charCodeAt(r+1)&15)<<2),e.length>r+2&&(a[2]|=e.charCodeAt(r+2)>>6,a[3]=e.charCodeAt(r+2)&63);for(let n=0;n<a.length;n++)typeof a[n]>"u"?t+="=":t+=st[a[n]]}return t}const Ne=-1,Ee=-2,it=-3,ct=-4,lt=-5,xe=-6,ft=-7;function Er(e,t){return ut(JSON.parse(e),t)}function ut(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,a=Array(r.length);let n=null;function o(i,l=!1){if(i===Ne)return;if(i===it)return NaN;if(i===ct)return 1/0;if(i===lt)return-1/0;if(i===xe)return-0;if(l||typeof i!="number")throw new Error("Invalid input");if(i in a)return a[i];const c=r[i];if(!c||typeof c!="object")a[i]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const s=c[0],h=t&&Object.hasOwn(t,s)?t[s]:void 0;if(h){let f=c[1];if(typeof f!="number"&&(f=r.push(c[1])-1),n??=new Set,n.has(f))throw new Error("Invalid circular reference");return n.add(f),a[i]=h(o(f)),n.delete(f),a[i]}switch(s){case"Date":a[i]=new Date(c[1]);break;case"Set":const f=new Set;a[i]=f;for(let u=1;u<c.length;u+=1)f.add(o(c[u]));break;case"Map":const p=new Map;a[i]=p;for(let u=1;u<c.length;u+=2)p.set(o(c[u]),o(c[u+1]));break;case"RegExp":a[i]=new RegExp(c[1],c[2]);break;case"Object":a[i]=Object(c[1]);break;case"BigInt":a[i]=BigInt(c[1]);break;case"null":const d=Object.create(null);a[i]=d;for(let u=1;u<c.length;u+=2)d[c[u]]=o(c[u+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(r[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const u=globalThis[s],w=o(c[1]),y=new u(w);a[i]=c[2]!==void 0?y.subarray(c[2],c[3]):y;break}case"ArrayBuffer":{const u=c[1];if(typeof u!="string")throw new Error("Invalid ArrayBuffer encoding");const w=Xt(u);a[i]=w;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=s.slice(9);a[i]=Temporal[u].from(c[1]);break}case"URL":{const u=new URL(c[1]);a[i]=u;break}case"URLSearchParams":{const u=new URLSearchParams(c[1]);a[i]=u;break}default:throw new Error(`Unknown type ${s}`)}}else if(c[0]===ft){const s=c[1],h=new Array(s);a[i]=h;for(let f=2;f<c.length;f+=2){const p=c[f];h[p]=o(c[f+1])}}else{const s=new Array(c.length);a[i]=s;for(let h=0;h<c.length;h+=1){const f=c[h];f!==Ee&&(s[h]=o(f))}}else{const s={};a[i]=s;for(const h of Object.keys(c)){if(h==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=c[h];s[h]=o(f)}}return a[i]}return o(0)}function tr(e,t){const r=[],a=new Map,n=[];if(t)for(const s of Object.getOwnPropertyNames(t))n.push({key:s,fn:t[s]});const o=[];let i=0;function l(s){if(s===void 0)return Ne;if(Number.isNaN(s))return it;if(s===1/0)return ct;if(s===-1/0)return lt;if(s===0&&1/s<0)return xe;if(a.has(s))return a.get(s);const h=i++;a.set(s,h);for(const{key:p,fn:d}of n){const u=d(s);if(u)return r[h]=`["${p}",${l(u)}]`,h}if(typeof s=="function")throw new K("Cannot stringify a function",o,s,e);let f="";if(Je(s))f=ve(s);else{const p=Kt(s);switch(p){case"Number":case"String":case"Boolean":f=`["Object",${ve(s)}]`;break;case"BigInt":f=`["BigInt",${s}]`;break;case"Date":f=`["Date","${!isNaN(s.getDate())?s.toISOString():""}"]`;break;case"URL":f=`["URL",${U(s.toString())}]`;break;case"URLSearchParams":f=`["URLSearchParams",${U(s.toString())}]`;break;case"RegExp":const{source:u,flags:w}=s;f=w?`["RegExp",${U(u)},"${w}"]`:`["RegExp",${U(u)}]`;break;case"Array":{let y=!1;f="[";for(let _=0;_<s.length;_+=1)if(_>0&&(f+=","),Object.hasOwn(s,_))o.push(`[${_}]`),f+=l(s[_]),o.pop();else if(y)f+=Ee;else{const I=Zt(s),m=I.length,b=String(s.length).length,A=(s.length-m)*3,E=4+b+m*(b+1);if(A>E){f="["+ft+","+s.length;for(let v=0;v<I.length;v++){const P=I[v];o.push(`[${P}]`),f+=","+P+","+l(s[P]),o.pop()}break}else y=!0,f+=Ee}f+="]";break}case"Set":f='["Set"';for(const y of s)f+=`,${l(y)}`;f+="]";break;case"Map":f='["Map"';for(const[y,_]of s)o.push(`.get(${Je(y)?ve(y):"..."})`),f+=`,${l(y)},${l(_)}`,o.pop();f+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const y=s;f='["'+p+'",'+l(y.buffer);const _=s.byteOffset,I=_+s.byteLength;if(_>0||I!==y.buffer.byteLength){const m=+/(\d+)/.exec(p)[1]/8;f+=`,${_/m},${I/m}`}f+="]";break}case"ArrayBuffer":{f=`["ArrayBuffer","${Wt(s)}"]`;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":f=`["${p}",${U(s.toString())}]`;break;default:if(!Ht(s))throw new K("Cannot stringify arbitrary non-POJOs",o,s,e);if(Gt(s).length>0)throw new K("Cannot stringify POJOs with symbolic keys",o,s,e);if(Object.getPrototypeOf(s)===null){f='["null"';for(const y of Object.keys(s)){if(y==="__proto__")throw new K("Cannot stringify objects with __proto__ keys",o,s,e);o.push(ze(y)),f+=`,${U(y)},${l(s[y])}`,o.pop()}f+="]"}else{f="{";let y=!1;for(const _ of Object.keys(s)){if(_==="__proto__")throw new K("Cannot stringify objects with __proto__ keys",o,s,e);y&&(f+=","),y=!0,o.push(ze(_)),f+=`${U(_)}:${l(s[_])}`,o.pop()}f+="}"}}}return r[h]=f,h}const c=l(e);return c<0?`${c}`:`[${r.join(",")}]`}function ve(e){const t=typeof e;return t==="string"?U(e):e instanceof String?U(e.toString()):e===void 0?Ne.toString():e===0&&1/e<0?xe.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function rr(e){return e.filter(t=>t!=null)}const ar="x-sveltekit-invalidated",nr="x-sveltekit-trailing-slash";function or(e,t){const r=Object.fromEntries(Object.entries(t).map(([a,n])=>[a,n.encode]));return tr(e,r)}function Ir(e,t){if(e===void 0)return"";const r=or(e,t),a=new TextEncoder().encode(r);return jt(a).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}function Or(e,t){return e+"/"+t}function oe(e){return e instanceof _e||e instanceof $e?e.status:500}function sr(e){return e instanceof $e?e.text:"Internal Error"}const ir="/__data.json",cr=".html__data.json";function lr(e){return e.endsWith(".html")?e.replace(/\.html$/,cr):e.replace(/\/$/,"")+ir}const Ze={spanContext(){return fr},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}},fr={traceId:"",spanId:"",traceFlags:0},dt=Rt??(e=>e()),ur=new Set(["icon","shortcut icon","apple-touch-icon"]),D=ot(nt)??{},z=ot(rt)??{},x={url:Ye({}),page:Ye({}),navigating:Ct(null),updated:Ut()};function ye(e){D[e]=M()}function pt(e,t){let r=e+1;for(;D[r];)delete D[r],r+=1;for(r=t+1;z[r];)delete z[r],r+=1}function V(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ht(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}function Ie(){}let De,Oe,se,C,Re,S,_t={};const ie=[],ce=[];let L=null;function le(){L?.fork?.then(e=>e?.discard()),L=null}const re=new Map,yt=new Set,dr=new Set,G=new Set;let g={branch:[],error:null,url:null},Be=!1,fe=!1,We=!0,Z=!1,Y=!1,Me=!1,X=!1,Q,k,R,$;const J=new Set;let be;const ue=new Map;async function Rr(e,t,r){globalThis.__sveltekit_1kmr27x?.data&&(_t=globalThis.__sveltekit_1kmr27x.data),document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),De=qt(e),C=document.documentElement,Re=t,Oe=e.nodes[0],se=e.nodes[1],Oe(),se(),k=history.state?.[N],R=history.state?.[B],k||(k=R=Date.now(),history.replaceState({...history.state,[N]:k,[B]:R},""));const a=D[k];function n(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}r?(n(),await vr(Re,r)):(await F({type:"enter",url:W(S.hash?kr(new URL(location.href)):location.href),replace_state:!0}),n()),wr()}async function mt(e=!0,t=!0){if(await(be||=Promise.resolve()),!be)return;be=null;const r=$={},a=await ee(g.url,!0);if(le(),X&&ue.forEach(({resource:n})=>{n.refresh?.()}),e){const n=O.state,o=a&&await He(a);if(!o||r!==$)return;if(o.type==="redirect")return Fe(new URL(o.location,g.url).href,{replaceState:!0},1,r);t||(o.props.page.state=n),at(o.props.page),g=o.state,Pe(),Q.$set(o.props)}else Pe();await Promise.all([...ue.values()].map(({resource:n})=>n)).catch(Ie)}function Pe(){ie.length=0,X=!1}function gt(e){ce.some(t=>t?.snapshot)&&(z[e]=ce.map(t=>t?.snapshot?.capture()))}function wt(e){z[e]?.forEach((t,r)=>{ce[r]?.snapshot?.restore(t)})}function Xe(){ye(k),Ge(nt,D),gt(R),Ge(rt,z)}async function Fe(e,t,r,a){let n;t.invalidateAll&&le(),await F({type:"goto",url:W(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:a,accept:()=>{t.invalidateAll&&(X=!0,n=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(St)}}),t.invalidateAll&&ae().then(ae).then(()=>{ue.forEach(({resource:o},i)=>{n?.includes(i)&&o.refresh?.()})})}async function pr(e){if(e.id!==L?.id){le();const t={};J.add(t),L={id:e.id,token:t,promise:He({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&le(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ee(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function vt(e,t,r){g=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(O,e.props.page),Q=new S.root({target:t,props:{...e.props,stores:x,components:ce},hydrate:r,sync:!1}),await Promise.resolve(),wt(R),r){const n={from:null,to:{params:g.params,route:{id:g.route?.id??null},url:new URL(location.href),scroll:D[k]??M()},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(o=>o(n))}fe=!0}function de({url:e,params:t,branch:r,status:a,error:n,route:o,form:i}){let l="never";if(T&&(e.pathname===T||e.pathname===T+"/"))l="always";else for(const d of r)d?.slash!==void 0&&(l=d.slash);e.pathname=xt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:r,error:n,route:o},props:{constructors:rr(r).map(d=>d.node.component),page:te(O)}};i!==void 0&&(c.props.form=i);let s={},h=!O,f=0;for(let d=0;d<Math.max(r.length,g.branch.length);d+=1){const u=r[d],w=g.branch[d];u?.data!==w?.data&&(h=!0),u&&(s={...s,...u.data},h&&(c.props[`data_${f}`]=s),f+=1)}return(!g.url||e.href!==g.url.href||g.error!==n||i!==void 0&&i!==O.form||h)&&(c.props.page={error:n,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:i??null,data:h?s:O.data}),c}async function qe({loader:e,parent:t,url:r,params:a,route:n,server_data_node:o}){let i=null,l=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();if(s.universal?.load){let h=function(...p){for(const d of p){const{href:u}=new URL(d,r);c.dependencies.add(u)}};const f={tracing:{enabled:!1,root:Ze,current:Ze},route:new Proxy(n,{get:(p,d)=>(l&&(c.route=!0),p[d])}),params:new Proxy(a,{get:(p,d)=>(l&&c.params.add(d),p[d])}),data:o?.data??null,url:Nt(r,()=>{l&&(c.url=!0)},p=>{l&&c.search_params.add(p)},S.hash),async fetch(p,d){p instanceof Request&&(d={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:[...p.headers].length>0?p?.headers:void 0,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...d});const{resolved:u,promise:w}=bt(p,d,r);return l&&h(u.href),w},setHeaders:()=>{},depends:h,parent(){return l&&(c.parent=!0),t()},untrack(p){l=!1;try{return p()}finally{l=!0}}};i=await s.universal.load.call(null,f)??null}return{node:s,loader:e,server:o,universal:s.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:s.universal?.trailingSlash??o?.slash}}function bt(e,t,r){let a=e instanceof Request?e.url:e;const n=new URL(a,r);n.origin===r.origin&&(a=n.href.slice(r.origin.length));const o=fe?Mt(a,n.href,t):Ft(a,t);return{resolved:n,promise:o}}function Qe(e,t,r,a,n,o){if(X)return!0;if(!n)return!1;if(n.parent&&e||n.route&&t||n.url&&r)return!0;for(const i of n.search_params)if(a.has(i))return!0;for(const i of n.params)if(o[i]!==g.params[i])return!0;for(const i of n.dependencies)if(ie.some(l=>l(new URL(i))))return!0;return!1}function Ve(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function hr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of r){const n=e.searchParams.getAll(a),o=t.searchParams.getAll(a);n.every(i=>o.includes(i))&&o.every(i=>n.includes(i))&&r.delete(a)}return r}function et({error:e,url:t,route:r,params:a}){return{type:"loaded",state:{error:e,url:t,route:r,params:a,branch:[]},props:{page:te(O),constructors:[]}}}async function He({id:e,invalidating:t,url:r,params:a,route:n,preload:o}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:i,layouts:l,leaf:c}=n,s=[...l,c];i.forEach(m=>m?.().catch(()=>{})),s.forEach(m=>m?.[1]().catch(()=>{}));let h=null;const f=g.url?e!==pe(g.url):!1,p=g.route?n.id!==g.route.id:!1,d=hr(g.url,r);let u=!1;{const m=s.map((b,A)=>{const E=g.branch[A],v=!!b?.[0]&&(E?.loader!==b[1]||Qe(u,p,f,d,E.server?.uses,a));return v&&(u=!0),v});if(m.some(Boolean)){try{h=await Et(r,m)}catch(b){const A=await q(b,{url:r,params:a,route:{id:e}});return J.has(o)?et({error:A,url:r,params:a,route:n}):me({status:oe(b),error:A,url:r,route:n})}if(h.type==="redirect")return h}}const w=h?.nodes;let y=!1;const _=s.map(async(m,b)=>{if(!m)return;const A=g.branch[b],E=w?.[b];if((!E||E.type==="skip")&&m[1]===A?.loader&&!Qe(y,p,f,d,A.universal?.uses,a))return A;if(y=!0,E?.type==="error")throw E;return qe({loader:m[1],url:r,params:a,route:n,parent:async()=>{const P={};for(let j=0;j<b;j+=1)Object.assign(P,(await _[j])?.data);return P},server_data_node:Ve(E===void 0&&m[0]?{type:"skip"}:E??null,m[0]?A?.server:void 0)})});for(const m of _)m.catch(()=>{});const I=[];for(let m=0;m<s.length;m+=1)if(s[m])try{I.push(await _[m])}catch(b){if(b instanceof Ce)return{type:"redirect",location:b.location};if(J.has(o))return et({error:await q(b,{params:a,url:r,route:{id:n.id}}),url:r,params:a,route:n});let A=oe(b),E;if(w?.includes(b))A=b.status??A,E=b.error;else if(b instanceof _e)E=b.body;else{if(await x.updated.check())return await ht(),await V(r);E=await q(b,{params:a,url:r,route:{id:n.id}})}const v=await _r(m,I,i);return v?de({url:r,params:a,branch:I.slice(0,v.idx).concat(v.node),status:A,error:E,route:n}):await At(r,{id:n.id},E,A)}else I.push(void 0);return de({url:r,params:a,branch:I,status:200,error:null,route:n,form:t?void 0:null})}async function _r(e,t,r){for(;e--;)if(r[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function me({status:e,error:t,url:r,route:a}){const n={};let o=null;if(S.server_loads[0]===0)try{const l=await Et(r,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(r.origin!==Ue||r.pathname!==location.pathname||Be)&&await V(r)}try{const i=await qe({loader:Oe,url:r,params:n,route:a,parent:()=>Promise.resolve({}),server_data_node:Ve(o)}),l={node:await se(),loader:se,universal:null,server:null,data:null};return de({url:r,params:n,branch:[i,l],status:e,error:t,route:null})}catch(i){if(i instanceof Ce)return Fe(new URL(i.location,location.href),{},0);throw i}}async function yr(e){const t=e.href;if(re.has(t))return re.get(t);let r;try{const a=(async()=>{let n=await S.hooks.reroute({url:new URL(e),fetch:async(o,i)=>bt(o,i,e).promise})??e;if(typeof n=="string"){const o=new URL(e);S.hash?o.hash=n:o.pathname=n,n=o}return n})();re.set(t,a),r=await a}catch{re.delete(t);return}return r}async function ee(e,t){if(e&&!je(e,T,S.hash)){const r=await yr(e);if(!r)return;const a=mr(r);for(const n of De){const o=n.exec(a);if(o)return{id:pe(e),invalidating:t,route:n,params:$t(o),url:e}}}}function mr(e){return Dt(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function pe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function kt({url:e,type:t,intent:r,delta:a,event:n,scroll:o}){let i=!1;const l=Ke(g,r,e,t,o??null);a!==void 0&&(l.navigation.delta=a),n!==void 0&&(l.navigation.event=n);const c={...l.navigation,cancel:()=>{i=!0,l.reject(new Error("navigation cancelled"))}};return Z||yt.forEach(s=>s(c)),i?null:l}async function F({type:e,url:t,popped:r,keepfocus:a,noscroll:n,replace_state:o,state:i={},redirect_count:l=0,nav_token:c={},accept:s=Ie,block:h=Ie,event:f}){_t={};const p=$;$=c;const d=await ee(t,!1),u=e==="enter"?Ke(g,d,t,e):kt({url:t,type:e,delta:r?.delta,intent:d,scroll:r?.scroll,event:f});if(!u){h(),$===c&&($=p);return}const w=k,y=R;s(),Z=!0,fe&&u.navigation.type!=="enter"&&x.navigating.set(Ae.current=u.navigation);let _=d&&await He(d);if(!_){if(je(t,T,S.hash))return await V(t,o);_=await At(t,{id:null},await q(new $e(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=d?.url||t,$!==c)return u.reject(new Error("navigation aborted")),!1;if(_.type==="redirect"){if(l<20){await F({type:e,url:new URL(_.location,t),popped:r,keepfocus:a,noscroll:n,replace_state:o,state:i,redirect_count:l+1,nav_token:c}),u.fulfil(void 0);return}_=await me({status:500,error:await q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await x.updated.check()&&(await ht(),await V(t,o));if(Pe(),ye(w),gt(y),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=r?r.state:i,!r){const v=o?0:1,P={[N]:k+=v,[B]:R+=v,[he]:i};(o?history.replaceState:history.pushState).call(history,P,"",t),o||pt(k,R)}const I=d&&L?.id===d.id?L.fork:null;L=null,_.props.page.state=i;let m;if(fe){const v=(await Promise.all(Array.from(dr,j=>j(u.navigation)))).filter(j=>typeof j=="function");if(v.length>0){let j=function(){v.forEach(ge=>{G.delete(ge)})};v.push(j),v.forEach(ge=>{G.add(ge)})}g=_.state,_.props.page&&(_.props.page.url=t);const P=I&&await I;P?m=P.commit():(Q.$set(_.props),at(_.props.page),m=Pt?.()),Me=!0}else await vt(_,Re,!1);const{activeElement:b}=document;await m,await ae(),await ae();let A=null;if(We){const v=r?r.scroll:n?M():null;v?scrollTo(v.x,v.y):(A=t.hash&&document.getElementById(Ot(t)))?A.scrollIntoView():scrollTo(0,0)}const E=document.activeElement!==b&&document.activeElement!==document.body;!a&&!E&&br(t,!A),We=!0,_.props.page&&Object.assign(O,_.props.page),Z=!1,e==="popstate"&&wt(R),u.fulfil(void 0),u.navigation.to&&(u.navigation.to.scroll=M()),G.forEach(v=>v(u.navigation)),x.navigating.set(Ae.current=null)}async function At(e,t,r,a,n){return e.origin===Ue&&e.pathname===location.pathname&&!Be?await me({status:a,error:r,url:e,route:t}):await V(e,n)}function gr(){let e,t={element:void 0,href:void 0},r;C.addEventListener("mousemove",l=>{const c=l.target;clearTimeout(e),e=setTimeout(()=>{o(c,H.hover)},20)});function a(l){l.defaultPrevented||o(l.composedPath()[0],H.tap)}C.addEventListener("mousedown",a),C.addEventListener("touchstart",a,{passive:!0});const n=new IntersectionObserver(l=>{for(const c of l)c.isIntersecting&&(ke(new URL(c.target.href)),n.unobserve(c.target))},{threshold:0});async function o(l,c){const s=tt(l,C),h=s===t.element&&s?.href===t.href&&c>=r;if(!s||h)return;const{url:f,external:p,download:d}=Se(s,T,S.hash);if(p||d)return;const u=ne(s),w=f&&pe(g.url)===pe(f);if(!(u.reload||w))if(c<=u.preload_data){t={element:s,href:s.href},r=H.tap;const y=await ee(f,!1);if(!y)return;pr(y)}else c<=u.preload_code&&(t={element:s,href:s.href},r=c,ke(f))}function i(){n.disconnect();for(const l of C.querySelectorAll("a")){const{url:c,external:s,download:h}=Se(l,T,S.hash);if(s||h)continue;const f=ne(l);f.reload||(f.preload_code===H.viewport&&n.observe(l),f.preload_code===H.eager&&ke(c))}}G.add(i),i()}function q(e,t){if(e instanceof _e)return e.body;const r=oe(e),a=sr(e);return S.hooks.handleError({error:e,event:t,status:r,message:a})??{message:a}}function Pr(e,t={}){return e=new URL(W(e)),e.origin!==Ue?Promise.reject(new Error("goto: invalid URL")):Fe(e,t,0)}function Tr(e){return St(e),mt()}function St(e){if(typeof e=="function")ie.push(e);else{const{href:t}=new URL(e,location.href);ie.push(r=>r.href===t)}}function Lr(){return X=!0,mt()}function jr(e,t){ye(k);const r={[N]:k+=1,[B]:R,[Le]:O.url.href,[he]:t};history.pushState(r,"",W(e)),Me=!0,O.state=t,Q.$set({page:dt(()=>te(O))}),pt(k,R)}function Ur(e,t){const r={[N]:k,[B]:R,[Le]:O.url.href,[he]:t};history.replaceState(r,"",W(e)),O.state=t,Q.$set({page:dt(()=>te(O))})}function wr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Xe(),!Z){const a=Ke(g,void 0,null,"leave"),n={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};yt.forEach(o=>o(n))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Xe()}),navigator.connection?.saveData||gr(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],C);if(!r)return;const{url:a,external:n,target:o,download:i}=Se(r,T,S.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const l=ne(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;const[s,h]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),f=s===we(location);if(n||l.reload&&(!f||!h)){kt({url:a,type:"link",event:t})?Z=!0:t.preventDefault();return}if(h!==void 0&&f){const[,p]=g.url.href.split("#");if(p===h){if(t.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=r.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(Y=!0,ye(k),e(a),!l.replace_state)return;Y=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await F({type:"link",url:a,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??a.href===location.href,event:t})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||r.target)==="_blank"||(a?.formMethod||r.method)!=="get")return;const i=new URL(a?.hasAttribute("formaction")&&a?.formAction||r.action);if(je(i,T,!1))return;const l=t.target,c=ne(l);if(c.reload)return;t.preventDefault(),t.stopPropagation();const s=new FormData(l,a);i.search=new URLSearchParams(s).toString(),F({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Te){if(t.state?.[N]){const r=t.state[N];if($={},r===k)return;const a=D[r],n=t.state[he]??{},o=new URL(t.state[Le]??location.href),i=t.state[B],l=g.url?we(location)===we(g.url):!1;if(i===R&&(Me||l)){n!==O.state&&(O.state=n),e(o),D[k]=M(),a&&scrollTo(a.x,a.y),k=r;return}const s=r-k;await F({type:"popstate",url:o,popped:{state:n,scroll:a,delta:s},accept:()=>{k=r,R=i},block:()=>{history.go(-s)},nav_token:$,event:t})}else if(!Y){const r=new URL(location.href);e(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[N]:++k,[B]:R},"",location.href))});for(const t of document.querySelectorAll("link"))ur.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(Ae.current=null)});function e(t){g.url=O.url=t,x.page.set(te(O)),x.page.notify()}}async function vr(e,{status:t=200,error:r,node_ids:a,params:n,route:o,server_route:i,data:l,form:c}){Be=!0;const s=new URL(location.href);let h;({params:n={},route:o={id:null}}=await ee(s,!1)||{}),h=De.find(({id:d})=>d===o.id);let f,p=!0;try{const d=a.map(async(w,y)=>{const _=l[y];return _?.uses&&(_.uses=It(_.uses)),qe({loader:S.nodes[w],url:s,params:n,route:o,parent:async()=>{const I={};for(let m=0;m<y;m+=1)Object.assign(I,(await d[m]).data);return I},server_data_node:Ve(_)})}),u=await Promise.all(d);if(h){const w=h.layouts;for(let y=0;y<w.length;y++)w[y]||u.splice(y,0,void 0)}f=de({url:s,params:n,branch:u,status:t,error:r,form:c,route:h??null})}catch(d){if(d instanceof Ce){await V(new URL(d.location,location.href));return}f=await me({status:oe(d),error:await q(d,{url:s,params:n,route:o}),url:s,route:o}),e.textContent="",p=!1}f.props.page&&(f.props.page.state={}),await vt(f,e,p)}async function Et(e,t){const r=new URL(e);r.pathname=lr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(ar,t.map(o=>o?"1":"0").join(""));const a=window.fetch,n=await a(r.href,{});if(!n.ok){let o;throw n.headers.get("content-type")?.includes("application/json")?o=await n.json():n.status===404?o="Not Found":n.status===500&&(o="Internal Error"),new _e(n.status,o)}return new Promise(async o=>{const i=new Map,l=n.body.getReader();function c(h){return ut(h,{...S.decoders,Promise:f=>new Promise((p,d)=>{i.set(f,{fulfil:p,reject:d})})})}let s="";for(;;){const{done:h,value:f}=await l.read();if(h&&!s)break;for(s+=!f&&s?`
3
- `:Bt.decode(f,{stream:!0});;){const p=s.indexOf(`
4
- `);if(p===-1)break;const d=JSON.parse(s.slice(0,p));if(s=s.slice(p+1),d.type==="redirect")return o(d);if(d.type==="data")d.nodes?.forEach(u=>{u?.type==="data"&&(u.uses=It(u.uses),u.data=c(u.data))}),o(d);else if(d.type==="chunk"){const{id:u,data:w,error:y}=d,_=i.get(u);i.delete(u),y?_.reject(c(y)):_.fulfil(c(w))}}}})}function It(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 Te=!1;function br(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const a=Ot(e);if(a&&document.getElementById(a)){const{x:o,y:i}=M();setTimeout(()=>{const l=history.state;Te=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(l,"",e),t&&scrollTo(o,i),Te=!1})}else{const o=document.body,i=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),i!==null?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")}const n=getSelection();if(n&&n.type!=="None"){const o=[];for(let i=0;i<n.rangeCount;i+=1)o.push(n.getRangeAt(i));setTimeout(()=>{if(n.rangeCount===o.length){for(let i=0;i<n.rangeCount;i+=1){const l=o[i],c=n.getRangeAt(i);if(l.commonAncestorContainer!==c.commonAncestorContainer||l.startContainer!==c.startContainer||l.endContainer!==c.endContainer||l.startOffset!==c.startOffset||l.endOffset!==c.endOffset)return}n.removeAllRanges()}})}}}function Ke(e,t,r,a,n=null){let o,i;const l=new Promise((s,h)=>{o=s,i=h});return l.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:M()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:n},willUnload:!t,type:a,complete:l},fulfil:o,reject:i}}function te(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 kr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Ot(e){let t;if(S.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{_e as H,Ce as R,Ir as a,S as b,Or as c,Ur as d,jr as e,Tr as f,Pr as g,Rr as h,Lr as i,Er as p,ue as q,_t as r,x as s};
@@ -1 +0,0 @@
1
- import{o as R}from"./y5L2Na-S.js";import{e as w,a4 as j,b as f,g as d,d as h}from"./C6nv_pni.js";const p=[];function E(e,t=w){let r=null;const n=new Set;function s(a){if(j(e,a)&&(e=a,r)){const i=!p.length;for(const c of n)c[1](),p.push(c,e);if(i){for(let c=0;c<p.length;c+=2)p[c][0](p[c+1]);p.length=0}}}function l(a){s(a(e))}function o(a,i=w){const c=[a,i];return n.add(c),n.size===1&&(r=t(s,l)||w),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:s,update:l,subscribe:o}}new URL("sveltekit-internal://");function Q(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Z(e){return e.split("%25").map(decodeURI).join("%25")}function ee(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function te({href:e}){return e.split("#")[0]}function ne(e,t,r,n=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(o,a){if(a==="get"||a==="getAll"||a==="has")return(c,...u)=>(r(c),o[a](c,...u));t();const i=Reflect.get(o,a);return typeof i=="function"?i.bind(o):i}}),enumerable:!0,configurable:!0});const l=["href","pathname","search","toString","toJSON"];n&&l.push("hash");for(const o of l)Object.defineProperty(s,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return s}function q(...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 s=n.length;for(;s;)t=t*33^n[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const re=new TextDecoder;function se(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function W(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 V=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&m.delete(x(e)),V(e,t));const m=new Map;function ae(e,t){const r=x(e,t),n=document.querySelector(r);if(n?.textContent){n.remove();let{body:s,...l}=JSON.parse(n.textContent);const o=n.getAttribute("data-ttl");return o&&m.set(r,{body:s,init:l,ttl:1e3*Number(o)}),n.getAttribute("data-b64")!==null&&(s=W(s)),Promise.resolve(new Response(s,l))}return window.fetch(e,t)}function oe(e,t,r){if(m.size>0){const n=x(e,r),s=m.get(n);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(r?.cache))return new Response(s.body,s.init);m.delete(n)}}return window.fetch(t,r)}function x(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),n+=`[data-hash="${q(...s)}"]`}return n}const z=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ie(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${T(e).map(n=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(s)return t.push({name:s[1],matcher:s[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const l=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(l)return t.push({name:l[1],matcher:l[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,c)=>{if(c%2){if(i.startsWith("x+"))return v(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return v(String.fromCharCode(...i.slice(2).split("-").map(P=>parseInt(P,16))));const u=z.exec(i),[,_,b,N,L]=u;return t.push({name:N,matcher:L,optional:!!_,rest:!!b,chained:b?c===1&&o[0]==="":!1}),b?"([^]*?)":_?"([^/]*)?":"([^/]+?)"}return v(i)}).join("")}).join("")}/?$`),params:t}}function G(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function T(e){return e.slice(1).split("/").filter(G)}function ce(e,t,r){const n={},s=e.slice(1),l=s.filter(a=>a!==void 0);let o=0;for(let a=0;a<t.length;a+=1){const i=t[a];let c=s[a-o];if(i.chained&&i.rest&&o&&(c=s.slice(a-o,a+1).filter(u=>u).join("/"),o=0),c===void 0)if(i.rest)c="";else continue;if(!i.matcher||r[i.matcher](c)){n[i.name]=c;const u=t[a+1],_=s[a+1];u&&!u.rest&&u.optional&&_&&i.chained&&(o=0),!u&&!_&&Object.keys(n).length===l.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return n}function v(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const Y=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function le(e,t){const r=T(e),n=e!="/"&&e.endsWith("/");return"/"+r.map(s=>s.replace(Y,(l,o,a,i)=>{const c=t[i];if(!c){if(o||a&&c!==void 0)return"";throw new Error(`Missing parameter '${i}' in route ${e}`)}if(c.startsWith("/")||c.endsWith("/"))throw new Error(`Parameter '${i}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return c})).filter(Boolean).join("/")+(n?"/":"")}const B=globalThis.__sveltekit_1kmr27x?.base??"",D=globalThis.__sveltekit_1kmr27x?.assets??B??"",ue="_app",H="1773610107182",fe="sveltekit:snapshot",de="sveltekit:scroll",he="sveltekit:states",pe="sveltekit:pageurl",ge="sveltekit:history",_e="sveltekit:navigation",A={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},U=location.origin;function me(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 be(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const k={...A,"":A.hover};function O(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function we(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=O(e)}}function ve(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 a=location.hash.split("#")[1]||"/";n.hash=`#${a}${n.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,l=!n||!!s||K(n,t,r)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===U&&e.hasAttribute("download");return{url:n,external:l,target:s,download:o}}function ye(e){let t=null,r=null,n=null,s=null,l=null,o=null,a=e;for(;a&&a!==document.documentElement;)n===null&&(n=g(a,"preload-code")),s===null&&(s=g(a,"preload-data")),t===null&&(t=g(a,"keepfocus")),r===null&&(r=g(a,"noscroll")),l===null&&(l=g(a,"reload")),o===null&&(o=g(a,"replacestate")),a=O(a);function i(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:k[n??"off"],preload_data:k[s??"off"],keepfocus:i(t),noscroll:i(r),reload:i(l),replace_state:i(o)}}function Se(e){const t=E(e);let r=!0;function n(){r=!0,t.update(o=>o)}function s(o){r=!1,t.set(o)}function l(o){let a;return t.subscribe(i=>{(a===void 0||r&&i!==a)&&o(a=i)})}return{notify:n,set:s,subscribe:l}}const I={v:()=>{}};function xe(){const{set:e,subscribe:t}=E(!1);let r;async function n(){clearTimeout(r);try{const s=await fetch(`${D}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const o=(await s.json()).version!==H;return o&&(e(!0),I.v(),clearTimeout(r)),o}catch{return!1}}return{subscribe:t,check:n}}function K(e,t,r){return e.origin!==U||!e.pathname.startsWith(t)?!0:r?e.pathname!==location.pathname:!1}function Re(e){}const C=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...C];const F=new Set([...C]);[...F];let S,$,y;const J=R.toString().includes("$$")||/function \w+\(\) \{\}/.test(R.toString());J?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},$={current:null},y={current:!1}):(S=new class{#e=f({});get data(){return d(this.#e)}set data(t){h(this.#e,t)}#t=f(null);get form(){return d(this.#t)}set form(t){h(this.#t,t)}#n=f(null);get error(){return d(this.#n)}set error(t){h(this.#n,t)}#r=f({});get params(){return d(this.#r)}set params(t){h(this.#r,t)}#s=f({id:null});get route(){return d(this.#s)}set route(t){h(this.#s,t)}#a=f({});get state(){return d(this.#a)}set state(t){h(this.#a,t)}#o=f(-1);get status(){return d(this.#o)}set status(t){h(this.#o,t)}#i=f(new URL("https://example.com"));get url(){return d(this.#i)}set url(t){h(this.#i,t)}},$=new class{#e=f(null);get current(){return d(this.#e)}set current(t){h(this.#e,t)}},y=new class{#e=f(!1);get current(){return d(this.#e)}set current(t){h(this.#e,t)}},I.v=()=>y.current=!0);function Ee(e){Object.assign(S,e)}export{fe as A,oe as B,ae as C,Ee as D,de as E,Re as F,ge as H,_e as N,pe as P,he as S,ue as a,B as b,ie as c,se as d,ce as e,xe as f,me as g,we as h,K as i,ve as j,ye as k,te as l,Se as m,$ as n,ee as o,S as p,ne as q,le as r,be as s,Q as t,U as u,H as v,E as w,A as x,Z as y,re as z};
@@ -1 +0,0 @@
1
- import{h as s}from"../chunks/ChTiw7nk.js";import{F as t}from"../chunks/Czyt1_Wc.js";export{t as load_css,s as start};
@@ -1,4 +0,0 @@
1
- �`,
2
- 얇�q�>�#����jef�6��Ϩ�*�ˀ� l��y|��`)�� �2�G�X�+
3
- �A�Yjowo�>��p��������f�6/��Z���(T�^��0F'���$��^*�ɬ���>l�#��@m��.>���QNI�9+p�H��BPDh�Ts�.�|נ�m���)�{F����˻;�Wy�{�64�o�X���C*V)��`�i�od@
4
- 7 �H�&���})&��e�;)���������. �K\OZ��R��A���Il�Ѹ���l57�
@@ -1 +0,0 @@
1
- {"version":3,"file":"_server.ts-Bs5HC7Wf.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/auth/callback/_server.ts.js"],"sourcesContent":["import { b as base } from \"../../../../chunks/server.js\";\nimport \"../../../../chunks/url.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../../../chunks/root.js\";\nimport { g as getOAuthConfig, c as cookieOptions, e as exchangeCode, a as getCallbackUrl, b as extractUserFromIdToken, d as createSessionCookie } from \"../../../../chunks/oauth.js\";\nimport { redirect, error } from \"@sveltejs/kit\";\nconst GET = async ({ url, cookies }) => {\n const config = await getOAuthConfig();\n if (!config) {\n redirect(302, `${base}/`);\n }\n const oauthError = url.searchParams.get(\"error\");\n if (oauthError) {\n error(403, url.searchParams.get(\"error_description\") || oauthError);\n }\n const code = url.searchParams.get(\"code\");\n const state = url.searchParams.get(\"state\");\n if (!code || !state) {\n error(400, \"Missing code or state parameter\");\n }\n const storedState = cookies.get(\"mongoku_pkce_state\");\n const storedVerifier = cookies.get(\"mongoku_pkce_verifier\");\n if (!storedState || !storedVerifier) {\n error(400, \"Missing OAuth cookies — please try logging in again\");\n }\n if (state !== storedState) {\n error(403, \"Invalid OAuth state\");\n }\n cookies.delete(\"mongoku_pkce_state\", cookieOptions(url));\n cookies.delete(\"mongoku_pkce_verifier\", cookieOptions(url));\n const tokens = await exchangeCode(config, url.origin, code, storedVerifier, getCallbackUrl(url.origin));\n let user = {};\n if (tokens.id_token) {\n user = extractUserFromIdToken(tokens.id_token);\n }\n if (config.allowedSubs && (!user.sub || !config.allowedSubs.has(user.sub))) {\n error(403, \"Your account is not authorized to access this application\");\n }\n cookies.set(\"mongoku_session\", createSessionCookie(config, user), cookieOptions(url, config.sessionDuration));\n redirect(302, `${base}/`);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;AAMK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK;AACxC,EAAE,MAAM,MAAM,GAAG,MAAM,cAAc,EAAE;AACvC,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAA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,EAAE;AACf,EAAE,IAAI,MAAM,CAAC,QAAQ,EAAE;AACvB,IAAI,IAAI,GAAG,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC;AAClD,EAAE;AACF,EAAE,IAAI,MAAM,CAAC,WAAW,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;AAC9E,IAAI,KAAK,CAAC,GAAG,EAAE,2DAA2D,CAAC;AAC3E,EAAE;AACF,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;AAC/G,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3B;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-BfIECOev.js","sources":["../../../.svelte-kit/adapter-node/chunks/oauth.js"],"sourcesContent":["import { b as base } from \"./server.js\";\nimport \"./url.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"./root.js\";\nimport { b as private_env } from \"./shared-server.js\";\nimport { createHmac, randomBytes, createHash, timingSafeEqual } from \"node:crypto\";\nconst DEFAULT_SESSION_DURATION = 86400;\nconst OAUTH_CIMD_CLIENT_ID = \"__CIMD__\";\nlet cachedConfig;\nfunction parseSessionDuration(rawDuration) {\n if (!rawDuration) {\n return DEFAULT_SESSION_DURATION;\n }\n const parsed = Number(rawDuration);\n if (!Number.isInteger(parsed) || parsed <= 0) {\n return DEFAULT_SESSION_DURATION;\n }\n return parsed;\n}\nasync function fetchOpenIDConfiguration(issuerUrl) {\n const wellKnown = issuerUrl.replace(/\\/+$/, \"\") + \"/.well-known/openid-configuration\";\n const response = await fetch(wellKnown);\n if (!response.ok) {\n throw new Error(`Failed to fetch OpenID configuration from ${wellKnown} (${response.status})`);\n }\n const config = await response.json();\n if (!config.authorization_endpoint || !config.token_endpoint) {\n throw new Error(`OpenID configuration at ${wellKnown} is missing required endpoints`);\n }\n return config;\n}\nasync function getOAuthConfig() {\n if (cachedConfig !== void 0) {\n return cachedConfig;\n }\n const clientId = private_env.MONGOKU_OAUTH_CLIENT_ID;\n if (!clientId) {\n cachedConfig = null;\n return null;\n }\n const issuerUrl = private_env.MONGOKU_OAUTH_ISSUER_URL;\n const sessionSecret = private_env.MONGOKU_OAUTH_SESSION_SECRET;\n if (!issuerUrl || !sessionSecret) {\n throw new Error(\n \"OAuth is partially configured. When MONGOKU_OAUTH_CLIENT_ID is set, MONGOKU_OAUTH_ISSUER_URL and MONGOKU_OAUTH_SESSION_SECRET are also required.\"\n );\n }\n const oidc = await fetchOpenIDConfiguration(issuerUrl);\n const allowedSubsRaw = private_env.MONGOKU_OAUTH_ALLOWED_SUBS;\n const allowedSubs = allowedSubsRaw ? new Set(\n allowedSubsRaw.split(\",\").map((s) => s.trim()).filter(Boolean)\n ) : void 0;\n cachedConfig = {\n clientId,\n issuerUrl,\n authorizationUrl: oidc.authorization_endpoint,\n tokenUrl: oidc.token_endpoint,\n scopes: private_env.MONGOKU_OAUTH_SCOPES ?? \"openid profile email\",\n sessionSecret,\n sessionDuration: parseSessionDuration(private_env.MONGOKU_OAUTH_SESSION_DURATION),\n allowedSubs\n };\n return cachedConfig;\n}\nfunction resolveOAuthClientId(config, origin) {\n if (config.clientId !== OAUTH_CIMD_CLIENT_ID) {\n return config.clientId;\n }\n return new URL(`${base}/.well-known/cimd.json`, origin).toString();\n}\nfunction base64url(buffer) {\n return buffer.toString(\"base64url\");\n}\nfunction generateCodeVerifier() {\n return base64url(randomBytes(64));\n}\nfunction generateCodeChallenge(verifier) {\n return base64url(createHash(\"sha256\").update(verifier).digest());\n}\nfunction generateState() {\n return base64url(randomBytes(32));\n}\nfunction buildAuthorizationUrl(config, origin, callbackUrl, codeChallenge, state) {\n const url = new URL(config.authorizationUrl);\n url.searchParams.set(\"client_id\", resolveOAuthClientId(config, origin));\n url.searchParams.set(\"response_type\", \"code\");\n url.searchParams.set(\"redirect_uri\", callbackUrl);\n url.searchParams.set(\"scope\", config.scopes);\n url.searchParams.set(\"state\", state);\n url.searchParams.set(\"code_challenge\", codeChallenge);\n url.searchParams.set(\"code_challenge_method\", \"S256\");\n return url.toString();\n}\nasync function exchangeCode(config, origin, code, codeVerifier, callbackUrl) {\n const body = new URLSearchParams({\n grant_type: \"authorization_code\",\n code,\n redirect_uri: callbackUrl,\n client_id: resolveOAuthClientId(config, origin),\n code_verifier: codeVerifier\n });\n const response = await fetch(config.tokenUrl, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n body: body.toString()\n });\n if (!response.ok) {\n const text = await response.text();\n throw new Error(`Token exchange failed (${response.status}): ${text}`);\n }\n return response.json();\n}\nfunction extractUserFromIdToken(idToken) {\n try {\n const parts = idToken.split(\".\");\n if (parts.length !== 3) {\n return {};\n }\n const payload = JSON.parse(Buffer.from(parts[1], \"base64url\").toString());\n return {\n sub: payload.sub,\n name: payload.name || payload.preferred_username,\n email: payload.email\n };\n } catch {\n return {};\n }\n}\nfunction createSessionCookie(config, user) {\n const sessionDuration = Number.isInteger(config.sessionDuration) && config.sessionDuration > 0 ? config.sessionDuration : DEFAULT_SESSION_DURATION;\n const payload = {\n ...user,\n exp: Math.floor(Date.now() / 1e3) + sessionDuration\n };\n const payloadStr = Buffer.from(JSON.stringify(payload)).toString(\"base64url\");\n const signature = createHmac(\"sha256\", config.sessionSecret).update(payloadStr).digest(\"base64url\");\n return `${payloadStr}.${signature}`;\n}\nfunction verifySession(config, cookie) {\n const dotIndex = cookie.lastIndexOf(\".\");\n if (dotIndex === -1) {\n return null;\n }\n const payloadStr = cookie.slice(0, dotIndex);\n const signature = cookie.slice(dotIndex + 1);\n const expectedSignature = createHmac(\"sha256\", config.sessionSecret).update(payloadStr).digest(\"base64url\");\n const a = Buffer.from(signature);\n const b = Buffer.from(expectedSignature);\n if (a.length !== b.length || !timingSafeEqual(a, b)) {\n return null;\n }\n try {\n const payload = JSON.parse(Buffer.from(payloadStr, \"base64url\").toString());\n if (!Number.isFinite(payload.exp)) {\n return null;\n }\n if (payload.exp < Math.floor(Date.now() / 1e3)) {\n return null;\n }\n return payload;\n } catch {\n return null;\n }\n}\nfunction getCallbackUrl(origin) {\n return `${origin}${base}/auth/callback`;\n}\nfunction cookieOptions(url, maxAge) {\n return {\n httpOnly: true,\n secure: url.protocol === \"https:\",\n sameSite: \"lax\",\n path: base || \"/\",\n ...maxAge !== void 0 && { maxAge }\n };\n}\nexport {\n OAUTH_CIMD_CLIENT_ID as O,\n getCallbackUrl as a,\n extractUserFromIdToken as b,\n cookieOptions as c,\n createSessionCookie as d,\n exchangeCode as e,\n generateCodeVerifier as f,\n getOAuthConfig as g,\n generateCodeChallenge as h,\n generateState as i,\n buildAuthorizationUrl as j,\n verifySession as v\n};\n"],"names":[],"mappings":";;;;;AAMA,MAAM,wBAAwB,GAAG,KAAK;AACjC,MAAC,oBAAoB,GAAG;AAC7B,IAAI,YAAY;AAChB,SAAS,oBAAoB,CAAC,WAAW,EAAE;AAC3C,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,OAAO,wBAAwB;AACnC,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;AACpC,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,EAAE;AAChD,IAAI,OAAO,wBAAwB;AACnC,EAAE;AACF,EAAE,OAAO,MAAM;AACf;AACA,eAAe,wBAAwB,CAAC,SAAS,EAAE;AACnD,EAAE,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,mCAAmC;AACvF,EAAE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC;AACzC,EAAE,IAAI,C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