@nanoforge-dev/editor 0.0.2-beta.0ea19be → 0.0.2-beta.3d4991c
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.
- package/dist/client/_app/immutable/assets/0.yoWygKZi.css +1 -0
- package/dist/client/_app/immutable/assets/0.yoWygKZi.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.yoWygKZi.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BS47D1Yd2.js → BFWbalF82.js} +1 -1
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BFWbalF82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DT8Ddh1L2.js → BLf9jss52.js} +1 -1
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BLf9jss52.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CKei9xPI2.js → BSNB_Uck2.js} +2 -2
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Fu4roQAh.js → BWNegMLP.js} +1 -1
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWNegMLP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{orCHVlgT.js → BesjqVrk.js} +1 -1
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BesjqVrk.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BWDRzheF2.js → Bhafduqk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bhafduqk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{xhfENL-e.js → C048Bjn7.js} +7 -7
- package/dist/client/_app/immutable/chunks/C048Bjn7.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C048Bjn7.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BpGMGp28.js → CJx6yPZh.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJx6yPZh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CJx6yPZh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{uo5fvlDn2.js → CJxKUjL-2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DH-ThjiG2.js → CVQMNY_q2.js} +2 -2
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Bk9DeFcz2.js → CbW3yNTi.js} +1 -1
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CbW3yNTi.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js +3 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CvkNa2t_.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CnhOha0Z2.js → D2PipAw82.js} +1 -1
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D2PipAw82.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BzGBrbo22.js → D6-zOYYZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{B4w9-fYM2.js → DGDm8Q4w2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DFXoGGM32.js → DRQF0pcw2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C83DJP9w2.js → DYPPS7OK2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BZqFHUa32.js → DaisyxdZ2.js} +1 -1
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BlGyHMDZ.js → DtcTX-YU.js} +1 -1
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DtcTX-YU.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BG-gp5_B.js → Dy4Pjuql.js} +1 -1
- package/dist/client/_app/immutable/chunks/Dy4Pjuql.js.br +1 -0
- package/dist/client/_app/immutable/chunks/Dy4Pjuql.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DHQLzCjY2.js → M5EMNuDS2.js} +1 -1
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{CCCR_2rp.js → NokGgZou.js} +1 -1
- package/dist/client/_app/immutable/chunks/NokGgZou.js.br +0 -0
- package/dist/client/_app/immutable/chunks/NokGgZou.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{DuDzfUqN2.js → SmrQhi1p2.js} +1 -1
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{C7bUlFLk2.js → TFu7Wn2c2.js} +1 -1
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/hoH54hVB.js +6 -0
- package/dist/client/_app/immutable/chunks/hoH54hVB.js.br +0 -0
- package/dist/client/_app/immutable/chunks/hoH54hVB.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BwWAgYKi2.js → mESnenQM2.js} +1 -1
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mESnenQM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js +0 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.br +1 -0
- package/dist/client/_app/immutable/chunks/nE3VUeYj.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{mRVEsFly2.js → uIj7mV9x2.js} +1 -1
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/xmyAstTO.js +1 -0
- package/dist/client/_app/immutable/chunks/xmyAstTO.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xmyAstTO.js.gz +0 -0
- package/dist/client/_app/immutable/entry/{app.CyMVjflN.js → app.BrYxTqmC.js} +2 -2
- package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js +1 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.br +1 -0
- package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{0.DvEZu2JO.js → 0.CsYGMzJU.js} +1 -1
- package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{1.BoI80J69.js → 1.CfDpZeft.js} +1 -1
- package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.br +2 -0
- package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/{10.BvZJgse0.js → 11.L_9ZmasQ.js} +1 -1
- package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.br +0 -0
- package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js +1 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js +6 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js.gz +0 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/client/_app/version.json.br +0 -0
- package/dist/client/_app/version.json.gz +0 -0
- package/dist/server/chunks/{0-B3EMf1vM.js → 0-Bcww7pkn.js} +6 -6
- package/dist/server/chunks/{0-B3EMf1vM.js.map → 0-Bcww7pkn.js.map} +1 -1
- package/dist/server/chunks/{1-CTv0GZBK.js → 1-BIiCLN21.js} +6 -6
- package/dist/server/chunks/{1-CTv0GZBK.js.map → 1-BIiCLN21.js.map} +1 -1
- package/dist/server/chunks/{9-DPn3d8kr.js → 10-_cwipoJm.js} +5 -5
- package/dist/server/chunks/10-_cwipoJm.js.map +1 -0
- package/dist/server/chunks/11-C0olQKl9.js +22 -0
- package/dist/server/chunks/11-C0olQKl9.js.map +1 -0
- package/dist/server/chunks/{2-Dvto9WRP.js → 2-BvUnZSQz.js} +10 -10
- package/dist/server/chunks/{2-Dvto9WRP.js.map → 2-BvUnZSQz.js.map} +1 -1
- package/dist/server/chunks/{3-CGg-W5r9.js → 3-DdpBg6Re.js} +10 -10
- package/dist/server/chunks/{3-CGg-W5r9.js.map → 3-DdpBg6Re.js.map} +1 -1
- package/dist/server/chunks/{4-BYQgShv3.js → 4-B2tSZCU9.js} +3 -3
- package/dist/server/chunks/{4-BYQgShv3.js.map → 4-B2tSZCU9.js.map} +1 -1
- package/dist/server/chunks/{5-B4IXyXqv.js → 5-D3-J9iUP.js} +3 -3
- package/dist/server/chunks/{5-B4IXyXqv.js.map → 5-D3-J9iUP.js.map} +1 -1
- package/dist/server/chunks/{6-DH_IMDRv.js → 6-DDoqG8iB.js} +3 -3
- package/dist/server/chunks/{6-DH_IMDRv.js.map → 6-DDoqG8iB.js.map} +1 -1
- package/dist/server/chunks/7-CjZUt-gt.js +18 -0
- package/dist/server/chunks/7-CjZUt-gt.js.map +1 -0
- package/dist/server/chunks/8-ZgtdnItY.js +91 -0
- package/dist/server/chunks/8-ZgtdnItY.js.map +1 -0
- package/dist/server/chunks/{8-CRTa48Fz.js → 9-6rlPfdHX.js} +5 -5
- package/dist/server/chunks/{8-CRTa48Fz.js.map → 9-6rlPfdHX.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-uX7XiB9K.js → _layout.svelte-By6MJeec.js} +5 -5
- package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-DDyc2obG.js → _page.svelte-B7V_s1iG.js} +7 -7
- package/dist/server/chunks/{_page.svelte-DDyc2obG.js.map → _page.svelte-B7V_s1iG.js.map} +1 -1
- package/dist/server/chunks/{_page.svelte-BP2tLMJU.js → _page.svelte-BHLa7YUI.js} +6 -6
- package/dist/server/chunks/_page.svelte-BHLa7YUI.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-CJwOZYBT.js → _page.svelte-Chqj_iRU.js} +269 -105
- package/dist/server/chunks/_page.svelte-Chqj_iRU.js.map +1 -0
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-BwyH-SDr.js} +2 -2
- package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-BwyH-SDr.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-DlC2sxcm.js → _server.ts-DJwl8--i.js} +15 -3
- package/dist/server/chunks/_server.ts-DJwl8--i.js.map +1 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js +13 -0
- package/dist/server/chunks/_server.ts-kFT5a-9I.js.map +1 -0
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
- package/dist/server/chunks/{client-BuQN5Wt-.js → client-Dse9iwN0.js} +4 -4
- package/dist/server/chunks/client-Dse9iwN0.js.map +1 -0
- package/dist/server/chunks/{error-D6RCgJwO.js → error-DXhNNMk1.js} +271 -152
- package/dist/server/chunks/error-DXhNNMk1.js.map +1 -0
- package/dist/server/chunks/{error.svelte-BOeVE8bj.js → error.svelte-DIiTgKhP.js} +3 -3
- package/dist/server/chunks/error.svelte-DIiTgKhP.js.map +1 -0
- package/dist/server/chunks/{exports-CWOtdr_a.js → exports-D0uQzbjy.js} +4 -4
- package/dist/server/chunks/{exports-CWOtdr_a.js.map → exports-D0uQzbjy.js.map} +1 -1
- package/dist/server/chunks/{hooks.server-D89vZOIS.js → hooks.server-Bksu95DH.js} +6 -6
- package/dist/server/chunks/hooks.server-Bksu95DH.js.map +1 -0
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js → hooks.universal-bt2XJEN9.js} +2 -2
- package/dist/server/chunks/{hooks.universal-DhGFdBkK.js.map → hooks.universal-bt2XJEN9.js.map} +1 -1
- package/dist/server/chunks/{events-Bhh2w-5S.js → index-server-BthNUqCR.js} +1006 -1005
- package/dist/server/chunks/index-server-BthNUqCR.js.map +1 -0
- package/dist/server/chunks/{internal-DsA4iYdx.js → internal-vr3mPczx.js} +2 -2
- package/dist/server/chunks/{internal-DsA4iYdx.js.map → internal-vr3mPczx.js.map} +1 -1
- package/dist/server/chunks/{internal2-BEwefI5h.js → internal2-yWeEySiO.js} +22 -15
- package/dist/server/chunks/internal2-yWeEySiO.js.map +1 -0
- package/dist/server/chunks/{loader-circle-CFNm9vip.js → loader-circle-C4T0os4K.js} +5 -5
- package/dist/server/chunks/loader-circle-C4T0os4K.js.map +1 -0
- package/dist/server/chunks/{logo-BKCw1zwb.js → logo-C6QUIUff.js} +4 -4
- package/dist/server/chunks/logo-C6QUIUff.js.map +1 -0
- package/dist/server/chunks/{project-loader-XjKlOuo0.js → project-loader-C-zkX4VK.js} +4 -4
- package/dist/server/chunks/project-loader-C-zkX4VK.js.map +1 -0
- package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-DTxrh7_f.js} +184 -115
- package/dist/server/chunks/request-handler-DTxrh7_f.js.map +1 -0
- package/dist/server/chunks/{runtime-CDHWD9vo.js → runtime-26c7QsEi.js} +9 -9
- package/dist/server/chunks/runtime-26c7QsEi.js.map +1 -0
- package/dist/server/chunks/{schemas-gfyGqv7Z.js → schemas-D4Qq7Kpe.js} +348 -303
- package/dist/server/chunks/schemas-D4Qq7Kpe.js.map +1 -0
- package/dist/server/chunks/{session-DLCjVGKo.js → session-By0bbFhg.js} +2 -2
- package/dist/server/chunks/{session-DLCjVGKo.js.map → session-By0bbFhg.js.map} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
- package/dist/server/chunks/{state-BNiB0oph.js → state-dxymBwXR.js} +3 -3
- package/dist/server/chunks/state-dxymBwXR.js.map +1 -0
- package/dist/server/index.js +368 -353
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +48 -24
- package/dist/server/manifest.js.map +1 -1
- package/package.json +18 -16
- package/dist/client/_app/immutable/assets/0.Jb4fu3YW.css +0 -1
- package/dist/client/_app/immutable/assets/0.Jb4fu3YW.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.Jb4fu3YW.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BG-gp5_B.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BG-gp5_B.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BWDRzheF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BZqFHUa32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpGMGp28.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpGMGp28.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +0 -3
- package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BzGBrbo22.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/C83DJP9w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CCCR_2rp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CCCR_2rp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DFXoGGM32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DN_0fFRn.js +0 -6
- package/dist/client/_app/immutable/chunks/DN_0fFRn.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DN_0fFRn.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/L3zfqVc3.js +0 -1
- package/dist/client/_app/immutable/chunks/L3zfqVc3.js.br +0 -0
- package/dist/client/_app/immutable/chunks/L3zfqVc3.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js +0 -3
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
- package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
- package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/xhfENL-e.js.br +0 -0
- package/dist/client/_app/immutable/chunks/xhfENL-e.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CyMVjflN.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CyMVjflN.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.styUYAaP.js +0 -1
- package/dist/client/_app/immutable/entry/start.styUYAaP.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.styUYAaP.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.DvEZu2JO.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.DvEZu2JO.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.BoI80J69.js.br +0 -4
- package/dist/client/_app/immutable/nodes/1.BoI80J69.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.BvZJgse0.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.BvZJgse0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js +0 -1
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.ChCDCV0k.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js +0 -6
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.BhOG1SDn.js.gz +0 -0
- package/dist/server/chunks/10-B_z_-eOa.js +0 -22
- package/dist/server/chunks/10-B_z_-eOa.js.map +0 -1
- package/dist/server/chunks/7-CPMeoSUO.js +0 -98
- package/dist/server/chunks/7-CPMeoSUO.js.map +0 -1
- package/dist/server/chunks/9-DPn3d8kr.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
- package/dist/server/chunks/_page.svelte-BP2tLMJU.js.map +0 -1
- package/dist/server/chunks/_page.svelte-CJwOZYBT.js.map +0 -1
- package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +0 -1
- package/dist/server/chunks/client-BuQN5Wt-.js.map +0 -1
- package/dist/server/chunks/error-D6RCgJwO.js.map +0 -1
- package/dist/server/chunks/error.svelte-BOeVE8bj.js.map +0 -1
- package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
- package/dist/server/chunks/hooks.server-D89vZOIS.js.map +0 -1
- package/dist/server/chunks/internal2-BEwefI5h.js.map +0 -1
- package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
- package/dist/server/chunks/logo-BKCw1zwb.js.map +0 -1
- package/dist/server/chunks/project-loader-XjKlOuo0.js.map +0 -1
- package/dist/server/chunks/request-handler-guINVc1G.js.map +0 -1
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +0 -1
- package/dist/server/chunks/schemas-gfyGqv7Z.js.map +0 -1
- package/dist/server/chunks/state-BNiB0oph.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js → CVaqCwHa2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.br → CVaqCwHa2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.gz → CVaqCwHa2.js.gz} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js → De2hgUGE2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.br → De2hgUGE2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.gz → De2hgUGE2.js.gz} +0 -0
- /package/dist/server/chunks/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./
|
|
1
|
+
import{h as e}from"./CJxKUjL-2.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./
|
|
1
|
+
import{h as e}from"./CJxKUjL-2.js";var t=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[`{{!--`,`--}}`]},brackets:[[`<!--`,`-->`],[`<`,`>`],[`{{`,`}}`],[`{`,`}`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`<`,close:`>`},{open:`"`,close:`"`},{open:`'`,close:`'`}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${t.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:``,tokenPostfix:``,tokenizer:{root:[[/\{\{!--/,`comment.block.start.handlebars`,`@commentBlock`],[/\{\{!/,`comment.start.handlebars`,`@comment`],[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.root`}],[/<!DOCTYPE/,`metatag.html`,`@doctype`],[/<!--/,`comment.html`,`@commentHtml`],[/(<)(\w+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)(script)/,[`delimiter.html`,{token:`tag.html`,next:`@script`}]],[/(<)(style)/,[`delimiter.html`,{token:`tag.html`,next:`@style`}]],[/(<)([:\w]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)(\w+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/\{/,`delimiter.html`],[/[^<{]+/]],doctype:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.comment`}],[/[^>]+/,`metatag.content.html`],[/>/,`metatag.html`,`@pop`]],comment:[[/\}\}/,`comment.end.handlebars`,`@pop`],[/./,`comment.content.handlebars`]],commentBlock:[[/--\}\}/,`comment.block.end.handlebars`,`@pop`],[/./,`comment.content.handlebars`]],commentHtml:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.comment`}],[/-->/,`comment.html`,`@pop`],[/[^-]+/,`comment.content.html`],[/./,`comment.content.html`]],otherTag:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.script`}],[/type/,`attribute.name`,`@scriptAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],scriptAfterType:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.scriptAfterType`}],[/=/,`delimiter`,`@scriptAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptAfterTypeEquals:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.scriptAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@scriptWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.text/javascript`,nextEmbedded:`text/javascript`}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptWithCustomType:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.scriptWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@scriptEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:`@rematch`,next:`@pop`}]],scriptEmbedded:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInEmbeddedState.scriptEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/script/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],style:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.style`}],[/type/,`attribute.name`,`@styleAfterType`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,[`delimiter.html`,`tag.html`,{token:`delimiter.html`,next:`@pop`}]]],styleAfterType:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.styleAfterType`}],[/=/,`delimiter`,`@styleAfterTypeEquals`],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleAfterTypeEquals:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.styleAfterTypeEquals`}],[/"([^"]*)"/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/'([^']*)'/,{token:`attribute.value`,switchTo:`@styleWithCustomType.$1`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.text/css`,nextEmbedded:`text/css`}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleWithCustomType:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInSimpleState.styleWithCustomType.$S2`}],[/>/,{token:`delimiter.html`,next:`@styleEmbedded.$S2`,nextEmbedded:`$S2`}],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:`@rematch`,next:`@pop`}]],styleEmbedded:[[/\{\{/,{token:`@rematch`,switchTo:`@handlebarsInEmbeddedState.styleEmbedded.$S2`,nextEmbedded:`@pop`}],[/<\/style/,{token:`@rematch`,next:`@pop`,nextEmbedded:`@pop`}]],handlebarsInSimpleState:[[/\{\{\{?/,`delimiter.handlebars`],[/\}\}\}?/,{token:`delimiter.handlebars`,switchTo:`@$S2.$S3`}],{include:`handlebarsRoot`}],handlebarsInEmbeddedState:[[/\{\{\{?/,`delimiter.handlebars`],[/\}\}\}?/,{token:`delimiter.handlebars`,switchTo:`@$S2.$S3`,nextEmbedded:`$S3`}],{include:`handlebarsRoot`}],handlebarsRoot:[[/"[^"]*"/,`string.handlebars`],[/[#/][^\s}]+/,`keyword.helper.handlebars`],[/else\b/,`keyword.helper.handlebars`],[/[\s]+/],[/[^}]/,`variable.parameter.handlebars`]]}};export{n as conf,r as language};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,J as t,U as n,W as r,_t as i,ct as a,dt as o,ht as s,ot as c,r as l,t as u}from"./CvkNa2t_.js";var d=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},f=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},p=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function ee(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function te(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function m(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function h({href:e}){return e.split(`#`)[0]}function g(){}function ne(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function re(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var _=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(y(e)),_(e,t));var v=new Map;function ie(e,t){let n=y(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=re(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ae(e,t,n){if(v.size>0){let t=y(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function y(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ne(...e)}"]`}return n}var oe=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,se=/^\/\((?:[^)]+)\)$/;function ce(e){let t=[];return{pattern:e===`/`||se.test(e)?/^\/$/:RegExp(`^${ue(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return fe(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return fe(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=oe.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return fe(e)}).join(``)}).join(``)}/?$`),params:t}}function le(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ue(e){return e.slice(1).split(`/`).filter(le)}function de(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function fe(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var pe=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function me(e,t){let n=ue(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(pe,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function he({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ce(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return de(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function ge(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function _e(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}function ve(e){let n,r=o(t=>{let r=!1,i=e.subscribe(e=>{n=e,r&&t()});return r=!0,i});function i(){return t()?(r(),n):s(e)}return`set`in e?{get current(){return i()},set current(t){e.set(t)}}:{get current(){return i()}}}var b=globalThis.__sveltekit_1ghf4ok?.base??``,ye=globalThis.__sveltekit_1ghf4ok?.assets??b??``,be=``;function xe(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return b+be+me(e[0],e[1])}var Se=`1782746742854`,Ce=`sveltekit:snapshot`,we=`sveltekit:scroll`,Te=`sveltekit:states`,x=`sveltekit:history`,S=`sveltekit:navigation`,C={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},w=location.origin;function Ee(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var De={...C,"":C.hover};function Oe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ke(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Oe(e)}}function Ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||D(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===w&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function je(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Oe(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:De[r??`off`],preload_data:De[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Me(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var Ne={v:g};function Pe(){let{set:e,subscribe:t}=i(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${ye}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==Se;return n&&(e(!0),Ne.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function D(e,t,n){return e.origin!==w||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Fe(e){}var Ie=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ie,`entries`]);var Le=new Set([...Ie]);new Set([...Le,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function Re(e){return e.filter(e=>e!=null)}function O(e,t){return e+`/`+t}function ze(e){return e instanceof d||e instanceof p?e.status:500}function Be(e){return e instanceof p?e.text:`Internal Error`}var k,A,Ve,He=l.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(l.toString()),Ue=`a:`;He?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ue)},A={current:null},Ve={current:!1}):(k=new class{#e=a({});get data(){return e(this.#e)}set data(e){c(this.#e,e)}#t=a(null);get form(){return e(this.#t)}set form(e){c(this.#t,e)}#n=a(null);get error(){return e(this.#n)}set error(e){c(this.#n,e)}#r=a({});get params(){return e(this.#r)}set params(e){c(this.#r,e)}#i=a({id:null});get route(){return e(this.#i)}set route(e){c(this.#i,e)}#a=a({});get state(){return e(this.#a)}set state(e){c(this.#a,e)}#o=a(-1);get status(){return e(this.#o)}set status(e){c(this.#o,e)}#s=a(new URL(Ue));get url(){return e(this.#s)}set url(e){c(this.#s,e)}},A=new class{#e=a(null);get current(){return e(this.#e)}set current(e){c(this.#e,e)}},Ve=new class{#e=a(!1);get current(){return e(this.#e)}set current(e){c(this.#e,e)}},Ne.v=()=>Ve.current=!0);function We(e){Object.assign(k,e)}var{onMount:Ge,tick:Ke}=u,qe=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=ge(`sveltekit:scroll`)??{},N=ge(`sveltekit:snapshot`)??{},P={url:Me({}),page:Me({}),navigating:i(null),updated:Pe()};function Je(e){M[e]=T()}function Ye(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function Xe(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(b||`/`);e&&await e.update()}}var Ze,Qe,$e,I,et,L,tt={},nt={},rt=[],it=[],R=null;function z(){R?.fork?.then(e=>e?.discard()),R=null,Q={element:void 0,href:void 0}}var at=new Map,ot=new Set,st=new Set,B=new Set,V={branch:[],error:null,url:null,nav:null},ct=!1,lt=!1,ut=!0,H=!1,U=!1,dt=!1,W=!1,G,K,q,J,ft=new Set,pt,mt=new Map,ht=new Map;async function gt(e,t,n){if(globalThis.__sveltekit_1ghf4ok.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1ghf4ok.data;for(let t in e)tt[t]=e[t];for(let e in n)tt[e]=n[e];for(let e in r)tt[e]=r[e];for(let e in t)nt[e]=t[e]}document.URL!==location.href&&(location.href=location.href),L=e,await e.hooks.init?.(),Ze=he(e),I=document.documentElement,et=t,Qe=e.nodes[0],$e=e.nodes[1],Qe(),$e(),K=history.state?.[x],q=history.state?.[S],K||(K=q=Date.now(),history.replaceState({...history.state,[x]:K,[S]:q},``));let r=M[K];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Xt(et,n)):(await Z({type:`enter`,url:Ee(L.hash?nn(new URL(location.href)):location.href),replace_state:!0}),i()),Yt()}async function _t(e=!0,t=!0){if(await(pt||=Promise.resolve()),!pt)return;pt=null;let n=J={},r=await X(V.url,!0);z();let i=new Map;if(W){for(let e of mt.values())for(let{resource:t}of e.values())t.refresh();for(let[e,t]of ht)for(let[n,{resource:r}]of t){let t=O(e,n),a=r.reconnect();a.catch(g),i.set(t,a)}}if(e){let e=k.state,i=r&&await Mt(r);if(!i||n!==J)return;if(i.type===`redirect`)return St(new URL(i.location,V.url).href,{replaceState:!0},1,n);t||(i.props.page.state=e),We(i.props.page),V={...i.state,nav:V.nav},vt(),G.$set(i.props)}else vt();let a=[];for(let e of mt.values())for(let{resource:t}of e.values())a.push(t);for(let[e,t]of ht)for(let n of t.keys()){let t=O(e,n),r=i.get(t);r&&a.push(r)}await Promise.all(a).catch(g)}function vt(){rt.length=0,W=!1}function yt(e){it.some(e=>e?.snapshot)&&(N[e]=it.map(e=>e?.snapshot?.capture()))}function bt(e){N[e]?.forEach((e,t)=>{it[t]?.snapshot?.restore(e)})}function xt(){Je(K),_e(we,M),yt(q),_e(Ce,N)}async function St(e,t,n,i){let a,o;t.invalidateAll&&z(),await Z({type:`goto`,url:Ee(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{if(t.invalidateAll){W=!0,a=new Set;for(let[e,t]of mt)for(let n of t.keys())a.add(O(e,n));o=new Set;for(let[e,t]of ht)for(let n of t.keys())o.add(O(e,n))}t.invalidate&&t.invalidate.forEach(Gt)}}),t.invalidateAll&&r().then(r).then(()=>{for(let[e,t]of mt)for(let[n,{resource:r}]of t)a?.has(O(e,n))&&r.refresh();for(let[e,t]of ht)for(let[n,{resource:r}]of t)o?.has(O(e,n))&&r.reconnect()})}async function Ct(e){if(e.id!==R?.id){z();let t={};ft.add(t),R={id:e.id,token:t,promise:Mt({...e,preload:t}).then(e=>(ft.delete(t),e.type===`loaded`&&e.state.error&&z(),e)),fork:null}}return R.promise}async function wt(e){let t=(await X(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function Tt(e,t,n){let r={params:V.params,route:{id:V.route?.id??null},url:new URL(location.href)};if(V={...e.state,nav:r},We(e.props.page),G=new L.root({target:t,props:{...e.props,stores:P,components:it},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),bt(q),n){let e={from:null,to:{...r,scroll:M[K]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};B.forEach(t=>t(e))}lt=!0}async function Y({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(b&&(e.pathname===b||e.pathname===b+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=ee(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Re(n).map(e=>e.node.component),page:tn(k)}};s!==void 0&&(l.props.form=s);let u={},d=!k,f=0;for(let e=0;e<Math.max(n.length,V.branch.length);e+=1){let t=n[e],r=V.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${f}`]=u),f+=1)}return(!V.url||e.href!==V.url.href||V.error!==a||s!==void 0&&s!==k.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:k.data}),l}async function Et({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function Dt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:lt?ae(r,i.href,t):ie(r,t)}}function Ot(e,t,n,r,i,a){if(W)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==V.params[e])return!0;for(let e of i.dependencies)if(rt.some(t=>t(new URL(e))))return!0;return!1}function kt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function At(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function jt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:tn(k),constructors:[]}}}async function Mt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(R?.id===e)return ft.delete(R.token),R.promise;let{errors:o,layouts:s,leaf:c}=i,l=[...s,c];o.forEach(e=>e?.().catch(g)),l.forEach(e=>e?.[1]().catch(g));let u=V.url?e!==Lt(V.url):!1,p=V.route?i.id!==V.route.id:!1,ee=At(V.url,n),te=!1,m=l.map(async(e,t)=>{if(!e)return;let a=V.branch[t];return e[1]===a?.loader&&!Ot(te,p,u,ee,a.universal?.uses,r)?a:(te=!0,Et({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await m[n])?.data);return e},server_data_node:kt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of m)e.catch(g);let h=[];for(let e=0;e<l.length;e+=1)if(l[e])try{h.push(await m[e])}catch(t){if(t instanceof f)return{type:`redirect`,location:t.location};if(ft.has(a))return jt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ze(t),c;if(t instanceof d)c=t.body;else{if(await P.updated.check())return await Xe(),await F(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let l=await Nt(e,h,o);return l?Y({url:n,params:r,branch:h.slice(0,l.idx).concat(l.node),errors:o,status:s,error:c,route:i}):await zt(n,{id:i.id},c,s)}else h.push(void 0);return Y({url:n,params:r,branch:h,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function Nt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Pt({status:e,error:t,url:n,route:r}){let i={};try{return Y({url:n,params:i,branch:[await Et({loader:Qe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:kt(null)}),{node:await $e(),loader:$e,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof f)return St(new URL(e.location,location.href),{},0);throw e}}async function Ft(e){let t=e.href;if(at.has(t))return at.get(t);let n;try{let r=(async()=>{let t=await L.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Dt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);L.hash?n.hash=t:n.pathname=t,t=n}return t})();at.set(t,r),n=await r}catch{at.delete(t);return}return n}async function X(e,t){if(e&&!D(e,b,L.hash)){let n=await Ft(e);if(!n)return;let r=It(n);for(let n of Ze){let i=n.exec(r);if(i)return{id:Lt(e),invalidating:t,route:n,params:m(i),url:e}}}}function It(e){return te(L.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(b.length))||`/`}function Lt(e){return(L.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Rt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=en(V,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return H||ot.forEach(e=>e(c)),o?null:s}async function Z({type:e,url:t,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:d=g,block:f=g,event:ee}){let te=J;J=u;let m=await X(t,!1),h=e===`enter`?en(V,m,t,e):Rt({url:t,type:e,delta:i?.delta,intent:m,scroll:i?.scroll,event:ee});if(!h){f(),J===u&&(J=te);return}let ne=K,re=q;d(),H=!0,lt&&h.navigation.type!==`enter`&&P.navigating.set(A.current=h.navigation);let _=m&&await Mt(m);if(!_){if(D(t,b,L.hash))return await F(t,s);_=await zt(t,{id:null},await $(new p(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=m?.url||t,J!==u)return h.reject(Error(`navigation aborted`)),!1;if(_.type===`redirect`){if(l<20){await Z({type:e,url:new URL(_.location,t),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),h.fulfil(void 0);return}_=await Pt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else _.props.page.status>=400&&await P.updated.check()&&(await Xe(),await F(t,s));if(vt(),Je(ne),yt(re),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,n={[x]:K+=e,[S]:q+=e,[Te]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Ye(K,q)}let v=m&&R?.id===m.id?R.fork:null;R?.fork&&!v?z():(R=null,Q={element:void 0,href:void 0}),_.props.page.state=c;let ie;if(lt){let e=(await Promise.all(Array.from(st,e=>e(h.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{B.delete(e)})}e.push(t),e.forEach(e=>{B.add(e)})}let r=h.navigation.to;V={..._.state,nav:{params:r.params,route:r.route,url:r.url}},_.props.page&&(_.props.page.url=t);let i=v&&await v;i?ie=i.commit():(j=null,G.$set(_.props),j&&Object.assign(_.props.page,j),We(_.props.page),ie=n?.()),dt=!0}else await Tt(_,et,!1);let{activeElement:ae}=document;if(await ie,await r(),await r(),J!==u)return h.reject(Error(`navigation aborted`)),!1;_.props.page&&j&&Object.assign(_.props.page,j);let y=null;if(ut){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(y=t.hash&&document.getElementById(rn(t)))?y.scrollIntoView():scrollTo(0,0)}let oe=document.activeElement!==ae&&document.activeElement!==document.body;!a&&!oe&&$t(t,!y),ut=!0,H=!1,e===`popstate`&&bt(q),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=T()),B.forEach(e=>e(h.navigation)),P.navigating.set(A.current=null)}async function zt(e,t,n,r,i){return e.origin===w&&e.pathname===location.pathname&&!ct?await Pt({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function Bt(){let e,t;I.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,C.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],C.tap)}I.addEventListener(`mousedown`,n),I.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(wt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=ke(e,I),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Ae(r,b,L.hash);if(o||s)return;let c=je(r),l=a&&Lt(V.url)===Lt(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=C.tap;let e=await X(a,!1);if(!e)return;Ct(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,wt(a))}function a(){r.disconnect();for(let e of I.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Ae(e,b,L.hash);if(n||i)continue;let a=je(e);a.reload||(a.preload_code===C.viewport&&r.observe(e),a.preload_code===C.eager&&wt(t))}}B.add(a),a()}function $(e,t){if(e instanceof d)return e.body;let n=ze(e),r=Be(e);return L.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Vt(e,t){Ge(()=>(e.add(t),()=>{e.delete(t)}))}function Ht(e){Vt(B,e)}function Ut(e){Vt(ot,e)}function Wt(e,t={}){return e=new URL(Ee(e)),e.origin===w?St(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Gt(e){if(typeof e==`function`)rt.push(e);else{let{href:t}=new URL(e,location.href);rt.push(e=>e.href===t)}}function Kt(){return W=!0,_t()}async function qt(e){e.type===`error`?await Jt(e.error,e.status):e.type===`redirect`?await St(e.location,{invalidateAll:!0},0):(k.form=e.data,k.status=e.status,G.$set({form:null,page:tn(k)}),await Ke(),G.$set({form:e.data}),e.type===`success`&&$t(k.url))}async function Jt(e,t=500){let n=new URL(location.href),{branch:r,route:i}=V;if(!i)return;let a=await Nt(V.branch.length,r,i.errors);if(a){let o=await Y({url:n,params:V.params,branch:r.slice(0,a.idx).concat(a.node),status:t,error:e,route:i});V={...o.state,nav:V.nav},G.$set(o.props),We(o.props.page),Ke().then(()=>$t(V.url))}}function Yt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(xt(),!H){let e=en(V,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};ot.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&xt()}),navigator.connection?.saveData||Bt(),I.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=ke(t.composedPath()[0],I);if(!n)return;let{url:r,external:i,target:a,download:o}=Ae(n,b,L.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=je(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(L.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===h(location);if(i||s.reload&&(!u||!l)){Rt({url:r,type:`link`,event:t})?H=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=V.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(U=!0,Je(K),e(r),!s.replace_state)return;U=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),I.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(D(r,b,!1))return;let i=e.target,a=je(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Qt)if(t.state?.[`sveltekit:history`]){let n=t.state[x];if(J={},n===K)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[S],s=V.url?h(location)===h(V.url):!1;if(o===q&&(dt||s)){i!==k.state&&(k.state=i),e(a),M[K]=T(),r&&scrollTo(r.x,r.y),K=n;return}let c=n-K;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{K=n,q=o},block:()=>{history.go(-c)},nav_token:J,event:t})}else U||(e(new URL(location.href)),L.hash&&location.reload())}),addEventListener(`hashchange`,()=>{U&&(U=!1,history.replaceState({...history.state,[x]:++K,[S]:q},``,location.href))});for(let e of document.querySelectorAll(`link`))qe.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){V.url=k.url=e,P.page.set(tn(k)),P.page.notify()}}async function Xt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){ct=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await X(l,!1)||{}),u=Ze.find(({id:e})=>e===a.id);let d,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Zt(r.uses)),Et({loader:L.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:kt(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}d=await Y({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof f){await F(new URL(t.location,location.href));return}d=await Pt({status:ze(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}d.props.page&&(d.props.page.state={}),await Tt(d,e,p)}function Zt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Qt=!1;function $t(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=rn(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Qt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Qt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function en(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function tn(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function nn(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function rn(e){let t;if(L.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Wt as a,P as c,Ve as d,Fe as f,g as h,Ut as i,A as l,ve as m,L as n,Kt as o,xe as p,qt as r,gt as s,Ht as t,k as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{$ as e,D as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,W as u,Z as d,a as f,ct as p,et as m,i as h,j as g,k as _,l as v,nt as y,ot as b,r as x,tt as S,ut as C,xt as w}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CsYGMzJU.js","../chunks/CvkNa2t_.js","../chunks/BesjqVrk.js","../chunks/xihTtKlq.js","../assets/0.yoWygKZi.css","../nodes/1.CfDpZeft.js","../chunks/Dy4Pjuql.js","../chunks/xmyAstTO.js","../nodes/2.CGT67RwO.js","../chunks/hoH54hVB.js","../chunks/JwdpM2S5.js","../assets/error.CV-KWLNP.css","../chunks/CJx6yPZh.js","../chunks/C048Bjn7.js","../nodes/3.Cfkl9yLY.js","../chunks/NokGgZou.js","../assets/3.BP_hUVIU.css","../nodes/11.L_9ZmasQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,D as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,W as u,Z as d,a as f,ct as p,et as m,i as h,j as g,k as _,l as v,nt as y,ot as b,r as x,tt as S,ut as C,xt as w}from"../chunks/CvkNa2t_.js";import{t as T}from"../chunks/JwdpM2S5.js";import"../chunks/xihTtKlq.js";var E=[`en`,`fr`],D=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var O=()=>D?D.getStore()?.origin??`http://fallback.com`:typeof window<`u`?window.location.origin:`http://fallback.com`;function k(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of E)if(e.toLowerCase()===t)return e}function A(e){return j(e)}function j(e){let t=typeof e==`string`?new URL(e,O()):new URL(e),n=t.pathname.split(`/`).filter(Boolean);return n.length>0&&k(n[0])&&(t.pathname=`/`+n.slice(1).join(`/`)),t}var M=e=>A(e.url).pathname,N={},P=a(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),F=a(`<!> <!>`,1);function I(a,h){l(h,!0);let T=f(h,`components`,23,()=>[]),E=f(h,`data_0`,3,null),D=f(h,`data_1`,3,null);e(()=>h.stores.page.set(h.page)),s(()=>{h.stores,h.page,h.constructors,T(),h.form,E(),D(),h.stores.page.notify()});let O=p(!1),k=p(!1),A=p(null);x(()=>{let e=h.stores.page.subscribe(()=>{n(O)&&(b(k,!0),u().then(()=>{b(A,document.title||`untitled page`,!0)}))});return b(O,!0),e});let j=C(()=>h.constructors[1]);var M=F(),N=S(M),I=e=>{let t=C(()=>h.constructors[0]);var r=i();c(S(r),()=>n(t),(e,t)=>{v(t(e,{get data(){return E()},get form(){return h.form},get params(){return h.page.params},children:(e,t)=>{var r=i();c(S(r),()=>n(j),(e,t)=>{v(t(e,{get data(){return D()},get form(){return h.form},get params(){return h.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),g(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),g(e,r)},L=e=>{let t=C(()=>h.constructors[0]);var r=i();c(S(r),()=>n(t),(e,t)=>{v(t(e,{get data(){return E()},get form(){return h.form},get params(){return h.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),g(e,r)};t(N,e=>{h.constructors[1]?e(I):e(L,-1)});var R=y(N,2),z=e=>{var i=P(),a=m(i),s=e=>{var t=r();d(()=>_(t,n(A))),g(e,t)};t(a,e=>{n(k)&&e(s)}),o(i),g(e,i)};t(R,e=>{n(O)&&e(z)}),g(a,M),w()}var L=h(I),R=[()=>T(()=>import(`../nodes/0.CsYGMzJU.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>T(()=>import(`../nodes/1.CfDpZeft.js`),__vite__mapDeps([5,1,6,7,3]),import.meta.url),()=>T(()=>import(`../nodes/2.CGT67RwO.js`),__vite__mapDeps([8,1,9,10,2,3,7,11,12,13]),import.meta.url),()=>T(()=>import(`../nodes/3.Cfkl9yLY.js`),__vite__mapDeps([14,1,9,10,2,3,7,11,12,6,15,16]),import.meta.url),()=>T(()=>import(`../chunks/C50LmoI1.js`),[],import.meta.url),()=>T(()=>import(`../chunks/DybRo6-H.js`),[],import.meta.url),()=>T(()=>import(`../chunks/DgrK8UCQ.js`),[],import.meta.url),()=>T(()=>import(`../chunks/Cl5WnCnS.js`),[],import.meta.url),()=>T(()=>import(`../chunks/BKFRmAUx.js`),[],import.meta.url),()=>T(()=>import(`../chunks/nE3VUeYj.js`),[],import.meta.url),()=>T(()=>import(`../chunks/BvRk9kiK.js`),[],import.meta.url),()=>T(()=>import(`../nodes/11.L_9ZmasQ.js`),__vite__mapDeps([17,1,9,10,2,3,7,11,13,6,15]),import.meta.url)],z=[],B={"/":[2],"/actions/project":[4],"/actions/project/archive":[7],"/actions/project/fs":[6],"/actions/project/library":[10],"/actions/project/loader":[9],"/actions/project/package":[8],"/actions/project/save":[5],"/dashboard":[3],"/load":[11]},V={handleError:(({error:e})=>{console.error(e)}),reroute:M||(()=>{}),transport:{}},H=Object.fromEntries(Object.entries(V.transport).map(([e,t])=>[e,t.decode])),U=Object.fromEntries(Object.entries(V.transport).map(([e,t])=>[e,t.encode])),W=!1,G=(e,t)=>H[e](t);export{G as decode,H as decoders,B as dictionary,U as encoders,W as hash,V as hooks,N as matchers,R as nodes,L as root,z as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,s as t}from"../chunks/xmyAstTO.js";export{e as load_css,t as start};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�(�import{f as e,s as t}from"../chunks/xmyAstTO.js";export{e as load_css,t as start};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,B as t,C as n,D as r,G as i,H as a,I as o,L as s,M as c,N as l,Ot as u,P as d,Q as f,R as p,S as m,St as h,Z as g,_,a as v,ct as y,dt as b,et as x,f as ee,g as te,h as S,j as C,k as w,kt as T,l as ne,n as re,nt as E,o as D,ot as O,p as ie,q as k,r as ae,rt as A,s as j,tt as M,ut as N,v as P,w as F,xt as oe,z as se}from"../chunks/ZLGReh43.js";import"../chunks/xihTtKlq.js";import{C as ce,D as le,E as I,L as ue,M as de,O as L,P as R,R as z,S as B,_ as V,a as H,c as U,g as W,k as fe,m as pe,n as G,o as me,p as he,r as K,s as q,t as ge,v as _e,w as ve,y as J}from"../chunks/orCHVlgT.js";var Y=class extends W{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||X(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=V({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function X(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ye=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Y({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=be(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>I(t,e))}findAll(e={}){return this.getAll().filter(t=>I(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(L))))}};function be(e){return e.options.scope?.id}var xe=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ve(r,t),a=this.get(i);return a||(a=new pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>le(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>le(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new xe,this.#t=e.mutationCache||new ye,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ue.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_e.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(de(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=B(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(L).catch(L)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(L)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(L)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(de(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _e.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ce(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ce(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ve(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===R&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Ce(e,t){h(t,!0);let r=v(t,`client`,19,()=>new Se);ae(()=>{r().mount()}),he(r()),re(()=>{r().unmount()});var i=c();n(M(i),()=>t.children),C(e,i),oe()}var Z=Array(12).fill(0),we=l(`<div class="sonner-loading-bar"></div>`),Te=l(`<div><div class="sonner-spinner"></div></div>`);function Ee(e,t){h(t,!0);var n=Te(),r=x(n);F(r,23,()=>Z,(e,t)=>`spinner-bar-${t}`,(e,t)=>{C(e,we())}),u(r),u(n),g(e=>{_(n,1,e),S(n,`data-visible`,t.visible)},[()=>P([`sonner-loading-wrapper`,t.class].filter(Boolean).join(` `))]),C(e,n),oe()}function De(e){return e.label!==void 0}function Oe(){let e=y(A(typeof document<`u`?document.hidden:!1));return f(()=>t(document,`visibilitychange`,()=>{O(e,document.hidden,!0)})),{get current(){return a(e)}}}var ke=4e3,Ae=14,je=45,Me=200,Ne=.05,Pe={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Fe(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ie(e){return 1/(1.5+Math.abs(e)/20)}var Le=new Set(`$$slots.$$events.$$legacy.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`)),Re=l(`<div><!></div>`),ze=l(`<button data-close-button=""><!></button>`),Be=l(`<div data-icon=""><!> <!></div>`),Ve=l(`<div data-description=""><!></div>`),He=l(`<button data-button="" data-cancel=""> </button>`),Ue=l(`<button data-button=""> </button>`),We=l(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ge=l(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Ke(e,t){h(t,!0);let s=e=>{var i=c(),o=M(i),s=e=>{var r=Re();n(x(r),()=>t.loadingIcon),u(r),g(e=>{_(r,1,e),S(r,`data-visible`,a(U)===`loading`)},[()=>P(q(a(X)?.loader,t.toast?.classes?.loader,`sonner-loader`))]),C(e,r)},l=e=>{{let n=N(()=>q(a(X)?.loader,t.toast.classes?.loader)),r=N(()=>a(U)===`loading`);Ee(e,{get class(){return a(n)},get visible(){return a(r)}})}};r(o,e=>{t.loadingIcon?e(s):e(l,-1)}),C(e,i)},l=v(t,`cancelButtonStyle`,3,``),d=v(t,`actionButtonStyle`,3,``),b=v(t,`descriptionClass`,3,``),ee=v(t,`unstyled`,3,!1),re=v(t,`defaultRichColors`,3,!1);D(t,Le);let ie={...Pe},k=y(!1),A=y(!1),F=y(!1),ce=y(!1),le=y(!1),I=y(0),ue=y(0),de=t.toast.duration||t.duration||ke,L=y(void 0),R=y(null),z=y(null),B=N(()=>t.index===0),V=N(()=>t.index+1<=t.visibleToasts),U=N(()=>t.toast.type),W=N(()=>t.toast.dismissible===void 0?t.toast.dismissable!==!1:t.toast.dismissible!==!1),fe=N(()=>t.toast.class||``),pe=N(()=>t.toast.descriptionClass||``),G=N(()=>H.heights.findIndex(e=>e.toastId===t.toast.id)||0),me=N(()=>t.toast.closeButton??t.closeButton),he=N(()=>t.toast.duration??t.duration??ke),K=null,ge=N(()=>t.position.split(`-`)),_e=N(()=>H.heights.reduce((e,t,n)=>n>=a(G)?e:e+t.height,0)),ve=Oe(),J=N(()=>t.toast.invert||t.invert),Y=N(()=>a(U)===`loading`),X=N(()=>({...ie,...t.classes})),ye=N(()=>t.toast.title),be=N(()=>t.toast.description),xe=y(0),Se=y(0),Ce=N(()=>Math.round(a(G)*Ae+a(_e)));f(()=>{a(ye),a(be);let e;e=t.expanded||t.expandByDefault?1:1-t.index*Ne;let n=i(()=>a(L));if(n===void 0)return;n.style.setProperty(`height`,`auto`);let r=n.offsetHeight,o=n.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;n.style.removeProperty(`height`);let c;c=Math.abs(s-r)<1?s:r,O(ue,c,!0),H.setHeight({toastId:t.toast.id,height:c})});function Z(){O(A,!0),O(I,a(Ce),!0),H.removeHeight(t.toast.id),setTimeout(()=>{H.remove(t.toast.id)},Me)}let we,Te=N(()=>t.toast.promise&&a(U)===`loading`||t.toast.duration===1/0);function Ke(){O(xe,new Date().getTime(),!0),we=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),Z()},de)}function qe(){if(a(Se)<a(xe)){let e=new Date().getTime()-a(xe);de-=e}O(Se,new Date().getTime(),!0)}f(()=>{t.toast.updated&&(clearTimeout(we),de=a(he),a(Te)||Ke())}),f(()=>(a(Te)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&ve.current?qe():Ke()),()=>clearTimeout(we))),ae(()=>{O(k,!0);let e=a(L)?.getBoundingClientRect().height;return O(ue,e,!0),H.setHeight({toastId:t.toast.id,height:e}),()=>{H.removeHeight(t.toast.id)}}),f(()=>{t.toast.delete&&i(()=>{Z(),t.toast.onDismiss?.(t.toast)})});let Je=e=>{if(a(Y))return;O(I,a(Ce),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(O(F,!0),K={x:e.clientX,y:e.clientY})},Ye=()=>{if(a(ce)||!a(W))return;K=null;let e=Number(a(L)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),n=Number(a(L)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-0,i=a(R)===`x`?e:n,o=Math.abs(i)/r;if(Math.abs(i)>=je||o>.11){O(I,a(Ce),!0),t.toast.onDismiss?.(t.toast),a(R)===`x`?O(z,e>0?`right`:`left`,!0):O(z,n>0?`down`:`up`,!0),Z(),O(ce,!0);return}else a(L)?.style.setProperty(`--swipe-amount-x`,`0px`),a(L)?.style.setProperty(`--swipe-amount-y`,`0px`);O(le,!1),O(F,!1),O(R,null)},Xe=e=>{if(!K||!a(W)||(window.getSelection()?.toString().length??-1)>0)return;let n=e.clientY-K.y,r=e.clientX-K.x,i=t.swipeDirections??Fe(t.position);!a(R)&&(Math.abs(r)>1||Math.abs(n)>1)&&O(R,Math.abs(r)>Math.abs(n)?`x`:`y`,!0);let o={x:0,y:0};if(a(R)===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&n<0||i.includes(`bottom`)&&n>0)o.y=n;else{let e=n*Ie(n);o.y=Math.abs(e)<Math.abs(n)?e:n}}else if(a(R)===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&r<0||i.includes(`right`)&&r>0)o.x=r;else{let e=r*Ie(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&O(le,!0),a(L)?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),a(L)?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)},Ze=()=>{O(F,!1),O(R,null),K=null},Qe=N(()=>t.toast.icon?t.toast.icon:a(U)===`success`?t.successIcon:a(U)===`error`?t.errorIcon:a(U)===`warning`?t.warningIcon:a(U)===`info`?t.infoIcon:a(U)===`loading`?t.loadingIcon:null);var Q=Ge();S(Q,`tabindex`,0);let $e;var et=x(Q),tt=e=>{var r=ze();n(x(r),()=>t.closeIcon??T),u(r),g(e=>{S(r,`aria-label`,t.closeButtonAriaLabel),S(r,`data-disabled`,a(Y)),_(r,1,e)},[()=>P(q(a(X)?.closeButton,t.toast?.classes?.closeButton))]),p(`click`,r,()=>{a(Y)||!a(W)||(Z(),t.toast.onDismiss?.(t.toast))}),C(e,r)};r(et,e=>{a(me)&&!t.toast.component&&a(U)!==`loading`&&t.closeIcon!==null&&e(tt)});var nt=E(et,2),rt=e=>{let n=N(()=>t.toast.component);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps,{closeToast:Z}))}),C(e,r)},it=e=>{var i=We(),f=M(i),h=e=>{var i=Be(),o=x(i),l=e=>{var n=c(),i=M(n),a=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},o=e=>{s(e)};r(i,e=>{t.toast.icon?e(a):e(o,-1)}),C(e,n)};r(o,e=>{(t.toast.promise||a(U)===`loading`)&&e(l)});var d=E(o,2),f=e=>{var i=c(),o=M(i),s=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},l=e=>{var r=c();n(M(r),()=>t.successIcon??T),C(e,r)},u=e=>{var r=c();n(M(r),()=>t.errorIcon??T),C(e,r)},d=e=>{var r=c();n(M(r),()=>t.warningIcon??T),C(e,r)},f=e=>{var r=c();n(M(r),()=>t.infoIcon??T),C(e,r)};r(o,e=>{t.toast.icon?e(s):a(U)===`success`?e(l,1):a(U)===`error`?e(u,2):a(U)===`warning`?e(d,3):a(U)===`info`&&e(f,4)}),C(e,i)};r(d,e=>{t.toast.type!==`loading`&&e(f)}),u(i),g(e=>_(i,1,e),[()=>P(q(a(X)?.icon,t.toast?.classes?.icon))]),C(e,i)};r(f,e=>{(a(U)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(a(Qe)!==null||t.toast.icon)&&e(h)});var v=E(f,2),y=x(v),ee=x(y),S=e=>{var n=c(),i=M(n),s=e=>{let n=N(()=>t.toast.title);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.title)),C(e,n)};r(i,e=>{typeof t.toast.title==`string`?e(l,-1):e(s)}),C(e,n)};r(ee,e=>{t.toast.title&&e(S)}),u(y);var ne=E(y,2),re=e=>{var n=Ve(),i=x(n),s=e=>{let n=N(()=>t.toast.description);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.description)),C(e,n)};r(i,e=>{typeof t.toast.description==`string`?e(l,-1):e(s)}),u(n),g(e=>_(n,1,e),[()=>P(q(b(),a(pe),a(X)?.description,t.toast.classes?.description))]),C(e,n)};r(ne,e=>{t.toast.description&&e(re)}),u(v);var D=E(v,2),O=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.cancel,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=He(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.cancelButtonStyle??l()),_(n,1,e),w(r,t.toast.cancel.label)},[()=>P(q(a(X)?.cancelButton,t.toast?.classes?.cancelButton))]),p(`click`,n,e=>{De(t.toast.cancel)&&a(W)&&(t.toast.cancel?.onClick?.(e),Z())}),C(e,n)},d=N(()=>De(t.toast.cancel));r(i,e=>{typeof t.toast.cancel==`function`?e(o):a(d)&&e(s,1)}),C(e,n)};r(D,e=>{t.toast.cancel&&e(O)});var ie=E(D,2),k=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.action,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=Ue(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.actionButtonStyle??d()),_(n,1,e),w(r,t.toast.action.label)},[()=>P(q(a(X)?.actionButton,t.toast?.classes?.actionButton))]),p(`click`,n,e=>{De(t.toast.action)&&(t.toast.action?.onClick(e),!e.defaultPrevented&&Z())}),C(e,n)},l=N(()=>De(t.toast.action));r(i,e=>{typeof t.toast.action==`function`?e(o):a(l)&&e(s,1)}),C(e,n)};r(ie,e=>{t.toast.action&&e(k)}),g((e,t)=>{_(v,1,e),_(y,1,t)},[()=>P(q(a(X)?.content,t.toast?.classes?.content)),()=>P(q(a(X)?.title,t.toast?.classes?.title))]),C(e,i)};r(nt,e=>{t.toast.component?e(rt):e(it,-1)}),u(Q),ne(Q,e=>O(L,e),()=>a(L)),g((e,n,r)=>{_(Q,1,e),S(Q,`aria-live`,t.toast.important?`assertive`:`polite`),S(Q,`data-rich-colors`,t.toast.richColors??re()),S(Q,`data-styled`,!(t.toast.component||t.toast.unstyled||ee())),S(Q,`data-mounted`,a(k)),S(Q,`data-promise`,n),S(Q,`data-swiped`,a(le)),S(Q,`data-removed`,a(A)),S(Q,`data-visible`,a(V)),S(Q,`data-y-position`,a(ge)[0]),S(Q,`data-x-position`,a(ge)[1]),S(Q,`data-index`,t.index),S(Q,`data-front`,a(B)),S(Q,`data-swiping`,a(F)),S(Q,`data-dismissible`,a(W)),S(Q,`data-type`,a(U)),S(Q,`data-invert`,a(J)),S(Q,`data-swipe-out`,a(ce)),S(Q,`data-swipe-direction`,a(z)),S(Q,`data-expanded`,r),$e=te(Q,`${t.style} ${t.toast.style}`,$e,{"--index":t.index,"--toasts-before":t.index,"--z-index":H.toasts.length-t.index,"--offset":`${a(A)?a(I):a(Ce)}px`,"--initial-height":t.expandByDefault?`auto`:`${a(ue)}px`})},[()=>P(q(t.class,a(fe),a(X)?.toast,t.toast?.classes?.toast,a(X)?.[a(U)],t.toast?.classes?.[a(U)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&a(k))]),p(`pointermove`,Q,Xe),p(`pointerup`,Q,Ye),p(`pointerdown`,Q,Je),se(`dragend`,Q,Ze),C(e,Q),oe()}s([`pointermove`,`pointerup`,`pointerdown`,`click`]);var qe=d(`<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>`);function Je(e){C(e,qe())}var Ye=d(`<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>`);function Xe(e){C(e,Ye())}var Ze=d(`<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>`);function Qe(e){C(e,Ze())}var Q=d(`<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>`);function $e(e){C(e,Q())}var et=d(`<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>`);function tt(e){C(e,et())}var nt=3,rt=`24px`,it=`16px`,at=4e3,ot=356,st=14,ct=`dark`,lt=`light`;function ut(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?it:rt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var dt=new Set(`$$slots.$$events.$$legacy.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`)),ft=l(`<ol></ol>`),pt=l(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1m67lr4"><!></section>`);function mt(e,o){h(o,!0);function s(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ct:lt:e}let l=v(o,`invert`,3,!1),d=v(o,`position`,3,`bottom-right`),p=v(o,`hotkey`,19,()=>[`altKey`,`KeyT`]),m=v(o,`expand`,3,!1),_=v(o,`closeButton`,3,!1),b=v(o,`offset`,3,rt),te=v(o,`mobileOffset`,3,it),w=v(o,`theme`,3,`light`),re=v(o,`richColors`,3,!1),E=v(o,`duration`,3,at),k=v(o,`visibleToasts`,3,nt),j=v(o,`toastOptions`,19,()=>({})),P=v(o,`dir`,7,`auto`),se=v(o,`gap`,3,st),ce=v(o,`pauseWhenPageIsHidden`,3,!1),le=v(o,`containerAriaLabel`,3,`Notifications`),I=v(o,`closeButtonAriaLabel`,3,`Close toast`),ue=D(o,dt);function de(){if(P()!==`auto`)return P();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(i(()=>P(window.getComputedStyle(document.documentElement).direction??`ltr`)),P()):(i(()=>P(e)),e)}let L=N(()=>Array.from(new Set([d(),...H.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),R=y(!1),z=y(!1),B=y(A(s(w()))),V=y(void 0),U=y(null),W=y(!1),fe=N(()=>p().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));f(()=>{H.toasts.length<=1&&O(R,!1)}),f(()=>{let e=H.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(H.toasts=H.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),f(()=>()=>{a(V)&&a(U)&&(a(U).focus({preventScroll:!0}),O(U,null),O(W,!1))}),ae(()=>(H.reset(),t(document,`keydown`,e=>{p().every(t=>e[t]||e.code===t)&&(O(R,!0),a(V)?.focus()),e.code===`Escape`&&(document.activeElement===a(V)||a(V)?.contains(document.activeElement))&&O(R,!1)}))),f(()=>{if(w()!==`system`&&O(B,w()),typeof window<`u`){w()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?O(B,ct):O(B,lt));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{w()===`system`&&O(B,e?ct:lt,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let pe=e=>{o.onblur?.(e),a(W)&&!e.currentTarget.contains(e.relatedTarget)&&(O(W,!1),a(U)&&(a(U).focus({preventScroll:!0}),O(U,null)))},G=e=>{o.onfocus?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(a(W)||(O(W,!0),O(U,e.relatedTarget,!0)))},he=e=>{o.onpointerdown?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&O(z,!0)},q=e=>{o.onmouseenter?.(e),O(R,!0)},ge=e=>{o.onmouseleave?.(e),a(z)||O(R,!1)},_e=e=>{o.onmousemove?.(e),O(R,!0)},ve=e=>{o.ondragend?.(e),O(R,!1)},J=e=>{o.onpointerup?.(e),O(z,!1)};me.set(new K);var Y=pt();S(Y,`tabindex`,-1);var X=x(Y),ye=e=>{var t=c();F(M(t),18,()=>a(L),e=>e,(e,t,i,s)=>{let d=N(()=>{let[e,n]=t.split(`-`);return{y:e,x:n}}),f=N(()=>ut(b(),te()));var p=ft();ie(p,e=>({tabindex:-1,dir:e,class:o.class,"data-sonner-toaster":!0,"data-sonner-theme":a(B),"data-y-position":a(d).y,"data-x-position":a(d).x,style:o.style,onblur:pe,onfocus:G,onmouseenter:q,onmousemove:_e,onmouseleave:ge,ondragend:ve,onpointerdown:he,onpointerup:J,...ue,[ee]:{"--front-toast-height":`${H.heights[0]?.height}px`,"--width":`${ot}px`,"--gap":`${se()}px`,"--offset-top":a(f)[`--offset-top`],"--offset-right":a(f)[`--offset-right`],"--offset-bottom":a(f)[`--offset-bottom`],"--offset-left":a(f)[`--offset-left`],"--mobile-offset-top":a(f)[`--mobile-offset-top`],"--mobile-offset-right":a(f)[`--mobile-offset-right`],"--mobile-offset-bottom":a(f)[`--mobile-offset-bottom`],"--mobile-offset-left":a(f)[`--mobile-offset-left`]}}),[()=>de()],void 0,void 0,`svelte-1m67lr4`),F(p,23,()=>H.toasts.filter(e=>!e.position&&a(i)===0||e.position===t),e=>e.id,(e,i,s,u)=>{{let u=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.successIcon??T),C(e,t)},s=e=>{Je(e,{})};r(i,e=>{o.successIcon?e(a):o.successIcon!==null&&e(s,1)}),C(e,t)},d=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.errorIcon??T),C(e,t)},s=e=>{Xe(e,{})};r(i,e=>{o.errorIcon?e(a):o.errorIcon!==null&&e(s,1)}),C(e,t)},f=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.warningIcon??T),C(e,t)},s=e=>{Qe(e,{})};r(i,e=>{o.warningIcon?e(a):o.warningIcon!==null&&e(s,1)}),C(e,t)},p=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.infoIcon??T),C(e,t)},s=e=>{$e(e,{})};r(i,e=>{o.infoIcon?e(a):o.infoIcon!==null&&e(s,1)}),C(e,t)},h=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.closeIcon??T),C(e,t)},s=e=>{tt(e,{})};r(i,e=>{o.closeIcon?e(a):o.closeIcon!==null&&e(s,1)}),C(e,t)},g=N(()=>j()?.duration??E()),v=N(()=>j()?.class??``),y=N(()=>j()?.descriptionClass||``),b=N(()=>j()?.style??``),x=N(()=>j().classes||{}),ee=N(()=>j().unstyled??!1),te=N(()=>j()?.cancelButtonStyle??``),S=N(()=>j()?.actionButtonStyle??``),w=N(()=>j()?.closeButtonAriaLabel??I());Ke(e,{get index(){return a(s)},get toast(){return a(i)},get defaultRichColors(){return re()},get duration(){return a(g)},get class(){return a(v)},get descriptionClass(){return a(y)},get invert(){return l()},get visibleToasts(){return k()},get closeButton(){return _()},get interacting(){return a(z)},get position(){return t},get style(){return a(b)},get classes(){return a(x)},get unstyled(){return a(ee)},get cancelButtonStyle(){return a(te)},get actionButtonStyle(){return a(S)},get closeButtonAriaLabel(){return a(w)},get expandByDefault(){return m()},get expanded(){return a(R)},get pauseWhenPageIsHidden(){return ce()},get loadingIcon(){return o.loadingIcon},successIcon:u,errorIcon:d,warningIcon:f,infoIcon:p,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),u(p),ne(p,e=>O(V,e),()=>a(V)),g(()=>p.dir=p.dir),C(e,p)}),C(e,t)};r(X,e=>{H.toasts.length>0&&e(ye)}),u(Y),g(()=>S(Y,`aria-label`,`${le()??``} ${a(fe)??``}`)),C(e,Y),oe()}var ht=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function gt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=ht,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?gt(this.#e):null}};function _t(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function vt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;_t(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function yt(e,t,n){let r=k(()=>{let i=!1;vt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function bt(e,t,n){vt(e,`post`,t,n)}function xt(e,t,n){vt(e,`pre`,t,n)}bt.pre=xt;function St(e,t){yt(e,`post`,t)}function Ct(e,t){yt(e,`pre`,t)}St.pre=Ct;function wt(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var Tt=class{#e;#t;#n;#r;#i;#a=y(0);constructor(e,n,r={}){let{storage:i=`local`,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:o=!0,window:s=ht}=r;if(this.#e=n,this.#t=e,this.#n=a,s===void 0)return;let c=wt(i,s);this.#r=c;let l=c.getItem(e);l===null?this.#c(n):this.#e=this.#s(l),o&&i===`local`&&(this.#i=b(()=>t(s,`storage`,this.#o)))}get current(){this.#i?.(),a(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(a(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(O(this.#a,a(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),O(this.#a,a(this.#a)+1)}#o=e=>{e.key!==this.#t||e.newValue===null||(this.#e=this.#s(e.newValue),O(this.#a,a(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function Et(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function Dt(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function Ot(e,t,n={},r){let{lazy:i=!1,once:o=!1,initialValue:s,debounce:c,throttle:l}=n,u=y(A(s)),d=y(!1),f=y(void 0),p=y(A([])),m=()=>{a(p).forEach(e=>e()),O(p,[],!0)},h=e=>{O(p,[...a(p),e],!0)},g=async(e,n,r=!1)=>{try{O(d,!0),O(f,void 0),m();let i=new AbortController;h(()=>i.abort());let o=await t(e,n,{data:a(u),refetching:r,onCleanup:h,signal:i.signal});return O(u,o,!0),o}catch(e){e instanceof DOMException&&e.name===`AbortError`||O(f,e,!0);return}finally{O(d,!1)}},_=c?Et(g,c):l?Dt(g,l):g,v=Array.isArray(e)?e:[e],b;return r((t,n)=>{o&&b||b&&JSON.stringify(t)===JSON.stringify(b)||(b=t,_(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return a(u)},get loading(){return a(d)},get error(){return a(f)},mutate:e=>{O(u,e,!0)},refetch:t=>{let n=v.map(e=>e());return _(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function kt(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function At(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}kt.pre=At;function jt(e){return e.filter(e=>e.length>0)}var Mt={getItem:e=>null,setItem:(e,t)=>{}},Nt=typeof document<`u`;function Pt(e){return typeof e==`function`}function Ft(e){return typeof e==`object`&&!!e}var It=Symbol(`box`),Lt=Symbol(`is-writable`);function Rt(e){return Ft(e)&&It in e}function zt(e){return $.isBox(e)&&Lt in e}function $(e){let t=y(A(e));return{[It]:!0,[Lt]:!0,get current(){return a(t)},set current(e){O(t,e,!0)}}}function Bt(e,t){let n=N(e);return t?{[It]:!0,[Lt]:!0,get current(){return a(n)},set current(e){t(e)}}:{[It]:!0,get current(){return e()}}}function Vt(e){return $.isBox(e)?e:Pt(e)?$.with(e):$(e)}function Ht(e){return Object.entries(e).reduce((e,[t,n])=>$.isBox(n)?($.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ut(e){return $.isWritableBox(e)?{[It]:!0,get current(){return e.current}}:e}$.from=Vt,$.with=Bt,$.flatten=Ht,$.readonly=Ut,$.isBox=Rt,$.isWritableBox=zt;function Wt(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Gt=Wt(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Kt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Gt(t)}: ${e[t]};`).join(`
|
|
1
|
+
import{$ as e,B as t,C as n,D as r,G as i,H as a,I as o,L as s,M as c,N as l,Ot as u,P as d,Q as f,R as p,S as m,St as h,Z as g,_,a as v,ct as y,dt as b,et as x,f as ee,g as te,h as S,j as C,k as w,kt as T,l as ne,n as re,nt as E,o as D,ot as O,p as ie,q as k,r as ae,rt as A,s as j,tt as M,ut as N,v as P,w as F,xt as oe,z as se}from"../chunks/CvkNa2t_.js";import"../chunks/xihTtKlq.js";import{C as ce,D as le,E as I,L as ue,M as de,O as L,P as R,R as z,S as B,_ as V,a as H,c as U,g as W,k as fe,m as pe,n as G,o as me,p as he,r as K,s as q,t as ge,v as _e,w as ve,y as J}from"../chunks/BesjqVrk.js";var Y=class extends W{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||X(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=V({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function X(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ye=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Y({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=be(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=be(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>I(t,e))}findAll(e={}){return this.getAll().filter(t=>I(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(L))))}};function be(e){return e.options.scope?.id}var xe=class extends z{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ve(r,t),a=this.get(i);return a||(a=new pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>le(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>le(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new xe,this.#t=e.mutationCache||new ye,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ue.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_e.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(de(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=B(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(L).catch(L)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(L)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(L)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(de(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _e.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ce(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ce(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ve(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===R&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Ce(e,t){h(t,!0);let r=v(t,`client`,19,()=>new Se);ae(()=>{r().mount()}),he(r()),re(()=>{r().unmount()});var i=c();n(M(i),()=>t.children),C(e,i),oe()}var Z=Array(12).fill(0),we=l(`<div class="sonner-loading-bar"></div>`),Te=l(`<div><div class="sonner-spinner"></div></div>`);function Ee(e,t){h(t,!0);var n=Te(),r=x(n);F(r,23,()=>Z,(e,t)=>`spinner-bar-${t}`,(e,t)=>{C(e,we())}),u(r),u(n),g(e=>{_(n,1,e),S(n,`data-visible`,t.visible)},[()=>P([`sonner-loading-wrapper`,t.class].filter(Boolean).join(` `))]),C(e,n),oe()}function De(e){return e.label!==void 0}function Oe(){let e=y(A(typeof document<`u`?document.hidden:!1));return f(()=>t(document,`visibilitychange`,()=>{O(e,document.hidden,!0)})),{get current(){return a(e)}}}var ke=4e3,Ae=14,je=45,Me=200,Ne=.05,Pe={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Fe(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ie(e){return 1/(1.5+Math.abs(e)/20)}var Le=new Set(`$$slots.$$events.$$legacy.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`)),Re=l(`<div><!></div>`),ze=l(`<button data-close-button=""><!></button>`),Be=l(`<div data-icon=""><!> <!></div>`),Ve=l(`<div data-description=""><!></div>`),He=l(`<button data-button="" data-cancel=""> </button>`),Ue=l(`<button data-button=""> </button>`),We=l(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ge=l(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Ke(e,t){h(t,!0);let s=e=>{var i=c(),o=M(i),s=e=>{var r=Re();n(x(r),()=>t.loadingIcon),u(r),g(e=>{_(r,1,e),S(r,`data-visible`,a(U)===`loading`)},[()=>P(q(a(X)?.loader,t.toast?.classes?.loader,`sonner-loader`))]),C(e,r)},l=e=>{{let n=N(()=>q(a(X)?.loader,t.toast.classes?.loader)),r=N(()=>a(U)===`loading`);Ee(e,{get class(){return a(n)},get visible(){return a(r)}})}};r(o,e=>{t.loadingIcon?e(s):e(l,-1)}),C(e,i)},l=v(t,`cancelButtonStyle`,3,``),d=v(t,`actionButtonStyle`,3,``),b=v(t,`descriptionClass`,3,``),ee=v(t,`unstyled`,3,!1),re=v(t,`defaultRichColors`,3,!1);D(t,Le);let ie={...Pe},k=y(!1),A=y(!1),F=y(!1),ce=y(!1),le=y(!1),I=y(0),ue=y(0),de=t.toast.duration||t.duration||ke,L=y(void 0),R=y(null),z=y(null),B=N(()=>t.index===0),V=N(()=>t.index+1<=t.visibleToasts),U=N(()=>t.toast.type),W=N(()=>t.toast.dismissible===void 0?t.toast.dismissable!==!1:t.toast.dismissible!==!1),fe=N(()=>t.toast.class||``),pe=N(()=>t.toast.descriptionClass||``),G=N(()=>H.heights.findIndex(e=>e.toastId===t.toast.id)||0),me=N(()=>t.toast.closeButton??t.closeButton),he=N(()=>t.toast.duration??t.duration??ke),K=null,ge=N(()=>t.position.split(`-`)),_e=N(()=>H.heights.reduce((e,t,n)=>n>=a(G)?e:e+t.height,0)),ve=Oe(),J=N(()=>t.toast.invert||t.invert),Y=N(()=>a(U)===`loading`),X=N(()=>({...ie,...t.classes})),ye=N(()=>t.toast.title),be=N(()=>t.toast.description),xe=y(0),Se=y(0),Ce=N(()=>Math.round(a(G)*Ae+a(_e)));f(()=>{a(ye),a(be);let e;e=t.expanded||t.expandByDefault?1:1-t.index*Ne;let n=i(()=>a(L));if(n===void 0)return;n.style.setProperty(`height`,`auto`);let r=n.offsetHeight,o=n.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;n.style.removeProperty(`height`);let c;c=Math.abs(s-r)<1?s:r,O(ue,c,!0),H.setHeight({toastId:t.toast.id,height:c})});function Z(){O(A,!0),O(I,a(Ce),!0),H.removeHeight(t.toast.id),setTimeout(()=>{H.remove(t.toast.id)},Me)}let we,Te=N(()=>t.toast.promise&&a(U)===`loading`||t.toast.duration===1/0);function Ke(){O(xe,new Date().getTime(),!0),we=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),Z()},de)}function qe(){if(a(Se)<a(xe)){let e=new Date().getTime()-a(xe);de-=e}O(Se,new Date().getTime(),!0)}f(()=>{t.toast.updated&&(clearTimeout(we),de=a(he),a(Te)||Ke())}),f(()=>(a(Te)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&ve.current?qe():Ke()),()=>clearTimeout(we))),ae(()=>{O(k,!0);let e=a(L)?.getBoundingClientRect().height;return O(ue,e,!0),H.setHeight({toastId:t.toast.id,height:e}),()=>{H.removeHeight(t.toast.id)}}),f(()=>{t.toast.delete&&i(()=>{Z(),t.toast.onDismiss?.(t.toast)})});let Je=e=>{if(a(Y))return;O(I,a(Ce),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(O(F,!0),K={x:e.clientX,y:e.clientY})},Ye=()=>{if(a(ce)||!a(W))return;K=null;let e=Number(a(L)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),n=Number(a(L)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-0,i=a(R)===`x`?e:n,o=Math.abs(i)/r;if(Math.abs(i)>=je||o>.11){O(I,a(Ce),!0),t.toast.onDismiss?.(t.toast),a(R)===`x`?O(z,e>0?`right`:`left`,!0):O(z,n>0?`down`:`up`,!0),Z(),O(ce,!0);return}else a(L)?.style.setProperty(`--swipe-amount-x`,`0px`),a(L)?.style.setProperty(`--swipe-amount-y`,`0px`);O(le,!1),O(F,!1),O(R,null)},Xe=e=>{if(!K||!a(W)||(window.getSelection()?.toString().length??-1)>0)return;let n=e.clientY-K.y,r=e.clientX-K.x,i=t.swipeDirections??Fe(t.position);!a(R)&&(Math.abs(r)>1||Math.abs(n)>1)&&O(R,Math.abs(r)>Math.abs(n)?`x`:`y`,!0);let o={x:0,y:0};if(a(R)===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&n<0||i.includes(`bottom`)&&n>0)o.y=n;else{let e=n*Ie(n);o.y=Math.abs(e)<Math.abs(n)?e:n}}else if(a(R)===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&r<0||i.includes(`right`)&&r>0)o.x=r;else{let e=r*Ie(r);o.x=Math.abs(e)<Math.abs(r)?e:r}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&O(le,!0),a(L)?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),a(L)?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)},Ze=()=>{O(F,!1),O(R,null),K=null},Qe=N(()=>t.toast.icon?t.toast.icon:a(U)===`success`?t.successIcon:a(U)===`error`?t.errorIcon:a(U)===`warning`?t.warningIcon:a(U)===`info`?t.infoIcon:a(U)===`loading`?t.loadingIcon:null);var Q=Ge();S(Q,`tabindex`,0);let $e;var et=x(Q),tt=e=>{var r=ze();n(x(r),()=>t.closeIcon??T),u(r),g(e=>{S(r,`aria-label`,t.closeButtonAriaLabel),S(r,`data-disabled`,a(Y)),_(r,1,e)},[()=>P(q(a(X)?.closeButton,t.toast?.classes?.closeButton))]),p(`click`,r,()=>{a(Y)||!a(W)||(Z(),t.toast.onDismiss?.(t.toast))}),C(e,r)};r(et,e=>{a(me)&&!t.toast.component&&a(U)!==`loading`&&t.closeIcon!==null&&e(tt)});var nt=E(et,2),rt=e=>{let n=N(()=>t.toast.component);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps,{closeToast:Z}))}),C(e,r)},it=e=>{var i=We(),f=M(i),h=e=>{var i=Be(),o=x(i),l=e=>{var n=c(),i=M(n),a=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},o=e=>{s(e)};r(i,e=>{t.toast.icon?e(a):e(o,-1)}),C(e,n)};r(o,e=>{(t.toast.promise||a(U)===`loading`)&&e(l)});var d=E(o,2),f=e=>{var i=c(),o=M(i),s=e=>{var n=c();m(M(n),()=>t.toast.icon,(e,t)=>{t(e,{})}),C(e,n)},l=e=>{var r=c();n(M(r),()=>t.successIcon??T),C(e,r)},u=e=>{var r=c();n(M(r),()=>t.errorIcon??T),C(e,r)},d=e=>{var r=c();n(M(r),()=>t.warningIcon??T),C(e,r)},f=e=>{var r=c();n(M(r),()=>t.infoIcon??T),C(e,r)};r(o,e=>{t.toast.icon?e(s):a(U)===`success`?e(l,1):a(U)===`error`?e(u,2):a(U)===`warning`?e(d,3):a(U)===`info`&&e(f,4)}),C(e,i)};r(d,e=>{t.toast.type!==`loading`&&e(f)}),u(i),g(e=>_(i,1,e),[()=>P(q(a(X)?.icon,t.toast?.classes?.icon))]),C(e,i)};r(f,e=>{(a(U)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(a(Qe)!==null||t.toast.icon)&&e(h)});var v=E(f,2),y=x(v),ee=x(y),S=e=>{var n=c(),i=M(n),s=e=>{let n=N(()=>t.toast.title);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.title)),C(e,n)};r(i,e=>{typeof t.toast.title==`string`?e(l,-1):e(s)}),C(e,n)};r(ee,e=>{t.toast.title&&e(S)}),u(y);var ne=E(y,2),re=e=>{var n=Ve(),i=x(n),s=e=>{let n=N(()=>t.toast.description);var r=c();m(M(r),()=>a(n),(e,n)=>{n(e,j(()=>t.toast.componentProps))}),C(e,r)},l=e=>{var n=o();g(()=>w(n,t.toast.description)),C(e,n)};r(i,e=>{typeof t.toast.description==`string`?e(l,-1):e(s)}),u(n),g(e=>_(n,1,e),[()=>P(q(b(),a(pe),a(X)?.description,t.toast.classes?.description))]),C(e,n)};r(ne,e=>{t.toast.description&&e(re)}),u(v);var D=E(v,2),O=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.cancel,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=He(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.cancelButtonStyle??l()),_(n,1,e),w(r,t.toast.cancel.label)},[()=>P(q(a(X)?.cancelButton,t.toast?.classes?.cancelButton))]),p(`click`,n,e=>{De(t.toast.cancel)&&a(W)&&(t.toast.cancel?.onClick?.(e),Z())}),C(e,n)},d=N(()=>De(t.toast.cancel));r(i,e=>{typeof t.toast.cancel==`function`?e(o):a(d)&&e(s,1)}),C(e,n)};r(D,e=>{t.toast.cancel&&e(O)});var ie=E(D,2),k=e=>{var n=c(),i=M(n),o=e=>{var n=c();m(M(n),()=>t.toast.action,(e,t)=>{t(e,{})}),C(e,n)},s=e=>{var n=Ue(),r=x(n,!0);u(n),g(e=>{te(n,t.toast.actionButtonStyle??d()),_(n,1,e),w(r,t.toast.action.label)},[()=>P(q(a(X)?.actionButton,t.toast?.classes?.actionButton))]),p(`click`,n,e=>{De(t.toast.action)&&(t.toast.action?.onClick(e),!e.defaultPrevented&&Z())}),C(e,n)},l=N(()=>De(t.toast.action));r(i,e=>{typeof t.toast.action==`function`?e(o):a(l)&&e(s,1)}),C(e,n)};r(ie,e=>{t.toast.action&&e(k)}),g((e,t)=>{_(v,1,e),_(y,1,t)},[()=>P(q(a(X)?.content,t.toast?.classes?.content)),()=>P(q(a(X)?.title,t.toast?.classes?.title))]),C(e,i)};r(nt,e=>{t.toast.component?e(rt):e(it,-1)}),u(Q),ne(Q,e=>O(L,e),()=>a(L)),g((e,n,r)=>{_(Q,1,e),S(Q,`aria-live`,t.toast.important?`assertive`:`polite`),S(Q,`data-rich-colors`,t.toast.richColors??re()),S(Q,`data-styled`,!(t.toast.component||t.toast.unstyled||ee())),S(Q,`data-mounted`,a(k)),S(Q,`data-promise`,n),S(Q,`data-swiped`,a(le)),S(Q,`data-removed`,a(A)),S(Q,`data-visible`,a(V)),S(Q,`data-y-position`,a(ge)[0]),S(Q,`data-x-position`,a(ge)[1]),S(Q,`data-index`,t.index),S(Q,`data-front`,a(B)),S(Q,`data-swiping`,a(F)),S(Q,`data-dismissible`,a(W)),S(Q,`data-type`,a(U)),S(Q,`data-invert`,a(J)),S(Q,`data-swipe-out`,a(ce)),S(Q,`data-swipe-direction`,a(z)),S(Q,`data-expanded`,r),$e=te(Q,`${t.style} ${t.toast.style}`,$e,{"--index":t.index,"--toasts-before":t.index,"--z-index":H.toasts.length-t.index,"--offset":`${a(A)?a(I):a(Ce)}px`,"--initial-height":t.expandByDefault?`auto`:`${a(ue)}px`})},[()=>P(q(t.class,a(fe),a(X)?.toast,t.toast?.classes?.toast,a(X)?.[a(U)],t.toast?.classes?.[a(U)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&a(k))]),p(`pointermove`,Q,Xe),p(`pointerup`,Q,Ye),p(`pointerdown`,Q,Je),se(`dragend`,Q,Ze),C(e,Q),oe()}s([`pointermove`,`pointerup`,`pointerdown`,`click`]);var qe=d(`<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>`);function Je(e){C(e,qe())}var Ye=d(`<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>`);function Xe(e){C(e,Ye())}var Ze=d(`<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>`);function Qe(e){C(e,Ze())}var Q=d(`<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>`);function $e(e){C(e,Q())}var et=d(`<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>`);function tt(e){C(e,et())}var nt=3,rt=`24px`,it=`16px`,at=4e3,ot=356,st=14,ct=`dark`,lt=`light`;function ut(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?it:rt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var dt=new Set(`$$slots.$$events.$$legacy.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`)),ft=l(`<ol></ol>`),pt=l(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1gfek7f"><!></section>`);function mt(e,o){h(o,!0);function s(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ct:lt:e}let l=v(o,`invert`,3,!1),d=v(o,`position`,3,`bottom-right`),p=v(o,`hotkey`,19,()=>[`altKey`,`KeyT`]),m=v(o,`expand`,3,!1),_=v(o,`closeButton`,3,!1),b=v(o,`offset`,3,rt),te=v(o,`mobileOffset`,3,it),w=v(o,`theme`,3,`light`),re=v(o,`richColors`,3,!1),E=v(o,`duration`,3,at),k=v(o,`visibleToasts`,3,nt),j=v(o,`toastOptions`,19,()=>({})),P=v(o,`dir`,7,`auto`),se=v(o,`gap`,3,st),ce=v(o,`pauseWhenPageIsHidden`,3,!1),le=v(o,`containerAriaLabel`,3,`Notifications`),I=v(o,`closeButtonAriaLabel`,3,`Close toast`),ue=D(o,dt);function de(){if(P()!==`auto`)return P();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(i(()=>P(window.getComputedStyle(document.documentElement).direction??`ltr`)),P()):(i(()=>P(e)),e)}let L=N(()=>Array.from(new Set([d(),...H.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),R=y(!1),z=y(!1),B=y(A(s(w()))),V=y(void 0),U=y(null),W=y(!1),fe=N(()=>p().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));f(()=>{H.toasts.length<=1&&O(R,!1)}),f(()=>{let e=H.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(H.toasts=H.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),f(()=>()=>{a(V)&&a(U)&&(a(U).focus({preventScroll:!0}),O(U,null),O(W,!1))}),ae(()=>(H.reset(),t(document,`keydown`,e=>{p().every(t=>e[t]||e.code===t)&&(O(R,!0),a(V)?.focus()),e.code===`Escape`&&(document.activeElement===a(V)||a(V)?.contains(document.activeElement))&&O(R,!1)}))),f(()=>{if(w()!==`system`&&O(B,w()),typeof window<`u`){w()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?O(B,ct):O(B,lt));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{w()===`system`&&O(B,e?ct:lt,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let pe=e=>{o.onblur?.(e),a(W)&&!e.currentTarget.contains(e.relatedTarget)&&(O(W,!1),a(U)&&(a(U).focus({preventScroll:!0}),O(U,null)))},G=e=>{o.onfocus?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(a(W)||(O(W,!0),O(U,e.relatedTarget,!0)))},he=e=>{o.onpointerdown?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&O(z,!0)},q=e=>{o.onmouseenter?.(e),O(R,!0)},ge=e=>{o.onmouseleave?.(e),a(z)||O(R,!1)},_e=e=>{o.onmousemove?.(e),O(R,!0)},ve=e=>{o.ondragend?.(e),O(R,!1)},J=e=>{o.onpointerup?.(e),O(z,!1)};me.set(new K);var Y=pt();S(Y,`tabindex`,-1);var X=x(Y),ye=e=>{var t=c();F(M(t),18,()=>a(L),e=>e,(e,t,i,s)=>{let d=N(()=>{let[e,n]=t.split(`-`);return{y:e,x:n}}),f=N(()=>ut(b(),te()));var p=ft();ie(p,e=>({tabindex:-1,dir:e,class:o.class,"data-sonner-toaster":!0,"data-sonner-theme":a(B),"data-y-position":a(d).y,"data-x-position":a(d).x,style:o.style,onblur:pe,onfocus:G,onmouseenter:q,onmousemove:_e,onmouseleave:ge,ondragend:ve,onpointerdown:he,onpointerup:J,...ue,[ee]:{"--front-toast-height":`${H.heights[0]?.height}px`,"--width":`${ot}px`,"--gap":`${se()}px`,"--offset-top":a(f)[`--offset-top`],"--offset-right":a(f)[`--offset-right`],"--offset-bottom":a(f)[`--offset-bottom`],"--offset-left":a(f)[`--offset-left`],"--mobile-offset-top":a(f)[`--mobile-offset-top`],"--mobile-offset-right":a(f)[`--mobile-offset-right`],"--mobile-offset-bottom":a(f)[`--mobile-offset-bottom`],"--mobile-offset-left":a(f)[`--mobile-offset-left`]}}),[()=>de()],void 0,void 0,`svelte-1gfek7f`),F(p,23,()=>H.toasts.filter(e=>!e.position&&a(i)===0||e.position===t),e=>e.id,(e,i,s,u)=>{{let u=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.successIcon??T),C(e,t)},s=e=>{Je(e,{})};r(i,e=>{o.successIcon?e(a):o.successIcon!==null&&e(s,1)}),C(e,t)},d=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.errorIcon??T),C(e,t)},s=e=>{Xe(e,{})};r(i,e=>{o.errorIcon?e(a):o.errorIcon!==null&&e(s,1)}),C(e,t)},f=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.warningIcon??T),C(e,t)},s=e=>{Qe(e,{})};r(i,e=>{o.warningIcon?e(a):o.warningIcon!==null&&e(s,1)}),C(e,t)},p=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.infoIcon??T),C(e,t)},s=e=>{$e(e,{})};r(i,e=>{o.infoIcon?e(a):o.infoIcon!==null&&e(s,1)}),C(e,t)},h=e=>{var t=c(),i=M(t),a=e=>{var t=c();n(M(t),()=>o.closeIcon??T),C(e,t)},s=e=>{tt(e,{})};r(i,e=>{o.closeIcon?e(a):o.closeIcon!==null&&e(s,1)}),C(e,t)},g=N(()=>j()?.duration??E()),v=N(()=>j()?.class??``),y=N(()=>j()?.descriptionClass||``),b=N(()=>j()?.style??``),x=N(()=>j().classes||{}),ee=N(()=>j().unstyled??!1),te=N(()=>j()?.cancelButtonStyle??``),S=N(()=>j()?.actionButtonStyle??``),w=N(()=>j()?.closeButtonAriaLabel??I());Ke(e,{get index(){return a(s)},get toast(){return a(i)},get defaultRichColors(){return re()},get duration(){return a(g)},get class(){return a(v)},get descriptionClass(){return a(y)},get invert(){return l()},get visibleToasts(){return k()},get closeButton(){return _()},get interacting(){return a(z)},get position(){return t},get style(){return a(b)},get classes(){return a(x)},get unstyled(){return a(ee)},get cancelButtonStyle(){return a(te)},get actionButtonStyle(){return a(S)},get closeButtonAriaLabel(){return a(w)},get expandByDefault(){return m()},get expanded(){return a(R)},get pauseWhenPageIsHidden(){return ce()},get loadingIcon(){return o.loadingIcon},successIcon:u,errorIcon:d,warningIcon:f,infoIcon:p,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),u(p),ne(p,e=>O(V,e),()=>a(V)),g(()=>p.dir=p.dir),C(e,p)}),C(e,t)};r(X,e=>{H.toasts.length>0&&e(ye)}),u(Y),g(()=>S(Y,`aria-label`,`${le()??``} ${a(fe)??``}`)),C(e,Y),oe()}var ht=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function gt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=ht,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?gt(this.#e):null}};function _t(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function vt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;_t(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function yt(e,t,n){let r=k(()=>{let i=!1;vt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function bt(e,t,n){vt(e,`post`,t,n)}function xt(e,t,n){vt(e,`pre`,t,n)}bt.pre=xt;function St(e,t){yt(e,`post`,t)}function Ct(e,t){yt(e,`pre`,t)}St.pre=Ct;function wt(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var Tt=class{#e;#t;#n;#r;#i;#a=y(0);constructor(e,n,r={}){let{storage:i=`local`,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:o=!0,window:s=ht}=r;if(this.#e=n,this.#t=e,this.#n=a,s===void 0)return;let c=wt(i,s);this.#r=c;let l=c.getItem(e);l===null?this.#c(n):this.#e=this.#s(l),o&&i===`local`&&(this.#i=b(()=>t(s,`storage`,this.#o)))}get current(){this.#i?.(),a(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(a(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(O(this.#a,a(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),O(this.#a,a(this.#a)+1)}#o=e=>{e.key!==this.#t||e.newValue===null||(this.#e=this.#s(e.newValue),O(this.#a,a(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function Et(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function Dt(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function Ot(e,t,n={},r){let{lazy:i=!1,once:o=!1,initialValue:s,debounce:c,throttle:l}=n,u=y(A(s)),d=y(!1),f=y(void 0),p=y(A([])),m=()=>{a(p).forEach(e=>e()),O(p,[],!0)},h=e=>{O(p,[...a(p),e],!0)},g=async(e,n,r=!1)=>{try{O(d,!0),O(f,void 0),m();let i=new AbortController;h(()=>i.abort());let o=await t(e,n,{data:a(u),refetching:r,onCleanup:h,signal:i.signal});return O(u,o,!0),o}catch(e){e instanceof DOMException&&e.name===`AbortError`||O(f,e,!0);return}finally{O(d,!1)}},_=c?Et(g,c):l?Dt(g,l):g,v=Array.isArray(e)?e:[e],b;return r((t,n)=>{o&&b||b&&JSON.stringify(t)===JSON.stringify(b)||(b=t,_(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return a(u)},get loading(){return a(d)},get error(){return a(f)},mutate:e=>{O(u,e,!0)},refetch:t=>{let n=v.map(e=>e());return _(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function kt(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function At(e,t,n){return Ot(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];bt.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}kt.pre=At;function jt(e){return e.filter(e=>e.length>0)}var Mt={getItem:e=>null,setItem:(e,t)=>{}},Nt=typeof document<`u`;function Pt(e){return typeof e==`function`}function Ft(e){return typeof e==`object`&&!!e}var It=Symbol(`box`),Lt=Symbol(`is-writable`);function Rt(e){return Ft(e)&&It in e}function zt(e){return $.isBox(e)&&Lt in e}function $(e){let t=y(A(e));return{[It]:!0,[Lt]:!0,get current(){return a(t)},set current(e){O(t,e,!0)}}}function Bt(e,t){let n=N(e);return t?{[It]:!0,[Lt]:!0,get current(){return a(n)},set current(e){t(e)}}:{[It]:!0,get current(){return e()}}}function Vt(e){return $.isBox(e)?e:Pt(e)?$.with(e):$(e)}function Ht(e){return Object.entries(e).reduce((e,[t,n])=>$.isBox(n)?($.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ut(e){return $.isWritableBox(e)?{[It]:!0,get current(){return e.current}}:e}$.from=Vt,$.with=Bt,$.flatten=Ht,$.readonly=Ut,$.isBox=Rt,$.isWritableBox=zt;function Wt(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Gt=Wt(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Kt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Gt(t)}: ${e[t]};`).join(`
|
|
2
2
|
`)}function qt(e={}){return Kt(e).replace(`
|
|
3
3
|
`,` `)}qt({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`});var Jt=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function Yt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:n=Jt,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=b(e=>{let r=t(n,`focusin`,e),i=t(n,`focusout`,e);return()=>{r(),i()}}))}get current(){return this.#t?.(),this.#e?Yt(this.#e):null}};function Xt(t,n){switch(t){case`post`:f(n);break;case`pre`:e(n);break}}function Zt(e,t,n,r={}){let{lazy:a=!1}=r,o=!a,s=Array.isArray(e)?[]:void 0;Xt(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=i(()=>n(t,s));return s=t,r})}function Qt(e,t,n){let r=k(()=>{let i=!1;Zt(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});f(()=>r)}function $t(e,t,n){Zt(e,`post`,t,n)}function en(e,t,n){Zt(e,`pre`,t,n)}$t.pre=en;function tn(e,t){Qt(e,`post`,t)}function nn(e,t){Qt(e,`pre`,t)}tn.pre=nn;var rn=$(`mode-watcher-mode`),an=$(`mode-watcher-theme`),on=[`dark`,`light`,`system`];function sn(e){return typeof e==`string`?on.includes(e):!1}var cn=class{#e=`system`;#t=Nt?localStorage:Mt;#n=this.#t.getItem(rn.current);#r=sn(this.#n)?this.#n:this.#e;#i=y(A(this.#a()));#a(e=this.#r){return new Tt(rn.current,e,{serializer:{serialize:e=>e,deserialize:e=>sn(e)?e:this.#e}})}constructor(){k(()=>bt.pre(()=>rn.current,(e,t)=>{let n=a(this.#i).current;O(this.#i,this.#a(n),!0),t&&localStorage.removeItem(t)}))}get current(){return a(this.#i).current}set current(e){a(this.#i).current=e}},ln=class{#e=void 0;#t=!0;#n=y(A(this.#e));#r=typeof window<`u`&&typeof window.matchMedia==`function`?new U(`prefers-color-scheme: light`):{current:!1};query(){Nt&&O(this.#n,this.#r.current?`light`:`dark`,!0)}tracking(e){this.#t=e}constructor(){k(()=>{e(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return a(this.#n)}},un=new cn,dn=new ln,fn=new class{#e=Nt?localStorage:Mt;#t=this.#e.getItem(an.current);#n=this.#t===null||this.#t===void 0?``:this.#t;#r=y(A(this.#i()));#i(e=this.#n){return new Tt(an.current,e,{serializer:{serialize:e=>typeof e==`string`?e:``,deserialize:e=>e}})}constructor(){k(()=>bt.pre(()=>an.current,(e,t)=>{let n=a(this.#r).current;O(this.#r,this.#i(n),!0),t&&localStorage.removeItem(t)}))}get current(){return a(this.#r).current}set current(e){a(this.#r).current=e}},pn,mn,hn=!1,gn=null;function _n(){return gn||(gn=document.createElement(`style`),gn.appendChild(document.createTextNode(`* {
|
|
4
4
|
-webkit-transition: none !important;
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as e,Ot as t,St as n,Z as r,et as i,j as a,k as o,nt as s,tt as c,xt as l}from"../chunks/
|
|
1
|
+
import{N as e,Ot as t,St as n,Z as r,et as i,j as a,k as o,nt as s,tt as c,xt as l}from"../chunks/CvkNa2t_.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/Dy4Pjuql.js";var d=e(`<h1> </h1> <p> </p>`,1);function f(e,f){n(f,!0);var p=d(),m=c(p),h=i(m,!0);t(m);var g=s(m,2),_=i(g,!0);t(g),r(()=>{o(h,u.status),o(_,u.error?.message)}),a(e,p),l()}export{f as component};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,Dt as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,ct as u,et as d,ft as f,j as p,nt as m,ot as h,pt as g,tt as _,ut as v,xt as y}from"../chunks/
|
|
1
|
+
import{D as e,Dt as t,H as n,I as r,M as i,N as a,Ot as o,Q as s,S as c,St as l,ct as u,et as d,ft as f,j as p,nt as m,ot as h,pt as g,tt as _,ut as v,xt as y}from"../chunks/CvkNa2t_.js";import{a as b,p as x}from"../chunks/xmyAstTO.js";import{At as S,Tt as C,_t as w,mt as T,n as E,ot as D,t as O,vt as k,yt as A}from"../chunks/hoH54hVB.js";import{c as j,l as M,n as N,o as P,r as F,s as I,t as L}from"../chunks/C048Bjn7.js";import"../chunks/xihTtKlq.js";import{t as R}from"../chunks/Dy4Pjuql.js";import{n as z}from"../chunks/NokGgZou.js";var B=a(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-check text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Init project</h2> <p class="text-xs text-muted-foreground mt-0.5">Configure and scaffold your project</p></div></div> <div class="modal-body"><!> <div class="flex flex-col gap-1"><!></div></div> <div class="modal-footer"><!></div>`,1);function V(e,a){l(a,!0);let s=()=>g(k,`$submitting`,x),[x,S]=f(),C=u(!1),w=L({schema:M({language:I([`ts`,`js`]).default(`ts`),multiplayerServer:j().default(!1)}),defaultValues:{language:`ts`,multiplayerServer:!1},onSubmit:async e=>{h(C,!0),await O(`create project`,async()=>{await b(`/dashboard?id=${(await T.complete({...e,gatewayId:a.gatewayId})).id}`)},()=>{h(C,!1)})}}),{submitting:k}=w;var A=i();c(_(A),()=>D,(e,i)=>{i(e,{class:`w-full max-w-lg p-4`,children:(e,i)=>{P(e,{get form(){return w},class:`w-full`,children:(e,i)=>{var a=B(),c=m(_(a),2),l=d(c);F(l,{name:`language`,label:`Language`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`ts`,label:`Typescript`},{value:`js`,label:`Javascript`}]});var u=m(l,2);N(d(u),{label:`Multiplayer game`,name:`multiplayerServer`}),o(u),o(c);var f=m(c,2),h=d(f);{let e=v(()=>s()||n(C));E(h,{type:`submit`,size:`lg`,get loading(){return n(e)},class:`btn-primary px-6`,children:(e,n)=>{t(),p(e,r(`Init Project`))},$$slots:{default:!0}})}o(f),p(e,a)},$$slots:{default:!0}})},$$slots:{default:!0}})}),p(e,A),y(),S()}var H=a(`<div class="flex h-100vh w-full items-center justify-center"><!></div>`);function U(t,n){l(n,!0);let r=()=>{if(C().mode===`offline`){let e=R.url.searchParams.get(`path`);return e?{path:e}:null}else{let e=R.url.searchParams.get(`gatewayId`);return e?{gatewayId:e}:null}},a=R.url.searchParams.get(`id`),c=r();s(()=>{if(!a&&!c)throw b(x(`/`)),Error(`No resolvable`)});let u=S(()=>({queryKey:[`load`,`verify`,c?`path`in c?c.path:c.gatewayId:``],queryFn:async()=>{if(!a&&!c)throw Error(`No resolvable`);if(a)try{await b(x(`/dashboard?id=${(await T.loadFromId(a)).id}`))}catch(e){if(e instanceof k&&e.reason===w.Empty_Project&&C().mode===`online`)return e.args[1];console.error(e),A(`Failed to load project from id`,e.message)}if(c)try{return await b(x(`/dashboard?id=${(await(`path`in c?T.loadFromPath(c.path):T.loadFromGatewayId(c.gatewayId))).id}`)),null}catch(e){if(e instanceof k&&e.reason===w.Empty_Project&&C().mode===`online`)return e.args[1];console.error(e),A(`Failed to load project`,e.message)}return await b(x(`/`)),null}}));var f=i(),m=_(f),h=e=>{var t=H();V(d(t),{get gatewayId(){return u.data}}),o(t),p(e,t)},g=e=>{z(e,{})};e(m,e=>{u.isFetched&&!u.isLoading&&u.data?e(h):e(g,-1)}),p(t,f),y()}export{U as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,Dt as t,H as n,I as r,L as i,M as a,Mt as o,N as s,Ot as c,R as l,S as u,St as d,T as f,Z as p,_ as m,a as h,ct as g,et as _,ft as v,h as y,j as b,k as x,nt as S,ot as C,pt as w,s as T,tt as E,ut as D,v as O,w as k,xt as A,yt as j}from"../chunks/CvkNa2t_.js";import{a as M}from"../chunks/xmyAstTO.js";import{At as N,Tt as ee,bt as P,c as te,dt as F,mt as I,n as L,ot as ne,s as R,t as z,ut as re,vt as ie}from"../chunks/hoH54hVB.js";import{a as B,c as V,i as ae,l as H,n as U,o as W,r as G,s as K,t as q,u as J}from"../chunks/C048Bjn7.js";import"../chunks/xihTtKlq.js";import"../chunks/BesjqVrk.js";import{c as Y,n as oe,r as se,t as ce,u as X}from"../chunks/CJx6yPZh.js";var le=o({}),ue=s(`<div class="flex items-center gap-3 px-2 py-2"><!> <div class="flex flex-col gap-1.5 flex-1 min-w-0"><!> <!></div></div>`),de=s(`<div class="flex flex-col gap-1"></div>`);function fe(e){var t=de();k(t,4,()=>({length:3}),f,(e,t)=>{var n=ue(),r=_(n);X(r,{class:`size-9 rounded-md shrink-0`});var i=S(r,2),a=_(i);X(a,{class:`h-3.5 w-3/4`}),X(S(a,2),{class:`h-3 w-1/2`}),c(i),c(n),b(e,n)}),c(t),b(e,t)}var pe=s(`<div class="h-full w-full flex items-center justify-center"><!></div>`),me=s(`<button aria-label="Remove project" title="Remove project"><div class="i-ic-round-close text-destructive text-xl"></div></button>`),he=s(`<div class="flex items-center"><button><img class="size-9 rounded-md object-cover shrink-0"/> <span class="flex flex-col min-w-0"><span class="text-sm font-medium truncate"> </span> <span class="text-xs text-muted-foreground truncate"> </span></span></button> <div class="h-full aspect-square"><!></div></div>`);function ge(t,n){d(n,!0);var r=he(),i=_(r),a=_(i),o=S(a,2),s=_(o),u=_(s,!0);c(s);var f=S(s,2),h=_(f,!0);c(f),c(o),c(i);var g=S(i,2),v=_(g),C=e=>{var t=pe();R(_(t),{class:`text-xl`}),c(t),b(e,t)},w=e=>{var t=me();p(()=>{t.disabled=n.disabled,m(t,1,O([`h-full w-full p-2 flex items-center justify-center rounded-lg transition-colors`,n.disabled?`opacity-50 cursor-not-allowed`:`cursor-pointer hover:bg-muted/50`]))}),l(`click`,t,function(...e){n.onRemove?.apply(this,e)}),b(e,t)};e(v,e=>{n.isLoading?e(C):e(w,-1)}),c(g),c(r),p(()=>{i.disabled=n.disabled||n.isLoading||n.project.invalid,m(i,1,O([`flex items-center gap-3 p-2 rounded-lg transition-colors text-left w-[calc(100%-3.25rem)]`,n.disabled||n.isLoading||n.project.invalid?`opacity-50 cursor-not-allowed`:`cursor-pointer hover:bg-muted/50`])),y(a,`alt`,`${n.project.name??`Unknown`??``} cover`),y(a,`src`,n.project.imageUrl||``+new URL(`../assets/defaultProjectCover.BHxYINJa.png`,import.meta.url).href),x(u,n.project.name??`Unknown`),x(h,n.project.resolvable)}),l(`click`,i,function(...e){n.onClick?.apply(this,e)}),b(t,r),A()}i([`click`]);function Z(e,t){d(t,!0);let r=()=>w(o,`$form`,i),[i,a]=v(),{form:o}=j(`form`)();ae(e,{get name(){return t.name},get label(){return t.label},get class(){return t.class},get classNames(){return t.classNames},get description(){return t.description},children:(e,i)=>{let a=()=>i?.().props;{let i=D(()=>t.type??`text`),s=D(()=>t.classNames?.input),c=D(()=>r()[t.name]??``);oe(e,T(a,{get type(){return n(i)},get placeholder(){return t.placeholder},get class(){return n(s)},get value(){return n(c)},oninput:e=>o.update(n=>({...n,[t.name]:e.currentTarget.value}))}))}},$$slots:{default:!0}}),A(),a()}var _e=s(`<div><p class="toggle-row-title">Multiplayer server</p> <p class="toggle-row-desc">Enable real-time collaboration</p></div> <!>`,1),ve=s(`<div><p class="toggle-row-title">Docker containerization</p> <p class="toggle-row-desc">Bundle with a Dockerfile</p></div> <!>`,1),ye=s(`<div><p class="toggle-row-title">Git repository</p> <p class="toggle-row-desc">Initialize with git init</p></div> <!>`,1),be=s(`<div class="flex flex-col gap-5"><!> <div class="flex justify-around flex-wrap gap-2"><!> <!></div> <div class="flex flex-col gap-1"><!> <!> <!></div> <!></div>`),xe=s(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-add text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Create project</h2> <p class="text-xs text-muted-foreground mt-0.5">Scaffold a new workspace</p></div></div> <div class="modal-divider"></div> <div class="modal-body"><!> <button type="button" class="group flex items-center gap-3 cursor-pointer w-full"><span class="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-widest text-muted-foreground transition-colors duration-150">Advanced <span></span></span></button> <!></div> <div class="modal-footer"><!> <!></div>`,1);function Se(i,a){d(a,!0);let o=()=>w(x,`$form`,u),s=()=>w(T,`$submitting`,u),[u,f]=v(),h=g(!1),y=q({schema:H({projectName:J().min(1,`Project name is required`).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),projectPath:J().optional(),packageManager:K([`npm`,`yarn`,`pnpm`,`bun`]).default(`pnpm`),language:K([`ts`,`js`]).default(`ts`),multiplayerServer:V().default(!1),dockerContainerization:V().default(!1),createGitRepository:V().default(!1),gitRemote:J().optional()}),defaultValues:{projectName:``,projectPath:``,packageManager:`pnpm`,language:`ts`,multiplayerServer:!1,dockerContainerization:!1,createGitRepository:!1,gitRemote:``},onSubmit:k}),{form:x,submitting:T}=y;async function k(e){await z(`create project`,async()=>{await M(`/dashboard?id=${(await I.create(e)).id}`)})}let j=D(()=>{let e=o().projectName||`<project-name>`,t=o().projectPath||``;return t.startsWith(`/`)||!t.startsWith(`./`)&&!t.startsWith(`../`)&&(t=`./${t}`),t.endsWith(`/`)||(t=`${t}/`),`${t}${e}`});W(i,{get form(){return y},class:`w-full`,children:(i,u)=>{var d=xe(),f=S(E(d),4),g=_(f);Z(g,{name:`projectName`,label:`Project name`,placeholder:`nanoforge-app`});var v=S(g,2),y=_(v),x=S(_(y));c(y),c(v);var w=S(v,2),T=t=>{var r=be(),i=_(r);{let e=D(()=>`The full path will be '${n(j)}'`);Z(i,{name:`projectPath`,label:`Project path`,placeholder:`/home/user/projects`,get description(){return n(e)}})}var a=S(i,2),s=_(a);G(s,{name:`language`,label:`Language`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`ts`,label:`Typescript`},{value:`js`,label:`Javascript`}]}),G(S(s,2),{name:`packageManager`,label:`Package manager`,classNames:{trigger:`w-40 p-4`,content:`p-2`,item:`p-2`},options:[{value:`npm`,label:`npm`},{value:`yarn`,label:`yarn`},{value:`pnpm`,label:`pnpm`},{value:`bun`,label:`bun`}]}),c(a);var l=S(a,2),u=_(l);B(u,{class:`toggle-row`,children:(e,t)=>{var n=_e();U(S(E(n),2),{name:`multiplayerServer`}),b(e,n)},$$slots:{default:!0}});var d=S(u,2);B(d,{class:`toggle-row`,children:(e,t)=>{var n=ve();U(S(E(n),2),{name:`dockerContainerization`}),b(e,n)},$$slots:{default:!0}}),B(S(d,2),{class:`toggle-row`,children:(e,t)=>{var n=ye();U(S(E(n),2),{name:`createGitRepository`}),b(e,n)},$$slots:{default:!0}}),c(l);var f=S(l,2),p=e=>{Z(e,{name:`gitRemote`,label:`Git remote URL`,placeholder:`https://github.com/user/repo.git`})};e(f,e=>{o().createGitRepository&&e(p)}),c(r),b(t,r)};e(w,e=>{n(h)&&e(T)}),c(f);var k=S(f,2),A=_(k);F(A,{type:`button`,variant:`ghost`,get onclick(){return a.onClose},class:`btn-ghost`,children:(e,n)=>{t(),b(e,r(`Cancel`))},$$slots:{default:!0}}),L(S(A,2),{type:`submit`,get loading(){return s()},class:`btn-primary`,children:(e,n)=>{t(),b(e,r(`Create project`))},$$slots:{default:!0}}),c(k),p(()=>m(x,1,O(n(h)?`i-ic-baseline-keyboard-arrow-up text-sm`:`i-ic-baseline-keyboard-arrow-down text-sm`))),l(`click`,v,()=>C(h,!n(h))),b(i,d)},$$slots:{default:!0}}),A(),f()}i([`click`]);function Ce(e,t){d(t,!0);let n=h(t,`open`,15),r=()=>{n(!1)};var i=a();u(E(i),()=>se,(e,t)=>{t(e,{get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=a();u(E(n),()=>Y,(e,t)=>{t(e,{showCloseButton:!1,class:`p-0 gap-0 sm:max-w-xl w-[90vw] overflow-hidden`,children:(e,t)=>{Se(e,{onClose:r})},$$slots:{default:!0}})}),b(e,n)},$$slots:{default:!0}})}),b(e,i),A()}var we=s(`<header class="h-14 flex items-center px-4 border-b border-border/40"><div class="flex items-center gap-2.5"><img alt="Logo" class="h-7 w-7 rounded-full"/> <span class="font-bold">Nanoforge - Editor</span></div></header>`);function Te(e){var n=we(),r=_(n),i=_(r);t(2),c(r),c(n),p(()=>y(i,`src`,ce)),b(e,n)}var Ee=s(`<span class="i-ic-baseline-add"></span> Create project`,1),De=s(`<span class="i-ic-baseline-folder-open"></span> Open project`,1),Oe=s(`<!> <!>`,1);function ke(e,n){var r=Oe(),i=E(r);F(i,{variant:`ghost`,size:`lg`,class:`justify-start gap-2 w-full`,get onclick(){return n.handleCreateProject},children:(e,n)=>{var r=Ee();t(),b(e,r)},$$slots:{default:!0}}),F(S(i,2),{variant:`ghost`,size:`lg`,class:`justify-start gap-2 w-full`,get onclick(){return n.handleOpenProject},children:(e,n)=>{var r=De();t(),b(e,r)},$$slots:{default:!0}}),b(e,r)}var Ae=s(`<span class="i-ic-baseline-open-in-new"></span> Create project`,1),je=s(`<span class="i-ic-baseline-open-in-new"></span> Open project`,1),Me=s(`<a><!></a> <a><!></a>`,1);function Ne(e){let n=`https://projects.nanoforge.eu`,r=`${n}/dashboard/projects`,i=`${n}/dashboard/projects`;var a=Me(),o=E(a);F(_(o),{variant:`link`,size:`lg`,class:`justify-start gap-2 w-full text-foreground`,children:(e,n)=>{var r=Ae();t(),b(e,r)},$$slots:{default:!0}}),c(o);var s=S(o,2);F(_(s),{variant:`link`,size:`lg`,class:`justify-start gap-2 w-full text-foreground`,children:(e,n)=>{var r=je();t(),b(e,r)},$$slots:{default:!0}}),c(s),p(()=>{y(o,`href`,r),y(s,`href`,i)}),b(e,a)}var Pe=s(`<div class="modal-header"><div class="modal-icon-badge"><span class="i-ic-baseline-folder-open text-primary text-lg"></span></div> <div><h2 class="text-sm font-semibold text-foreground tracking-tight leading-tight">Open project</h2> <p class="text-xs text-muted-foreground mt-0.5">Open a project</p></div></div> <div class="modal-divider"></div> <div class="modal-body"><!></div> <div class="modal-footer"><!> <!></div>`,1);function Q(e,i){d(i,!0);let a=()=>w(f,`$form`,s),o=()=>w(p,`$submitting`,s),[s,l]=v(),u=q({schema:H({path:J().min(1,`Path is required`)}),defaultValues:{path:``},onSubmit:m}),{form:f,submitting:p}=u;async function m(e){await z(`open project`,async()=>{await M(`/dashboard?id=${(await I.loadFromPath(e.path)).id}`)})}let h=D(()=>{let e=a().path||``;return e.startsWith(`/`)||!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e});W(e,{get form(){return u},class:`w-full`,children:(e,a)=>{var s=Pe(),l=S(E(s),4),u=_(l);{let e=D(()=>`The path will be '${n(h)}'`);Z(u,{name:`path`,label:`Project path`,placeholder:`/home/user/project`,get description(){return n(e)}})}c(l);var d=S(l,2),f=_(d);F(f,{type:`button`,variant:`ghost`,get onclick(){return i.onClose},class:`btn-ghost`,children:(e,n)=>{t(),b(e,r(`Cancel`))},$$slots:{default:!0}}),L(S(f,2),{type:`submit`,get loading(){return o()},class:`btn-primary`,children:(e,n)=>{t(),b(e,r(`Open project`))},$$slots:{default:!0}}),c(d),b(e,s)},$$slots:{default:!0}}),A(),l()}function Fe(e,t){d(t,!0);let n=h(t,`open`,15),r=()=>{n(!1)};var i=a();u(E(i),()=>se,(e,t)=>{t(e,{get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=a();u(E(n),()=>Y,(e,t)=>{t(e,{showCloseButton:!1,class:`p-0 gap-0 sm:max-w-xl w-[90vw] overflow-hidden`,children:(e,t)=>{Q(e,{onClose:r})},$$slots:{default:!0}})}),b(e,n)},$$slots:{default:!0}})}),b(e,i),A()}var $={CacheProject:ge,CacheProjectListSkeleton:fe,CreateProjectDialog:Ce,CreateProjectForm:Se,Header:Te,OfflineProjectButtons:ke,OnlineProjectButtons:Ne,OpenProjectDialog:Fe,OpenProjectForm:Q},Ie=s(`<div class="flex flex-col gap-1"></div> <!>`,1),Le=s(`<div class="flex h-full items-center justify-center text-center"><p class="text-sm text-muted-foreground/50 mb-4 mr-4">No recent projects</p></div>`),Re=s(`<div class="flex flex-col gap-2 p-5 w-8/19"><p class="text-sm text-muted-foreground px-2 mb-1">Projects</p> <!></div> <!> <div class="p-5 flex flex-col gap-3 w-10/19 h-full"><p class="text-sm text-muted-foreground px-2 mb-1">Recent</p> <!></div>`,1),ze=s(`<!> <!> <div class="min-h-screen w-full flex flex-col bg-background text-foreground text-base"><!> <main class="flex-1 flex items-center justify-center p-6"><!></main></div>`,1);function Be(i,o){d(o,!0);let s=g(!1),l=g(!1),f=g(null),p=ee().mode===`online`,m=N(()=>({queryKey:[`projects-cache`],queryFn:async()=>P.getProjects()})),h=()=>{p||C(s,!0)},v=()=>{p||C(l,!0)},y=async e=>{try{C(f,e.id,!0),await M(`/dashboard?id=${(await I.loadFromCacheWithTryId(e)).id}`),C(f,null)}catch(t){if(t instanceof ie){await t.fb();return}console.error(`Error loading project ${e.id} (${e.resolvable}) from cache:`,t),await P.invalidateProject(e.id),await m.refetch(),C(f,null)}},x=async e=>{C(f,e.id,!0),await P.removeProject(e.id),await m.refetch(),C(f,null)},w=async()=>{C(f,!0),await P.clearProjects(),await m.refetch(),C(f,null)};var T=ze(),O=E(T);u(O,()=>$.CreateProjectDialog,(e,t)=>{t(e,{get open(){return n(s)},set open(e){C(s,e,!0)}})});var j=S(O,2);u(j,()=>$.OpenProjectDialog,(e,t)=>{t(e,{get open(){return n(l)},set open(e){C(l,e,!0)}})});var L=S(j,2),R=_(L);u(R,()=>$.Header,(e,t)=>{t(e,{})});var z=S(R,2);u(_(z),()=>ne,(i,o)=>{o(i,{class:`w-full max-w-2xl`,children:(i,o)=>{var s=a();u(E(s),()=>re,(i,o)=>{o(i,{class:`p-0 flex justify-between h-[30vh]`,children:(i,o)=>{var s=Re(),l=E(s),d=S(_(l),2),g=e=>{var t=a();u(E(t),()=>$.OnlineProjectButtons,(e,t)=>{t(e,{})}),b(e,t)},C=e=>{var t=a();u(E(t),()=>$.OfflineProjectButtons,(e,t)=>{t(e,{handleCreateProject:h,handleOpenProject:v})}),b(e,t)};e(d,e=>{p?e(g):e(C,-1)}),c(l);var T=S(l,2);te(T,{orientation:`vertical`,class:`h-auto self-stretch`});var O=S(T,2),A=S(_(O),2),j=e=>{var t=a();u(E(t),()=>$.CacheProjectListSkeleton,(e,t)=>{t(e,{})}),b(e,t)},M=e=>{var i=Ie(),o=E(i);k(o,21,()=>m.data,e=>e.id,(e,t)=>{var r=a(),i=E(r);{let e=D(()=>!!n(f)),r=D(()=>n(f)===n(t).id);u(i,()=>$.CacheProject,(i,a)=>{a(i,{get project(){return n(t)},get disabled(){return n(e)},get isLoading(){return n(r)},onClick:()=>y(n(t)),onRemove:()=>x(n(t))})})}b(e,r)}),c(o),F(S(o,2),{type:`button`,variant:`ghost`,class:`text-xs text-muted-foreground/50 hover:text-muted-foreground transition-colors self-end justify-self-end`,onclick:w,children:(e,n)=>{t(),b(e,r(`Clear cache`))},$$slots:{default:!0}}),b(e,i)},N=e=>{b(e,Le())};e(A,e=>{m.isLoading||!m.isFetched?e(j):m.data&&m.data.length>0?e(M,1):e(N,-1)}),c(O),b(i,s)},$$slots:{default:!0}})}),b(i,s)},$$slots:{default:!0}})}),c(z),c(L),b(i,T),A()}export{Be as component,le as universal};
|
|
Binary file
|
|
Binary file
|