mongoku 2.9.2-compat → 2.10.0-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 (458) hide show
  1. package/build/client/_app/immutable/assets/0.D8aXA7G5.css +1 -0
  2. package/build/client/_app/immutable/assets/0.D8aXA7G5.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.D8aXA7G5.css.gz +0 -0
  4. package/build/client/_app/immutable/assets/10.-WSj0hXT.css +1 -0
  5. package/build/client/_app/immutable/assets/10.-WSj0hXT.css.br +1 -0
  6. package/build/client/_app/immutable/assets/10.-WSj0hXT.css.gz +0 -0
  7. package/build/client/_app/immutable/assets/16.BpmHh9U0.css +1 -0
  8. package/build/client/_app/immutable/assets/16.BpmHh9U0.css.br +0 -0
  9. package/build/client/_app/immutable/assets/16.BpmHh9U0.css.gz +0 -0
  10. package/build/client/_app/immutable/chunks/-8z-rXzu.js +1 -0
  11. package/build/client/_app/immutable/chunks/-8z-rXzu.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/-8z-rXzu.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/ADrS3reX.js +1 -0
  14. package/build/client/_app/immutable/chunks/ADrS3reX.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/ADrS3reX.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/B3A9hx44.js +1 -0
  17. package/build/client/_app/immutable/chunks/B3A9hx44.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/B3A9hx44.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/B48saTbS.js +1 -0
  20. package/build/client/_app/immutable/chunks/B48saTbS.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/B48saTbS.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{4lfD4F6g.js → BoF-bMzh.js} +2 -2
  23. package/build/client/_app/immutable/chunks/BoF-bMzh.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BoF-bMzh.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/C5BvtFsa.js +1 -0
  26. package/build/client/_app/immutable/chunks/C5BvtFsa.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/C5BvtFsa.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/C5dXZyme.js +1 -0
  29. package/build/client/_app/immutable/chunks/C5dXZyme.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/C5dXZyme.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/CUBPtF8t.js +65 -0
  32. package/build/client/_app/immutable/chunks/CUBPtF8t.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CUBPtF8t.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{9xpgPu5N.js → Cf6RCjfg.js} +1 -1
  35. package/build/client/_app/immutable/chunks/Cf6RCjfg.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/Cf6RCjfg.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/CrLGr586.js +2 -0
  38. package/build/client/_app/immutable/chunks/CrLGr586.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CrLGr586.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/CsbWzWJI.js +1 -0
  41. package/build/client/_app/immutable/chunks/CsbWzWJI.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CsbWzWJI.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/CyTV7fHl.js +1 -0
  44. package/build/client/_app/immutable/chunks/CyTV7fHl.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/CyTV7fHl.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{BpBdSxit.js → D3UCTJm-.js} +2 -2
  47. package/build/client/_app/immutable/chunks/D3UCTJm-.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/D3UCTJm-.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{BR2A-pfb.js → DH7nqg5-.js} +1 -1
  50. package/build/client/_app/immutable/chunks/DH7nqg5-.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DH7nqg5-.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/DKMyRjux.js +1 -0
  53. package/build/client/_app/immutable/chunks/DKMyRjux.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/DKMyRjux.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DO0gnjpd.js +1 -0
  56. package/build/client/_app/immutable/chunks/DO0gnjpd.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DO0gnjpd.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DVIi8uNn.js +1 -0
  59. package/build/client/_app/immutable/chunks/DVIi8uNn.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DVIi8uNn.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/Dc47-4iR.js +1 -0
  62. package/build/client/_app/immutable/chunks/Dc47-4iR.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/Dc47-4iR.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/{Brvll8rV.js → Dcgd1m6P.js} +1 -1
  65. package/build/client/_app/immutable/chunks/Dcgd1m6P.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/Dcgd1m6P.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/Ddz9xOa-.js +1 -0
  68. package/build/client/_app/immutable/chunks/Ddz9xOa-.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/Ddz9xOa-.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/{IwGwbOe7.js → DfW1b8bA.js} +1 -1
  71. package/build/client/_app/immutable/chunks/DfW1b8bA.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/{IwGwbOe7.js.gz → DfW1b8bA.js.gz} +0 -0
  73. package/build/client/_app/immutable/chunks/Dfjkeakv.js +1 -0
  74. package/build/client/_app/immutable/chunks/Dfjkeakv.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/Dfjkeakv.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/{ChWGK2Ce.js → DgwByHCB.js} +1 -1
  77. package/build/client/_app/immutable/chunks/DgwByHCB.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/DgwByHCB.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/{HPNCC8XI.js → DlVaABeK.js} +3 -3
  80. package/build/client/_app/immutable/chunks/DlVaABeK.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/DlVaABeK.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/DupjJGFi.js +1 -0
  83. package/build/client/_app/immutable/chunks/DupjJGFi.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/DupjJGFi.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/DymqlScG.js +1 -0
  86. package/build/client/_app/immutable/chunks/DymqlScG.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/DymqlScG.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/{Z7BFksgg.js → J9ZSs_8c.js} +1 -1
  89. package/build/client/_app/immutable/chunks/J9ZSs_8c.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/J9ZSs_8c.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/{CKvueigk.js → OvZJ6gNJ.js} +1 -1
  92. package/build/client/_app/immutable/chunks/OvZJ6gNJ.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/OvZJ6gNJ.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/URA3nPWG.js +1 -0
  95. package/build/client/_app/immutable/chunks/URA3nPWG.js.br +0 -0
  96. package/build/client/_app/immutable/chunks/URA3nPWG.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/bZzTqofF.js +1 -0
  98. package/build/client/_app/immutable/chunks/bZzTqofF.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/bZzTqofF.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/oSuzXE6i.js +1 -0
  101. package/build/client/_app/immutable/chunks/oSuzXE6i.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/oSuzXE6i.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/wZh6TcLb.js +2 -0
  104. package/build/client/_app/immutable/chunks/wZh6TcLb.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/wZh6TcLb.js.gz +0 -0
  106. package/build/client/_app/immutable/entry/app.G0Hwsu0f.js +2 -0
  107. package/build/client/_app/immutable/entry/app.G0Hwsu0f.js.br +0 -0
  108. package/build/client/_app/immutable/entry/app.G0Hwsu0f.js.gz +0 -0
  109. package/build/client/_app/immutable/entry/start.pOs5gHaO.js +1 -0
  110. package/build/client/_app/immutable/entry/start.pOs5gHaO.js.br +0 -0
  111. package/build/client/_app/immutable/entry/start.pOs5gHaO.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/0.BPw_KPrY.js +1 -0
  113. package/build/client/_app/immutable/nodes/0.BPw_KPrY.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/0.BPw_KPrY.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/1.eWL7yJRK.js +1 -0
  116. package/build/client/_app/immutable/nodes/1.eWL7yJRK.js.br +4 -0
  117. package/build/client/_app/immutable/nodes/1.eWL7yJRK.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/10.AwBSgK4-.js +2 -0
  119. package/build/client/_app/immutable/nodes/10.AwBSgK4-.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/10.AwBSgK4-.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/11.DS8hIvI2.js +6 -0
  122. package/build/client/_app/immutable/nodes/11.DS8hIvI2.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/11.DS8hIvI2.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{12.c15Q05Ym.js → 12.DP-oGzlU.js} +1 -1
  125. package/build/client/_app/immutable/nodes/12.DP-oGzlU.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/12.DP-oGzlU.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/13.DCNBPtGq.js +1 -0
  128. package/build/client/_app/immutable/nodes/13.DCNBPtGq.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/13.DCNBPtGq.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/14.B3qXj1Pz.js +65 -0
  131. package/build/client/_app/immutable/nodes/14.B3qXj1Pz.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/14.B3qXj1Pz.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/15.DFTrPy3K.js +1 -0
  134. package/build/client/_app/immutable/nodes/15.DFTrPy3K.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/15.DFTrPy3K.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/16.wrfG8awE.js +1 -0
  137. package/build/client/_app/immutable/nodes/16.wrfG8awE.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/16.wrfG8awE.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{2.Bai-TIgH.js → 2.6jE8uEJq.js} +1 -1
  140. package/build/client/_app/immutable/nodes/2.6jE8uEJq.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/2.6jE8uEJq.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{3.ev9oAmrG.js → 3.C59rlT3p.js} +1 -1
  143. package/build/client/_app/immutable/nodes/3.C59rlT3p.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/3.C59rlT3p.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/4.DbZo8waJ.js +1 -0
  146. package/build/client/_app/immutable/nodes/4.DbZo8waJ.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/4.DbZo8waJ.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/{5.CyK0fI1l.js → 5.Cu8LcB5H.js} +1 -1
  149. package/build/client/_app/immutable/nodes/5.Cu8LcB5H.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/5.Cu8LcB5H.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/7.BSMf3Keu.js +1 -0
  152. package/build/client/_app/immutable/nodes/7.BSMf3Keu.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/7.BSMf3Keu.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/8.CmQOYs57.js +2 -0
  155. package/build/client/_app/immutable/nodes/8.CmQOYs57.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/8.CmQOYs57.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/9.6ZB3-a4j.js +1 -0
  158. package/build/client/_app/immutable/nodes/9.6ZB3-a4j.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/9.6ZB3-a4j.js.gz +0 -0
  160. package/build/client/_app/version.json +1 -1
  161. package/build/client/_app/version.json.br +0 -0
  162. package/build/client/_app/version.json.gz +0 -0
  163. package/build/server/chunks/0-2tDL-Z_M.js +32 -0
  164. package/build/server/chunks/0-2tDL-Z_M.js.map +1 -0
  165. package/build/server/chunks/1-L1YRtIEr.js +9 -0
  166. package/build/server/chunks/{1-BYh6KkYd.js.map → 1-L1YRtIEr.js.map} +1 -1
  167. package/build/server/chunks/10-kSTe-NQK.js +43 -0
  168. package/build/server/chunks/10-kSTe-NQK.js.map +1 -0
  169. package/build/server/chunks/{11-DMGywj2z.js → 11-BSFyIooa.js} +5 -24
  170. package/build/server/chunks/11-BSFyIooa.js.map +1 -0
  171. package/build/server/chunks/{12-9nIP5JYI.js → 12-DhN9fz9p.js} +4 -5
  172. package/build/server/chunks/12-DhN9fz9p.js.map +1 -0
  173. package/build/server/chunks/{13-Cf1e9tDx.js → 13-B1mdDktE.js} +5 -24
  174. package/build/server/chunks/13-B1mdDktE.js.map +1 -0
  175. package/build/server/chunks/14-G2fvhIG4.js +38 -0
  176. package/build/server/chunks/14-G2fvhIG4.js.map +1 -0
  177. package/build/server/chunks/15-BxHbA5Ao.js +48 -0
  178. package/build/server/chunks/15-BxHbA5Ao.js.map +1 -0
  179. package/build/server/chunks/16-D0Gv3LNT.js +46 -0
  180. package/build/server/chunks/16-D0Gv3LNT.js.map +1 -0
  181. package/build/server/chunks/{2-ckJpvP-Z.js → 2-DGpX4fMQ.js} +2 -2
  182. package/build/server/chunks/{2-ckJpvP-Z.js.map → 2-DGpX4fMQ.js.map} +1 -1
  183. package/build/server/chunks/{3-TPjZ0P0_.js → 3-CwHfLh5P.js} +2 -2
  184. package/build/server/chunks/{3-TPjZ0P0_.js.map → 3-CwHfLh5P.js.map} +1 -1
  185. package/build/server/chunks/{4-DoW1zEiI.js → 4-B5F5-cxe.js} +10 -2
  186. package/build/server/chunks/4-B5F5-cxe.js.map +1 -0
  187. package/build/server/chunks/{5-cZ6VD-C-.js → 5-CxqBB_6c.js} +2 -2
  188. package/build/server/chunks/{5-cZ6VD-C-.js.map → 5-CxqBB_6c.js.map} +1 -1
  189. package/build/server/chunks/{6-eXO6RVDu.js → 6-Qus887OP.js} +3 -2
  190. package/build/server/chunks/{6-eXO6RVDu.js.map → 6-Qus887OP.js.map} +1 -1
  191. package/build/server/chunks/{7-Bgk2JW9z.js → 7-BNgFbh-a.js} +6 -5
  192. package/build/server/chunks/{7-Bgk2JW9z.js.map → 7-BNgFbh-a.js.map} +1 -1
  193. package/build/server/chunks/{8-D1BdB5RY.js → 8-DOgOgmwJ.js} +4 -5
  194. package/build/server/chunks/8-DOgOgmwJ.js.map +1 -0
  195. package/build/server/chunks/{9-DrFrZ-qH.js → 9-D-PO69az.js} +4 -5
  196. package/build/server/chunks/9-D-PO69az.js.map +1 -0
  197. package/build/server/chunks/IconChevronDown-D8V4kB6o.js +10 -0
  198. package/build/server/chunks/IconChevronDown-D8V4kB6o.js.map +1 -0
  199. package/build/server/chunks/{JsonValue-CGVfzyTL.js → JsonValue-B-iqFShN.js} +4 -3
  200. package/build/server/chunks/JsonValue-B-iqFShN.js.map +1 -0
  201. package/build/server/chunks/{Modal-D2E5OLRi.js → Modal-D10te4nR.js} +2 -2
  202. package/build/server/chunks/Modal-D10te4nR.js.map +1 -0
  203. package/build/server/chunks/{Panel-C6VWd6JD.js → Panel-CBztHh2Y.js} +2 -2
  204. package/build/server/chunks/Panel-CBztHh2Y.js.map +1 -0
  205. package/build/server/chunks/{PrettyJson-Bo4UtQ1o.js → PrettyJson-Dz5fCjPq.js} +6 -6
  206. package/build/server/chunks/PrettyJson-Dz5fCjPq.js.map +1 -0
  207. package/build/server/chunks/{Tooltip-OVylvwfb.js → Tooltip-BHX9gIpe.js} +2 -2
  208. package/build/server/chunks/Tooltip-BHX9gIpe.js.map +1 -0
  209. package/build/server/chunks/{TooltipTable-CLglfpck.js → TooltipTable-BIwNd3UB.js} +3 -3
  210. package/build/server/chunks/TooltipTable-BIwNd3UB.js.map +1 -0
  211. package/build/server/chunks/{_layout.svelte-CLPxHDiP.js → _layout.svelte-BX5H_goi.js} +38 -15
  212. package/build/server/chunks/_layout.svelte-BX5H_goi.js.map +1 -0
  213. package/build/server/chunks/{_page.svelte-zD7qndty.js → _page.svelte-Bh6uDLz6.js} +15 -15
  214. package/build/server/chunks/_page.svelte-Bh6uDLz6.js.map +1 -0
  215. package/build/server/chunks/_page.svelte-CHqJAnyH.js +258 -0
  216. package/build/server/chunks/_page.svelte-CHqJAnyH.js.map +1 -0
  217. package/build/server/chunks/{_page.svelte-CPcgVZQj.js → _page.svelte-CsCyoCpn.js} +15 -15
  218. package/build/server/chunks/_page.svelte-CsCyoCpn.js.map +1 -0
  219. package/build/server/chunks/{_page.svelte-CAAPpbun.js → _page.svelte-Cwyc6wIg.js} +14 -14
  220. package/build/server/chunks/_page.svelte-Cwyc6wIg.js.map +1 -0
  221. package/build/server/chunks/{_page.svelte-e5wWk327.js → _page.svelte-DE0XWW__.js} +12 -12
  222. package/build/server/chunks/_page.svelte-DE0XWW__.js.map +1 -0
  223. package/build/server/chunks/{_page.svelte-DVjTn-ck.js → _page.svelte-DIe5tQ3z.js} +14 -14
  224. package/build/server/chunks/_page.svelte-DIe5tQ3z.js.map +1 -0
  225. package/build/server/chunks/{_page.svelte-C3QVwl-z.js → _page.svelte-DT0U0FvS.js} +5 -4
  226. package/build/server/chunks/_page.svelte-DT0U0FvS.js.map +1 -0
  227. package/build/server/chunks/{_page.svelte-C_GX0K8M.js → _page.svelte-YOsljIow.js} +19 -22
  228. package/build/server/chunks/_page.svelte-YOsljIow.js.map +1 -0
  229. package/build/server/chunks/{_page.svelte-BeiSosXN.js → _page.svelte-aEFurJZ0.js} +55 -15
  230. package/build/server/chunks/_page.svelte-aEFurJZ0.js.map +1 -0
  231. package/build/server/chunks/{_page.svelte-CkZUu9Wh.js → _page.svelte-vWYc1vOs.js} +9 -9
  232. package/build/server/chunks/_page.svelte-vWYc1vOs.js.map +1 -0
  233. package/build/server/chunks/{_server.ts-i-glbZtX.js → _server.ts-BTmpua-U.js} +4 -3
  234. package/build/server/chunks/{_server.ts-i-glbZtX.js.map → _server.ts-BTmpua-U.js.map} +1 -1
  235. package/build/server/chunks/{_server.ts-CEBmCzTO.js → _server.ts-BhWrvCAV.js} +4 -3
  236. package/build/server/chunks/{_server.ts-CEBmCzTO.js.map → _server.ts-BhWrvCAV.js.map} +1 -1
  237. package/build/server/chunks/{_server.ts-CoUHVeKI.js → _server.ts-CUj-HfCf.js} +4 -3
  238. package/build/server/chunks/{_server.ts-CoUHVeKI.js.map → _server.ts-CUj-HfCf.js.map} +1 -1
  239. package/build/server/chunks/client-DrDUOhf5.js +7 -0
  240. package/build/server/chunks/{client-COtw9Xqw.js.map → client-DrDUOhf5.js.map} +1 -1
  241. package/build/server/chunks/{client2-BIa3wTXU.js → client2-Birk_77A.js} +4 -4
  242. package/build/server/chunks/{client2-BIa3wTXU.js.map → client2-Birk_77A.js.map} +1 -1
  243. package/build/server/chunks/error.svelte-DisWvlhZ.js +19 -0
  244. package/build/server/chunks/error.svelte-DisWvlhZ.js.map +1 -0
  245. package/build/server/chunks/{filters-B3U8Nh9P.js → filters-BTgp9cdC.js} +4 -7
  246. package/build/server/chunks/filters-BTgp9cdC.js.map +1 -0
  247. package/build/server/chunks/{hooks.server-BiUSRqj1.js → hooks.server-Cc7EKf-Z.js} +4 -3
  248. package/build/server/chunks/{hooks.server-BiUSRqj1.js.map → hooks.server-Cc7EKf-Z.js.map} +1 -1
  249. package/build/server/chunks/{index-CtYzvcG6.js → index-CDf-jMhD.js} +3 -2
  250. package/build/server/chunks/index-CDf-jMhD.js.map +1 -0
  251. package/build/server/chunks/{index2-B0RgZaJY.js → index2-DNcGQp0K.js} +3 -3
  252. package/build/server/chunks/index2-DNcGQp0K.js.map +1 -0
  253. package/build/server/chunks/{mongo-B92d7zNj.js → mongo-Du0OjH5b.js} +257 -24
  254. package/build/server/chunks/mongo-Du0OjH5b.js.map +1 -0
  255. package/build/server/chunks/{oauth-D6jTWKFd.js → oauth-CyIuK65I.js} +2 -2
  256. package/build/server/chunks/{oauth-D6jTWKFd.js.map → oauth-CyIuK65I.js.map} +1 -1
  257. package/build/server/chunks/{remote-xxtqbu-CDChJkWc.js → remote-xxtqbu-BCjbN3T4.js} +6 -6
  258. package/build/server/chunks/remote-xxtqbu-BCjbN3T4.js.map +1 -0
  259. package/build/server/chunks/renderer-wJWkLEmh.js +1844 -0
  260. package/build/server/chunks/renderer-wJWkLEmh.js.map +1 -0
  261. package/build/server/chunks/{root-otUAnOAR.js → root-Bs42DBih.js} +12 -1849
  262. package/build/server/chunks/root-Bs42DBih.js.map +1 -0
  263. package/build/server/chunks/{routing-EDfUNu8L.js → routing-CJRzZHIr.js} +2 -2
  264. package/build/server/chunks/{routing-EDfUNu8L.js.map → routing-CJRzZHIr.js.map} +1 -1
  265. package/build/server/chunks/{server2-D_y4YbpC.js → server2-B0ZXRoOj.js} +3 -3
  266. package/build/server/chunks/{server2-D_y4YbpC.js.map → server2-B0ZXRoOj.js.map} +1 -1
  267. package/build/server/chunks/{servers.remote-CGenkEHX.js → servers.remote-Bise-7j4.js} +5 -14
  268. package/build/server/chunks/servers.remote-Bise-7j4.js.map +1 -0
  269. package/build/server/chunks/shardKey-BnXqfB_r.js +11 -0
  270. package/build/server/chunks/shardKey-BnXqfB_r.js.map +1 -0
  271. package/build/server/chunks/{shared-DlqhoNLb.js → shared-BJTImRjE.js} +3 -2
  272. package/build/server/chunks/{shared-DlqhoNLb.js.map → shared-BJTImRjE.js.map} +1 -1
  273. package/build/server/chunks/{state.svelte-Bj5yxNNk.js → state.svelte-YUn1p3EK.js} +3 -2
  274. package/build/server/chunks/{state.svelte-Bj5yxNNk.js.map → state.svelte-YUn1p3EK.js.map} +1 -1
  275. package/build/server/index.js +7 -6
  276. package/build/server/index.js.map +1 -1
  277. package/build/server/manifest.js +29 -21
  278. package/build/server/manifest.js.map +1 -1
  279. package/package.json +1 -1
  280. package/src/api/servers.remote.ts +3 -12
  281. package/src/lib/collectionCategories.ts +25 -0
  282. package/src/lib/components/PageSwitcher.svelte +74 -6
  283. package/src/lib/components/ShardBadge.svelte +65 -0
  284. package/src/lib/server/connectionString.ts +50 -0
  285. package/src/lib/server/mongo.ts +208 -37
  286. package/src/lib/types.ts +34 -0
  287. package/src/lib/utils/filters.ts +5 -7
  288. package/src/lib/utils/mongoUri.ts +164 -0
  289. package/src/lib/utils/shardKey.ts +16 -0
  290. package/src/routes/servers/+page.svelte +1 -1
  291. package/src/routes/servers/[server]/databases/[database]/collections/+page.server.ts +5 -0
  292. package/src/routes/servers/[server]/databases/[database]/collections/+page.svelte +47 -9
  293. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/+layout.ts +3 -0
  294. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/sharding/+page.server.ts +26 -0
  295. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/sharding/+page.svelte +319 -0
  296. package/src/tests/server/connectionString.test.ts +108 -0
  297. package/build/client/_app/immutable/assets/0.DTh4C4pw.css +0 -1
  298. package/build/client/_app/immutable/assets/0.DTh4C4pw.css.br +0 -0
  299. package/build/client/_app/immutable/assets/0.DTh4C4pw.css.gz +0 -0
  300. package/build/client/_app/immutable/chunks/4lfD4F6g.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/4lfD4F6g.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/8tf5Lvl3.js +0 -1
  303. package/build/client/_app/immutable/chunks/8tf5Lvl3.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/8tf5Lvl3.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/951V-MIZ.js +0 -1
  306. package/build/client/_app/immutable/chunks/951V-MIZ.js.br +0 -0
  307. package/build/client/_app/immutable/chunks/951V-MIZ.js.gz +0 -0
  308. package/build/client/_app/immutable/chunks/9xpgPu5N.js.br +0 -0
  309. package/build/client/_app/immutable/chunks/9xpgPu5N.js.gz +0 -0
  310. package/build/client/_app/immutable/chunks/BDGd1aqF.js +0 -2
  311. package/build/client/_app/immutable/chunks/BDGd1aqF.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/BDGd1aqF.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/BN_N9-2s.js +0 -1
  314. package/build/client/_app/immutable/chunks/BN_N9-2s.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/BN_N9-2s.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/BR2A-pfb.js.br +0 -0
  317. package/build/client/_app/immutable/chunks/BR2A-pfb.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/BUO1EOQu.js +0 -1
  319. package/build/client/_app/immutable/chunks/BUO1EOQu.js.br +0 -0
  320. package/build/client/_app/immutable/chunks/BUO1EOQu.js.gz +0 -0
  321. package/build/client/_app/immutable/chunks/BiVfO0yo.js +0 -1
  322. package/build/client/_app/immutable/chunks/BiVfO0yo.js.br +0 -0
  323. package/build/client/_app/immutable/chunks/BiVfO0yo.js.gz +0 -0
  324. package/build/client/_app/immutable/chunks/BpBdSxit.js.br +0 -0
  325. package/build/client/_app/immutable/chunks/BpBdSxit.js.gz +0 -0
  326. package/build/client/_app/immutable/chunks/Brvll8rV.js.br +0 -0
  327. package/build/client/_app/immutable/chunks/Brvll8rV.js.gz +0 -0
  328. package/build/client/_app/immutable/chunks/C6P2UOyZ.js +0 -1
  329. package/build/client/_app/immutable/chunks/C6P2UOyZ.js.br +0 -0
  330. package/build/client/_app/immutable/chunks/C6P2UOyZ.js.gz +0 -0
  331. package/build/client/_app/immutable/chunks/CCOVnadf.js +0 -1
  332. package/build/client/_app/immutable/chunks/CCOVnadf.js.br +0 -0
  333. package/build/client/_app/immutable/chunks/CCOVnadf.js.gz +0 -0
  334. package/build/client/_app/immutable/chunks/CKvueigk.js.br +0 -0
  335. package/build/client/_app/immutable/chunks/CKvueigk.js.gz +0 -0
  336. package/build/client/_app/immutable/chunks/CQE8d3kg.js +0 -1
  337. package/build/client/_app/immutable/chunks/CQE8d3kg.js.br +0 -0
  338. package/build/client/_app/immutable/chunks/CQE8d3kg.js.gz +0 -0
  339. package/build/client/_app/immutable/chunks/ChWGK2Ce.js.br +0 -0
  340. package/build/client/_app/immutable/chunks/ChWGK2Ce.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/CkMoyTwc.js +0 -1
  342. package/build/client/_app/immutable/chunks/CkMoyTwc.js.br +0 -0
  343. package/build/client/_app/immutable/chunks/CkMoyTwc.js.gz +0 -0
  344. package/build/client/_app/immutable/chunks/DFXj4NOH.js +0 -1
  345. package/build/client/_app/immutable/chunks/DFXj4NOH.js.br +0 -0
  346. package/build/client/_app/immutable/chunks/DFXj4NOH.js.gz +0 -0
  347. package/build/client/_app/immutable/chunks/DaMh_eeB.js +0 -1
  348. package/build/client/_app/immutable/chunks/DaMh_eeB.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/DaMh_eeB.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/DquSH6NB.js +0 -1
  351. package/build/client/_app/immutable/chunks/DquSH6NB.js.br +0 -0
  352. package/build/client/_app/immutable/chunks/DquSH6NB.js.gz +0 -0
  353. package/build/client/_app/immutable/chunks/DqxUmOYD.js +0 -66
  354. package/build/client/_app/immutable/chunks/DqxUmOYD.js.br +0 -0
  355. package/build/client/_app/immutable/chunks/DqxUmOYD.js.gz +0 -0
  356. package/build/client/_app/immutable/chunks/DrjoisE9.js +0 -1
  357. package/build/client/_app/immutable/chunks/DrjoisE9.js.br +0 -0
  358. package/build/client/_app/immutable/chunks/DrjoisE9.js.gz +0 -0
  359. package/build/client/_app/immutable/chunks/HPNCC8XI.js.br +0 -0
  360. package/build/client/_app/immutable/chunks/HPNCC8XI.js.gz +0 -0
  361. package/build/client/_app/immutable/chunks/IwGwbOe7.js.br +0 -0
  362. package/build/client/_app/immutable/chunks/Z7BFksgg.js.br +0 -0
  363. package/build/client/_app/immutable/chunks/Z7BFksgg.js.gz +0 -0
  364. package/build/client/_app/immutable/chunks/dlHwFtkV.js +0 -1
  365. package/build/client/_app/immutable/chunks/dlHwFtkV.js.br +0 -0
  366. package/build/client/_app/immutable/chunks/dlHwFtkV.js.gz +0 -0
  367. package/build/client/_app/immutable/entry/app.CwK9URvm.js +0 -2
  368. package/build/client/_app/immutable/entry/app.CwK9URvm.js.br +0 -0
  369. package/build/client/_app/immutable/entry/app.CwK9URvm.js.gz +0 -0
  370. package/build/client/_app/immutable/entry/start.CKUoiBjf.js +0 -1
  371. package/build/client/_app/immutable/entry/start.CKUoiBjf.js.br +0 -0
  372. package/build/client/_app/immutable/entry/start.CKUoiBjf.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/0.igpKm403.js +0 -1
  374. package/build/client/_app/immutable/nodes/0.igpKm403.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/0.igpKm403.js.gz +0 -0
  376. package/build/client/_app/immutable/nodes/1.CG5ixvX3.js +0 -1
  377. package/build/client/_app/immutable/nodes/1.CG5ixvX3.js.br +0 -0
  378. package/build/client/_app/immutable/nodes/1.CG5ixvX3.js.gz +0 -0
  379. package/build/client/_app/immutable/nodes/10.Cb7K6zGk.js +0 -2
  380. package/build/client/_app/immutable/nodes/10.Cb7K6zGk.js.br +0 -0
  381. package/build/client/_app/immutable/nodes/10.Cb7K6zGk.js.gz +0 -0
  382. package/build/client/_app/immutable/nodes/11.BrNKE0qE.js +0 -6
  383. package/build/client/_app/immutable/nodes/11.BrNKE0qE.js.br +0 -0
  384. package/build/client/_app/immutable/nodes/11.BrNKE0qE.js.gz +0 -0
  385. package/build/client/_app/immutable/nodes/12.c15Q05Ym.js.br +0 -0
  386. package/build/client/_app/immutable/nodes/12.c15Q05Ym.js.gz +0 -0
  387. package/build/client/_app/immutable/nodes/13.XzvaMtWu.js +0 -1
  388. package/build/client/_app/immutable/nodes/13.XzvaMtWu.js.br +0 -0
  389. package/build/client/_app/immutable/nodes/13.XzvaMtWu.js.gz +0 -0
  390. package/build/client/_app/immutable/nodes/14.C-vtqL3t.js +0 -65
  391. package/build/client/_app/immutable/nodes/14.C-vtqL3t.js.br +0 -0
  392. package/build/client/_app/immutable/nodes/14.C-vtqL3t.js.gz +0 -0
  393. package/build/client/_app/immutable/nodes/15.CMsLE8xW.js +0 -1
  394. package/build/client/_app/immutable/nodes/15.CMsLE8xW.js.br +0 -0
  395. package/build/client/_app/immutable/nodes/15.CMsLE8xW.js.gz +0 -0
  396. package/build/client/_app/immutable/nodes/2.Bai-TIgH.js.br +0 -0
  397. package/build/client/_app/immutable/nodes/2.Bai-TIgH.js.gz +0 -0
  398. package/build/client/_app/immutable/nodes/3.ev9oAmrG.js.br +0 -0
  399. package/build/client/_app/immutable/nodes/3.ev9oAmrG.js.gz +0 -0
  400. package/build/client/_app/immutable/nodes/4.DS2d90xq.js +0 -1
  401. package/build/client/_app/immutable/nodes/4.DS2d90xq.js.br +0 -0
  402. package/build/client/_app/immutable/nodes/4.DS2d90xq.js.gz +0 -0
  403. package/build/client/_app/immutable/nodes/5.CyK0fI1l.js.br +0 -0
  404. package/build/client/_app/immutable/nodes/5.CyK0fI1l.js.gz +0 -0
  405. package/build/client/_app/immutable/nodes/7.CZR85XEM.js +0 -1
  406. package/build/client/_app/immutable/nodes/7.CZR85XEM.js.br +0 -0
  407. package/build/client/_app/immutable/nodes/7.CZR85XEM.js.gz +0 -0
  408. package/build/client/_app/immutable/nodes/8.D5Ms07Yy.js +0 -2
  409. package/build/client/_app/immutable/nodes/8.D5Ms07Yy.js.br +0 -0
  410. package/build/client/_app/immutable/nodes/8.D5Ms07Yy.js.gz +0 -0
  411. package/build/client/_app/immutable/nodes/9.PLQilhR3.js +0 -1
  412. package/build/client/_app/immutable/nodes/9.PLQilhR3.js.br +0 -0
  413. package/build/client/_app/immutable/nodes/9.PLQilhR3.js.gz +0 -0
  414. package/build/server/chunks/0-LilleyUU.js +0 -31
  415. package/build/server/chunks/0-LilleyUU.js.map +0 -1
  416. package/build/server/chunks/1-BYh6KkYd.js +0 -9
  417. package/build/server/chunks/10-DWWLXDRX.js +0 -42
  418. package/build/server/chunks/10-DWWLXDRX.js.map +0 -1
  419. package/build/server/chunks/11-DMGywj2z.js.map +0 -1
  420. package/build/server/chunks/12-9nIP5JYI.js.map +0 -1
  421. package/build/server/chunks/13-Cf1e9tDx.js.map +0 -1
  422. package/build/server/chunks/14-DjFKvp37.js +0 -57
  423. package/build/server/chunks/14-DjFKvp37.js.map +0 -1
  424. package/build/server/chunks/15-CBHdmxYs.js +0 -67
  425. package/build/server/chunks/15-CBHdmxYs.js.map +0 -1
  426. package/build/server/chunks/4-DoW1zEiI.js.map +0 -1
  427. package/build/server/chunks/8-D1BdB5RY.js.map +0 -1
  428. package/build/server/chunks/9-DrFrZ-qH.js.map +0 -1
  429. package/build/server/chunks/JsonValue-CGVfzyTL.js.map +0 -1
  430. package/build/server/chunks/Modal-D2E5OLRi.js.map +0 -1
  431. package/build/server/chunks/Panel-C6VWd6JD.js.map +0 -1
  432. package/build/server/chunks/PrettyJson-Bo4UtQ1o.js.map +0 -1
  433. package/build/server/chunks/Tooltip-OVylvwfb.js.map +0 -1
  434. package/build/server/chunks/TooltipTable-CLglfpck.js.map +0 -1
  435. package/build/server/chunks/_layout.svelte-CLPxHDiP.js.map +0 -1
  436. package/build/server/chunks/_page.svelte-BeiSosXN.js.map +0 -1
  437. package/build/server/chunks/_page.svelte-C3QVwl-z.js.map +0 -1
  438. package/build/server/chunks/_page.svelte-CAAPpbun.js.map +0 -1
  439. package/build/server/chunks/_page.svelte-CPcgVZQj.js.map +0 -1
  440. package/build/server/chunks/_page.svelte-C_GX0K8M.js.map +0 -1
  441. package/build/server/chunks/_page.svelte-CkZUu9Wh.js.map +0 -1
  442. package/build/server/chunks/_page.svelte-DVjTn-ck.js.map +0 -1
  443. package/build/server/chunks/_page.svelte-e5wWk327.js.map +0 -1
  444. package/build/server/chunks/_page.svelte-zD7qndty.js.map +0 -1
  445. package/build/server/chunks/client-COtw9Xqw.js +0 -7
  446. package/build/server/chunks/error.svelte-DUZ2SYyF.js +0 -18
  447. package/build/server/chunks/error.svelte-DUZ2SYyF.js.map +0 -1
  448. package/build/server/chunks/filters-B3U8Nh9P.js.map +0 -1
  449. package/build/server/chunks/index-CtYzvcG6.js.map +0 -1
  450. package/build/server/chunks/index2-B0RgZaJY.js.map +0 -1
  451. package/build/server/chunks/mongo-B92d7zNj.js.map +0 -1
  452. package/build/server/chunks/remote-xxtqbu-CDChJkWc.js.map +0 -1
  453. package/build/server/chunks/root-otUAnOAR.js.map +0 -1
  454. package/build/server/chunks/servers.remote-CGenkEHX.js.map +0 -1
  455. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/+page.ts +0 -11
  456. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.ts +0 -11
  457. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.ts +0 -11
  458. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/schema/+page.ts +0 -11
@@ -1,3 +1,4 @@
1
+ import { C as render, L as LEGACY_PROPS, E as define_property, F as CONNECTED, R as REACTION_RAN, G as ERROR_VALUE, I as COMMENT_NODE, J as HYDRATION_START, K as HYDRATION_ERROR, O as STATE_SYMBOL, Q as object_prototype, T as array_prototype, V as UNINITIALIZED, W as get_descriptor, X as DERIVED, Y as DIRTY, Z as MAYBE_DIRTY, _ as is_extensible, $ as CLASS_CACHE, a0 as ATTRIBUTES_CACHE, a1 as STYLE_CACHE, a2 as TEXT_CACHE, a3 as get_prototype_of, a4 as is_array, a5 as CLEAN, a6 as INERT, a7 as EFFECT, a8 as RENDER_EFFECT, a9 as MANAGED_EFFECT, aa as BLOCK_EFFECT, ab as ASYNC, ac as DESTROYED, ad as EAGER_EFFECT, ae as deferred, af as ROOT_EFFECT, ag as BRANCH_EFFECT, ah as WAS_MARKED, ai as REACTION_IS_UPDATING, aj as run_all, ak as includes, al as EFFECT_PRESERVED, am as EFFECT_TRANSPARENT, an as HEAD_EFFECT, ao as DESTROYING, ap as BOUNDARY_EFFECT, aq as index_of, ar as STALE_REACTION, A as noop, as as array_from, at as is_passive_event, au as setContext, f as derived, av as HYDRATION_END, aw as HYDRATION_START_ELSE, ax as HYDRATION_START_FAILED, ay as USER_EFFECT } from './renderer-wJWkLEmh.js';
1
2
  import { a as async_mode_flag, t as tracing_mode_flag } from './async-DUoD1OpG.js';
2
3
 
3
4
  // eslint-disable-next-line n/prefer-global/process
@@ -12,10 +13,10 @@ const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
12
13
  let sync_store = null;
13
14
 
14
15
  /** @type {AsyncLocalStorage<RequestStore | null> | null} */
15
- let als$1;
16
+ let als;
16
17
 
17
18
  import('node:async_hooks')
18
- .then((hooks) => (als$1 = new hooks.AsyncLocalStorage()))
19
+ .then((hooks) => (als = new hooks.AsyncLocalStorage()))
19
20
  .catch(() => {
20
21
  // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
21
22
  // this isn't behind `supports` because it's basically just StackBlitz (i.e.
@@ -27,7 +28,7 @@ function get_request_store() {
27
28
  if (!result) {
28
29
  let message = 'Could not get the request store.';
29
30
 
30
- if (als$1) {
31
+ if (als) {
31
32
  message += ' This is an internal error.';
32
33
  } else {
33
34
  message +=
@@ -41,7 +42,7 @@ function get_request_store() {
41
42
  }
42
43
 
43
44
  function try_get_request_store() {
44
- return sync_store ?? als$1?.getStore() ?? null;
45
+ return sync_store ?? als?.getStore() ?? null;
45
46
  }
46
47
 
47
48
  /**
@@ -52,7 +53,7 @@ function try_get_request_store() {
52
53
  function with_request_store(store, fn) {
53
54
  try {
54
55
  sync_store = store;
55
- return als$1 ? als$1.run(store, fn) : fn();
56
+ return als ? als.run(store, fn) : fn();
56
57
  } finally {
57
58
  // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
58
59
  // and handle only one request at a time in `src/runtime/server/index.js`.
@@ -63,642 +64,6 @@ function with_request_store(store, fn) {
63
64
  }
64
65
 
65
66
  const DEV = false;
66
- const UNDEFINED = -1;
67
- const HOLE = -2;
68
- const NAN = -3;
69
- const POSITIVE_INFINITY = -4;
70
- const NEGATIVE_INFINITY = -5;
71
- const NEGATIVE_ZERO = -6;
72
- const SPARSE = -7;
73
- const MAX_ARRAY_LEN = 2 ** 32 - 1;
74
- const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
75
- const escaped = {
76
- "<": "\\u003C",
77
- "\\": "\\\\",
78
- "\b": "\\b",
79
- "\f": "\\f",
80
- "\n": "\\n",
81
- "\r": "\\r",
82
- " ": "\\t",
83
- "\u2028": "\\u2028",
84
- "\u2029": "\\u2029"
85
- };
86
- class DevalueError extends Error {
87
- /**
88
- * @param {string} message
89
- * @param {string[]} keys
90
- * @param {any} [value] - The value that failed to be serialized
91
- * @param {any} [root] - The root value being serialized
92
- */
93
- constructor(message, keys, value, root) {
94
- super(message);
95
- this.name = "DevalueError";
96
- this.path = keys.join("");
97
- this.value = value;
98
- this.root = root;
99
- }
100
- }
101
- function is_primitive(thing) {
102
- return thing === null || typeof thing !== "object" && typeof thing !== "function";
103
- }
104
- const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
105
- function is_plain_object(thing) {
106
- const proto = Object.getPrototypeOf(thing);
107
- return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null || Object.getOwnPropertyNames(proto).sort().join("\0") === object_proto_names;
108
- }
109
- function get_type(thing) {
110
- return Object.prototype.toString.call(thing).slice(8, -1);
111
- }
112
- function get_escaped_char(char) {
113
- switch (char) {
114
- case '"':
115
- return '\\"';
116
- case "<":
117
- return "\\u003C";
118
- case "\\":
119
- return "\\\\";
120
- case "\n":
121
- return "\\n";
122
- case "\r":
123
- return "\\r";
124
- case " ":
125
- return "\\t";
126
- case "\b":
127
- return "\\b";
128
- case "\f":
129
- return "\\f";
130
- case "\u2028":
131
- return "\\u2028";
132
- case "\u2029":
133
- return "\\u2029";
134
- default:
135
- return char < " " ? `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
136
- }
137
- }
138
- function stringify_string(str) {
139
- let result = "";
140
- let last_pos = 0;
141
- const len = str.length;
142
- for (let i = 0; i < len; i += 1) {
143
- const char = str[i];
144
- const replacement = get_escaped_char(char);
145
- if (replacement) {
146
- result += str.slice(last_pos, i) + replacement;
147
- last_pos = i + 1;
148
- }
149
- }
150
- return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
151
- }
152
- function enumerable_symbols(object) {
153
- return Object.getOwnPropertySymbols(object).filter(
154
- (symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable
155
- );
156
- }
157
- const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
158
- function stringify_key(key) {
159
- return is_identifier.test(key) ? "." + key : "[" + JSON.stringify(key) + "]";
160
- }
161
- function is_valid_array_index(n) {
162
- if (!Number.isInteger(n)) return false;
163
- if (n < 0) return false;
164
- if (n > MAX_ARRAY_INDEX) return false;
165
- return true;
166
- }
167
- function is_valid_array_len(n) {
168
- if (!Number.isInteger(n)) return false;
169
- if (n < 0) return false;
170
- if (n > MAX_ARRAY_LEN) return false;
171
- return true;
172
- }
173
- function is_valid_array_index_string(s) {
174
- if (s.length === 0) return false;
175
- if (s.length > 1 && s.charCodeAt(0) === 48) return false;
176
- for (let i = 0; i < s.length; i++) {
177
- const c = s.charCodeAt(i);
178
- if (c < 48 || c > 57) return false;
179
- }
180
- return is_valid_array_index(+s);
181
- }
182
- function valid_array_indices(array) {
183
- const keys = Object.keys(array);
184
- for (var i = keys.length - 1; i >= 0; i--) {
185
- if (is_valid_array_index_string(keys[i])) {
186
- break;
187
- }
188
- }
189
- keys.length = i + 1;
190
- return keys;
191
- }
192
- const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";
193
- const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
194
- const reserved = /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
195
- function uneval(value, replacer) {
196
- const counts = /* @__PURE__ */ new Map();
197
- const keys = [];
198
- const custom = /* @__PURE__ */ new Map();
199
- function walk(thing) {
200
- if (!is_primitive(thing)) {
201
- if (counts.has(thing)) {
202
- counts.set(thing, counts.get(thing) + 1);
203
- return;
204
- }
205
- counts.set(thing, 1);
206
- if (replacer) {
207
- const str2 = replacer(thing, (value2) => uneval(value2, replacer));
208
- if (typeof str2 === "string") {
209
- custom.set(thing, str2);
210
- return;
211
- }
212
- }
213
- if (typeof thing === "function") {
214
- throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
215
- }
216
- const type = get_type(thing);
217
- switch (type) {
218
- case "Number":
219
- case "BigInt":
220
- case "String":
221
- case "Boolean":
222
- case "Date":
223
- case "RegExp":
224
- case "URL":
225
- case "URLSearchParams":
226
- return;
227
- case "Array":
228
- thing.forEach((value2, i) => {
229
- keys.push(`[${i}]`);
230
- walk(value2);
231
- keys.pop();
232
- });
233
- break;
234
- case "Set":
235
- Array.from(thing).forEach(walk);
236
- break;
237
- case "Map":
238
- for (const [key, value2] of thing) {
239
- keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
240
- walk(value2);
241
- keys.pop();
242
- }
243
- break;
244
- case "Int8Array":
245
- case "Uint8Array":
246
- case "Uint8ClampedArray":
247
- case "Int16Array":
248
- case "Uint16Array":
249
- case "Float16Array":
250
- case "Int32Array":
251
- case "Uint32Array":
252
- case "Float32Array":
253
- case "Float64Array":
254
- case "BigInt64Array":
255
- case "BigUint64Array":
256
- case "DataView":
257
- walk(thing.buffer);
258
- return;
259
- case "ArrayBuffer":
260
- return;
261
- case "Temporal.Duration":
262
- case "Temporal.Instant":
263
- case "Temporal.PlainDate":
264
- case "Temporal.PlainTime":
265
- case "Temporal.PlainDateTime":
266
- case "Temporal.PlainMonthDay":
267
- case "Temporal.PlainYearMonth":
268
- case "Temporal.ZonedDateTime":
269
- return;
270
- default:
271
- if (!is_plain_object(thing)) {
272
- throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
273
- }
274
- if (enumerable_symbols(thing).length > 0) {
275
- throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
276
- }
277
- for (const key of Object.keys(thing)) {
278
- if (key === "__proto__") {
279
- throw new DevalueError(
280
- `Cannot stringify objects with __proto__ keys`,
281
- keys,
282
- thing,
283
- value
284
- );
285
- }
286
- keys.push(stringify_key(key));
287
- walk(thing[key]);
288
- keys.pop();
289
- }
290
- }
291
- } else if (typeof thing === "symbol") {
292
- throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
293
- }
294
- }
295
- walk(value);
296
- const names = /* @__PURE__ */ new Map();
297
- Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {
298
- names.set(entry[0], get_name(i));
299
- });
300
- function stringify(thing) {
301
- if (names.has(thing)) {
302
- return names.get(thing);
303
- }
304
- if (is_primitive(thing)) {
305
- return stringify_primitive(thing);
306
- }
307
- if (custom.has(thing)) {
308
- return custom.get(thing);
309
- }
310
- const type = get_type(thing);
311
- switch (type) {
312
- case "Number":
313
- case "String":
314
- case "Boolean":
315
- case "BigInt":
316
- return `Object(${stringify(thing.valueOf())})`;
317
- case "RegExp":
318
- const { source, flags } = thing;
319
- return flags ? `new RegExp(${stringify_string(source)},"${flags}")` : `new RegExp(${stringify_string(source)})`;
320
- case "Date":
321
- return `new Date(${thing.getTime()})`;
322
- case "URL":
323
- return `new URL(${stringify_string(thing.toString())})`;
324
- case "URLSearchParams":
325
- return `new URLSearchParams(${stringify_string(thing.toString())})`;
326
- case "Array": {
327
- let has_holes = false;
328
- let result = "[";
329
- for (let i = 0; i < thing.length; i += 1) {
330
- if (i > 0) result += ",";
331
- if (Object.hasOwn(thing, i)) {
332
- result += stringify(thing[i]);
333
- } else if (!has_holes) {
334
- const populated_keys = valid_array_indices(
335
- /** @type {any[]} */
336
- thing
337
- );
338
- const population = populated_keys.length;
339
- const d = String(thing.length).length;
340
- const hole_cost = thing.length + 2;
341
- const sparse_cost = 25 + d + population * (d + 2);
342
- if (hole_cost > sparse_cost) {
343
- const entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(",");
344
- return `Object.assign(Array(${thing.length}),{${entries}})`;
345
- }
346
- has_holes = true;
347
- i -= 1;
348
- }
349
- }
350
- const tail = thing.length === 0 || thing.length - 1 in thing ? "" : ",";
351
- return result + tail + "]";
352
- }
353
- case "Set":
354
- case "Map":
355
- return `new ${type}([${Array.from(thing).map(stringify).join(",")}])`;
356
- case "Int8Array":
357
- case "Uint8Array":
358
- case "Uint8ClampedArray":
359
- case "Int16Array":
360
- case "Uint16Array":
361
- case "Float16Array":
362
- case "Int32Array":
363
- case "Uint32Array":
364
- case "Float32Array":
365
- case "Float64Array":
366
- case "BigInt64Array":
367
- case "BigUint64Array": {
368
- let str2 = `new ${type}`;
369
- if (!names.has(thing.buffer)) {
370
- const array = new thing.constructor(thing.buffer);
371
- str2 += `([${array}])`;
372
- } else {
373
- str2 += `(${stringify(thing.buffer)})`;
374
- }
375
- if (thing.byteLength !== thing.buffer.byteLength) {
376
- const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
377
- const end = start + thing.length;
378
- str2 += `.subarray(${start},${end})`;
379
- }
380
- return str2;
381
- }
382
- case "DataView": {
383
- let str2 = `new DataView`;
384
- if (!names.has(thing.buffer)) {
385
- str2 += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
386
- } else {
387
- str2 += `(${stringify(thing.buffer)}`;
388
- }
389
- if (thing.byteLength !== thing.buffer.byteLength) {
390
- str2 += `,${thing.startOffset},${thing.byteLength}`;
391
- }
392
- return str2 + ")";
393
- }
394
- case "ArrayBuffer": {
395
- const ui8 = new Uint8Array(thing);
396
- return `new Uint8Array([${ui8.toString()}]).buffer`;
397
- }
398
- case "Temporal.Duration":
399
- case "Temporal.Instant":
400
- case "Temporal.PlainDate":
401
- case "Temporal.PlainTime":
402
- case "Temporal.PlainDateTime":
403
- case "Temporal.PlainMonthDay":
404
- case "Temporal.PlainYearMonth":
405
- case "Temporal.ZonedDateTime":
406
- return `${type}.from(${stringify_string(thing.toString())})`;
407
- default:
408
- const keys2 = Object.keys(thing);
409
- const obj = keys2.map((key) => `${safe_key(key)}:${stringify(thing[key])}`).join(",");
410
- const proto = Object.getPrototypeOf(thing);
411
- if (proto === null) {
412
- return keys2.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
413
- }
414
- return `{${obj}}`;
415
- }
416
- }
417
- const str = stringify(value);
418
- if (names.size) {
419
- const params = [];
420
- const statements = [];
421
- const values = [];
422
- names.forEach((name, thing) => {
423
- params.push(name);
424
- if (custom.has(thing)) {
425
- values.push(
426
- /** @type {string} */
427
- custom.get(thing)
428
- );
429
- return;
430
- }
431
- if (is_primitive(thing)) {
432
- values.push(stringify_primitive(thing));
433
- return;
434
- }
435
- const type = get_type(thing);
436
- switch (type) {
437
- case "Number":
438
- case "String":
439
- case "Boolean":
440
- case "BigInt":
441
- values.push(`Object(${stringify(thing.valueOf())})`);
442
- break;
443
- case "RegExp":
444
- const { source, flags } = thing;
445
- const regexp = flags ? `new RegExp(${stringify_string(source)},"${flags}")` : `new RegExp(${stringify_string(source)})`;
446
- values.push(regexp);
447
- break;
448
- case "Date":
449
- values.push(`new Date(${thing.getTime()})`);
450
- break;
451
- case "URL":
452
- values.push(`new URL(${stringify_string(thing.toString())})`);
453
- break;
454
- case "URLSearchParams":
455
- values.push(`new URLSearchParams(${stringify_string(thing.toString())})`);
456
- break;
457
- case "Array":
458
- values.push(`Array(${thing.length})`);
459
- thing.forEach((v, i) => {
460
- statements.push(`${name}[${i}]=${stringify(v)}`);
461
- });
462
- break;
463
- case "Set":
464
- values.push(`new Set`);
465
- statements.push(
466
- `${name}.${Array.from(thing).map((v) => `add(${stringify(v)})`).join(".")}`
467
- );
468
- break;
469
- case "Map":
470
- values.push(`new Map`);
471
- statements.push(
472
- `${name}.${Array.from(thing).map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`).join(".")}`
473
- );
474
- break;
475
- case "Int8Array":
476
- case "Uint8Array":
477
- case "Uint8ClampedArray":
478
- case "Int16Array":
479
- case "Uint16Array":
480
- case "Float16Array":
481
- case "Int32Array":
482
- case "Uint32Array":
483
- case "Float32Array":
484
- case "Float64Array":
485
- case "BigInt64Array":
486
- case "BigUint64Array": {
487
- let str2 = `new ${type}`;
488
- if (!names.has(thing.buffer)) {
489
- const array = new thing.constructor(thing.buffer);
490
- str2 += `([${array}])`;
491
- } else {
492
- str2 += `(${stringify(thing.buffer)})`;
493
- }
494
- if (thing.byteLength !== thing.buffer.byteLength) {
495
- const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
496
- const end = start + thing.length;
497
- str2 += `.subarray(${start},${end})`;
498
- }
499
- values.push(`{}`);
500
- statements.push(`${name}=${str2}`);
501
- break;
502
- }
503
- case "DataView": {
504
- let str2 = `new DataView`;
505
- if (!names.has(thing.buffer)) {
506
- str2 += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
507
- } else {
508
- str2 += `(${stringify(thing.buffer)}`;
509
- }
510
- if (thing.byteLength !== thing.buffer.byteLength) {
511
- str2 += `,${thing.byteOffset},${thing.byteLength}`;
512
- }
513
- str2 += ")";
514
- values.push(`{}`);
515
- statements.push(`${name}=${str2}`);
516
- break;
517
- }
518
- case "ArrayBuffer":
519
- values.push(`new Uint8Array([${new Uint8Array(thing)}]).buffer`);
520
- break;
521
- default:
522
- values.push(Object.getPrototypeOf(thing) === null ? "Object.create(null)" : "{}");
523
- Object.keys(thing).forEach((key) => {
524
- statements.push(`${name}${safe_prop(key)}=${stringify(thing[key])}`);
525
- });
526
- }
527
- });
528
- statements.push(`return ${str}`);
529
- return `(function(${params.join(",")}){${statements.join(";")}}(${values.join(",")}))`;
530
- } else {
531
- return str;
532
- }
533
- }
534
- function get_name(num) {
535
- let name = "";
536
- do {
537
- name = chars[num % chars.length] + name;
538
- num = ~~(num / chars.length) - 1;
539
- } while (num >= 0);
540
- return reserved.test(name) ? `${name}0` : name;
541
- }
542
- function escape_unsafe_char(c) {
543
- return escaped[c] || c;
544
- }
545
- function escape_unsafe_chars(str) {
546
- return str.replace(unsafe_chars, escape_unsafe_char);
547
- }
548
- function safe_key(key) {
549
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
550
- }
551
- function safe_prop(key) {
552
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? `.${key}` : `[${escape_unsafe_chars(JSON.stringify(key))}]`;
553
- }
554
- function stringify_primitive(thing) {
555
- const type = typeof thing;
556
- if (type === "string") return stringify_string(thing);
557
- if (thing === void 0) return "void 0";
558
- if (thing === 0 && 1 / thing < 0) return "-0";
559
- const str = String(thing);
560
- if (type === "number") return str.replace(/^(-)?0\./, "$1.");
561
- if (type === "bigint") return thing + "n";
562
- return str;
563
- }
564
- function experimental_async_required(name) {
565
- {
566
- throw new Error(`https://svelte.dev/e/experimental_async_required`);
567
- }
568
- }
569
- function lifecycle_outside_component(name) {
570
- {
571
- throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
572
- }
573
- }
574
- function async_local_storage_unavailable() {
575
- const error = new Error(`async_local_storage_unavailable
576
- The node API \`AsyncLocalStorage\` is not available, but is required to use async server rendering.
577
- https://svelte.dev/e/async_local_storage_unavailable`);
578
- error.name = "Svelte error";
579
- throw error;
580
- }
581
- function await_invalid() {
582
- const error = new Error(`await_invalid
583
- Encountered asynchronous work while rendering synchronously.
584
- https://svelte.dev/e/await_invalid`);
585
- error.name = "Svelte error";
586
- throw error;
587
- }
588
- function html_deprecated() {
589
- const error = new Error(`html_deprecated
590
- The \`html\` property of server render results has been deprecated. Use \`body\` instead.
591
- https://svelte.dev/e/html_deprecated`);
592
- error.name = "Svelte error";
593
- throw error;
594
- }
595
- function hydratable_serialization_failed(key, stack) {
596
- const error = new Error(`hydratable_serialization_failed
597
- Failed to serialize \`hydratable\` data for key \`${key}\`.
598
-
599
- \`hydratable\` can serialize anything [\`uneval\` from \`devalue\`](https://npmjs.com/package/uneval) can, plus Promises.
600
-
601
- Cause:
602
- ${stack}
603
- https://svelte.dev/e/hydratable_serialization_failed`);
604
- error.name = "Svelte error";
605
- throw error;
606
- }
607
- function invalid_csp() {
608
- const error = new Error(`invalid_csp
609
- \`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.
610
- https://svelte.dev/e/invalid_csp`);
611
- error.name = "Svelte error";
612
- throw error;
613
- }
614
- function invalid_id_prefix() {
615
- const error = new Error(`invalid_id_prefix
616
- The \`idPrefix\` option cannot include \`--\`.
617
- https://svelte.dev/e/invalid_id_prefix`);
618
- error.name = "Svelte error";
619
- throw error;
620
- }
621
- function server_context_required() {
622
- const error = new Error(`server_context_required
623
- Could not resolve \`render\` context.
624
- https://svelte.dev/e/server_context_required`);
625
- error.name = "Svelte error";
626
- throw error;
627
- }
628
- var is_array = Array.isArray;
629
- var index_of = Array.prototype.indexOf;
630
- var includes = Array.prototype.includes;
631
- var array_from = Array.from;
632
- var define_property = Object.defineProperty;
633
- var get_descriptor = Object.getOwnPropertyDescriptor;
634
- var object_prototype = Object.prototype;
635
- var array_prototype = Array.prototype;
636
- var get_prototype_of = Object.getPrototypeOf;
637
- var is_extensible = Object.isExtensible;
638
- var has_own_property = Object.prototype.hasOwnProperty;
639
- const noop = () => {
640
- };
641
- function is_promise(value) {
642
- return typeof value?.then === "function";
643
- }
644
- function run_all(arr) {
645
- for (var i = 0; i < arr.length; i++) {
646
- arr[i]();
647
- }
648
- }
649
- function deferred() {
650
- var resolve;
651
- var reject;
652
- var promise = new Promise((res, rej) => {
653
- resolve = res;
654
- reject = rej;
655
- });
656
- return { promise, resolve, reject };
657
- }
658
- let current_render = null;
659
- let context = null;
660
- function get_render_context() {
661
- const store = context ?? als?.getStore();
662
- if (!store) {
663
- server_context_required();
664
- }
665
- return store;
666
- }
667
- async function with_render_context(fn) {
668
- context = {
669
- hydratable: {
670
- lookup: /* @__PURE__ */ new Map(),
671
- comparisons: [],
672
- unresolved_promises: /* @__PURE__ */ new Map()
673
- }
674
- };
675
- if (in_webcontainer()) {
676
- const { promise, resolve } = deferred();
677
- const previous_render = current_render;
678
- current_render = promise;
679
- await previous_render;
680
- return fn().finally(resolve);
681
- }
682
- try {
683
- if (als === null) {
684
- async_local_storage_unavailable();
685
- }
686
- return als.run(context, fn);
687
- } finally {
688
- context = null;
689
- }
690
- }
691
- let als = null;
692
- let als_import = null;
693
- function init_render_context() {
694
- als_import ??= import('node:async_hooks').then((hooks) => {
695
- als = new hooks.AsyncLocalStorage();
696
- }).then(noop, noop);
697
- return als_import;
698
- }
699
- function in_webcontainer() {
700
- return !!globalThis.process?.versions?.webcontainer;
701
- }
702
67
 
703
68
  const internal = new URL("sveltekit-internal://");
704
69
  function resolve(base, path) {
@@ -797,275 +162,6 @@ function allow_nodejs_console_log(url) {
797
162
  }
798
163
  }
799
164
 
800
- var ssr_context = null;
801
- function set_ssr_context(v) {
802
- ssr_context = v;
803
- }
804
- function getContext(key) {
805
- const context_map = get_or_init_context_map();
806
- const result = (
807
- /** @type {T} */
808
- context_map.get(key)
809
- );
810
- return result;
811
- }
812
- function setContext(key, context) {
813
- get_or_init_context_map().set(key, context);
814
- return context;
815
- }
816
- function get_or_init_context_map(name) {
817
- if (ssr_context === null) {
818
- lifecycle_outside_component();
819
- }
820
- return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);
821
- }
822
- function push$1(fn) {
823
- ssr_context = { p: ssr_context, c: null, r: null };
824
- }
825
- function pop$1() {
826
- ssr_context = /** @type {SSRContext} */
827
- ssr_context.p;
828
- }
829
- function get_parent_context(ssr_context2) {
830
- let parent = ssr_context2.p;
831
- while (parent !== null) {
832
- const context_map = parent.c;
833
- if (context_map !== null) {
834
- return context_map;
835
- }
836
- parent = parent.p;
837
- }
838
- return null;
839
- }
840
- const DERIVED = 1 << 1;
841
- const EFFECT = 1 << 2;
842
- const RENDER_EFFECT = 1 << 3;
843
- const MANAGED_EFFECT = 1 << 24;
844
- const BLOCK_EFFECT = 1 << 4;
845
- const BRANCH_EFFECT = 1 << 5;
846
- const ROOT_EFFECT = 1 << 6;
847
- const BOUNDARY_EFFECT = 1 << 7;
848
- const CONNECTED = 1 << 9;
849
- const CLEAN = 1 << 10;
850
- const DIRTY = 1 << 11;
851
- const MAYBE_DIRTY = 1 << 12;
852
- const INERT = 1 << 13;
853
- const DESTROYED = 1 << 14;
854
- const REACTION_RAN = 1 << 15;
855
- const DESTROYING = 1 << 25;
856
- const EFFECT_TRANSPARENT = 1 << 16;
857
- const EAGER_EFFECT = 1 << 17;
858
- const HEAD_EFFECT = 1 << 18;
859
- const EFFECT_PRESERVED = 1 << 19;
860
- const USER_EFFECT = 1 << 20;
861
- const WAS_MARKED = 1 << 16;
862
- const REACTION_IS_UPDATING = 1 << 21;
863
- const ASYNC = 1 << 22;
864
- const ERROR_VALUE = 1 << 23;
865
- const STATE_SYMBOL = /* @__PURE__ */ Symbol("$state");
866
- const LEGACY_PROPS = /* @__PURE__ */ Symbol("legacy props");
867
- const ATTRIBUTES_CACHE = /* @__PURE__ */ Symbol("attributes");
868
- const CLASS_CACHE = /* @__PURE__ */ Symbol("class");
869
- const STYLE_CACHE = /* @__PURE__ */ Symbol("style");
870
- const TEXT_CACHE = /* @__PURE__ */ Symbol("text");
871
- const STALE_REACTION = new class StaleReactionError extends Error {
872
- name = "StaleReactionError";
873
- message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
874
- }();
875
- const COMMENT_NODE = 8;
876
- let controller = null;
877
- function abort() {
878
- controller?.abort(STALE_REACTION);
879
- controller = null;
880
- }
881
- const HYDRATION_START = "[";
882
- const HYDRATION_START_ELSE = "[!";
883
- const HYDRATION_START_FAILED = "[?";
884
- const HYDRATION_END = "]";
885
- const HYDRATION_ERROR = {};
886
- const ELEMENT_IS_NAMESPACED = 1;
887
- const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
888
- const ELEMENT_IS_INPUT = 1 << 2;
889
- const UNINITIALIZED = /* @__PURE__ */ Symbol();
890
- function unresolved_hydratable(key, stack) {
891
- {
892
- console.warn(`https://svelte.dev/e/unresolved_hydratable`);
893
- }
894
- }
895
- const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
896
- const BLOCK_OPEN_ELSE = `<!--${HYDRATION_START_ELSE}-->`;
897
- const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
898
- const EMPTY_COMMENT = `<!---->`;
899
- const ATTR_REGEX = /[&"<]/g;
900
- const CONTENT_REGEX = /[&<]/g;
901
- function escape_html(value, is_attr) {
902
- const str = String(value ?? "");
903
- const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
904
- pattern.lastIndex = 0;
905
- let escaped = "";
906
- let last = 0;
907
- while (pattern.test(str)) {
908
- const i = pattern.lastIndex - 1;
909
- const ch = str[i];
910
- escaped += str.substring(last, i) + (ch === "&" ? "&amp;" : ch === '"' ? "&quot;" : "&lt;");
911
- last = i + 1;
912
- }
913
- return escaped + str.substring(last);
914
- }
915
- function r(e) {
916
- var t, f, n = "";
917
- if ("string" == typeof e || "number" == typeof e) n += e;
918
- else if ("object" == typeof e) if (Array.isArray(e)) {
919
- var o = e.length;
920
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
921
- } else for (f in e) e[f] && (n && (n += " "), n += f);
922
- return n;
923
- }
924
- function clsx$1() {
925
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
926
- return n;
927
- }
928
- const replacements = {
929
- translate: /* @__PURE__ */ new Map([
930
- [true, "yes"],
931
- [false, "no"]
932
- ])
933
- };
934
- function attr(name, value, is_boolean = false) {
935
- if (name === "hidden" && value !== "until-found") {
936
- is_boolean = true;
937
- }
938
- if (value == null || !value && is_boolean) return "";
939
- const normalized = has_own_property.call(replacements, name) && replacements[name].get(value) || value;
940
- const assignment = is_boolean ? `=""` : `="${escape_html(normalized, true)}"`;
941
- return ` ${name}${assignment}`;
942
- }
943
- function clsx(value) {
944
- if (typeof value === "object") {
945
- return clsx$1(value);
946
- } else {
947
- return value ?? "";
948
- }
949
- }
950
- const whitespace = [..." \n\r\f \v\uFEFF"];
951
- function to_class(value, hash, directives) {
952
- var classname = value == null ? "" : "" + value;
953
- if (hash) {
954
- classname = classname ? classname + " " + hash : hash;
955
- }
956
- if (directives) {
957
- for (var key of Object.keys(directives)) {
958
- if (directives[key]) {
959
- classname = classname ? classname + " " + key : key;
960
- } else if (classname.length) {
961
- var len = key.length;
962
- var a = 0;
963
- while ((a = classname.indexOf(key, a)) >= 0) {
964
- var b = a + len;
965
- if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
966
- classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
967
- } else {
968
- a = b;
969
- }
970
- }
971
- }
972
- }
973
- }
974
- return classname === "" ? null : classname;
975
- }
976
- function append_styles(styles, important = false) {
977
- var separator = important ? " !important;" : ";";
978
- var css = "";
979
- for (var key of Object.keys(styles)) {
980
- var value = styles[key];
981
- if (value != null && value !== "") {
982
- css += " " + key + ": " + value + separator;
983
- }
984
- }
985
- return css;
986
- }
987
- function to_css_name(name) {
988
- if (name[0] !== "-" || name[1] !== "-") {
989
- return name.toLowerCase();
990
- }
991
- return name;
992
- }
993
- function to_style(value, styles) {
994
- if (styles) {
995
- var new_style = "";
996
- var normal_styles;
997
- var important_styles;
998
- if (Array.isArray(styles)) {
999
- normal_styles = styles[0];
1000
- important_styles = styles[1];
1001
- } else {
1002
- normal_styles = styles;
1003
- }
1004
- if (value) {
1005
- value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1006
- var in_str = false;
1007
- var in_apo = 0;
1008
- var in_comment = false;
1009
- var reserved_names = [];
1010
- if (normal_styles) {
1011
- reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
1012
- }
1013
- if (important_styles) {
1014
- reserved_names.push(...Object.keys(important_styles).map(to_css_name));
1015
- }
1016
- var start_index = 0;
1017
- var name_index = -1;
1018
- const len = value.length;
1019
- for (var i = 0; i < len; i++) {
1020
- var c = value[i];
1021
- if (in_comment) {
1022
- if (c === "/" && value[i - 1] === "*") {
1023
- in_comment = false;
1024
- }
1025
- } else if (in_str) {
1026
- if (in_str === c) {
1027
- in_str = false;
1028
- }
1029
- } else if (c === "/" && value[i + 1] === "*") {
1030
- in_comment = true;
1031
- } else if (c === '"' || c === "'") {
1032
- in_str = c;
1033
- } else if (c === "(") {
1034
- in_apo++;
1035
- } else if (c === ")") {
1036
- in_apo--;
1037
- }
1038
- if (!in_comment && in_str === false && in_apo === 0) {
1039
- if (c === ":" && name_index === -1) {
1040
- name_index = i;
1041
- } else if (c === ";" || i === len - 1) {
1042
- if (name_index !== -1) {
1043
- var name = to_css_name(value.substring(start_index, name_index).trim());
1044
- if (!reserved_names.includes(name)) {
1045
- if (c !== ";") {
1046
- i++;
1047
- }
1048
- var property = value.substring(start_index, i).trim();
1049
- new_style += " " + property + ";";
1050
- }
1051
- }
1052
- start_index = i + 1;
1053
- name_index = -1;
1054
- }
1055
- }
1056
- }
1057
- }
1058
- if (normal_styles) {
1059
- new_style += append_styles(normal_styles);
1060
- }
1061
- if (important_styles) {
1062
- new_style += append_styles(important_styles, true);
1063
- }
1064
- new_style = new_style.trim();
1065
- return new_style === "" ? null : new_style;
1066
- }
1067
- return value == null ? null : String(value);
1068
- }
1069
165
  function effect_update_depth_exceeded() {
1070
166
  {
1071
167
  throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
@@ -1534,7 +630,7 @@ class Batch {
1534
630
  this.#link();
1535
631
  }
1536
632
  const batch2 = next_batch;
1537
- batch2.#roots.push(...this.#roots.filter((r2) => !batch2.#roots.includes(r2)));
633
+ batch2.#roots.push(...this.#roots.filter((r) => !batch2.#roots.includes(r)));
1538
634
  }
1539
635
  if (next_batch !== null) {
1540
636
  next_batch.#process();
@@ -3092,10 +2188,10 @@ function destroy_effect_children(signal, remove_dom = false) {
3092
2188
  var effect = signal.first;
3093
2189
  signal.first = signal.last = null;
3094
2190
  while (effect !== null) {
3095
- const controller2 = effect.ac;
3096
- if (controller2 !== null) {
2191
+ const controller = effect.ac;
2192
+ if (controller !== null) {
3097
2193
  without_reactive_context(() => {
3098
- controller2.abort(STALE_REACTION);
2194
+ controller.abort(STALE_REACTION);
3099
2195
  });
3100
2196
  }
3101
2197
  var next2 = effect.next;
@@ -3599,939 +2695,6 @@ function untrack(fn) {
3599
2695
  untracking = previous_untracking;
3600
2696
  }
3601
2697
  }
3602
- const DOM_BOOLEAN_ATTRIBUTES = [
3603
- "allowfullscreen",
3604
- "async",
3605
- "autofocus",
3606
- "autoplay",
3607
- "checked",
3608
- "controls",
3609
- "default",
3610
- "disabled",
3611
- "formnovalidate",
3612
- "indeterminate",
3613
- "inert",
3614
- "ismap",
3615
- "loop",
3616
- "multiple",
3617
- "muted",
3618
- "nomodule",
3619
- "novalidate",
3620
- "open",
3621
- "playsinline",
3622
- "readonly",
3623
- "required",
3624
- "reversed",
3625
- "seamless",
3626
- "selected",
3627
- "webkitdirectory",
3628
- "defer",
3629
- "disablepictureinpicture",
3630
- "disableremoteplayback"
3631
- ];
3632
- function is_boolean_attribute(name) {
3633
- return DOM_BOOLEAN_ATTRIBUTES.includes(name);
3634
- }
3635
- const PASSIVE_EVENTS = ["touchstart", "touchmove"];
3636
- function is_passive_event(name) {
3637
- return PASSIVE_EVENTS.includes(name);
3638
- }
3639
- const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
3640
- function render(component, options = {}) {
3641
- if (options.csp?.hash && options.csp.nonce) {
3642
- invalid_csp();
3643
- }
3644
- return Renderer.render(
3645
- /** @type {Component<Props>} */
3646
- component,
3647
- options
3648
- );
3649
- }
3650
- function head(hash, renderer, fn) {
3651
- renderer.head((renderer2) => {
3652
- renderer2.push(`<!--${hash}-->`);
3653
- renderer2.child(fn);
3654
- renderer2.push(EMPTY_COMMENT);
3655
- });
3656
- }
3657
- function attributes(attrs, css_hash, classes, styles, flags2 = 0) {
3658
- if (styles) {
3659
- attrs.style = to_style(attrs.style, styles);
3660
- }
3661
- if (attrs.class) {
3662
- attrs.class = clsx(attrs.class);
3663
- }
3664
- if (css_hash || classes) {
3665
- attrs.class = to_class(attrs.class, css_hash, classes);
3666
- }
3667
- let attr_str = "";
3668
- let name;
3669
- const is_html = (flags2 & ELEMENT_IS_NAMESPACED) === 0;
3670
- const lowercase = (flags2 & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;
3671
- const is_input = (flags2 & ELEMENT_IS_INPUT) !== 0;
3672
- for (name of Object.keys(attrs)) {
3673
- if (typeof attrs[name] === "function") continue;
3674
- if (name[0] === "$" && name[1] === "$") continue;
3675
- if (name === "" || INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
3676
- var value = attrs[name];
3677
- var lower = name.toLowerCase();
3678
- if (lowercase) name = lower;
3679
- if (lower.length > 2 && lower.startsWith("on")) continue;
3680
- if (is_input) {
3681
- if (name === "defaultvalue" || name === "defaultchecked") {
3682
- name = name === "defaultvalue" ? "value" : "checked";
3683
- if (attrs[name]) continue;
3684
- }
3685
- }
3686
- attr_str += attr(name, value, is_html && is_boolean_attribute(name));
3687
- }
3688
- return attr_str;
3689
- }
3690
- function stringify(value) {
3691
- return typeof value === "string" ? value : value == null ? "" : value + "";
3692
- }
3693
- function attr_class(value, hash, directives) {
3694
- var result = to_class(value, hash, directives);
3695
- return result ? ` class="${escape_html(result, true)}"` : "";
3696
- }
3697
- function attr_style(value, directives) {
3698
- var result = to_style(value, directives);
3699
- return result ? ` style="${escape_html(result, true)}"` : "";
3700
- }
3701
- function bind_props(props_parent, props_now) {
3702
- for (const key of Object.keys(props_now)) {
3703
- const initial_value = props_parent[key];
3704
- const value = props_now[key];
3705
- if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) {
3706
- props_parent[key] = value;
3707
- }
3708
- }
3709
- }
3710
- function await_block(renderer, promise, pending_fn, then_fn) {
3711
- if (is_promise(promise)) {
3712
- renderer.push(BLOCK_OPEN);
3713
- promise.then(null, noop);
3714
- if (pending_fn !== null) {
3715
- pending_fn();
3716
- }
3717
- } else if (then_fn !== null) {
3718
- renderer.push(BLOCK_OPEN_ELSE);
3719
- then_fn(promise);
3720
- }
3721
- }
3722
- function ensure_array_like(array_like_or_iterator) {
3723
- if (array_like_or_iterator) {
3724
- return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
3725
- }
3726
- return [];
3727
- }
3728
- function once(get_value) {
3729
- let value = (
3730
- /** @type {V} */
3731
- UNINITIALIZED
3732
- );
3733
- return () => {
3734
- if (value === UNINITIALIZED) {
3735
- value = get_value();
3736
- }
3737
- return value;
3738
- };
3739
- }
3740
- function derived(fn) {
3741
- const get_value = ssr_context === null ? fn : once(fn);
3742
- let updated_value;
3743
- return function(new_value) {
3744
- if (arguments.length === 0) {
3745
- return updated_value ?? get_value();
3746
- }
3747
- updated_value = new_value;
3748
- return updated_value;
3749
- };
3750
- }
3751
- let text_encoder;
3752
- let crypto;
3753
- const obfuscated_import = (module_name) => import(
3754
- /* @vite-ignore */
3755
- module_name
3756
- );
3757
- async function sha256(data) {
3758
- text_encoder ??= new TextEncoder();
3759
- crypto ??= globalThis.crypto?.subtle?.digest ? globalThis.crypto : (
3760
- // @ts-ignore - we don't install node types in the prod build
3761
- // don't use import('node:crypto') directly because static analysers will think we rely on node when we don't
3762
- (await obfuscated_import("node:crypto")).webcrypto
3763
- );
3764
- const hash_buffer = await crypto.subtle.digest("SHA-256", text_encoder.encode(data));
3765
- return base64_encode(hash_buffer);
3766
- }
3767
- function base64_encode(bytes) {
3768
- if (globalThis.Buffer) {
3769
- return globalThis.Buffer.from(bytes).toString("base64");
3770
- }
3771
- let binary = "";
3772
- for (let i = 0; i < bytes.length; i++) {
3773
- binary += String.fromCharCode(bytes[i]);
3774
- }
3775
- return btoa(binary);
3776
- }
3777
- class Renderer {
3778
- /**
3779
- * The contents of the renderer.
3780
- * @type {RendererItem[]}
3781
- */
3782
- #out = [];
3783
- /**
3784
- * Any `onDestroy` callbacks registered during execution of this renderer.
3785
- * @type {(() => void)[] | undefined}
3786
- */
3787
- #on_destroy = void 0;
3788
- /**
3789
- * Whether this renderer is a component body.
3790
- * @type {boolean}
3791
- */
3792
- #is_component_body = false;
3793
- /**
3794
- * If set, this renderer is an error boundary. When async collection
3795
- * of the children fails, the failed snippet is rendered instead.
3796
- * @type {{
3797
- * failed: (renderer: Renderer, error: unknown, reset: () => void) => void;
3798
- * transformError: (error: unknown) => unknown;
3799
- * context: SSRContext | null;
3800
- * } | null}
3801
- */
3802
- #boundary = null;
3803
- /**
3804
- * The type of string content that this renderer is accumulating.
3805
- * @type {RendererType}
3806
- */
3807
- type;
3808
- /** @type {Renderer | undefined} */
3809
- #parent;
3810
- /**
3811
- * Asynchronous work associated with this renderer
3812
- * @type {Promise<void> | undefined}
3813
- */
3814
- promise = void 0;
3815
- /**
3816
- * State which is associated with the content tree as a whole.
3817
- * It will be re-exposed, uncopied, on all children.
3818
- * @type {SSRState}
3819
- * @readonly
3820
- */
3821
- global;
3822
- /**
3823
- * State that is local to the branch it is declared in.
3824
- * It will be shallow-copied to all children.
3825
- *
3826
- * @type {{ select_value: string | undefined }}
3827
- */
3828
- local;
3829
- /**
3830
- * @param {SSRState} global
3831
- * @param {Renderer | undefined} [parent]
3832
- */
3833
- constructor(global, parent) {
3834
- this.#parent = parent;
3835
- this.global = global;
3836
- this.local = parent ? { ...parent.local } : { select_value: void 0 };
3837
- this.type = parent ? parent.type : "body";
3838
- }
3839
- /**
3840
- * @param {(renderer: Renderer) => void} fn
3841
- */
3842
- head(fn) {
3843
- const head2 = new Renderer(this.global, this);
3844
- head2.type = "head";
3845
- this.#out.push(head2);
3846
- head2.child(fn);
3847
- }
3848
- /**
3849
- * @param {Array<Promise<void>>} blockers
3850
- * @param {(renderer: Renderer) => void} fn
3851
- */
3852
- async_block(blockers, fn) {
3853
- this.#out.push(BLOCK_OPEN);
3854
- this.async(blockers, fn);
3855
- this.#out.push(BLOCK_CLOSE);
3856
- }
3857
- /**
3858
- * @param {Array<Promise<void>>} blockers
3859
- * @param {(renderer: Renderer) => void} fn
3860
- */
3861
- async(blockers, fn) {
3862
- let callback = fn;
3863
- if (blockers.length > 0) {
3864
- const context = ssr_context;
3865
- callback = (renderer) => {
3866
- return Promise.all(blockers).then(() => {
3867
- const previous_context = ssr_context;
3868
- try {
3869
- set_ssr_context(context);
3870
- return fn(renderer);
3871
- } finally {
3872
- set_ssr_context(previous_context);
3873
- }
3874
- });
3875
- };
3876
- }
3877
- this.child(callback);
3878
- }
3879
- /**
3880
- * @param {Array<() => void>} thunks
3881
- */
3882
- run(thunks) {
3883
- const context = ssr_context;
3884
- let promise = Promise.resolve(thunks[0]());
3885
- const promises = [promise];
3886
- for (const fn of thunks.slice(1)) {
3887
- promise = promise.then(() => {
3888
- const previous_context = ssr_context;
3889
- set_ssr_context(context);
3890
- try {
3891
- return fn();
3892
- } finally {
3893
- set_ssr_context(previous_context);
3894
- }
3895
- });
3896
- promises.push(promise);
3897
- }
3898
- promise.catch(noop);
3899
- this.promise = promise;
3900
- return promises;
3901
- }
3902
- /**
3903
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
3904
- */
3905
- child_block(fn) {
3906
- this.#out.push(BLOCK_OPEN);
3907
- this.child(fn);
3908
- this.#out.push(BLOCK_CLOSE);
3909
- }
3910
- /**
3911
- * Create a child renderer. The child renderer inherits the state from the parent,
3912
- * but has its own content.
3913
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
3914
- */
3915
- child(fn) {
3916
- const child = new Renderer(this.global, this);
3917
- this.#out.push(child);
3918
- const parent = ssr_context;
3919
- set_ssr_context({
3920
- ...ssr_context,
3921
- p: parent,
3922
- c: null,
3923
- r: child
3924
- });
3925
- const result = fn(child);
3926
- set_ssr_context(parent);
3927
- if (result instanceof Promise) {
3928
- result.catch(noop);
3929
- result.finally(() => set_ssr_context(null)).catch(noop);
3930
- if (child.global.mode === "sync") {
3931
- await_invalid();
3932
- }
3933
- child.promise = result;
3934
- }
3935
- return child;
3936
- }
3937
- /**
3938
- * Render children inside an error boundary. If the children throw and the API-level
3939
- * `transformError` transform handles the error (doesn't re-throw), the `failed` snippet is
3940
- * rendered instead. Otherwise the error propagates.
3941
- *
3942
- * @param {{ failed?: (renderer: Renderer, error: unknown, reset: () => void) => void }} props
3943
- * @param {(renderer: Renderer) => MaybePromise<void>} children_fn
3944
- */
3945
- boundary(props, children_fn) {
3946
- const child = new Renderer(this.global, this);
3947
- this.#out.push(child);
3948
- const parent_context = ssr_context;
3949
- if (props.failed) {
3950
- child.#boundary = {
3951
- failed: props.failed,
3952
- transformError: this.global.transformError,
3953
- context: parent_context
3954
- };
3955
- }
3956
- set_ssr_context({
3957
- ...ssr_context,
3958
- p: parent_context,
3959
- c: null,
3960
- r: child
3961
- });
3962
- try {
3963
- const result = children_fn(child);
3964
- set_ssr_context(parent_context);
3965
- if (result instanceof Promise) {
3966
- if (child.global.mode === "sync") {
3967
- await_invalid();
3968
- }
3969
- result.catch(noop);
3970
- child.promise = result;
3971
- }
3972
- } catch (error) {
3973
- set_ssr_context(parent_context);
3974
- const failed_snippet = props.failed;
3975
- if (!failed_snippet) throw error;
3976
- const result = this.global.transformError(error);
3977
- child.#out.length = 0;
3978
- child.#boundary = null;
3979
- if (result instanceof Promise) {
3980
- if (this.global.mode === "sync") {
3981
- await_invalid();
3982
- }
3983
- child.promise = /** @type {Promise<unknown>} */
3984
- result.then((transformed) => {
3985
- set_ssr_context(parent_context);
3986
- child.#out.push(Renderer.#serialize_failed_boundary(transformed));
3987
- failed_snippet(child, transformed, noop);
3988
- child.#out.push(BLOCK_CLOSE);
3989
- });
3990
- child.promise.catch(noop);
3991
- } else {
3992
- child.#out.push(Renderer.#serialize_failed_boundary(result));
3993
- failed_snippet(child, result, noop);
3994
- child.#out.push(BLOCK_CLOSE);
3995
- }
3996
- }
3997
- }
3998
- /**
3999
- * Create a component renderer. The component renderer inherits the state from the parent,
4000
- * but has its own content. It is treated as an ordering boundary for ondestroy callbacks.
4001
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
4002
- * @param {Function} [component_fn]
4003
- * @returns {void}
4004
- */
4005
- component(fn, component_fn) {
4006
- push$1();
4007
- const child = this.child(fn);
4008
- child.#is_component_body = true;
4009
- pop$1();
4010
- }
4011
- /**
4012
- * @param {Record<string, any>} attrs
4013
- * @param {(renderer: Renderer) => void} fn
4014
- * @param {string | undefined} [css_hash]
4015
- * @param {Record<string, boolean> | undefined} [classes]
4016
- * @param {Record<string, string> | undefined} [styles]
4017
- * @param {number | undefined} [flags]
4018
- * @param {boolean | undefined} [is_rich]
4019
- * @returns {void}
4020
- */
4021
- select(attrs, fn, css_hash, classes, styles, flags2, is_rich) {
4022
- const { value, ...select_attrs } = attrs;
4023
- this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags2)}>`);
4024
- this.child((renderer) => {
4025
- renderer.local.select_value = value;
4026
- fn(renderer);
4027
- });
4028
- this.push(`${is_rich ? "<!>" : ""}</select>`);
4029
- }
4030
- /**
4031
- * @param {Record<string, any>} attrs
4032
- * @param {string | number | boolean | ((renderer: Renderer) => void)} body
4033
- * @param {string | undefined} [css_hash]
4034
- * @param {Record<string, boolean> | undefined} [classes]
4035
- * @param {Record<string, string> | undefined} [styles]
4036
- * @param {number | undefined} [flags]
4037
- * @param {boolean | undefined} [is_rich]
4038
- */
4039
- option(attrs, body, css_hash, classes, styles, flags2, is_rich) {
4040
- this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags2)}`);
4041
- const close = (renderer, value, { head: head2, body: body2 }) => {
4042
- if (has_own_property.call(attrs, "value")) {
4043
- value = attrs.value;
4044
- }
4045
- if (value === this.local.select_value) {
4046
- renderer.#out.push(' selected=""');
4047
- }
4048
- renderer.#out.push(`>${body2}${is_rich ? "<!>" : ""}</option>`);
4049
- if (head2) {
4050
- renderer.head((child) => child.push(head2));
4051
- }
4052
- };
4053
- if (typeof body === "function") {
4054
- this.child((renderer) => {
4055
- const r2 = new Renderer(this.global, this);
4056
- body(r2);
4057
- if (this.global.mode === "async") {
4058
- return r2.#collect_content_async().then((content) => {
4059
- close(renderer, content.body.replaceAll("<!---->", ""), content);
4060
- });
4061
- } else {
4062
- const content = r2.#collect_content();
4063
- close(renderer, content.body.replaceAll("<!---->", ""), content);
4064
- }
4065
- });
4066
- } else {
4067
- close(this, body, { body: escape_html(body) });
4068
- }
4069
- }
4070
- /**
4071
- * @param {(renderer: Renderer) => void} fn
4072
- */
4073
- title(fn) {
4074
- const path = this.get_path();
4075
- const close = (head2) => {
4076
- this.global.set_title(head2, path);
4077
- };
4078
- this.child((renderer) => {
4079
- const r2 = new Renderer(renderer.global, renderer);
4080
- fn(r2);
4081
- if (renderer.global.mode === "async") {
4082
- return r2.#collect_content_async().then((content) => {
4083
- close(content.head);
4084
- });
4085
- } else {
4086
- const content = r2.#collect_content();
4087
- close(content.head);
4088
- }
4089
- });
4090
- }
4091
- /**
4092
- * @param {string | (() => Promise<string>)} content
4093
- */
4094
- push(content) {
4095
- if (typeof content === "function") {
4096
- this.child(async (renderer) => renderer.push(await content()));
4097
- } else {
4098
- this.#out.push(content);
4099
- }
4100
- }
4101
- /**
4102
- * @param {() => void} fn
4103
- */
4104
- on_destroy(fn) {
4105
- (this.#on_destroy ??= []).push(fn);
4106
- }
4107
- /**
4108
- * @returns {number[]}
4109
- */
4110
- get_path() {
4111
- return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : [];
4112
- }
4113
- /**
4114
- * @deprecated this is needed for legacy component bindings
4115
- */
4116
- copy() {
4117
- const copy = new Renderer(this.global, this.#parent);
4118
- copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item);
4119
- copy.promise = this.promise;
4120
- return copy;
4121
- }
4122
- /**
4123
- * @param {Renderer} other
4124
- * @deprecated this is needed for legacy component bindings
4125
- */
4126
- subsume(other) {
4127
- if (this.global.mode !== other.global.mode) {
4128
- throw new Error(
4129
- "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!"
4130
- );
4131
- }
4132
- this.local = other.local;
4133
- this.#out = other.#out.map((item, i) => {
4134
- const current = this.#out[i];
4135
- if (current instanceof Renderer && item instanceof Renderer) {
4136
- current.subsume(item);
4137
- return current;
4138
- }
4139
- return item;
4140
- });
4141
- this.promise = other.promise;
4142
- this.type = other.type;
4143
- }
4144
- get length() {
4145
- return this.#out.length;
4146
- }
4147
- /**
4148
- * Creates the hydration comment that marks the start of a failed boundary.
4149
- * The error is JSON-serialized and embedded inside an HTML comment for the client
4150
- * to parse during hydration. The JSON is escaped to prevent `-->` or `<!--` sequences
4151
- * from breaking out of the comment (XSS). Uses unicode escapes which `JSON.parse()`
4152
- * handles transparently.
4153
- * @param {unknown} error
4154
- * @returns {string}
4155
- */
4156
- static #serialize_failed_boundary(error) {
4157
- var json = JSON.stringify(error);
4158
- var escaped = json.replace(/>/g, "\\u003e").replace(/</g, "\\u003c");
4159
- return `<!--${HYDRATION_START_FAILED}${escaped}-->`;
4160
- }
4161
- /**
4162
- * Only available on the server and when compiling with the `server` option.
4163
- * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
4164
- * @template {Record<string, any>} Props
4165
- * @param {Component<Props>} component
4166
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} [options]
4167
- * @returns {RenderOutput}
4168
- */
4169
- static render(component, options = {}) {
4170
- let sync;
4171
- let async;
4172
- const result = (
4173
- /** @type {RenderOutput} */
4174
- {}
4175
- );
4176
- Object.defineProperties(result, {
4177
- html: {
4178
- get: () => {
4179
- return (sync ??= Renderer.#render(component, options)).body;
4180
- }
4181
- },
4182
- head: {
4183
- get: () => {
4184
- return (sync ??= Renderer.#render(component, options)).head;
4185
- }
4186
- },
4187
- body: {
4188
- get: () => {
4189
- return (sync ??= Renderer.#render(component, options)).body;
4190
- }
4191
- },
4192
- hashes: {
4193
- value: {
4194
- script: ""
4195
- }
4196
- },
4197
- then: {
4198
- value: (
4199
- /**
4200
- * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
4201
- *
4202
- * @template TResult1
4203
- * @template [TResult2=never]
4204
- * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled
4205
- * @param { (reason: unknown) => TResult2 } onrejected
4206
- */
4207
- (onfulfilled, onrejected) => {
4208
- if (!async_mode_flag) {
4209
- const result2 = sync ??= Renderer.#render(component, options);
4210
- const user_result = onfulfilled({
4211
- head: result2.head,
4212
- body: result2.body,
4213
- html: result2.body,
4214
- hashes: { script: [] }
4215
- });
4216
- return Promise.resolve(user_result);
4217
- }
4218
- async ??= init_render_context().then(
4219
- () => with_render_context(() => Renderer.#render_async(component, options))
4220
- );
4221
- return async.then((result2) => {
4222
- Object.defineProperty(result2, "html", {
4223
- // eslint-disable-next-line getter-return
4224
- get: () => {
4225
- html_deprecated();
4226
- }
4227
- });
4228
- return onfulfilled(
4229
- /** @type {SyncRenderOutput} */
4230
- result2
4231
- );
4232
- }, onrejected);
4233
- }
4234
- )
4235
- }
4236
- });
4237
- return result;
4238
- }
4239
- /**
4240
- * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call
4241
- * after awaiting `collect_async`.
4242
- *
4243
- * Child renderers are "porous" and don't affect execution order, but component body renderers
4244
- * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary.
4245
- * @returns {Iterable<() => void>}
4246
- */
4247
- *#collect_on_destroy() {
4248
- for (const component of this.#traverse_components()) {
4249
- yield* component.#collect_ondestroy();
4250
- }
4251
- }
4252
- /**
4253
- * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree.
4254
- * @returns {Iterable<Renderer>}
4255
- */
4256
- *#traverse_components() {
4257
- for (const child of this.#out) {
4258
- if (typeof child !== "string") {
4259
- yield* child.#traverse_components();
4260
- }
4261
- }
4262
- if (this.#is_component_body) {
4263
- yield this;
4264
- }
4265
- }
4266
- /**
4267
- * @returns {Iterable<() => void>}
4268
- */
4269
- *#collect_ondestroy() {
4270
- if (this.#on_destroy) {
4271
- for (const fn of this.#on_destroy) {
4272
- yield fn;
4273
- }
4274
- }
4275
- for (const child of this.#out) {
4276
- if (child instanceof Renderer && !child.#is_component_body) {
4277
- yield* child.#collect_ondestroy();
4278
- }
4279
- }
4280
- }
4281
- /**
4282
- * Render a component. Throws if any of the children are performing asynchronous work.
4283
- *
4284
- * @template {Record<string, any>} Props
4285
- * @param {Component<Props>} component
4286
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
4287
- * @returns {AccumulatedContent}
4288
- */
4289
- static #render(component, options) {
4290
- var previous_context = ssr_context;
4291
- try {
4292
- const renderer = Renderer.#open_render("sync", component, options);
4293
- const content = renderer.#collect_content();
4294
- return Renderer.#close_render(content, renderer);
4295
- } finally {
4296
- abort();
4297
- set_ssr_context(previous_context);
4298
- }
4299
- }
4300
- /**
4301
- * Render a component.
4302
- *
4303
- * @template {Record<string, any>} Props
4304
- * @param {Component<Props>} component
4305
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} options
4306
- * @returns {Promise<AccumulatedContent & { hashes: { script: Sha256Source[] } }>}
4307
- */
4308
- static async #render_async(component, options) {
4309
- const previous_context = ssr_context;
4310
- try {
4311
- const renderer = Renderer.#open_render("async", component, options);
4312
- const content = await renderer.#collect_content_async();
4313
- const hydratables = await renderer.#collect_hydratables();
4314
- if (hydratables !== null) {
4315
- content.head = hydratables + content.head;
4316
- }
4317
- return Renderer.#close_render(content, renderer);
4318
- } finally {
4319
- set_ssr_context(previous_context);
4320
- abort();
4321
- }
4322
- }
4323
- /**
4324
- * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string.
4325
- * @param {AccumulatedContent} content
4326
- * @returns {AccumulatedContent}
4327
- */
4328
- #collect_content(content = { head: "", body: "" }) {
4329
- for (const item of this.#out) {
4330
- if (typeof item === "string") {
4331
- content[this.type] += item;
4332
- } else if (item instanceof Renderer) {
4333
- item.#collect_content(content);
4334
- }
4335
- }
4336
- return content;
4337
- }
4338
- /**
4339
- * Collect all of the code from the `out` array and return it as a string.
4340
- * @param {AccumulatedContent} content
4341
- * @returns {Promise<AccumulatedContent>}
4342
- */
4343
- async #collect_content_async(content = { head: "", body: "" }) {
4344
- await this.promise;
4345
- for (const item of this.#out) {
4346
- if (typeof item === "string") {
4347
- content[this.type] += item;
4348
- } else if (item instanceof Renderer) {
4349
- if (item.#boundary) {
4350
- const boundary_content = { head: "", body: "" };
4351
- try {
4352
- await item.#collect_content_async(boundary_content);
4353
- content.head += boundary_content.head;
4354
- content.body += boundary_content.body;
4355
- } catch (error) {
4356
- const { context, failed, transformError } = item.#boundary;
4357
- set_ssr_context(context);
4358
- let promise = transformError(error);
4359
- set_ssr_context(null);
4360
- let transformed = await promise;
4361
- set_ssr_context(context);
4362
- const failed_renderer = new Renderer(item.global, item);
4363
- failed_renderer.type = item.type;
4364
- failed_renderer.#out.push(Renderer.#serialize_failed_boundary(transformed));
4365
- failed(failed_renderer, transformed, noop);
4366
- failed_renderer.#out.push(BLOCK_CLOSE);
4367
- await failed_renderer.#collect_content_async(content);
4368
- }
4369
- } else {
4370
- await item.#collect_content_async(content);
4371
- }
4372
- }
4373
- }
4374
- return content;
4375
- }
4376
- async #collect_hydratables() {
4377
- const ctx = get_render_context().hydratable;
4378
- for (const [_, key] of ctx.unresolved_promises) {
4379
- unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? "<missing stack trace>");
4380
- }
4381
- for (const comparison of ctx.comparisons) {
4382
- await comparison;
4383
- }
4384
- return await this.#hydratable_block(ctx);
4385
- }
4386
- /**
4387
- * @template {Record<string, any>} Props
4388
- * @param {'sync' | 'async'} mode
4389
- * @param {import('svelte').Component<Props>} component
4390
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp; transformError?: (error: unknown) => unknown }} options
4391
- * @returns {Renderer}
4392
- */
4393
- static #open_render(mode, component, options) {
4394
- if (options.idPrefix?.includes("--")) {
4395
- invalid_id_prefix();
4396
- }
4397
- var previous_context = ssr_context;
4398
- try {
4399
- const renderer = new Renderer(
4400
- new SSRState(
4401
- mode,
4402
- options.idPrefix ? options.idPrefix + "-" : "",
4403
- options.csp,
4404
- options.transformError
4405
- )
4406
- );
4407
- const context = { p: null, c: options.context ?? null, r: renderer };
4408
- set_ssr_context(context);
4409
- renderer.push(BLOCK_OPEN);
4410
- component(renderer, options.props ?? {});
4411
- renderer.push(BLOCK_CLOSE);
4412
- return renderer;
4413
- } finally {
4414
- set_ssr_context(previous_context);
4415
- }
4416
- }
4417
- /**
4418
- * @param {AccumulatedContent} content
4419
- * @param {Renderer} renderer
4420
- * @returns {AccumulatedContent & { hashes: { script: Sha256Source[] } }}
4421
- */
4422
- static #close_render(content, renderer) {
4423
- for (const cleanup of renderer.#collect_on_destroy()) {
4424
- cleanup();
4425
- }
4426
- let head2 = content.head + renderer.global.get_title();
4427
- let body = content.body;
4428
- for (const { hash, code } of renderer.global.css) {
4429
- head2 += `<style id="${hash}">${code}</style>`;
4430
- }
4431
- return {
4432
- head: head2,
4433
- body,
4434
- hashes: {
4435
- script: renderer.global.csp.script_hashes
4436
- }
4437
- };
4438
- }
4439
- /**
4440
- * @param {HydratableContext} ctx
4441
- */
4442
- async #hydratable_block(ctx) {
4443
- if (ctx.lookup.size === 0) {
4444
- return null;
4445
- }
4446
- let entries = [];
4447
- let has_promises = false;
4448
- for (const [k, v] of ctx.lookup) {
4449
- if (v.promises) {
4450
- has_promises = true;
4451
- for (const p of v.promises) await p;
4452
- }
4453
- entries.push(`[${uneval(k)},${v.serialized}]`);
4454
- }
4455
- let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`;
4456
- if (has_promises) {
4457
- prelude = `const r = (v) => Promise.resolve(v);
4458
- ${prelude}`;
4459
- }
4460
- const body = `
4461
- {
4462
- ${prelude}
4463
-
4464
- for (const [k, v] of [
4465
- ${entries.join(",\n ")}
4466
- ]) {
4467
- h.set(k, v);
4468
- }
4469
- }
4470
- `;
4471
- let csp_attr = "";
4472
- if (this.global.csp.nonce) {
4473
- csp_attr = ` nonce="${this.global.csp.nonce}"`;
4474
- } else if (this.global.csp.hash) {
4475
- const hash = await sha256(body);
4476
- this.global.csp.script_hashes.push(`sha256-${hash}`);
4477
- }
4478
- return `
4479
- <script${csp_attr}>${body}<\/script>`;
4480
- }
4481
- }
4482
- class SSRState {
4483
- /** @readonly @type {Csp & { script_hashes: Sha256Source[] }} */
4484
- csp;
4485
- /** @readonly @type {'sync' | 'async'} */
4486
- mode;
4487
- /** @readonly @type {() => string} */
4488
- uid;
4489
- /** @readonly @type {Set<{ hash: string; code: string }>} */
4490
- css = /* @__PURE__ */ new Set();
4491
- /**
4492
- * `transformError` passed to `render`. Called when an error boundary catches an error.
4493
- * Throws by default if unset in `render`.
4494
- * @type {(error: unknown) => unknown}
4495
- */
4496
- transformError;
4497
- /** @type {{ path: number[], value: string }} */
4498
- #title = { path: [], value: "" };
4499
- /**
4500
- * @param {'sync' | 'async'} mode
4501
- * @param {string} id_prefix
4502
- * @param {Csp} csp
4503
- * @param {((error: unknown) => unknown) | undefined} [transformError]
4504
- */
4505
- constructor(mode, id_prefix = "", csp = { hash: false }, transformError) {
4506
- this.mode = mode;
4507
- this.csp = { ...csp, script_hashes: [] };
4508
- this.transformError = transformError ?? ((error) => {
4509
- throw error;
4510
- });
4511
- let uid2 = 1;
4512
- this.uid = () => `${id_prefix}s${uid2++}`;
4513
- }
4514
- get_title() {
4515
- return this.#title.value;
4516
- }
4517
- /**
4518
- * Performs a depth-first (lexicographic) comparison using the path. Rejects sets
4519
- * from earlier than or equal to the current value.
4520
- * @param {string} value
4521
- * @param {number[]} path
4522
- */
4523
- set_title(value, path) {
4524
- const current = this.#title.path;
4525
- let i = 0;
4526
- let l = Math.min(path.length, current.length);
4527
- while (i < l && path[i] === current[i]) i += 1;
4528
- if (path[i] === void 0) return;
4529
- if (current[i] === void 0 || path[i] > current[i]) {
4530
- this.#title.path = path;
4531
- this.#title.value = value;
4532
- }
4533
- }
4534
- }
4535
2698
  const event_symbol = /* @__PURE__ */ Symbol("events");
4536
2699
  const all_registered_events = /* @__PURE__ */ new Set();
4537
2700
  const root_event_handles = /* @__PURE__ */ new Set();
@@ -5133,5 +3296,5 @@ function Root($$renderer, $$props) {
5133
3296
  }
5134
3297
  const root = asClassComponent(Root);
5135
3298
 
5136
- export { uneval as A, hydratable_serialization_failed as B, noop as C, DevalueError as D, safe_not_equal as E, decode_params as F, try_get_request_store as G, HOLE as H, root as I, decode_pathname as J, DEV as K, normalize_path as L, MAX_ARRAY_INDEX as M, NAN as N, disable_search as O, POSITIVE_INFINITY as P, resolve as Q, make_trackable as R, SPARSE as S, get_request_store as T, UNDEFINED as U, attr as a, ensure_array_like as b, attr_class as c, derived as d, escape_html as e, clsx as f, getContext as g, head as h, await_block as i, bind_props as j, attr_style as k, NEGATIVE_INFINITY as l, NEGATIVE_ZERO as m, is_valid_array_len as n, is_valid_array_index as o, is_primitive as p, get_type as q, is_plain_object as r, stringify as s, enumerable_symbols as t, stringify_key as u, stringify_string as v, with_request_store as w, valid_array_indices as x, experimental_async_required as y, get_render_context as z };
5137
- //# sourceMappingURL=root-otUAnOAR.js.map
3299
+ export { DEV as D, decode_pathname as a, disable_search as b, resolve as c, decode_params as d, get_request_store as g, make_trackable as m, normalize_path as n, root as r, safe_not_equal as s, try_get_request_store as t, with_request_store as w };
3300
+ //# sourceMappingURL=root-Bs42DBih.js.map