@selvajs/selva 4.6.13 → 4.6.14
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/build/client/_app/immutable/chunks/{ClvfZbtj.js → 7l6hP3Lv.js} +1 -1
- package/build/client/_app/immutable/chunks/7l6hP3Lv.js.br +0 -0
- package/build/client/_app/immutable/chunks/7l6hP3Lv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Na_4l7dv.js → BrIhu61L.js} +1 -1
- package/build/client/_app/immutable/chunks/BrIhu61L.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrIhu61L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CYTFMiGW.js → C3jkB2Rk.js} +1 -1
- package/build/client/_app/immutable/chunks/C3jkB2Rk.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3jkB2Rk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cf3gBSXq.js → COyeCbr6.js} +1 -1
- package/build/client/_app/immutable/chunks/COyeCbr6.js.br +0 -0
- package/build/client/_app/immutable/chunks/COyeCbr6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CAhhBSlM.js → CVVCeyWM.js} +1 -1
- package/build/client/_app/immutable/chunks/CVVCeyWM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CVVCeyWM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BBCZYSQW.js → PXmsJIuN.js} +1 -1
- package/build/client/_app/immutable/chunks/PXmsJIuN.js.br +0 -0
- package/build/client/_app/immutable/chunks/PXmsJIuN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{sb6c_D2e.js → rsp6SKFd.js} +2 -2
- package/build/client/_app/immutable/chunks/rsp6SKFd.js.br +0 -0
- package/build/client/_app/immutable/chunks/rsp6SKFd.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.D9UIksaB.js → app.COfBKPXT.js} +2 -2
- package/build/client/_app/immutable/entry/app.COfBKPXT.js.br +0 -0
- package/build/client/_app/immutable/entry/app.COfBKPXT.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.ChF3KrvV.js +1 -0
- package/build/client/_app/immutable/entry/start.ChF3KrvV.js.br +2 -0
- package/build/client/_app/immutable/entry/start.ChF3KrvV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BKeW7MRT.js → 1.B8sDCYCa.js} +1 -1
- package/build/client/_app/immutable/nodes/1.B8sDCYCa.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B8sDCYCa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.BvqLBJh6.js → 11.BcQ1o3FR.js} +1 -1
- package/build/client/_app/immutable/nodes/11.BcQ1o3FR.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BcQ1o3FR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.DzFMFspZ.js → 13.BmFsOSJJ.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BmFsOSJJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BmFsOSJJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.DzNriIse.js → 14.zl0OSg4A.js} +1 -1
- package/build/client/_app/immutable/nodes/14.zl0OSg4A.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.zl0OSg4A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.CX7l_wPc.js → 15.BkRbkd4S.js} +1 -1
- package/build/client/_app/immutable/nodes/15.BkRbkd4S.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BkRbkd4S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.C3ZB0sOi.js → 16.Dg-xXR4a.js} +1 -1
- package/build/client/_app/immutable/nodes/16.Dg-xXR4a.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Dg-xXR4a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.BYGQzCuL.js → 17.DGH-ZKat.js} +1 -1
- package/build/client/_app/immutable/nodes/17.DGH-ZKat.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DGH-ZKat.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.CyAAB-vi.js → 19.DAbWL97w.js} +1 -1
- package/build/client/_app/immutable/nodes/19.DAbWL97w.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DAbWL97w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.CrakowKI.js → 2.DFxfwvil.js} +1 -1
- package/build/client/_app/immutable/nodes/2.DFxfwvil.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DFxfwvil.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DEq0hgas.js +5021 -0
- package/build/client/_app/immutable/nodes/20.DEq0hgas.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DEq0hgas.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.-2yCLLxf.js → 21.Da9tdvJE.js} +1 -1
- package/build/client/_app/immutable/nodes/21.Da9tdvJE.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.Da9tdvJE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.CzYsuCuy.js → 23.DQIF52KG.js} +1 -1
- package/build/client/_app/immutable/nodes/23.DQIF52KG.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DQIF52KG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.CfCILA6l.js → 24.BGi3ufaV.js} +1 -1
- package/build/client/_app/immutable/nodes/24.BGi3ufaV.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BGi3ufaV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{27.CwLhJEvh.js → 27._1vSQHff.js} +1 -1
- package/build/client/_app/immutable/nodes/27._1vSQHff.js.br +0 -0
- package/build/client/_app/immutable/nodes/27._1vSQHff.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.efPMopm9.js → 28.DSYZp0yP.js} +1 -1
- package/build/client/_app/immutable/nodes/28.DSYZp0yP.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DSYZp0yP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{29.CEeaRXG0.js → 29.Dm8OC8TD.js} +1 -1
- package/build/client/_app/immutable/nodes/29.Dm8OC8TD.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.Dm8OC8TD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.B8HrsYpJ.js → 3.C8JgJa3O.js} +1 -1
- package/build/client/_app/immutable/nodes/3.C8JgJa3O.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C8JgJa3O.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.C9X8nkFd.js → 30.BCpvD09U.js} +1 -1
- package/build/client/_app/immutable/nodes/30.BCpvD09U.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BCpvD09U.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.B0cVrjuM.js → 5.V2MMaG6j.js} +1 -1
- package/build/client/_app/immutable/nodes/5.V2MMaG6j.js.br +2 -0
- package/build/client/_app/immutable/nodes/5.V2MMaG6j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BXcaZUYE.js → 6.BTwh4Jic.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BTwh4Jic.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BTwh4Jic.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.C0R4Zwqn.js → 7.7wkP10M4.js} +1 -1
- package/build/client/_app/immutable/nodes/7.7wkP10M4.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.7wkP10M4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.DJxZafGh.js → 8.czQ6-7MM.js} +1 -1
- package/build/client/_app/immutable/nodes/8.czQ6-7MM.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.czQ6-7MM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.DsEbUr1W.js → 9.CGwezRtS.js} +1 -1
- package/build/client/_app/immutable/nodes/9.CGwezRtS.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CGwezRtS.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{internal.js-B1IbCrA1.js → internal.js-BlXGzy9I.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-B1IbCrA1.js.map → internal.js-BlXGzy9I.js.map} +1 -1
- package/build/server/chunks/chunks/{package.js-DHaLCZMJ.js → package.js-Cc0fY3P-.js} +2 -2
- package/build/server/chunks/chunks/{package.js-DHaLCZMJ.js.map → package.js-Cc0fY3P-.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-BZzQjJU8.js → _page.server.ts.js-C9jc-4jh.js} +2 -2
- package/build/server/chunks/entries/pages/admin/{_page.server.ts.js-BZzQjJU8.js.map → _page.server.ts.js-C9jc-4jh.js.map} +1 -1
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-BQevF14N.js → _page.server.ts.js-CsKRcLdp.js} +2 -2
- package/build/server/chunks/entries/pages/admin/system/{_page.server.ts.js-BQevF14N.js.map → _page.server.ts.js-CsKRcLdp.js.map} +1 -1
- package/build/server/chunks/entries/pages/library/_guid_/{_page.svelte.js-CPiOucjC.js → _page.svelte.js-2rfCzihR.js} +15 -9
- package/build/server/chunks/entries/pages/library/_guid_/{_page.svelte.js-CPiOucjC.js.map → _page.svelte.js-2rfCzihR.js.map} +1 -1
- package/build/server/chunks/{handler-mzU3UJJh.js → handler-2tMhJ13t.js} +3 -3
- package/build/server/chunks/{handler-mzU3UJJh.js.map → handler-2tMhJ13t.js.map} +1 -1
- package/build/server/chunks/{index.js-ofC7OC2n.js → index.js-ClHZp1Td.js} +2 -2
- package/build/server/chunks/{index.js-ofC7OC2n.js.map → index.js-ClHZp1Td.js.map} +1 -1
- package/build/server/chunks/{manifest.js-B6zM76bo.js → manifest.js-DCVNctS2.js} +25 -25
- package/build/server/chunks/{manifest.js-B6zM76bo.js.map → manifest.js-DCVNctS2.js.map} +1 -1
- package/build/server/chunks/nodes/{1.js-CJPPnct8.js → 1.js-BJtAoUgp.js} +2 -2
- package/build/server/chunks/nodes/{1.js-CJPPnct8.js.map → 1.js-BJtAoUgp.js.map} +1 -1
- package/build/server/chunks/nodes/{11.js-oFEkDH-f.js → 11.js-BYIm1NIR.js} +2 -2
- package/build/server/chunks/nodes/{11.js-oFEkDH-f.js.map → 11.js-BYIm1NIR.js.map} +1 -1
- package/build/server/chunks/nodes/{13.js-DkriXMMW.js → 13.js-DRA8EMFv.js} +2 -2
- package/build/server/chunks/nodes/{13.js-DkriXMMW.js.map → 13.js-DRA8EMFv.js.map} +1 -1
- package/build/server/chunks/nodes/{14.js-DESeTiwl.js → 14.js-rr46VzZG.js} +2 -2
- package/build/server/chunks/nodes/{14.js-DESeTiwl.js.map → 14.js-rr46VzZG.js.map} +1 -1
- package/build/server/chunks/nodes/{15.js-CqPWKye8.js → 15.js-DafVauTt.js} +4 -4
- package/build/server/chunks/nodes/{15.js-CqPWKye8.js.map → 15.js-DafVauTt.js.map} +1 -1
- package/build/server/chunks/nodes/{16.js-B_FHHXzG.js → 16.js-DUSsNKDu.js} +2 -2
- package/build/server/chunks/nodes/{16.js-B_FHHXzG.js.map → 16.js-DUSsNKDu.js.map} +1 -1
- package/build/server/chunks/nodes/{17.js-Cb7CJVX-.js → 17.js-CkZ8PKri.js} +2 -2
- package/build/server/chunks/nodes/{17.js-Cb7CJVX-.js.map → 17.js-CkZ8PKri.js.map} +1 -1
- package/build/server/chunks/nodes/{19.js-B8Rvgr6T.js → 19.js-Ch8zQUcp.js} +2 -2
- package/build/server/chunks/nodes/{19.js-B8Rvgr6T.js.map → 19.js-Ch8zQUcp.js.map} +1 -1
- package/build/server/chunks/nodes/{2.js-CKY2au8L.js → 2.js-BBTfFjcs.js} +2 -2
- package/build/server/chunks/nodes/{2.js-CKY2au8L.js.map → 2.js-BBTfFjcs.js.map} +1 -1
- package/build/server/chunks/nodes/{20.js-Bt_XhEFj.js → 20.js-DUXt-WKG.js} +3 -3
- package/build/server/chunks/nodes/{20.js-Bt_XhEFj.js.map → 20.js-DUXt-WKG.js.map} +1 -1
- package/build/server/chunks/nodes/{21.js-onAMjhF9.js → 21.js-BGQBLGi6.js} +2 -2
- package/build/server/chunks/nodes/{21.js-onAMjhF9.js.map → 21.js-BGQBLGi6.js.map} +1 -1
- package/build/server/chunks/nodes/{23.js-BVOL7jHp.js → 23.js-Co2NnrNW.js} +2 -2
- package/build/server/chunks/nodes/{23.js-BVOL7jHp.js.map → 23.js-Co2NnrNW.js.map} +1 -1
- package/build/server/chunks/nodes/{24.js-B5mZLLMe.js → 24.js-Bqq9eCfs.js} +2 -2
- package/build/server/chunks/nodes/{24.js-B5mZLLMe.js.map → 24.js-Bqq9eCfs.js.map} +1 -1
- package/build/server/chunks/nodes/{27.js-CJKv-l7B.js → 27.js-DIz1Ga9e.js} +2 -2
- package/build/server/chunks/nodes/{27.js-CJKv-l7B.js.map → 27.js-DIz1Ga9e.js.map} +1 -1
- package/build/server/chunks/nodes/{28.js-3Hl_tGvC.js → 28.js-BndG1Cgi.js} +2 -2
- package/build/server/chunks/nodes/{28.js-3Hl_tGvC.js.map → 28.js-BndG1Cgi.js.map} +1 -1
- package/build/server/chunks/nodes/{29.js-BmPJPUuk.js → 29.js-D5Mho2TU.js} +2 -2
- package/build/server/chunks/nodes/{29.js-BmPJPUuk.js.map → 29.js-D5Mho2TU.js.map} +1 -1
- package/build/server/chunks/nodes/{3.js-B9gJiLAU.js → 3.js-BM9rC9Lq.js} +2 -2
- package/build/server/chunks/nodes/{3.js-B9gJiLAU.js.map → 3.js-BM9rC9Lq.js.map} +1 -1
- package/build/server/chunks/nodes/{30.js-Ddxz0BEH.js → 30.js-K7_3I-0Q.js} +2 -2
- package/build/server/chunks/nodes/{30.js-Ddxz0BEH.js.map → 30.js-K7_3I-0Q.js.map} +1 -1
- package/build/server/chunks/nodes/{5.js-d5hSyf14.js → 5.js-BgAdlxvC.js} +2 -2
- package/build/server/chunks/nodes/{5.js-d5hSyf14.js.map → 5.js-BgAdlxvC.js.map} +1 -1
- package/build/server/chunks/nodes/{6.js-D6I82k1o.js → 6.js-reYK-x19.js} +2 -2
- package/build/server/chunks/nodes/{6.js-D6I82k1o.js.map → 6.js-reYK-x19.js.map} +1 -1
- package/build/server/chunks/nodes/{7.js-B3pY_kX-.js → 7.js-BdibRNKq.js} +2 -2
- package/build/server/chunks/nodes/{7.js-B3pY_kX-.js.map → 7.js-BdibRNKq.js.map} +1 -1
- package/build/server/chunks/nodes/{8.js-CIo5b7d6.js → 8.js-LMwt1jfc.js} +2 -2
- package/build/server/chunks/nodes/{8.js-CIo5b7d6.js.map → 8.js-LMwt1jfc.js.map} +1 -1
- package/build/server/chunks/nodes/{9.js-DTNK2ZqZ.js → 9.js-BSnKKRHG.js} +4 -4
- package/build/server/chunks/nodes/{9.js-DTNK2ZqZ.js.map → 9.js-BSnKKRHG.js.map} +1 -1
- package/package.json +2 -2
- package/build/client/_app/immutable/chunks/BBCZYSQW.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBCZYSQW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAhhBSlM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAhhBSlM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYTFMiGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYTFMiGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cf3gBSXq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf3gBSXq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClvfZbtj.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClvfZbtj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Na_4l7dv.js.br +0 -0
- package/build/client/_app/immutable/chunks/Na_4l7dv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sb6c_D2e.js.br +0 -0
- package/build/client/_app/immutable/chunks/sb6c_D2e.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D9UIksaB.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D9UIksaB.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DDAfOizY.js +0 -1
- package/build/client/_app/immutable/entry/start.DDAfOizY.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DDAfOizY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BKeW7MRT.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BKeW7MRT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BvqLBJh6.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BvqLBJh6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DzFMFspZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DzFMFspZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DzNriIse.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DzNriIse.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CX7l_wPc.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CX7l_wPc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.C3ZB0sOi.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.C3ZB0sOi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BYGQzCuL.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BYGQzCuL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.CyAAB-vi.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.CyAAB-vi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CrakowKI.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CrakowKI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.BGa-JABY.js +0 -5021
- package/build/client/_app/immutable/nodes/20.BGa-JABY.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BGa-JABY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.-2yCLLxf.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.-2yCLLxf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CzYsuCuy.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CzYsuCuy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CfCILA6l.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CfCILA6l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CwLhJEvh.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CwLhJEvh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.efPMopm9.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.efPMopm9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CEeaRXG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CEeaRXG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.B8HrsYpJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.B8HrsYpJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.C9X8nkFd.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.C9X8nkFd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.B0cVrjuM.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.B0cVrjuM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BXcaZUYE.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BXcaZUYE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.C0R4Zwqn.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.C0R4Zwqn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DJxZafGh.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DJxZafGh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DsEbUr1W.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DsEbUr1W.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as H,f as M,c as N,g as e,d as j,r as x,t as te,u as r,a as K,aC as X,h as I,s as W,n as ve}from"./BtOVeLcI.js";import{c as T,a as m,f as E,t as pe}from"./BoLtD6vo.js";import{s as Z}from"./8uBOzWQA.js";import{i as B}from"./DAQN5y4A.js";import{s as re,r as ae,c as ne,p as $,b as _e}from"./ChEZL1UP.js";import{p as D}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{p as H,f as M,c as N,g as e,d as j,r as x,t as te,u as r,a as K,aC as X,h as I,s as W,n as ve}from"./BtOVeLcI.js";import{c as T,a as m,f as E,t as pe}from"./BoLtD6vo.js";import{s as Z}from"./8uBOzWQA.js";import{i as B}from"./DAQN5y4A.js";import{s as re,r as ae,c as ne,p as $,b as _e}from"./ChEZL1UP.js";import{p as D}from"./CVVCeyWM.js";import{s as Y,d as xe,e as ee,a as be}from"./BNpXeuQ_.js";import{e as se,d as we,a as oe,c as ie}from"./22C0ZkpD.js";import{I as ce}from"./BuC_QZkR.js";import{A as ye,U as Pe}from"./PXmsJIuN.js";import{B as me}from"./mlApEF2J.js";import{S as Ae}from"./BTfzafVu.js";import{U as Ne}from"./BYQ2KYuV.js";import{S as Me}from"./DApsDFvQ.js";function ke(h,t){let d=ae(t,["$$slots","$$events","$$legacy"]);const u=[["path",{d:"M15 6a9 9 0 0 0-9 9V3"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}]];ce(h,re({name:"git-branch"},()=>d,{get iconNode(){return u}}))}function Se(h,t){let d=ae(t,["$$slots","$$events","$$legacy"]);const u=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];ce(h,re({name:"layout-grid"},()=>d,{get iconNode(){return u}}))}var Ie=E("<a><!> </a>");function $e(h,t){H(t,!0);const d=r(()=>D.data.ctx),u=r(()=>(e(d)?.platformPermissions??[]).includes("instance_admin")||(e(d)?.orgPermissions??[]).some(s=>s==="manage_definitions"||s==="manage_projects")),o=r(()=>[{href:"/library",label:"Library",icon:Se,match:"prefix",show:!0},{href:"/projects",label:"Projects",icon:ke,match:"prefix",show:e(u)}].filter(s=>s.show));function b(s){const l=D.url.pathname;return s.match==="prefix"?l.startsWith(s.href):l===s.href}var i=T(),w=M(i);se(w,17,()=>e(o),s=>s.href,(s,l)=>{const k=r(()=>b(e(l))),U=r(()=>e(l).icon);var v=Ie(),C=N(v);ne(C,()=>e(U),(c,f)=>{f(c,{class:"h-3.5 w-3.5"})});var p=j(C);x(v),te(c=>{oe(v,"href",e(l).href),ie(v,1,c),Y(p,` ${e(l).label??""}`)},[()=>we(["flex h-8 items-center gap-1.5 rounded-md px-2.5 text-sm font-medium transition-colors",e(k)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"].join(" "))]),m(s,v)}),m(h,i),K()}var je=E('<a role="menuitem"><!> <div class="min-w-0 flex-1"><p class="leading-tight font-medium"> </p> <p class="text-muted-foreground mt-0.5 text-xs leading-snug"> </p></div></a>'),Ee=E('<div role="menu" class="border-border bg-popover text-popover-foreground absolute top-full right-0 z-50 mt-1.5 w-64 overflow-hidden rounded-md border shadow-md"><div class="p-1"></div></div>'),Ue=E('<div class="relative"><!> <!></div>');function Ce(h,t){H(t,!0);let d=$(t,"platformPermissions",19,()=>[]),u=$(t,"orgPermissions",19,()=>[]),o=W(!1),b=W(null),i=W(null);const w=r(()=>d().includes("instance_admin")),s=["instance_admin","manage_compute","manage_instance_users","manage_updates"],l=["manage_org_members","manage_org_compute","manage_definitions","manage_projects"],k=r(()=>e(w)||s.some(a=>d().includes(a))),U=r(()=>e(w)||l.some(a=>u().includes(a))),v=r(()=>[{href:"/team",label:"Team",description:"Members, projects, and org-wide settings",icon:Ne,show:e(U),match:"prefix"},{href:"/admin",label:"Admin",description:"Platform configuration and instance settings",icon:Me,show:e(k),match:"prefix"}].filter(a=>a.show)),C=r(()=>e(v).length>0);function p(a){return D.url.pathname.startsWith(a)}function c(a){if(!e(o))return;const n=a.target;e(b)?.contains(n)||e(i)?.contains(n)||I(o,!1)}function f(a){a.key==="Escape"&&e(o)&&I(o,!1)}var _=T();ee("click",X,c),ee("keydown",X,f);var y=M(_);{var F=a=>{var n=Ue(),g=N(n);me(g,{onclick:()=>I(o,!e(o)),variant:"outline",size:"icon","aria-label":"Settings",get"aria-expanded"(){return e(o)},"aria-haspopup":"menu",get ref(){return e(b)},set ref(A){I(b,A,!0)},children:(A,z)=>{Ae(A,{class:"h-[1.2rem] w-[1.2rem]"})},$$slots:{default:!0}});var P=j(g,2);{var R=A=>{var z=Ee(),V=N(z);se(V,21,()=>e(v),L=>L.href,(L,O)=>{const de=r(()=>e(O).icon),le=r(()=>p(e(O).href));var S=je(),q=N(S);ne(q,()=>e(de),(he,ue)=>{ue(he,{class:"mt-0.5 h-3.5 w-3.5 shrink-0 opacity-70"})});var J=j(q,2),G=N(J),fe=N(G,!0);x(G);var Q=j(G,2),ge=N(Q,!0);x(Q),x(J),x(S),te(()=>{oe(S,"href",e(O).href),ie(S,1,`flex items-start gap-2.5 rounded-sm px-2.5 py-2 text-sm transition-colors ${e(le)?"bg-accent text-accent-foreground":"text-foreground hover:bg-muted/60"}`),Y(fe,e(O).label),Y(ge,e(O).description)}),be("click",S,()=>I(o,!1)),m(L,S)}),x(V),x(z),_e(z,L=>I(i,L),()=>e(i)),m(A,z)};B(P,A=>{e(o)&&A(R)})}x(n),m(a,n)};B(y,a=>{e(C)&&a(F)})}m(h,_),K()}xe(["click"]);var Re=E("<!> <!>",1),ze=E("<!> <!>",1);function Xe(h,t){H(t,!0);let d=$(t,"homeUrl",3,"/library"),u=$(t,"title",3,void 0),o=$(t,"mode",3,"scroll"),b=$(t,"showMainNav",3,!0);const i=r(()=>D.data),w=r(()=>!!e(i).user),s=r(()=>e(i).user?.platformPermissions??[]),l=r(()=>e(i).ctx?.orgPermissions??[]),k=r(()=>e(i).branding?.name??"Selva"),U=r(()=>e(i).branding?.copyrightName??e(k));ye(h,{get homeUrl(){return d()},get title(){return u()},get mode(){return o()},get sidenav(){return t.sidenav},get brandName(){return e(k)},get copyrightName(){return e(U)},showFooter:!0,navItems:p=>{var c=T(),f=M(c);{var _=y=>{$e(y,{})};B(f,y=>{e(w)&&b()&&y(_)})}m(p,c)},rightContent:p=>{var c=ze(),f=M(c);{var _=n=>{var g=T(),P=M(g);Z(P,()=>t.rightExtras),m(n,g)};B(f,n=>{t.rightExtras&&n(_)})}var y=j(f,2);{var F=n=>{var g=Re(),P=M(g);Pe(P,{});var R=j(P,2);Ce(R,{get platformPermissions(){return e(s)},get orgPermissions(){return e(l)}}),m(n,g)},a=n=>{me(n,{href:"/login",size:"sm",children:(g,P)=>{ve();var R=pe("Sign in");m(g,R)},$$slots:{default:!0}})};B(y,n=>{e(w)?n(F):n(a,-1)})}m(p,c)},children:(p,c)=>{var f=T(),_=M(f);Z(_,()=>t.children),m(p,f)},$$slots:{navItems:!0,rightContent:!0,default:!0}}),K()}export{Xe as A};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as L,r as O,p as P,c as Q}from"./ChEZL1UP.js";import{I as R}from"./BuC_QZkR.js";import{p as T,d as c,t as _,a as U,c as i,r as n,g as o,u as A,f as V}from"./BtOVeLcI.js";import{s as k}from"./BNpXeuQ_.js";import{s as M}from"./8uBOzWQA.js";import{i as f}from"./DAQN5y4A.js";import{e as X,a as Y,c as W}from"./22C0ZkpD.js";import{a as p,f as v,c as Z}from"./BoLtD6vo.js";import{p as $}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as L,r as O,p as P,c as Q}from"./ChEZL1UP.js";import{I as R}from"./BuC_QZkR.js";import{p as T,d as c,t as _,a as U,c as i,r as n,g as o,u as A,f as V}from"./BtOVeLcI.js";import{s as k}from"./BNpXeuQ_.js";import{s as M}from"./8uBOzWQA.js";import{i as f}from"./DAQN5y4A.js";import{e as X,a as Y,c as W}from"./22C0ZkpD.js";import{a as p,f as v,c as Z}from"./BoLtD6vo.js";import{p as $}from"./CVVCeyWM.js";function xa(x,e){let b=O(e,["$$slots","$$events","$$legacy"]);const h=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];R(x,L({name:"gauge"},()=>b,{get iconNode(){return h}}))}var aa=v('<div class="px-4 pt-5 pb-3"><span class="text-xs font-medium tracking-wider text-muted-foreground uppercase"> </span></div>'),ra=v('<div class="px-3 pb-3"><!></div>'),ea=v('<span class="left-0 top-0 bottom-0 w-0.75 absolute bg-primary" aria-hidden="true"></span>'),ta=v('<span class="font-mono shrink-0 text-[11px] tabular-nums opacity-60"> </span>'),oa=v('<a><!> <!> <span class="text-sm font-medium flex-1 truncate"> </span> <!></a>'),sa=v('<div class="px-3 py-3 border-t border-border/60"><!></div>'),na=v('<aside><!> <!> <nav class="pb-4 pr-2 flex-1 space-y-px"></nav> <!></aside>');function ba(x,e){T(e,!0);let b=P(e,"class",3,"");function h(r){const a=$.url.pathname;return r.match==="prefix"?a.startsWith(r.href):a===r.href}var m=na(),N=i(m);{var j=r=>{var a=aa(),s=i(a),u=i(s,!0);n(s),n(a),_(()=>k(u,e.eyebrow)),p(r,a)};f(N,r=>{e.eyebrow&&r(j)})}var I=c(N,2);{var q=r=>{var a=ra(),s=i(a);M(s,()=>e.header),n(a),p(r,a)};f(I,r=>{e.header&&r(q)})}var g=c(I,2);X(g,21,()=>e.items,r=>r.href,(r,a)=>{const s=A(()=>h(o(a))),u=A(()=>o(a).icon);var l=oa(),G=i(l);{var C=t=>{var d=ea();p(t,d)};f(G,t=>{o(s)&&t(C)})}var S=c(G,2);{var D=t=>{var d=Z(),w=V(d);Q(w,()=>o(u),(J,K)=>{K(J,{class:"h-3.5 w-3.5 shrink-0 opacity-70"})}),p(t,d)};f(S,t=>{o(u)&&t(D)})}var y=c(S,2),E=i(y,!0);n(y);var F=c(y,2);{var H=t=>{var d=ta(),w=i(d,!0);n(d),_(()=>k(w,o(a).badge)),p(t,d)};f(F,t=>{o(a).badge!==void 0&&t(H)})}n(l),_(()=>{Y(l,"href",o(a).href),W(l,1,`group gap-2 py-1.5 pr-2.5 relative flex w-full items-center text-left transition-colors ${o(s)?"pl-4 rounded-r-md bg-accent text-accent-foreground":"mx-2 pl-2.5 rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground"}`),k(E,o(a).label)}),p(r,l)}),n(g);var z=c(g,2);{var B=r=>{var a=sa(),s=i(a);M(s,()=>e.footer),n(a),p(r,a)};f(z,r=>{e.footer&&r(B)})}n(m),_(()=>W(m,1,`w-60 flex shrink-0 flex-col overflow-y-auto border-r border-border bg-background ${b()}`)),p(x,m),U()}export{xa as G,ba as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./rsp6SKFd.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as h,J as w,a7 as A,ab as E,ac as L}from"./BtOVeLcI.js";import{n as x,i as T,a as k,p as H,b as M}from"./
|
|
1
|
+
import{e as h,J as w,a7 as A,ab as E,ac as L}from"./BtOVeLcI.js";import{n as x,i as T,a as k,p as H,b as M}from"./rsp6SKFd.js";function g(t,r,s){h(()=>{var i=w(()=>r(t,s?.())||{});if(s&&i?.update){var a=!1,o={};A(()=>{var e=s();E(e),a&&L(o,e)&&(o=e,i.update(e))}),a=!0}if(i?.destroy)return()=>i.destroy()})}function D(t){const r=JSON.parse(t);return r.data&&(r.data=H(r.data,M.decoders)),r}function d(t){return HTMLElement.prototype.cloneNode.call(t)}function C(t,r=x){const s=async({action:a,result:o,reset:e=!0,invalidateAll:c=!0})=>{o.type==="success"&&(e&&HTMLFormElement.prototype.reset.call(t),c&&await T()),(location.origin+location.pathname===a.origin+a.pathname||o.type==="redirect"||o.type==="error")&&await k(o)};async function i(a){if((a.submitter?.hasAttribute("formmethod")?a.submitter.formMethod:d(t).method)!=="post")return;a.preventDefault();const e=new URL(a.submitter?.hasAttribute("formaction")?a.submitter.formAction:d(t).action),c=a.submitter?.hasAttribute("formenctype")?a.submitter.formEnctype:d(t).enctype,p=new FormData(t,a.submitter),u=new AbortController;let f=!1;const b=await r({action:e,cancel:()=>f=!0,controller:u,formData:p,formElement:t,submitter:a.submitter})??s;if(f)return;let l;try{const n=new Headers({accept:"application/json","x-sveltekit-action":"true"});c!=="multipart/form-data"&&n.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(c)?c:"application/x-www-form-urlencoded");const y=c==="multipart/form-data"?p:new URLSearchParams(p),m=await fetch(e,{method:"POST",headers:n,cache:"no-store",body:y,signal:u.signal});l=D(await m.text()),l.type==="error"&&(l.status=m.status)}catch(n){if(n?.name==="AbortError")return;l={type:"error",error:n}}await b({action:e,formData:p,formElement:t,update:n=>s({action:e,result:l,reset:n?.reset,invalidateAll:n?.invalidateAll}),result:l})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",i),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",i)}}}export{g as a,C as e};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,c as r}from"./
|
|
1
|
+
import{s as t,c as r}from"./rsp6SKFd.js";const e={get data(){return r.data},get error(){return r.error},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{f as w,d as b,n as Ae,c,r as l,t as $,p as ne,a as ae,g as o,i as Me,u as C,s as we,h as Z,aB as ht}from"./BtOVeLcI.js";import{a as s,f as p,c as M,p as Pe,t as vt}from"./BoLtD6vo.js";import{s as z}from"./8uBOzWQA.js";import{i as N}from"./DAQN5y4A.js";import{c as Ee,a as Oe,f as De,e as Ue,j as ft,d as et}from"./22C0ZkpD.js";import{s as pe,r as oe,p as f,c as Y}from"./ChEZL1UP.js";import{s as X,o as gt,a as mt,d as pt}from"./BNpXeuQ_.js";import{o as _t,u as bt}from"./aGXM-hZQ.js";import{B as wt}from"./mlApEF2J.js";import{I as ke}from"./BuC_QZkR.js";import{D as yt,a as xt,b as St,c as Ct,R as Tt}from"./jiMRToiE.js";import{_ as Nt}from"./BapAUJpM.js";import{S as It}from"./BdIvVr5K.js";import{g as Et}from"./B89jPufp.js";import{b as Le,d as G,m as Fe,a as $e,e as Ge,f as Je,h as At,g as Ot,c as Ut}from"./Bf2Kb0d4.js";import{C as ze}from"./Mn4D08zE.js";import{C as Mt,S as Pt,E as Dt,w as je,n as tt}from"./MGblXd4C.js";import{P as kt,c as Lt}from"./SM988pE-.js";import{T as ct}from"./DllGpGf3.js";import{C as rt}from"./C2PlvXZq.js";import{C as nt}from"./Bj6y_fSA.js";import{a as Ft,e as Rt}from"./Cf3gBSXq.js";import{p as Ye}from"./CAhhBSlM.js";function Bt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];ke(n,pe({name:"sun"},()=>t,{get iconNode(){return r}}))}function Vt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];ke(n,pe({name:"moon"},()=>t,{get iconNode(){return r}}))}var Wt=p('<!> <!> <span class="sr-only">Toggle theme</span>',1);function jt(n){wt(n,{get onclick(){return _t},variant:"outline",size:"icon",children:(e,t)=>{var r=Wt(),a=w(r);Bt(a,{class:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"});var i=b(a,2);Vt(i,{class:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),Ae(2),s(e,r)},$$slots:{default:!0}})}var Yt=p('<span class="text-sm text-border">/</span> <span class="text-sm font-medium text-muted-foreground"> </span>',1),zt=p('<nav class="ml-5 gap-1 flex"><!></nav>'),Ht=p('<div class="h-10 flex items-center border-t border-border/60 px-(--page-px)"><!></div>'),$t=p('<header><div class="gap-5 flex h-(--header-h) items-center px-(--page-px)"><a class="gap-2 flex shrink-0 items-center"><img alt="" aria-hidden="true" class="h-5 w-5"/> <span class="font-semibold text-sm tracking-tight"> </span></a> <!> <!> <div class="gap-2 ml-auto flex items-center"><!> <!></div></div> <!></header>');function Gt(n,e){let t=f(e,"homeUrl",3,"/app"),r=f(e,"title",3,void 0),a=f(e,"logo",3,"/favicon/favicon.svg"),i=f(e,"brandName",3,"Selva"),v=f(e,"showModeToggle",3,!0),u=f(e,"class",3,"");var d=$t(),_=c(d),y=c(_),U=c(y),k=b(U,2),m=c(k,!0);l(k),l(y);var h=b(y,2);{var x=S=>{var I=Yt(),H=b(w(I),2),ye=c(H,!0);l(H),$(()=>X(ye,r()??"")),s(S,I)};N(h,S=>{r()!==void 0&&S(x)})}var T=b(h,2);{var F=S=>{var I=zt(),H=c(I);z(H,()=>e.navItems),l(I),s(S,I)};N(T,S=>{e.navItems&&S(F)})}var J=b(T,2),Q=c(J);{var K=S=>{var I=M(),H=w(I);z(H,()=>e.rightContent),s(S,I)};N(Q,S=>{e.rightContent&&S(K)})}var ee=b(Q,2);{var se=S=>{jt(S)};N(ee,S=>{v()&&S(se)})}l(J),l(_);var g=b(_,2);{var E=S=>{var I=Ht(),H=c(I);z(H,()=>e.subnav),l(I),s(S,I)};N(g,S=>{e.subnav&&S(E)})}l(d),$(()=>{Ee(d,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${u()}`),Oe(y,"href",t()),Oe(U,"src",a()),X(m,i())}),s(n,d)}function Jt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"m10 17 5-5-5-5"}],["path",{d:"M15 12H3"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}]];ke(n,pe({name:"log-in"},()=>t,{get iconNode(){return r}}))}function Kt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];ke(n,pe({name:"log-out"},()=>t,{get iconNode(){return r}}))}var qt=p("<button><!></button>");function Zt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const u=Et.create({id:G(()=>r()),ref:G(()=>a(),m=>a(m)),disabled:G(()=>!!i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=qt();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}const Ke=Ut({component:"collapsible",parts:["root","content","trigger"]}),qe=new Mt("Collapsible.Root");class Ze{static create(e){return qe.set(new Ze(e))}opts;attachment;#e=we(null);get contentNode(){return o(this.#e)}set contentNode(e){Z(this.#e,e,!0)}contentPresence;#t=we(void 0);get contentId(){return o(this.#t)}set contentId(e){Z(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$e(this.opts.ref),this.contentPresence=new kt({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=C(()=>({id:this.opts.id.current,"data-state":Je(this.opts.open.current),"data-disabled":Ge(this.opts.disabled.current),[Ke.root]:"",...this.attachment}));get props(){return o(this.#r)}set props(e){Z(this.#r,e)}}class Xe{static create(e){return new Xe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return o(this.#e)}set present(e){Z(this.#e,e)}#t;#r=we(!1);#n=we(0);#a=we(0);constructor(e,t){this.opts=e,this.root=t,Z(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$e(this.opts.ref,r=>this.root.contentNode=r),je.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),ht(()=>{const r=requestAnimationFrame(()=>{Z(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),je.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([r,a])=>!r||!a?void 0:gt(r,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),je([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Lt(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const a=r.getBoundingClientRect();if(Z(this.#a,a.height,!0),Z(this.#n,a.width,!0),!o(this.#r)){const{animationName:i,transitionDuration:v}=this.#t;r.style.transitionDuration=v,r.style.animationName=i}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#o)}set snippetProps(e){Z(this.#o,e)}#s=C(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":o(this.#a)?`${o(this.#a)}px`:void 0,"--bits-collapsible-content-width":o(this.#n)?`${o(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Je(this.root.opts.open.current),...Ot(this.root.contentPresence.transitionStatus),"data-disabled":Ge(this.root.opts.disabled.current),[Ke.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return o(this.#s)}set props(e){Z(this.#s,e)}}class Qe{static create(e){return new Qe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!o(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){o(this.#e)||(e.key===Pt||e.key===Dt)&&(e.preventDefault(),this.root.toggleOpen())}#t=C(()=>({id:this.opts.id.current,type:"button",disabled:o(this.#e),"aria-controls":this.root.contentId,"aria-expanded":At(this.root.opts.open.current),"data-state":Je(this.root.opts.open.current),"data-disabled":Ge(o(this.#e)),[Ke.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#t)}set props(e){Z(this.#t,e)}}var Xt=p("<div><!></div>");function Qt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"open",15,!1),v=f(e,"disabled",3,!1),u=f(e,"onOpenChange",3,tt),d=f(e,"onOpenChangeComplete",3,tt),_=oe(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const y=Ze.create({open:G(()=>i(),T=>{i(T),u()(T)}),disabled:G(()=>v()),id:G(()=>r()),ref:G(()=>a(),T=>a(T)),onOpenChangeComplete:G(()=>d())}),U=C(()=>Fe(_,y.props));var k=M(),m=w(k);{var h=T=>{var F=M(),J=w(F);z(J,()=>e.child,()=>({props:o(U)})),s(T,F)},x=T=>{var F=Xt();De(F,()=>({...o(U)}));var J=c(F);z(J,()=>e.children??Me),l(F),s(T,F)};N(m,T=>{e.child?T(h):T(x,-1)})}s(n,k),ae()}var er=p("<div><!></div>");function tr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"forceMount",3,!1),i=f(e,"hiddenUntilFound",3,!1),v=f(e,"id",19,()=>Le(t)),u=oe(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const d=Xe.create({id:G(()=>v()),forceMount:G(()=>a()),hiddenUntilFound:G(()=>i()),ref:G(()=>r(),h=>r(h))}),_=C(()=>Fe(u,d.props));var y=M(),U=w(y);{var k=h=>{var x=M(),T=w(x);{let F=C(()=>({...d.snippetProps,props:o(_)}));z(T,()=>e.child,()=>o(F))}s(h,x)},m=h=>{var x=er();De(x,()=>({...o(_)}));var T=c(x);z(T,()=>e.children??Me),l(x),s(h,x)};N(U,h=>{e.child?h(k):h(m,-1)})}s(n,y),ae()}var rr=p("<button><!></button>");function nr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"id",19,()=>Le(t)),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const u=Qe.create({id:G(()=>a()),ref:G(()=>r(),m=>r(m)),disabled:G(()=>i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=rr();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}function at(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=f(e,"open",15,!1),a=oe(e,["$$slots","$$events","$$legacy","ref","open"]);var i=M(),v=w(i);Y(v,()=>Qt,(u,d)=>{d(u,pe({"data-slot":"collapsible"},()=>a,{get ref(){return t()},set ref(_){t(_)},get open(){return r()},set open(_){r(_)}}))}),s(n,i),ae()}function ot(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>nr,(v,u)=>{u(v,pe({"data-slot":"collapsible-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function st(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>tr,(v,u)=>{u(v,pe({"data-slot":"collapsible-content"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function ar(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>Zt,(v,u)=>{u(v,pe({"data-slot":"dialog-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}var ut=Object.defineProperty,or=(n,e,t)=>e in n?ut(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Sn=(n,e)=>{for(var t in e)ut(n,t,{get:e[t],enumerable:!0})},fe=(n,e,t)=>or(n,typeof e!="symbol"?e+"":e,t),ge={VALIDATION_ERROR:"VALIDATION_ERROR",INVALID_STATE:"INVALID_STATE",INVALID_INPUT:"INVALID_INPUT",INVALID_CONFIG:"INVALID_CONFIG",BROWSER_ONLY:"BROWSER_ONLY"},me=class He extends Error{constructor(e,t="UNKNOWN_ERROR",r){super(e),fe(this,"code"),fe(this,"statusCode"),fe(this,"context"),fe(this,"originalError"),this.name="RhinoComputeError",this.code=t,this.statusCode=r?.statusCode,this.context=r?.context,this.originalError=r?.originalError,r?.originalError&&(this.cause=r.originalError)}static missingValues(e,t,r){return new He(`Input "${e}" has no values defined${t?` (expected ${t})`:""}`,ge.INVALID_INPUT,{context:{inputName:e,expectedType:t,...r}})}static unknownParamType(e,t,r){return new He(`Unknown paramType: ${e}`,ge.VALIDATION_ERROR,{context:{receivedParamType:e,paramName:t,...r}})}},sr=class{debug(){}info(){}warn(){}error(){}},ir=new sr;function D(){return ir}var lr="https://compute.rhino3d.com/";function dr(n){if(!n?.trim())throw new me("serverUrl is required",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(!n.match(/^https?:\/\//))throw new me(`Invalid serverUrl: "${n}". Must start with "http://" or "https://". For example: "http://localhost:5000" or "https://example.com"`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});try{new URL(n)}catch(e){throw new me(`Invalid serverUrl: "${n}". Must be a valid URL. Received error: ${e instanceof Error?e.message:String(e)}`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n},originalError:e instanceof Error?e:void 0})}if(n===lr)throw new me("serverUrl must be set to your Compute server URL. The default public endpoint is not allowed.",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});return n.replace(/\/+$/,"")}var it=class Ie{constructor(e,t){fe(this,"serverUrl"),fe(this,"apiKey"),fe(this,"disposed",!1),fe(this,"activeMonitors",new Set),fe(this,"activeTimeouts",new Set),this.serverUrl=dr(e),this.apiKey=t}buildHeaders(){let e={"Content-Type":"application/json"};return this.apiKey&&(e.RhinoComputeKey=this.apiKey),e}fetchWithTimeout(e,t={},r=Ie.DEFAULT_TIMEOUT_MS){let a={headers:this.buildHeaders(),...t};return r>0&&!a.signal&&(a.signal=AbortSignal.timeout(r)),fetch(e,a)}async isServerOnline(e=5e3){this.ensureNotDisposed();let t=`${this.serverUrl}/`;try{return(await this.fetchWithTimeout(t,{method:"GET"},e)).ok}catch(r){return D().debug("[ComputeServerStats] Fetch error:",r),!1}}async getActiveChildren(e={}){this.ensureNotDisposed();let{initialize:t=!0}=e,r=t?`${this.serverUrl}/activechildren`:`${this.serverUrl}/activechildren?initialize=false`,a=t?Ie.LIFECYCLE_TIMEOUT_MS:Ie.DEFAULT_TIMEOUT_MS;try{let i=await this.fetchWithTimeout(r,{},a);if(!i.ok)return D().warn("[ComputeServerStats] Failed to fetch active children:",i.status),null;let v=await i.text(),u=parseInt(v.trim(),10);return isNaN(u)?(D().warn("[ComputeServerStats] Invalid active children response:",v),null):u}catch(i){return D().warn("[ComputeServerStats] Error fetching active children:",i),null}}async getVersion(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/version`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch version:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return{rhino:r.rhino??"",compute:r.compute??"",git_sha:r.git_sha??null}}catch{return{rhino:t,compute:"",git_sha:null}}}catch(e){return D().warn("[ComputeServerStats] Error fetching version:",e),null}}async getInstalledPlugins(e="gh"){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}/plugins/${e}/installed`);if(!t.ok)return D().warn(`[ComputeServerStats] Failed to fetch ${e} plugins:`,t.status),null;let r=await t.text();try{let a=JSON.parse(r);return a&&typeof a=="object"?a:null}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error fetching ${e} plugins:`,t),null}}async getServerStats(){if(this.ensureNotDisposed(),!await this.isServerOnline())return{isOnline:!1};let[e,t]=await Promise.all([this.getVersion(),this.getActiveChildren({initialize:!1})]);return{isOnline:!0,...e&&{version:e},...t!==null&&{activeChildren:t}}}async purgeCache(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/cache/purge`,{method:"POST"});if(!e.ok)return D().warn("[ComputeServerStats] Failed to purge cache:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return typeof r.purged=="number"?r.purged:null}catch{return null}}catch(e){return D().warn("[ComputeServerStats] Error purging cache:",e),null}}async purgeAllChildren(){this.ensureNotDisposed();let e=await this.getActiveChildren({initialize:!1});if(e===null)return D().warn("[ComputeServerStats] purgeAllChildren: could not read child count"),null;if(e===0)return{totalPurged:0,calls:0,children:0,confident:!0};let t=e*2,r=0;for(let a=0;a<t;a++){let i=await this.purgeCache();i!==null&&(r+=i)}return{totalPurged:r,calls:t,children:e,confident:e===1}}async getServerTime(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/servertime`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch server time:",e.status),null;let t=(await e.text()).trim().replace(/^"|"$/g,""),r=new Date(t);return isNaN(r.getTime())?null:r}catch(e){return D().warn("[ComputeServerStats] Error fetching server time:",e),null}}async getIdleSpan(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/idlespan`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch idle span:",e.status),null;let t=parseFloat((await e.text()).trim());return isNaN(t)?null:t}catch(e){return D().warn("[ComputeServerStats] Error fetching idle span:",e),null}}async launchChildren(){return this.postJson("/launch-children")}async launchChild(e){let t=e===void 0?"/launch-child":`/launch-child?port=${e}`;return this.postJson(t)}async shutdownChildren(e){let t=e===void 0?"/shutdown-children":`/shutdown-children?port=${e}`;return this.postJson(t)}async recycleChildren(e){let t=e===void 0?"/recycle-children":`/recycle-children?port=${e}`;return this.postJson(t)}async postJson(e){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}${e}`,{method:"POST"},Ie.LIFECYCLE_TIMEOUT_MS);if(!t.ok)return D().warn(`[ComputeServerStats] POST ${e} failed:`,t.status),null;let r=await t.text();try{return JSON.parse(r)}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error on POST ${e}:`,t),null}}monitor(e,t=5e3){this.ensureNotDisposed();let r=!0,a=null;D().info(`🔄 Starting server stats monitoring every ${t}ms`);let i=async()=>{if(a!==null&&(this.activeTimeouts.delete(a),a=null),!(!r||this.disposed)){try{let u=await this.getServerStats();if(!r||this.disposed)return;try{e(u)}catch(d){D().error("[ComputeServerStats] Monitor callback threw:",d)}}catch(u){D().error("[ComputeServerStats] Failed to fetch stats during monitor:",u)}r&&!this.disposed&&(a=setTimeout(()=>{i()},t),this.activeTimeouts.add(a))}},v=()=>{r=!1,a!==null&&(clearTimeout(a),this.activeTimeouts.delete(a),a=null),this.activeMonitors.delete(v)};return this.activeMonitors.add(v),i(),v}async dispose(){if(!this.disposed){this.disposed=!0;for(let e of this.activeMonitors)e();this.activeMonitors.clear();for(let e of this.activeTimeouts)clearTimeout(e);this.activeTimeouts.clear()}}ensureNotDisposed(){if(this.disposed)throw new me("ComputeServerStats has been disposed and cannot be used",ge.INVALID_STATE,{context:{disposed:this.disposed}})}};fe(it,"DEFAULT_TIMEOUT_MS",5e3),fe(it,"LIFECYCLE_TIMEOUT_MS",6e4);function cr(){let n=globalThis.Buffer;return typeof n=="function"?n:void 0}function ur(n){let e=cr();if(e){let t=e.from(n,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(typeof globalThis.atob=="function"){let t=globalThis.atob(n),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a)&255;return r}throw new me("Base64 decoding not supported in this environment.",ge.INVALID_STATE,{context:{environmentInfo:"atob or Buffer not available"}})}var hr=async(n,e,t=null)=>{if(typeof document>"u"||typeof Blob>"u")throw new me("File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).",ge.BROWSER_ONLY,{context:{environment:typeof window<"u"?"browser (SSR)":"Node.js",documentAvailable:typeof document<"u",blobAvailable:typeof Blob<"u"}});try{let r=await gr(n,t);await mr(r,e)}catch(r){throw r instanceof me?r:new me("Failed to download files from compute response",ge.INVALID_STATE,{context:{originalError:r instanceof Error?r.message:String(r)},originalError:r instanceof Error?r:void 0})}},vr=n=>{let e=[];return n.forEach(t=>{let r=`${t.fileName}${t.fileType}`,a=t.subFolder&&t.subFolder.trim()!==""?`${t.subFolder}/${r}`:r;t.isBase64Encoded===!0&&t.data?e.push({fileName:r,content:ur(t.data),path:a}):t.isBase64Encoded===!1&&t.data&&e.push({fileName:r,content:t.data,path:a})}),e},fr=async n=>(await Promise.all(n.map(async e=>{try{let t=await fetch(e.filePath);if(!t.ok)return D().warn(`Failed to fetch additional file from URL: ${e.filePath}`),null;let r=await(await t.blob()).arrayBuffer();return{fileName:e.fileName,content:new Uint8Array(r),path:e.fileName}}catch(t){return D().error(`Error fetching additional file from URL: ${e.filePath}`,t),null}}))).filter(e=>e!==null),gr=async(n,e)=>{let t=vr(n);if(e){let r=Array.isArray(e)?e:[e];t.push(...await fr(r))}return t};async function mr(n,e){let{zip:t,strToU8:r}=await Nt(()=>import("./BzBbrBKd.js"),[],import.meta.url),a={};n.forEach(u=>{a[u.path]=typeof u.content=="string"?r(u.content):u.content});let i=await new Promise((u,d)=>{t(a,{level:6},(_,y)=>_?d(_):u(y))}),v=new Blob([i],{type:"application/zip"});pr(v,`${e}.zip`)}function pr(n,e){if(typeof document>"u")throw new me("saveFile requires a browser environment with DOM API access.",ge.BROWSER_ONLY,{context:{function:"saveFile",requiredAPI:"document"}});let t=document.createElement("a");t.href=URL.createObjectURL(n),t.download=e,t.click(),URL.revokeObjectURL(t.href)}const _r={FILE_UPLOAD:{MAX_SIZE_MB:300,MAX_SIZE_BYTES:300*1024*1024},TIMEOUTS:{SOLVE_STATE_DURATION:3500,DRAWER_ANIMATION_MS:350},SOLVING_INDICATOR:{FAST_THRESHOLD_MS:200,SLOW_THRESHOLD_MS:600,ANIMATION_DELAY:300,HISTORY_SIZE:3},FILE_SIZE:{BYTES_PER_KB:1024}},br={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".svg":"image/svg+xml",".json":"application/json",".txt":"text/plain",".csv":"text/csv",".xml":"application/xml",".pdf":"application/pdf",".3dm":"model/vnd.3dm",".obj":"model/obj",".stl":"model/stl"};function wr(n){const e=(n.fileType??"").toLowerCase(),t=br[e]??"application/octet-stream";let r;if(n.isBase64Encoded){const v=atob(n.data),u=new Uint8Array(v.length);for(let d=0;d<v.length;d++)u[d]=v.charCodeAt(d);r=new Blob([u],{type:t})}else r=new Blob([n.data],{type:t});const a=`${n.fileName}${n.fileType??""}`,i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=a,i.click(),URL.revokeObjectURL(i.href)}async function Cn(n,e="grasshopper-output"){try{const t=Array.isArray(n)?n:[n];if(t.length===0){console.warn("[FileDownload] No files to download");return}if(t.length===1){wr(t[0]);return}await hr(t,e)}catch(t){throw console.error("[FileDownload] Error downloading files:",t),t}}function Tn(n){return typeof n=="object"&&n!==null&&"fileName"in n&&"data"in n&&"isBase64Encoded"in n}function lt(n){const e=new It;for(const t of n){const r=t.replace(/\([a-f0-9-]{36}\)$/i,"(...)").trim();e.set(r,(e.get(r)??0)+1)}return Array.from(e.entries()).map(([t,r])=>({message:t,count:r})).sort((t,r)=>r.count-t.count)}function Nn(n){if(n===0)return"0 Bytes";const e=_r.FILE_SIZE.BYTES_PER_KB,t=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(n)/Math.log(e));return Math.round(n/Math.pow(e,r)*100)/100+" "+t[r]}function In(n){return Math.ceil(n.length*3/4)}var yr=p("<!> Compute Messages",1),xr=p("<!> <!>",1),Sr=p('<!> <!> <span class="text-sm font-medium text-destructive"> </span>',1),Cr=p('<span class="ml-1 font-medium text-destructive/70"> </span>'),Tr=p('<li class="gap-2 text-sm flex text-destructive/90"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Nr=p('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-destructive bg-card"><ul class="space-y-2"></ul></div>'),Ir=p('<div class="overflow-hidden rounded-lg border border-destructive bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Er=p('<!> <!> <span class="text-sm font-medium text-warning"> </span>',1),Ar=p('<span class="ml-1 font-medium text-warning/70"> </span>'),Or=p('<li class="gap-2 text-sm flex text-muted-foreground"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Ur=p('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-warning/50 bg-card"><ul class="space-y-2"></ul></div>'),Mr=p('<div class="overflow-hidden rounded-lg border border-warning/50 bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Pr=p('<!> <div class="space-y-3 pr-2 overflow-y-auto" style="max-height: calc(80vh - 180px);"><!> <!></div>',1),Dr=p("<!> <!>",1);function kr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=we(!1),i=we(!0),v=we(!1);const u=C(()=>lt(t())),d=C(()=>lt(r())),_=C(()=>t().length+r().length);var y=M(),U=w(y);Y(U,()=>Tt,(k,m)=>{m(k,{get open(){return o(a)},set open(h){Z(a,h,!0)},children:(h,x)=>{var T=Dr(),F=w(T);Y(F,()=>ar,(Q,K)=>{K(Q,{class:"focus:outline-none",children:(ee,se)=>{var g=M(),E=w(g);z(E,()=>e.trigger),s(ee,g)},$$slots:{default:!0}})});var J=b(F,2);Y(J,()=>yt,(Q,K)=>{K(Q,{class:"max-w-2xl max-h-[80vh]",children:(ee,se)=>{var g=Pr(),E=w(g);Y(E,()=>xt,(A,O)=>{O(A,{children:(W,q)=>{var L=xr(),P=w(L);Y(P,()=>St,(R,j)=>{j(R,{class:"gap-2 flex items-center",children:(le,Te)=>{var te=yr(),_e=w(te);ze(_e,{class:"h-5 w-5"}),Ae(),s(le,te)},$$slots:{default:!0}})});var ie=b(P,2);Y(ie,()=>Ct,(R,j)=>{j(R,{children:(le,Te)=>{Ae();var te=vt();$(()=>X(te,`${o(_)??""}
|
|
1
|
+
import"./DsnmJJEf.js";import{f as w,d as b,n as Ae,c,r as l,t as $,p as ne,a as ae,g as o,i as Me,u as C,s as we,h as Z,aB as ht}from"./BtOVeLcI.js";import{a as s,f as p,c as M,p as Pe,t as vt}from"./BoLtD6vo.js";import{s as z}from"./8uBOzWQA.js";import{i as N}from"./DAQN5y4A.js";import{c as Ee,a as Oe,f as De,e as Ue,j as ft,d as et}from"./22C0ZkpD.js";import{s as pe,r as oe,p as f,c as Y}from"./ChEZL1UP.js";import{s as X,o as gt,a as mt,d as pt}from"./BNpXeuQ_.js";import{o as _t,u as bt}from"./aGXM-hZQ.js";import{B as wt}from"./mlApEF2J.js";import{I as ke}from"./BuC_QZkR.js";import{D as yt,a as xt,b as St,c as Ct,R as Tt}from"./jiMRToiE.js";import{_ as Nt}from"./BapAUJpM.js";import{S as It}from"./BdIvVr5K.js";import{g as Et}from"./B89jPufp.js";import{b as Le,d as G,m as Fe,a as $e,e as Ge,f as Je,h as At,g as Ot,c as Ut}from"./Bf2Kb0d4.js";import{C as ze}from"./Mn4D08zE.js";import{C as Mt,S as Pt,E as Dt,w as je,n as tt}from"./MGblXd4C.js";import{P as kt,c as Lt}from"./SM988pE-.js";import{T as ct}from"./DllGpGf3.js";import{C as rt}from"./C2PlvXZq.js";import{C as nt}from"./Bj6y_fSA.js";import{a as Ft,e as Rt}from"./COyeCbr6.js";import{p as Ye}from"./CVVCeyWM.js";function Bt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];ke(n,pe({name:"sun"},()=>t,{get iconNode(){return r}}))}function Vt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];ke(n,pe({name:"moon"},()=>t,{get iconNode(){return r}}))}var Wt=p('<!> <!> <span class="sr-only">Toggle theme</span>',1);function jt(n){wt(n,{get onclick(){return _t},variant:"outline",size:"icon",children:(e,t)=>{var r=Wt(),a=w(r);Bt(a,{class:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"});var i=b(a,2);Vt(i,{class:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),Ae(2),s(e,r)},$$slots:{default:!0}})}var Yt=p('<span class="text-sm text-border">/</span> <span class="text-sm font-medium text-muted-foreground"> </span>',1),zt=p('<nav class="ml-5 gap-1 flex"><!></nav>'),Ht=p('<div class="h-10 flex items-center border-t border-border/60 px-(--page-px)"><!></div>'),$t=p('<header><div class="gap-5 flex h-(--header-h) items-center px-(--page-px)"><a class="gap-2 flex shrink-0 items-center"><img alt="" aria-hidden="true" class="h-5 w-5"/> <span class="font-semibold text-sm tracking-tight"> </span></a> <!> <!> <div class="gap-2 ml-auto flex items-center"><!> <!></div></div> <!></header>');function Gt(n,e){let t=f(e,"homeUrl",3,"/app"),r=f(e,"title",3,void 0),a=f(e,"logo",3,"/favicon/favicon.svg"),i=f(e,"brandName",3,"Selva"),v=f(e,"showModeToggle",3,!0),u=f(e,"class",3,"");var d=$t(),_=c(d),y=c(_),U=c(y),k=b(U,2),m=c(k,!0);l(k),l(y);var h=b(y,2);{var x=S=>{var I=Yt(),H=b(w(I),2),ye=c(H,!0);l(H),$(()=>X(ye,r()??"")),s(S,I)};N(h,S=>{r()!==void 0&&S(x)})}var T=b(h,2);{var F=S=>{var I=zt(),H=c(I);z(H,()=>e.navItems),l(I),s(S,I)};N(T,S=>{e.navItems&&S(F)})}var J=b(T,2),Q=c(J);{var K=S=>{var I=M(),H=w(I);z(H,()=>e.rightContent),s(S,I)};N(Q,S=>{e.rightContent&&S(K)})}var ee=b(Q,2);{var se=S=>{jt(S)};N(ee,S=>{v()&&S(se)})}l(J),l(_);var g=b(_,2);{var E=S=>{var I=Ht(),H=c(I);z(H,()=>e.subnav),l(I),s(S,I)};N(g,S=>{e.subnav&&S(E)})}l(d),$(()=>{Ee(d,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${u()}`),Oe(y,"href",t()),Oe(U,"src",a()),X(m,i())}),s(n,d)}function Jt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"m10 17 5-5-5-5"}],["path",{d:"M15 12H3"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}]];ke(n,pe({name:"log-in"},()=>t,{get iconNode(){return r}}))}function Kt(n,e){let t=oe(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];ke(n,pe({name:"log-out"},()=>t,{get iconNode(){return r}}))}var qt=p("<button><!></button>");function Zt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const u=Et.create({id:G(()=>r()),ref:G(()=>a(),m=>a(m)),disabled:G(()=>!!i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=qt();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}const Ke=Ut({component:"collapsible",parts:["root","content","trigger"]}),qe=new Mt("Collapsible.Root");class Ze{static create(e){return qe.set(new Ze(e))}opts;attachment;#e=we(null);get contentNode(){return o(this.#e)}set contentNode(e){Z(this.#e,e,!0)}contentPresence;#t=we(void 0);get contentId(){return o(this.#t)}set contentId(e){Z(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$e(this.opts.ref),this.contentPresence=new kt({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=C(()=>({id:this.opts.id.current,"data-state":Je(this.opts.open.current),"data-disabled":Ge(this.opts.disabled.current),[Ke.root]:"",...this.attachment}));get props(){return o(this.#r)}set props(e){Z(this.#r,e)}}class Xe{static create(e){return new Xe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return o(this.#e)}set present(e){Z(this.#e,e)}#t;#r=we(!1);#n=we(0);#a=we(0);constructor(e,t){this.opts=e,this.root=t,Z(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$e(this.opts.ref,r=>this.root.contentNode=r),je.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),ht(()=>{const r=requestAnimationFrame(()=>{Z(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),je.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([r,a])=>!r||!a?void 0:gt(r,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),je([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Lt(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const a=r.getBoundingClientRect();if(Z(this.#a,a.height,!0),Z(this.#n,a.width,!0),!o(this.#r)){const{animationName:i,transitionDuration:v}=this.#t;r.style.transitionDuration=v,r.style.animationName=i}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#o)}set snippetProps(e){Z(this.#o,e)}#s=C(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":o(this.#a)?`${o(this.#a)}px`:void 0,"--bits-collapsible-content-width":o(this.#n)?`${o(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Je(this.root.opts.open.current),...Ot(this.root.contentPresence.transitionStatus),"data-disabled":Ge(this.root.opts.disabled.current),[Ke.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return o(this.#s)}set props(e){Z(this.#s,e)}}class Qe{static create(e){return new Qe(e,qe.get())}opts;root;attachment;#e=C(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!o(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){o(this.#e)||(e.key===Pt||e.key===Dt)&&(e.preventDefault(),this.root.toggleOpen())}#t=C(()=>({id:this.opts.id.current,type:"button",disabled:o(this.#e),"aria-controls":this.root.contentId,"aria-expanded":At(this.root.opts.open.current),"data-state":Je(this.root.opts.open.current),"data-disabled":Ge(o(this.#e)),[Ke.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#t)}set props(e){Z(this.#t,e)}}var Xt=p("<div><!></div>");function Qt(n,e){const t=Pe();ne(e,!0);let r=f(e,"id",19,()=>Le(t)),a=f(e,"ref",15,null),i=f(e,"open",15,!1),v=f(e,"disabled",3,!1),u=f(e,"onOpenChange",3,tt),d=f(e,"onOpenChangeComplete",3,tt),_=oe(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const y=Ze.create({open:G(()=>i(),T=>{i(T),u()(T)}),disabled:G(()=>v()),id:G(()=>r()),ref:G(()=>a(),T=>a(T)),onOpenChangeComplete:G(()=>d())}),U=C(()=>Fe(_,y.props));var k=M(),m=w(k);{var h=T=>{var F=M(),J=w(F);z(J,()=>e.child,()=>({props:o(U)})),s(T,F)},x=T=>{var F=Xt();De(F,()=>({...o(U)}));var J=c(F);z(J,()=>e.children??Me),l(F),s(T,F)};N(m,T=>{e.child?T(h):T(x,-1)})}s(n,k),ae()}var er=p("<div><!></div>");function tr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"forceMount",3,!1),i=f(e,"hiddenUntilFound",3,!1),v=f(e,"id",19,()=>Le(t)),u=oe(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const d=Xe.create({id:G(()=>v()),forceMount:G(()=>a()),hiddenUntilFound:G(()=>i()),ref:G(()=>r(),h=>r(h))}),_=C(()=>Fe(u,d.props));var y=M(),U=w(y);{var k=h=>{var x=M(),T=w(x);{let F=C(()=>({...d.snippetProps,props:o(_)}));z(T,()=>e.child,()=>o(F))}s(h,x)},m=h=>{var x=er();De(x,()=>({...o(_)}));var T=c(x);z(T,()=>e.children??Me),l(x),s(h,x)};N(U,h=>{e.child?h(k):h(m,-1)})}s(n,y),ae()}var rr=p("<button><!></button>");function nr(n,e){const t=Pe();ne(e,!0);let r=f(e,"ref",15,null),a=f(e,"id",19,()=>Le(t)),i=f(e,"disabled",3,!1),v=oe(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const u=Qe.create({id:G(()=>a()),ref:G(()=>r(),m=>r(m)),disabled:G(()=>i())}),d=C(()=>Fe(v,u.props));var _=M(),y=w(_);{var U=m=>{var h=M(),x=w(h);z(x,()=>e.child,()=>({props:o(d)})),s(m,h)},k=m=>{var h=rr();De(h,()=>({...o(d)}));var x=c(h);z(x,()=>e.children??Me),l(h),s(m,h)};N(y,m=>{e.child?m(U):m(k,-1)})}s(n,_),ae()}function at(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=f(e,"open",15,!1),a=oe(e,["$$slots","$$events","$$legacy","ref","open"]);var i=M(),v=w(i);Y(v,()=>Qt,(u,d)=>{d(u,pe({"data-slot":"collapsible"},()=>a,{get ref(){return t()},set ref(_){t(_)},get open(){return r()},set open(_){r(_)}}))}),s(n,i),ae()}function ot(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>nr,(v,u)=>{u(v,pe({"data-slot":"collapsible-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function st(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>tr,(v,u)=>{u(v,pe({"data-slot":"collapsible-content"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}function ar(n,e){ne(e,!0);let t=f(e,"ref",15,null),r=oe(e,["$$slots","$$events","$$legacy","ref"]);var a=M(),i=w(a);Y(i,()=>Zt,(v,u)=>{u(v,pe({"data-slot":"dialog-trigger"},()=>r,{get ref(){return t()},set ref(d){t(d)}}))}),s(n,a),ae()}var ut=Object.defineProperty,or=(n,e,t)=>e in n?ut(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Sn=(n,e)=>{for(var t in e)ut(n,t,{get:e[t],enumerable:!0})},fe=(n,e,t)=>or(n,typeof e!="symbol"?e+"":e,t),ge={VALIDATION_ERROR:"VALIDATION_ERROR",INVALID_STATE:"INVALID_STATE",INVALID_INPUT:"INVALID_INPUT",INVALID_CONFIG:"INVALID_CONFIG",BROWSER_ONLY:"BROWSER_ONLY"},me=class He extends Error{constructor(e,t="UNKNOWN_ERROR",r){super(e),fe(this,"code"),fe(this,"statusCode"),fe(this,"context"),fe(this,"originalError"),this.name="RhinoComputeError",this.code=t,this.statusCode=r?.statusCode,this.context=r?.context,this.originalError=r?.originalError,r?.originalError&&(this.cause=r.originalError)}static missingValues(e,t,r){return new He(`Input "${e}" has no values defined${t?` (expected ${t})`:""}`,ge.INVALID_INPUT,{context:{inputName:e,expectedType:t,...r}})}static unknownParamType(e,t,r){return new He(`Unknown paramType: ${e}`,ge.VALIDATION_ERROR,{context:{receivedParamType:e,paramName:t,...r}})}},sr=class{debug(){}info(){}warn(){}error(){}},ir=new sr;function D(){return ir}var lr="https://compute.rhino3d.com/";function dr(n){if(!n?.trim())throw new me("serverUrl is required",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});if(!n.match(/^https?:\/\//))throw new me(`Invalid serverUrl: "${n}". Must start with "http://" or "https://". For example: "http://localhost:5000" or "https://example.com"`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});try{new URL(n)}catch(e){throw new me(`Invalid serverUrl: "${n}". Must be a valid URL. Received error: ${e instanceof Error?e.message:String(e)}`,ge.INVALID_CONFIG,{context:{receivedServerUrl:n},originalError:e instanceof Error?e:void 0})}if(n===lr)throw new me("serverUrl must be set to your Compute server URL. The default public endpoint is not allowed.",ge.INVALID_CONFIG,{context:{receivedServerUrl:n}});return n.replace(/\/+$/,"")}var it=class Ie{constructor(e,t){fe(this,"serverUrl"),fe(this,"apiKey"),fe(this,"disposed",!1),fe(this,"activeMonitors",new Set),fe(this,"activeTimeouts",new Set),this.serverUrl=dr(e),this.apiKey=t}buildHeaders(){let e={"Content-Type":"application/json"};return this.apiKey&&(e.RhinoComputeKey=this.apiKey),e}fetchWithTimeout(e,t={},r=Ie.DEFAULT_TIMEOUT_MS){let a={headers:this.buildHeaders(),...t};return r>0&&!a.signal&&(a.signal=AbortSignal.timeout(r)),fetch(e,a)}async isServerOnline(e=5e3){this.ensureNotDisposed();let t=`${this.serverUrl}/`;try{return(await this.fetchWithTimeout(t,{method:"GET"},e)).ok}catch(r){return D().debug("[ComputeServerStats] Fetch error:",r),!1}}async getActiveChildren(e={}){this.ensureNotDisposed();let{initialize:t=!0}=e,r=t?`${this.serverUrl}/activechildren`:`${this.serverUrl}/activechildren?initialize=false`,a=t?Ie.LIFECYCLE_TIMEOUT_MS:Ie.DEFAULT_TIMEOUT_MS;try{let i=await this.fetchWithTimeout(r,{},a);if(!i.ok)return D().warn("[ComputeServerStats] Failed to fetch active children:",i.status),null;let v=await i.text(),u=parseInt(v.trim(),10);return isNaN(u)?(D().warn("[ComputeServerStats] Invalid active children response:",v),null):u}catch(i){return D().warn("[ComputeServerStats] Error fetching active children:",i),null}}async getVersion(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/version`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch version:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return{rhino:r.rhino??"",compute:r.compute??"",git_sha:r.git_sha??null}}catch{return{rhino:t,compute:"",git_sha:null}}}catch(e){return D().warn("[ComputeServerStats] Error fetching version:",e),null}}async getInstalledPlugins(e="gh"){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}/plugins/${e}/installed`);if(!t.ok)return D().warn(`[ComputeServerStats] Failed to fetch ${e} plugins:`,t.status),null;let r=await t.text();try{let a=JSON.parse(r);return a&&typeof a=="object"?a:null}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error fetching ${e} plugins:`,t),null}}async getServerStats(){if(this.ensureNotDisposed(),!await this.isServerOnline())return{isOnline:!1};let[e,t]=await Promise.all([this.getVersion(),this.getActiveChildren({initialize:!1})]);return{isOnline:!0,...e&&{version:e},...t!==null&&{activeChildren:t}}}async purgeCache(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/cache/purge`,{method:"POST"});if(!e.ok)return D().warn("[ComputeServerStats] Failed to purge cache:",e.status),null;let t=await e.text();try{let r=JSON.parse(t);return typeof r.purged=="number"?r.purged:null}catch{return null}}catch(e){return D().warn("[ComputeServerStats] Error purging cache:",e),null}}async purgeAllChildren(){this.ensureNotDisposed();let e=await this.getActiveChildren({initialize:!1});if(e===null)return D().warn("[ComputeServerStats] purgeAllChildren: could not read child count"),null;if(e===0)return{totalPurged:0,calls:0,children:0,confident:!0};let t=e*2,r=0;for(let a=0;a<t;a++){let i=await this.purgeCache();i!==null&&(r+=i)}return{totalPurged:r,calls:t,children:e,confident:e===1}}async getServerTime(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/servertime`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch server time:",e.status),null;let t=(await e.text()).trim().replace(/^"|"$/g,""),r=new Date(t);return isNaN(r.getTime())?null:r}catch(e){return D().warn("[ComputeServerStats] Error fetching server time:",e),null}}async getIdleSpan(){this.ensureNotDisposed();try{let e=await this.fetchWithTimeout(`${this.serverUrl}/idlespan`);if(!e.ok)return D().warn("[ComputeServerStats] Failed to fetch idle span:",e.status),null;let t=parseFloat((await e.text()).trim());return isNaN(t)?null:t}catch(e){return D().warn("[ComputeServerStats] Error fetching idle span:",e),null}}async launchChildren(){return this.postJson("/launch-children")}async launchChild(e){let t=e===void 0?"/launch-child":`/launch-child?port=${e}`;return this.postJson(t)}async shutdownChildren(e){let t=e===void 0?"/shutdown-children":`/shutdown-children?port=${e}`;return this.postJson(t)}async recycleChildren(e){let t=e===void 0?"/recycle-children":`/recycle-children?port=${e}`;return this.postJson(t)}async postJson(e){this.ensureNotDisposed();try{let t=await this.fetchWithTimeout(`${this.serverUrl}${e}`,{method:"POST"},Ie.LIFECYCLE_TIMEOUT_MS);if(!t.ok)return D().warn(`[ComputeServerStats] POST ${e} failed:`,t.status),null;let r=await t.text();try{return JSON.parse(r)}catch{return null}}catch(t){return D().warn(`[ComputeServerStats] Error on POST ${e}:`,t),null}}monitor(e,t=5e3){this.ensureNotDisposed();let r=!0,a=null;D().info(`🔄 Starting server stats monitoring every ${t}ms`);let i=async()=>{if(a!==null&&(this.activeTimeouts.delete(a),a=null),!(!r||this.disposed)){try{let u=await this.getServerStats();if(!r||this.disposed)return;try{e(u)}catch(d){D().error("[ComputeServerStats] Monitor callback threw:",d)}}catch(u){D().error("[ComputeServerStats] Failed to fetch stats during monitor:",u)}r&&!this.disposed&&(a=setTimeout(()=>{i()},t),this.activeTimeouts.add(a))}},v=()=>{r=!1,a!==null&&(clearTimeout(a),this.activeTimeouts.delete(a),a=null),this.activeMonitors.delete(v)};return this.activeMonitors.add(v),i(),v}async dispose(){if(!this.disposed){this.disposed=!0;for(let e of this.activeMonitors)e();this.activeMonitors.clear();for(let e of this.activeTimeouts)clearTimeout(e);this.activeTimeouts.clear()}}ensureNotDisposed(){if(this.disposed)throw new me("ComputeServerStats has been disposed and cannot be used",ge.INVALID_STATE,{context:{disposed:this.disposed}})}};fe(it,"DEFAULT_TIMEOUT_MS",5e3),fe(it,"LIFECYCLE_TIMEOUT_MS",6e4);function cr(){let n=globalThis.Buffer;return typeof n=="function"?n:void 0}function ur(n){let e=cr();if(e){let t=e.from(n,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(typeof globalThis.atob=="function"){let t=globalThis.atob(n),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a)&255;return r}throw new me("Base64 decoding not supported in this environment.",ge.INVALID_STATE,{context:{environmentInfo:"atob or Buffer not available"}})}var hr=async(n,e,t=null)=>{if(typeof document>"u"||typeof Blob>"u")throw new me("File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).",ge.BROWSER_ONLY,{context:{environment:typeof window<"u"?"browser (SSR)":"Node.js",documentAvailable:typeof document<"u",blobAvailable:typeof Blob<"u"}});try{let r=await gr(n,t);await mr(r,e)}catch(r){throw r instanceof me?r:new me("Failed to download files from compute response",ge.INVALID_STATE,{context:{originalError:r instanceof Error?r.message:String(r)},originalError:r instanceof Error?r:void 0})}},vr=n=>{let e=[];return n.forEach(t=>{let r=`${t.fileName}${t.fileType}`,a=t.subFolder&&t.subFolder.trim()!==""?`${t.subFolder}/${r}`:r;t.isBase64Encoded===!0&&t.data?e.push({fileName:r,content:ur(t.data),path:a}):t.isBase64Encoded===!1&&t.data&&e.push({fileName:r,content:t.data,path:a})}),e},fr=async n=>(await Promise.all(n.map(async e=>{try{let t=await fetch(e.filePath);if(!t.ok)return D().warn(`Failed to fetch additional file from URL: ${e.filePath}`),null;let r=await(await t.blob()).arrayBuffer();return{fileName:e.fileName,content:new Uint8Array(r),path:e.fileName}}catch(t){return D().error(`Error fetching additional file from URL: ${e.filePath}`,t),null}}))).filter(e=>e!==null),gr=async(n,e)=>{let t=vr(n);if(e){let r=Array.isArray(e)?e:[e];t.push(...await fr(r))}return t};async function mr(n,e){let{zip:t,strToU8:r}=await Nt(()=>import("./BzBbrBKd.js"),[],import.meta.url),a={};n.forEach(u=>{a[u.path]=typeof u.content=="string"?r(u.content):u.content});let i=await new Promise((u,d)=>{t(a,{level:6},(_,y)=>_?d(_):u(y))}),v=new Blob([i],{type:"application/zip"});pr(v,`${e}.zip`)}function pr(n,e){if(typeof document>"u")throw new me("saveFile requires a browser environment with DOM API access.",ge.BROWSER_ONLY,{context:{function:"saveFile",requiredAPI:"document"}});let t=document.createElement("a");t.href=URL.createObjectURL(n),t.download=e,t.click(),URL.revokeObjectURL(t.href)}const _r={FILE_UPLOAD:{MAX_SIZE_MB:300,MAX_SIZE_BYTES:300*1024*1024},TIMEOUTS:{SOLVE_STATE_DURATION:3500,DRAWER_ANIMATION_MS:350},SOLVING_INDICATOR:{FAST_THRESHOLD_MS:200,SLOW_THRESHOLD_MS:600,ANIMATION_DELAY:300,HISTORY_SIZE:3},FILE_SIZE:{BYTES_PER_KB:1024}},br={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".svg":"image/svg+xml",".json":"application/json",".txt":"text/plain",".csv":"text/csv",".xml":"application/xml",".pdf":"application/pdf",".3dm":"model/vnd.3dm",".obj":"model/obj",".stl":"model/stl"};function wr(n){const e=(n.fileType??"").toLowerCase(),t=br[e]??"application/octet-stream";let r;if(n.isBase64Encoded){const v=atob(n.data),u=new Uint8Array(v.length);for(let d=0;d<v.length;d++)u[d]=v.charCodeAt(d);r=new Blob([u],{type:t})}else r=new Blob([n.data],{type:t});const a=`${n.fileName}${n.fileType??""}`,i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=a,i.click(),URL.revokeObjectURL(i.href)}async function Cn(n,e="grasshopper-output"){try{const t=Array.isArray(n)?n:[n];if(t.length===0){console.warn("[FileDownload] No files to download");return}if(t.length===1){wr(t[0]);return}await hr(t,e)}catch(t){throw console.error("[FileDownload] Error downloading files:",t),t}}function Tn(n){return typeof n=="object"&&n!==null&&"fileName"in n&&"data"in n&&"isBase64Encoded"in n}function lt(n){const e=new It;for(const t of n){const r=t.replace(/\([a-f0-9-]{36}\)$/i,"(...)").trim();e.set(r,(e.get(r)??0)+1)}return Array.from(e.entries()).map(([t,r])=>({message:t,count:r})).sort((t,r)=>r.count-t.count)}function Nn(n){if(n===0)return"0 Bytes";const e=_r.FILE_SIZE.BYTES_PER_KB,t=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(n)/Math.log(e));return Math.round(n/Math.pow(e,r)*100)/100+" "+t[r]}function In(n){return Math.ceil(n.length*3/4)}var yr=p("<!> Compute Messages",1),xr=p("<!> <!>",1),Sr=p('<!> <!> <span class="text-sm font-medium text-destructive"> </span>',1),Cr=p('<span class="ml-1 font-medium text-destructive/70"> </span>'),Tr=p('<li class="gap-2 text-sm flex text-destructive/90"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Nr=p('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-destructive bg-card"><ul class="space-y-2"></ul></div>'),Ir=p('<div class="overflow-hidden rounded-lg border border-destructive bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Er=p('<!> <!> <span class="text-sm font-medium text-warning"> </span>',1),Ar=p('<span class="ml-1 font-medium text-warning/70"> </span>'),Or=p('<li class="gap-2 text-sm flex text-muted-foreground"><span class="shrink-0">•</span> <span class="flex-1"> <!></span></li>'),Ur=p('<div class="max-h-60 px-4 py-3 overflow-y-auto border-t border-warning/50 bg-card"><ul class="space-y-2"></ul></div>'),Mr=p('<div class="overflow-hidden rounded-lg border border-warning/50 bg-card"><div class="px-4 py-3 flex items-center"><!></div> <!></div>'),Pr=p('<!> <div class="space-y-3 pr-2 overflow-y-auto" style="max-height: calc(80vh - 180px);"><!> <!></div>',1),Dr=p("<!> <!>",1);function kr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=we(!1),i=we(!0),v=we(!1);const u=C(()=>lt(t())),d=C(()=>lt(r())),_=C(()=>t().length+r().length);var y=M(),U=w(y);Y(U,()=>Tt,(k,m)=>{m(k,{get open(){return o(a)},set open(h){Z(a,h,!0)},children:(h,x)=>{var T=Dr(),F=w(T);Y(F,()=>ar,(Q,K)=>{K(Q,{class:"focus:outline-none",children:(ee,se)=>{var g=M(),E=w(g);z(E,()=>e.trigger),s(ee,g)},$$slots:{default:!0}})});var J=b(F,2);Y(J,()=>yt,(Q,K)=>{K(Q,{class:"max-w-2xl max-h-[80vh]",children:(ee,se)=>{var g=Pr(),E=w(g);Y(E,()=>xt,(A,O)=>{O(A,{children:(W,q)=>{var L=xr(),P=w(L);Y(P,()=>St,(R,j)=>{j(R,{class:"gap-2 flex items-center",children:(le,Te)=>{var te=yr(),_e=w(te);ze(_e,{class:"h-5 w-5"}),Ae(),s(le,te)},$$slots:{default:!0}})});var ie=b(P,2);Y(ie,()=>Ct,(R,j)=>{j(R,{children:(le,Te)=>{Ae();var te=vt();$(()=>X(te,`${o(_)??""}
|
|
2
2
|
${o(_)===1?"issue":"issues"} detected during solve`)),s(le,te)},$$slots:{default:!0}})}),s(W,L)},$$slots:{default:!0}})});var S=b(E,2),I=c(S);{var H=A=>{var O=M(),W=w(O);Y(W,()=>at,(q,L)=>{L(q,{get open(){return o(i)},set open(P){Z(i,P,!0)},children:(P,ie)=>{var R=Ir(),j=c(R),le=c(j);Y(le,()=>ot,(te,_e)=>{_e(te,{class:"-mx-4 -my-3 gap-3 px-4 py-3 flex flex-1 items-center text-left transition-colors hover:bg-destructive/5",children:(xe,Re)=>{var re=Sr(),de=w(re);{var ce=B=>{rt(B,{class:"h-4 w-4 shrink-0 text-destructive"})},ue=B=>{nt(B,{class:"h-4 w-4 shrink-0 text-destructive"})};N(de,B=>{o(i)?B(ce):B(ue,-1)})}var be=b(de,2);ze(be,{class:"h-4 w-4 shrink-0 text-destructive"});var he=b(be,2),ve=c(he,!0);l(he),$(()=>X(ve,t().length===1?"1 Error":`${t().length} Errors`)),s(xe,re)},$$slots:{default:!0}})}),l(j);var Te=b(j,2);Y(Te,()=>st,(te,_e)=>{_e(te,{class:"space-y-0",children:(xe,Re)=>{var re=Nr(),de=c(re);Ue(de,21,()=>o(u),({message:ce,count:ue})=>ce,(ce,ue)=>{let be=()=>o(ue).message,he=()=>o(ue).count;var ve=Tr(),B=b(c(ve),2),Ne=c(B),Be=b(Ne);{var Ve=Se=>{var Ce=Cr(),We=c(Ce);l(Ce),$(()=>X(We,`×${he()??""}`)),s(Se,Ce)};N(Be,Se=>{he()>1&&Se(Ve)})}l(B),l(ve),$(()=>X(Ne,`${be()??""} `)),s(ce,ve)}),l(de),l(re),s(xe,re)},$$slots:{default:!0}})}),l(R),s(P,R)},$$slots:{default:!0}})}),s(A,O)};N(I,A=>{t().length>0&&A(H)})}var ye=b(I,2);{var V=A=>{var O=M(),W=w(O);Y(W,()=>at,(q,L)=>{L(q,{get open(){return o(v)},set open(P){Z(v,P,!0)},children:(P,ie)=>{var R=Mr(),j=c(R),le=c(j);Y(le,()=>ot,(te,_e)=>{_e(te,{class:"-mx-4 -my-3 gap-3 px-4 py-3 flex flex-1 items-center text-left transition-colors hover:bg-warning/5",children:(xe,Re)=>{var re=Er(),de=w(re);{var ce=B=>{rt(B,{class:"h-4 w-4 shrink-0 text-warning"})},ue=B=>{nt(B,{class:"h-4 w-4 shrink-0 text-warning"})};N(de,B=>{o(v)?B(ce):B(ue,-1)})}var be=b(de,2);ct(be,{class:"h-4 w-4 shrink-0 text-warning"});var he=b(be,2),ve=c(he,!0);l(he),$(()=>X(ve,r().length===1?"1 Warning":`${r().length} Warnings`)),s(xe,re)},$$slots:{default:!0}})}),l(j);var Te=b(j,2);Y(Te,()=>st,(te,_e)=>{_e(te,{class:"space-y-0",children:(xe,Re)=>{var re=Ur(),de=c(re);Ue(de,21,()=>o(d),({message:ce,count:ue})=>ce,(ce,ue)=>{let be=()=>o(ue).message,he=()=>o(ue).count;var ve=Or(),B=b(c(ve),2),Ne=c(B),Be=b(Ne);{var Ve=Se=>{var Ce=Ar(),We=c(Ce);l(Ce),$(()=>X(We,`×${he()??""}`)),s(Se,Ce)};N(Be,Se=>{he()>1&&Se(Ve)})}l(B),l(ve),$(()=>X(Ne,`${be()??""} `)),s(ce,ve)}),l(de),l(re),s(xe,re)},$$slots:{default:!0}})}),l(R),s(P,R)},$$slots:{default:!0}})}),s(A,O)};N(ye,A=>{r().length>0&&A(V)})}l(S),s(ee,g)},$$slots:{default:!0}})}),s(h,T)},$$slots:{default:!0}})}),s(n,y),ae()}var Lr=p('<button class="gap-1.5 px-2 py-0.5 rounded flex cursor-pointer items-center transition-colors hover:bg-muted"><!></button>'),Fr=p('<div class="flex items-center"><!></div>');function dt(n,e){ne(e,!0);const t=C(()=>e.item.getProps());var r=M(),a=w(r);{var i=u=>{var d=Lr(),_=c(d);Y(_,()=>e.item.component,(y,U)=>{U(y,pe(()=>o(t)))}),l(d),mt("click",d,function(...y){e.item.onClick?.apply(this,y)}),s(u,d)},v=u=>{var d=Fr(),_=c(d);Y(_,()=>e.item.component,(y,U)=>{U(y,pe(()=>o(t)))}),l(d),s(u,d)};N(a,u=>{e.item.onClick?u(i):u(v,-1)})}s(n,r),ae()}pt(["click"]);var Rr=p('<!> <span class="font-medium"> </span>',1),Br=p('<span class="text-border">•</span>'),Vr=p('<!> <!> <span class="font-medium"> </span>',1),Wr=p("<div><!> <!></div>"),jr=p('<div class="gap-4 flex items-center"><!></div>'),Yr=p('<footer class="px-4 gap-4 text-xs h-7 flex shrink-0 items-center justify-between border-t border-border bg-background text-muted-foreground select-none"><div class="gap-4 flex items-center"><!> <!> <!></div> <div class="gap-4 ml-auto flex items-center"><!> <p> </p></div></footer>');function zr(n,e){ne(e,!0);let t=f(e,"errors",19,()=>[]),r=f(e,"warnings",19,()=>[]),a=f(e,"copyrightName",3,"Selva"),i=(()=>{try{return bt()}catch{return null}})();const v=C(()=>i?Array.from(i.items.values()).filter(g=>g.position==="left").sort((g,E)=>(E.priority??0)-(g.priority??0)):[]),u=C(()=>i?Array.from(i.items.values()).filter(g=>g.position==="right").sort((g,E)=>(E.priority??0)-(g.priority??0)):[]);let d=new Date().getFullYear();const _=C(()=>t().length>0||r().length>0),y=C(()=>t().length+r().length),U=C(()=>e.footerText?e.footerText.replace("{name}",a()).replace("{year}",String(d)):`by ${a()} © ${d}`);var k=Yr(),m=c(k),h=c(m);Ue(h,17,()=>o(v),g=>g.id,(g,E)=>{dt(g,{get item(){return o(E)}})});var x=b(h,2);{var T=g=>{kr(g,{get errors(){return t()},get warnings(){return r()},trigger:S=>{var I=Wr(),H=c(I);{var ye=O=>{var W=Rr(),q=w(W);ze(q,{class:"h-3.5 w-3.5"});var L=b(q,2),P=c(L);l(L),$(()=>X(P,`${t().length??""} Error${t().length!==1?"s":""}`)),s(O,W)};N(H,O=>{t().length>0&&O(ye)})}var V=b(H,2);{var A=O=>{var W=Vr(),q=w(W);{var L=j=>{var le=Br();s(j,le)};N(q,j=>{t().length>0&&j(L)})}var P=b(q,2);ct(P,{class:"h-3.5 w-3.5"});var ie=b(P,2),R=c(ie);l(ie),$(()=>X(R,`${r().length??""} Warning${r().length!==1?"s":""}`)),s(O,W)};N(V,O=>{r().length>0&&O(A)})}l(I),$(()=>{Ee(I,1,`gap-1.5 px-2 py-1 rounded flex cursor-pointer items-center transition-colors hover:bg-muted ${t().length>0?"text-destructive hover:bg-destructive/10":"text-warning hover:bg-warning/10"}`),Oe(I,"title",`${o(y)} ${o(y)===1?"issue":"issues"}`)}),s(S,I)},$$slots:{trigger:!0}})};N(x,g=>{o(_)&&g(T)})}var F=b(x,2);{var J=g=>{var E=jr(),S=c(E);z(S,()=>e.children),l(E),s(g,E)};N(F,g=>{e.children&&g(J)})}l(m);var Q=b(m,2),K=c(Q);Ue(K,17,()=>o(u),g=>g.id,(g,E)=>{dt(g,{get item(){return o(E)}})});var ee=b(K,2),se=c(ee,!0);l(ee),l(Q),l(k),$(()=>X(se,o(U))),s(n,k),ae()}var Hr=p('<header><div class="flex h-(--header-h) items-center px-(--page-px)"><!></div></header>'),$r=p('<!> <main class="flex-1 overflow-y-auto"><!></main>',1),Gr=p('<div class="bottom-0 sticky z-10 shrink-0"><!></div>'),Jr=p("<div><!> <div><!></div> <!></div>");function En(n,e){ne(e,!0);let t=f(e,"showHeader",3,!0),r=f(e,"homeUrl",3,"/"),a=f(e,"title",3,void 0),i=f(e,"logo",3,"/favicon/favicon.svg"),v=f(e,"brandName",3,"Selva"),u=f(e,"copyrightName",3,void 0),d=f(e,"showModeToggle",3,!0),_=f(e,"headerClass",3,""),y=f(e,"mode",3,"scroll"),U=f(e,"showFooter",3,!1),k=f(e,"errors",19,()=>[]),m=f(e,"warnings",19,()=>[]),h=f(e,"class",3,""),x=f(e,"bodyClass",3,"");const T=C(()=>u()??v()),F=C(()=>y()==="fixed"?`flex flex-col h-screen overflow-hidden bg-background ${h()}`:`flex flex-col min-h-screen bg-background ${h()}`),J=C(()=>y()==="fixed"?`flex flex-1 min-h-0 ${e.sidenav?"flex-row":"flex-col"} ${x()}`.trim():`flex-1 ${e.sidenav?"flex flex-row":""} ${x()}`.trim()),Q="";var K=Jr(),ee=c(K);{var se=V=>{var A=M(),O=w(A);{var W=L=>{var P=Hr(),ie=c(P),R=c(ie);z(R,()=>e.header),l(ie),l(P),$(()=>Ee(P,1,`top-0 backdrop-blur-sm sticky z-40 border-b border-border bg-background/90 ${_()}`)),s(L,P)},q=L=>{Gt(L,{get homeUrl(){return r()},get title(){return a()},get logo(){return i()},get brandName(){return v()},get showModeToggle(){return d()},get navItems(){return e.navItems},get rightContent(){return e.rightContent},get subnav(){return e.subnav},get class(){return _()}})};N(O,L=>{e.header?L(W):L(q,-1)})}s(V,A)};N(ee,V=>{t()&&V(se)})}var g=b(ee,2);ft(g,Q);var E=c(g);{var S=V=>{var A=$r(),O=w(A);z(O,()=>e.sidenav);var W=b(O,2),q=c(W);z(q,()=>e.children),l(W),s(V,A)},I=V=>{var A=M(),O=w(A);z(O,()=>e.children),s(V,A)};N(E,V=>{e.sidenav?V(S):V(I,-1)})}l(g);var H=b(g,2);{var ye=V=>{var A=Gr(),O=c(A);zr(O,{get errors(){return k()},get warnings(){return m()},get copyrightName(){return o(T)},get footerText(){return e.footerText},children:(W,q)=>{var L=M(),P=w(L);{var ie=R=>{var j=M(),le=w(j);z(le,()=>e.footerChildren),s(R,j)};N(P,R=>{e.footerChildren&&R(ie)})}s(W,L)},$$slots:{default:!0}}),l(A),s(V,A)};N(H,V=>{U()&&V(ye)})}l(K),$(()=>{Ee(K,1,et(o(F))),Ee(g,1,et(o(J)))}),s(n,K),ae()}var Kr=p('<div class="bg-border w-px self-stretch"></div> <form method="POST" action="/logout"><button type="submit" title="Log out" class="text-muted-foreground hover:text-foreground hover:bg-muted rounded-full p-2 transition-colors"><!></button></form>',1),qr=p('<div class="border-border bg-card flex items-center gap-px rounded-full border shadow-sm"><div class="flex items-center gap-2 py-1 pr-3 pl-1"><div class="bg-primary text-primary-foreground flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-semibold"> </div> <span class="text-foreground hidden max-w-32 truncate text-sm font-medium sm:block"> </span></div> <!></div>'),Zr=p('<a class="border-border bg-card text-muted-foreground hover:text-foreground flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium shadow-sm transition-colors"><!> <span class="hidden sm:block">Log in</span></a>');function An(n,e){ne(e,!0);const t=C(()=>Ye.data),r=C(()=>o(t).user??null),a=C(()=>o(t).profile??null),i=C(()=>!o(t).hasProxyAuth),v=C(()=>o(a)?.displayName??o(r)?.email?.split("@")[0]??o(r)?.id??""),u=C(()=>o(v)[0]?.toUpperCase()??""),d=C(()=>`/login?redirectTo=${encodeURIComponent(Ye.url.pathname+Ye.url.search)}`);var _=M(),y=w(_);{var U=m=>{var h=qr(),x=c(h),T=c(x),F=c(T,!0);l(T);var J=b(T,2),Q=c(J,!0);l(J),l(x);var K=b(x,2);{var ee=se=>{var g=Kr(),E=b(w(g),2),S=c(E),I=c(S);Kt(I,{class:"h-3.5 w-3.5"}),l(S),l(E),Ft(E,H=>Rt?.(H)),s(se,g)};N(K,se=>{o(i)&&se(ee)})}l(h),$(()=>{X(F,o(u)),X(Q,o(v))}),s(m,h)},k=m=>{var h=Zr(),x=c(h);Jt(x,{class:"h-3.5 w-3.5"}),Ae(2),l(h),$(()=>Oe(h,"href",o(d))),s(m,h)};N(y,m=>{o(r)?m(U):m(k,-1)})}s(n,_),ae()}export{En as A,ar as D,ur as L,br as M,An as U,_r as a,Cn as b,me as d,Nn as f,In as g,Tn as i,Sn as l,hr as o,D as p,ge as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as ze,s as Ut}from"./C4cbQnXC.js";import{w as Ce}from"./BNpXeuQ_.js";import{s as P,g as N,h as j,K as ue,R as Lt}from"./BtOVeLcI.js";class ve{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class De{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Be extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Nt(e){return e.split("%25").map(decodeURI).join("%25")}function jt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Se({href:e}){return e.split("#")[0]}function C(){}function Ot(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const xt=new TextDecoder;function $t(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Ct=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Z.delete(qe(e)),Ct(e,t));const Z=new Map;function Dt(e,t){const n=qe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&Z.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=$t(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Bt(e,t,n){if(Z.size>0){const r=qe(e,n),a=Z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);Z.delete(r)}}return window.fetch(t,n)}function qe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Ot(...a)}"]`}return r}const qt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Mt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Vt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,l)=>{if(l%2){if(i.startsWith("x+"))return Ie(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return Ie(String.fromCharCode(...i.slice(2).split("-").map(m=>parseInt(m,16))));const u=qt.exec(i),[,d,p,h,f]=u;return t.push({name:h,matcher:f,optional:!!d,rest:!!p,chained:p?l===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ie(i)}).join("")}).join("")}/?$`),params:t}}function Ft(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Vt(e){return e.slice(1).split("/").filter(Ft)}function Yt(e,t,n){const r={},a=e.slice(1),s=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<t.length;c+=1){const i=t[c];let l=a[c-o];if(i.chained&&i.rest&&o&&(l=a.slice(c-o,c+1).filter(u=>u).join("/"),o=0),l===void 0)if(i.rest)l="";else continue;if(!i.matcher||n[i.matcher](l)){r[i.name]=l;const u=t[c+1],d=a[c+1];u&&!u.rest&&u.optional&&d&&i.chained&&(o=0),!u&&!d&&Object.keys(r).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return r}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Gt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([c,[i,l,u]])=>{const{pattern:d,params:p}=Mt(c),h={id:c,exec:f=>{const m=d.exec(f);if(m)return Yt(m,p,r)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...l||[]].map(o),leaf:s(i)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(c){const i=c<0;return i&&(c=~c),[i,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ze(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_dwqdvi?.base??"",Ht=globalThis.__sveltekit_dwqdvi?.assets??L??"",Kt="1783363041342",it="sveltekit:snapshot",ct="sveltekit:scroll",lt="sveltekit:states",Wt="sveltekit:pageurl",Y="sveltekit:history",te="sveltekit:navigation",M={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ie=location.origin;function Me(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function F(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Qe={...M,"":M.hover};function ft(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ut(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ft(e)}}function Pe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const c=location.hash.split("#")[1]||"/";r.hash=`#${c}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||be(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ie&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function de(e){let t=null,n=null,r=null,a=null,s=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=V(c,"preload-code")),a===null&&(a=V(c,"preload-data")),t===null&&(t=V(c,"keepfocus")),n===null&&(n=V(c,"noscroll")),s===null&&(s=V(c,"reload")),o===null&&(o=V(c,"replacestate")),c=ft(c);function i(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Qe[r??"off"],preload_data:Qe[a??"off"],keepfocus:i(t),noscroll:i(n),reload:i(s),replace_state:i(o)}}function et(e){const t=Ce(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function s(o){let c;return t.subscribe(i=>{(c===void 0||n&&i!==c)&&o(c=i)})}return{notify:r,set:a,subscribe:s}}const dt={v:C};function Jt(){const{set:e,subscribe:t}=Ce(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ht}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Kt;return o&&(e(!0),dt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function be(e,t,n){return e.origin!==ie||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Bn(e){}const Xt=-1,zt=-2,Zt=-3,Qt=-4,en=-5,tn=-6,nn=-7,ht=2**32-1,Ne=ht-1;function rn(e){return!(!Number.isInteger(e)||e<0||e>Ne)}function an(e){return!(!Number.isInteger(e)||e<0||e>ht)}function on(e){return Uint8Array.fromBase64(e).buffer}function sn(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function cn(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r.buffer}const ln=typeof Uint8Array.fromBase64=="function",fn=typeof process=="object"&&process.versions?.node!==void 0,un=ln?on:fn?sn:cn;function qn(e,t){return pt(JSON.parse(e),t)}function pt(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let a=null;function s(o,c=!1){if(o===Xt)return;if(o===Zt)return NaN;if(o===Qt)return 1/0;if(o===en)return-1/0;if(o===tn)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const i=n[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let d=i[1];if(typeof d!="number"&&(d=n.push(i[1])-1),a??=new Set,a.has(d))throw new Error("Invalid circular reference");return a.add(d),r[o]=u(s(d)),a.delete(d),r[o]}switch(l){case"Date":r[o]=new Date(i[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;f<i.length;f+=1)d.add(s(i[f]));break;case"Map":const p=new Map;r[o]=p;for(let f=1;f<i.length;f+=2)p.set(s(i[f]),s(i[f+1]));break;case"RegExp":r[o]=new RegExp(i[1],i[2]);break;case"Object":{const f=i[1];if(typeof n[f]=="object"&&n[f][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s(f));break}case"BigInt":r[o]=BigInt(i[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let f=1;f<i.length;f+=2){if(i[f]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[i[f]]=s(i[f+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[i[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const f=globalThis[l],m=s(i[1]);r[o]=i[2]!==void 0?new f(m,i[2],i[3]):new f(m);break}case"ArrayBuffer":{const f=i[1];if(typeof f!="string")throw new Error("Invalid ArrayBuffer encoding");const m=un(f);r[o]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const f=l.slice(9);r[o]=Temporal[f].from(i[1]);break}case"URL":{const f=new URL(i[1]);r[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(i[1]);r[o]=f;break}default:throw new Error(`Unknown type ${l}`)}}else if(i[0]===nn){const l=i[1];if(!an(l))throw new Error("Invalid input");const u=[];r[o]=u,u[Ne]=void 0,delete u[Ne];for(let d=2;d<i.length;d+=2){const p=i[d];if(!rn(p)||p>=l)throw new Error("Invalid input");u[p]=s(i[d+1])}u.length=l}else{const l=new Array(i.length);r[o]=l;for(let u=0;u<i.length;u+=1){const d=i[u];d!==zt&&(l[u]=s(d))}}else{const l={};r[o]=l;for(const u of Object.keys(i)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=i[u];l[u]=s(d)}}return r[o]}return s(0)}const _t=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[..._t];const dn=new Set([..._t]);[...dn];function hn(e){return e.filter(t=>t!=null)}const pn="x-sveltekit-invalidated",_n="x-sveltekit-trailing-slash";function he(e){return e instanceof ve||e instanceof Be?e.status:500}function gn(e){return e instanceof Be?e.text:"Internal Error"}let E,ne,Te;const mn=ze.toString().includes("$$")||/function \w+\(\) \{\}/.test(ze.toString()),tt="a:";mn?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(tt)},ne={current:null},Te={current:!1}):(E=new class{#e=P({});get data(){return N(this.#e)}set data(t){j(this.#e,t)}#t=P(null);get form(){return N(this.#t)}set form(t){j(this.#t,t)}#n=P(null);get error(){return N(this.#n)}set error(t){j(this.#n,t)}#r=P({});get params(){return N(this.#r)}set params(t){j(this.#r,t)}#a=P({id:null});get route(){return N(this.#a)}set route(t){j(this.#a,t)}#o=P({});get state(){return N(this.#o)}set state(t){j(this.#o,t)}#s=P(-1);get status(){return N(this.#s)}set status(t){j(this.#s,t)}#i=P(new URL(tt));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},ne=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Te=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},dt.v=()=>Te.current=!0);function Fe(e){Object.assign(E,e)}const wn="/__data.json",yn=".html__data.json";function vn(e){return e.endsWith(".html")?e.replace(/\.html$/,yn):e.replace(/\/$/,"")+wn}const{tick:gt}=Ut,bn=new Set(["icon","shortcut icon","apple-touch-icon"]);let X=null;const B=st(ct)??{},re=st(it)??{},D={url:et({}),page:et({}),navigating:Ce(null),updated:Jt()};function Ve(e){B[e]=F()}function En(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;re[n];)delete re[n],n+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function mt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ye,je,pe,x,Oe,k;const _e=[],ge=[];let T=null;function ae(){T?.fork?.then(e=>e?.discard()),T=null}const fe=new Map,wt=new Set,kn=new Set,Q=new Set;let _={branch:[],error:null,url:null,nav:null},Ge=!1,me=!1,nt=!0,oe=!1,z=!1,yt=!1,ce=!1,W,S,U,$;const ee=new Set;let Ue;const we=new Map;async function Yn(e,t,n){globalThis.__sveltekit_dwqdvi&&(globalThis.__sveltekit_dwqdvi.query,globalThis.__sveltekit_dwqdvi.prerender),document.URL!==location.href&&(location.href=location.href),k=e,await e.hooks.init?.(),Ye=Gt(e),x=document.documentElement,Oe=t,je=e.nodes[0],pe=e.nodes[1],je(),pe(),S=history.state?.[Y],U=history.state?.[te],S||(S=U=Date.now(),history.replaceState({...history.state,[Y]:S,[te]:U},""));const r=B[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await On(Oe,n)):(await G({type:"enter",url:Me(k.hash?xn(new URL(location.href)):location.href),replace_state:!0}),a()),jn()}async function An(e=!0,t=!0){if(await(Ue||=Promise.resolve()),!Ue)return;Ue=null;const n=$={},r=await le(_.url,!0);if(ae(),ce&&we.forEach(a=>{a.forEach(({resource:s})=>{s.refresh?.()})}),e){const a=E.state,s=r&&await We(r);if(!s||n!==$)return;if(s.type==="redirect")return Ee(new URL(s.location,_.url).href,{replaceState:!0},1,n);t||(s.props.page.state=a),Fe(s.props.page),_={...s.state,nav:_.nav},xe(),W.$set(s.props)}else xe();await Promise.all([...we.values()].flatMap(a=>[...a.values()].map(({resource:s})=>s))).catch(C)}function xe(){_e.length=0,ce=!1}function vt(e){ge.some(t=>t?.snapshot)&&(re[e]=ge.map(t=>t?.snapshot?.capture()))}function bt(e){re[e]?.forEach((t,n)=>{ge[n]?.snapshot?.restore(t)})}function rt(){Ve(S),Ze(ct,B),vt(U),Ze(it,re)}async function Ee(e,t,n,r){let a;t.invalidateAll&&ae(),await G({type:"goto",url:Me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ce=!0,a=[],we.forEach((s,o)=>{for(const c of s.keys())a.push(o+"/"+c)})),t.invalidate&&t.invalidate.forEach(Pn)}}),t.invalidateAll&&ue().then(ue).then(()=>{we.forEach((s,o)=>{s.forEach(({resource:c},i)=>{a?.includes(o+"/"+i)&&c.refresh?.()})})})}async function Rn(e){if(e.id!==T?.id){ae();const t={};ee.add(t),T={id:e.id,token:t,promise:We({...e,preload:t}).then(n=>(ee.delete(t),n.type==="loaded"&&n.state.error&&ae(),n)),fork:null}}return T.promise}async function Le(e){const t=(await le(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Et(e,t,n){const r={params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)};_={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(E,e.props.page),W=new k.root({target:t,props:{...e.props,stores:D,components:ge},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),bt(U),n){const s={from:null,to:{...r,scroll:B[S]??F()},willUnload:!1,type:"enter",complete:Promise.resolve()};Q.forEach(o=>o(s))}me=!0}async function se({url:e,params:t,branch:n,errors:r,status:a,error:s,route:o,form:c}){let i="never";if(L&&(e.pathname===L||e.pathname===L+"/"))i="always";else for(const f of n)f?.slash!==void 0&&(i=f.slash);e.pathname=Pt(e.pathname,i),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:o},props:{constructors:hn(n).map(f=>f.node.component),page:Ae(E)}};c!==void 0&&(l.props.form=c);let u={},d=!E,p=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],b=_.branch[f];m?.data!==b?.data&&(d=!0),m&&(u={...u,...m.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==s||c!==void 0&&c!==E.form||d)&&(l.props.page={error:s,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:c??null,data:d?u:E.data}),l}async function He({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let o=null;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},i=await e();return{node:i,loader:e,server:s,universal:i.universal?.load?{type:"data",data:o,uses:c}:null,data:o??s?.data??null,slash:i.universal?.trailingSlash??s?.slash}}function Sn(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=me?Bt(r,a.href,t):Dt(r,t);return{resolved:a,promise:s}}function at(e,t,n,r,a,s){if(ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==_.params[o])return!0;for(const o of a.dependencies)if(_e.some(c=>c(new URL(o))))return!0;return!1}function Ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function In(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function ot({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ae(E),constructors:[]}}}async function We({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(T?.id===e)return ee.delete(T.token),T.promise;const{errors:o,layouts:c,leaf:i}=a,l=[...c,i];o.forEach(w=>w?.().catch(C)),l.forEach(w=>w?.[1]().catch(C));let u=null;const d=_.url?e!==ye(_.url):!1,p=_.route?a.id!==_.route.id:!1,h=In(_.url,n);let f=!1;{const w=l.map((y,A)=>{const R=_.branch[A],v=!!y?.[0]&&(R?.loader!==y[1]||at(f,p,d,h,R.server?.uses,r));return v&&(f=!0),v});if(w.some(Boolean)){try{u=await St(n,w)}catch(y){const A=await H(y,{url:n,params:r,route:{id:e}});return ee.has(s)?ot({error:A,url:n,params:r,route:a}):ke({status:he(y),error:A,url:n,route:a})}if(u.type==="redirect")return u}}const m=u?.nodes;let b=!1;const g=l.map(async(w,y)=>{if(!w)return;const A=_.branch[y],R=m?.[y];if((!R||R.type==="skip")&&w[1]===A?.loader&&!at(b,p,d,h,A.universal?.uses,r))return A;if(b=!0,R?.type==="error")throw R;return He({loader:w[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let q=0;q<y;q+=1)Object.assign(O,(await g[q])?.data);return O},server_data_node:Ke(R===void 0&&w[0]?{type:"skip"}:R??null,w[0]?A?.server:void 0)})});for(const w of g)w.catch(C);const I=[];for(let w=0;w<l.length;w+=1)if(l[w])try{I.push(await g[w])}catch(y){if(y instanceof De)return{type:"redirect",location:y.location};if(ee.has(s))return ot({error:await H(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let A=he(y),R;if(m?.includes(y))A=y.status??A,R=y.error;else if(y instanceof ve)R=y.body;else{if(await D.updated.check())return await mt(),await K(n);R=await H(y,{params:r,url:n,route:{id:a.id}})}const v=await kt(w,I,o);return v?se({url:n,params:r,branch:I.slice(0,v.idx).concat(v.node),errors:o,status:A,error:R,route:a}):await Rt(n,{id:a.id},R,A)}else I.push(void 0);return se({url:n,params:r,branch:I,errors:o,status:200,error:null,route:a,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ke({status:e,error:t,url:n,route:r}){const a={};let s=null;if(k.server_loads[0]===0)try{const c=await St(n,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;s=c.nodes[0]??null}catch{(n.origin!==ie||n.pathname!==location.pathname||Ge)&&await K(n)}try{const o=await He({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ke(s)}),c={node:await pe(),loader:pe,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,c],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof De)return Ee(new URL(o.location,location.href),{},0);throw o}}async function Tn(e){const t=e.href;if(fe.has(t))return fe.get(t);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Sn(s,o,e).promise})??e;if(typeof a=="string"){const s=new URL(e);k.hash?s.hash=a:s.pathname=a,a=s}return a})();fe.set(t,r),n=await r}catch{fe.delete(t);return}return n}async function le(e,t){if(e&&!be(e,L,k.hash)){const n=await Tn(e);if(!n)return;const r=Un(n);for(const a of Ye){const s=a.exec(r);if(s)return{id:ye(e),invalidating:t,route:a,params:jt(s),url:e}}}}function Un(e){return Nt(k.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ye(e){return(k.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function At({url:e,type:t,intent:n,delta:r,event:a,scroll:s}){let o=!1;const c=Xe(_,n,e,t,s??null);r!==void 0&&(c.navigation.delta=r),a!==void 0&&(c.navigation.event=a);const i={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return oe||wt.forEach(l=>l(i)),o?null:c}async function G({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:l=C,block:u=C,event:d}){const p=$;$=i;const h=await le(t,!1),f=e==="enter"?Xe(_,h,t,e):At({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!f){u(),$===i&&($=p);return}const m=S,b=U;l(),oe=!0,me&&f.navigation.type!=="enter"&&D.navigating.set(ne.current=f.navigation);let g=h&&await We(h);if(!g){if(be(t,L,k.hash))return await K(t,s);g=await Rt(t,{id:null},await H(new Be(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,$!==i)return f.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(c<20){await G({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:c+1,nav_token:i}),f.fulfil(void 0);return}g=await ke({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await D.updated.check()&&(await mt(),await K(t,s));if(xe(),Ve(m),vt(b),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const v=s?0:1,O={[Y]:S+=v,[te]:U+=v,[lt]:o};(s?history.replaceState:history.pushState).call(history,O,"",t),s||En(S,U)}const I=h&&T?.id===h.id?T.fork:null;T?.fork&&!I&&ae(),T=null,g.props.page.state=o;let w;if(me){const v=(await Promise.all(Array.from(kn,J=>J(f.navigation)))).filter(J=>typeof J=="function");if(v.length>0){let J=function(){v.forEach(Re=>{Q.delete(Re)})};v.push(J),v.forEach(Re=>{Q.add(Re)})}const O=f.navigation.to;_={...g.state,nav:{params:O.params,route:O.route,url:O.url}},g.props.page&&(g.props.page.url=t);const q=I&&await I;q?w=q.commit():(X=null,W.$set(g.props),X&&Object.assign(g.props.page,X),Fe(g.props.page),w=Lt?.()),yt=!0}else await Et(g,Oe,!1);const{activeElement:y}=document;await w,await ue(),await ue();let A=null;if(nt){const v=n?n.scroll:a?F():null;v?scrollTo(v.x,v.y):(A=t.hash&&document.getElementById(Tt(t)))?A.scrollIntoView():scrollTo(0,0)}const R=document.activeElement!==y&&document.activeElement!==document.body;!r&&!R&&Je(t,!A),nt=!0,g.props.page&&(X&&Object.assign(g.props.page,X),Object.assign(E,g.props.page)),oe=!1,e==="popstate"&&bt(U),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=F()),Q.forEach(v=>v(f.navigation)),D.navigating.set(ne.current=null)}async function Rt(e,t,n,r,a){return e.origin===ie&&e.pathname===location.pathname&&!Ge?await ke({status:r,error:n,url:e,route:t}):await K(e,a)}function Ln(){let e,t={element:void 0,href:void 0},n;x.addEventListener("mousemove",c=>{const i=c.target;clearTimeout(e),e=setTimeout(()=>{s(i,M.hover)},20)});function r(c){c.defaultPrevented||s(c.composedPath()[0],M.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(c=>{for(const i of c)i.isIntersecting&&(Le(new URL(i.target.href)),a.unobserve(i.target))},{threshold:0});async function s(c,i){const l=ut(c,x),u=l===t.element&&l?.href===t.href&&i>=n;if(!l||u)return;const{url:d,external:p,download:h}=Pe(l,L,k.hash);if(p||h)return;const f=de(l),m=d&&ye(_.url)===ye(d);if(!(f.reload||m))if(i<=f.preload_data){t={element:l,href:l.href},n=M.tap;const b=await le(d,!1);if(!b)return;Rn(b)}else i<=f.preload_code&&(t={element:l,href:l.href},n=i,Le(d))}function o(){a.disconnect();for(const c of x.querySelectorAll("a")){const{url:i,external:l,download:u}=Pe(c,L,k.hash);if(l||u)continue;const d=de(c);d.reload||(d.preload_code===M.viewport&&a.observe(c),d.preload_code===M.eager&&Le(i))}}Q.add(o),o()}function H(e,t){if(e instanceof ve)return e.body;const n=he(e),r=gn(e);return k.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Gn(e,t={}){return e=new URL(Me(e)),e.origin!==ie?Promise.reject(new Error("goto: invalid URL")):Ee(e,t,0)}function Pn(e){if(typeof e=="function")_e.push(e);else{const{href:t}=new URL(e,location.href);_e.push(n=>n.href===t)}}function Hn(){return ce=!0,An()}async function Kn(e){e.type==="error"?await Nn(e.error,e.status):e.type==="redirect"?await Ee(e.location,{invalidateAll:!0},0):(E.form=e.data,E.status=e.status,W.$set({form:null,page:Ae(E)}),await gt(),W.$set({form:e.data}),e.type==="success"&&Je(E.url))}async function Nn(e,t=500){const n=new URL(location.href),{branch:r,route:a}=_;if(!a)return;const s=await kt(_.branch.length,r,a.errors);if(s){const o=await se({url:n,params:_.params,branch:r.slice(0,s.idx).concat(s.node),status:t,error:e,route:a});_={...o.state,nav:_.nav},W.$set(o.props),Fe(o.props.page),gt().then(()=>Je(_.url))}}function jn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(rt(),!oe){const r=Xe(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};wt.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&rt()}),navigator.connection?.saveData||Ln(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ut(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:o}=Pe(n,L,k.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const c=de(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,u]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===Se(location);if(a||c.reload&&(!d||!u)){At({url:r,type:"link",event:t})?oe=!0:t.preventDefault();return}if(u!==void 0&&d){const[,p]=_.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(z=!0,Ve(S),e(r),!c.replace_state)return;z=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await G({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(be(o,L,!1))return;const c=t.target,i=de(c);if(i.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,r);o.search=new URLSearchParams(l).toString(),G({type:"form",url:o,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!$e){if(t.state?.[Y]){const n=t.state[Y];if($={},n===S)return;const r=B[n],a=t.state[lt]??{},s=new URL(t.state[Wt]??location.href),o=t.state[te],c=_.url?Se(location)===Se(_.url):!1;if(o===U&&(yt||c)){a!==E.state&&(E.state=a),e(s),B[S]=F(),r&&scrollTo(r.x,r.y),S=n;return}const l=n-S;await G({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{S=n,U=o},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!z){const n=new URL(location.href);e(n),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[Y]:++S,[te]:U},"",location.href))});for(const t of document.querySelectorAll("link"))bn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(ne.current=null)});function e(t){_.url=E.url=t,D.page.set(Ae(E)),D.page.notify()}}async function On(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:c,form:i}){Ge=!0;const l=new URL(location.href);let u;({params:a={},route:s={id:null}}=await le(l,!1)||{}),u=Ye.find(({id:h})=>h===s.id);let d,p=!0;try{const h=r.map(async(m,b)=>{const g=c[b];return g?.uses&&(g.uses=It(g.uses)),He({loader:k.nodes[m],url:l,params:a,route:s,parent:async()=>{const I={};for(let w=0;w<b;w+=1)Object.assign(I,(await h[w]).data);return I},server_data_node:Ke(g)})}),f=await Promise.all(h);if(u){const m=u.layouts;for(let b=0;b<m.length;b++)m[b]||f.splice(b,0,void 0)}d=await se({url:l,params:a,branch:f,status:t,error:n,errors:u?.errors,form:i,route:u??null})}catch(h){if(h instanceof De){await K(new URL(h.location,location.href));return}d=await ke({status:he(h),error:await H(h,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",p=!1}d.props.page&&(d.props.page.state={}),await Et(d,e,p)}async function St(e,t){const n=new URL(e);n.pathname=vn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(_n,"1"),n.searchParams.append(pn,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new ve(a.status,s)}return new Promise(async s=>{const o=new Map,c=a.body.getReader();function i(u){return pt(u,{...k.decoders,Promise:d=>new Promise((p,h)=>{o.set(d,{fulfil:p,reject:h})})})}let l="";for(;;){const{done:u,value:d}=await c.read();if(u&&!l)break;for(l+=!d&&l?`
|
|
1
|
+
import{a as ze,s as Ut}from"./C4cbQnXC.js";import{w as Ce}from"./BNpXeuQ_.js";import{s as P,g as N,h as j,K as ue,R as Lt}from"./BtOVeLcI.js";class ve{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class De{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Be extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Nt(e){return e.split("%25").map(decodeURI).join("%25")}function jt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Se({href:e}){return e.split("#")[0]}function C(){}function Ot(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const xt=new TextDecoder;function $t(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Ct=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Z.delete(Me(e)),Ct(e,t));const Z=new Map;function Dt(e,t){const n=Me(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&Z.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=$t(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Bt(e,t,n){if(Z.size>0){const r=Me(e,n),a=Z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);Z.delete(r)}}return window.fetch(t,n)}function Me(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Ot(...a)}"]`}return r}const Mt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ft(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${qt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,l)=>{if(l%2){if(i.startsWith("x+"))return Ie(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return Ie(String.fromCharCode(...i.slice(2).split("-").map(m=>parseInt(m,16))));const u=Mt.exec(i),[,d,p,h,f]=u;return t.push({name:h,matcher:f,optional:!!d,rest:!!p,chained:p?l===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ie(i)}).join("")}).join("")}/?$`),params:t}}function Vt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function qt(e){return e.slice(1).split("/").filter(Vt)}function Yt(e,t,n){const r={},a=e.slice(1),s=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<t.length;c+=1){const i=t[c];let l=a[c-o];if(i.chained&&i.rest&&o&&(l=a.slice(c-o,c+1).filter(u=>u).join("/"),o=0),l===void 0)if(i.rest)l="";else continue;if(!i.matcher||n[i.matcher](l)){r[i.name]=l;const u=t[c+1],d=a[c+1];u&&!u.rest&&u.optional&&d&&i.chained&&(o=0),!u&&!d&&Object.keys(r).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return r}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Gt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([c,[i,l,u]])=>{const{pattern:d,params:p}=Ft(c),h={id:c,exec:f=>{const m=d.exec(f);if(m)return Yt(m,p,r)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...l||[]].map(o),leaf:s(i)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(c){const i=c<0;return i&&(c=~c),[i,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ze(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_56dmwl?.base??"",Ht=globalThis.__sveltekit_56dmwl?.assets??L??"",Kt="1783370646580",it="sveltekit:snapshot",ct="sveltekit:scroll",lt="sveltekit:states",Wt="sveltekit:pageurl",Y="sveltekit:history",te="sveltekit:navigation",F={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ie=location.origin;function Fe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Qe={...F,"":F.hover};function ft(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ut(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ft(e)}}function Pe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const c=location.hash.split("#")[1]||"/";r.hash=`#${c}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||be(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ie&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function de(e){let t=null,n=null,r=null,a=null,s=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=q(c,"preload-code")),a===null&&(a=q(c,"preload-data")),t===null&&(t=q(c,"keepfocus")),n===null&&(n=q(c,"noscroll")),s===null&&(s=q(c,"reload")),o===null&&(o=q(c,"replacestate")),c=ft(c);function i(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Qe[r??"off"],preload_data:Qe[a??"off"],keepfocus:i(t),noscroll:i(n),reload:i(s),replace_state:i(o)}}function et(e){const t=Ce(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function s(o){let c;return t.subscribe(i=>{(c===void 0||n&&i!==c)&&o(c=i)})}return{notify:r,set:a,subscribe:s}}const dt={v:C};function Jt(){const{set:e,subscribe:t}=Ce(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ht}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Kt;return o&&(e(!0),dt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function be(e,t,n){return e.origin!==ie||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Bn(e){}const Xt=-1,zt=-2,Zt=-3,Qt=-4,en=-5,tn=-6,nn=-7,ht=2**32-1,Ne=ht-1;function rn(e){return!(!Number.isInteger(e)||e<0||e>Ne)}function an(e){return!(!Number.isInteger(e)||e<0||e>ht)}function on(e){return Uint8Array.fromBase64(e).buffer}function sn(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function cn(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r.buffer}const ln=typeof Uint8Array.fromBase64=="function",fn=typeof process=="object"&&process.versions?.node!==void 0,un=ln?on:fn?sn:cn;function Mn(e,t){return pt(JSON.parse(e),t)}function pt(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let a=null;function s(o,c=!1){if(o===Xt)return;if(o===Zt)return NaN;if(o===Qt)return 1/0;if(o===en)return-1/0;if(o===tn)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const i=n[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let d=i[1];if(typeof d!="number"&&(d=n.push(i[1])-1),a??=new Set,a.has(d))throw new Error("Invalid circular reference");return a.add(d),r[o]=u(s(d)),a.delete(d),r[o]}switch(l){case"Date":r[o]=new Date(i[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;f<i.length;f+=1)d.add(s(i[f]));break;case"Map":const p=new Map;r[o]=p;for(let f=1;f<i.length;f+=2)p.set(s(i[f]),s(i[f+1]));break;case"RegExp":r[o]=new RegExp(i[1],i[2]);break;case"Object":{const f=i[1];if(typeof n[f]=="object"&&n[f][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s(f));break}case"BigInt":r[o]=BigInt(i[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let f=1;f<i.length;f+=2){if(i[f]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");h[i[f]]=s(i[f+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[i[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const f=globalThis[l],m=s(i[1]);r[o]=i[2]!==void 0?new f(m,i[2],i[3]):new f(m);break}case"ArrayBuffer":{const f=i[1];if(typeof f!="string")throw new Error("Invalid ArrayBuffer encoding");const m=un(f);r[o]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const f=l.slice(9);r[o]=Temporal[f].from(i[1]);break}case"URL":{const f=new URL(i[1]);r[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(i[1]);r[o]=f;break}default:throw new Error(`Unknown type ${l}`)}}else if(i[0]===nn){const l=i[1];if(!an(l))throw new Error("Invalid input");const u=[];r[o]=u,u[Ne]=void 0,delete u[Ne];for(let d=2;d<i.length;d+=2){const p=i[d];if(!rn(p)||p>=l)throw new Error("Invalid input");u[p]=s(i[d+1])}u.length=l}else{const l=new Array(i.length);r[o]=l;for(let u=0;u<i.length;u+=1){const d=i[u];d!==zt&&(l[u]=s(d))}}else{const l={};r[o]=l;for(const u of Object.keys(i)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=i[u];l[u]=s(d)}}return r[o]}return s(0)}const _t=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[..._t];const dn=new Set([..._t]);[...dn];function hn(e){return e.filter(t=>t!=null)}const pn="x-sveltekit-invalidated",_n="x-sveltekit-trailing-slash";function he(e){return e instanceof ve||e instanceof Be?e.status:500}function gn(e){return e instanceof Be?e.text:"Internal Error"}let E,ne,Te;const mn=ze.toString().includes("$$")||/function \w+\(\) \{\}/.test(ze.toString()),tt="a:";mn?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(tt)},ne={current:null},Te={current:!1}):(E=new class{#e=P({});get data(){return N(this.#e)}set data(t){j(this.#e,t)}#t=P(null);get form(){return N(this.#t)}set form(t){j(this.#t,t)}#n=P(null);get error(){return N(this.#n)}set error(t){j(this.#n,t)}#r=P({});get params(){return N(this.#r)}set params(t){j(this.#r,t)}#a=P({id:null});get route(){return N(this.#a)}set route(t){j(this.#a,t)}#o=P({});get state(){return N(this.#o)}set state(t){j(this.#o,t)}#s=P(-1);get status(){return N(this.#s)}set status(t){j(this.#s,t)}#i=P(new URL(tt));get url(){return N(this.#i)}set url(t){j(this.#i,t)}},ne=new class{#e=P(null);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},Te=new class{#e=P(!1);get current(){return N(this.#e)}set current(t){j(this.#e,t)}},dt.v=()=>Te.current=!0);function Ve(e){Object.assign(E,e)}const wn="/__data.json",yn=".html__data.json";function vn(e){return e.endsWith(".html")?e.replace(/\.html$/,yn):e.replace(/\/$/,"")+wn}const{tick:gt}=Ut,bn=new Set(["icon","shortcut icon","apple-touch-icon"]);let X=null;const B=st(ct)??{},re=st(it)??{},D={url:et({}),page:et({}),navigating:Ce(null),updated:Jt()};function qe(e){B[e]=V()}function En(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;re[n];)delete re[n],n+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function mt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ye,je,pe,x,Oe,k;const _e=[],ge=[];let T=null;function ae(){T?.fork?.then(e=>e?.discard()),T=null}const fe=new Map,wt=new Set,kn=new Set,Q=new Set;let _={branch:[],error:null,url:null,nav:null},Ge=!1,me=!1,nt=!0,oe=!1,z=!1,yt=!1,ce=!1,W,S,U,$;const ee=new Set;let Ue;const we=new Map;async function Yn(e,t,n){globalThis.__sveltekit_56dmwl&&(globalThis.__sveltekit_56dmwl.query,globalThis.__sveltekit_56dmwl.prerender),document.URL!==location.href&&(location.href=location.href),k=e,await e.hooks.init?.(),Ye=Gt(e),x=document.documentElement,Oe=t,je=e.nodes[0],pe=e.nodes[1],je(),pe(),S=history.state?.[Y],U=history.state?.[te],S||(S=U=Date.now(),history.replaceState({...history.state,[Y]:S,[te]:U},""));const r=B[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await On(Oe,n)):(await G({type:"enter",url:Fe(k.hash?xn(new URL(location.href)):location.href),replace_state:!0}),a()),jn()}async function An(e=!0,t=!0){if(await(Ue||=Promise.resolve()),!Ue)return;Ue=null;const n=$={},r=await le(_.url,!0);if(ae(),ce&&we.forEach(a=>{a.forEach(({resource:s})=>{s.refresh?.()})}),e){const a=E.state,s=r&&await We(r);if(!s||n!==$)return;if(s.type==="redirect")return Ee(new URL(s.location,_.url).href,{replaceState:!0},1,n);t||(s.props.page.state=a),Ve(s.props.page),_={...s.state,nav:_.nav},xe(),W.$set(s.props)}else xe();await Promise.all([...we.values()].flatMap(a=>[...a.values()].map(({resource:s})=>s))).catch(C)}function xe(){_e.length=0,ce=!1}function vt(e){ge.some(t=>t?.snapshot)&&(re[e]=ge.map(t=>t?.snapshot?.capture()))}function bt(e){re[e]?.forEach((t,n)=>{ge[n]?.snapshot?.restore(t)})}function rt(){qe(S),Ze(ct,B),vt(U),Ze(it,re)}async function Ee(e,t,n,r){let a;t.invalidateAll&&ae(),await G({type:"goto",url:Fe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ce=!0,a=[],we.forEach((s,o)=>{for(const c of s.keys())a.push(o+"/"+c)})),t.invalidate&&t.invalidate.forEach(Pn)}}),t.invalidateAll&&ue().then(ue).then(()=>{we.forEach((s,o)=>{s.forEach(({resource:c},i)=>{a?.includes(o+"/"+i)&&c.refresh?.()})})})}async function Rn(e){if(e.id!==T?.id){ae();const t={};ee.add(t),T={id:e.id,token:t,promise:We({...e,preload:t}).then(n=>(ee.delete(t),n.type==="loaded"&&n.state.error&&ae(),n)),fork:null}}return T.promise}async function Le(e){const t=(await le(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Et(e,t,n){const r={params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)};_={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(E,e.props.page),W=new k.root({target:t,props:{...e.props,stores:D,components:ge},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),bt(U),n){const s={from:null,to:{...r,scroll:B[S]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};Q.forEach(o=>o(s))}me=!0}async function se({url:e,params:t,branch:n,errors:r,status:a,error:s,route:o,form:c}){let i="never";if(L&&(e.pathname===L||e.pathname===L+"/"))i="always";else for(const f of n)f?.slash!==void 0&&(i=f.slash);e.pathname=Pt(e.pathname,i),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:o},props:{constructors:hn(n).map(f=>f.node.component),page:Ae(E)}};c!==void 0&&(l.props.form=c);let u={},d=!E,p=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],b=_.branch[f];m?.data!==b?.data&&(d=!0),m&&(u={...u,...m.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==s||c!==void 0&&c!==E.form||d)&&(l.props.page={error:s,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:c??null,data:d?u:E.data}),l}async function He({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let o=null;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},i=await e();return{node:i,loader:e,server:s,universal:i.universal?.load?{type:"data",data:o,uses:c}:null,data:o??s?.data??null,slash:i.universal?.trailingSlash??s?.slash}}function Sn(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=me?Bt(r,a.href,t):Dt(r,t);return{resolved:a,promise:s}}function at(e,t,n,r,a,s){if(ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==_.params[o])return!0;for(const o of a.dependencies)if(_e.some(c=>c(new URL(o))))return!0;return!1}function Ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function In(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function ot({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ae(E),constructors:[]}}}async function We({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(T?.id===e)return ee.delete(T.token),T.promise;const{errors:o,layouts:c,leaf:i}=a,l=[...c,i];o.forEach(w=>w?.().catch(C)),l.forEach(w=>w?.[1]().catch(C));let u=null;const d=_.url?e!==ye(_.url):!1,p=_.route?a.id!==_.route.id:!1,h=In(_.url,n);let f=!1;{const w=l.map((y,A)=>{const R=_.branch[A],v=!!y?.[0]&&(R?.loader!==y[1]||at(f,p,d,h,R.server?.uses,r));return v&&(f=!0),v});if(w.some(Boolean)){try{u=await St(n,w)}catch(y){const A=await H(y,{url:n,params:r,route:{id:e}});return ee.has(s)?ot({error:A,url:n,params:r,route:a}):ke({status:he(y),error:A,url:n,route:a})}if(u.type==="redirect")return u}}const m=u?.nodes;let b=!1;const g=l.map(async(w,y)=>{if(!w)return;const A=_.branch[y],R=m?.[y];if((!R||R.type==="skip")&&w[1]===A?.loader&&!at(b,p,d,h,A.universal?.uses,r))return A;if(b=!0,R?.type==="error")throw R;return He({loader:w[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let M=0;M<y;M+=1)Object.assign(O,(await g[M])?.data);return O},server_data_node:Ke(R===void 0&&w[0]?{type:"skip"}:R??null,w[0]?A?.server:void 0)})});for(const w of g)w.catch(C);const I=[];for(let w=0;w<l.length;w+=1)if(l[w])try{I.push(await g[w])}catch(y){if(y instanceof De)return{type:"redirect",location:y.location};if(ee.has(s))return ot({error:await H(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let A=he(y),R;if(m?.includes(y))A=y.status??A,R=y.error;else if(y instanceof ve)R=y.body;else{if(await D.updated.check())return await mt(),await K(n);R=await H(y,{params:r,url:n,route:{id:a.id}})}const v=await kt(w,I,o);return v?se({url:n,params:r,branch:I.slice(0,v.idx).concat(v.node),errors:o,status:A,error:R,route:a}):await Rt(n,{id:a.id},R,A)}else I.push(void 0);return se({url:n,params:r,branch:I,errors:o,status:200,error:null,route:a,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ke({status:e,error:t,url:n,route:r}){const a={};let s=null;if(k.server_loads[0]===0)try{const c=await St(n,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;s=c.nodes[0]??null}catch{(n.origin!==ie||n.pathname!==location.pathname||Ge)&&await K(n)}try{const o=await He({loader:je,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ke(s)}),c={node:await pe(),loader:pe,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,c],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof De)return Ee(new URL(o.location,location.href),{},0);throw o}}async function Tn(e){const t=e.href;if(fe.has(t))return fe.get(t);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Sn(s,o,e).promise})??e;if(typeof a=="string"){const s=new URL(e);k.hash?s.hash=a:s.pathname=a,a=s}return a})();fe.set(t,r),n=await r}catch{fe.delete(t);return}return n}async function le(e,t){if(e&&!be(e,L,k.hash)){const n=await Tn(e);if(!n)return;const r=Un(n);for(const a of Ye){const s=a.exec(r);if(s)return{id:ye(e),invalidating:t,route:a,params:jt(s),url:e}}}}function Un(e){return Nt(k.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ye(e){return(k.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function At({url:e,type:t,intent:n,delta:r,event:a,scroll:s}){let o=!1;const c=Xe(_,n,e,t,s??null);r!==void 0&&(c.navigation.delta=r),a!==void 0&&(c.navigation.event=a);const i={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return oe||wt.forEach(l=>l(i)),o?null:c}async function G({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:l=C,block:u=C,event:d}){const p=$;$=i;const h=await le(t,!1),f=e==="enter"?Xe(_,h,t,e):At({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:d});if(!f){u(),$===i&&($=p);return}const m=S,b=U;l(),oe=!0,me&&f.navigation.type!=="enter"&&D.navigating.set(ne.current=f.navigation);let g=h&&await We(h);if(!g){if(be(t,L,k.hash))return await K(t,s);g=await Rt(t,{id:null},await H(new Be(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,$!==i)return f.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(c<20){await G({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:c+1,nav_token:i}),f.fulfil(void 0);return}g=await ke({status:500,error:await H(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await D.updated.check()&&(await mt(),await K(t,s));if(xe(),qe(m),vt(b),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const v=s?0:1,O={[Y]:S+=v,[te]:U+=v,[lt]:o};(s?history.replaceState:history.pushState).call(history,O,"",t),s||En(S,U)}const I=h&&T?.id===h.id?T.fork:null;T?.fork&&!I&&ae(),T=null,g.props.page.state=o;let w;if(me){const v=(await Promise.all(Array.from(kn,J=>J(f.navigation)))).filter(J=>typeof J=="function");if(v.length>0){let J=function(){v.forEach(Re=>{Q.delete(Re)})};v.push(J),v.forEach(Re=>{Q.add(Re)})}const O=f.navigation.to;_={...g.state,nav:{params:O.params,route:O.route,url:O.url}},g.props.page&&(g.props.page.url=t);const M=I&&await I;M?w=M.commit():(X=null,W.$set(g.props),X&&Object.assign(g.props.page,X),Ve(g.props.page),w=Lt?.()),yt=!0}else await Et(g,Oe,!1);const{activeElement:y}=document;await w,await ue(),await ue();let A=null;if(nt){const v=n?n.scroll:a?V():null;v?scrollTo(v.x,v.y):(A=t.hash&&document.getElementById(Tt(t)))?A.scrollIntoView():scrollTo(0,0)}const R=document.activeElement!==y&&document.activeElement!==document.body;!r&&!R&&Je(t,!A),nt=!0,g.props.page&&(X&&Object.assign(g.props.page,X),Object.assign(E,g.props.page)),oe=!1,e==="popstate"&&bt(U),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=V()),Q.forEach(v=>v(f.navigation)),D.navigating.set(ne.current=null)}async function Rt(e,t,n,r,a){return e.origin===ie&&e.pathname===location.pathname&&!Ge?await ke({status:r,error:n,url:e,route:t}):await K(e,a)}function Ln(){let e,t={element:void 0,href:void 0},n;x.addEventListener("mousemove",c=>{const i=c.target;clearTimeout(e),e=setTimeout(()=>{s(i,F.hover)},20)});function r(c){c.defaultPrevented||s(c.composedPath()[0],F.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(c=>{for(const i of c)i.isIntersecting&&(Le(new URL(i.target.href)),a.unobserve(i.target))},{threshold:0});async function s(c,i){const l=ut(c,x),u=l===t.element&&l?.href===t.href&&i>=n;if(!l||u)return;const{url:d,external:p,download:h}=Pe(l,L,k.hash);if(p||h)return;const f=de(l),m=d&&ye(_.url)===ye(d);if(!(f.reload||m))if(i<=f.preload_data){t={element:l,href:l.href},n=F.tap;const b=await le(d,!1);if(!b)return;Rn(b)}else i<=f.preload_code&&(t={element:l,href:l.href},n=i,Le(d))}function o(){a.disconnect();for(const c of x.querySelectorAll("a")){const{url:i,external:l,download:u}=Pe(c,L,k.hash);if(l||u)continue;const d=de(c);d.reload||(d.preload_code===F.viewport&&a.observe(c),d.preload_code===F.eager&&Le(i))}}Q.add(o),o()}function H(e,t){if(e instanceof ve)return e.body;const n=he(e),r=gn(e);return k.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Gn(e,t={}){return e=new URL(Fe(e)),e.origin!==ie?Promise.reject(new Error("goto: invalid URL")):Ee(e,t,0)}function Pn(e){if(typeof e=="function")_e.push(e);else{const{href:t}=new URL(e,location.href);_e.push(n=>n.href===t)}}function Hn(){return ce=!0,An()}async function Kn(e){e.type==="error"?await Nn(e.error,e.status):e.type==="redirect"?await Ee(e.location,{invalidateAll:!0},0):(E.form=e.data,E.status=e.status,W.$set({form:null,page:Ae(E)}),await gt(),W.$set({form:e.data}),e.type==="success"&&Je(E.url))}async function Nn(e,t=500){const n=new URL(location.href),{branch:r,route:a}=_;if(!a)return;const s=await kt(_.branch.length,r,a.errors);if(s){const o=await se({url:n,params:_.params,branch:r.slice(0,s.idx).concat(s.node),status:t,error:e,route:a});_={...o.state,nav:_.nav},W.$set(o.props),Ve(o.props.page),gt().then(()=>Je(_.url))}}function jn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(rt(),!oe){const r=Xe(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};wt.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&rt()}),navigator.connection?.saveData||Ln(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ut(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:o}=Pe(n,L,k.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const c=de(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,u]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),d=l===Se(location);if(a||c.reload&&(!d||!u)){At({url:r,type:"link",event:t})?oe=!0:t.preventDefault();return}if(u!==void 0&&d){const[,p]=_.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(z=!0,qe(S),e(r),!c.replace_state)return;z=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await G({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(be(o,L,!1))return;const c=t.target,i=de(c);if(i.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(c,r);o.search=new URLSearchParams(l).toString(),G({type:"form",url:o,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!$e){if(t.state?.[Y]){const n=t.state[Y];if($={},n===S)return;const r=B[n],a=t.state[lt]??{},s=new URL(t.state[Wt]??location.href),o=t.state[te],c=_.url?Se(location)===Se(_.url):!1;if(o===U&&(yt||c)){a!==E.state&&(E.state=a),e(s),B[S]=V(),r&&scrollTo(r.x,r.y),S=n;return}const l=n-S;await G({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{S=n,U=o},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!z){const n=new URL(location.href);e(n),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[Y]:++S,[te]:U},"",location.href))});for(const t of document.querySelectorAll("link"))bn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(ne.current=null)});function e(t){_.url=E.url=t,D.page.set(Ae(E)),D.page.notify()}}async function On(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:c,form:i}){Ge=!0;const l=new URL(location.href);let u;({params:a={},route:s={id:null}}=await le(l,!1)||{}),u=Ye.find(({id:h})=>h===s.id);let d,p=!0;try{const h=r.map(async(m,b)=>{const g=c[b];return g?.uses&&(g.uses=It(g.uses)),He({loader:k.nodes[m],url:l,params:a,route:s,parent:async()=>{const I={};for(let w=0;w<b;w+=1)Object.assign(I,(await h[w]).data);return I},server_data_node:Ke(g)})}),f=await Promise.all(h);if(u){const m=u.layouts;for(let b=0;b<m.length;b++)m[b]||f.splice(b,0,void 0)}d=await se({url:l,params:a,branch:f,status:t,error:n,errors:u?.errors,form:i,route:u??null})}catch(h){if(h instanceof De){await K(new URL(h.location,location.href));return}d=await ke({status:he(h),error:await H(h,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",p=!1}d.props.page&&(d.props.page.state={}),await Et(d,e,p)}async function St(e,t){const n=new URL(e);n.pathname=vn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(_n,"1"),n.searchParams.append(pn,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new ve(a.status,s)}return new Promise(async s=>{const o=new Map,c=a.body.getReader();function i(u){return pt(u,{...k.decoders,Promise:d=>new Promise((p,h)=>{o.set(d,{fulfil:p,reject:h})})})}let l="";for(;;){const{done:u,value:d}=await c.read();if(u&&!l)break;for(l+=!d&&l?`
|
|
2
2
|
`:xt.decode(d,{stream:!0});;){const p=l.indexOf(`
|
|
3
|
-
`);if(p===-1)break;const h=JSON.parse(l.slice(0,p));if(l=l.slice(p+1),h.type==="redirect")return s(h);if(h.type==="data")h.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=It(f.uses),f.data=i(f.data))}),s(h);else if(h.type==="chunk"){const{id:f,data:m,error:b}=h,g=o.get(f);o.delete(f),b?g.reject(i(b)):g.fulfil(i(m))}}}})}function It(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let $e=!1;function Je(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Tt(e);if(r&&document.getElementById(r)){const{x:s,y:o}=
|
|
3
|
+
`);if(p===-1)break;const h=JSON.parse(l.slice(0,p));if(l=l.slice(p+1),h.type==="redirect")return s(h);if(h.type==="data")h.nodes?.forEach(f=>{f?.type==="data"&&(f.uses=It(f.uses),f.data=i(f.data))}),s(h);else if(h.type==="chunk"){const{id:f,data:m,error:b}=h,g=o.get(f);o.delete(f),b?g.reject(i(b)):g.fulfil(i(m))}}}})}function It(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let $e=!1;function Je(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Tt(e);if(r&&document.getElementById(r)){const{x:s,y:o}=V();setTimeout(()=>{const c=history.state;$e=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(c,"",e),t&&scrollTo(s,o),$e=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o<a.rangeCount;o+=1)s.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===s.length){for(let o=0;o<a.rangeCount;o+=1){const c=s[o],i=a.getRangeAt(o);if(c.commonAncestorContainer!==i.commonAncestorContainer||c.startContainer!==i.startContainer||c.endContainer!==i.endContainer||c.startOffset!==i.startOffset||c.endOffset!==i.endOffset)return}a.removeAllRanges()}})}}}function Xe(e,t,n,r,a=null){let s,o;const c=new Promise((l,u)=>{s=l,o=u});return c.catch(C),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:c},fulfil:s,reject:o}}function Ae(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 xn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Tt(e){let t;if(k.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Kn as a,k as b,E as c,Yn as d,Gn as g,Hn as i,Bn as l,C as n,Mn as p,D as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CpKGgbSx.js","../chunks/DsnmJJEf.js","../chunks/BtOVeLcI.js","../chunks/BoLtD6vo.js","../chunks/8uBOzWQA.js","../chunks/JFdtrT5G.js","../chunks/CTTkX-27.js","../chunks/22C0ZkpD.js","../chunks/BNpXeuQ_.js","../chunks/aGXM-hZQ.js","../chunks/BdIvVr5K.js","../chunks/C4cbQnXC.js","../chunks/DAQN5y4A.js","../chunks/ChEZL1UP.js","../chunks/ClDgNAKE.js","../chunks/DTLLn7uD.js","../assets/0.Cj1PUDYF.css","../nodes/1.
|
|
2
|
-
import{_ as r}from"../chunks/BapAUJpM.js";import{h as V,az as $,g as s,L as tt,al as rt,ak as et,p as at,aB as ot,j as _t,K as it,f as E,d as mt,a as st,s as k,u as L,c as ut,r as nt,t as ct}from"../chunks/BtOVeLcI.js";import{h as dt,m as lt,u as vt,s as Et}from"../chunks/BNpXeuQ_.js";import"../chunks/DsnmJJEf.js";import{a as ft}from"../chunks/C4cbQnXC.js";import{i as I}from"../chunks/DAQN5y4A.js";import{a as c,c as g,f as B,t as pt}from"../chunks/BoLtD6vo.js";import{p as T,c as A,b as D}from"../chunks/ChEZL1UP.js";function gt(_){return class extends ht{constructor(t){super({component:_,...t})}}}class ht{#r;#t;constructor(t){var o=new Map,u=(a,e)=>{var n=et(e,!1,!1);return o.set(a,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(a,e){return s(o.get(e)??u(e,Reflect.get(a,e)))},has(a,e){return e===$?!0:(s(o.get(e)??u(e,Reflect.get(a,e))),Reflect.has(a,e))},set(a,e,n){return V(o.get(e)??u(e,n),n),Reflect.set(a,e,n)}});this.#t=(t.hydrate?dt:lt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#r=m.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||rt(this,a,{get(){return this.#t[a]},set(e){this.#t[a]=e},enumerable:!0});this.#t.$set=a=>{Object.assign(m,a)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,o){this.#r[t]=this.#r[t]||[];const u=(...m)=>o.call(this,...m);return this.#r[t].push(u),()=>{this.#r[t]=this.#r[t].filter(m=>m!==u)}}$destroy(){this.#t.$destroy()}}const wt={};var Pt=B('<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>'),Ot=B("<!> <!>",1);function Rt(_,t){at(t,!0);let o=T(t,"components",23,()=>[]),u=T(t,"data_0",3,null),m=T(t,"data_1",3,null),a=T(t,"data_2",3,null);ot(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,o(),t.form,u(),m(),a(),t.stores.page.notify()});let e=k(!1),n=k(!1),w=k(null);ft(()=>{const i=t.stores.page.subscribe(()=>{s(e)&&(V(n,!0),it().then(()=>{V(w,document.title||"untitled page",!0)}))});return V(e,!0),i});const K=L(()=>t.constructors[2]);var C=Ot(),S=E(C);{var Y=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(P,At)=>{var z=g(),J=E(z);{var N=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params},children:(R,Dt)=>{var M=g(),U=E(M);A(U,()=>s(K),(W,X)=>{D(X(W,{get data(){return a()},get form(){return t.form},get params(){return t.page.params}}),Z=>o()[2]=Z,()=>o()?.[2])}),c(R,M)},$$slots:{default:!0}}),R=>o()[1]=R,()=>o()?.[1])}),c(p,O)},Q=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),R=>o()[1]=R,()=>o()?.[1])}),c(p,O)};I(J,p=>{t.constructors[2]?p(N):p(Q,-1)})}c(P,z)},$$slots:{default:!0}}),P=>o()[0]=P,()=>o()?.[0])}),c(i,l)},q=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),P=>o()[0]=P,()=>o()?.[0])}),c(i,l)};I(S,i=>{t.constructors[1]?i(Y):i(q,-1)})}var F=mt(S,2);{var H=i=>{var d=Pt(),l=ut(d);{var h=v=>{var f=pt();ct(()=>Et(f,s(w))),c(v,f)};I(l,v=>{s(n)&&v(h)})}nt(d),c(i,d)};I(F,i=>{s(e)&&i(H)})}c(_,C),st()}const Ct=gt(Rt),St=[()=>r(()=>import("../nodes/0.CpKGgbSx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>r(()=>import("../nodes/1.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CpKGgbSx.js","../chunks/DsnmJJEf.js","../chunks/BtOVeLcI.js","../chunks/BoLtD6vo.js","../chunks/8uBOzWQA.js","../chunks/JFdtrT5G.js","../chunks/CTTkX-27.js","../chunks/22C0ZkpD.js","../chunks/BNpXeuQ_.js","../chunks/aGXM-hZQ.js","../chunks/BdIvVr5K.js","../chunks/C4cbQnXC.js","../chunks/DAQN5y4A.js","../chunks/ChEZL1UP.js","../chunks/ClDgNAKE.js","../chunks/DTLLn7uD.js","../assets/0.Cj1PUDYF.css","../nodes/1.B8sDCYCa.js","../chunks/CVVCeyWM.js","../chunks/rsp6SKFd.js","../chunks/Dxp1VkzK.js","../chunks/mlApEF2J.js","../chunks/BuC_QZkR.js","../chunks/ADO9qhNc.js","../chunks/CY6l1SkO.js","../chunks/Mn4D08zE.js","../chunks/BawNisij.js","../nodes/2.DFxfwvil.js","../chunks/7l6hP3Lv.js","../chunks/PXmsJIuN.js","../chunks/jiMRToiE.js","../chunks/B89jPufp.js","../chunks/Bf2Kb0d4.js","../chunks/MGblXd4C.js","../chunks/SM988pE-.js","../chunks/Ca8xAcDY.js","../chunks/BapAUJpM.js","../chunks/DllGpGf3.js","../chunks/C2PlvXZq.js","../chunks/Bj6y_fSA.js","../chunks/COyeCbr6.js","../chunks/BTfzafVu.js","../chunks/BYQ2KYuV.js","../chunks/DApsDFvQ.js","../chunks/BrIhu61L.js","../chunks/3KyAYBE4.js","../chunks/CaaCaK-C.js","../chunks/BRHPfB44.js","../chunks/DP9Ywoqu.js","../nodes/3.C8JgJa3O.js","../nodes/4.BSBCh_uY.js","../nodes/5.V2MMaG6j.js","../nodes/6.BTwh4Jic.js","../chunks/C3jkB2Rk.js","../chunks/1awtB_xB.js","../chunks/DgJBZX8M.js","../chunks/cwYjabEo.js","../chunks/BYVjhRZj.js","../nodes/7.7wkP10M4.js","../nodes/8.czQ6-7MM.js","../chunks/CiRf7cog.js","../chunks/wegQDfR0.js","../chunks/CJvX1bCR.js","../chunks/Bfsx6G_D.js","../nodes/9.CGwezRtS.js","../chunks/DLMu-EPf.js","../chunks/TMQByngI.js","../chunks/C0Xb3vka.js","../chunks/BuBobyR7.js","../chunks/Bixcgta2.js","../nodes/10.X7rNYygL.js","../chunks/DQiSgNnB.js","../chunks/DNdxyuBP.js","../chunks/LZnjyP_x.js","../chunks/3w4Rd2x8.js","../assets/index.CV-KWLNP.css","../chunks/5fK69wOi.js","../nodes/11.BcQ1o3FR.js","../chunks/CkeXmJE0.js","../chunks/Ct6ntSZV.js","../chunks/BnS8rxFx.js","../chunks/EVm4fAGL.js","../chunks/BRrDIFjJ.js","../chunks/Cbu9Tg11.js","../chunks/CuRUkrho.js","../nodes/12.Bdebe5Rr.js","../chunks/sxUC6FDI.js","../nodes/13.BmFsOSJJ.js","../nodes/14.zl0OSg4A.js","../chunks/DQtEKe83.js","../chunks/BVUbFuzT.js","../nodes/15.BkRbkd4S.js","../chunks/T404WsWw.js","../chunks/C38beKZN.js","../nodes/16.Dg-xXR4a.js","../chunks/CpLycSEC.js","../chunks/CfYcWYC1.js","../chunks/B36B-q5q.js","../nodes/17.DGH-ZKat.js","../nodes/18.CQUwzcDA.js","../nodes/19.DAbWL97w.js","../chunks/6P6fn4fQ.js","../chunks/CitY1SZ1.js","../nodes/20.DEq0hgas.js","../chunks/CFq1UfS7.js","../chunks/k1GnUs7f.js","../chunks/BzBbrBKd.js","../assets/20.Bne67Vgr.css","../nodes/21.Da9tdvJE.js","../nodes/23.DQIF52KG.js","../chunks/CeolKPEY.js","../chunks/B3OAhCNZ.js","../nodes/24.BGi3ufaV.js","../nodes/25.DNwr0QCW.js","../nodes/26.Db6OQMMh.js","../nodes/27._1vSQHff.js","../nodes/28.DSYZp0yP.js","../nodes/29.Dm8OC8TD.js","../nodes/30.BCpvD09U.js","../nodes/31.BmGk5kzS.js","../nodes/32.C8wOZK7U.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as r}from"../chunks/BapAUJpM.js";import{h as V,az as $,g as s,L as tt,al as rt,ak as et,p as at,aB as ot,j as _t,K as it,f as E,d as mt,a as st,s as k,u as L,c as ut,r as nt,t as ct}from"../chunks/BtOVeLcI.js";import{h as dt,m as lt,u as vt,s as Et}from"../chunks/BNpXeuQ_.js";import"../chunks/DsnmJJEf.js";import{a as ft}from"../chunks/C4cbQnXC.js";import{i as I}from"../chunks/DAQN5y4A.js";import{a as c,c as g,f as B,t as pt}from"../chunks/BoLtD6vo.js";import{p as T,c as A,b as D}from"../chunks/ChEZL1UP.js";function gt(_){return class extends ht{constructor(t){super({component:_,...t})}}}class ht{#r;#t;constructor(t){var o=new Map,u=(a,e)=>{var n=et(e,!1,!1);return o.set(a,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(a,e){return s(o.get(e)??u(e,Reflect.get(a,e)))},has(a,e){return e===$?!0:(s(o.get(e)??u(e,Reflect.get(a,e))),Reflect.has(a,e))},set(a,e,n){return V(o.get(e)??u(e,n),n),Reflect.set(a,e,n)}});this.#t=(t.hydrate?dt:lt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#r=m.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||rt(this,a,{get(){return this.#t[a]},set(e){this.#t[a]=e},enumerable:!0});this.#t.$set=a=>{Object.assign(m,a)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,o){this.#r[t]=this.#r[t]||[];const u=(...m)=>o.call(this,...m);return this.#r[t].push(u),()=>{this.#r[t]=this.#r[t].filter(m=>m!==u)}}$destroy(){this.#t.$destroy()}}const wt={};var Pt=B('<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>'),Ot=B("<!> <!>",1);function Rt(_,t){at(t,!0);let o=T(t,"components",23,()=>[]),u=T(t,"data_0",3,null),m=T(t,"data_1",3,null),a=T(t,"data_2",3,null);ot(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,o(),t.form,u(),m(),a(),t.stores.page.notify()});let e=k(!1),n=k(!1),w=k(null);ft(()=>{const i=t.stores.page.subscribe(()=>{s(e)&&(V(n,!0),it().then(()=>{V(w,document.title||"untitled page",!0)}))});return V(e,!0),i});const K=L(()=>t.constructors[2]);var C=Ot(),S=E(C);{var Y=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(P,At)=>{var z=g(),J=E(z);{var N=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params},children:(R,Dt)=>{var M=g(),U=E(M);A(U,()=>s(K),(W,X)=>{D(X(W,{get data(){return a()},get form(){return t.form},get params(){return t.page.params}}),Z=>o()[2]=Z,()=>o()?.[2])}),c(R,M)},$$slots:{default:!0}}),R=>o()[1]=R,()=>o()?.[1])}),c(p,O)},Q=p=>{const y=L(()=>t.constructors[1]);var O=g(),b=E(O);A(b,()=>s(y),(j,x)=>{D(x(j,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),R=>o()[1]=R,()=>o()?.[1])}),c(p,O)};I(J,p=>{t.constructors[2]?p(N):p(Q,-1)})}c(P,z)},$$slots:{default:!0}}),P=>o()[0]=P,()=>o()?.[0])}),c(i,l)},q=i=>{const d=L(()=>t.constructors[0]);var l=g(),h=E(l);A(h,()=>s(d),(v,f)=>{D(f(v,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),P=>o()[0]=P,()=>o()?.[0])}),c(i,l)};I(S,i=>{t.constructors[1]?i(Y):i(q,-1)})}var F=mt(S,2);{var H=i=>{var d=Pt(),l=ut(d);{var h=v=>{var f=pt();ct(()=>Et(f,s(w))),c(v,f)};I(l,v=>{s(n)&&v(h)})}nt(d),c(i,d)};I(F,i=>{s(e)&&i(H)})}c(_,C),st()}const Ct=gt(Rt),St=[()=>r(()=>import("../nodes/0.CpKGgbSx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>r(()=>import("../nodes/1.B8sDCYCa.js"),__vite__mapDeps([17,1,2,18,19,11,8,3,20,12,5,13,7,21,22,4,23,24,25,26]),import.meta.url),()=>r(()=>import("../nodes/2.DFxfwvil.js"),__vite__mapDeps([27,1,2,3,4,5,28,12,13,8,18,19,11,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43,44,45,46,47,48]),import.meta.url),()=>r(()=>import("../nodes/3.C8JgJa3O.js"),__vite__mapDeps([49,1,2,3,18,19,11,8,20,12,5,13,7,21,22,4,23,24,25,26]),import.meta.url),()=>r(()=>import("../nodes/4.BSBCh_uY.js"),__vite__mapDeps([50,1,2,3,4,5]),import.meta.url),()=>r(()=>import("../nodes/5.V2MMaG6j.js"),__vite__mapDeps([51,1,2,3,4,5,28,12,13,8,18,19,11,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43]),import.meta.url),()=>r(()=>import("../nodes/6.BTwh4Jic.js"),__vite__mapDeps([52,1,2,13,5,8,3,4,12,53,19,11,28,18,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43,44,54,55,56,57,47]),import.meta.url),()=>r(()=>import("../nodes/7.7wkP10M4.js"),__vite__mapDeps([58,1,2,8,3,12,5,6,18,19,11,28,4,13,7,22,29,9,10,21,23,30,31,32,33,34,35,36,25,37,38,39,40,41,42,43]),import.meta.url),()=>r(()=>import("../nodes/8.czQ6-7MM.js"),__vite__mapDeps([59,1,2,8,3,12,5,13,6,7,18,19,11,21,22,4,23,25,60,61,32,62,63]),import.meta.url),()=>r(()=>import("../nodes/9.CGwezRtS.js"),__vite__mapDeps([64,1,2,8,3,12,5,7,13,6,18,19,11,65,26,4,22,66,24,45,21,23,67,68,15,69,42,47]),import.meta.url),()=>r(()=>import("../nodes/10.X7rNYygL.js"),__vite__mapDeps([70,1,2,8,3,12,5,7,13,6,69,4,26,22,71,61,32,72,33,73,74,38,34,10,11,63,75,62,21,23,35,24,48,76,39]),import.meta.url),()=>r(()=>import("../nodes/11.BcQ1o3FR.js"),__vite__mapDeps([77,1,11,2,8,3,12,5,7,13,6,19,78,69,4,26,22,79,47,80,21,23,62,63,81,82,68,83,84,15,74,38]),import.meta.url),()=>r(()=>import("../nodes/12.Bdebe5Rr.js"),__vite__mapDeps([85,1,2,8,3,12,5,13,6,69,4,7,26,22,79,45,86]),import.meta.url),()=>r(()=>import("../nodes/13.BmFsOSJJ.js"),__vite__mapDeps([87,1,2,8,3,12,5,7,13,6,19,11,69,4,21,22,23,80,26,79,46,86,61,32,62,63,15]),import.meta.url),()=>r(()=>import("../nodes/14.zl0OSg4A.js"),__vite__mapDeps([88,1,2,8,3,12,5,7,13,6,63,19,11,89,22,4,69,90,32,33,10,43,41,26,21,23,80,61,62,68,79,86,15,35]),import.meta.url),()=>r(()=>import("../nodes/15.BkRbkd4S.js"),__vite__mapDeps([91,1,2,8,3,12,5,34,4,33,32,7,13,10,6,24,22,67,26,21,23,82,92,31,37,93,40,19,11,63,71,69]),import.meta.url),()=>r(()=>import("../nodes/16.Dg-xXR4a.js"),__vite__mapDeps([94,1,2,8,3,12,5,7,13,6,19,11,95,22,4,96,21,23,68,38,39,69,26,62,63,15,35,79,71,80,24,67,97]),import.meta.url),()=>r(()=>import("../nodes/17.DGH-ZKat.js"),__vite__mapDeps([98,1,2,3,13,5,8,6,18,19,11,97,22,4,7,60,23]),import.meta.url),()=>r(()=>import("../nodes/18.CQUwzcDA.js"),__vite__mapDeps([99,1,2,6]),import.meta.url),()=>r(()=>import("../nodes/19.DAbWL97w.js"),__vite__mapDeps([100,1,2,8,3,12,5,7,19,11,101,4,63,13,22,102,35,84,47,66,28,18,29,9,10,21,23,30,31,32,33,34,36,25,37,38,39,40,41,42,43,69,79,15]),import.meta.url),()=>r(()=>import("../nodes/20.DEq0hgas.js"),__vite__mapDeps([103,36,1,2,8,3,12,5,29,4,7,13,9,10,21,22,23,30,31,32,33,34,35,25,37,38,39,40,19,11,18,47,63,78,102,72,73,74,75,104,14,90,26,24,67,61,62,93,105,83,106,107]),import.meta.url),()=>r(()=>import("../nodes/21.Da9tdvJE.js"),__vite__mapDeps([108,1,2,8,3,12,5,7,13,6,18,19,11,25,22,4,60,23,21,61,32,62,63]),import.meta.url),()=>r(()=>import("../chunks/BapAUJpM.js").then(_=>_.a),[],import.meta.url),()=>r(()=>import("../nodes/23.DQIF52KG.js"),__vite__mapDeps([109,1,2,13,5,8,3,12,34,4,33,32,7,10,6,19,11,53,110,63,22,38,102,73,105,30,31,35,61,62,90,21,23,104,76,15,80,96,42,68,79,111,101,84,47,66,92,95,37,57,81,89,69,41]),import.meta.url),()=>r(()=>import("../nodes/24.BGi3ufaV.js"),__vite__mapDeps([112,1,2,8,3,12,5,7,13,6,18,19,11,25,22,4,60,23,21,61,32,62,63]),import.meta.url),()=>r(()=>import("../nodes/25.DNwr0QCW.js"),__vite__mapDeps([113,1,2,8,3,12,5,7,13,6,65,26,4,22,66,69,24,45,42,54]),import.meta.url),()=>r(()=>import("../nodes/26.Db6OQMMh.js"),__vite__mapDeps([114,1,2,3,13,5,8,6,69,4,12,7,26,22,71,24,56]),import.meta.url),()=>r(()=>import("../nodes/27._1vSQHff.js"),__vite__mapDeps([115,1,2,8,3,12,5,7,13,6,18,19,11,69,4,21,22,23,15,24,67,26,110,63,38,102,73,79,47,76,80,62,68,83,84]),import.meta.url),()=>r(()=>import("../nodes/28.DSYZp0yP.js"),__vite__mapDeps([116,1,2,8,3,12,5,7,13,6,19,11,95,22,4,69,21,23,97,24,67,26,79,111,15,62,63,35,68]),import.meta.url),()=>r(()=>import("../nodes/29.Dm8OC8TD.js"),__vite__mapDeps([117,1,2,8,3,12,5,7,13,6,19,11,69,4,26,22,79,54,86,92,31,32,33,34,10,21,23,68,15,80,62,63]),import.meta.url),()=>r(()=>import("../nodes/30.BCpvD09U.js"),__vite__mapDeps([118,1,2,8,3,12,5,13,6,7,19,11,69,4,26,22,79,105,86,92,31,32,33,34,10,21,23,55,15]),import.meta.url),()=>r(()=>import("../nodes/31.BmGk5kzS.js"),__vite__mapDeps([119,1,2,8,3,12,5,13,6,69,4,7,24,22,67,26,68]),import.meta.url),()=>r(()=>import("../nodes/32.C8wOZK7U.js"),__vite__mapDeps([120,1,2,3,13,5,8,6,69,4,12,7,26,22,71,24,57]),import.meta.url)],zt=[0,2,5,6],Mt={"/":[-8],"/accept-invite":[-9],"/admin":[-10,[2],[3]],"/admin/audit":[-11,[2],[3]],"/admin/compute":[-12,[2],[3]],"/admin/organizations":[-13,[2],[3]],"/admin/projects":[-14,[2],[3]],"/admin/projects/[id]":[-15,[2],[3]],"/admin/system":[-16,[2],[3]],"/admin/users":[-17,[2],[3]],"/auth/email/sent":[17],"/auth/email/start":[-19],"/library":[-20,[4]],"/library/[guid]":[-21,[4]],"/login":[-22],"/logout":[22],"/projects":[-24,[5]],"/setup":[-25],"/team":[-26,[6]],"/team/activity":[26,[6]],"/team/compute":[-28,[6]],"/team/members":[-29,[6]],"/team/projects":[-30,[6]],"/team/reclaim":[-31,[6]],"/team/settings":[-32,[6]],"/team/shares":[-33,[6]]},G={handleError:(({error:_})=>{console.error(_)}),reroute:(()=>{}),transport:{}},Lt=Object.fromEntries(Object.entries(G.transport).map(([_,t])=>[_,t.decode])),Bt=Object.fromEntries(Object.entries(G.transport).map(([_,t])=>[_,t.encode])),Gt=!1,Kt=(_,t)=>Lt[_](t);export{Kt as decode,Lt as decoders,Mt as dictionary,Bt as encoders,Gt as hash,G as hooks,wt as matchers,St as nodes,Ct as root,zt as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,d as r}from"../chunks/rsp6SKFd.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as i,a as n,g as e,u as t}from"../chunks/BtOVeLcI.js";import{p as r}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as i,a as n,g as e,u as t}from"../chunks/BtOVeLcI.js";import{p as r}from"../chunks/CVVCeyWM.js";import{E as u}from"../chunks/Dxp1VkzK.js";function l(o,s){i(s,!0);{let a=t(()=>r.error?.message),p=t(()=>r.error&&typeof r.error=="object"&&"details"in r.error?r.error.details:void 0);u(o,{get status(){return r.status},get message(){return e(a)},get details(){return e(p)}})}n()}export{l as component};
|
|
Binary file
|
|
Binary file
|