mongoku 2.8.0 → 2.8.1

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 (151) hide show
  1. package/build/client/_app/immutable/chunks/{xrXHgsyT.js → B-uukkkJ.js} +1 -1
  2. package/build/client/_app/immutable/chunks/B-uukkkJ.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/B-uukkkJ.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{BTdFpUqT.js → B_7uoCj-.js} +1 -1
  5. package/build/client/_app/immutable/chunks/B_7uoCj-.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/B_7uoCj-.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/BxKxqkS7.js +4 -0
  8. package/build/client/_app/immutable/chunks/BxKxqkS7.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BxKxqkS7.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/C1s4M21f.js +1 -0
  11. package/build/client/_app/immutable/chunks/C1s4M21f.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/C1s4M21f.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{D8zlfikW.js → CafiCU8Z.js} +1 -1
  14. package/build/client/_app/immutable/chunks/CafiCU8Z.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/CafiCU8Z.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{BeI5ZttF.js → DZ3j8h_f.js} +1 -1
  17. package/build/client/_app/immutable/chunks/DZ3j8h_f.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/DZ3j8h_f.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{CdRpd1Pa.js → DqCgzOHl.js} +1 -1
  20. package/build/client/_app/immutable/chunks/DqCgzOHl.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/DqCgzOHl.js.gz +0 -0
  22. package/build/client/_app/immutable/entry/{app.DiR5lG-C.js → app.CobTjvr8.js} +2 -2
  23. package/build/client/_app/immutable/entry/app.CobTjvr8.js.br +0 -0
  24. package/build/client/_app/immutable/entry/app.CobTjvr8.js.gz +0 -0
  25. package/build/client/_app/immutable/entry/start.BD32Z2Yy.js +1 -0
  26. package/build/client/_app/immutable/entry/start.BD32Z2Yy.js.br +0 -0
  27. package/build/client/_app/immutable/entry/start.BD32Z2Yy.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{0.CBWWfk93.js → 0.CTNDfBi_.js} +1 -1
  29. package/build/client/_app/immutable/nodes/0.CTNDfBi_.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/0.CTNDfBi_.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{1.CbLqskfK.js → 1.B0G4JtnR.js} +1 -1
  32. package/build/client/_app/immutable/nodes/1.B0G4JtnR.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/1.B0G4JtnR.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/{10.DTh6L1kK.js → 10.DiOFtMHY.js} +1 -1
  35. package/build/client/_app/immutable/nodes/10.DiOFtMHY.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/10.DiOFtMHY.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/{11.C6ycMb7s.js → 11.CcFuKX19.js} +1 -1
  38. package/build/client/_app/immutable/nodes/11.CcFuKX19.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/{11.C6ycMb7s.js.gz → 11.CcFuKX19.js.gz} +0 -0
  40. package/build/client/_app/immutable/nodes/{12.B-chNSk2.js → 12.PoZV4wBT.js} +1 -1
  41. package/build/client/_app/immutable/nodes/12.PoZV4wBT.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/12.PoZV4wBT.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/{13.C91iW4j9.js → 13.BIZ8AY9M.js} +1 -1
  44. package/build/client/_app/immutable/nodes/13.BIZ8AY9M.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/13.BIZ8AY9M.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/{14.D2RGyiFI.js → 14.DfoPNHw_.js} +1 -1
  47. package/build/client/_app/immutable/nodes/14.DfoPNHw_.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/14.DfoPNHw_.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/{7.CV5qcnBR.js → 7.CTCgtWr5.js} +1 -1
  50. package/build/client/_app/immutable/nodes/7.CTCgtWr5.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/7.CTCgtWr5.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/{8.ktwY963d.js → 8.B9VIkjMO.js} +1 -1
  53. package/build/client/_app/immutable/nodes/8.B9VIkjMO.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/8.B9VIkjMO.js.gz +0 -0
  55. package/build/client/_app/immutable/nodes/{9.DW-Z2-S5.js → 9.DgUUrJMM.js} +1 -1
  56. package/build/client/_app/immutable/nodes/9.DgUUrJMM.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/9.DgUUrJMM.js.gz +0 -0
  58. package/build/client/_app/version.json +1 -1
  59. package/build/client/_app/version.json.br +0 -0
  60. package/build/client/_app/version.json.gz +0 -0
  61. package/build/server/chunks/{0-DtxTwvwx.js → 0-CKG6FzOP.js} +2 -2
  62. package/build/server/chunks/{0-DtxTwvwx.js.map → 0-CKG6FzOP.js.map} +1 -1
  63. package/build/server/chunks/{1-kSh_upek.js → 1-BobnPu2T.js} +2 -2
  64. package/build/server/chunks/{1-kSh_upek.js.map → 1-BobnPu2T.js.map} +1 -1
  65. package/build/server/chunks/{10-B3nIRDju.js → 10-DhUkYynY.js} +3 -3
  66. package/build/server/chunks/{10-B3nIRDju.js.map → 10-DhUkYynY.js.map} +1 -1
  67. package/build/server/chunks/{11-BanHdLw-.js → 11-BNbY7gn2.js} +4 -4
  68. package/build/server/chunks/{11-BanHdLw-.js.map → 11-BNbY7gn2.js.map} +1 -1
  69. package/build/server/chunks/{12-C-a1x8Ux.js → 12-DBj8btwS.js} +4 -4
  70. package/build/server/chunks/{12-C-a1x8Ux.js.map → 12-DBj8btwS.js.map} +1 -1
  71. package/build/server/chunks/{13-CrH87Ubk.js → 13-EXQa77Y1.js} +4 -4
  72. package/build/server/chunks/{13-CrH87Ubk.js.map → 13-EXQa77Y1.js.map} +1 -1
  73. package/build/server/chunks/{14-BL43xMGs.js → 14-DHzR9sir.js} +3 -3
  74. package/build/server/chunks/{14-BL43xMGs.js.map → 14-DHzR9sir.js.map} +1 -1
  75. package/build/server/chunks/{7-BPZu14VX.js → 7-QcJoMaSg.js} +2 -2
  76. package/build/server/chunks/{7-BPZu14VX.js.map → 7-QcJoMaSg.js.map} +1 -1
  77. package/build/server/chunks/{8-BBNP-58z.js → 8-UCTaZB_Z.js} +3 -3
  78. package/build/server/chunks/{8-BBNP-58z.js.map → 8-UCTaZB_Z.js.map} +1 -1
  79. package/build/server/chunks/{9-o5qH70ZY.js → 9-C0szOSjZ.js} +3 -3
  80. package/build/server/chunks/{9-o5qH70ZY.js.map → 9-C0szOSjZ.js.map} +1 -1
  81. package/build/server/chunks/{JsonEncoder-B8eJRYZ4.js → JsonEncoder-Dgtqxb_U.js} +11 -2
  82. package/build/server/chunks/JsonEncoder-Dgtqxb_U.js.map +1 -0
  83. package/build/server/chunks/{PrettyJson-CzzntSVh.js → PrettyJson-BVgLycwy.js} +2 -2
  84. package/build/server/chunks/{PrettyJson-CzzntSVh.js.map → PrettyJson-BVgLycwy.js.map} +1 -1
  85. package/build/server/chunks/{_page.svelte-r3qEfGgz.js → _page.svelte-BE3IXD7W.js} +3 -3
  86. package/build/server/chunks/{_page.svelte-r3qEfGgz.js.map → _page.svelte-BE3IXD7W.js.map} +1 -1
  87. package/build/server/chunks/{_page.svelte-CnboYQ1K.js → _page.svelte-BimaUmmG.js} +3 -3
  88. package/build/server/chunks/{_page.svelte-CnboYQ1K.js.map → _page.svelte-BimaUmmG.js.map} +1 -1
  89. package/build/server/chunks/{_page.svelte-DxlZXLVf.js → _page.svelte-BkyGMJtY.js} +3 -3
  90. package/build/server/chunks/{_page.svelte-DxlZXLVf.js.map → _page.svelte-BkyGMJtY.js.map} +1 -1
  91. package/build/server/chunks/{_page.svelte-THKAhY4k.js → _page.svelte-CYgL8X_3.js} +4 -4
  92. package/build/server/chunks/{_page.svelte-THKAhY4k.js.map → _page.svelte-CYgL8X_3.js.map} +1 -1
  93. package/build/server/chunks/{_page.svelte-Dg71nX8A.js → _page.svelte-DEuOrgce.js} +4 -4
  94. package/build/server/chunks/{_page.svelte-Dg71nX8A.js.map → _page.svelte-DEuOrgce.js.map} +1 -1
  95. package/build/server/chunks/{_page.svelte-CQzzieEo.js → _page.svelte-DybQp3Hh.js} +3 -3
  96. package/build/server/chunks/{_page.svelte-CQzzieEo.js.map → _page.svelte-DybQp3Hh.js.map} +1 -1
  97. package/build/server/chunks/{_page.svelte-D41VQj4U.js → _page.svelte-Q0qOjc1K.js} +3 -3
  98. package/build/server/chunks/{_page.svelte-D41VQj4U.js.map → _page.svelte-Q0qOjc1K.js.map} +1 -1
  99. package/build/server/chunks/{remote-xxtqbu-D0yn6nhQ.js → remote-xxtqbu-DU1VUIfB.js} +3 -3
  100. package/build/server/chunks/remote-xxtqbu-DU1VUIfB.js.map +1 -0
  101. package/build/server/chunks/{servers.remote-BhpVo4Zs.js → servers.remote-ChLjCujn.js} +2 -2
  102. package/build/server/chunks/{servers.remote-BhpVo4Zs.js.map → servers.remote-ChLjCujn.js.map} +1 -1
  103. package/build/server/index.js +1 -1
  104. package/build/server/index.js.map +1 -1
  105. package/build/server/manifest.js +12 -12
  106. package/build/server/manifest.js.map +1 -1
  107. package/package.json +1 -1
  108. package/src/lib/server/JsonEncoder.ts +10 -1
  109. package/src/tests/server/JsonEncoder.test.ts +302 -0
  110. package/build/client/_app/immutable/chunks/BTdFpUqT.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/BTdFpUqT.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/Bc4NoJ7i.js +0 -4
  113. package/build/client/_app/immutable/chunks/Bc4NoJ7i.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/Bc4NoJ7i.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/BeI5ZttF.js.br +0 -0
  116. package/build/client/_app/immutable/chunks/BeI5ZttF.js.gz +0 -0
  117. package/build/client/_app/immutable/chunks/CdRpd1Pa.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/CdRpd1Pa.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/D8zlfikW.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/D8zlfikW.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/Qfj1d632.js +0 -1
  122. package/build/client/_app/immutable/chunks/Qfj1d632.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/Qfj1d632.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/xrXHgsyT.js.br +0 -0
  125. package/build/client/_app/immutable/chunks/xrXHgsyT.js.gz +0 -0
  126. package/build/client/_app/immutable/entry/app.DiR5lG-C.js.br +0 -0
  127. package/build/client/_app/immutable/entry/app.DiR5lG-C.js.gz +0 -0
  128. package/build/client/_app/immutable/entry/start.sJFOizPO.js +0 -1
  129. package/build/client/_app/immutable/entry/start.sJFOizPO.js.br +0 -0
  130. package/build/client/_app/immutable/entry/start.sJFOizPO.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/0.CBWWfk93.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/0.CBWWfk93.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/1.CbLqskfK.js.br +0 -0
  134. package/build/client/_app/immutable/nodes/1.CbLqskfK.js.gz +0 -0
  135. package/build/client/_app/immutable/nodes/10.DTh6L1kK.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/10.DTh6L1kK.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/11.C6ycMb7s.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/12.B-chNSk2.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/12.B-chNSk2.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/13.C91iW4j9.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/13.C91iW4j9.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/14.D2RGyiFI.js.br +0 -0
  143. package/build/client/_app/immutable/nodes/14.D2RGyiFI.js.gz +0 -0
  144. package/build/client/_app/immutable/nodes/7.CV5qcnBR.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/7.CV5qcnBR.js.gz +0 -0
  146. package/build/client/_app/immutable/nodes/8.ktwY963d.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/8.ktwY963d.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/9.DW-Z2-S5.js.br +0 -0
  149. package/build/client/_app/immutable/nodes/9.DW-Z2-S5.js.gz +0 -0
  150. package/build/server/chunks/JsonEncoder-B8eJRYZ4.js.map +0 -1
  151. package/build/server/chunks/remote-xxtqbu-D0yn6nhQ.js.map +0 -1
@@ -10,26 +10,26 @@ return {
10
10
  assets: new Set(["robots.txt"]),
11
11
  mimeTypes: {".txt":"text/plain"},
12
12
  _: {
13
- client: {start:"_app/immutable/entry/start.sJFOizPO.js",app:"_app/immutable/entry/app.DiR5lG-C.js",imports:["_app/immutable/entry/start.sJFOizPO.js","_app/immutable/chunks/Bc4NoJ7i.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/Qfj1d632.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/entry/app.DiR5lG-C.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.BD32Z2Yy.js",app:"_app/immutable/entry/app.CobTjvr8.js",imports:["_app/immutable/entry/start.BD32Z2Yy.js","_app/immutable/chunks/BxKxqkS7.js","_app/immutable/chunks/C6nv_pni.js","_app/immutable/chunks/C1s4M21f.js","_app/immutable/chunks/y5L2Na-S.js","_app/immutable/entry/app.CobTjvr8.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-DtxTwvwx.js')),
16
- __memo(() => import('./chunks/1-kSh_upek.js')),
15
+ __memo(() => import('./chunks/0-CKG6FzOP.js')),
16
+ __memo(() => import('./chunks/1-BobnPu2T.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-BPZu14VX.js')),
23
- __memo(() => import('./chunks/8-BBNP-58z.js')),
24
- __memo(() => import('./chunks/9-o5qH70ZY.js')),
25
- __memo(() => import('./chunks/10-B3nIRDju.js')),
26
- __memo(() => import('./chunks/11-BanHdLw-.js')),
27
- __memo(() => import('./chunks/12-C-a1x8Ux.js')),
28
- __memo(() => import('./chunks/13-CrH87Ubk.js')),
29
- __memo(() => import('./chunks/14-BL43xMGs.js'))
22
+ __memo(() => import('./chunks/7-QcJoMaSg.js')),
23
+ __memo(() => import('./chunks/8-UCTaZB_Z.js')),
24
+ __memo(() => import('./chunks/9-C0szOSjZ.js')),
25
+ __memo(() => import('./chunks/10-DhUkYynY.js')),
26
+ __memo(() => import('./chunks/11-BNbY7gn2.js')),
27
+ __memo(() => import('./chunks/12-DBj8btwS.js')),
28
+ __memo(() => import('./chunks/13-EXQa77Y1.js')),
29
+ __memo(() => import('./chunks/14-DHzR9sir.js'))
30
30
  ],
31
31
  remotes: {
32
- 'xxtqbu': __memo(() => import('./chunks/remote-xxtqbu-D0yn6nhQ.js'))
32
+ 'xxtqbu': __memo(() => import('./chunks/remote-xxtqbu-DU1VUIfB.js'))
33
33
  },
34
34
  routes: [
35
35
  {
@@ -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.sJFOizPO.js\",app:\"_app/immutable/entry/app.DiR5lG-C.js\",imports:[\"_app/immutable/entry/start.sJFOizPO.js\",\"_app/immutable/chunks/Bc4NoJ7i.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/Qfj1d632.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/entry/app.DiR5lG-C.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: null\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,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,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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.BD32Z2Yy.js\",app:\"_app/immutable/entry/app.CobTjvr8.js\",imports:[\"_app/immutable/entry/start.BD32Z2Yy.js\",\"_app/immutable/chunks/BxKxqkS7.js\",\"_app/immutable/chunks/C6nv_pni.js\",\"_app/immutable/chunks/C1s4M21f.js\",\"_app/immutable/chunks/y5L2Na-S.js\",\"_app/immutable/entry/app.CobTjvr8.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: null\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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H,IAAI,EAAE,EAAE,0EAA0E;AAClF,IAAI,OAAO,EAAE,gFAAgF;AAC7F,IAAI,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACnN,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;AAC5D,IAAI,QAAQ,EAAE;AACd;AACA,GAAG;AACH,EAAE,kBAAkB,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACjC,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI;AACd,EAAE,CAAC;AACH,EAAE,aAAa,EAAE;AACjB;AACA;AACA,CAAC;;AAEW,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;AAEzB,MAAC,IAAI,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongoku",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "license": "MIT",
5
5
  "author": "Anthony Moi <m.anthony.moi@gmail.com>",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import { Binary, ObjectId } from "mongodb";
1
+ import { Binary, Decimal128, ObjectId } from "mongodb";
2
2
 
3
3
  export default class JsonEncoder {
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -32,6 +32,12 @@ export default class JsonEncoder {
32
32
  $subType: obj.sub_type,
33
33
  };
34
34
  }
35
+ if (obj instanceof Decimal128) {
36
+ return {
37
+ $type: "Decimal128",
38
+ $value: obj.toString(),
39
+ };
40
+ }
35
41
  if (Array.isArray(obj)) {
36
42
  return [...obj.map(JsonEncoder.encode)];
37
43
  }
@@ -58,6 +64,9 @@ export default class JsonEncoder {
58
64
  if (obj && obj.$type === "Binary") {
59
65
  return new Binary(Buffer.from(obj.$value, "base64"), obj.$subType);
60
66
  }
67
+ if (obj && obj.$type === "Decimal128") {
68
+ return Decimal128.fromString(obj.$value);
69
+ }
61
70
  if (Array.isArray(obj)) {
62
71
  return [...obj.map(JsonEncoder.decode)];
63
72
  }
@@ -0,0 +1,302 @@
1
+ import JsonEncoder from "$lib/server/JsonEncoder";
2
+ import { Binary, Decimal128, ObjectId } from "mongodb";
3
+ import { describe, expect, it } from "vitest";
4
+
5
+ describe("JsonEncoder", () => {
6
+ describe("encode", () => {
7
+ it("should encode ObjectId", () => {
8
+ const objectId = new ObjectId("507f1f77bcf86cd799439011");
9
+ const encoded = JsonEncoder.encode(objectId);
10
+
11
+ expect(encoded).toEqual({
12
+ $type: "ObjectId",
13
+ $value: "507f1f77bcf86cd799439011",
14
+ $date: objectId.getTimestamp().getTime(),
15
+ });
16
+ });
17
+
18
+ it("should encode Date", () => {
19
+ const date = new Date("2024-01-15T10:30:00.000Z");
20
+ const encoded = JsonEncoder.encode(date);
21
+
22
+ expect(encoded).toEqual({
23
+ $type: "Date",
24
+ $value: "2024-01-15T10:30:00.000Z",
25
+ });
26
+ });
27
+
28
+ it("should encode RegExp", () => {
29
+ const regex = /test/gi;
30
+ const encoded = JsonEncoder.encode(regex);
31
+
32
+ expect(encoded).toEqual({
33
+ $type: "RegExp",
34
+ $value: {
35
+ $pattern: "test",
36
+ $flags: "gi",
37
+ },
38
+ });
39
+ });
40
+
41
+ it("should encode Binary", () => {
42
+ const buffer = Buffer.from("hello world", "utf-8");
43
+ const binary = new Binary(buffer);
44
+ const encoded = JsonEncoder.encode(binary);
45
+
46
+ expect(encoded).toEqual({
47
+ $type: "Binary",
48
+ $value: buffer.toString("base64"),
49
+ $subType: binary.sub_type,
50
+ });
51
+ });
52
+
53
+ it("should encode Decimal128", () => {
54
+ const decimal = Decimal128.fromString("123.456");
55
+ const encoded = JsonEncoder.encode(decimal);
56
+
57
+ expect(encoded).toEqual({
58
+ $type: "Decimal128",
59
+ $value: "123.456",
60
+ });
61
+ });
62
+
63
+ it("should encode arrays", () => {
64
+ const arr = [new ObjectId("507f1f77bcf86cd799439011"), new Date("2024-01-15T10:30:00.000Z"), "string", 123];
65
+ const encoded = JsonEncoder.encode(arr);
66
+
67
+ expect(encoded).toHaveLength(4);
68
+ expect(encoded[0].$type).toBe("ObjectId");
69
+ expect(encoded[1].$type).toBe("Date");
70
+ expect(encoded[2]).toBe("string");
71
+ expect(encoded[3]).toBe(123);
72
+ });
73
+
74
+ it("should encode nested objects", () => {
75
+ const obj = {
76
+ _id: new ObjectId("507f1f77bcf86cd799439011"),
77
+ createdAt: new Date("2024-01-15T10:30:00.000Z"),
78
+ pattern: /test/i,
79
+ nested: {
80
+ value: Decimal128.fromString("99.99"),
81
+ },
82
+ };
83
+ const encoded = JsonEncoder.encode(obj);
84
+
85
+ expect(encoded._id.$type).toBe("ObjectId");
86
+ expect(encoded.createdAt.$type).toBe("Date");
87
+ expect(encoded.pattern.$type).toBe("RegExp");
88
+ expect(encoded.nested.value.$type).toBe("Decimal128");
89
+ });
90
+
91
+ it("should handle primitive values", () => {
92
+ expect(JsonEncoder.encode("string")).toBe("string");
93
+ expect(JsonEncoder.encode(123)).toBe(123);
94
+ expect(JsonEncoder.encode(true)).toBe(true);
95
+ expect(JsonEncoder.encode(null)).toBe(null);
96
+ expect(JsonEncoder.encode(undefined)).toBe(undefined);
97
+ });
98
+ });
99
+
100
+ describe("decode", () => {
101
+ it("should decode ObjectId", () => {
102
+ const encoded = {
103
+ $type: "ObjectId",
104
+ $value: "507f1f77bcf86cd799439011",
105
+ $date: 1357986930000,
106
+ };
107
+ const decoded = JsonEncoder.decode(encoded);
108
+
109
+ expect(decoded).toBeInstanceOf(ObjectId);
110
+ expect(decoded.toHexString()).toBe("507f1f77bcf86cd799439011");
111
+ });
112
+
113
+ it("should decode Date", () => {
114
+ const encoded = {
115
+ $type: "Date",
116
+ $value: "2024-01-15T10:30:00.000Z",
117
+ };
118
+ const decoded = JsonEncoder.decode(encoded);
119
+
120
+ expect(decoded).toBeInstanceOf(Date);
121
+ expect(decoded.toISOString()).toBe("2024-01-15T10:30:00.000Z");
122
+ });
123
+
124
+ it("should decode RegExp", () => {
125
+ const encoded = {
126
+ $type: "RegExp",
127
+ $value: {
128
+ $pattern: "test",
129
+ $flags: "gi",
130
+ },
131
+ };
132
+ const decoded = JsonEncoder.decode(encoded);
133
+
134
+ expect(decoded).toBeInstanceOf(RegExp);
135
+ expect(decoded.source).toBe("test");
136
+ expect(decoded.flags).toBe("gi");
137
+ });
138
+
139
+ it("should decode Binary", () => {
140
+ const originalBuffer = Buffer.from("hello world", "utf-8");
141
+ const encoded = {
142
+ $type: "Binary",
143
+ $value: originalBuffer.toString("base64"),
144
+ $subType: 0,
145
+ };
146
+ const decoded = JsonEncoder.decode(encoded);
147
+
148
+ expect(decoded).toBeInstanceOf(Binary);
149
+ expect(Buffer.from(decoded.buffer).toString("utf-8")).toBe("hello world");
150
+ expect(decoded.sub_type).toBe(0);
151
+ });
152
+
153
+ it("should decode Decimal128", () => {
154
+ const encoded = {
155
+ $type: "Decimal128",
156
+ $value: "123.456",
157
+ };
158
+ const decoded = JsonEncoder.decode(encoded);
159
+
160
+ expect(decoded).toBeInstanceOf(Decimal128);
161
+ expect(decoded.toString()).toBe("123.456");
162
+ });
163
+
164
+ it("should decode arrays", () => {
165
+ const encoded = [
166
+ {
167
+ $type: "ObjectId",
168
+ $value: "507f1f77bcf86cd799439011",
169
+ $date: 1357986930000,
170
+ },
171
+ {
172
+ $type: "Date",
173
+ $value: "2024-01-15T10:30:00.000Z",
174
+ },
175
+ "string",
176
+ 123,
177
+ ];
178
+ const decoded = JsonEncoder.decode(encoded);
179
+
180
+ expect(decoded).toHaveLength(4);
181
+ expect(decoded[0]).toBeInstanceOf(ObjectId);
182
+ expect(decoded[1]).toBeInstanceOf(Date);
183
+ expect(decoded[2]).toBe("string");
184
+ expect(decoded[3]).toBe(123);
185
+ });
186
+
187
+ it("should decode nested objects", () => {
188
+ const encoded = {
189
+ _id: {
190
+ $type: "ObjectId",
191
+ $value: "507f1f77bcf86cd799439011",
192
+ $date: 1357986930000,
193
+ },
194
+ createdAt: {
195
+ $type: "Date",
196
+ $value: "2024-01-15T10:30:00.000Z",
197
+ },
198
+ nested: {
199
+ value: {
200
+ $type: "Decimal128",
201
+ $value: "99.99",
202
+ },
203
+ },
204
+ };
205
+ const decoded = JsonEncoder.decode(encoded);
206
+
207
+ expect(decoded._id).toBeInstanceOf(ObjectId);
208
+ expect(decoded.createdAt).toBeInstanceOf(Date);
209
+ expect(decoded.nested.value).toBeInstanceOf(Decimal128);
210
+ });
211
+
212
+ it("should handle primitive values", () => {
213
+ expect(JsonEncoder.decode("string")).toBe("string");
214
+ expect(JsonEncoder.decode(123)).toBe(123);
215
+ expect(JsonEncoder.decode(true)).toBe(true);
216
+ expect(JsonEncoder.decode(null)).toBe(null);
217
+ expect(JsonEncoder.decode(undefined)).toBe(undefined);
218
+ });
219
+ });
220
+
221
+ describe("round-trip encoding and decoding", () => {
222
+ it("should correctly round-trip ObjectId", () => {
223
+ const original = new ObjectId("507f1f77bcf86cd799439011");
224
+ const roundTrip = JsonEncoder.decode(JsonEncoder.encode(original));
225
+
226
+ expect(roundTrip).toBeInstanceOf(ObjectId);
227
+ expect(roundTrip.toHexString()).toBe(original.toHexString());
228
+ });
229
+
230
+ it("should correctly round-trip Date", () => {
231
+ const original = new Date("2024-01-15T10:30:00.000Z");
232
+ const roundTrip = JsonEncoder.decode(JsonEncoder.encode(original));
233
+
234
+ expect(roundTrip).toBeInstanceOf(Date);
235
+ expect(roundTrip.getTime()).toBe(original.getTime());
236
+ });
237
+
238
+ it("should correctly round-trip RegExp", () => {
239
+ const original = /test/gi;
240
+ const roundTrip = JsonEncoder.decode(JsonEncoder.encode(original));
241
+
242
+ expect(roundTrip).toBeInstanceOf(RegExp);
243
+ expect(roundTrip.source).toBe(original.source);
244
+ expect(roundTrip.flags).toBe(original.flags);
245
+ });
246
+
247
+ it("should correctly round-trip Binary", () => {
248
+ const buffer = Buffer.from("hello world", "utf-8");
249
+ const original = new Binary(buffer);
250
+ const roundTrip = JsonEncoder.decode(JsonEncoder.encode(original));
251
+
252
+ expect(roundTrip).toBeInstanceOf(Binary);
253
+ expect(Buffer.from(roundTrip.buffer).toString("utf-8")).toBe("hello world");
254
+ });
255
+
256
+ it("should correctly round-trip Decimal128", () => {
257
+ const original = Decimal128.fromString("123.456");
258
+ const roundTrip = JsonEncoder.decode(JsonEncoder.encode(original));
259
+
260
+ expect(roundTrip).toBeInstanceOf(Decimal128);
261
+ expect(roundTrip.toString()).toBe(original.toString());
262
+ });
263
+
264
+ it("should correctly round-trip complex nested structure", () => {
265
+ const original = {
266
+ _id: new ObjectId("507f1f77bcf86cd799439011"),
267
+ name: "Test User",
268
+ age: 30,
269
+ isActive: true,
270
+ createdAt: new Date("2024-01-15T10:30:00.000Z"),
271
+ pattern: /email@test\.com/i,
272
+ balance: Decimal128.fromString("1234.56"),
273
+ data: new Binary(Buffer.from("binary data")),
274
+ tags: ["tag1", "tag2"],
275
+ metadata: {
276
+ nested: {
277
+ value: new ObjectId("507f191e810c19729de860ea"),
278
+ },
279
+ },
280
+ };
281
+
282
+ const encoded = JsonEncoder.encode(original);
283
+ const decoded = JsonEncoder.decode(encoded);
284
+
285
+ expect(decoded._id).toBeInstanceOf(ObjectId);
286
+ expect(decoded._id.toHexString()).toBe("507f1f77bcf86cd799439011");
287
+ expect(decoded.name).toBe("Test User");
288
+ expect(decoded.age).toBe(30);
289
+ expect(decoded.isActive).toBe(true);
290
+ expect(decoded.createdAt).toBeInstanceOf(Date);
291
+ expect(decoded.createdAt.getTime()).toBe(original.createdAt.getTime());
292
+ expect(decoded.pattern).toBeInstanceOf(RegExp);
293
+ expect(decoded.pattern.source).toBe(original.pattern.source);
294
+ expect(decoded.balance).toBeInstanceOf(Decimal128);
295
+ expect(decoded.balance.toString()).toBe("1234.56");
296
+ expect(decoded.data).toBeInstanceOf(Binary);
297
+ expect(decoded.tags).toEqual(["tag1", "tag2"]);
298
+ expect(decoded.metadata.nested.value).toBeInstanceOf(ObjectId);
299
+ expect(decoded.metadata.nested.value.toHexString()).toBe("507f191e810c19729de860ea");
300
+ });
301
+ });
302
+ });
@@ -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 Dt,u as Ue,x as H,y as xt,z as Bt,A as rt,B as Mt,C as Ft,D as at,E as nt}from"./Qfj1d632.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,De=-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===De)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 De;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?De.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"]),x=ot(nt)??{},z=ot(rt)??{},D={url:Ye({}),page:Ye({}),navigating:Ct(null),updated:Ut()};function ye(e){x[e]=M()}function pt(e,t){let r=e+1;for(;x[r];)delete x[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 xe,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_127kk9c?.data&&(_t=globalThis.__sveltekit_127kk9c.data),document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),xe=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=x[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,x),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:D,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:x[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=Dt(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 D.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 xe){const o=n.exec(a);if(o)return{id:pe(e),invalidating:t,route:n,params:$t(o),url:e}}}}function mr(e){return xt(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"&&D.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 D.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)),D.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=x[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),x[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&&D.navigating.set(Ae.current=null)});function e(t){g.url=O.url=t,D.page.set(te(O)),D.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=xe.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,D 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"&&b.delete(k(e)),V(e,t));const b=new Map;function ae(e,t){const r=k(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&&b.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(b.size>0){const n=k(e,r),s=b.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);b.delete(n)}}return window.fetch(t,r)}function k(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),[,_,m,N,L]=u;return t.push({name:N,matcher:L,optional:!!_,rest:!!m,chained:m?c===1&&o[0]==="":!1}),m?"([^]*?)":_?"([^/]*)?":"([^/]+?)"}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_127kk9c?.base??"",D=globalThis.__sveltekit_127kk9c?.assets??B??"",ue="_app",H="1775304167464",fe="sveltekit:snapshot",de="sveltekit:scroll",he="sveltekit:states",pe="sveltekit:pageurl",ge="sveltekit:history",_e="sveltekit:navigation",x={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},U=location.origin;function be(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 me(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const A={...x,"":x.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:A[n??"off"],preload_data:A[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 ke(){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,ke as f,be 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,me as s,Q as t,U as u,H as v,E as w,x,Z as y,re as z};
@@ -1 +0,0 @@
1
- import{h as s}from"../chunks/Bc4NoJ7i.js";import{F as t}from"../chunks/Qfj1d632.js";export{t as load_css,s as start};