@nanoforge-dev/editor 0.0.1 → 0.0.2-beta.8c768e4

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 (682) hide show
  1. package/dist/client/_app/immutable/assets/0.CI0wrjoW.css +1 -0
  2. package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.br +0 -0
  3. package/dist/client/_app/immutable/assets/0.CI0wrjoW.css.gz +0 -0
  4. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css +1 -0
  5. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.br +0 -0
  6. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.gz +0 -0
  7. package/dist/client/_app/immutable/assets/editor.BuC0XPbM.css.gz +0 -0
  8. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css +1 -0
  9. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.br +1 -0
  10. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.gz +0 -0
  11. package/dist/client/_app/immutable/chunks/08VXUWAP.js.gz +0 -0
  12. package/dist/client/_app/immutable/chunks/43DmfD33.js.gz +0 -0
  13. package/dist/client/_app/immutable/chunks/56adh18U.js +1 -0
  14. package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
  15. package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
  16. package/dist/client/_app/immutable/chunks/6RTg0lbw2.js.gz +0 -0
  17. package/dist/client/_app/immutable/chunks/9tBtThMc.js +1 -0
  18. package/dist/client/_app/immutable/chunks/9tBtThMc.js.br +0 -0
  19. package/dist/client/_app/immutable/chunks/9tBtThMc.js.gz +0 -0
  20. package/dist/client/_app/immutable/chunks/B2921r3t2.js +1 -0
  21. package/dist/client/_app/immutable/chunks/B2921r3t2.js.br +1 -0
  22. package/dist/client/_app/immutable/chunks/B2921r3t2.js.gz +0 -0
  23. package/dist/client/_app/immutable/chunks/{XIokwnxj2.js → B41NCdmk2.js} +1 -1
  24. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
  25. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
  26. package/dist/client/_app/immutable/chunks/B5-_aFwp.js.gz +0 -0
  27. package/dist/client/_app/immutable/chunks/B5BlQANa2.js +1 -0
  28. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
  29. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
  30. package/dist/client/_app/immutable/chunks/B8J7ngcE2.js.gz +0 -0
  31. package/dist/client/_app/immutable/chunks/B9JPFI3C2.js.gz +0 -0
  32. package/dist/client/_app/immutable/chunks/BEEn4gHE.js.gz +0 -0
  33. package/dist/client/_app/immutable/chunks/BEtHBSE62.js.gz +0 -0
  34. package/dist/client/_app/immutable/chunks/BKFRmAUx.js +0 -0
  35. package/dist/client/_app/immutable/chunks/BKFRmAUx.js.br +1 -0
  36. package/dist/client/_app/immutable/chunks/BKFRmAUx.js.gz +0 -0
  37. package/dist/client/_app/immutable/chunks/BKxtCVv1.js.gz +0 -0
  38. package/dist/client/_app/immutable/chunks/BNmi28p2.js +1 -0
  39. package/dist/client/_app/immutable/chunks/BNmi28p2.js.br +0 -0
  40. package/dist/client/_app/immutable/chunks/BNmi28p2.js.gz +0 -0
  41. package/dist/client/_app/immutable/chunks/BOotOW0E2.js.gz +0 -0
  42. package/dist/client/_app/immutable/chunks/BWPQTe0t.js.gz +0 -0
  43. package/dist/client/_app/immutable/chunks/BYgofb2h.js.gz +0 -0
  44. package/dist/client/_app/immutable/chunks/Ba7i2nA0.js.gz +0 -0
  45. package/dist/client/_app/immutable/chunks/Bc_sGQ0U.js.gz +0 -0
  46. package/dist/client/_app/immutable/chunks/BeGwcela.js.gz +0 -0
  47. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js +1 -0
  48. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
  49. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
  50. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js +1 -0
  51. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
  52. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
  53. package/dist/client/_app/immutable/chunks/Bri6UV-V2.js.gz +0 -0
  54. package/dist/client/_app/immutable/chunks/BvRk9kiK.js +0 -0
  55. package/dist/client/_app/immutable/chunks/BvRk9kiK.js.br +1 -0
  56. package/dist/client/_app/immutable/chunks/BvRk9kiK.js.gz +0 -0
  57. package/dist/client/_app/immutable/chunks/BwWrilGY.js.gz +0 -0
  58. package/dist/client/_app/immutable/chunks/Bxkupp3x.js.gz +0 -0
  59. package/dist/client/_app/immutable/chunks/Bz4Y3fRF.js.gz +0 -0
  60. package/dist/client/_app/immutable/chunks/C-y9NEjX2.js.gz +0 -0
  61. package/dist/client/_app/immutable/chunks/C50LmoI1.js +0 -0
  62. package/dist/client/_app/immutable/chunks/C50LmoI1.js.br +1 -0
  63. package/dist/client/_app/immutable/chunks/C50LmoI1.js.gz +0 -0
  64. package/dist/client/_app/immutable/chunks/C531GsRP.js.gz +0 -0
  65. package/dist/client/_app/immutable/chunks/C5_-GSwl2.js.gz +0 -0
  66. package/dist/client/_app/immutable/chunks/C7h46wYY.js.gz +0 -0
  67. package/dist/client/_app/immutable/chunks/C8Ef5oNN2.js.gz +0 -0
  68. package/dist/client/_app/immutable/chunks/CC2rA5mh.js.gz +0 -0
  69. package/dist/client/_app/immutable/chunks/CHHvlOt72.js +1 -0
  70. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
  71. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
  72. package/dist/client/_app/immutable/chunks/CIPQ_RoX.js.gz +0 -0
  73. package/dist/client/_app/immutable/chunks/CN98h0cI2.js +1 -0
  74. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
  75. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
  76. package/dist/client/_app/immutable/chunks/CNh34b3X2.js +1 -0
  77. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
  78. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
  79. package/dist/client/_app/immutable/chunks/CRfGWb83.js.gz +0 -0
  80. package/dist/client/_app/immutable/chunks/CVaqCwHa.js.gz +0 -0
  81. package/dist/client/_app/immutable/chunks/CcwsVR0C.js.gz +0 -0
  82. package/dist/client/_app/immutable/chunks/CfSJPG6W2.js.gz +0 -0
  83. package/dist/client/_app/immutable/chunks/Cimd5fb32.js.gz +0 -0
  84. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js +0 -0
  85. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.br +1 -0
  86. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.gz +0 -0
  87. package/dist/client/_app/immutable/chunks/ClamHrr6.js.gz +0 -0
  88. package/dist/client/_app/immutable/chunks/Cm7r79vr.js.gz +0 -0
  89. package/dist/client/_app/immutable/chunks/CopQ2nXW.js.gz +0 -0
  90. package/dist/client/_app/immutable/chunks/CpzslTdj2.js.gz +0 -0
  91. package/dist/client/_app/immutable/chunks/CsQS60Ue2.js.gz +0 -0
  92. package/dist/client/_app/immutable/chunks/CsVJKLJK.js +1 -0
  93. package/dist/client/_app/immutable/chunks/CsVJKLJK.js.br +0 -0
  94. package/dist/client/_app/immutable/chunks/CsVJKLJK.js.gz +0 -0
  95. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js +4 -0
  96. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
  97. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
  98. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js +1 -0
  99. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
  100. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
  101. package/dist/client/_app/immutable/chunks/{BnEty9Zf.js → Cx3ix-dL2.js} +1 -1
  102. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
  103. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
  104. package/dist/client/_app/immutable/chunks/D-oSqn_W2.js.gz +0 -0
  105. package/dist/client/_app/immutable/chunks/D-ptJ9y-.js.gz +0 -0
  106. package/dist/client/_app/immutable/chunks/D05T4iGw2.js.gz +0 -0
  107. package/dist/client/_app/immutable/chunks/D3hlyOfw.js.gz +0 -0
  108. package/dist/client/_app/immutable/chunks/{Bi01QGTh2.js → D5kSEVHd2.js} +1 -1
  109. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
  110. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
  111. package/dist/client/_app/immutable/chunks/{B1bBmRUz2.js → D8HnIxQ42.js} +1 -1
  112. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
  113. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
  114. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js +1 -0
  115. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
  116. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
  117. package/dist/client/_app/immutable/chunks/DHpiXF5c.js.gz +0 -0
  118. package/dist/client/_app/immutable/chunks/DIMkf-bt.js.gz +0 -0
  119. package/dist/client/_app/immutable/chunks/DISqw1ZD.js.gz +0 -0
  120. package/dist/client/_app/immutable/chunks/DJq0R92X.js +1 -0
  121. package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
  122. package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
  123. package/dist/client/_app/immutable/chunks/DMUM7wLl.js.gz +0 -0
  124. package/dist/client/_app/immutable/chunks/DRG11iPc2.js +1 -0
  125. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
  126. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
  127. package/dist/client/_app/immutable/chunks/DT7zqm-g.js.gz +0 -0
  128. package/dist/client/_app/immutable/chunks/DTj74zXo.js.gz +0 -0
  129. package/dist/client/_app/immutable/chunks/DV3o63ZY2.js.gz +0 -0
  130. package/dist/client/_app/immutable/chunks/DZFCIeNp2.js.gz +0 -0
  131. package/dist/client/_app/immutable/chunks/D_Lu-MrJ.js.gz +0 -0
  132. package/dist/client/_app/immutable/chunks/DauUninz.js.gz +0 -0
  133. package/dist/client/_app/immutable/chunks/DbInun42.js.gz +0 -0
  134. package/dist/client/_app/immutable/chunks/DbZ0P7x6.js +1 -0
  135. package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.br +0 -0
  136. package/dist/client/_app/immutable/chunks/DbZ0P7x6.js.gz +0 -0
  137. package/dist/client/_app/immutable/chunks/DdL9SqIa.js.gz +0 -0
  138. package/dist/client/_app/immutable/chunks/De2hgUGE.js.gz +0 -0
  139. package/dist/client/_app/immutable/chunks/DezsRK8O.js.gz +0 -0
  140. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js +0 -0
  141. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.br +1 -0
  142. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.gz +0 -0
  143. package/dist/client/_app/immutable/chunks/DkqhCAOL.js.gz +0 -0
  144. package/dist/client/_app/immutable/chunks/DmHpPYUd.js.gz +0 -0
  145. package/dist/client/_app/immutable/chunks/DpFanUEy2.js.gz +0 -0
  146. package/dist/client/_app/immutable/chunks/DrH0SRf2.js.gz +0 -0
  147. package/dist/client/_app/immutable/chunks/Drjp27p72.js +872 -0
  148. package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
  149. package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
  150. package/dist/client/_app/immutable/chunks/DuEGqPrO.js +6 -0
  151. package/dist/client/_app/immutable/chunks/DuEGqPrO.js.br +0 -0
  152. package/dist/client/_app/immutable/chunks/DuEGqPrO.js.gz +0 -0
  153. package/dist/client/_app/immutable/chunks/DybRo6-H.js +0 -0
  154. package/dist/client/_app/immutable/chunks/DybRo6-H.js.br +1 -0
  155. package/dist/client/_app/immutable/chunks/DybRo6-H.js.gz +0 -0
  156. package/dist/client/_app/immutable/chunks/FvmIjYaQ.js.gz +0 -0
  157. package/dist/client/_app/immutable/chunks/H2okCofJ.js +3 -0
  158. package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
  159. package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
  160. package/dist/client/_app/immutable/chunks/JwdpM2S5.js +1 -0
  161. package/dist/client/_app/immutable/chunks/JwdpM2S5.js.br +0 -0
  162. package/dist/client/_app/immutable/chunks/JwdpM2S5.js.gz +0 -0
  163. package/dist/client/_app/immutable/chunks/NEE52Syq.js.gz +0 -0
  164. package/dist/client/_app/immutable/chunks/NRUHq-_72.js +1 -0
  165. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
  166. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
  167. package/dist/client/_app/immutable/chunks/SOo6toE5.js.gz +0 -0
  168. package/dist/client/_app/immutable/chunks/UeNcXxK4.js +293 -0
  169. package/dist/client/_app/immutable/chunks/UeNcXxK4.js.br +0 -0
  170. package/dist/client/_app/immutable/chunks/UeNcXxK4.js.gz +0 -0
  171. package/dist/client/_app/immutable/chunks/{BwWFGvpp2.js → VTYQK3v_2.js} +2 -2
  172. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
  173. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
  174. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js +2 -0
  175. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
  176. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
  177. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js +1 -0
  178. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
  179. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
  180. package/dist/client/_app/immutable/chunks/Z5eAx3Zn.js.gz +0 -0
  181. package/dist/client/_app/immutable/chunks/bTuwJoIa.js.gz +0 -0
  182. package/dist/client/_app/immutable/chunks/fmXr3nnJ2.js.gz +0 -0
  183. package/dist/client/_app/immutable/chunks/gp-XZpBa.js.gz +0 -0
  184. package/dist/client/_app/immutable/chunks/i0X4ZdIN.js.gz +0 -0
  185. package/dist/client/_app/immutable/chunks/nr791fC2.js.gz +0 -0
  186. package/dist/client/_app/immutable/chunks/onAF5SnQ2.js.gz +0 -0
  187. package/dist/client/_app/immutable/chunks/oz_6vUea.js.gz +0 -0
  188. package/dist/client/_app/immutable/chunks/sBoK_t0W2.js.gz +0 -0
  189. package/dist/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  190. package/dist/client/_app/immutable/entry/app.CiLM39cw.js +2 -0
  191. package/dist/client/_app/immutable/entry/app.CiLM39cw.js.br +0 -0
  192. package/dist/client/_app/immutable/entry/app.CiLM39cw.js.gz +0 -0
  193. package/dist/client/_app/immutable/entry/start.CIrA5P2h.js +1 -0
  194. package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.br +0 -0
  195. package/dist/client/_app/immutable/entry/start.CIrA5P2h.js.gz +0 -0
  196. package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js +9 -0
  197. package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.br +0 -0
  198. package/dist/client/_app/immutable/nodes/0.CEpgzEwS.js.gz +0 -0
  199. package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js +1 -0
  200. package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.br +0 -0
  201. package/dist/client/_app/immutable/nodes/1.Sm4J_hJ5.js.gz +0 -0
  202. package/dist/client/_app/immutable/nodes/10.BcE-uamz.js +6 -0
  203. package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.br +0 -0
  204. package/dist/client/_app/immutable/nodes/10.BcE-uamz.js.gz +0 -0
  205. package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js +1 -0
  206. package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.br +0 -0
  207. package/dist/client/_app/immutable/nodes/2.BGBkNPlf.js.gz +0 -0
  208. package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js +1 -0
  209. package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.br +0 -0
  210. package/dist/client/_app/immutable/nodes/9.C7P5VSNI.js.gz +0 -0
  211. package/dist/client/_app/immutable/workers/{css.worker-DRFWP4k7.js → css.worker-CvXBzhp8.js} +2 -2
  212. package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.br +0 -0
  213. package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.gz +0 -0
  214. package/dist/client/_app/immutable/workers/{html.worker-CXAEVlCI.js → html.worker-BO6WuOEO.js} +3 -3
  215. package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.br +0 -0
  216. package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.gz +0 -0
  217. package/dist/client/_app/immutable/workers/{json.worker-Dkwen84u.js → json.worker-BkJRGcCJ.js} +2 -2
  218. package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.br +0 -0
  219. package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.gz +0 -0
  220. package/dist/client/_app/immutable/workers/{ts.worker-DJwDx_mp.js → ts.worker-B0J26iPs.js} +33 -18
  221. package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.br +0 -0
  222. package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.gz +0 -0
  223. package/dist/client/_app/version.json +1 -1
  224. package/dist/client/_app/version.json.br +0 -0
  225. package/dist/client/_app/version.json.gz +0 -0
  226. package/dist/client/assets/fonts/dmmono-53a90e28.woff2 +0 -0
  227. package/dist/client/assets/fonts/dmmono-cd6ed524.woff2 +0 -0
  228. package/dist/client/assets/fonts/dmsans-56778fc7.woff2 +0 -0
  229. package/dist/client/assets/fonts/dmsans-7c37c8a6.woff2 +0 -0
  230. package/dist/client/assets/fonts/dmserifdisplay-1f997542.woff2 +0 -0
  231. package/dist/client/assets/fonts/dmserifdisplay-b6206db2.woff2 +0 -0
  232. package/dist/client/favicon.svg.gz +0 -0
  233. package/dist/server/chunks/0-BgMtbrE9.js +16 -0
  234. package/dist/server/chunks/0-BgMtbrE9.js.map +1 -0
  235. package/dist/server/chunks/{1-BgVLfks1.js → 1-JuWV7qB2.js} +7 -7
  236. package/dist/server/chunks/{1-BgVLfks1.js.map → 1-JuWV7qB2.js.map} +1 -1
  237. package/dist/server/chunks/10-x0FGzJF7.js +22 -0
  238. package/dist/server/chunks/10-x0FGzJF7.js.map +1 -0
  239. package/dist/server/chunks/{2-CzdRJh2P.js → 2-Dkn4MH5F.js} +13 -13
  240. package/dist/server/chunks/2-Dkn4MH5F.js.map +1 -0
  241. package/dist/server/chunks/3-CcIZ_M60.js +152 -0
  242. package/dist/server/chunks/3-CcIZ_M60.js.map +1 -0
  243. package/dist/server/chunks/4-DyArZX6h.js +21 -0
  244. package/dist/server/chunks/4-DyArZX6h.js.map +1 -0
  245. package/dist/server/chunks/5-DVrv6Zto.js +21 -0
  246. package/dist/server/chunks/5-DVrv6Zto.js.map +1 -0
  247. package/dist/server/chunks/6-AD0Ee23-.js +65 -0
  248. package/dist/server/chunks/6-AD0Ee23-.js.map +1 -0
  249. package/dist/server/chunks/7-CuJ7XfzT.js +27 -0
  250. package/dist/server/chunks/7-CuJ7XfzT.js.map +1 -0
  251. package/dist/server/chunks/8-CRPOubhA.js +27 -0
  252. package/dist/server/chunks/8-CRPOubhA.js.map +1 -0
  253. package/dist/server/chunks/9-BhWG76gi.js +22 -0
  254. package/dist/server/chunks/9-BhWG76gi.js.map +1 -0
  255. package/dist/server/chunks/_layout.svelte-CP4jFwsK.js +1944 -0
  256. package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +1 -0
  257. package/dist/server/chunks/_page.svelte-7KJNFri5.js +599 -0
  258. package/dist/server/chunks/_page.svelte-7KJNFri5.js.map +1 -0
  259. package/dist/server/chunks/_page.svelte-B3Zfq6_t.js +6249 -0
  260. package/dist/server/chunks/_page.svelte-B3Zfq6_t.js.map +1 -0
  261. package/dist/server/chunks/_page.svelte-BQLzgYrr.js +155 -0
  262. package/dist/server/chunks/_page.svelte-BQLzgYrr.js.map +1 -0
  263. package/dist/server/chunks/_server.ts-B1t_0LJV.js +19 -0
  264. package/dist/server/chunks/_server.ts-B1t_0LJV.js.map +1 -0
  265. package/dist/server/chunks/_server.ts-BYvWhjnh.js +19 -0
  266. package/dist/server/chunks/_server.ts-BYvWhjnh.js.map +1 -0
  267. package/dist/server/chunks/{app-l-cuFP__.js → app-DUeJj5RD.js} +1 -1
  268. package/dist/server/chunks/app-DUeJj5RD.js.map +1 -0
  269. package/dist/server/chunks/{chunk-9PtDFT_4.js → chunk-ByNZkrT6.js} +5 -7
  270. package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -0
  271. package/dist/server/chunks/chunk-D7D4PA-g.js +13 -0
  272. package/dist/server/chunks/{client-Dx0O-q6m.js → client-BvtIF74Y.js} +53 -9
  273. package/dist/server/chunks/client-BvtIF74Y.js.map +1 -0
  274. package/dist/server/chunks/const-Dy5RfQqP.js +17 -0
  275. package/dist/server/chunks/const-Dy5RfQqP.js.map +1 -0
  276. package/dist/server/chunks/error-D23CGeyL.js +14934 -0
  277. package/dist/server/chunks/error-D23CGeyL.js.map +1 -0
  278. package/dist/server/chunks/error.svelte-DZuW0iDP.js +12 -0
  279. package/dist/server/chunks/error.svelte-DZuW0iDP.js.map +1 -0
  280. package/dist/server/chunks/{dev-7V6fUCff.js → events-DeYJGjCt.js} +621 -150
  281. package/dist/server/chunks/events-DeYJGjCt.js.map +1 -0
  282. package/dist/server/chunks/{exports-j3HcL9It.js → exports-8wSs4fiF.js} +4 -5
  283. package/dist/server/chunks/exports-8wSs4fiF.js.map +1 -0
  284. package/dist/server/chunks/format-DGOlJxF5.js +123 -0
  285. package/dist/server/chunks/format-DGOlJxF5.js.map +1 -0
  286. package/dist/server/chunks/hooks.server-Dox7llar.js +362 -0
  287. package/dist/server/chunks/hooks.server-Dox7llar.js.map +1 -0
  288. package/dist/server/chunks/{hooks.universal-0JHSyeLw.js → hooks.universal-DhGFdBkK.js} +2 -2
  289. package/dist/server/chunks/{hooks.universal-0JHSyeLw.js.map → hooks.universal-DhGFdBkK.js.map} +1 -1
  290. package/dist/server/chunks/{internal-BqoJe00m.js → internal-B77zebhK.js} +184 -253
  291. package/dist/server/chunks/internal-B77zebhK.js.map +1 -0
  292. package/dist/server/chunks/{internal-BgFVxXcc.js → internal-eM0YTBgj.js} +2 -2
  293. package/dist/server/chunks/{internal-BgFVxXcc.js.map → internal-eM0YTBgj.js.map} +1 -1
  294. package/dist/server/chunks/loader-circle-zqx69BdD.js +1592 -0
  295. package/dist/server/chunks/loader-circle-zqx69BdD.js.map +1 -0
  296. package/dist/server/chunks/logo-BfI7zmyL.js +848 -0
  297. package/dist/server/chunks/logo-BfI7zmyL.js.map +1 -0
  298. package/dist/server/chunks/project-loader-BkV0zjlj.js +185 -0
  299. package/dist/server/chunks/project-loader-BkV0zjlj.js.map +1 -0
  300. package/dist/server/chunks/request-handler-D-qbwxhh.js +1084 -0
  301. package/dist/server/chunks/request-handler-D-qbwxhh.js.map +1 -0
  302. package/dist/server/chunks/{runtime-ISoc6PNh.js → runtime-CDHWD9vo.js} +3 -7
  303. package/dist/server/chunks/runtime-CDHWD9vo.js.map +1 -0
  304. package/dist/server/chunks/schemas-ENQuLVBq.js +11324 -0
  305. package/dist/server/chunks/schemas-ENQuLVBq.js.map +1 -0
  306. package/dist/server/chunks/{hooks.server-DqaQ1y1I.js → session-CmQRz9-0.js} +77 -368
  307. package/dist/server/chunks/session-CmQRz9-0.js.map +1 -0
  308. package/dist/server/chunks/{shared-server-D--cyMsO.js → shared-server-Cha0Qlv9.js} +1 -1
  309. package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -0
  310. package/dist/server/chunks/{error.svelte-C5CCEI9O.js → state-q9lwVQK2.js} +5 -33
  311. package/dist/server/chunks/state-q9lwVQK2.js.map +1 -0
  312. package/dist/server/chunks/window-D774FEA_.js +6 -0
  313. package/dist/server/chunks/window-D774FEA_.js.map +1 -0
  314. package/dist/server/index.js +381 -231
  315. package/dist/server/index.js.map +1 -1
  316. package/dist/server/manifest.js +98 -26
  317. package/dist/server/manifest.js.map +1 -1
  318. package/package.json +55 -41
  319. package/dist/client/_app/immutable/assets/0.562EP7L3.css +0 -1
  320. package/dist/client/_app/immutable/assets/0.562EP7L3.css.br +0 -0
  321. package/dist/client/_app/immutable/assets/0.562EP7L3.css.gz +0 -0
  322. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css +0 -1
  323. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.br +0 -0
  324. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.gz +0 -0
  325. package/dist/client/_app/immutable/assets/api.CD54FDqW.css +0 -1
  326. package/dist/client/_app/immutable/assets/api.CD54FDqW.css.br +0 -0
  327. package/dist/client/_app/immutable/assets/api.CD54FDqW.css.gz +0 -0
  328. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js +0 -1
  329. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.br +0 -0
  330. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.gz +0 -0
  331. package/dist/client/_app/immutable/chunks/1rG2eYdz2.js.gz +0 -0
  332. package/dist/client/_app/immutable/chunks/5CAt0tAC.js.gz +0 -0
  333. package/dist/client/_app/immutable/chunks/5TEFcS4X2.js.gz +0 -0
  334. package/dist/client/_app/immutable/chunks/5k3Q8YWH.js.gz +0 -0
  335. package/dist/client/_app/immutable/chunks/B0Q9zT_Q.js.gz +0 -0
  336. package/dist/client/_app/immutable/chunks/B1GYE4NT.js.gz +0 -0
  337. package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.br +0 -0
  338. package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.gz +0 -0
  339. package/dist/client/_app/immutable/chunks/B3IjbASq.js.gz +0 -0
  340. package/dist/client/_app/immutable/chunks/B3VOL0kZ.js.gz +0 -0
  341. package/dist/client/_app/immutable/chunks/B5crfj0i.js.gz +0 -0
  342. package/dist/client/_app/immutable/chunks/BAtlESPp.js.gz +0 -0
  343. package/dist/client/_app/immutable/chunks/BCAAnHTF2.js.gz +0 -0
  344. package/dist/client/_app/immutable/chunks/BEN0jOJp.js +0 -1
  345. package/dist/client/_app/immutable/chunks/BEN0jOJp.js.br +0 -0
  346. package/dist/client/_app/immutable/chunks/BEN0jOJp.js.gz +0 -0
  347. package/dist/client/_app/immutable/chunks/BHHccBgG2.js +0 -1
  348. package/dist/client/_app/immutable/chunks/BHHccBgG2.js.br +0 -0
  349. package/dist/client/_app/immutable/chunks/BHHccBgG2.js.gz +0 -0
  350. package/dist/client/_app/immutable/chunks/BHxBHC3k.js.gz +0 -0
  351. package/dist/client/_app/immutable/chunks/BK6ghPUh.js +0 -1
  352. package/dist/client/_app/immutable/chunks/BK6ghPUh.js.br +0 -0
  353. package/dist/client/_app/immutable/chunks/BK6ghPUh.js.gz +0 -0
  354. package/dist/client/_app/immutable/chunks/BL9YzxJT.js.gz +0 -0
  355. package/dist/client/_app/immutable/chunks/BNqbTcCU.js.gz +0 -0
  356. package/dist/client/_app/immutable/chunks/BSRtLNCV.js +0 -3
  357. package/dist/client/_app/immutable/chunks/BSRtLNCV.js.br +0 -0
  358. package/dist/client/_app/immutable/chunks/BSRtLNCV.js.gz +0 -0
  359. package/dist/client/_app/immutable/chunks/BSa9oWuP.js.gz +0 -0
  360. package/dist/client/_app/immutable/chunks/BTEHXt4u.js.gz +0 -0
  361. package/dist/client/_app/immutable/chunks/BUMhJFWc.js.gz +0 -0
  362. package/dist/client/_app/immutable/chunks/BXNW00E2.js.gz +0 -0
  363. package/dist/client/_app/immutable/chunks/B__0yjCH2.js.gz +0 -0
  364. package/dist/client/_app/immutable/chunks/B_rYXvqX.js.gz +0 -0
  365. package/dist/client/_app/immutable/chunks/BaORWDBQ.js.gz +0 -0
  366. package/dist/client/_app/immutable/chunks/BeRB61Rp.js.gz +0 -0
  367. package/dist/client/_app/immutable/chunks/Berct1R62.js +0 -1
  368. package/dist/client/_app/immutable/chunks/Berct1R62.js.br +0 -0
  369. package/dist/client/_app/immutable/chunks/Berct1R62.js.gz +0 -0
  370. package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.br +0 -0
  371. package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.gz +0 -0
  372. package/dist/client/_app/immutable/chunks/BnEty9Zf.js.br +0 -0
  373. package/dist/client/_app/immutable/chunks/BnEty9Zf.js.gz +0 -0
  374. package/dist/client/_app/immutable/chunks/Bp42GhE_.js.gz +0 -0
  375. package/dist/client/_app/immutable/chunks/BqR20QL0.js.gz +0 -0
  376. package/dist/client/_app/immutable/chunks/BuvsQ_0P.js.gz +0 -0
  377. package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.br +0 -0
  378. package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.gz +0 -0
  379. package/dist/client/_app/immutable/chunks/BxyUv_372.js.gz +0 -0
  380. package/dist/client/_app/immutable/chunks/C459oz3p.js.gz +0 -0
  381. package/dist/client/_app/immutable/chunks/C4oBl-ul.js.gz +0 -0
  382. package/dist/client/_app/immutable/chunks/C5dBxjD0.js.gz +0 -0
  383. package/dist/client/_app/immutable/chunks/C7TuqZTk.js.gz +0 -0
  384. package/dist/client/_app/immutable/chunks/C84aX3eL2.js.gz +0 -0
  385. package/dist/client/_app/immutable/chunks/CGFoxiJT2.js.gz +0 -0
  386. package/dist/client/_app/immutable/chunks/CGdCAl_w2.js.gz +0 -0
  387. package/dist/client/_app/immutable/chunks/CJL4GRLV2.js.gz +0 -0
  388. package/dist/client/_app/immutable/chunks/CKihvhpr.js.gz +0 -0
  389. package/dist/client/_app/immutable/chunks/CKybJfA6.js.gz +0 -0
  390. package/dist/client/_app/immutable/chunks/CQai7aNJ.js.gz +0 -0
  391. package/dist/client/_app/immutable/chunks/CQghOihB.js.gz +0 -0
  392. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js +0 -1
  393. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.br +0 -0
  394. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.gz +0 -0
  395. package/dist/client/_app/immutable/chunks/CUVqITEW2.js +0 -1
  396. package/dist/client/_app/immutable/chunks/CUVqITEW2.js.br +0 -0
  397. package/dist/client/_app/immutable/chunks/CUVqITEW2.js.gz +0 -0
  398. package/dist/client/_app/immutable/chunks/CVmNMiIj.js +0 -1
  399. package/dist/client/_app/immutable/chunks/CVmNMiIj.js.br +0 -0
  400. package/dist/client/_app/immutable/chunks/CVmNMiIj.js.gz +0 -0
  401. package/dist/client/_app/immutable/chunks/CW_66Q8N.js +0 -872
  402. package/dist/client/_app/immutable/chunks/CW_66Q8N.js.br +0 -0
  403. package/dist/client/_app/immutable/chunks/CW_66Q8N.js.gz +0 -0
  404. package/dist/client/_app/immutable/chunks/CXBbh9s-.js.gz +0 -0
  405. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js +0 -1
  406. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.br +0 -0
  407. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.gz +0 -0
  408. package/dist/client/_app/immutable/chunks/C_QqwttH.js.gz +0 -0
  409. package/dist/client/_app/immutable/chunks/CbFxQFBh.js.gz +0 -0
  410. package/dist/client/_app/immutable/chunks/CmjNmBcK.js +0 -1
  411. package/dist/client/_app/immutable/chunks/CmjNmBcK.js.br +0 -0
  412. package/dist/client/_app/immutable/chunks/CmjNmBcK.js.gz +0 -0
  413. package/dist/client/_app/immutable/chunks/CntDmp6G.js.gz +0 -0
  414. package/dist/client/_app/immutable/chunks/CqqoQT4S.js.gz +0 -0
  415. package/dist/client/_app/immutable/chunks/CtzzCjLE2.js.gz +0 -0
  416. package/dist/client/_app/immutable/chunks/CziQemry2.js.gz +0 -0
  417. package/dist/client/_app/immutable/chunks/Czovc13W.js +0 -1
  418. package/dist/client/_app/immutable/chunks/Czovc13W.js.br +0 -0
  419. package/dist/client/_app/immutable/chunks/Czovc13W.js.gz +0 -0
  420. package/dist/client/_app/immutable/chunks/D38BHtSY.js.gz +0 -0
  421. package/dist/client/_app/immutable/chunks/DBkS_L3S.js.gz +0 -0
  422. package/dist/client/_app/immutable/chunks/DEoC-BX-.js +0 -11
  423. package/dist/client/_app/immutable/chunks/DEoC-BX-.js.br +0 -0
  424. package/dist/client/_app/immutable/chunks/DEoC-BX-.js.gz +0 -0
  425. package/dist/client/_app/immutable/chunks/DHkiqSLl.js.gz +0 -0
  426. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js +0 -1
  427. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.br +0 -0
  428. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.gz +0 -0
  429. package/dist/client/_app/immutable/chunks/DUC3NMun2.js +0 -4
  430. package/dist/client/_app/immutable/chunks/DUC3NMun2.js.br +0 -0
  431. package/dist/client/_app/immutable/chunks/DUC3NMun2.js.gz +0 -0
  432. package/dist/client/_app/immutable/chunks/DWUlubL2.js.gz +0 -0
  433. package/dist/client/_app/immutable/chunks/D_HtEbjl.js.gz +0 -0
  434. package/dist/client/_app/immutable/chunks/DaCLQrfC.js.gz +0 -0
  435. package/dist/client/_app/immutable/chunks/DbxPn-f9.js.gz +0 -0
  436. package/dist/client/_app/immutable/chunks/DhPi0T7V2.js.gz +0 -0
  437. package/dist/client/_app/immutable/chunks/DkZEX-tr.js.gz +0 -0
  438. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js +0 -1
  439. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.br +0 -0
  440. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.gz +0 -0
  441. package/dist/client/_app/immutable/chunks/DrDIkqkr2.js.gz +0 -0
  442. package/dist/client/_app/immutable/chunks/DunPnEs5.js.gz +0 -0
  443. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js +0 -1
  444. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.br +0 -0
  445. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.gz +0 -0
  446. package/dist/client/_app/immutable/chunks/GhmjqkHA.js +0 -1
  447. package/dist/client/_app/immutable/chunks/GhmjqkHA.js.br +0 -0
  448. package/dist/client/_app/immutable/chunks/GhmjqkHA.js.gz +0 -0
  449. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js +0 -1
  450. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.br +0 -1
  451. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.gz +0 -0
  452. package/dist/client/_app/immutable/chunks/KoMdYtDs2.js.gz +0 -0
  453. package/dist/client/_app/immutable/chunks/OELm4xo1.js.gz +0 -0
  454. package/dist/client/_app/immutable/chunks/OdxrjoDx.js.gz +0 -0
  455. package/dist/client/_app/immutable/chunks/SlhV96tq.js.gz +0 -0
  456. package/dist/client/_app/immutable/chunks/X9L1iai42.js.gz +0 -0
  457. package/dist/client/_app/immutable/chunks/XIokwnxj2.js.br +0 -0
  458. package/dist/client/_app/immutable/chunks/XIokwnxj2.js.gz +0 -0
  459. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js +0 -1
  460. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.br +0 -0
  461. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.gz +0 -0
  462. package/dist/client/_app/immutable/chunks/acVTcwNd.js.gz +0 -0
  463. package/dist/client/_app/immutable/chunks/bLoc39kl.js +0 -2
  464. package/dist/client/_app/immutable/chunks/bLoc39kl.js.br +0 -0
  465. package/dist/client/_app/immutable/chunks/bLoc39kl.js.gz +0 -0
  466. package/dist/client/_app/immutable/chunks/dm7qVrFn2.js.gz +0 -0
  467. package/dist/client/_app/immutable/chunks/if7vWS9-.js.gz +0 -0
  468. package/dist/client/_app/immutable/chunks/kAc38cH_.js.gz +0 -0
  469. package/dist/client/_app/immutable/chunks/kks0AxFY2.js.gz +0 -0
  470. package/dist/client/_app/immutable/chunks/mA7hbneB.js.gz +0 -0
  471. package/dist/client/_app/immutable/chunks/qWHUp0PJ2.js.gz +0 -0
  472. package/dist/client/_app/immutable/chunks/u6JPB_fg2.js.gz +0 -0
  473. package/dist/client/_app/immutable/chunks/v_jBEYI6.js.gz +0 -0
  474. package/dist/client/_app/immutable/chunks/x4VkYCou2.js.gz +0 -0
  475. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js +0 -2
  476. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.br +0 -0
  477. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.gz +0 -0
  478. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js +0 -1
  479. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.br +0 -0
  480. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.gz +0 -0
  481. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js +0 -1
  482. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.br +0 -0
  483. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.gz +0 -0
  484. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js +0 -1
  485. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.br +0 -0
  486. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.gz +0 -0
  487. package/dist/client/_app/immutable/nodes/2.CwofzauD.js +0 -4
  488. package/dist/client/_app/immutable/nodes/2.CwofzauD.js.br +0 -0
  489. package/dist/client/_app/immutable/nodes/2.CwofzauD.js.gz +0 -0
  490. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js +0 -1
  491. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.br +0 -0
  492. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.gz +0 -0
  493. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js +0 -5
  494. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.br +0 -0
  495. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.gz +0 -0
  496. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js +0 -1
  497. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.br +0 -0
  498. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.gz +0 -0
  499. package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.br +0 -0
  500. package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.gz +0 -0
  501. package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.br +0 -0
  502. package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.gz +0 -0
  503. package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.br +0 -0
  504. package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.gz +0 -0
  505. package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.br +0 -0
  506. package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.gz +0 -0
  507. package/dist/server/chunks/0-DmwMCtOF.js +0 -16
  508. package/dist/server/chunks/0-DmwMCtOF.js.map +0 -1
  509. package/dist/server/chunks/2-CzdRJh2P.js.map +0 -1
  510. package/dist/server/chunks/3-C6uctiU1.js +0 -185
  511. package/dist/server/chunks/3-C6uctiU1.js.map +0 -1
  512. package/dist/server/chunks/4-BO3KTp14.js +0 -390
  513. package/dist/server/chunks/4-BO3KTp14.js.map +0 -1
  514. package/dist/server/chunks/5-LbaHRTVX.js +0 -259
  515. package/dist/server/chunks/5-LbaHRTVX.js.map +0 -1
  516. package/dist/server/chunks/_layout.svelte-BzcRjvYO.js +0 -11
  517. package/dist/server/chunks/_layout.svelte-BzcRjvYO.js.map +0 -1
  518. package/dist/server/chunks/_page.svelte-CB5X_URD.js +0 -197
  519. package/dist/server/chunks/_page.svelte-CB5X_URD.js.map +0 -1
  520. package/dist/server/chunks/_page.svelte-DMwjXpw4.js +0 -13
  521. package/dist/server/chunks/_page.svelte-DMwjXpw4.js.map +0 -1
  522. package/dist/server/chunks/_page.svelte-XIYDQw7d.js +0 -14
  523. package/dist/server/chunks/_page.svelte-XIYDQw7d.js.map +0 -1
  524. package/dist/server/chunks/_page.svelte-paWD_HcG.js +0 -4302
  525. package/dist/server/chunks/_page.svelte-paWD_HcG.js.map +0 -1
  526. package/dist/server/chunks/api-9BLkbfaG.js +0 -9126
  527. package/dist/server/chunks/api-9BLkbfaG.js.map +0 -1
  528. package/dist/server/chunks/app-l-cuFP__.js.map +0 -1
  529. package/dist/server/chunks/client-Dx0O-q6m.js.map +0 -1
  530. package/dist/server/chunks/dev-7V6fUCff.js.map +0 -1
  531. package/dist/server/chunks/error.svelte-C5CCEI9O.js.map +0 -1
  532. package/dist/server/chunks/exports-j3HcL9It.js.map +0 -1
  533. package/dist/server/chunks/forms-CffPpDq6.js +0 -36
  534. package/dist/server/chunks/forms-CffPpDq6.js.map +0 -1
  535. package/dist/server/chunks/hooks.server-DqaQ1y1I.js.map +0 -1
  536. package/dist/server/chunks/internal-BqoJe00m.js.map +0 -1
  537. package/dist/server/chunks/runtime-ISoc6PNh.js.map +0 -1
  538. package/dist/server/chunks/server-BlOy0jJl.js +0 -91
  539. package/dist/server/chunks/server-BlOy0jJl.js.map +0 -1
  540. package/dist/server/chunks/shared-server-D--cyMsO.js.map +0 -1
  541. /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js → 08VXUWAP.js} +0 -0
  542. /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js.br → 08VXUWAP.js.br} +0 -0
  543. /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js → 43DmfD33.js} +0 -0
  544. /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js.br → 43DmfD33.js.br} +0 -0
  545. /package/dist/client/_app/immutable/chunks/{CQghOihB.js → 6RTg0lbw2.js} +0 -0
  546. /package/dist/client/_app/immutable/chunks/{CQghOihB.js.br → 6RTg0lbw2.js.br} +0 -0
  547. /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js → B5-_aFwp.js} +0 -0
  548. /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js.br → B5-_aFwp.js.br} +0 -0
  549. /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js → B8J7ngcE2.js} +0 -0
  550. /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js.br → B8J7ngcE2.js.br} +0 -0
  551. /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js → B9JPFI3C2.js} +0 -0
  552. /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js.br → B9JPFI3C2.js.br} +0 -0
  553. /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js → BEEn4gHE.js} +0 -0
  554. /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js.br → BEEn4gHE.js.br} +0 -0
  555. /package/dist/client/_app/immutable/chunks/{BxyUv_372.js → BEtHBSE62.js} +0 -0
  556. /package/dist/client/_app/immutable/chunks/{BxyUv_372.js.br → BEtHBSE62.js.br} +0 -0
  557. /package/dist/client/_app/immutable/chunks/{DunPnEs5.js → BKxtCVv1.js} +0 -0
  558. /package/dist/client/_app/immutable/chunks/{DunPnEs5.js.br → BKxtCVv1.js.br} +0 -0
  559. /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js → BOotOW0E2.js} +0 -0
  560. /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js.br → BOotOW0E2.js.br} +0 -0
  561. /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js → BWPQTe0t.js} +0 -0
  562. /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js.br → BWPQTe0t.js.br} +0 -0
  563. /package/dist/client/_app/immutable/chunks/{B5crfj0i.js → BYgofb2h.js} +0 -0
  564. /package/dist/client/_app/immutable/chunks/{B5crfj0i.js.br → BYgofb2h.js.br} +0 -0
  565. /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js → Ba7i2nA0.js} +0 -0
  566. /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js.br → Ba7i2nA0.js.br} +0 -0
  567. /package/dist/client/_app/immutable/chunks/{BAtlESPp.js → Bc_sGQ0U.js} +0 -0
  568. /package/dist/client/_app/immutable/chunks/{BAtlESPp.js.br → Bc_sGQ0U.js.br} +0 -0
  569. /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js → BeGwcela.js} +0 -0
  570. /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js.br → BeGwcela.js.br} +0 -0
  571. /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js → Bri6UV-V2.js} +0 -0
  572. /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js.br → Bri6UV-V2.js.br} +0 -0
  573. /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js → BwWrilGY.js} +0 -0
  574. /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js.br → BwWrilGY.js.br} +0 -0
  575. /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js → Bxkupp3x.js} +0 -0
  576. /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js.br → Bxkupp3x.js.br} +0 -0
  577. /package/dist/client/_app/immutable/chunks/{BqR20QL0.js → Bz4Y3fRF.js} +0 -0
  578. /package/dist/client/_app/immutable/chunks/{BqR20QL0.js.br → Bz4Y3fRF.js.br} +0 -0
  579. /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js → C-y9NEjX2.js} +0 -0
  580. /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js.br → C-y9NEjX2.js.br} +0 -0
  581. /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js → C531GsRP.js} +0 -0
  582. /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js.br → C531GsRP.js.br} +0 -0
  583. /package/dist/client/_app/immutable/chunks/{CKybJfA6.js → C5_-GSwl2.js} +0 -0
  584. /package/dist/client/_app/immutable/chunks/{CKybJfA6.js.br → C5_-GSwl2.js.br} +0 -0
  585. /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js → C7h46wYY.js} +0 -0
  586. /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js.br → C7h46wYY.js.br} +0 -0
  587. /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js → C8Ef5oNN2.js} +0 -0
  588. /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js.br → C8Ef5oNN2.js.br} +0 -0
  589. /package/dist/client/_app/immutable/chunks/{DWUlubL2.js → CC2rA5mh.js} +0 -0
  590. /package/dist/client/_app/immutable/chunks/{DWUlubL2.js.br → CC2rA5mh.js.br} +0 -0
  591. /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js → CIPQ_RoX.js} +0 -0
  592. /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js.br → CIPQ_RoX.js.br} +0 -0
  593. /package/dist/client/_app/immutable/chunks/{C_QqwttH.js → CRfGWb83.js} +0 -0
  594. /package/dist/client/_app/immutable/chunks/{C_QqwttH.js.br → CRfGWb83.js.br} +0 -0
  595. /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js → CVaqCwHa.js} +0 -0
  596. /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js.br → CVaqCwHa.js.br} +0 -0
  597. /package/dist/client/_app/immutable/chunks/{SlhV96tq.js → CcwsVR0C.js} +0 -0
  598. /package/dist/client/_app/immutable/chunks/{SlhV96tq.js.br → CcwsVR0C.js.br} +0 -0
  599. /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js → CfSJPG6W2.js} +0 -0
  600. /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js.br → CfSJPG6W2.js.br} +0 -0
  601. /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js → Cimd5fb32.js} +0 -0
  602. /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js.br → Cimd5fb32.js.br} +0 -0
  603. /package/dist/client/_app/immutable/chunks/{if7vWS9-.js → ClamHrr6.js} +0 -0
  604. /package/dist/client/_app/immutable/chunks/{if7vWS9-.js.br → ClamHrr6.js.br} +0 -0
  605. /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js → Cm7r79vr.js} +0 -0
  606. /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js.br → Cm7r79vr.js.br} +0 -0
  607. /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js → CopQ2nXW.js} +0 -0
  608. /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js.br → CopQ2nXW.js.br} +0 -0
  609. /package/dist/client/_app/immutable/chunks/{CziQemry2.js → CpzslTdj2.js} +0 -0
  610. /package/dist/client/_app/immutable/chunks/{CziQemry2.js.br → CpzslTdj2.js.br} +0 -0
  611. /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js → CsQS60Ue2.js} +0 -0
  612. /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js.br → CsQS60Ue2.js.br} +0 -0
  613. /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js → D-oSqn_W2.js} +0 -0
  614. /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js.br → D-oSqn_W2.js.br} +0 -0
  615. /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js → D-ptJ9y-.js} +0 -0
  616. /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js.br → D-ptJ9y-.js.br} +0 -0
  617. /package/dist/client/_app/immutable/chunks/{acVTcwNd.js → D05T4iGw2.js} +0 -0
  618. /package/dist/client/_app/immutable/chunks/{acVTcwNd.js.br → D05T4iGw2.js.br} +0 -0
  619. /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js → D3hlyOfw.js} +0 -0
  620. /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js.br → D3hlyOfw.js.br} +0 -0
  621. /package/dist/client/_app/immutable/chunks/{B3IjbASq.js → DHpiXF5c.js} +0 -0
  622. /package/dist/client/_app/immutable/chunks/{B3IjbASq.js.br → DHpiXF5c.js.br} +0 -0
  623. /package/dist/client/_app/immutable/chunks/{kAc38cH_.js → DIMkf-bt.js} +0 -0
  624. /package/dist/client/_app/immutable/chunks/{kAc38cH_.js.br → DIMkf-bt.js.br} +0 -0
  625. /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js → DISqw1ZD.js} +0 -0
  626. /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js.br → DISqw1ZD.js.br} +0 -0
  627. /package/dist/client/_app/immutable/chunks/{CKihvhpr.js → DMUM7wLl.js} +0 -0
  628. /package/dist/client/_app/immutable/chunks/{CKihvhpr.js.br → DMUM7wLl.js.br} +0 -0
  629. /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js → DT7zqm-g.js} +0 -0
  630. /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js.br → DT7zqm-g.js.br} +0 -0
  631. /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js → DTj74zXo.js} +0 -0
  632. /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js.br → DTj74zXo.js.br} +0 -0
  633. /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js → DV3o63ZY2.js} +0 -0
  634. /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js.br → DV3o63ZY2.js.br} +0 -0
  635. /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js → DZFCIeNp2.js} +0 -0
  636. /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js.br → DZFCIeNp2.js.br} +0 -0
  637. /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js → D_Lu-MrJ.js} +0 -0
  638. /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js.br → D_Lu-MrJ.js.br} +0 -0
  639. /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js → DauUninz.js} +0 -0
  640. /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js.br → DauUninz.js.br} +0 -0
  641. /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js → DbInun42.js} +0 -0
  642. /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js.br → DbInun42.js.br} +0 -0
  643. /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js → DdL9SqIa.js} +0 -0
  644. /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js.br → DdL9SqIa.js.br} +0 -0
  645. /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js → De2hgUGE.js} +0 -0
  646. /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js.br → De2hgUGE.js.br} +0 -0
  647. /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js → DezsRK8O.js} +0 -0
  648. /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js.br → DezsRK8O.js.br} +0 -0
  649. /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js → DkqhCAOL.js} +0 -0
  650. /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js.br → DkqhCAOL.js.br} +0 -0
  651. /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js → DmHpPYUd.js} +0 -0
  652. /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js.br → DmHpPYUd.js.br} +0 -0
  653. /package/dist/client/_app/immutable/chunks/{D38BHtSY.js → DpFanUEy2.js} +0 -0
  654. /package/dist/client/_app/immutable/chunks/{D38BHtSY.js.br → DpFanUEy2.js.br} +0 -0
  655. /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js → DrH0SRf2.js} +0 -0
  656. /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js.br → DrH0SRf2.js.br} +0 -0
  657. /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js → FvmIjYaQ.js} +0 -0
  658. /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js.br → FvmIjYaQ.js.br} +0 -0
  659. /package/dist/client/_app/immutable/chunks/{CntDmp6G.js → NEE52Syq.js} +0 -0
  660. /package/dist/client/_app/immutable/chunks/{CntDmp6G.js.br → NEE52Syq.js.br} +0 -0
  661. /package/dist/client/_app/immutable/chunks/{X9L1iai42.js → SOo6toE5.js} +0 -0
  662. /package/dist/client/_app/immutable/chunks/{X9L1iai42.js.br → SOo6toE5.js.br} +0 -0
  663. /package/dist/client/_app/immutable/chunks/{OELm4xo1.js → Z5eAx3Zn.js} +0 -0
  664. /package/dist/client/_app/immutable/chunks/{OELm4xo1.js.br → Z5eAx3Zn.js.br} +0 -0
  665. /package/dist/client/_app/immutable/chunks/{BXNW00E2.js → bTuwJoIa.js} +0 -0
  666. /package/dist/client/_app/immutable/chunks/{BXNW00E2.js.br → bTuwJoIa.js.br} +0 -0
  667. /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js → fmXr3nnJ2.js} +0 -0
  668. /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js.br → fmXr3nnJ2.js.br} +0 -0
  669. /package/dist/client/_app/immutable/chunks/{mA7hbneB.js → gp-XZpBa.js} +0 -0
  670. /package/dist/client/_app/immutable/chunks/{mA7hbneB.js.br → gp-XZpBa.js.br} +0 -0
  671. /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js → i0X4ZdIN.js} +0 -0
  672. /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js.br → i0X4ZdIN.js.br} +0 -0
  673. /package/dist/client/_app/immutable/chunks/{C459oz3p.js → nr791fC2.js} +0 -0
  674. /package/dist/client/_app/immutable/chunks/{C459oz3p.js.br → nr791fC2.js.br} +0 -0
  675. /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js → onAF5SnQ2.js} +0 -0
  676. /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js.br → onAF5SnQ2.js.br} +0 -0
  677. /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js → oz_6vUea.js} +0 -0
  678. /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js.br → oz_6vUea.js.br} +0 -0
  679. /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js → sBoK_t0W2.js} +0 -0
  680. /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js.br → sBoK_t0W2.js.br} +0 -0
  681. /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js → xihTtKlq.js} +0 -0
  682. /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js.br → xihTtKlq.js.br} +0 -0
@@ -0,0 +1,1944 @@
1
+ import { $ as onDestroy, D as ensure_array_like, dt as spread_props, f as attr, h as attributes, k as escape_html, m as attr_style, ot as run, p as attr_class, pt as stringify, r as on, w as derived, y as clsx$1 } from "./events-DeYJGjCt.js";
2
+ import { C as matchQuery, D as partialMatchKey, E as onlineManager, F as sonnerContext, M as setQueryClientContext, P as skipToken, S as matchMutation, T as notifyManager, a as Removable, b as hashQueryKeyByOptions, d as createRetryer, f as createSubscriber, g as functionalUpdate, h as focusManager, i as Query, j as resolveStaleTime, n as Loader_circle, o as SonnerState, r as MediaQuery, s as Subscribable, t as Icon, u as cn, w as noop, y as hashKey, z as toastState } from "./loader-circle-zqx69BdD.js";
3
+ //#region .svelte-kit/adapter-bun/entries/pages/_layout.svelte.js
4
+ var Mutation = class extends Removable {
5
+ #client;
6
+ #observers;
7
+ #mutationCache;
8
+ #retryer;
9
+ constructor(config) {
10
+ super();
11
+ this.#client = config.client;
12
+ this.mutationId = config.mutationId;
13
+ this.#mutationCache = config.mutationCache;
14
+ this.#observers = [];
15
+ this.state = config.state || getDefaultState();
16
+ this.setOptions(config.options);
17
+ this.scheduleGc();
18
+ }
19
+ setOptions(options) {
20
+ this.options = options;
21
+ this.updateGcTime(this.options.gcTime);
22
+ }
23
+ get meta() {
24
+ return this.options.meta;
25
+ }
26
+ addObserver(observer) {
27
+ if (!this.#observers.includes(observer)) {
28
+ this.#observers.push(observer);
29
+ this.clearGcTimeout();
30
+ this.#mutationCache.notify({
31
+ type: "observerAdded",
32
+ mutation: this,
33
+ observer
34
+ });
35
+ }
36
+ }
37
+ removeObserver(observer) {
38
+ this.#observers = this.#observers.filter((x) => x !== observer);
39
+ this.scheduleGc();
40
+ this.#mutationCache.notify({
41
+ type: "observerRemoved",
42
+ mutation: this,
43
+ observer
44
+ });
45
+ }
46
+ optionalRemove() {
47
+ if (!this.#observers.length) if (this.state.status === "pending") this.scheduleGc();
48
+ else this.#mutationCache.remove(this);
49
+ }
50
+ continue() {
51
+ return this.#retryer?.continue() ?? this.execute(this.state.variables);
52
+ }
53
+ async execute(variables) {
54
+ const onContinue = () => {
55
+ this.#dispatch({ type: "continue" });
56
+ };
57
+ const mutationFnContext = {
58
+ client: this.#client,
59
+ meta: this.options.meta,
60
+ mutationKey: this.options.mutationKey
61
+ };
62
+ this.#retryer = createRetryer({
63
+ fn: () => {
64
+ if (!this.options.mutationFn) return Promise.reject(/* @__PURE__ */ new Error("No mutationFn found"));
65
+ return this.options.mutationFn(variables, mutationFnContext);
66
+ },
67
+ onFail: (failureCount, error) => {
68
+ this.#dispatch({
69
+ type: "failed",
70
+ failureCount,
71
+ error
72
+ });
73
+ },
74
+ onPause: () => {
75
+ this.#dispatch({ type: "pause" });
76
+ },
77
+ onContinue,
78
+ retry: this.options.retry ?? 0,
79
+ retryDelay: this.options.retryDelay,
80
+ networkMode: this.options.networkMode,
81
+ canRun: () => this.#mutationCache.canRun(this)
82
+ });
83
+ const restored = this.state.status === "pending";
84
+ const isPaused = !this.#retryer.canStart();
85
+ try {
86
+ if (restored) onContinue();
87
+ else {
88
+ this.#dispatch({
89
+ type: "pending",
90
+ variables,
91
+ isPaused
92
+ });
93
+ if (this.#mutationCache.config.onMutate) await this.#mutationCache.config.onMutate(variables, this, mutationFnContext);
94
+ const context = await this.options.onMutate?.(variables, mutationFnContext);
95
+ if (context !== this.state.context) this.#dispatch({
96
+ type: "pending",
97
+ context,
98
+ variables,
99
+ isPaused
100
+ });
101
+ }
102
+ const data = await this.#retryer.start();
103
+ await this.#mutationCache.config.onSuccess?.(data, variables, this.state.context, this, mutationFnContext);
104
+ await this.options.onSuccess?.(data, variables, this.state.context, mutationFnContext);
105
+ await this.#mutationCache.config.onSettled?.(data, null, this.state.variables, this.state.context, this, mutationFnContext);
106
+ await this.options.onSettled?.(data, null, variables, this.state.context, mutationFnContext);
107
+ this.#dispatch({
108
+ type: "success",
109
+ data
110
+ });
111
+ return data;
112
+ } catch (error) {
113
+ try {
114
+ await this.#mutationCache.config.onError?.(error, variables, this.state.context, this, mutationFnContext);
115
+ } catch (e) {
116
+ Promise.reject(e);
117
+ }
118
+ try {
119
+ await this.options.onError?.(error, variables, this.state.context, mutationFnContext);
120
+ } catch (e) {
121
+ Promise.reject(e);
122
+ }
123
+ try {
124
+ await this.#mutationCache.config.onSettled?.(void 0, error, this.state.variables, this.state.context, this, mutationFnContext);
125
+ } catch (e) {
126
+ Promise.reject(e);
127
+ }
128
+ try {
129
+ await this.options.onSettled?.(void 0, error, variables, this.state.context, mutationFnContext);
130
+ } catch (e) {
131
+ Promise.reject(e);
132
+ }
133
+ this.#dispatch({
134
+ type: "error",
135
+ error
136
+ });
137
+ throw error;
138
+ } finally {
139
+ this.#mutationCache.runNext(this);
140
+ }
141
+ }
142
+ #dispatch(action) {
143
+ const reducer = (state) => {
144
+ switch (action.type) {
145
+ case "failed": return {
146
+ ...state,
147
+ failureCount: action.failureCount,
148
+ failureReason: action.error
149
+ };
150
+ case "pause": return {
151
+ ...state,
152
+ isPaused: true
153
+ };
154
+ case "continue": return {
155
+ ...state,
156
+ isPaused: false
157
+ };
158
+ case "pending": return {
159
+ ...state,
160
+ context: action.context,
161
+ data: void 0,
162
+ failureCount: 0,
163
+ failureReason: null,
164
+ error: null,
165
+ isPaused: action.isPaused,
166
+ status: "pending",
167
+ variables: action.variables,
168
+ submittedAt: Date.now()
169
+ };
170
+ case "success": return {
171
+ ...state,
172
+ data: action.data,
173
+ failureCount: 0,
174
+ failureReason: null,
175
+ error: null,
176
+ status: "success",
177
+ isPaused: false
178
+ };
179
+ case "error": return {
180
+ ...state,
181
+ data: void 0,
182
+ error: action.error,
183
+ failureCount: state.failureCount + 1,
184
+ failureReason: action.error,
185
+ isPaused: false,
186
+ status: "error"
187
+ };
188
+ }
189
+ };
190
+ this.state = reducer(this.state);
191
+ notifyManager.batch(() => {
192
+ this.#observers.forEach((observer) => {
193
+ observer.onMutationUpdate(action);
194
+ });
195
+ this.#mutationCache.notify({
196
+ mutation: this,
197
+ type: "updated",
198
+ action
199
+ });
200
+ });
201
+ }
202
+ };
203
+ function getDefaultState() {
204
+ return {
205
+ context: void 0,
206
+ data: void 0,
207
+ error: null,
208
+ failureCount: 0,
209
+ failureReason: null,
210
+ isPaused: false,
211
+ status: "idle",
212
+ variables: void 0,
213
+ submittedAt: 0
214
+ };
215
+ }
216
+ var MutationCache = class extends Subscribable {
217
+ constructor(config = {}) {
218
+ super();
219
+ this.config = config;
220
+ this.#mutations = /* @__PURE__ */ new Set();
221
+ this.#scopes = /* @__PURE__ */ new Map();
222
+ this.#mutationId = 0;
223
+ }
224
+ #mutations;
225
+ #scopes;
226
+ #mutationId;
227
+ build(client, options, state) {
228
+ const mutation = new Mutation({
229
+ client,
230
+ mutationCache: this,
231
+ mutationId: ++this.#mutationId,
232
+ options: client.defaultMutationOptions(options),
233
+ state
234
+ });
235
+ this.add(mutation);
236
+ return mutation;
237
+ }
238
+ add(mutation) {
239
+ this.#mutations.add(mutation);
240
+ const scope = scopeFor(mutation);
241
+ if (typeof scope === "string") {
242
+ const scopedMutations = this.#scopes.get(scope);
243
+ if (scopedMutations) scopedMutations.push(mutation);
244
+ else this.#scopes.set(scope, [mutation]);
245
+ }
246
+ this.notify({
247
+ type: "added",
248
+ mutation
249
+ });
250
+ }
251
+ remove(mutation) {
252
+ if (this.#mutations.delete(mutation)) {
253
+ const scope = scopeFor(mutation);
254
+ if (typeof scope === "string") {
255
+ const scopedMutations = this.#scopes.get(scope);
256
+ if (scopedMutations) {
257
+ if (scopedMutations.length > 1) {
258
+ const index = scopedMutations.indexOf(mutation);
259
+ if (index !== -1) scopedMutations.splice(index, 1);
260
+ } else if (scopedMutations[0] === mutation) this.#scopes.delete(scope);
261
+ }
262
+ }
263
+ }
264
+ this.notify({
265
+ type: "removed",
266
+ mutation
267
+ });
268
+ }
269
+ canRun(mutation) {
270
+ const scope = scopeFor(mutation);
271
+ if (typeof scope === "string") {
272
+ const firstPendingMutation = this.#scopes.get(scope)?.find((m) => m.state.status === "pending");
273
+ return !firstPendingMutation || firstPendingMutation === mutation;
274
+ } else return true;
275
+ }
276
+ runNext(mutation) {
277
+ const scope = scopeFor(mutation);
278
+ if (typeof scope === "string") return (this.#scopes.get(scope)?.find((m) => m !== mutation && m.state.isPaused))?.continue() ?? Promise.resolve();
279
+ else return Promise.resolve();
280
+ }
281
+ clear() {
282
+ notifyManager.batch(() => {
283
+ this.#mutations.forEach((mutation) => {
284
+ this.notify({
285
+ type: "removed",
286
+ mutation
287
+ });
288
+ });
289
+ this.#mutations.clear();
290
+ this.#scopes.clear();
291
+ });
292
+ }
293
+ getAll() {
294
+ return Array.from(this.#mutations);
295
+ }
296
+ find(filters) {
297
+ const defaultedFilters = {
298
+ exact: true,
299
+ ...filters
300
+ };
301
+ return this.getAll().find((mutation) => matchMutation(defaultedFilters, mutation));
302
+ }
303
+ findAll(filters = {}) {
304
+ return this.getAll().filter((mutation) => matchMutation(filters, mutation));
305
+ }
306
+ notify(event) {
307
+ notifyManager.batch(() => {
308
+ this.listeners.forEach((listener) => {
309
+ listener(event);
310
+ });
311
+ });
312
+ }
313
+ resumePausedMutations() {
314
+ const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
315
+ return notifyManager.batch(() => Promise.all(pausedMutations.map((mutation) => mutation.continue().catch(noop))));
316
+ }
317
+ };
318
+ function scopeFor(mutation) {
319
+ return mutation.options.scope?.id;
320
+ }
321
+ var QueryCache = class extends Subscribable {
322
+ constructor(config = {}) {
323
+ super();
324
+ this.config = config;
325
+ this.#queries = /* @__PURE__ */ new Map();
326
+ }
327
+ #queries;
328
+ build(client, options, state) {
329
+ const queryKey = options.queryKey;
330
+ const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);
331
+ let query = this.get(queryHash);
332
+ if (!query) {
333
+ query = new Query({
334
+ client,
335
+ queryKey,
336
+ queryHash,
337
+ options: client.defaultQueryOptions(options),
338
+ state,
339
+ defaultOptions: client.getQueryDefaults(queryKey)
340
+ });
341
+ this.add(query);
342
+ }
343
+ return query;
344
+ }
345
+ add(query) {
346
+ if (!this.#queries.has(query.queryHash)) {
347
+ this.#queries.set(query.queryHash, query);
348
+ this.notify({
349
+ type: "added",
350
+ query
351
+ });
352
+ }
353
+ }
354
+ remove(query) {
355
+ const queryInMap = this.#queries.get(query.queryHash);
356
+ if (queryInMap) {
357
+ query.destroy();
358
+ if (queryInMap === query) this.#queries.delete(query.queryHash);
359
+ this.notify({
360
+ type: "removed",
361
+ query
362
+ });
363
+ }
364
+ }
365
+ clear() {
366
+ notifyManager.batch(() => {
367
+ this.getAll().forEach((query) => {
368
+ this.remove(query);
369
+ });
370
+ });
371
+ }
372
+ get(queryHash) {
373
+ return this.#queries.get(queryHash);
374
+ }
375
+ getAll() {
376
+ return [...this.#queries.values()];
377
+ }
378
+ find(filters) {
379
+ const defaultedFilters = {
380
+ exact: true,
381
+ ...filters
382
+ };
383
+ return this.getAll().find((query) => matchQuery(defaultedFilters, query));
384
+ }
385
+ findAll(filters = {}) {
386
+ const queries = this.getAll();
387
+ return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
388
+ }
389
+ notify(event) {
390
+ notifyManager.batch(() => {
391
+ this.listeners.forEach((listener) => {
392
+ listener(event);
393
+ });
394
+ });
395
+ }
396
+ onFocus() {
397
+ notifyManager.batch(() => {
398
+ this.getAll().forEach((query) => {
399
+ query.onFocus();
400
+ });
401
+ });
402
+ }
403
+ onOnline() {
404
+ notifyManager.batch(() => {
405
+ this.getAll().forEach((query) => {
406
+ query.onOnline();
407
+ });
408
+ });
409
+ }
410
+ };
411
+ var QueryClient = class {
412
+ #queryCache;
413
+ #mutationCache;
414
+ #defaultOptions;
415
+ #queryDefaults;
416
+ #mutationDefaults;
417
+ #mountCount;
418
+ #unsubscribeFocus;
419
+ #unsubscribeOnline;
420
+ constructor(config = {}) {
421
+ this.#queryCache = config.queryCache || new QueryCache();
422
+ this.#mutationCache = config.mutationCache || new MutationCache();
423
+ this.#defaultOptions = config.defaultOptions || {};
424
+ this.#queryDefaults = /* @__PURE__ */ new Map();
425
+ this.#mutationDefaults = /* @__PURE__ */ new Map();
426
+ this.#mountCount = 0;
427
+ }
428
+ mount() {
429
+ this.#mountCount++;
430
+ if (this.#mountCount !== 1) return;
431
+ this.#unsubscribeFocus = focusManager.subscribe(async (focused) => {
432
+ if (focused) {
433
+ await this.resumePausedMutations();
434
+ this.#queryCache.onFocus();
435
+ }
436
+ });
437
+ this.#unsubscribeOnline = onlineManager.subscribe(async (online) => {
438
+ if (online) {
439
+ await this.resumePausedMutations();
440
+ this.#queryCache.onOnline();
441
+ }
442
+ });
443
+ }
444
+ unmount() {
445
+ this.#mountCount--;
446
+ if (this.#mountCount !== 0) return;
447
+ this.#unsubscribeFocus?.();
448
+ this.#unsubscribeFocus = void 0;
449
+ this.#unsubscribeOnline?.();
450
+ this.#unsubscribeOnline = void 0;
451
+ }
452
+ isFetching(filters) {
453
+ return this.#queryCache.findAll({
454
+ ...filters,
455
+ fetchStatus: "fetching"
456
+ }).length;
457
+ }
458
+ isMutating(filters) {
459
+ return this.#mutationCache.findAll({
460
+ ...filters,
461
+ status: "pending"
462
+ }).length;
463
+ }
464
+ /**
465
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
466
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
467
+ *
468
+ * Hint: Do not use this function inside a component, because it won't receive updates.
469
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
470
+ */
471
+ getQueryData(queryKey) {
472
+ const options = this.defaultQueryOptions({ queryKey });
473
+ return this.#queryCache.get(options.queryHash)?.state.data;
474
+ }
475
+ ensureQueryData(options) {
476
+ const defaultedOptions = this.defaultQueryOptions(options);
477
+ const query = this.#queryCache.build(this, defaultedOptions);
478
+ const cachedData = query.state.data;
479
+ if (cachedData === void 0) return this.fetchQuery(options);
480
+ if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) this.prefetchQuery(defaultedOptions);
481
+ return Promise.resolve(cachedData);
482
+ }
483
+ getQueriesData(filters) {
484
+ return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
485
+ return [queryKey, state.data];
486
+ });
487
+ }
488
+ setQueryData(queryKey, updater, options) {
489
+ const defaultedOptions = this.defaultQueryOptions({ queryKey });
490
+ const prevData = this.#queryCache.get(defaultedOptions.queryHash)?.state.data;
491
+ const data = functionalUpdate(updater, prevData);
492
+ if (data === void 0) return;
493
+ return this.#queryCache.build(this, defaultedOptions).setData(data, {
494
+ ...options,
495
+ manual: true
496
+ });
497
+ }
498
+ setQueriesData(filters, updater, options) {
499
+ return notifyManager.batch(() => this.#queryCache.findAll(filters).map(({ queryKey }) => [queryKey, this.setQueryData(queryKey, updater, options)]));
500
+ }
501
+ getQueryState(queryKey) {
502
+ const options = this.defaultQueryOptions({ queryKey });
503
+ return this.#queryCache.get(options.queryHash)?.state;
504
+ }
505
+ removeQueries(filters) {
506
+ const queryCache = this.#queryCache;
507
+ notifyManager.batch(() => {
508
+ queryCache.findAll(filters).forEach((query) => {
509
+ queryCache.remove(query);
510
+ });
511
+ });
512
+ }
513
+ resetQueries(filters, options) {
514
+ const queryCache = this.#queryCache;
515
+ return notifyManager.batch(() => {
516
+ queryCache.findAll(filters).forEach((query) => {
517
+ query.reset();
518
+ });
519
+ return this.refetchQueries({
520
+ type: "active",
521
+ ...filters
522
+ }, options);
523
+ });
524
+ }
525
+ cancelQueries(filters, cancelOptions = {}) {
526
+ const defaultedCancelOptions = {
527
+ revert: true,
528
+ ...cancelOptions
529
+ };
530
+ const promises = notifyManager.batch(() => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions)));
531
+ return Promise.all(promises).then(noop).catch(noop);
532
+ }
533
+ invalidateQueries(filters, options = {}) {
534
+ return notifyManager.batch(() => {
535
+ this.#queryCache.findAll(filters).forEach((query) => {
536
+ query.invalidate();
537
+ });
538
+ if (filters?.refetchType === "none") return Promise.resolve();
539
+ return this.refetchQueries({
540
+ ...filters,
541
+ type: filters?.refetchType ?? filters?.type ?? "active"
542
+ }, options);
543
+ });
544
+ }
545
+ refetchQueries(filters, options = {}) {
546
+ const fetchOptions = {
547
+ ...options,
548
+ cancelRefetch: options.cancelRefetch ?? true
549
+ };
550
+ const promises = notifyManager.batch(() => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
551
+ let promise = query.fetch(void 0, fetchOptions);
552
+ if (!fetchOptions.throwOnError) promise = promise.catch(noop);
553
+ return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
554
+ }));
555
+ return Promise.all(promises).then(noop);
556
+ }
557
+ fetchQuery(options) {
558
+ const defaultedOptions = this.defaultQueryOptions(options);
559
+ if (defaultedOptions.retry === void 0) defaultedOptions.retry = false;
560
+ const query = this.#queryCache.build(this, defaultedOptions);
561
+ return query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query)) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
562
+ }
563
+ prefetchQuery(options) {
564
+ return this.fetchQuery(options).then(noop).catch(noop);
565
+ }
566
+ fetchInfiniteQuery(options) {
567
+ options._type = "infinite";
568
+ return this.fetchQuery(options);
569
+ }
570
+ prefetchInfiniteQuery(options) {
571
+ return this.fetchInfiniteQuery(options).then(noop).catch(noop);
572
+ }
573
+ ensureInfiniteQueryData(options) {
574
+ options._type = "infinite";
575
+ return this.ensureQueryData(options);
576
+ }
577
+ resumePausedMutations() {
578
+ if (onlineManager.isOnline()) return this.#mutationCache.resumePausedMutations();
579
+ return Promise.resolve();
580
+ }
581
+ getQueryCache() {
582
+ return this.#queryCache;
583
+ }
584
+ getMutationCache() {
585
+ return this.#mutationCache;
586
+ }
587
+ getDefaultOptions() {
588
+ return this.#defaultOptions;
589
+ }
590
+ setDefaultOptions(options) {
591
+ this.#defaultOptions = options;
592
+ }
593
+ setQueryDefaults(queryKey, options) {
594
+ this.#queryDefaults.set(hashKey(queryKey), {
595
+ queryKey,
596
+ defaultOptions: options
597
+ });
598
+ }
599
+ getQueryDefaults(queryKey) {
600
+ const defaults = [...this.#queryDefaults.values()];
601
+ const result = {};
602
+ defaults.forEach((queryDefault) => {
603
+ if (partialMatchKey(queryKey, queryDefault.queryKey)) Object.assign(result, queryDefault.defaultOptions);
604
+ });
605
+ return result;
606
+ }
607
+ setMutationDefaults(mutationKey, options) {
608
+ this.#mutationDefaults.set(hashKey(mutationKey), {
609
+ mutationKey,
610
+ defaultOptions: options
611
+ });
612
+ }
613
+ getMutationDefaults(mutationKey) {
614
+ const defaults = [...this.#mutationDefaults.values()];
615
+ const result = {};
616
+ defaults.forEach((queryDefault) => {
617
+ if (partialMatchKey(mutationKey, queryDefault.mutationKey)) Object.assign(result, queryDefault.defaultOptions);
618
+ });
619
+ return result;
620
+ }
621
+ defaultQueryOptions(options) {
622
+ if (options._defaulted) return options;
623
+ const defaultedOptions = {
624
+ ...this.#defaultOptions.queries,
625
+ ...this.getQueryDefaults(options.queryKey),
626
+ ...options,
627
+ _defaulted: true
628
+ };
629
+ if (!defaultedOptions.queryHash) defaultedOptions.queryHash = hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions);
630
+ if (defaultedOptions.refetchOnReconnect === void 0) defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
631
+ if (defaultedOptions.throwOnError === void 0) defaultedOptions.throwOnError = !!defaultedOptions.suspense;
632
+ if (!defaultedOptions.networkMode && defaultedOptions.persister) defaultedOptions.networkMode = "offlineFirst";
633
+ if (defaultedOptions.queryFn === skipToken) defaultedOptions.enabled = false;
634
+ return defaultedOptions;
635
+ }
636
+ defaultMutationOptions(options) {
637
+ if (options?._defaulted) return options;
638
+ return {
639
+ ...this.#defaultOptions.mutations,
640
+ ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
641
+ ...options,
642
+ _defaulted: true
643
+ };
644
+ }
645
+ clear() {
646
+ this.#queryCache.clear();
647
+ this.#mutationCache.clear();
648
+ }
649
+ };
650
+ function QueryClientProvider($$renderer, $$props) {
651
+ $$renderer.component(($$renderer) => {
652
+ const { client = new QueryClient(), children } = $$props;
653
+ setQueryClientContext(client);
654
+ onDestroy(() => {
655
+ client.unmount();
656
+ });
657
+ children($$renderer);
658
+ $$renderer.push(`<!---->`);
659
+ });
660
+ }
661
+ var bars = Array(12).fill(0);
662
+ function Loader($$renderer, $$props) {
663
+ $$renderer.component(($$renderer) => {
664
+ "use strict";
665
+ let { visible, class: className } = $$props;
666
+ $$renderer.push(`<div${attr_class(clsx$1(["sonner-loading-wrapper", className].filter(Boolean).join(" ")))}${attr("data-visible", visible)}><div class="sonner-spinner"><!--[-->`);
667
+ const each_array = ensure_array_like(bars);
668
+ for (let i = 0, $$length = each_array.length; i < $$length; i++) {
669
+ each_array[i];
670
+ $$renderer.push(`<div class="sonner-loading-bar"></div>`);
671
+ }
672
+ $$renderer.push(`<!--]--></div></div>`);
673
+ });
674
+ }
675
+ function isAction(action) {
676
+ return action.label !== void 0;
677
+ }
678
+ function useDocumentHidden() {
679
+ let current = typeof document !== "undefined" ? document.hidden : false;
680
+ return { get current() {
681
+ return current;
682
+ } };
683
+ }
684
+ var TOAST_LIFETIME$1 = 4e3;
685
+ var GAP$1 = 14;
686
+ var TIME_BEFORE_UNMOUNT = 200;
687
+ var DEFAULT_TOAST_CLASSES = {
688
+ toast: "",
689
+ title: "",
690
+ description: "",
691
+ loader: "",
692
+ closeButton: "",
693
+ cancelButton: "",
694
+ actionButton: "",
695
+ action: "",
696
+ warning: "",
697
+ error: "",
698
+ success: "",
699
+ default: "",
700
+ info: "",
701
+ loading: ""
702
+ };
703
+ function Toast($$renderer, $$props) {
704
+ $$renderer.component(($$renderer) => {
705
+ let { toast, index, expanded, invert: invertFromToaster, position, visibleToasts, expandByDefault, closeButton: closeButtonFromToaster, interacting, cancelButtonStyle = "", actionButtonStyle = "", duration: durationFromToaster, descriptionClass = "", classes: classesProp, unstyled = false, loadingIcon, successIcon, errorIcon, warningIcon, closeIcon, infoIcon, defaultRichColors = false, swipeDirections: swipeDirectionsProp, closeButtonAriaLabel, pauseWhenPageIsHidden, $$slots, $$events, ...restProps } = $$props;
706
+ const defaultClasses = { ...DEFAULT_TOAST_CLASSES };
707
+ let mounted = false;
708
+ let removed = false;
709
+ let swiping = false;
710
+ let swipeOut = false;
711
+ let isSwiped = false;
712
+ let offsetBeforeRemove = 0;
713
+ let initialHeight = 0;
714
+ toast.duration;
715
+ let swipeOutDirection = null;
716
+ const isFront = derived(() => index === 0);
717
+ const isVisible = derived(() => index + 1 <= visibleToasts);
718
+ const toastType = derived(() => toast.type);
719
+ const dismissible = derived(() => toast.dismissible !== void 0 ? toast.dismissible !== false : toast.dismissable !== false);
720
+ const toastClass = derived(() => toast.class || "");
721
+ const toastDescriptionClass = derived(() => toast.descriptionClass || "");
722
+ const heightIndex = derived(() => toastState.heights.findIndex((height) => height.toastId === toast.id) || 0);
723
+ const closeButton = derived(() => toast.closeButton ?? closeButtonFromToaster);
724
+ derived(() => toast.duration ?? durationFromToaster ?? TOAST_LIFETIME$1);
725
+ const coords = derived(() => position.split("-"));
726
+ const toastsHeightBefore = derived(() => toastState.heights.reduce((prev, curr, reducerIndex) => {
727
+ if (reducerIndex >= heightIndex()) return prev;
728
+ return prev + curr.height;
729
+ }, 0));
730
+ useDocumentHidden();
731
+ const invert = derived(() => toast.invert || invertFromToaster);
732
+ const disabled = derived(() => toastType() === "loading");
733
+ const classes = derived(() => ({
734
+ ...defaultClasses,
735
+ ...classesProp
736
+ }));
737
+ derived(() => toast.title);
738
+ derived(() => toast.description);
739
+ const offset = derived(() => Math.round(heightIndex() * GAP$1 + toastsHeightBefore()));
740
+ function deleteToast() {
741
+ removed = true;
742
+ offsetBeforeRemove = offset();
743
+ toastState.removeHeight(toast.id);
744
+ setTimeout(() => {
745
+ toastState.remove(toast.id);
746
+ }, TIME_BEFORE_UNMOUNT);
747
+ }
748
+ derived(() => toast.promise && toastType() === "loading" || toast.duration === Number.POSITIVE_INFINITY);
749
+ const icon = derived(() => {
750
+ if (toast.icon) return toast.icon;
751
+ if (toastType() === "success") return successIcon;
752
+ if (toastType() === "error") return errorIcon;
753
+ if (toastType() === "warning") return warningIcon;
754
+ if (toastType() === "info") return infoIcon;
755
+ if (toastType() === "loading") return loadingIcon;
756
+ return null;
757
+ });
758
+ function LoadingIcon($$renderer) {
759
+ if (loadingIcon) {
760
+ $$renderer.push("<!--[0-->");
761
+ $$renderer.push(`<div${attr_class(clsx$1(cn(classes()?.loader, toast?.classes?.loader, "sonner-loader")))}${attr("data-visible", toastType() === "loading")}>`);
762
+ loadingIcon($$renderer);
763
+ $$renderer.push(`<!----></div>`);
764
+ } else {
765
+ $$renderer.push("<!--[-1-->");
766
+ Loader($$renderer, {
767
+ class: cn(classes()?.loader, toast.classes?.loader),
768
+ visible: toastType() === "loading"
769
+ });
770
+ }
771
+ $$renderer.push(`<!--]-->`);
772
+ }
773
+ $$renderer.push(`<li${attr("tabindex", 0)}${attr_class(clsx$1(cn(restProps.class, toastClass(), classes()?.toast, toast?.classes?.toast, classes()?.[toastType()], toast?.classes?.[toastType()])))}${attr("aria-live", toast.important ? "assertive" : "polite")} aria-atomic="true" data-sonner-toast=""${attr("data-rich-colors", toast.richColors ?? defaultRichColors)}${attr("data-styled", !(toast.component || toast.unstyled || unstyled))}${attr("data-mounted", mounted)}${attr("data-promise", Boolean(toast.promise))}${attr("data-swiped", isSwiped)}${attr("data-removed", removed)}${attr("data-visible", isVisible())}${attr("data-y-position", coords()[0])}${attr("data-x-position", coords()[1])}${attr("data-index", index)}${attr("data-front", isFront())}${attr("data-swiping", swiping)}${attr("data-dismissible", dismissible())}${attr("data-type", toastType())}${attr("data-invert", invert())}${attr("data-swipe-out", swipeOut)}${attr("data-swipe-direction", swipeOutDirection)}${attr("data-expanded", Boolean(expanded || expandByDefault && mounted))}${attr_style(`${restProps.style} ${toast.style}`, {
774
+ "--index": index,
775
+ "--toasts-before": index,
776
+ "--z-index": toastState.toasts.length - index,
777
+ "--offset": `${removed ? offsetBeforeRemove : offset()}px`,
778
+ "--initial-height": expandByDefault ? "auto" : `${initialHeight}px`
779
+ })}>`);
780
+ if (closeButton() && !toast.component && toastType() !== "loading" && closeIcon !== null) {
781
+ $$renderer.push("<!--[0-->");
782
+ $$renderer.push(`<button${attr("aria-label", closeButtonAriaLabel)}${attr("data-disabled", disabled())} data-close-button=""${attr_class(clsx$1(cn(classes()?.closeButton, toast?.classes?.closeButton)))}>`);
783
+ closeIcon?.($$renderer);
784
+ $$renderer.push(`<!----></button>`);
785
+ } else $$renderer.push("<!--[-1-->");
786
+ $$renderer.push(`<!--]--> `);
787
+ if (toast.component) {
788
+ $$renderer.push("<!--[0-->");
789
+ const Component = toast.component;
790
+ if (Component) {
791
+ $$renderer.push("<!--[-->");
792
+ Component($$renderer, spread_props([toast.componentProps, { closeToast: deleteToast }]));
793
+ $$renderer.push("<!--]-->");
794
+ } else {
795
+ $$renderer.push("<!--[!-->");
796
+ $$renderer.push("<!--]-->");
797
+ }
798
+ } else {
799
+ $$renderer.push("<!--[-1-->");
800
+ if (toastType() || toast.icon || toast.promise && toast.icon !== null && icon() !== null || toast.icon) {
801
+ $$renderer.push("<!--[0-->");
802
+ $$renderer.push(`<div data-icon=""${attr_class(clsx$1(cn(classes()?.icon, toast?.classes?.icon)))}>`);
803
+ if (toast.promise || toastType() === "loading") {
804
+ $$renderer.push("<!--[0-->");
805
+ if (toast.icon) {
806
+ $$renderer.push("<!--[0-->");
807
+ if (toast.icon) {
808
+ $$renderer.push("<!--[-->");
809
+ toast.icon($$renderer, {});
810
+ $$renderer.push("<!--]-->");
811
+ } else {
812
+ $$renderer.push("<!--[!-->");
813
+ $$renderer.push("<!--]-->");
814
+ }
815
+ } else {
816
+ $$renderer.push("<!--[-1-->");
817
+ LoadingIcon($$renderer);
818
+ }
819
+ $$renderer.push(`<!--]-->`);
820
+ } else $$renderer.push("<!--[-1-->");
821
+ $$renderer.push(`<!--]--> `);
822
+ if (toast.type !== "loading") {
823
+ $$renderer.push("<!--[0-->");
824
+ if (toast.icon) {
825
+ $$renderer.push("<!--[0-->");
826
+ if (toast.icon) {
827
+ $$renderer.push("<!--[-->");
828
+ toast.icon($$renderer, {});
829
+ $$renderer.push("<!--]-->");
830
+ } else {
831
+ $$renderer.push("<!--[!-->");
832
+ $$renderer.push("<!--]-->");
833
+ }
834
+ } else if (toastType() === "success") {
835
+ $$renderer.push("<!--[1-->");
836
+ successIcon?.($$renderer);
837
+ $$renderer.push(`<!---->`);
838
+ } else if (toastType() === "error") {
839
+ $$renderer.push("<!--[2-->");
840
+ errorIcon?.($$renderer);
841
+ $$renderer.push(`<!---->`);
842
+ } else if (toastType() === "warning") {
843
+ $$renderer.push("<!--[3-->");
844
+ warningIcon?.($$renderer);
845
+ $$renderer.push(`<!---->`);
846
+ } else if (toastType() === "info") {
847
+ $$renderer.push("<!--[4-->");
848
+ infoIcon?.($$renderer);
849
+ $$renderer.push(`<!---->`);
850
+ } else $$renderer.push("<!--[-1-->");
851
+ $$renderer.push(`<!--]-->`);
852
+ } else $$renderer.push("<!--[-1-->");
853
+ $$renderer.push(`<!--]--></div>`);
854
+ } else $$renderer.push("<!--[-1-->");
855
+ $$renderer.push(`<!--]--> <div data-content=""${attr_class(clsx$1(cn(classes()?.content, toast?.classes?.content)))}><div data-title=""${attr_class(clsx$1(cn(classes()?.title, toast?.classes?.title)))}>`);
856
+ if (toast.title) {
857
+ $$renderer.push("<!--[0-->");
858
+ if (typeof toast.title !== "string") {
859
+ $$renderer.push("<!--[0-->");
860
+ const Title = toast.title;
861
+ if (Title) {
862
+ $$renderer.push("<!--[-->");
863
+ Title($$renderer, spread_props([toast.componentProps]));
864
+ $$renderer.push("<!--]-->");
865
+ } else {
866
+ $$renderer.push("<!--[!-->");
867
+ $$renderer.push("<!--]-->");
868
+ }
869
+ } else {
870
+ $$renderer.push("<!--[-1-->");
871
+ $$renderer.push(`${escape_html(toast.title)}`);
872
+ }
873
+ $$renderer.push(`<!--]-->`);
874
+ } else $$renderer.push("<!--[-1-->");
875
+ $$renderer.push(`<!--]--></div> `);
876
+ if (toast.description) {
877
+ $$renderer.push("<!--[0-->");
878
+ $$renderer.push(`<div data-description=""${attr_class(clsx$1(cn(descriptionClass, toastDescriptionClass(), classes()?.description, toast.classes?.description)))}>`);
879
+ if (typeof toast.description !== "string") {
880
+ $$renderer.push("<!--[0-->");
881
+ const Description = toast.description;
882
+ if (Description) {
883
+ $$renderer.push("<!--[-->");
884
+ Description($$renderer, spread_props([toast.componentProps]));
885
+ $$renderer.push("<!--]-->");
886
+ } else {
887
+ $$renderer.push("<!--[!-->");
888
+ $$renderer.push("<!--]-->");
889
+ }
890
+ } else {
891
+ $$renderer.push("<!--[-1-->");
892
+ $$renderer.push(`${escape_html(toast.description)}`);
893
+ }
894
+ $$renderer.push(`<!--]--></div>`);
895
+ } else $$renderer.push("<!--[-1-->");
896
+ $$renderer.push(`<!--]--></div> `);
897
+ if (toast.cancel) {
898
+ $$renderer.push("<!--[0-->");
899
+ if (typeof toast.cancel === "function") {
900
+ $$renderer.push("<!--[0-->");
901
+ if (toast.cancel) {
902
+ $$renderer.push("<!--[-->");
903
+ toast.cancel($$renderer, {});
904
+ $$renderer.push("<!--]-->");
905
+ } else {
906
+ $$renderer.push("<!--[!-->");
907
+ $$renderer.push("<!--]-->");
908
+ }
909
+ } else if (isAction(toast.cancel)) {
910
+ $$renderer.push("<!--[1-->");
911
+ $$renderer.push(`<button data-button="" data-cancel=""${attr_style(toast.cancelButtonStyle ?? cancelButtonStyle)}${attr_class(clsx$1(cn(classes()?.cancelButton, toast?.classes?.cancelButton)))}>${escape_html(toast.cancel.label)}</button>`);
912
+ } else $$renderer.push("<!--[-1-->");
913
+ $$renderer.push(`<!--]-->`);
914
+ } else $$renderer.push("<!--[-1-->");
915
+ $$renderer.push(`<!--]--> `);
916
+ if (toast.action) {
917
+ $$renderer.push("<!--[0-->");
918
+ if (typeof toast.action === "function") {
919
+ $$renderer.push("<!--[0-->");
920
+ if (toast.action) {
921
+ $$renderer.push("<!--[-->");
922
+ toast.action($$renderer, {});
923
+ $$renderer.push("<!--]-->");
924
+ } else {
925
+ $$renderer.push("<!--[!-->");
926
+ $$renderer.push("<!--]-->");
927
+ }
928
+ } else if (isAction(toast.action)) {
929
+ $$renderer.push("<!--[1-->");
930
+ $$renderer.push(`<button data-button=""${attr_style(toast.actionButtonStyle ?? actionButtonStyle)}${attr_class(clsx$1(cn(classes()?.actionButton, toast?.classes?.actionButton)))}>${escape_html(toast.action.label)}</button>`);
931
+ } else $$renderer.push("<!--[-1-->");
932
+ $$renderer.push(`<!--]-->`);
933
+ } else $$renderer.push("<!--[-1-->");
934
+ $$renderer.push(`<!--]-->`);
935
+ }
936
+ $$renderer.push(`<!--]--></li>`);
937
+ });
938
+ }
939
+ function SuccessIcon($$renderer) {
940
+ $$renderer.push(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);
941
+ }
942
+ function ErrorIcon($$renderer) {
943
+ $$renderer.push(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);
944
+ }
945
+ function WarningIcon($$renderer) {
946
+ $$renderer.push(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);
947
+ }
948
+ function InfoIcon($$renderer) {
949
+ $$renderer.push(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);
950
+ }
951
+ function CloseIcon($$renderer) {
952
+ $$renderer.push(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);
953
+ }
954
+ var VISIBLE_TOASTS_AMOUNT = 3;
955
+ var VIEWPORT_OFFSET = "24px";
956
+ var MOBILE_VIEWPORT_OFFSET = "16px";
957
+ var TOAST_LIFETIME = 4e3;
958
+ var TOAST_WIDTH = 356;
959
+ var GAP = 14;
960
+ var DARK = "dark";
961
+ var LIGHT = "light";
962
+ function getOffsetObject(defaultOffset, mobileOffset) {
963
+ const styles = {};
964
+ [defaultOffset, mobileOffset].forEach((offset, index) => {
965
+ const isMobile = index === 1;
966
+ const prefix = isMobile ? "--mobile-offset" : "--offset";
967
+ const defaultValue = isMobile ? MOBILE_VIEWPORT_OFFSET : VIEWPORT_OFFSET;
968
+ function assignAll(offset) {
969
+ [
970
+ "top",
971
+ "right",
972
+ "bottom",
973
+ "left"
974
+ ].forEach((key) => {
975
+ styles[`${prefix}-${key}`] = typeof offset === "number" ? `${offset}px` : offset;
976
+ });
977
+ }
978
+ if (typeof offset === "number" || typeof offset === "string") assignAll(offset);
979
+ else if (typeof offset === "object") [
980
+ "top",
981
+ "right",
982
+ "bottom",
983
+ "left"
984
+ ].forEach((key) => {
985
+ const value = offset[key];
986
+ if (value === void 0) styles[`${prefix}-${key}`] = defaultValue;
987
+ else styles[`${prefix}-${key}`] = typeof value === "number" ? `${value}px` : value;
988
+ });
989
+ else assignAll(defaultValue);
990
+ });
991
+ return styles;
992
+ }
993
+ function Toaster($$renderer, $$props) {
994
+ $$renderer.component(($$renderer) => {
995
+ function getInitialTheme(t) {
996
+ if (t !== "system") return t;
997
+ if (typeof window !== "undefined") {
998
+ if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) return DARK;
999
+ return LIGHT;
1000
+ }
1001
+ return LIGHT;
1002
+ }
1003
+ let { invert = false, position = "bottom-right", hotkey = ["altKey", "KeyT"], expand = false, closeButton = false, offset = VIEWPORT_OFFSET, mobileOffset = MOBILE_VIEWPORT_OFFSET, theme = "light", richColors = false, duration = TOAST_LIFETIME, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions = {}, dir = "auto", gap = GAP, pauseWhenPageIsHidden = false, loadingIcon: loadingIconProp, successIcon: successIconProp, errorIcon: errorIconProp, warningIcon: warningIconProp, closeIcon: closeIconProp, infoIcon: infoIconProp, containerAriaLabel = "Notifications", class: className, closeButtonAriaLabel = "Close toast", onblur, onfocus, onmouseenter, onmousemove, onmouseleave, ondragend, onpointerdown, onpointerup, $$slots, $$events, ...restProps } = $$props;
1004
+ function getDocumentDirection() {
1005
+ if (dir !== "auto") return dir;
1006
+ if (typeof window === "undefined") return "ltr";
1007
+ if (typeof document === "undefined") return "ltr";
1008
+ const dirAttribute = document.documentElement.getAttribute("dir");
1009
+ if (dirAttribute === "auto" || !dirAttribute) {
1010
+ run(() => dir = window.getComputedStyle(document.documentElement).direction ?? "ltr");
1011
+ return dir;
1012
+ }
1013
+ run(() => dir = dirAttribute);
1014
+ return dirAttribute;
1015
+ }
1016
+ const possiblePositions = derived(() => Array.from(new Set([position, ...toastState.toasts.filter((toast) => toast.position).map((toast) => toast.position)].filter(Boolean))));
1017
+ let expanded = false;
1018
+ let interacting = false;
1019
+ let actualTheme = getInitialTheme(theme);
1020
+ const hotkeyLabel = derived(() => hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, ""));
1021
+ sonnerContext.set(new SonnerState());
1022
+ $$renderer.push(`<section${attr("aria-label", `${stringify(containerAriaLabel)} ${stringify(hotkeyLabel())}`)}${attr("tabindex", -1)} aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1tz765t">`);
1023
+ if (toastState.toasts.length > 0) {
1024
+ $$renderer.push("<!--[0-->");
1025
+ $$renderer.push(`<!--[-->`);
1026
+ const each_array = ensure_array_like(possiblePositions());
1027
+ for (let index = 0, $$length = each_array.length; index < $$length; index++) {
1028
+ let position = each_array[index];
1029
+ const [y, x] = position.split("-");
1030
+ const offsetObject = getOffsetObject(offset, mobileOffset);
1031
+ $$renderer.push(`<ol${attributes({
1032
+ tabindex: -1,
1033
+ dir: getDocumentDirection(),
1034
+ class: clsx$1(className),
1035
+ "data-sonner-toaster": true,
1036
+ "data-sonner-theme": actualTheme,
1037
+ "data-y-position": y,
1038
+ "data-x-position": x,
1039
+ style: restProps.style,
1040
+ ...restProps
1041
+ }, "svelte-1tz765t", void 0, {
1042
+ "--front-toast-height": `${toastState.heights[0]?.height}px`,
1043
+ "--width": `${TOAST_WIDTH}px`,
1044
+ "--gap": `${gap}px`,
1045
+ "--offset-top": offsetObject["--offset-top"],
1046
+ "--offset-right": offsetObject["--offset-right"],
1047
+ "--offset-bottom": offsetObject["--offset-bottom"],
1048
+ "--offset-left": offsetObject["--offset-left"],
1049
+ "--mobile-offset-top": offsetObject["--mobile-offset-top"],
1050
+ "--mobile-offset-right": offsetObject["--mobile-offset-right"],
1051
+ "--mobile-offset-bottom": offsetObject["--mobile-offset-bottom"],
1052
+ "--mobile-offset-left": offsetObject["--mobile-offset-left"]
1053
+ })}><!--[-->`);
1054
+ const each_array_1 = ensure_array_like(toastState.toasts.filter((toast) => !toast.position && index === 0 || toast.position === position));
1055
+ for (let index = 0, $$length = each_array_1.length; index < $$length; index++) {
1056
+ let toast = each_array_1[index];
1057
+ {
1058
+ function successIcon($$renderer) {
1059
+ if (successIconProp) {
1060
+ $$renderer.push("<!--[0-->");
1061
+ successIconProp?.($$renderer);
1062
+ $$renderer.push(`<!---->`);
1063
+ } else if (successIconProp !== null) {
1064
+ $$renderer.push("<!--[1-->");
1065
+ SuccessIcon($$renderer, {});
1066
+ } else $$renderer.push("<!--[-1-->");
1067
+ $$renderer.push(`<!--]-->`);
1068
+ }
1069
+ function errorIcon($$renderer) {
1070
+ if (errorIconProp) {
1071
+ $$renderer.push("<!--[0-->");
1072
+ errorIconProp?.($$renderer);
1073
+ $$renderer.push(`<!---->`);
1074
+ } else if (errorIconProp !== null) {
1075
+ $$renderer.push("<!--[1-->");
1076
+ ErrorIcon($$renderer, {});
1077
+ } else $$renderer.push("<!--[-1-->");
1078
+ $$renderer.push(`<!--]-->`);
1079
+ }
1080
+ function warningIcon($$renderer) {
1081
+ if (warningIconProp) {
1082
+ $$renderer.push("<!--[0-->");
1083
+ warningIconProp?.($$renderer);
1084
+ $$renderer.push(`<!---->`);
1085
+ } else if (warningIconProp !== null) {
1086
+ $$renderer.push("<!--[1-->");
1087
+ WarningIcon($$renderer, {});
1088
+ } else $$renderer.push("<!--[-1-->");
1089
+ $$renderer.push(`<!--]-->`);
1090
+ }
1091
+ function infoIcon($$renderer) {
1092
+ if (infoIconProp) {
1093
+ $$renderer.push("<!--[0-->");
1094
+ infoIconProp?.($$renderer);
1095
+ $$renderer.push(`<!---->`);
1096
+ } else if (infoIconProp !== null) {
1097
+ $$renderer.push("<!--[1-->");
1098
+ InfoIcon($$renderer, {});
1099
+ } else $$renderer.push("<!--[-1-->");
1100
+ $$renderer.push(`<!--]-->`);
1101
+ }
1102
+ function closeIcon($$renderer) {
1103
+ if (closeIconProp) {
1104
+ $$renderer.push("<!--[0-->");
1105
+ closeIconProp?.($$renderer);
1106
+ $$renderer.push(`<!---->`);
1107
+ } else if (closeIconProp !== null) {
1108
+ $$renderer.push("<!--[1-->");
1109
+ CloseIcon($$renderer, {});
1110
+ } else $$renderer.push("<!--[-1-->");
1111
+ $$renderer.push(`<!--]-->`);
1112
+ }
1113
+ Toast($$renderer, {
1114
+ index,
1115
+ toast,
1116
+ defaultRichColors: richColors,
1117
+ duration: toastOptions?.duration ?? duration,
1118
+ class: toastOptions?.class ?? "",
1119
+ descriptionClass: toastOptions?.descriptionClass || "",
1120
+ invert,
1121
+ visibleToasts,
1122
+ closeButton,
1123
+ interacting,
1124
+ position,
1125
+ style: toastOptions?.style ?? "",
1126
+ classes: toastOptions.classes || {},
1127
+ unstyled: toastOptions.unstyled ?? false,
1128
+ cancelButtonStyle: toastOptions?.cancelButtonStyle ?? "",
1129
+ actionButtonStyle: toastOptions?.actionButtonStyle ?? "",
1130
+ closeButtonAriaLabel: toastOptions?.closeButtonAriaLabel ?? closeButtonAriaLabel,
1131
+ expandByDefault: expand,
1132
+ expanded,
1133
+ pauseWhenPageIsHidden,
1134
+ loadingIcon: loadingIconProp,
1135
+ successIcon,
1136
+ errorIcon,
1137
+ warningIcon,
1138
+ infoIcon,
1139
+ closeIcon,
1140
+ $$slots: {
1141
+ successIcon: true,
1142
+ errorIcon: true,
1143
+ warningIcon: true,
1144
+ infoIcon: true,
1145
+ closeIcon: true
1146
+ }
1147
+ });
1148
+ }
1149
+ }
1150
+ $$renderer.push(`<!--]--></ol>`);
1151
+ }
1152
+ $$renderer.push(`<!--]-->`);
1153
+ } else $$renderer.push("<!--[-1-->");
1154
+ $$renderer.push(`<!--]--></section>`);
1155
+ });
1156
+ }
1157
+ var defaultWindow$1 = void 0;
1158
+ /**
1159
+ * Handles getting the active element in a document or shadow root.
1160
+ * If the active element is within a shadow root, it will traverse the shadow root
1161
+ * to find the active element.
1162
+ * If not, it will return the active element in the document.
1163
+ *
1164
+ * @param document A document or shadow root to get the active element from.
1165
+ * @returns The active element in the document or shadow root.
1166
+ */
1167
+ function getActiveElement$1(document) {
1168
+ let activeElement = document.activeElement;
1169
+ while (activeElement?.shadowRoot) {
1170
+ const node = activeElement.shadowRoot.activeElement;
1171
+ if (node === activeElement) break;
1172
+ else activeElement = node;
1173
+ }
1174
+ return activeElement;
1175
+ }
1176
+ var ActiveElement$1 = class {
1177
+ #document;
1178
+ #subscribe;
1179
+ constructor(options = {}) {
1180
+ const { window = defaultWindow$1, document = window?.document } = options;
1181
+ if (window === void 0) return;
1182
+ this.#document = document;
1183
+ this.#subscribe = createSubscriber((update) => {
1184
+ const cleanupFocusIn = on(window, "focusin", update);
1185
+ const cleanupFocusOut = on(window, "focusout", update);
1186
+ return () => {
1187
+ cleanupFocusIn();
1188
+ cleanupFocusOut();
1189
+ };
1190
+ });
1191
+ }
1192
+ get current() {
1193
+ this.#subscribe?.();
1194
+ if (!this.#document) return null;
1195
+ return getActiveElement$1(this.#document);
1196
+ }
1197
+ };
1198
+ new ActiveElement$1();
1199
+ function runWatcher$1(sources, flush, effect, options = {}) {
1200
+ const { lazy = false } = options;
1201
+ }
1202
+ function watch$1(sources, effect, options) {
1203
+ runWatcher$1(sources, "post", effect, options);
1204
+ }
1205
+ function watchPre$1(sources, effect, options) {
1206
+ runWatcher$1(sources, "pre", effect, options);
1207
+ }
1208
+ watch$1.pre = watchPre$1;
1209
+ function watchOnce$1(source, effect) {}
1210
+ function watchOncePre$1(source, effect) {}
1211
+ watchOnce$1.pre = watchOncePre$1;
1212
+ function getStorage(storageType, window) {
1213
+ switch (storageType) {
1214
+ case "local": return window.localStorage;
1215
+ case "session": return window.sessionStorage;
1216
+ }
1217
+ }
1218
+ /**
1219
+ * Creates reactive state that is persisted and synchronized across browser sessions and tabs using Web Storage.
1220
+ * @param key The unique key used to store the state in the storage.
1221
+ * @param initialValue The initial value of the state if not already present in the storage.
1222
+ * @param options Configuration options including storage type, serializer for complex data types, and whether to sync state changes across tabs.
1223
+ *
1224
+ * @see {@link https://runed.dev/docs/utilities/persisted-state}
1225
+ */
1226
+ var PersistedState = class {
1227
+ #current;
1228
+ #key;
1229
+ #serializer;
1230
+ #storage;
1231
+ #subscribe;
1232
+ #version = 0;
1233
+ constructor(key, initialValue, options = {}) {
1234
+ const { storage: storageType = "local", serializer = {
1235
+ serialize: JSON.stringify,
1236
+ deserialize: JSON.parse
1237
+ }, syncTabs = true, window = defaultWindow$1 } = options;
1238
+ this.#current = initialValue;
1239
+ this.#key = key;
1240
+ this.#serializer = serializer;
1241
+ if (window === void 0) return;
1242
+ const storage = getStorage(storageType, window);
1243
+ this.#storage = storage;
1244
+ const existingValue = storage.getItem(key);
1245
+ if (existingValue !== null) this.#current = this.#deserialize(existingValue);
1246
+ else this.#serialize(initialValue);
1247
+ if (syncTabs && storageType === "local") this.#subscribe = createSubscriber(() => {
1248
+ return on(window, "storage", this.#handleStorageEvent);
1249
+ });
1250
+ }
1251
+ get current() {
1252
+ this.#subscribe?.();
1253
+ this.#version;
1254
+ const root = this.#deserialize(this.#storage?.getItem(this.#key)) ?? this.#current;
1255
+ const proxies = /* @__PURE__ */ new WeakMap();
1256
+ const proxy = (value) => {
1257
+ if (value === null || value?.constructor.name === "Date" || typeof value !== "object") return value;
1258
+ let p = proxies.get(value);
1259
+ if (!p) {
1260
+ p = new Proxy(value, {
1261
+ get: (target, property) => {
1262
+ this.#version;
1263
+ return proxy(Reflect.get(target, property));
1264
+ },
1265
+ set: (target, property, value) => {
1266
+ this.#version += 1;
1267
+ Reflect.set(target, property, value);
1268
+ this.#serialize(root);
1269
+ return true;
1270
+ }
1271
+ });
1272
+ proxies.set(value, p);
1273
+ }
1274
+ return p;
1275
+ };
1276
+ return proxy(root);
1277
+ }
1278
+ set current(newValue) {
1279
+ this.#serialize(newValue);
1280
+ this.#version += 1;
1281
+ }
1282
+ #handleStorageEvent = (event) => {
1283
+ if (event.key !== this.#key || event.newValue === null) return;
1284
+ this.#current = this.#deserialize(event.newValue);
1285
+ this.#version += 1;
1286
+ };
1287
+ #deserialize(value) {
1288
+ try {
1289
+ return this.#serializer.deserialize(value);
1290
+ } catch (error) {
1291
+ console.error(`Error when parsing "${value}" from persisted store "${this.#key}"`, error);
1292
+ return;
1293
+ }
1294
+ }
1295
+ #serialize(value) {
1296
+ try {
1297
+ if (value != void 0) this.#storage?.setItem(this.#key, this.#serializer.serialize(value));
1298
+ } catch (error) {
1299
+ console.error(`Error when writing value from persisted store "${this.#key}" to ${this.#storage}`, error);
1300
+ }
1301
+ }
1302
+ };
1303
+ function debounce(fn, delay) {
1304
+ let timeoutId;
1305
+ let lastResolve = null;
1306
+ return (...args) => {
1307
+ return new Promise((resolve) => {
1308
+ if (lastResolve) lastResolve(void 0);
1309
+ lastResolve = resolve;
1310
+ clearTimeout(timeoutId);
1311
+ timeoutId = setTimeout(async () => {
1312
+ const result = await fn(...args);
1313
+ if (lastResolve) {
1314
+ lastResolve(result);
1315
+ lastResolve = null;
1316
+ }
1317
+ }, delay);
1318
+ });
1319
+ };
1320
+ }
1321
+ function throttle(fn, delay) {
1322
+ let lastRun = 0;
1323
+ let lastPromise = null;
1324
+ return (...args) => {
1325
+ const now = Date.now();
1326
+ if (lastRun && now - lastRun < delay) return lastPromise ?? Promise.resolve(void 0);
1327
+ lastRun = now;
1328
+ lastPromise = fn(...args);
1329
+ return lastPromise;
1330
+ };
1331
+ }
1332
+ function runResource(source, fetcher, options = {}, effectFn) {
1333
+ const { lazy = false, once = false, initialValue, debounce: debounceTime, throttle: throttleTime } = options;
1334
+ let current = initialValue;
1335
+ let loading = false;
1336
+ let error = void 0;
1337
+ let cleanupFns = [];
1338
+ const runCleanup = () => {
1339
+ cleanupFns.forEach((fn) => fn());
1340
+ cleanupFns = [];
1341
+ };
1342
+ const onCleanup = (fn) => {
1343
+ cleanupFns = [...cleanupFns, fn];
1344
+ };
1345
+ const baseFetcher = async (value, previousValue, refetching = false) => {
1346
+ try {
1347
+ loading = true;
1348
+ error = void 0;
1349
+ runCleanup();
1350
+ const controller = new AbortController();
1351
+ onCleanup(() => controller.abort());
1352
+ const result = await fetcher(value, previousValue, {
1353
+ data: current,
1354
+ refetching,
1355
+ onCleanup,
1356
+ signal: controller.signal
1357
+ });
1358
+ current = result;
1359
+ return result;
1360
+ } catch (e) {
1361
+ if (!(e instanceof DOMException && e.name === "AbortError")) error = e;
1362
+ return;
1363
+ } finally {
1364
+ loading = false;
1365
+ }
1366
+ };
1367
+ const runFetcher = debounceTime ? debounce(baseFetcher, debounceTime) : throttleTime ? throttle(baseFetcher, throttleTime) : baseFetcher;
1368
+ const sources = Array.isArray(source) ? source : [source];
1369
+ let prevValues;
1370
+ effectFn((values, previousValues) => {
1371
+ if (once && prevValues) return;
1372
+ if (prevValues && JSON.stringify(values) === JSON.stringify(prevValues)) return;
1373
+ prevValues = values;
1374
+ runFetcher(Array.isArray(source) ? values : values[0], Array.isArray(source) ? previousValues : previousValues?.[0]);
1375
+ }, { lazy });
1376
+ return {
1377
+ get current() {
1378
+ return current;
1379
+ },
1380
+ get loading() {
1381
+ return loading;
1382
+ },
1383
+ get error() {
1384
+ return error;
1385
+ },
1386
+ mutate: (value) => {
1387
+ current = value;
1388
+ },
1389
+ refetch: (info) => {
1390
+ const values = sources.map((s) => s());
1391
+ return runFetcher(Array.isArray(source) ? values : values[0], Array.isArray(source) ? values : values[0], info ?? true);
1392
+ }
1393
+ };
1394
+ }
1395
+ function resource(source, fetcher, options) {
1396
+ return runResource(source, fetcher, options, (fn, options) => {
1397
+ const sources = Array.isArray(source) ? source : [source];
1398
+ const getters = () => sources.map((s) => s());
1399
+ watch$1(getters, (values, previousValues) => {
1400
+ fn(values, previousValues ?? []);
1401
+ }, options);
1402
+ });
1403
+ }
1404
+ function resourcePre(source, fetcher, options) {
1405
+ return runResource(source, fetcher, options, (fn, options) => {
1406
+ const sources = Array.isArray(source) ? source : [source];
1407
+ const getter = () => sources.map((s) => s());
1408
+ watch$1.pre(getter, (values, previousValues) => {
1409
+ fn(values, previousValues ?? []);
1410
+ }, options);
1411
+ });
1412
+ }
1413
+ resource.pre = resourcePre;
1414
+ /**
1415
+ * Sanitizes an array of classnames by removing any empty strings.
1416
+ */
1417
+ function sanitizeClassNames(classNames) {
1418
+ return classNames.filter((className) => className.length > 0);
1419
+ }
1420
+ var noopStorage = {
1421
+ getItem: (_key) => null,
1422
+ setItem: (_key, _value) => {}
1423
+ };
1424
+ var isBrowser = typeof document !== "undefined";
1425
+ function isFunction(value) {
1426
+ return typeof value === "function";
1427
+ }
1428
+ function isObject(value) {
1429
+ return value !== null && typeof value === "object";
1430
+ }
1431
+ var BoxSymbol = Symbol("box");
1432
+ var isWritableSymbol = Symbol("is-writable");
1433
+ function isBox(value) {
1434
+ return isObject(value) && BoxSymbol in value;
1435
+ }
1436
+ /**
1437
+ * @returns Whether the value is a WritableBox
1438
+ *
1439
+ * @see {@link https://runed.dev/docs/functions/box}
1440
+ */
1441
+ function isWritableBox(value) {
1442
+ return box.isBox(value) && isWritableSymbol in value;
1443
+ }
1444
+ function box(initialValue) {
1445
+ let current = initialValue;
1446
+ return {
1447
+ [BoxSymbol]: true,
1448
+ [isWritableSymbol]: true,
1449
+ get current() {
1450
+ return current;
1451
+ },
1452
+ set current(v) {
1453
+ current = v;
1454
+ }
1455
+ };
1456
+ }
1457
+ function boxWith(getter, setter) {
1458
+ const derived$1 = derived(getter);
1459
+ if (setter) return {
1460
+ [BoxSymbol]: true,
1461
+ [isWritableSymbol]: true,
1462
+ get current() {
1463
+ return derived$1();
1464
+ },
1465
+ set current(v) {
1466
+ setter(v);
1467
+ }
1468
+ };
1469
+ return {
1470
+ [BoxSymbol]: true,
1471
+ get current() {
1472
+ return getter();
1473
+ }
1474
+ };
1475
+ }
1476
+ function boxFrom(value) {
1477
+ if (box.isBox(value)) return value;
1478
+ if (isFunction(value)) return box.with(value);
1479
+ return box(value);
1480
+ }
1481
+ /**
1482
+ * Function that gets an object of boxes, and returns an object of reactive values
1483
+ *
1484
+ * @example
1485
+ * const count = box(0)
1486
+ * const flat = box.flatten({ count, double: box.with(() => count.current) })
1487
+ * // type of flat is { count: number, readonly double: number }
1488
+ *
1489
+ * @see {@link https://runed.dev/docs/functions/box}
1490
+ */
1491
+ function boxFlatten(boxes) {
1492
+ return Object.entries(boxes).reduce((acc, [key, b]) => {
1493
+ if (!box.isBox(b)) return Object.assign(acc, { [key]: b });
1494
+ if (box.isWritableBox(b)) Object.defineProperty(acc, key, {
1495
+ get() {
1496
+ return b.current;
1497
+ },
1498
+ set(v) {
1499
+ b.current = v;
1500
+ }
1501
+ });
1502
+ else Object.defineProperty(acc, key, { get() {
1503
+ return b.current;
1504
+ } });
1505
+ return acc;
1506
+ }, {});
1507
+ }
1508
+ /**
1509
+ * Function that converts a box to a readonly box.
1510
+ *
1511
+ * @example
1512
+ * const count = box(0) // WritableBox<number>
1513
+ * const countReadonly = box.readonly(count) // ReadableBox<number>
1514
+ *
1515
+ * @see {@link https://runed.dev/docs/functions/box}
1516
+ */
1517
+ function toReadonlyBox(b) {
1518
+ if (!box.isWritableBox(b)) return b;
1519
+ return {
1520
+ [BoxSymbol]: true,
1521
+ get current() {
1522
+ return b.current;
1523
+ }
1524
+ };
1525
+ }
1526
+ box.from = boxFrom;
1527
+ box.with = boxWith;
1528
+ box.flatten = boxFlatten;
1529
+ box.readonly = toReadonlyBox;
1530
+ box.isBox = isBox;
1531
+ box.isWritableBox = isWritableBox;
1532
+ function createParser(matcher, replacer) {
1533
+ const regex = RegExp(matcher, "g");
1534
+ return (str) => {
1535
+ if (typeof str !== "string") throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
1536
+ if (!str.match(regex)) return str;
1537
+ return str.replace(regex, replacer);
1538
+ };
1539
+ }
1540
+ var camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
1541
+ function styleToCSS(styleObj) {
1542
+ if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
1543
+ return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
1544
+ }
1545
+ function styleToString(style = {}) {
1546
+ return styleToCSS(style).replace("\n", " ");
1547
+ }
1548
+ styleToString({
1549
+ position: "absolute",
1550
+ width: "1px",
1551
+ height: "1px",
1552
+ padding: "0",
1553
+ margin: "-1px",
1554
+ overflow: "hidden",
1555
+ clip: "rect(0, 0, 0, 0)",
1556
+ whiteSpace: "nowrap",
1557
+ borderWidth: "0",
1558
+ transform: "translateX(-100%)"
1559
+ });
1560
+ var defaultWindow = void 0;
1561
+ /**
1562
+ * Handles getting the active element in a document or shadow root.
1563
+ * If the active element is within a shadow root, it will traverse the shadow root
1564
+ * to find the active element.
1565
+ * If not, it will return the active element in the document.
1566
+ *
1567
+ * @param document A document or shadow root to get the active element from.
1568
+ * @returns The active element in the document or shadow root.
1569
+ */
1570
+ function getActiveElement(document) {
1571
+ let activeElement = document.activeElement;
1572
+ while (activeElement?.shadowRoot) {
1573
+ const node = activeElement.shadowRoot.activeElement;
1574
+ if (node === activeElement) break;
1575
+ else activeElement = node;
1576
+ }
1577
+ return activeElement;
1578
+ }
1579
+ var ActiveElement = class {
1580
+ #document;
1581
+ #subscribe;
1582
+ constructor(options = {}) {
1583
+ const { window = defaultWindow, document = window?.document } = options;
1584
+ if (window === void 0) return;
1585
+ this.#document = document;
1586
+ this.#subscribe = createSubscriber((update) => {
1587
+ const cleanupFocusIn = on(window, "focusin", update);
1588
+ const cleanupFocusOut = on(window, "focusout", update);
1589
+ return () => {
1590
+ cleanupFocusIn();
1591
+ cleanupFocusOut();
1592
+ };
1593
+ });
1594
+ }
1595
+ get current() {
1596
+ this.#subscribe?.();
1597
+ if (!this.#document) return null;
1598
+ return getActiveElement(this.#document);
1599
+ }
1600
+ };
1601
+ new ActiveElement();
1602
+ function runWatcher(sources, flush, effect, options = {}) {
1603
+ const { lazy = false } = options;
1604
+ }
1605
+ function watch(sources, effect, options) {
1606
+ runWatcher(sources, "post", effect, options);
1607
+ }
1608
+ function watchPre(sources, effect, options) {
1609
+ runWatcher(sources, "pre", effect, options);
1610
+ }
1611
+ watch.pre = watchPre;
1612
+ function watchOnce(source, effect) {}
1613
+ function watchOncePre(source, effect) {}
1614
+ watchOnce.pre = watchOncePre;
1615
+ var modeStorageKey = box("mode-watcher-mode");
1616
+ var themeStorageKey = box("mode-watcher-theme");
1617
+ /**
1618
+ * the modes that are supported, used for validation & type
1619
+ * derivation
1620
+ */
1621
+ var modes = [
1622
+ "dark",
1623
+ "light",
1624
+ "system"
1625
+ ];
1626
+ function isValidMode(value) {
1627
+ if (typeof value !== "string") return false;
1628
+ return modes.includes(value);
1629
+ }
1630
+ var UserPrefersMode = class {
1631
+ #defaultValue = "system";
1632
+ #storage = isBrowser ? localStorage : noopStorage;
1633
+ #initialValue = this.#storage.getItem(modeStorageKey.current);
1634
+ #value = isValidMode(this.#initialValue) ? this.#initialValue : this.#defaultValue;
1635
+ #persisted = this.#makePersisted();
1636
+ #makePersisted(value = this.#value) {
1637
+ return new PersistedState(modeStorageKey.current, value, { serializer: {
1638
+ serialize: (v) => v,
1639
+ deserialize: (v) => {
1640
+ if (isValidMode(v)) return v;
1641
+ return this.#defaultValue;
1642
+ }
1643
+ } });
1644
+ }
1645
+ constructor() {}
1646
+ get current() {
1647
+ return this.#persisted.current;
1648
+ }
1649
+ set current(newValue) {
1650
+ this.#persisted.current = newValue;
1651
+ }
1652
+ };
1653
+ var SystemPrefersMode = class {
1654
+ #defaultValue = void 0;
1655
+ #track = true;
1656
+ #current = this.#defaultValue;
1657
+ #mediaQueryState = typeof window !== "undefined" && typeof window.matchMedia === "function" ? new MediaQuery("prefers-color-scheme: light") : { current: false };
1658
+ query() {
1659
+ if (!isBrowser) return;
1660
+ this.#current = this.#mediaQueryState.current ? "light" : "dark";
1661
+ }
1662
+ tracking(active) {
1663
+ this.#track = active;
1664
+ }
1665
+ constructor() {
1666
+ this.query = this.query.bind(this);
1667
+ this.tracking = this.tracking.bind(this);
1668
+ }
1669
+ get current() {
1670
+ return this.#current;
1671
+ }
1672
+ };
1673
+ /**
1674
+ * Writable state that represents the user's preferred mode
1675
+ * (`"dark"`, `"light"` or `"system"`)
1676
+ */
1677
+ var userPrefersMode = new UserPrefersMode();
1678
+ /**
1679
+ * Readable store that represents the system's preferred mode (`"dark"`, `"light"` or `undefined`)
1680
+ */
1681
+ var systemPrefersMode = new SystemPrefersMode();
1682
+ var CustomTheme = class {
1683
+ #storage = isBrowser ? localStorage : noopStorage;
1684
+ #initialValue = this.#storage.getItem(themeStorageKey.current);
1685
+ #value = this.#initialValue === null || this.#initialValue === void 0 ? "" : this.#initialValue;
1686
+ #persisted = this.#makePersisted();
1687
+ #makePersisted(value = this.#value) {
1688
+ return new PersistedState(themeStorageKey.current, value, { serializer: {
1689
+ serialize: (v) => {
1690
+ if (typeof v !== "string") return "";
1691
+ return v;
1692
+ },
1693
+ deserialize: (v) => v
1694
+ } });
1695
+ }
1696
+ constructor() {}
1697
+ /**
1698
+ * The current theme.
1699
+ * @returns The current theme.
1700
+ */
1701
+ get current() {
1702
+ return this.#persisted.current;
1703
+ }
1704
+ /**
1705
+ * Set the current theme.
1706
+ * @param newValue The new theme to set.
1707
+ */
1708
+ set current(newValue) {
1709
+ this.#persisted.current = newValue;
1710
+ }
1711
+ };
1712
+ /**
1713
+ * A custom theme to apply and persist to the root `html` element.
1714
+ */
1715
+ var customTheme = new CustomTheme();
1716
+ var timeoutAction;
1717
+ var timeoutEnable;
1718
+ /**
1719
+ * Whether this is the first time the function has been
1720
+ * called, which will be true for the initial load, where
1721
+ * we shouldn't need to disable any transitions, as there
1722
+ * is nothing to transition from.
1723
+ */
1724
+ var hasLoaded = false;
1725
+ var styleElement = null;
1726
+ function getStyleElement() {
1727
+ if (styleElement) return styleElement;
1728
+ styleElement = document.createElement("style");
1729
+ styleElement.appendChild(document.createTextNode(`* {
1730
+ -webkit-transition: none !important;
1731
+ -moz-transition: none !important;
1732
+ -o-transition: none !important;
1733
+ -ms-transition: none !important;
1734
+ transition: none !important;
1735
+ }`));
1736
+ return styleElement;
1737
+ }
1738
+ function withoutTransition(action, synchronous = false) {
1739
+ if (typeof document === "undefined") return;
1740
+ if (!hasLoaded) {
1741
+ hasLoaded = true;
1742
+ action();
1743
+ return;
1744
+ }
1745
+ if (typeof window !== "undefined" && window.__vitest_worker__) {
1746
+ action();
1747
+ return;
1748
+ }
1749
+ clearTimeout(timeoutAction);
1750
+ clearTimeout(timeoutEnable);
1751
+ const style = getStyleElement();
1752
+ const disable = () => document.head.appendChild(style);
1753
+ const enable = () => {
1754
+ if (style.parentNode) document.head.removeChild(style);
1755
+ };
1756
+ function executeAction() {
1757
+ action();
1758
+ window.requestAnimationFrame(enable);
1759
+ }
1760
+ if (typeof window.requestAnimationFrame !== "undefined") {
1761
+ disable();
1762
+ if (synchronous) executeAction();
1763
+ else window.requestAnimationFrame(() => {
1764
+ executeAction();
1765
+ });
1766
+ return;
1767
+ }
1768
+ disable();
1769
+ timeoutAction = window.setTimeout(() => {
1770
+ action();
1771
+ timeoutEnable = window.setTimeout(enable, 16);
1772
+ }, 16);
1773
+ }
1774
+ var themeColors = box(void 0);
1775
+ var disableTransitions = box(true);
1776
+ var synchronousModeChanges = box(false);
1777
+ var darkClassNames = box([]);
1778
+ var lightClassNames = box([]);
1779
+ function createDerivedMode() {
1780
+ const current = derived(() => {
1781
+ if (!isBrowser) return void 0;
1782
+ const derivedMode = userPrefersMode.current === "system" ? systemPrefersMode.current : userPrefersMode.current;
1783
+ const sanitizedDarkClassNames = sanitizeClassNames(darkClassNames.current);
1784
+ const sanitizedLightClassNames = sanitizeClassNames(lightClassNames.current);
1785
+ function update() {
1786
+ const htmlEl = document.documentElement;
1787
+ const themeColorEl = document.querySelector("meta[name=\"theme-color\"]");
1788
+ if (derivedMode === "light") {
1789
+ if (sanitizedDarkClassNames.length) htmlEl.classList.remove(...sanitizedDarkClassNames);
1790
+ if (sanitizedLightClassNames.length) htmlEl.classList.add(...sanitizedLightClassNames);
1791
+ htmlEl.style.colorScheme = "light";
1792
+ if (themeColorEl && themeColors.current) themeColorEl.setAttribute("content", themeColors.current.light);
1793
+ } else {
1794
+ if (sanitizedLightClassNames.length) htmlEl.classList.remove(...sanitizedLightClassNames);
1795
+ if (sanitizedDarkClassNames.length) htmlEl.classList.add(...sanitizedDarkClassNames);
1796
+ htmlEl.style.colorScheme = "dark";
1797
+ if (themeColorEl && themeColors.current) themeColorEl.setAttribute("content", themeColors.current.dark);
1798
+ }
1799
+ }
1800
+ if (disableTransitions.current) withoutTransition(update, synchronousModeChanges.current);
1801
+ else update();
1802
+ return derivedMode;
1803
+ });
1804
+ return { get current() {
1805
+ return current();
1806
+ } };
1807
+ }
1808
+ function createDerivedTheme() {
1809
+ const current = derived(() => {
1810
+ customTheme.current;
1811
+ if (!isBrowser) return void 0;
1812
+ function update() {
1813
+ document.documentElement.setAttribute("data-theme", customTheme.current);
1814
+ }
1815
+ if (disableTransitions.current) withoutTransition(update, run(() => synchronousModeChanges.current));
1816
+ else update();
1817
+ return customTheme.current;
1818
+ });
1819
+ return { get current() {
1820
+ return current();
1821
+ } };
1822
+ }
1823
+ /**
1824
+ * Derived store that represents the current mode (`"dark"`, `"light"` or `undefined`)
1825
+ */
1826
+ var derivedMode = createDerivedMode();
1827
+ createDerivedTheme();
1828
+ function Circle_check($$renderer, $$props) {
1829
+ let { $$slots, $$events, ...props } = $$props;
1830
+ Icon($$renderer, spread_props([
1831
+ { name: "circle-check" },
1832
+ props,
1833
+ { iconNode: [["circle", {
1834
+ "cx": "12",
1835
+ "cy": "12",
1836
+ "r": "10"
1837
+ }], ["path", { "d": "m9 12 2 2 4-4" }]] }
1838
+ ]));
1839
+ }
1840
+ function Octagon_x($$renderer, $$props) {
1841
+ let { $$slots, $$events, ...props } = $$props;
1842
+ Icon($$renderer, spread_props([
1843
+ { name: "octagon-x" },
1844
+ props,
1845
+ { iconNode: [
1846
+ ["path", { "d": "m15 9-6 6" }],
1847
+ ["path", { "d": "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z" }],
1848
+ ["path", { "d": "m9 9 6 6" }]
1849
+ ] }
1850
+ ]));
1851
+ }
1852
+ function Info($$renderer, $$props) {
1853
+ let { $$slots, $$events, ...props } = $$props;
1854
+ Icon($$renderer, spread_props([
1855
+ { name: "info" },
1856
+ props,
1857
+ { iconNode: [
1858
+ ["circle", {
1859
+ "cx": "12",
1860
+ "cy": "12",
1861
+ "r": "10"
1862
+ }],
1863
+ ["path", { "d": "M12 16v-4" }],
1864
+ ["path", { "d": "M12 8h.01" }]
1865
+ ] }
1866
+ ]));
1867
+ }
1868
+ function Triangle_alert($$renderer, $$props) {
1869
+ let { $$slots, $$events, ...props } = $$props;
1870
+ Icon($$renderer, spread_props([
1871
+ { name: "triangle-alert" },
1872
+ props,
1873
+ { iconNode: [
1874
+ ["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
1875
+ ["path", { "d": "M12 9v4" }],
1876
+ ["path", { "d": "M12 17h.01" }]
1877
+ ] }
1878
+ ]));
1879
+ }
1880
+ function Sonner_1($$renderer, $$props) {
1881
+ $$renderer.component(($$renderer) => {
1882
+ let { $$slots, $$events, ...restProps } = $$props;
1883
+ {
1884
+ function loadingIcon($$renderer) {
1885
+ Loader_circle($$renderer, { class: "size-4 animate-spin" });
1886
+ }
1887
+ function successIcon($$renderer) {
1888
+ Circle_check($$renderer, { class: "size-4" });
1889
+ }
1890
+ function errorIcon($$renderer) {
1891
+ Octagon_x($$renderer, { class: "size-4" });
1892
+ }
1893
+ function infoIcon($$renderer) {
1894
+ Info($$renderer, { class: "size-4" });
1895
+ }
1896
+ function warningIcon($$renderer) {
1897
+ Triangle_alert($$renderer, { class: "size-4" });
1898
+ }
1899
+ Toaster($$renderer, spread_props([
1900
+ {
1901
+ theme: derivedMode.current,
1902
+ class: "toaster group",
1903
+ style: "--normal-bg: var(--color-popover); --normal-text: var(--color-popover-foreground); --normal-border: var(--color-border);"
1904
+ },
1905
+ restProps,
1906
+ {
1907
+ loadingIcon,
1908
+ successIcon,
1909
+ errorIcon,
1910
+ infoIcon,
1911
+ warningIcon,
1912
+ $$slots: {
1913
+ loadingIcon: true,
1914
+ successIcon: true,
1915
+ errorIcon: true,
1916
+ infoIcon: true,
1917
+ warningIcon: true
1918
+ }
1919
+ }
1920
+ ]));
1921
+ }
1922
+ });
1923
+ }
1924
+ function _layout($$renderer, $$props) {
1925
+ $$renderer.component(($$renderer) => {
1926
+ let { children } = $$props;
1927
+ const queryClient = new QueryClient({ defaultOptions: { queries: { enabled: false } } });
1928
+ Sonner_1($$renderer, {});
1929
+ $$renderer.push(`<!----> `);
1930
+ QueryClientProvider($$renderer, {
1931
+ client: queryClient,
1932
+ children: ($$renderer) => {
1933
+ children($$renderer);
1934
+ $$renderer.push(`<!---->`);
1935
+ },
1936
+ $$slots: { default: true }
1937
+ });
1938
+ $$renderer.push(`<!---->`);
1939
+ });
1940
+ }
1941
+ //#endregion
1942
+ export { _layout as default };
1943
+
1944
+ //# sourceMappingURL=_layout.svelte-CP4jFwsK.js.map