@selvajs/selva 4.20.0-beta.10 → 4.20.0-beta.11
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/assets/0.D73BBfHB.css +2 -0
- package/build/client/_app/immutable/assets/0.D73BBfHB.css.br +0 -0
- package/build/client/_app/immutable/assets/0.D73BBfHB.css.gz +0 -0
- package/build/client/_app/immutable/assets/21.DNz0YXuf.css +1 -0
- package/build/client/_app/immutable/assets/21.DNz0YXuf.css.br +0 -0
- package/build/client/_app/immutable/assets/21.DNz0YXuf.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B7gqcBQZ.js +1 -0
- package/build/client/_app/immutable/chunks/B7gqcBQZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7gqcBQZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7r74ghQ.js +1 -0
- package/build/client/_app/immutable/chunks/B7r74ghQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7r74ghQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUYrmf5q.js +1 -0
- package/build/client/_app/immutable/chunks/BUYrmf5q.js.br +2 -0
- package/build/client/_app/immutable/chunks/BUYrmf5q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bmu3NHfJ.js +1 -0
- package/build/client/_app/immutable/chunks/Bmu3NHfJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bmu3NHfJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAnyzadu.js +1 -0
- package/build/client/_app/immutable/chunks/CAnyzadu.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAnyzadu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEO1HgeQ.js +1 -0
- package/build/client/_app/immutable/chunks/CEO1HgeQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEO1HgeQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPRZlLc_.js +1 -0
- package/build/client/_app/immutable/chunks/CPRZlLc_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPRZlLc_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTFClJAN.js +1 -0
- package/build/client/_app/immutable/chunks/CTFClJAN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTFClJAN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoCXA8uJ.js +1 -0
- package/build/client/_app/immutable/chunks/CoCXA8uJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoCXA8uJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D31ftOpc.js +1 -0
- package/build/client/_app/immutable/chunks/D31ftOpc.js.br +0 -0
- package/build/client/_app/immutable/chunks/D31ftOpc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8eV50tq.js +1 -0
- package/build/client/_app/immutable/chunks/D8eV50tq.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8eV50tq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTydnmJY.js +1 -0
- package/build/client/_app/immutable/chunks/DTydnmJY.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTydnmJY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUI9tNol.js +1 -0
- package/build/client/_app/immutable/chunks/DUI9tNol.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUI9tNol.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DV6xNb9g.js +2 -0
- package/build/client/_app/immutable/chunks/DV6xNb9g.js.br +0 -0
- package/build/client/_app/immutable/chunks/DV6xNb9g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhnuvZmg.js +1 -0
- package/build/client/_app/immutable/chunks/DhnuvZmg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhnuvZmg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrJsuv1P.js +1 -0
- package/build/client/_app/immutable/chunks/DrJsuv1P.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrJsuv1P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dsf1LLxK.js +1 -0
- package/build/client/_app/immutable/chunks/Dsf1LLxK.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dsf1LLxK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HQ0vYh6l.js +1 -0
- package/build/client/_app/immutable/chunks/HQ0vYh6l.js.br +0 -0
- package/build/client/_app/immutable/chunks/HQ0vYh6l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/n-KMilyW.js +1 -0
- package/build/client/_app/immutable/chunks/n-KMilyW.js.br +0 -0
- package/build/client/_app/immutable/chunks/n-KMilyW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rAj0KOVM.js +1 -0
- package/build/client/_app/immutable/chunks/rAj0KOVM.js.br +1 -0
- package/build/client/_app/immutable/chunks/rAj0KOVM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/y7n0t2xm.js +1 -0
- package/build/client/_app/immutable/chunks/y7n0t2xm.js.br +0 -0
- package/build/client/_app/immutable/chunks/y7n0t2xm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zEO5Ehmj.js +1 -0
- package/build/client/_app/immutable/chunks/zEO5Ehmj.js.br +0 -0
- package/build/client/_app/immutable/chunks/zEO5Ehmj.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.-n2KmRuX.js +2 -0
- package/build/client/_app/immutable/entry/app.-n2KmRuX.js.br +0 -0
- package/build/client/_app/immutable/entry/app.-n2KmRuX.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.NP79NqWV.js +1 -0
- package/build/client/_app/immutable/entry/start.NP79NqWV.js.br +1 -0
- package/build/client/_app/immutable/entry/start.NP79NqWV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.a1MjDlvI.js +1 -0
- package/build/client/_app/immutable/nodes/1.a1MjDlvI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.a1MjDlvI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Gn40T7XG.js +3 -0
- package/build/client/_app/immutable/nodes/10.Gn40T7XG.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Gn40T7XG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DFSwwczO.js +3 -0
- package/build/client/_app/immutable/nodes/11.DFSwwczO.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DFSwwczO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CX3ionvX.js +2 -0
- package/build/client/_app/immutable/nodes/13.CX3ionvX.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CX3ionvX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DhMBi205.js +2 -0
- package/build/client/_app/immutable/nodes/14.DhMBi205.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DhMBi205.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.ymqS4x2g.js +28 -0
- package/build/client/_app/immutable/nodes/15.ymqS4x2g.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.ymqS4x2g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.CyTuckAz.js +5 -0
- package/build/client/_app/immutable/nodes/16.CyTuckAz.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CyTuckAz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.ByL9Q1da.js +2 -0
- package/build/client/_app/immutable/nodes/17.ByL9Q1da.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.ByL9Q1da.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.s3G1xNBL.js +7 -0
- package/build/client/_app/immutable/nodes/19.s3G1xNBL.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.s3G1xNBL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.pNkFpuPr.js +1 -0
- package/build/client/_app/immutable/nodes/2.pNkFpuPr.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.pNkFpuPr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.CGsHSJ4R.js +2 -0
- package/build/client/_app/immutable/nodes/20.CGsHSJ4R.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CGsHSJ4R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DaB5H_lm.js +5668 -0
- package/build/client/_app/immutable/nodes/21.DaB5H_lm.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DaB5H_lm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.BLttRJct.js +6 -0
- package/build/client/_app/immutable/nodes/22.BLttRJct.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BLttRJct.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B0qXaG1p.js +3 -0
- package/build/client/_app/immutable/nodes/24.B0qXaG1p.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B0qXaG1p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DiwFurgc.js +16 -0
- package/build/client/_app/immutable/nodes/25.DiwFurgc.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DiwFurgc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.DcZCaIdz.js +6 -0
- package/build/client/_app/immutable/nodes/26.DcZCaIdz.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DcZCaIdz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.NQP1b2iN.js +4 -0
- package/build/client/_app/immutable/nodes/29.NQP1b2iN.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.NQP1b2iN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BcSxY5Cs.js +1 -0
- package/build/client/_app/immutable/nodes/3.BcSxY5Cs.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BcSxY5Cs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.KqF2WdSZ.js +6 -0
- package/build/client/_app/immutable/nodes/30.KqF2WdSZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.KqF2WdSZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BCHdtZGe.js +2 -0
- package/build/client/_app/immutable/nodes/31.BCHdtZGe.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BCHdtZGe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.B6w9OAKB.js +2 -0
- package/build/client/_app/immutable/nodes/32.B6w9OAKB.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.B6w9OAKB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.H7_KdiP9.js +1 -0
- package/build/client/_app/immutable/nodes/34.H7_KdiP9.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.H7_KdiP9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.D6WTHGRI.js +2 -0
- package/build/client/_app/immutable/nodes/35.D6WTHGRI.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.D6WTHGRI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DzkuKcAs.js +1 -0
- package/build/client/_app/immutable/nodes/5.DzkuKcAs.js.br +1 -0
- package/build/client/_app/immutable/nodes/5.DzkuKcAs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DFKMuD86.js +1 -0
- package/build/client/_app/immutable/nodes/6.DFKMuD86.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DFKMuD86.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.iWbouWRm.js +1 -0
- package/build/client/_app/immutable/nodes/7.iWbouWRm.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.iWbouWRm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DiMTcRbz.js +3 -0
- package/build/client/_app/immutable/nodes/8.DiMTcRbz.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DiMTcRbz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.q9Aj7x34.js +1 -0
- package/build/client/_app/immutable/nodes/9.q9Aj7x34.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.q9Aj7x34.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/AppHeader.js-DQAn0DrS.js +315 -0
- package/build/server/chunks/chunks/AppHeader.js-DQAn0DrS.js.map +1 -0
- package/build/server/chunks/chunks/ConfirmDialog.js-DSNOFCoF.js +151 -0
- package/build/server/chunks/chunks/ConfirmDialog.js-DSNOFCoF.js.map +1 -0
- package/build/server/chunks/chunks/ErrorScreen.js-CwQq1iHo.js +117 -0
- package/build/server/chunks/chunks/ErrorScreen.js-CwQq1iHo.js.map +1 -0
- package/build/server/chunks/chunks/FilterableDropdown.js-C7sj-ZUS.js +2726 -0
- package/build/server/chunks/chunks/FilterableDropdown.js-C7sj-ZUS.js.map +1 -0
- package/build/server/chunks/chunks/SettingsMenu.js-C9fbWfyL.js +2652 -0
- package/build/server/chunks/chunks/SettingsMenu.js-C9fbWfyL.js.map +1 -0
- package/build/server/chunks/chunks/SideNav.js-C9ydsla8.js +193 -0
- package/build/server/chunks/chunks/SideNav.js-C9ydsla8.js.map +1 -0
- package/build/server/chunks/chunks/ViewToggle.js-Br3KaPwh.js +137 -0
- package/build/server/chunks/chunks/ViewToggle.js-Br3KaPwh.js.map +1 -0
- package/build/server/chunks/chunks/access.server.js-CKROawyk.js +14 -0
- package/build/server/chunks/chunks/access.server.js-CKROawyk.js.map +1 -0
- package/build/server/chunks/chunks/access2.server.js-DFlKPdcn.js +63 -0
- package/build/server/chunks/chunks/access2.server.js-DFlKPdcn.js.map +1 -0
- package/build/server/chunks/chunks/alert-dialog.js-B1aVen0E.js +464 -0
- package/build/server/chunks/chunks/alert-dialog.js-B1aVen0E.js.map +1 -0
- package/build/server/chunks/chunks/api-errors.js-Byluujl8.js +57 -0
- package/build/server/chunks/chunks/api-errors.js-Byluujl8.js.map +1 -0
- package/build/server/chunks/chunks/api.js-BvSDWhma.js +1031 -0
- package/build/server/chunks/chunks/api.js-BvSDWhma.js.map +1 -0
- package/build/server/chunks/chunks/auth-bootstrap.server.js-CYsctN6Z.js +152 -0
- package/build/server/chunks/chunks/auth-bootstrap.server.js-CYsctN6Z.js.map +1 -0
- package/build/server/chunks/chunks/bootHealth.server.js-Rsmxbtl4.js +90 -0
- package/build/server/chunks/chunks/bootHealth.server.js-Rsmxbtl4.js.map +1 -0
- package/build/server/chunks/chunks/client.js-Dxf9BlQ8.js +59 -0
- package/build/server/chunks/chunks/client.js-Dxf9BlQ8.js.map +1 -0
- package/build/server/chunks/chunks/computeLimits.js-sJYSzVht.js +44 -0
- package/build/server/chunks/chunks/computeLimits.js-sJYSzVht.js.map +1 -0
- package/build/server/chunks/chunks/computeRateLimit.server.js-D_6EUGrp.js +31 -0
- package/build/server/chunks/chunks/computeRateLimit.server.js-D_6EUGrp.js.map +1 -0
- package/build/server/chunks/chunks/create-id.js-DQq_g2YK.js +809 -0
- package/build/server/chunks/chunks/create-id.js-DQq_g2YK.js.map +1 -0
- package/build/server/chunks/chunks/definitions.js-NVX3pi7y.js +390 -0
- package/build/server/chunks/chunks/definitions.js-NVX3pi7y.js.map +1 -0
- package/build/server/chunks/chunks/dialog-description.js-CH2wAEWA.js +492 -0
- package/build/server/chunks/chunks/dialog-description.js-CH2wAEWA.js.map +1 -0
- package/build/server/chunks/chunks/dialog.js-DPKBNhmS.js +368 -0
- package/build/server/chunks/chunks/dialog.js-DPKBNhmS.js.map +1 -0
- package/build/server/chunks/chunks/dom-typeahead.svelte.js-BkbekRwa.js +213 -0
- package/build/server/chunks/chunks/dom-typeahead.svelte.js-BkbekRwa.js.map +1 -0
- package/build/server/chunks/chunks/engine.server.js-DlfvB835.js +585 -0
- package/build/server/chunks/chunks/engine.server.js-DlfvB835.js.map +1 -0
- package/build/server/chunks/chunks/forms.js-uaZDZp_q.js +2 -0
- package/build/server/chunks/chunks/forms.js-uaZDZp_q.js.map +1 -0
- package/build/server/chunks/chunks/grasshopper.js-julMp0aw.js +2652 -0
- package/build/server/chunks/chunks/grasshopper.js-julMp0aw.js.map +1 -0
- package/build/server/chunks/chunks/handlers.js-BvZAq1ig.js +1604 -0
- package/build/server/chunks/chunks/handlers.js-BvZAq1ig.js.map +1 -0
- package/build/server/chunks/chunks/http.js-BfxThg3S.js +60 -0
- package/build/server/chunks/chunks/http.js-BfxThg3S.js.map +1 -0
- package/build/server/chunks/chunks/instanceAdmins.server.js-CkhHmgiR.js +24 -0
- package/build/server/chunks/chunks/instanceAdmins.server.js-CkhHmgiR.js.map +1 -0
- package/build/server/chunks/chunks/internal.js-DWk6_A5e.js.map +1 -1
- package/build/server/chunks/chunks/internal2.js-B1gdPcAg.js +224 -0
- package/build/server/chunks/chunks/internal2.js-B1gdPcAg.js.map +1 -0
- package/build/server/chunks/chunks/label.js-CmZTv-wZ.js +107 -0
- package/build/server/chunks/chunks/label.js-CmZTv-wZ.js.map +1 -0
- package/build/server/chunks/chunks/localeContext.svelte.js-Bngo7vRN.js +411 -0
- package/build/server/chunks/chunks/localeContext.svelte.js-Bngo7vRN.js.map +1 -0
- package/build/server/chunks/chunks/navigation.js-uaZDZp_q.js +2 -0
- package/build/server/chunks/chunks/navigation.js-uaZDZp_q.js.map +1 -0
- package/build/server/chunks/chunks/openapi.js-DIofvDBd.js +61 -0
- package/build/server/chunks/chunks/openapi.js-DIofvDBd.js.map +1 -0
- package/build/server/chunks/chunks/package.js-C3SlKIBQ.js +85 -0
- package/build/server/chunks/chunks/package.js-C3SlKIBQ.js.map +1 -0
- package/build/server/chunks/chunks/paths.js-Dew5cCZc.js +19 -0
- package/build/server/chunks/chunks/paths.js-Dew5cCZc.js.map +1 -0
- package/build/server/chunks/chunks/permissions.server.js-aia7Pwtd.js +24 -0
- package/build/server/chunks/chunks/permissions.server.js-aia7Pwtd.js.map +1 -0
- package/build/server/chunks/chunks/popper-layer-force-mount.js-w6fkZ5aq.js +1922 -0
- package/build/server/chunks/chunks/popper-layer-force-mount.js-w6fkZ5aq.js.map +1 -0
- package/build/server/chunks/chunks/presets.server.js-DDj49BcK.js +21 -0
- package/build/server/chunks/chunks/presets.server.js-DDj49BcK.js.map +1 -0
- package/build/server/chunks/chunks/providers.server.js-CzinZrUx.js +6393 -0
- package/build/server/chunks/chunks/providers.server.js-CzinZrUx.js.map +1 -0
- package/build/server/chunks/chunks/registry.js-L6LYhmWm.js +656 -0
- package/build/server/chunks/chunks/registry.js-L6LYhmWm.js.map +1 -0
- package/build/server/chunks/chunks/resolve.server.js-CCt0aO3R.js +59 -0
- package/build/server/chunks/chunks/resolve.server.js-CCt0aO3R.js.map +1 -0
- package/build/server/chunks/chunks/roving-focus-group.js-YVgHNhk9.js +149 -0
- package/build/server/chunks/chunks/roving-focus-group.js-YVgHNhk9.js.map +1 -0
- package/build/server/chunks/chunks/schema-extraction.js-DkKllia4.js +142 -0
- package/build/server/chunks/chunks/schema-extraction.js-DkKllia4.js.map +1 -0
- package/build/server/chunks/chunks/schema.js-7vN0UnrG.js +27 -0
- package/build/server/chunks/chunks/schema.js-7vN0UnrG.js.map +1 -0
- package/build/server/chunks/chunks/scroll-lock.js-2WQOe0ze.js +1902 -0
- package/build/server/chunks/chunks/scroll-lock.js-2WQOe0ze.js.map +1 -0
- package/build/server/chunks/chunks/select.js-jM0hKrph.js +1713 -0
- package/build/server/chunks/chunks/select.js-jM0hKrph.js.map +1 -0
- package/build/server/chunks/chunks/selfUpdate.server.js-CLqdCVTV.js +144 -0
- package/build/server/chunks/chunks/selfUpdate.server.js-CLqdCVTV.js.map +1 -0
- package/build/server/chunks/chunks/separator.js-jooArS2O.js +186 -0
- package/build/server/chunks/chunks/separator.js-jooArS2O.js.map +1 -0
- package/build/server/chunks/chunks/server3.js-B9I2miCY.js +20734 -0
- package/build/server/chunks/chunks/server3.js-B9I2miCY.js.map +1 -0
- package/build/server/chunks/chunks/solve.server.js-BxXT8sdE.js +316 -0
- package/build/server/chunks/chunks/solve.server.js-BxXT8sdE.js.map +1 -0
- package/build/server/chunks/chunks/sr-only-styles.js-DfGUTouf.js +19 -0
- package/build/server/chunks/chunks/sr-only-styles.js-DfGUTouf.js.map +1 -0
- package/build/server/chunks/chunks/state.js-CcGurDB2.js +76 -0
- package/build/server/chunks/chunks/state.js-CcGurDB2.js.map +1 -0
- package/build/server/chunks/chunks/stores.js-BtpgHqJR.js +35 -0
- package/build/server/chunks/chunks/stores.js-BtpgHqJR.js.map +1 -0
- package/build/server/chunks/chunks/sveltekit.js-CdvpCFmG.js +102 -0
- package/build/server/chunks/chunks/sveltekit.js-CdvpCFmG.js.map +1 -0
- package/build/server/chunks/chunks/tabs-trigger.js-CaMeKVVU.js +528 -0
- package/build/server/chunks/chunks/tabs-trigger.js-CaMeKVVU.js.map +1 -0
- package/build/server/chunks/chunks/toggle-group-item.js-DwMchZSz.js +404 -0
- package/build/server/chunks/chunks/toggle-group-item.js-DwMchZSz.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/_server.ts.js-CmJRiko2.js +99 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/_server.ts.js-CmJRiko2.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/actions/_server.ts.js-Dl03UlUo.js +87 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/actions/_server.ts.js-Dl03UlUo.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/status/_server.ts.js-CL1f4sr7.js +98 -0
- package/build/server/chunks/entries/endpoints/api/admin/compute/status/_server.ts.js-CL1f4sr7.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_id_/_server.ts.js-0P4H1-6u.js +48 -0
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_id_/_server.ts.js-0P4H1-6u.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_server.ts.js-xzszihmr.js +71 -0
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_server.ts.js-xzszihmr.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/_server.ts.js-MssxulPn.js +64 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/_server.ts.js-MssxulPn.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js-OhPD7BiS.js +36 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js-OhPD7BiS.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js-B2JeACCT.js +67 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js-B2JeACCT.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_server.ts.js-C99ewEke.js +82 -0
- package/build/server/chunks/entries/endpoints/api/admin/projects/_server.ts.js-C99ewEke.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/health/_server.ts.js-lw5g8ZsV.js +367 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/health/_server.ts.js-lw5g8ZsV.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/throughput/_server.ts.js-B4N7rEV9.js +87 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/throughput/_server.ts.js-B4N7rEV9.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/update/_server.ts.js-BA9eSmd6.js +611 -0
- package/build/server/chunks/entries/endpoints/api/admin/system/update/_server.ts.js-BA9eSmd6.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/_server.ts.js-BqVwfhuZ.js +60 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/_server.ts.js-BqVwfhuZ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js-BAZZ3MOc.js +78 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js-BAZZ3MOc.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_server.ts.js-FebvM_0f.js +85 -0
- package/build/server/chunks/entries/endpoints/api/admin/users/_server.ts.js-FebvM_0f.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/diag/throughput/_server.ts.js-CVVpdgI8.js +64 -0
- package/build/server/chunks/entries/endpoints/api/diag/throughput/_server.ts.js-CVVpdgI8.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-C61JpYjY.js +95 -0
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-C61JpYjY.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CbTVxQbZ.js +62 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CbTVxQbZ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/health/ready/_server.ts.js-C1rMDbWn.js +65 -0
- package/build/server/chunks/entries/endpoints/api/health/ready/_server.ts.js-C1rMDbWn.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/compute/_server.ts.js-DJwRqfE1.js +94 -0
- package/build/server/chunks/entries/endpoints/api/v1/compute/_server.ts.js-DJwRqfE1.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/compute/schema/_server.ts.js-DQWIQH1C.js +79 -0
- package/build/server/chunks/entries/endpoints/api/v1/compute/schema/_server.ts.js-DQWIQH1C.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js-X4TenRJs.js +50 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js-X4TenRJs.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js-B49DgjdV.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js-B49DgjdV.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js-BJzCv_-u.js +51 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js-BJzCv_-u.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js-DpLAnXcm.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js-DpLAnXcm.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js-DoCykrKa.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js-DoCykrKa.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js-wl4-rq8b.js +52 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js-wl4-rq8b.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js-DSC41w9r.js +100 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js-DSC41w9r.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js-Chsgy7eE.js +53 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js-Chsgy7eE.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js-DZAP-J2v.js +49 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js-DZAP-J2v.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js-BrNXWS1y.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js-BrNXWS1y.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_server.ts.js-BPkwqeoj.js +51 -0
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_server.ts.js-BPkwqeoj.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/_server.ts.js-DDh0H5wR.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/_server.ts.js-DDh0H5wR.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js-DvcwevBr.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js-DvcwevBr.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/token/_server.ts.js-DI7dja7V.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/me/token/_server.ts.js-DI7dja7V.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/openapi.json/_server.ts.js-BWR919rC.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/openapi.json/_server.ts.js-BWR919rC.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js-BZvcYfY0.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js-BZvcYfY0.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js-B_U9qb9W.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js-B_U9qb9W.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/compute/_server.ts.js-BpL82_pu.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/compute/_server.ts.js-BpL82_pu.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/_server.ts.js-DIHsnWO5.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/_server.ts.js-DIHsnWO5.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js-B7lHxnsa.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js-B7lHxnsa.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_server.ts.js-BbJYthVH.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_server.ts.js-BbJYthVH.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js-C-h_SH5d.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js-C-h_SH5d.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js-DgOEcW2g.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js-DgOEcW2g.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js-B25cZ1TT.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js-B25cZ1TT.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js-DyLYM6WR.js +47 -0
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js-DyLYM6WR.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/_server.ts.js-C4sEqWqz.js +50 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/_server.ts.js-C4sEqWqz.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js-D8g80XJf.js +49 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js-D8g80XJf.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js-D602Jf9x.js +49 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js-D602Jf9x.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js-ABhSOEFo.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js-ABhSOEFo.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_server.ts.js-C_5yl6Hn.js +48 -0
- package/build/server/chunks/entries/endpoints/api/v1/projects/_server.ts.js-C_5yl6Hn.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js-Hed-T43h.js +49 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js-Hed-T43h.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_server.ts.js-CMvh00SZ.js +110 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_server.ts.js-CMvh00SZ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_solveId_/_server.ts.js-CVgU7tYG.js +68 -0
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_solveId_/_server.ts.js-CVgU7tYG.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-C5nckIBa.js +55 -0
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-C5nckIBa.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-DtDsKTcy.js +61 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-DtDsKTcy.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-D5HHzmYM.js +66 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-D5HHzmYM.js.map +1 -0
- package/build/server/chunks/entries/endpoints/mcp/_server.ts.js-CUVpakCc.js +28 -0
- package/build/server/chunks/entries/endpoints/mcp/_server.ts.js-CUVpakCc.js.map +1 -0
- package/build/server/chunks/entries/hooks.server.js-DACpqVkB.js +377 -0
- package/build/server/chunks/entries/hooks.server.js-DACpqVkB.js.map +1 -0
- package/build/server/chunks/entries/pages/_error.svelte.js-DQUpBnmX.js +38 -0
- package/build/server/chunks/entries/pages/_error.svelte.js-DQUpBnmX.js.map +1 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-C7UKjxrt.js +37 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-C7UKjxrt.js.map +1 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-C29QA2f6.js +56 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-C29QA2f6.js.map +1 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DJRM0uhk.js +160 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DJRM0uhk.js.map +1 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-Wm0Qp1ZZ.js +181 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-Wm0Qp1ZZ.js.map +1 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-C3zwp77k.js +135 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-C3zwp77k.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-DWCtoZUS.js +40 -0
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-DWCtoZUS.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-CbMiGo3B.js +31 -0
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-CbMiGo3B.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-BXbpOHLN.js +123 -0
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-BXbpOHLN.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BUnbIcaJ.js +76 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BUnbIcaJ.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-CGIr2xAV.js +395 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-CGIr2xAV.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-D-_N-GCE.js +269 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-D-_N-GCE.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-Y6b6slXx.js +459 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-Y6b6slXx.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-BvuvTCvh.js +74 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-BvuvTCvh.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-DyhIE1Za.js +840 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-DyhIE1Za.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-0F_kknxq.js +35 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-0F_kknxq.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-BS8_TMU1.js +86 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-BS8_TMU1.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-ey_KXkgK.js +639 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-ey_KXkgK.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-BR9ueQvc.js +42 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-BR9ueQvc.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-w_UqvOZU.js +286 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-w_UqvOZU.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-DA2lo1pb.js +87 -0
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-DA2lo1pb.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-C4P_6PQq.js +1389 -0
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-C4P_6PQq.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-DivxFEVE.js +79 -0
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-DivxFEVE.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-7l3gQvjA.js +637 -0
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-7l3gQvjA.js.map +1 -0
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-DdlnYh8d.js +46 -0
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-DdlnYh8d.js.map +1 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-DEkMNcWF.js +62 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-DEkMNcWF.js.map +1 -0
- package/build/server/chunks/entries/pages/docs/api/_page.server.ts.js-DeGvGVeV.js +62 -0
- package/build/server/chunks/entries/pages/docs/api/_page.server.ts.js-DeGvGVeV.js.map +1 -0
- package/build/server/chunks/entries/pages/docs/api/_page.svelte.js-DCbpTzOh.js +85 -0
- package/build/server/chunks/entries/pages/docs/api/_page.svelte.js-DCbpTzOh.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-_ylKO5jW.js +120 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-_ylKO5jW.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-T8mivzH7.js +14574 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-T8mivzH7.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-1C4kfj6l.js +51 -0
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-1C4kfj6l.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_page.svelte.js-CM9paQP3.js +302 -0
- package/build/server/chunks/entries/pages/library/_page.svelte.js-CM9paQP3.js.map +1 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-q0UVZD2l.js +101 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-q0UVZD2l.js.map +1 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-TEWC_8E4.js +214 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-TEWC_8E4.js.map +1 -0
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-DUIKZVgw.js +19 -0
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-DUIKZVgw.js.map +1 -0
- package/build/server/chunks/entries/pages/oauth/authorize/_page.server.ts.js-C_75PasT.js +100 -0
- package/build/server/chunks/entries/pages/oauth/authorize/_page.server.ts.js-C_75PasT.js.map +1 -0
- package/build/server/chunks/entries/pages/oauth/authorize/_page.svelte.js-DO-gnNhy.js +122 -0
- package/build/server/chunks/entries/pages/oauth/authorize/_page.svelte.js-DO-gnNhy.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-D9XHa7nj.js +50 -0
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-D9XHa7nj.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-D8YOVSrn.js +93 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-D8YOVSrn.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-BKUl-sxr.js +3648 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-BKUl-sxr.js.map +1 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-d4zNAAmW.js +116 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-d4zNAAmW.js.map +1 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-I-PemgEq.js +249 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-I-PemgEq.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-Bqz0Uo3Q.js +28 -0
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-Bqz0Uo3Q.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-DMu4_J2L.js +175 -0
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-DMu4_J2L.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-CZAtwAJN.js +35 -0
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-CZAtwAJN.js.map +1 -0
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-L-6ie8n5.js +42 -0
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-L-6ie8n5.js.map +1 -0
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-CM4tnEyG.js +617 -0
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-CM4tnEyG.js.map +1 -0
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-D86z5gwA.js +62 -0
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-D86z5gwA.js.map +1 -0
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-BIYJNSkm.js +808 -0
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-BIYJNSkm.js.map +1 -0
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-B2yT-cQB.js +60 -0
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-B2yT-cQB.js.map +1 -0
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-CmT-PspY.js +425 -0
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-CmT-PspY.js.map +1 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js-DctHuqDZ.js +67 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js-DctHuqDZ.js.map +1 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-BNb61Lg-.js +267 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-BNb61Lg-.js.map +1 -0
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-Br71DtCM.js +34 -0
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-Br71DtCM.js.map +1 -0
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-JJZ-I_oY.js +29 -0
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-JJZ-I_oY.js.map +1 -0
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-BDSGI5ER.js +315 -0
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-BDSGI5ER.js.map +1 -0
- package/build/server/chunks/entries/pages/team/tokens/_page.server.ts.js-BhAOAuez.js +65 -0
- package/build/server/chunks/entries/pages/team/tokens/_page.server.ts.js-BhAOAuez.js.map +1 -0
- package/build/server/chunks/entries/pages/team/tokens/_page.svelte.js-DTltvDMe.js +736 -0
- package/build/server/chunks/entries/pages/team/tokens/_page.svelte.js-DTltvDMe.js.map +1 -0
- package/build/server/chunks/handler-BqNLWEmY.js +1206 -0
- package/build/server/chunks/handler-BqNLWEmY.js.map +1 -0
- package/build/server/chunks/index.js-Bi3iv7-_.js +3767 -0
- package/build/server/chunks/index.js-Bi3iv7-_.js.map +1 -0
- package/build/server/chunks/manifest.js-CwTH3VYu.js +719 -0
- package/build/server/chunks/manifest.js-CwTH3VYu.js.map +1 -0
- package/build/server/chunks/nodes/0.js-BXWp8Wz1.js +55 -0
- package/build/server/chunks/nodes/0.js-BXWp8Wz1.js.map +1 -0
- package/build/server/chunks/nodes/1.js-Be-Vs79I.js +9 -0
- package/build/server/chunks/nodes/1.js-Be-Vs79I.js.map +1 -0
- package/build/server/chunks/nodes/10.js-7TgpquXE.js +34 -0
- package/build/server/chunks/nodes/10.js-7TgpquXE.js.map +1 -0
- package/build/server/chunks/nodes/11.js-DYdb01ds.js +38 -0
- package/build/server/chunks/nodes/11.js-DYdb01ds.js.map +1 -0
- package/build/server/chunks/nodes/12.js-LDt9e933.js +31 -0
- package/build/server/chunks/nodes/12.js-LDt9e933.js.map +1 -0
- package/build/server/chunks/nodes/13.js-DPWyOaQY.js +31 -0
- package/build/server/chunks/nodes/13.js-DPWyOaQY.js.map +1 -0
- package/build/server/chunks/nodes/14.js-ChtI07fR.js +31 -0
- package/build/server/chunks/nodes/14.js-ChtI07fR.js.map +1 -0
- package/build/server/chunks/nodes/15.js-RTeCl-oq.js +39 -0
- package/build/server/chunks/nodes/15.js-RTeCl-oq.js.map +1 -0
- package/build/server/chunks/nodes/16.js-C5hfeRMS.js +34 -0
- package/build/server/chunks/nodes/16.js-C5hfeRMS.js.map +1 -0
- package/build/server/chunks/nodes/17.js-DbGFHpME.js +9 -0
- package/build/server/chunks/nodes/17.js-DbGFHpME.js.map +1 -0
- package/build/server/chunks/nodes/18.js-BCFFbFyc.js +40 -0
- package/build/server/chunks/nodes/18.js-BCFFbFyc.js.map +1 -0
- package/build/server/chunks/nodes/19.js-DpHs_yUO.js +25 -0
- package/build/server/chunks/nodes/19.js-DpHs_yUO.js.map +1 -0
- package/build/server/chunks/nodes/2.js-sITh1vK9.js +34 -0
- package/build/server/chunks/nodes/2.js-sITh1vK9.js.map +1 -0
- package/build/server/chunks/nodes/20.js-CHj_J9yM.js +24 -0
- package/build/server/chunks/nodes/20.js-CHj_J9yM.js.map +1 -0
- package/build/server/chunks/nodes/21.js-PiewFqlV.js +41 -0
- package/build/server/chunks/nodes/21.js-PiewFqlV.js.map +1 -0
- package/build/server/chunks/nodes/22.js-BcpztRxj.js +40 -0
- package/build/server/chunks/nodes/22.js-BcpztRxj.js.map +1 -0
- package/build/server/chunks/nodes/23.js-B18x8ZaD.js +37 -0
- package/build/server/chunks/nodes/23.js-B18x8ZaD.js.map +1 -0
- package/build/server/chunks/nodes/24.js-GBE9exkD.js +54 -0
- package/build/server/chunks/nodes/24.js-GBE9exkD.js.map +1 -0
- package/build/server/chunks/nodes/25.js-Dt-yCaet.js +33 -0
- package/build/server/chunks/nodes/25.js-Dt-yCaet.js.map +1 -0
- package/build/server/chunks/nodes/26.js-aysnDs_g.js +40 -0
- package/build/server/chunks/nodes/26.js-aysnDs_g.js.map +1 -0
- package/build/server/chunks/nodes/27.js-CCp3CMf7.js +31 -0
- package/build/server/chunks/nodes/27.js-CCp3CMf7.js.map +1 -0
- package/build/server/chunks/nodes/29.js-3ng24wTi.js +31 -0
- package/build/server/chunks/nodes/29.js-3ng24wTi.js.map +1 -0
- package/build/server/chunks/nodes/3.js-CaERNmy8.js +9 -0
- package/build/server/chunks/nodes/3.js-CaERNmy8.js.map +1 -0
- package/build/server/chunks/nodes/30.js-Dix2ZQ5o.js +31 -0
- package/build/server/chunks/nodes/30.js-Dix2ZQ5o.js.map +1 -0
- package/build/server/chunks/nodes/31.js-Dpaca_94.js +34 -0
- package/build/server/chunks/nodes/31.js-Dpaca_94.js.map +1 -0
- package/build/server/chunks/nodes/32.js-DGMfNaAQ.js +31 -0
- package/build/server/chunks/nodes/32.js-DGMfNaAQ.js.map +1 -0
- package/build/server/chunks/nodes/33.js-DUPyC3no.js +31 -0
- package/build/server/chunks/nodes/33.js-DUPyC3no.js.map +1 -0
- package/build/server/chunks/nodes/34.js-BTqOQRf4.js +31 -0
- package/build/server/chunks/nodes/34.js-BTqOQRf4.js.map +1 -0
- package/build/server/chunks/nodes/35.js-0gh0E09A.js +55 -0
- package/build/server/chunks/nodes/35.js-0gh0E09A.js.map +1 -0
- package/build/server/chunks/nodes/5.js-JaY-q3pv.js +15 -0
- package/build/server/chunks/nodes/5.js-JaY-q3pv.js.map +1 -0
- package/build/server/chunks/nodes/6.js-C_scrrBu.js +31 -0
- package/build/server/chunks/nodes/6.js-C_scrrBu.js.map +1 -0
- package/build/server/chunks/nodes/7.js-DReohSXR.js +24 -0
- package/build/server/chunks/nodes/7.js-DReohSXR.js.map +1 -0
- package/build/server/chunks/nodes/8.js-B9TeR71Z.js +41 -0
- package/build/server/chunks/nodes/8.js-B9TeR71Z.js.map +1 -0
- package/build/server/chunks/nodes/9.js-B3ogaX6E.js +31 -0
- package/build/server/chunks/nodes/9.js-B3ogaX6E.js.map +1 -0
- package/package.json +9 -9
- package/build/client/_app/immutable/assets/0.DOtWaoEl.css +0 -2
- package/build/client/_app/immutable/assets/0.DOtWaoEl.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DOtWaoEl.css.gz +0 -0
- package/build/client/_app/immutable/assets/21.R_QLUeP3.css +0 -1
- package/build/client/_app/immutable/assets/21.R_QLUeP3.css.br +0 -0
- package/build/client/_app/immutable/assets/21.R_QLUeP3.css.gz +0 -0
- package/build/client/_app/immutable/chunks/AMWG-qwn.js +0 -2
- package/build/client/_app/immutable/chunks/AMWG-qwn.js.br +0 -0
- package/build/client/_app/immutable/chunks/AMWG-qwn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRit-H4k.js +0 -1
- package/build/client/_app/immutable/chunks/BRit-H4k.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRit-H4k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bvo2nBc_.js +0 -1
- package/build/client/_app/immutable/chunks/Bvo2nBc_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bvo2nBc_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bz7r0Urw.js +0 -1
- package/build/client/_app/immutable/chunks/Bz7r0Urw.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bz7r0Urw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4kqvBxK.js +0 -1
- package/build/client/_app/immutable/chunks/C4kqvBxK.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4kqvBxK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBpXIZJU.js +0 -1
- package/build/client/_app/immutable/chunks/CBpXIZJU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBpXIZJU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CE6epq0x.js +0 -1
- package/build/client/_app/immutable/chunks/CE6epq0x.js.br +0 -0
- package/build/client/_app/immutable/chunks/CE6epq0x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1qQ-jSs.js +0 -1
- package/build/client/_app/immutable/chunks/D1qQ-jSs.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1qQ-jSs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2EjomTp.js +0 -1
- package/build/client/_app/immutable/chunks/D2EjomTp.js.br +0 -2
- package/build/client/_app/immutable/chunks/D2EjomTp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8WbMyuC.js +0 -1
- package/build/client/_app/immutable/chunks/D8WbMyuC.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8WbMyuC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DApx_t3P.js +0 -1
- package/build/client/_app/immutable/chunks/DApx_t3P.js.br +0 -0
- package/build/client/_app/immutable/chunks/DApx_t3P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBYCqVTj.js +0 -1
- package/build/client/_app/immutable/chunks/DBYCqVTj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBYCqVTj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVwoXNkg.js +0 -1
- package/build/client/_app/immutable/chunks/DVwoXNkg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVwoXNkg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrDg8ZI6.js +0 -1
- package/build/client/_app/immutable/chunks/DrDg8ZI6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrDg8ZI6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HH5LvOUY.js +0 -1
- package/build/client/_app/immutable/chunks/HH5LvOUY.js.br +0 -0
- package/build/client/_app/immutable/chunks/HH5LvOUY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Lx8EKtCI.js +0 -1
- package/build/client/_app/immutable/chunks/Lx8EKtCI.js.br +0 -2
- package/build/client/_app/immutable/chunks/Lx8EKtCI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XvwhKzXf.js +0 -1
- package/build/client/_app/immutable/chunks/XvwhKzXf.js.br +0 -0
- package/build/client/_app/immutable/chunks/XvwhKzXf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pRuHRuol.js +0 -1
- package/build/client/_app/immutable/chunks/pRuHRuol.js.br +0 -0
- package/build/client/_app/immutable/chunks/pRuHRuol.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tE4iBUCl.js +0 -1
- package/build/client/_app/immutable/chunks/tE4iBUCl.js.br +0 -0
- package/build/client/_app/immutable/chunks/tE4iBUCl.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D0bGJzbp.js +0 -2
- package/build/client/_app/immutable/entry/app.D0bGJzbp.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D0bGJzbp.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dcmaahku.js +0 -1
- package/build/client/_app/immutable/entry/start.Dcmaahku.js.br +0 -1
- package/build/client/_app/immutable/entry/start.Dcmaahku.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BrVzgDTg.js +0 -1
- package/build/client/_app/immutable/nodes/1.BrVzgDTg.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BrVzgDTg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BnXwajnq.js +0 -3
- package/build/client/_app/immutable/nodes/10.BnXwajnq.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BnXwajnq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.xbgotAd8.js +0 -3
- package/build/client/_app/immutable/nodes/11.xbgotAd8.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.xbgotAd8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.L2vJ1TSu.js +0 -2
- package/build/client/_app/immutable/nodes/13.L2vJ1TSu.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.L2vJ1TSu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.CLFhFOAb.js +0 -2
- package/build/client/_app/immutable/nodes/14.CLFhFOAb.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CLFhFOAb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.bXC3c_eQ.js +0 -28
- package/build/client/_app/immutable/nodes/15.bXC3c_eQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.bXC3c_eQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BvM8Wv1U.js +0 -5
- package/build/client/_app/immutable/nodes/16.BvM8Wv1U.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BvM8Wv1U.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DqT4NcPk.js +0 -2
- package/build/client/_app/immutable/nodes/17.DqT4NcPk.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DqT4NcPk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DBqtCMqL.js +0 -7
- package/build/client/_app/immutable/nodes/19.DBqtCMqL.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DBqtCMqL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DlbNONuf.js +0 -1
- package/build/client/_app/immutable/nodes/2.DlbNONuf.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DlbNONuf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DSeZFOOv.js +0 -2
- package/build/client/_app/immutable/nodes/20.DSeZFOOv.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DSeZFOOv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BPXayM90.js +0 -5668
- package/build/client/_app/immutable/nodes/21.BPXayM90.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BPXayM90.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.CeH0YHzj.js +0 -6
- package/build/client/_app/immutable/nodes/22.CeH0YHzj.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.CeH0YHzj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DGS2Ar_G.js +0 -3
- package/build/client/_app/immutable/nodes/24.DGS2Ar_G.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DGS2Ar_G.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DDyz7uLY.js +0 -16
- package/build/client/_app/immutable/nodes/25.DDyz7uLY.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DDyz7uLY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Cq9VCZPZ.js +0 -6
- package/build/client/_app/immutable/nodes/26.Cq9VCZPZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Cq9VCZPZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BNa52NhS.js +0 -4
- package/build/client/_app/immutable/nodes/29.BNa52NhS.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BNa52NhS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.GhoHmdPA.js +0 -1
- package/build/client/_app/immutable/nodes/3.GhoHmdPA.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.GhoHmdPA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.CrsSHbka.js +0 -6
- package/build/client/_app/immutable/nodes/30.CrsSHbka.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.CrsSHbka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.CfKqCyvy.js +0 -2
- package/build/client/_app/immutable/nodes/31.CfKqCyvy.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.CfKqCyvy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Dwkx79r1.js +0 -2
- package/build/client/_app/immutable/nodes/32.Dwkx79r1.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Dwkx79r1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.BovUIvc4.js +0 -1
- package/build/client/_app/immutable/nodes/34.BovUIvc4.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.BovUIvc4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/35.C0FI1dXX.js +0 -2
- package/build/client/_app/immutable/nodes/35.C0FI1dXX.js.br +0 -0
- package/build/client/_app/immutable/nodes/35.C0FI1dXX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DknZ0TFM.js +0 -1
- package/build/client/_app/immutable/nodes/5.DknZ0TFM.js.br +0 -1
- package/build/client/_app/immutable/nodes/5.DknZ0TFM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.Cze4rzEa.js +0 -1
- package/build/client/_app/immutable/nodes/6.Cze4rzEa.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Cze4rzEa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.B-KyP9WN.js +0 -1
- package/build/client/_app/immutable/nodes/7.B-KyP9WN.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B-KyP9WN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CeUm41iI.js +0 -3
- package/build/client/_app/immutable/nodes/8.CeUm41iI.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CeUm41iI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BWcSGBZi.js +0 -1
- package/build/client/_app/immutable/nodes/9.BWcSGBZi.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BWcSGBZi.js.gz +0 -0
- package/build/server/chunks/chunks/AppHeader.js-CGHKFoDj.js +0 -74
- package/build/server/chunks/chunks/AppHeader.js-CGHKFoDj.js.map +0 -1
- package/build/server/chunks/chunks/ConfirmDialog.js-xJ0cCVTr.js +0 -151
- package/build/server/chunks/chunks/ConfirmDialog.js-xJ0cCVTr.js.map +0 -1
- package/build/server/chunks/chunks/ErrorScreen.js-CuSoEGyf.js +0 -117
- package/build/server/chunks/chunks/ErrorScreen.js-CuSoEGyf.js.map +0 -1
- package/build/server/chunks/chunks/FilterableDropdown.js-slk95YCh.js +0 -2725
- package/build/server/chunks/chunks/FilterableDropdown.js-slk95YCh.js.map +0 -1
- package/build/server/chunks/chunks/SettingsMenu.js-DgPrIfUr.js +0 -833
- package/build/server/chunks/chunks/SettingsMenu.js-DgPrIfUr.js.map +0 -1
- package/build/server/chunks/chunks/SideNav.js-DddWtJCT.js +0 -63
- package/build/server/chunks/chunks/SideNav.js-DddWtJCT.js.map +0 -1
- package/build/server/chunks/chunks/ViewToggle.js-DfZqEana.js +0 -534
- package/build/server/chunks/chunks/ViewToggle.js-DfZqEana.js.map +0 -1
- package/build/server/chunks/chunks/access.server.js-B39Rl-1K.js +0 -14
- package/build/server/chunks/chunks/access.server.js-B39Rl-1K.js.map +0 -1
- package/build/server/chunks/chunks/access2.server.js-Bn989GVt.js +0 -63
- package/build/server/chunks/chunks/access2.server.js-Bn989GVt.js.map +0 -1
- package/build/server/chunks/chunks/alert-dialog.js-KhHWrtVR.js +0 -464
- package/build/server/chunks/chunks/alert-dialog.js-KhHWrtVR.js.map +0 -1
- package/build/server/chunks/chunks/api-errors.js-DXuEc107.js +0 -57
- package/build/server/chunks/chunks/api-errors.js-DXuEc107.js.map +0 -1
- package/build/server/chunks/chunks/api.js-D91pFP73.js +0 -1031
- package/build/server/chunks/chunks/api.js-D91pFP73.js.map +0 -1
- package/build/server/chunks/chunks/auth-bootstrap.server.js-1zm_NLb8.js +0 -152
- package/build/server/chunks/chunks/auth-bootstrap.server.js-1zm_NLb8.js.map +0 -1
- package/build/server/chunks/chunks/bootHealth.server.js-xdjPsBE-.js +0 -90
- package/build/server/chunks/chunks/bootHealth.server.js-xdjPsBE-.js.map +0 -1
- package/build/server/chunks/chunks/client.js-BpbGWNlz.js +0 -59
- package/build/server/chunks/chunks/client.js-BpbGWNlz.js.map +0 -1
- package/build/server/chunks/chunks/computeLimits.js-GGfY0oK6.js +0 -44
- package/build/server/chunks/chunks/computeLimits.js-GGfY0oK6.js.map +0 -1
- package/build/server/chunks/chunks/computeRateLimit.server.js-BqzRQcF9.js +0 -31
- package/build/server/chunks/chunks/computeRateLimit.server.js-BqzRQcF9.js.map +0 -1
- package/build/server/chunks/chunks/create-id.js-DByR97E7.js +0 -809
- package/build/server/chunks/chunks/create-id.js-DByR97E7.js.map +0 -1
- package/build/server/chunks/chunks/definitions.js-iKbCZcvU.js +0 -390
- package/build/server/chunks/chunks/definitions.js-iKbCZcvU.js.map +0 -1
- package/build/server/chunks/chunks/dialog-description.js-BY-9ke4K.js +0 -492
- package/build/server/chunks/chunks/dialog-description.js-BY-9ke4K.js.map +0 -1
- package/build/server/chunks/chunks/dialog.js-BgpbBL6T.js +0 -368
- package/build/server/chunks/chunks/dialog.js-BgpbBL6T.js.map +0 -1
- package/build/server/chunks/chunks/engine.server.js-VDQXKnsg.js +0 -585
- package/build/server/chunks/chunks/engine.server.js-VDQXKnsg.js.map +0 -1
- package/build/server/chunks/chunks/forms.js-CLaZxaXE.js +0 -2
- package/build/server/chunks/chunks/forms.js-CLaZxaXE.js.map +0 -1
- package/build/server/chunks/chunks/grasshopper.js-D7zLgb0m.js +0 -2645
- package/build/server/chunks/chunks/grasshopper.js-D7zLgb0m.js.map +0 -1
- package/build/server/chunks/chunks/handlers.js-D4qzxHfw.js +0 -1604
- package/build/server/chunks/chunks/handlers.js-D4qzxHfw.js.map +0 -1
- package/build/server/chunks/chunks/http.js-DFBGoyJd.js +0 -60
- package/build/server/chunks/chunks/http.js-DFBGoyJd.js.map +0 -1
- package/build/server/chunks/chunks/instanceAdmins.server.js-oCsYevHV.js +0 -24
- package/build/server/chunks/chunks/instanceAdmins.server.js-oCsYevHV.js.map +0 -1
- package/build/server/chunks/chunks/internal2.js-D1ChSwZL.js +0 -224
- package/build/server/chunks/chunks/internal2.js-D1ChSwZL.js.map +0 -1
- package/build/server/chunks/chunks/label.js-CH-88bjp.js +0 -107
- package/build/server/chunks/chunks/label.js-CH-88bjp.js.map +0 -1
- package/build/server/chunks/chunks/localeContext.svelte.js-CkSHigC9.js +0 -353
- package/build/server/chunks/chunks/localeContext.svelte.js-CkSHigC9.js.map +0 -1
- package/build/server/chunks/chunks/navigation.js-CLaZxaXE.js +0 -2
- package/build/server/chunks/chunks/navigation.js-CLaZxaXE.js.map +0 -1
- package/build/server/chunks/chunks/openapi.js-pjuLQ5pJ.js +0 -61
- package/build/server/chunks/chunks/openapi.js-pjuLQ5pJ.js.map +0 -1
- package/build/server/chunks/chunks/package.js-BMCtfT4Z.js +0 -85
- package/build/server/chunks/chunks/package.js-BMCtfT4Z.js.map +0 -1
- package/build/server/chunks/chunks/paths.js-D7QldHQf.js +0 -19
- package/build/server/chunks/chunks/paths.js-D7QldHQf.js.map +0 -1
- package/build/server/chunks/chunks/permissions.server.js-DxpHtViZ.js +0 -24
- package/build/server/chunks/chunks/permissions.server.js-DxpHtViZ.js.map +0 -1
- package/build/server/chunks/chunks/popper-layer-force-mount.js-BVkAYVXN.js +0 -1937
- package/build/server/chunks/chunks/popper-layer-force-mount.js-BVkAYVXN.js.map +0 -1
- package/build/server/chunks/chunks/presets.server.js-fHsKRDeI.js +0 -21
- package/build/server/chunks/chunks/presets.server.js-fHsKRDeI.js.map +0 -1
- package/build/server/chunks/chunks/providers.server.js-DCnTl09H.js +0 -6393
- package/build/server/chunks/chunks/providers.server.js-DCnTl09H.js.map +0 -1
- package/build/server/chunks/chunks/registry.js-DCnH5wCz.js +0 -656
- package/build/server/chunks/chunks/registry.js-DCnH5wCz.js.map +0 -1
- package/build/server/chunks/chunks/resolve.server.js-BsnVXyyg.js +0 -59
- package/build/server/chunks/chunks/resolve.server.js-BsnVXyyg.js.map +0 -1
- package/build/server/chunks/chunks/roving-focus-group.js-4kFd02kE.js +0 -134
- package/build/server/chunks/chunks/roving-focus-group.js-4kFd02kE.js.map +0 -1
- package/build/server/chunks/chunks/schema-extraction.js-CReo9rkO.js +0 -142
- package/build/server/chunks/chunks/schema-extraction.js-CReo9rkO.js.map +0 -1
- package/build/server/chunks/chunks/schema.js-cYn9UGx7.js +0 -27
- package/build/server/chunks/chunks/schema.js-cYn9UGx7.js.map +0 -1
- package/build/server/chunks/chunks/scroll-lock.js-B23IQqpP.js +0 -1902
- package/build/server/chunks/chunks/scroll-lock.js-B23IQqpP.js.map +0 -1
- package/build/server/chunks/chunks/select.js-P_EOB0iO.js +0 -1917
- package/build/server/chunks/chunks/select.js-P_EOB0iO.js.map +0 -1
- package/build/server/chunks/chunks/selfUpdate.server.js-vRQDy5Ib.js +0 -144
- package/build/server/chunks/chunks/selfUpdate.server.js-vRQDy5Ib.js.map +0 -1
- package/build/server/chunks/chunks/separator.js-BNiu6-aj.js +0 -186
- package/build/server/chunks/chunks/separator.js-BNiu6-aj.js.map +0 -1
- package/build/server/chunks/chunks/server3.js-7N8rSEGK.js +0 -20734
- package/build/server/chunks/chunks/server3.js-7N8rSEGK.js.map +0 -1
- package/build/server/chunks/chunks/settings.js-ZajE6fHc.js +0 -19
- package/build/server/chunks/chunks/settings.js-ZajE6fHc.js.map +0 -1
- package/build/server/chunks/chunks/solve.server.js-Cqv7J9D6.js +0 -316
- package/build/server/chunks/chunks/solve.server.js-Cqv7J9D6.js.map +0 -1
- package/build/server/chunks/chunks/state.js-CMRvbOrh.js +0 -76
- package/build/server/chunks/chunks/state.js-CMRvbOrh.js.map +0 -1
- package/build/server/chunks/chunks/stores.js-Dz3x4Q39.js +0 -35
- package/build/server/chunks/chunks/stores.js-Dz3x4Q39.js.map +0 -1
- package/build/server/chunks/chunks/sveltekit.js-CcgN343U.js +0 -102
- package/build/server/chunks/chunks/sveltekit.js-CcgN343U.js.map +0 -1
- package/build/server/chunks/chunks/tabs-trigger.js-BeV-n20t.js +0 -528
- package/build/server/chunks/chunks/tabs-trigger.js-BeV-n20t.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/compute/_server.ts.js-7eGCEKGK.js +0 -99
- package/build/server/chunks/entries/endpoints/api/admin/compute/_server.ts.js-7eGCEKGK.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/compute/actions/_server.ts.js-C3px49hc.js +0 -87
- package/build/server/chunks/entries/endpoints/api/admin/compute/actions/_server.ts.js-C3px49hc.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/compute/status/_server.ts.js-DcQY0yMi.js +0 -98
- package/build/server/chunks/entries/endpoints/api/admin/compute/status/_server.ts.js-DcQY0yMi.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_id_/_server.ts.js-BRuKfpn1.js +0 -48
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_id_/_server.ts.js-BRuKfpn1.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_server.ts.js-CWmVrlPW.js +0 -71
- package/build/server/chunks/entries/endpoints/api/admin/orgs/_server.ts.js-CWmVrlPW.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/_server.ts.js-DukVGPiZ.js +0 -64
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/_server.ts.js-DukVGPiZ.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js-DF8teCtj.js +0 -36
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js-DF8teCtj.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js-DfomLjVt.js +0 -67
- package/build/server/chunks/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js-DfomLjVt.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/projects/_server.ts.js-C3I-H5yx.js +0 -82
- package/build/server/chunks/entries/endpoints/api/admin/projects/_server.ts.js-C3I-H5yx.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/system/health/_server.ts.js-BG6uRZ4f.js +0 -367
- package/build/server/chunks/entries/endpoints/api/admin/system/health/_server.ts.js-BG6uRZ4f.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/system/throughput/_server.ts.js-DfoZ7n9N.js +0 -87
- package/build/server/chunks/entries/endpoints/api/admin/system/throughput/_server.ts.js-DfoZ7n9N.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/system/update/_server.ts.js-BtOcy8Pg.js +0 -611
- package/build/server/chunks/entries/endpoints/api/admin/system/update/_server.ts.js-BtOcy8Pg.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/_server.ts.js-FDYRbnUO.js +0 -60
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/_server.ts.js-FDYRbnUO.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js-CdlXeOtZ.js +0 -78
- package/build/server/chunks/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js-CdlXeOtZ.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/admin/users/_server.ts.js-DPVh7mQi.js +0 -85
- package/build/server/chunks/entries/endpoints/api/admin/users/_server.ts.js-DPVh7mQi.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/diag/throughput/_server.ts.js-DUW1xEAH.js +0 -64
- package/build/server/chunks/entries/endpoints/api/diag/throughput/_server.ts.js-DUW1xEAH.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-DQaCiBgB.js +0 -95
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-DQaCiBgB.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DuHh6PRd.js +0 -62
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DuHh6PRd.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/health/ready/_server.ts.js-DKkhu-1K.js +0 -65
- package/build/server/chunks/entries/endpoints/api/health/ready/_server.ts.js-DKkhu-1K.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/compute/_server.ts.js-DlTi7wKP.js +0 -94
- package/build/server/chunks/entries/endpoints/api/v1/compute/_server.ts.js-DlTi7wKP.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/compute/schema/_server.ts.js-BdiU9foW.js +0 -79
- package/build/server/chunks/entries/endpoints/api/v1/compute/schema/_server.ts.js-BdiU9foW.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js-BuoJoioO.js +0 -50
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js-BuoJoioO.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js-CARiKqpX.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js-CARiKqpX.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js-B5RCW_FU.js +0 -51
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js-B5RCW_FU.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js-CusAi9-7.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js-CusAi9-7.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js-vlDJpWVu.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js-vlDJpWVu.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js-CIF9SXhT.js +0 -52
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js-CIF9SXhT.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js-CxA74hVV.js +0 -100
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js-CxA74hVV.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js-B9o8wXh_.js +0 -53
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js-B9o8wXh_.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js-yP63hACN.js +0 -49
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js-yP63hACN.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js-CBi18ivz.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js-CBi18ivz.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_server.ts.js-D5_0HKty.js +0 -51
- package/build/server/chunks/entries/endpoints/api/v1/definitions/_server.ts.js-D5_0HKty.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/me/_server.ts.js-CykhyFQx.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/me/_server.ts.js-CykhyFQx.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js-CSfT_98k.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js-CSfT_98k.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/me/token/_server.ts.js-BUcVknmZ.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/me/token/_server.ts.js-BUcVknmZ.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/openapi.json/_server.ts.js-DTTWwdkl.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/openapi.json/_server.ts.js-DTTWwdkl.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js-DD31bsus.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js-DD31bsus.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js-Dx4JyJRM.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js-Dx4JyJRM.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/compute/_server.ts.js-CBoiDfnc.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/compute/_server.ts.js-CBoiDfnc.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/_server.ts.js-BihrnNHB.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/_server.ts.js-BihrnNHB.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js-BuOZEQNV.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js-BuOZEQNV.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_server.ts.js-BvzF-EBr.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/invites/_server.ts.js-BvzF-EBr.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js-D8f7OSCt.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js-D8f7OSCt.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js-DPBJ54ml.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js-DPBJ54ml.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js-CWX4aN5-.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js-CWX4aN5-.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js-TUG7biCk.js +0 -47
- package/build/server/chunks/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js-TUG7biCk.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/_server.ts.js-DF2tKEuN.js +0 -50
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/_server.ts.js-DF2tKEuN.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js-DTtNs_ES.js +0 -49
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js-DTtNs_ES.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js-WoV3FwjZ.js +0 -49
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js-WoV3FwjZ.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js-PYLt-gNp.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js-PYLt-gNp.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/projects/_server.ts.js-DR9u2ja1.js +0 -48
- package/build/server/chunks/entries/endpoints/api/v1/projects/_server.ts.js-DR9u2ja1.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js-Cl3lxpnX.js +0 -49
- package/build/server/chunks/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js-Cl3lxpnX.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_server.ts.js-DrKeDkeh.js +0 -110
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_server.ts.js-DrKeDkeh.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_solveId_/_server.ts.js-Dh7KpiEo.js +0 -68
- package/build/server/chunks/entries/endpoints/api/v1/solve-events/_solveId_/_server.ts.js-Dh7KpiEo.js.map +0 -1
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-dDly1EhY.js +0 -55
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-dDly1EhY.js.map +0 -1
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-D34mNPta.js +0 -61
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-D34mNPta.js.map +0 -1
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-8aPCGUpi.js +0 -66
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-8aPCGUpi.js.map +0 -1
- package/build/server/chunks/entries/endpoints/mcp/_server.ts.js-Ds8cbg89.js +0 -28
- package/build/server/chunks/entries/endpoints/mcp/_server.ts.js-Ds8cbg89.js.map +0 -1
- package/build/server/chunks/entries/hooks.server.js-DKDsCI1O.js +0 -377
- package/build/server/chunks/entries/hooks.server.js-DKDsCI1O.js.map +0 -1
- package/build/server/chunks/entries/pages/_error.svelte.js-yoRhP0wb.js +0 -38
- package/build/server/chunks/entries/pages/_error.svelte.js-yoRhP0wb.js.map +0 -1
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DFJiuuMS.js +0 -37
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DFJiuuMS.js.map +0 -1
- package/build/server/chunks/entries/pages/_page.server.ts.js-DY4AnDzA.js +0 -56
- package/build/server/chunks/entries/pages/_page.server.ts.js-DY4AnDzA.js.map +0 -1
- package/build/server/chunks/entries/pages/_page.svelte.js-CrI5QOKE.js +0 -158
- package/build/server/chunks/entries/pages/_page.svelte.js-CrI5QOKE.js.map +0 -1
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-DJU9aQPO.js +0 -181
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-DJU9aQPO.js.map +0 -1
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-CGQhL9_G.js +0 -135
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-CGQhL9_G.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-DtS1nzhz.js +0 -40
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-DtS1nzhz.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-LWbInFzH.js +0 -31
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-LWbInFzH.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-Bzmb0Bb2.js +0 -121
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-Bzmb0Bb2.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BxJwihtN.js +0 -76
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BxJwihtN.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-WqjsJs56.js +0 -395
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-WqjsJs56.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-gnyW_S44.js +0 -269
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-gnyW_S44.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-Dop9bUx9.js +0 -457
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-Dop9bUx9.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-CU1_AiQ4.js +0 -74
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-CU1_AiQ4.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-CbBxzNto.js +0 -840
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-CbBxzNto.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-CvJIsU3P.js +0 -35
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-CvJIsU3P.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-H7ZTYIJT.js +0 -86
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-H7ZTYIJT.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-CJjE9-wI.js +0 -640
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-CJjE9-wI.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-CniXycNc.js +0 -42
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-CniXycNc.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-D3I4JBaa.js +0 -286
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-D3I4JBaa.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-CfKxcVUV.js +0 -87
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-CfKxcVUV.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-DcqyMD8Y.js +0 -1389
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-DcqyMD8Y.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-BcdXjaX_.js +0 -79
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-BcdXjaX_.js.map +0 -1
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-Cj8kQBg-.js +0 -637
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-Cj8kQBg-.js.map +0 -1
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-COCIIuOJ.js +0 -46
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-COCIIuOJ.js.map +0 -1
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-CAXVLM0d.js +0 -62
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-CAXVLM0d.js.map +0 -1
- package/build/server/chunks/entries/pages/docs/api/_page.server.ts.js-DVeaMUzc.js +0 -62
- package/build/server/chunks/entries/pages/docs/api/_page.server.ts.js-DVeaMUzc.js.map +0 -1
- package/build/server/chunks/entries/pages/docs/api/_page.svelte.js-C5lqgQ_l.js +0 -85
- package/build/server/chunks/entries/pages/docs/api/_page.svelte.js-C5lqgQ_l.js.map +0 -1
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-vIPp1JAD.js +0 -120
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-vIPp1JAD.js.map +0 -1
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-C1KYrJqE.js +0 -15734
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-C1KYrJqE.js.map +0 -1
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-CHv5q42p.js +0 -51
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-CHv5q42p.js.map +0 -1
- package/build/server/chunks/entries/pages/library/_page.svelte.js-DVbM5_5T.js +0 -300
- package/build/server/chunks/entries/pages/library/_page.svelte.js-DVbM5_5T.js.map +0 -1
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-B-3zoK7Z.js +0 -101
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-B-3zoK7Z.js.map +0 -1
- package/build/server/chunks/entries/pages/login/_page.svelte.js-j2ic1Jau.js +0 -214
- package/build/server/chunks/entries/pages/login/_page.svelte.js-j2ic1Jau.js.map +0 -1
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-zlKtzlix.js +0 -19
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-zlKtzlix.js.map +0 -1
- package/build/server/chunks/entries/pages/oauth/authorize/_page.server.ts.js-DN2DV3M3.js +0 -100
- package/build/server/chunks/entries/pages/oauth/authorize/_page.server.ts.js-DN2DV3M3.js.map +0 -1
- package/build/server/chunks/entries/pages/oauth/authorize/_page.svelte.js-Cgzi8Ncf.js +0 -122
- package/build/server/chunks/entries/pages/oauth/authorize/_page.svelte.js-Cgzi8Ncf.js.map +0 -1
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-Do4sgmMP.js +0 -48
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-Do4sgmMP.js.map +0 -1
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-dIJ51pMK.js +0 -93
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-dIJ51pMK.js.map +0 -1
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-BQzpeqZl.js +0 -3647
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-BQzpeqZl.js.map +0 -1
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CF1JiscX.js +0 -116
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CF1JiscX.js.map +0 -1
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-WusJjTXo.js +0 -249
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-WusJjTXo.js.map +0 -1
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-iUDEwbx8.js +0 -28
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-iUDEwbx8.js.map +0 -1
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-D_a1Hak1.js +0 -173
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-D_a1Hak1.js.map +0 -1
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-5aMpEC3q.js +0 -35
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-5aMpEC3q.js.map +0 -1
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-DKnmuV9T.js +0 -42
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-DKnmuV9T.js.map +0 -1
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-BMq0iQT5.js +0 -616
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-BMq0iQT5.js.map +0 -1
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-BTEZy7vZ.js +0 -62
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-BTEZy7vZ.js.map +0 -1
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-54XTD5D6.js +0 -808
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-54XTD5D6.js.map +0 -1
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-BGtHrxeR.js +0 -60
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-BGtHrxeR.js.map +0 -1
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-Bd1AIYTo.js +0 -425
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-Bd1AIYTo.js.map +0 -1
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js-DtB4LSs7.js +0 -67
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js-DtB4LSs7.js.map +0 -1
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-BcSAiHqK.js +0 -267
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-BcSAiHqK.js.map +0 -1
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-xlN8k3Kq.js +0 -34
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-xlN8k3Kq.js.map +0 -1
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-CgJJK4Sk.js +0 -29
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-CgJJK4Sk.js.map +0 -1
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-ChWstaR7.js +0 -315
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-ChWstaR7.js.map +0 -1
- package/build/server/chunks/entries/pages/team/tokens/_page.server.ts.js-DM-5Qkov.js +0 -65
- package/build/server/chunks/entries/pages/team/tokens/_page.server.ts.js-DM-5Qkov.js.map +0 -1
- package/build/server/chunks/entries/pages/team/tokens/_page.svelte.js-HCEsbHDO.js +0 -734
- package/build/server/chunks/entries/pages/team/tokens/_page.svelte.js-HCEsbHDO.js.map +0 -1
- package/build/server/chunks/handler-B0DH-xhn.js +0 -1206
- package/build/server/chunks/handler-B0DH-xhn.js.map +0 -1
- package/build/server/chunks/index.js-CWaUUtU6.js +0 -3767
- package/build/server/chunks/index.js-CWaUUtU6.js.map +0 -1
- package/build/server/chunks/manifest.js-Bh0EeUFN.js +0 -719
- package/build/server/chunks/manifest.js-Bh0EeUFN.js.map +0 -1
- package/build/server/chunks/nodes/0.js-B3TSYBAw.js +0 -55
- package/build/server/chunks/nodes/0.js-B3TSYBAw.js.map +0 -1
- package/build/server/chunks/nodes/1.js-C-hejKW-.js +0 -9
- package/build/server/chunks/nodes/1.js-C-hejKW-.js.map +0 -1
- package/build/server/chunks/nodes/10.js-B79foRtq.js +0 -34
- package/build/server/chunks/nodes/10.js-B79foRtq.js.map +0 -1
- package/build/server/chunks/nodes/11.js-DyfBVja1.js +0 -38
- package/build/server/chunks/nodes/11.js-DyfBVja1.js.map +0 -1
- package/build/server/chunks/nodes/12.js-CoBCcIKt.js +0 -31
- package/build/server/chunks/nodes/12.js-CoBCcIKt.js.map +0 -1
- package/build/server/chunks/nodes/13.js-CSM3x962.js +0 -31
- package/build/server/chunks/nodes/13.js-CSM3x962.js.map +0 -1
- package/build/server/chunks/nodes/14.js-DgyaD9mS.js +0 -31
- package/build/server/chunks/nodes/14.js-DgyaD9mS.js.map +0 -1
- package/build/server/chunks/nodes/15.js-BF1LV0Wz.js +0 -39
- package/build/server/chunks/nodes/15.js-BF1LV0Wz.js.map +0 -1
- package/build/server/chunks/nodes/16.js-DwCEb7zG.js +0 -34
- package/build/server/chunks/nodes/16.js-DwCEb7zG.js.map +0 -1
- package/build/server/chunks/nodes/17.js-DAi65ZTn.js +0 -9
- package/build/server/chunks/nodes/17.js-DAi65ZTn.js.map +0 -1
- package/build/server/chunks/nodes/18.js-CTDzc6f4.js +0 -40
- package/build/server/chunks/nodes/18.js-CTDzc6f4.js.map +0 -1
- package/build/server/chunks/nodes/19.js-QdcgDrCn.js +0 -25
- package/build/server/chunks/nodes/19.js-QdcgDrCn.js.map +0 -1
- package/build/server/chunks/nodes/2.js-BGsCxeFb.js +0 -34
- package/build/server/chunks/nodes/2.js-BGsCxeFb.js.map +0 -1
- package/build/server/chunks/nodes/20.js-LA_pzpU0.js +0 -24
- package/build/server/chunks/nodes/20.js-LA_pzpU0.js.map +0 -1
- package/build/server/chunks/nodes/21.js-Dov58P2l.js +0 -41
- package/build/server/chunks/nodes/21.js-Dov58P2l.js.map +0 -1
- package/build/server/chunks/nodes/22.js-BbG7roja.js +0 -40
- package/build/server/chunks/nodes/22.js-BbG7roja.js.map +0 -1
- package/build/server/chunks/nodes/23.js-Bu61CBsn.js +0 -37
- package/build/server/chunks/nodes/23.js-Bu61CBsn.js.map +0 -1
- package/build/server/chunks/nodes/24.js-6sXexFfz.js +0 -54
- package/build/server/chunks/nodes/24.js-6sXexFfz.js.map +0 -1
- package/build/server/chunks/nodes/25.js-Bae9OsoK.js +0 -33
- package/build/server/chunks/nodes/25.js-Bae9OsoK.js.map +0 -1
- package/build/server/chunks/nodes/26.js-BsenVIcP.js +0 -40
- package/build/server/chunks/nodes/26.js-BsenVIcP.js.map +0 -1
- package/build/server/chunks/nodes/27.js-EQPfXMPB.js +0 -31
- package/build/server/chunks/nodes/27.js-EQPfXMPB.js.map +0 -1
- package/build/server/chunks/nodes/29.js-CN9flNdW.js +0 -31
- package/build/server/chunks/nodes/29.js-CN9flNdW.js.map +0 -1
- package/build/server/chunks/nodes/3.js-q32okfWL.js +0 -9
- package/build/server/chunks/nodes/3.js-q32okfWL.js.map +0 -1
- package/build/server/chunks/nodes/30.js-Bp98zC0G.js +0 -31
- package/build/server/chunks/nodes/30.js-Bp98zC0G.js.map +0 -1
- package/build/server/chunks/nodes/31.js-DThIABIq.js +0 -34
- package/build/server/chunks/nodes/31.js-DThIABIq.js.map +0 -1
- package/build/server/chunks/nodes/32.js-Bduad25q.js +0 -31
- package/build/server/chunks/nodes/32.js-Bduad25q.js.map +0 -1
- package/build/server/chunks/nodes/33.js-92_2vLOI.js +0 -31
- package/build/server/chunks/nodes/33.js-92_2vLOI.js.map +0 -1
- package/build/server/chunks/nodes/34.js-DLRtoqak.js +0 -31
- package/build/server/chunks/nodes/34.js-DLRtoqak.js.map +0 -1
- package/build/server/chunks/nodes/35.js-Cviw_f6v.js +0 -55
- package/build/server/chunks/nodes/35.js-Cviw_f6v.js.map +0 -1
- package/build/server/chunks/nodes/5.js-CCaq9jRv.js +0 -15
- package/build/server/chunks/nodes/5.js-CCaq9jRv.js.map +0 -1
- package/build/server/chunks/nodes/6.js-DZDvBsNk.js +0 -31
- package/build/server/chunks/nodes/6.js-DZDvBsNk.js.map +0 -1
- package/build/server/chunks/nodes/7.js-CEm3HWTU.js +0 -24
- package/build/server/chunks/nodes/7.js-CEm3HWTU.js.map +0 -1
- package/build/server/chunks/nodes/8.js-DY_xg_n5.js +0 -41
- package/build/server/chunks/nodes/8.js-DY_xg_n5.js.map +0 -1
- package/build/server/chunks/nodes/9.js-CkQRBb4O.js +0 -31
- package/build/server/chunks/nodes/9.js-CkQRBb4O.js.map +0 -1
- /package/build/client/_app/immutable/nodes/{0.B0Ie7GmU.js → 0.BU4RqMN2.js} +0 -0
- /package/build/client/_app/immutable/nodes/{0.B0Ie7GmU.js.br → 0.BU4RqMN2.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{0.B0Ie7GmU.js.gz → 0.BU4RqMN2.js.gz} +0 -0
|
@@ -1,2645 +0,0 @@
|
|
|
1
|
-
//#region ../compute/dist/core-BMeRVFJI.js
|
|
2
|
-
var e = {
|
|
3
|
-
NETWORK_ERROR: `NETWORK_ERROR`,
|
|
4
|
-
AUTH_ERROR: `AUTH_ERROR`,
|
|
5
|
-
VALIDATION_ERROR: `VALIDATION_ERROR`,
|
|
6
|
-
COMPUTATION_ERROR: `COMPUTATION_ERROR`,
|
|
7
|
-
TIMEOUT_ERROR: `TIMEOUT_ERROR`,
|
|
8
|
-
CORS_ERROR: `CORS_ERROR`,
|
|
9
|
-
NOT_FOUND: `NOT_FOUND`,
|
|
10
|
-
RATE_LIMIT: `RATE_LIMIT`,
|
|
11
|
-
INVALID_RESPONSE: `INVALID_RESPONSE`,
|
|
12
|
-
RESPONSE_TOO_LARGE: `RESPONSE_TOO_LARGE`,
|
|
13
|
-
UNKNOWN_ERROR: `UNKNOWN_ERROR`,
|
|
14
|
-
INVALID_STATE: `INVALID_STATE`,
|
|
15
|
-
INVALID_INPUT: `INVALID_INPUT`,
|
|
16
|
-
INVALID_CONFIG: `INVALID_CONFIG`,
|
|
17
|
-
BROWSER_ONLY: `BROWSER_ONLY`,
|
|
18
|
-
ENVIRONMENT_ERROR: `ENVIRONMENT_ERROR`,
|
|
19
|
-
ENCODING_ERROR: `ENCODING_ERROR`,
|
|
20
|
-
MALFORMED_DEFAULT: `MALFORMED_DEFAULT`,
|
|
21
|
-
SUPERSEDED: `SUPERSEDED`,
|
|
22
|
-
ABORTED: `ABORTED`,
|
|
23
|
-
QUEUE_FULL: `QUEUE_FULL`,
|
|
24
|
-
QUEUE_TIMEOUT: `QUEUE_TIMEOUT`,
|
|
25
|
-
DEFINITION_NOT_CACHED: `DEFINITION_NOT_CACHED`
|
|
26
|
-
};
|
|
27
|
-
var t = class extends Error {
|
|
28
|
-
code;
|
|
29
|
-
statusCode;
|
|
30
|
-
context;
|
|
31
|
-
originalError;
|
|
32
|
-
constructor(t, n = e.UNKNOWN_ERROR, r) {
|
|
33
|
-
if (super(t), this.name = `ComputeError`, this.code = n, this.statusCode = r?.statusCode, this.context = r?.context, r?.originalError !== void 0) {
|
|
34
|
-
let e = r.originalError;
|
|
35
|
-
this.originalError = e instanceof Error ? e : Error(String(e)), this.cause = this.originalError;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var n = {
|
|
40
|
-
debug() {},
|
|
41
|
-
info() {},
|
|
42
|
-
warn() {},
|
|
43
|
-
error() {}
|
|
44
|
-
};
|
|
45
|
-
var r = n;
|
|
46
|
-
function i() {
|
|
47
|
-
return r;
|
|
48
|
-
}
|
|
49
|
-
function a(i) {
|
|
50
|
-
if (i === null) {
|
|
51
|
-
r = n;
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
let a = [
|
|
55
|
-
`debug`,
|
|
56
|
-
`info`,
|
|
57
|
-
`warn`,
|
|
58
|
-
`error`
|
|
59
|
-
].filter((e) => typeof i[e] != `function`);
|
|
60
|
-
if (a.length > 0) throw new t(`Logger is missing required method(s): ${a.join(`, `)}. A logger must implement debug, info, warn and error.`, e.INVALID_CONFIG, { context: { missingMethods: a } });
|
|
61
|
-
r = i;
|
|
62
|
-
}
|
|
63
|
-
function o() {
|
|
64
|
-
a(console);
|
|
65
|
-
}
|
|
66
|
-
function s(e, t) {
|
|
67
|
-
if (!e || typeof e != `object`) return;
|
|
68
|
-
if (Object.prototype.hasOwnProperty.call(e, t)) return t;
|
|
69
|
-
let n = t.toLowerCase();
|
|
70
|
-
return Object.keys(e).find((e) => e.toLowerCase() === n);
|
|
71
|
-
}
|
|
72
|
-
function c(e, t) {
|
|
73
|
-
let n = s(e, t);
|
|
74
|
-
return n === void 0 ? void 0 : e[n];
|
|
75
|
-
}
|
|
76
|
-
function l(e, t) {
|
|
77
|
-
return s(e, t) !== void 0;
|
|
78
|
-
}
|
|
79
|
-
function d(n, r) {
|
|
80
|
-
let i = n?.trim() ?? ``;
|
|
81
|
-
if (!i) throw new t(`serverUrl is required`, e.INVALID_CONFIG, { context: { receivedServerUrl: n } });
|
|
82
|
-
let a = (r, a) => new t(`Invalid serverUrl: "${i}". ${r}`, e.INVALID_CONFIG, {
|
|
83
|
-
context: { receivedServerUrl: n },
|
|
84
|
-
originalError: a
|
|
85
|
-
});
|
|
86
|
-
if (!/^https?:\/\//i.test(i)) throw a(`Must start with "http://" or "https://". For example: "http://localhost:6500" or "https://example.com"`);
|
|
87
|
-
let o;
|
|
88
|
-
try {
|
|
89
|
-
o = new URL(i);
|
|
90
|
-
} catch (e) {
|
|
91
|
-
throw a(`Must be a valid URL. Received error: ${e instanceof Error ? e.message : String(e)}`, e);
|
|
92
|
-
}
|
|
93
|
-
if (o.username !== `` || o.password !== ``) throw a(`Must not embed credentials (user:pass@host) — fetch rejects credentialed URLs at request time. Pass the API key separately.`);
|
|
94
|
-
if (i.includes(`?`) || i.includes(`#`)) throw a("Must not contain a query string or fragment — endpoint paths are appended to this URL (e.g. \"${serverUrl}/version\"), and a \"?\" or \"#\" suffix would corrupt every request path.");
|
|
95
|
-
let s = f(o.hostname.toLowerCase(), `.`);
|
|
96
|
-
if ((r?.blockedHosts ?? [`compute.rhino3d.com`]).map((e) => f(e.toLowerCase(), `.`)).includes(s)) throw new t(`serverUrl must be set to your Compute server URL. The shared public endpoint is not allowed.`, e.INVALID_CONFIG, { context: { receivedServerUrl: n } });
|
|
97
|
-
return f(i, `/`);
|
|
98
|
-
}
|
|
99
|
-
function f(e, t) {
|
|
100
|
-
let n = e.length;
|
|
101
|
-
for (; n > 0 && e[n - 1] === t;) n--;
|
|
102
|
-
return e.slice(0, n);
|
|
103
|
-
}
|
|
104
|
-
function p(e, t) {
|
|
105
|
-
return `${t}/${e.replace(/^\/+/, ``)}`;
|
|
106
|
-
}
|
|
107
|
-
function m(e) {
|
|
108
|
-
try {
|
|
109
|
-
let t = new URL(e).hostname.toLowerCase();
|
|
110
|
-
return t === `localhost` || t === `127.0.0.1` || t === `[::1]`;
|
|
111
|
-
} catch {
|
|
112
|
-
return /(localhost|127\.0\.0\.1|\[::1\])/i.test(e);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
var h = /* @__PURE__ */ new Set();
|
|
116
|
-
function g$1(e) {
|
|
117
|
-
return y$1(e.headers, v$1(e));
|
|
118
|
-
}
|
|
119
|
-
function _$1(e, t) {
|
|
120
|
-
let n = y$1(t.headers, {
|
|
121
|
-
...v$1(t),
|
|
122
|
-
"X-Request-ID": e,
|
|
123
|
-
"Content-Type": `application/json`
|
|
124
|
-
});
|
|
125
|
-
return !t.apiKey && !t.authToken && !h.has(t.serverUrl) && !m(t.serverUrl) && (h.add(t.serverUrl), i().warn(`⚠️ [Compute] Request [${e}] targets remote server (${t.serverUrl}) but no API key or auth token is configured. Requests may fail or be rate-limited. (warned once per server)`)), n;
|
|
126
|
-
}
|
|
127
|
-
function v$1(e) {
|
|
128
|
-
return {
|
|
129
|
-
...e.authToken && { Authorization: e.authToken },
|
|
130
|
-
...e.apiKey && { [e.apiKeyHeader ?? `RhinoComputeKey`]: e.apiKey }
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function y$1(e, t) {
|
|
134
|
-
let n = new Set(Object.keys(t).map((e) => e.toLowerCase())), r = Object.entries(e ?? {}).filter(([e]) => !n.has(e.toLowerCase()));
|
|
135
|
-
return {
|
|
136
|
-
...Object.fromEntries(r),
|
|
137
|
-
...t
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function b$1() {
|
|
141
|
-
return `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
|
|
142
|
-
}
|
|
143
|
-
function x$1() {
|
|
144
|
-
let e = globalThis.Buffer;
|
|
145
|
-
return typeof e == `function` ? e : void 0;
|
|
146
|
-
}
|
|
147
|
-
function ee(e) {
|
|
148
|
-
let t = x$1();
|
|
149
|
-
return t ? t.from(e, `utf-8`).toString(`base64`) : T$1(new TextEncoder().encode(e));
|
|
150
|
-
}
|
|
151
|
-
function te(e) {
|
|
152
|
-
let t = S$1(e);
|
|
153
|
-
return t === null || /[^A-Za-z0-9+/]/.test(t) ? null : t;
|
|
154
|
-
}
|
|
155
|
-
function S$1(e) {
|
|
156
|
-
let t = e.replace(/[\t\n\f\r ]/g, ``);
|
|
157
|
-
return t.length % 4 == 0 && (t = t.replace(/={1,2}$/, ``)), t.length % 4 == 1 ? null : t;
|
|
158
|
-
}
|
|
159
|
-
function ne(e) {
|
|
160
|
-
let t = te(e);
|
|
161
|
-
if (t === null || t.length < 64) return null;
|
|
162
|
-
let n = t.length % 4, r = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.indexOf(t.charAt(t.length - 1));
|
|
163
|
-
return n === 2 && r & 15 || n === 3 && r & 3 ? null : n === 0 ? t : t + `==`.slice(0, 4 - n);
|
|
164
|
-
}
|
|
165
|
-
function C$1(n) {
|
|
166
|
-
let r = S$1(n), i = r === null ? null : re(r);
|
|
167
|
-
if (i === null) throw new t(`Invalid base64 input.`, e.ENCODING_ERROR, { context: { inputLength: n.length } });
|
|
168
|
-
return i;
|
|
169
|
-
}
|
|
170
|
-
function re(n) {
|
|
171
|
-
let r = x$1();
|
|
172
|
-
if (r) {
|
|
173
|
-
if (r.byteLength(n, `utf8`) !== n.length || n.includes(`-`) || n.includes(`_`)) return null;
|
|
174
|
-
let e = r.from(n, `base64`);
|
|
175
|
-
return e.length === Math.floor(n.length * 3 / 4) ? e.byteOffset === 0 && e.buffer.byteLength === e.length ? new Uint8Array(e.buffer, 0, e.length) : new Uint8Array(e) : null;
|
|
176
|
-
}
|
|
177
|
-
if (typeof globalThis.atob == `function`) {
|
|
178
|
-
let e;
|
|
179
|
-
try {
|
|
180
|
-
e = globalThis.atob(n);
|
|
181
|
-
} catch {
|
|
182
|
-
return null;
|
|
183
|
-
}
|
|
184
|
-
let t = new Uint8Array(e.length);
|
|
185
|
-
for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n) & 255;
|
|
186
|
-
return t;
|
|
187
|
-
}
|
|
188
|
-
throw new t(`Base64 decoding not supported in this environment.`, e.ENVIRONMENT_ERROR, { context: { environmentInfo: `atob or Buffer not available` } });
|
|
189
|
-
}
|
|
190
|
-
function w$1(e) {
|
|
191
|
-
let t = x$1();
|
|
192
|
-
if (t) return t.byteLength(e, `utf-8`);
|
|
193
|
-
let n = 0;
|
|
194
|
-
for (let t = 0; t < e.length; t++) {
|
|
195
|
-
let r = e.charCodeAt(t);
|
|
196
|
-
r < 128 ? n += 1 : r < 2048 ? n += 2 : r >= 55296 && r <= 56319 && t + 1 < e.length && (e.charCodeAt(t + 1) & 64512) == 56320 ? (n += 4, t++) : n += 3;
|
|
197
|
-
}
|
|
198
|
-
return n;
|
|
199
|
-
}
|
|
200
|
-
function T$1(n) {
|
|
201
|
-
let r = x$1();
|
|
202
|
-
if (r) return r.from(n).toString(`base64`);
|
|
203
|
-
if (typeof globalThis.btoa == `function`) {
|
|
204
|
-
let e = 32766, t = [];
|
|
205
|
-
for (let r = 0; r < n.length; r += e) t.push(globalThis.btoa(String.fromCharCode.apply(null, n.subarray(r, r + e))));
|
|
206
|
-
return t.join(``);
|
|
207
|
-
}
|
|
208
|
-
throw new t(`Base64 encoding not supported in this environment.`, e.ENVIRONMENT_ERROR, { context: { environmentInfo: `btoa or Buffer not available` } });
|
|
209
|
-
}
|
|
210
|
-
var E$1 = 1 << 20;
|
|
211
|
-
async function D$1(e, t = 1 / 0) {
|
|
212
|
-
if (t === 1 / 0) return {
|
|
213
|
-
text: await e.text(),
|
|
214
|
-
truncated: false
|
|
215
|
-
};
|
|
216
|
-
if (!e.body) {
|
|
217
|
-
let n = await e.text();
|
|
218
|
-
return {
|
|
219
|
-
text: n,
|
|
220
|
-
truncated: w$1(n) > t
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
let n = Number(e.headers.get(`Content-Length`));
|
|
224
|
-
if (!e.headers.has(`Content-Encoding`) && n > t) return await e.body.cancel().catch(() => {}), {
|
|
225
|
-
text: ``,
|
|
226
|
-
truncated: true
|
|
227
|
-
};
|
|
228
|
-
let r = e.body.getReader(), i = new TextDecoder(), a = [], o = 0;
|
|
229
|
-
for (;;) {
|
|
230
|
-
let { done: e, value: n } = await r.read();
|
|
231
|
-
if (e) break;
|
|
232
|
-
if (o += n.byteLength, a.push(i.decode(n, { stream: true })), o > t) return await r.cancel().catch(() => {}), {
|
|
233
|
-
text: a.join(``),
|
|
234
|
-
truncated: true
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
return a.push(i.decode()), {
|
|
238
|
-
text: a.join(``),
|
|
239
|
-
truncated: false
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
function ie$1(e) {
|
|
243
|
-
if (!e) return null;
|
|
244
|
-
let t = { raw: e }, n = false;
|
|
245
|
-
for (let r of e.split(`,`)) {
|
|
246
|
-
let [e, ...i] = r.trim().split(`;`), a = i.find((e) => e.trim().toLowerCase().startsWith(`dur`));
|
|
247
|
-
if (!a) continue;
|
|
248
|
-
let o = Number(a.split(`=`)[1]);
|
|
249
|
-
if (!Number.isFinite(o)) continue;
|
|
250
|
-
let s = e.trim().toLowerCase();
|
|
251
|
-
(s === `decode` || s === `solve` || s === `encode`) && (t[s] = o, n = true);
|
|
252
|
-
}
|
|
253
|
-
return n ? t : null;
|
|
254
|
-
}
|
|
255
|
-
function O$1(e, t, n, r) {
|
|
256
|
-
if (!n) return;
|
|
257
|
-
let a = ie$1(e.headers.get(`Server-Timing`));
|
|
258
|
-
if (a) try {
|
|
259
|
-
n(a, t);
|
|
260
|
-
} catch (e) {
|
|
261
|
-
r && i().debug(` onServerTiming callback threw: ${e}`);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function k$1(e) {
|
|
265
|
-
return e instanceof Error && (e.name === `AbortError` || e.name === `TimeoutError`);
|
|
266
|
-
}
|
|
267
|
-
function ae$1(e, t) {
|
|
268
|
-
let n = () => {};
|
|
269
|
-
if (typeof t != `number` || t <= 0) return {
|
|
270
|
-
signal: e,
|
|
271
|
-
cleanup: n
|
|
272
|
-
};
|
|
273
|
-
let r = AbortSignal.timeout(t);
|
|
274
|
-
if (!e) return {
|
|
275
|
-
signal: r,
|
|
276
|
-
cleanup: n
|
|
277
|
-
};
|
|
278
|
-
let i = new AbortController(), a = [e, r], o = function() {
|
|
279
|
-
i.abort(this.reason);
|
|
280
|
-
};
|
|
281
|
-
for (let e of a) {
|
|
282
|
-
if (e.aborted) {
|
|
283
|
-
i.abort(e.reason);
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
e.addEventListener(`abort`, o, { once: true });
|
|
287
|
-
}
|
|
288
|
-
return {
|
|
289
|
-
signal: i.signal,
|
|
290
|
-
cleanup: () => {
|
|
291
|
-
for (let e of a) e.removeEventListener(`abort`, o);
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
var A$1 = /* @__PURE__ */ new WeakMap();
|
|
296
|
-
function j$1(e, t) {
|
|
297
|
-
typeof e == `object` && e && A$1.set(e, t);
|
|
298
|
-
}
|
|
299
|
-
function oe$1(e) {
|
|
300
|
-
if (typeof e == `object` && e) return A$1.get(e);
|
|
301
|
-
}
|
|
302
|
-
var M$1 = 4096;
|
|
303
|
-
function se$1(e) {
|
|
304
|
-
return e.length <= M$1 ? e : `${e.slice(0, M$1)}… [truncated ${e.length - M$1} chars]`;
|
|
305
|
-
}
|
|
306
|
-
function ce$1(n, r, i, a, o) {
|
|
307
|
-
let { status: s, statusText: c } = n, { fullUrl: l, requestId: u, requestSize: d, config: f } = r, p = Object.fromEntries(n.headers.entries()), m = a.trim(), h = m ? ` — ${m.slice(0, 200)}${m.length > 200 ? `…` : ``}` : ``, g = {
|
|
308
|
-
url: l,
|
|
309
|
-
requestId: u,
|
|
310
|
-
method: `POST`,
|
|
311
|
-
requestSize: d,
|
|
312
|
-
serverUrl: f.serverUrl,
|
|
313
|
-
responseBody: i ? se$1(i) : void 0,
|
|
314
|
-
responseHeaders: p
|
|
315
|
-
}, _ = {
|
|
316
|
-
400: {
|
|
317
|
-
message: `Bad request: ${c}${h}`,
|
|
318
|
-
code: e.VALIDATION_ERROR
|
|
319
|
-
},
|
|
320
|
-
401: {
|
|
321
|
-
message: `HTTP ${s}: ${c}${h}`,
|
|
322
|
-
code: e.AUTH_ERROR
|
|
323
|
-
},
|
|
324
|
-
403: {
|
|
325
|
-
message: `HTTP ${s}: ${c}${h}`,
|
|
326
|
-
code: e.AUTH_ERROR
|
|
327
|
-
},
|
|
328
|
-
404: {
|
|
329
|
-
message: `Endpoint not found: ${l}`,
|
|
330
|
-
code: e.NOT_FOUND
|
|
331
|
-
},
|
|
332
|
-
413: {
|
|
333
|
-
message: `Request too large: ${(d / 1024).toFixed(2)}KB`,
|
|
334
|
-
code: e.VALIDATION_ERROR
|
|
335
|
-
},
|
|
336
|
-
429: {
|
|
337
|
-
message: `Rate limit exceeded${h}`,
|
|
338
|
-
code: e.RATE_LIMIT
|
|
339
|
-
},
|
|
340
|
-
500: {
|
|
341
|
-
message: `Server error: ${c}${h}`,
|
|
342
|
-
code: e.COMPUTATION_ERROR
|
|
343
|
-
},
|
|
344
|
-
502: {
|
|
345
|
-
message: `Bad gateway: ${c}${h}`,
|
|
346
|
-
code: e.NETWORK_ERROR
|
|
347
|
-
},
|
|
348
|
-
503: {
|
|
349
|
-
message: `Service unavailable: ${c}${h}`,
|
|
350
|
-
code: e.NETWORK_ERROR
|
|
351
|
-
},
|
|
352
|
-
504: {
|
|
353
|
-
message: `Gateway timeout: ${c}${h}`,
|
|
354
|
-
code: e.NETWORK_ERROR
|
|
355
|
-
}
|
|
356
|
-
}[s] || {
|
|
357
|
-
message: `HTTP ${s}: ${c}${h}`,
|
|
358
|
-
code: e.UNKNOWN_ERROR
|
|
359
|
-
}, v = f.serverErrorCodes, y = o && v && Object.prototype.hasOwnProperty.call(v, o) ? v[o] : void 0;
|
|
360
|
-
throw new t(_.message, y ?? _.code, {
|
|
361
|
-
statusCode: s,
|
|
362
|
-
context: g
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
function N$1(e) {
|
|
366
|
-
return e.type === `opaqueredirect` || e.status >= 300 && e.status < 400;
|
|
367
|
-
}
|
|
368
|
-
function le$1(n, r) {
|
|
369
|
-
let i = n.headers.get(`Location`) ?? void 0;
|
|
370
|
-
return new t(`Server redirected the request${i ? ` to ${i}` : ``}. Redirects are not followed, so credentials never leave serverUrl: set serverUrl to the address it redirects to.`, e.INVALID_CONFIG, {
|
|
371
|
-
...n.status > 0 && { statusCode: n.status },
|
|
372
|
-
context: {
|
|
373
|
-
url: r.fullUrl,
|
|
374
|
-
requestId: r.requestId,
|
|
375
|
-
location: i
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
function P$1(n, r) {
|
|
380
|
-
let { maxResponseBytes: i } = r.config;
|
|
381
|
-
return new t(`Response body exceeded maxResponseBytes (${i} bytes)`, e.RESPONSE_TOO_LARGE, {
|
|
382
|
-
statusCode: n.status,
|
|
383
|
-
context: {
|
|
384
|
-
url: r.fullUrl,
|
|
385
|
-
requestId: r.requestId,
|
|
386
|
-
maxResponseBytes: i
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
async function ue$1(n, r, a) {
|
|
391
|
-
let { requestId: o, config: s } = r, { debug: l, onServerTiming: u, maxResponseBytes: d = 1 / 0 } = s, f = Math.round(performance.now() - a);
|
|
392
|
-
if (N$1(n)) throw await n.body?.cancel().catch(() => {}), le$1(n, r);
|
|
393
|
-
if (!n.ok) {
|
|
394
|
-
let e = n.status === 500, { text: t, truncated: a } = await D$1(n, e ? d : Math.min(E$1, d));
|
|
395
|
-
if (a && e) throw P$1(n, r);
|
|
396
|
-
if (l) {
|
|
397
|
-
let e = i();
|
|
398
|
-
e.debug(`❌ Request [${o}] failed with HTTP ${n.status} in ${f}ms`), e.debug(` URL: ${r.fullUrl}`), e.debug(` Status: ${n.status} ${n.statusText}`), t && e.debug(` Response body: ${t.substring(0, 500)}${t.length > 500 ? `...` : ``}`);
|
|
399
|
-
}
|
|
400
|
-
let s, p = !a;
|
|
401
|
-
if (p) try {
|
|
402
|
-
s = JSON.parse(t);
|
|
403
|
-
} catch (t) {
|
|
404
|
-
p = false, l && e && i().debug(` Failed to parse error body as JSON: ${t}`);
|
|
405
|
-
}
|
|
406
|
-
let m = typeof s?.code == `string` ? s.code : void 0, h = t;
|
|
407
|
-
if (e && p) {
|
|
408
|
-
let e = c(s, `values`), r = c(s, `errors`), a = c(s, `warnings`);
|
|
409
|
-
if (e && (r || a)) {
|
|
410
|
-
if (j$1(s, t.length), l) {
|
|
411
|
-
let e = i();
|
|
412
|
-
e.debug(`⚠️ Request [${o}] completed with solver errors in ${f}ms`), r && r.length > 0 && e.debug(` Errors: ${JSON.stringify(r, null, 2)}`), a && a.length > 0 && e.debug(` Warnings: ${JSON.stringify(a, null, 2)}`);
|
|
413
|
-
}
|
|
414
|
-
return O$1(n, o, u, l), s;
|
|
415
|
-
}
|
|
416
|
-
let d = typeof s?.message == `string` && s.message || typeof s?.Message == `string` && s.Message || ``, p = typeof s?.ExceptionType == `string` && s.ExceptionType || ``, m = s?.stackTrace ?? s?.StackTrace, g = Array.isArray(m) ? m.join(`
|
|
417
|
-
`) : m || ``;
|
|
418
|
-
d ? h = `${p ? `${p}: ` : ``}${d}${g ? `\n${g}` : ``}` : s?.error && (h = typeof s.error == `string` ? s.error : JSON.stringify(s.error, null, 2));
|
|
419
|
-
}
|
|
420
|
-
ce$1(n, r, t, h, m);
|
|
421
|
-
}
|
|
422
|
-
l && i().debug(`✅ Request [${o}] completed in ${f}ms`), O$1(n, o, u, l);
|
|
423
|
-
try {
|
|
424
|
-
let { text: e, truncated: t } = await D$1(n, d);
|
|
425
|
-
if (t) throw P$1(n, r);
|
|
426
|
-
let i = JSON.parse(e);
|
|
427
|
-
return j$1(i, e.length), i;
|
|
428
|
-
} catch (i) {
|
|
429
|
-
if (k$1(i) || i instanceof t) throw i;
|
|
430
|
-
let a = (n.headers.get(`Content-Type`) ?? ``).toLowerCase();
|
|
431
|
-
throw a !== `` && !a.includes(`json`) ? new t(`Server returned a non-JSON response (Content-Type: ${a}) — check the server URL / proxy configuration`, e.INVALID_RESPONSE, {
|
|
432
|
-
statusCode: n.status,
|
|
433
|
-
context: {
|
|
434
|
-
url: r.fullUrl,
|
|
435
|
-
requestId: o,
|
|
436
|
-
contentType: a
|
|
437
|
-
},
|
|
438
|
-
originalError: i
|
|
439
|
-
}) : new t(`Failed to parse JSON response`, e.NETWORK_ERROR, {
|
|
440
|
-
statusCode: n.status,
|
|
441
|
-
context: {
|
|
442
|
-
url: r.fullUrl,
|
|
443
|
-
requestId: o
|
|
444
|
-
},
|
|
445
|
-
originalError: i
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
var F$1 = /ECONNREFUSED|ERR_CONNECTION_REFUSED|connection refused/i;
|
|
450
|
-
var I$1 = /ENOTFOUND|EAI_AGAIN|getaddrinfo|ERR_NAME_NOT_RESOLVED|dns/i;
|
|
451
|
-
var L$1 = /TimeoutError|ETIMEDOUT|ECONNRESET|EHOSTUNREACH|ENETUNREACH|abort|timed? ?out/i;
|
|
452
|
-
function R$1(e) {
|
|
453
|
-
if (e.online) return null;
|
|
454
|
-
if (e.status !== void 0) {
|
|
455
|
-
if (e.status === 401 || e.status === 403) return {
|
|
456
|
-
verdict: `unauthorized`,
|
|
457
|
-
retryable: false,
|
|
458
|
-
summary: `The server rejected the liveness probe with HTTP ${e.status} — check the API key.`
|
|
459
|
-
};
|
|
460
|
-
let t = e.status >= 500;
|
|
461
|
-
return {
|
|
462
|
-
verdict: `http_error`,
|
|
463
|
-
retryable: t,
|
|
464
|
-
summary: t ? `The server answered HTTP ${e.status} — it may still be starting up.` : `The server answered HTTP ${e.status}, which will not change on retry.`
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
let t = e.error ?? ``;
|
|
468
|
-
return F$1.test(t) ? {
|
|
469
|
-
verdict: `refused`,
|
|
470
|
-
retryable: false,
|
|
471
|
-
summary: `Connection refused — the host is reachable but nothing is listening on that port. Rhino.Compute is not running, or the URL names the wrong port.`
|
|
472
|
-
} : I$1.test(t) ? {
|
|
473
|
-
verdict: `dns`,
|
|
474
|
-
retryable: true,
|
|
475
|
-
summary: `The server hostname could not be resolved — check the URL and DNS.`
|
|
476
|
-
} : L$1.test(t) ? {
|
|
477
|
-
verdict: `timeout`,
|
|
478
|
-
retryable: true,
|
|
479
|
-
summary: `No response before the timeout — the machine may be powered off, blocked by a firewall, or still booting.`
|
|
480
|
-
} : {
|
|
481
|
-
verdict: `unknown`,
|
|
482
|
-
retryable: true,
|
|
483
|
-
summary: t ? `The connection failed: ${t}` : `The connection failed.`
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
var z$1 = {
|
|
487
|
-
attempts: 0,
|
|
488
|
-
baseDelayMs: 500,
|
|
489
|
-
maxDelayMs: 3e4,
|
|
490
|
-
retryOn429: true
|
|
491
|
-
};
|
|
492
|
-
var B$1 = /* @__PURE__ */ new Set([
|
|
493
|
-
502,
|
|
494
|
-
503,
|
|
495
|
-
504
|
|
496
|
-
]);
|
|
497
|
-
function V$1(e) {
|
|
498
|
-
return e ? {
|
|
499
|
-
attempts: e.attempts ?? z$1.attempts,
|
|
500
|
-
baseDelayMs: e.baseDelayMs ?? z$1.baseDelayMs,
|
|
501
|
-
maxDelayMs: e.maxDelayMs ?? z$1.maxDelayMs,
|
|
502
|
-
retryOn429: e.retryOn429 ?? z$1.retryOn429
|
|
503
|
-
} : z$1;
|
|
504
|
-
}
|
|
505
|
-
function H$1(e, t) {
|
|
506
|
-
return B$1.has(e) || t.retryOn429 && e === 429;
|
|
507
|
-
}
|
|
508
|
-
function U$1(e, t, n) {
|
|
509
|
-
let r = de$1(e);
|
|
510
|
-
return r === null ? W$1(t, n) : Math.min(r, Math.max(n.maxDelayMs, 6e4));
|
|
511
|
-
}
|
|
512
|
-
function de$1(e) {
|
|
513
|
-
if (!e) return null;
|
|
514
|
-
let t = Number(e);
|
|
515
|
-
if (Number.isFinite(t) && t >= 0) return t * 1e3;
|
|
516
|
-
let n = Date.parse(e);
|
|
517
|
-
if (Number.isFinite(n)) {
|
|
518
|
-
let e = n - Date.now();
|
|
519
|
-
return e > 0 ? e : 0;
|
|
520
|
-
}
|
|
521
|
-
return null;
|
|
522
|
-
}
|
|
523
|
-
function W$1(e, t) {
|
|
524
|
-
let n = t.baseDelayMs * 2 ** e, r = Math.random() * t.baseDelayMs;
|
|
525
|
-
return Math.min(n + r, t.maxDelayMs);
|
|
526
|
-
}
|
|
527
|
-
function fe$1(e, t) {
|
|
528
|
-
return new Promise((n, r) => {
|
|
529
|
-
if (t?.aborted) {
|
|
530
|
-
r(new DOMException(`Aborted`, `AbortError`));
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
let i = setTimeout(() => {
|
|
534
|
-
t?.removeEventListener(`abort`, a), n();
|
|
535
|
-
}, e), a = () => {
|
|
536
|
-
clearTimeout(i), r(new DOMException(`Aborted`, `AbortError`));
|
|
537
|
-
};
|
|
538
|
-
t?.addEventListener(`abort`, a, { once: true });
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
function G$1(n, r) {
|
|
542
|
-
return new t(`Request aborted by caller`, e.ABORTED, {
|
|
543
|
-
context: n.errorContext,
|
|
544
|
-
originalError: r
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
async function pe$1(n, r, i, a) {
|
|
548
|
-
let { signal: o, cleanup: s } = ae$1(n.config.signal, n.config.timeoutMs), c = performance.now();
|
|
549
|
-
try {
|
|
550
|
-
let s = await fetch(n.fullUrl, {
|
|
551
|
-
method: `POST`,
|
|
552
|
-
body: n.body,
|
|
553
|
-
headers: n.headers,
|
|
554
|
-
signal: o,
|
|
555
|
-
redirect: `manual`
|
|
556
|
-
});
|
|
557
|
-
return !a && H$1(s.status, r) ? (await D$1(s, E$1).catch(() => {}), {
|
|
558
|
-
ok: !1,
|
|
559
|
-
retryable: !0,
|
|
560
|
-
delayMs: U$1(s.headers.get(`Retry-After`), i, r),
|
|
561
|
-
cause: new t(`HTTP ${s.status} ${s.statusText} (will retry)`, s.status === 429 ? e.RATE_LIMIT : e.NETWORK_ERROR, {
|
|
562
|
-
statusCode: s.status,
|
|
563
|
-
context: n.errorContext
|
|
564
|
-
})
|
|
565
|
-
}) : {
|
|
566
|
-
ok: !0,
|
|
567
|
-
value: await ue$1(s, n, c)
|
|
568
|
-
};
|
|
569
|
-
} catch (e) {
|
|
570
|
-
return me$1(e, n);
|
|
571
|
-
} finally {
|
|
572
|
-
s();
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
function me$1(n, r) {
|
|
576
|
-
if (k$1(n)) {
|
|
577
|
-
if (r.config.signal?.aborted) return {
|
|
578
|
-
ok: false,
|
|
579
|
-
retryable: false,
|
|
580
|
-
cause: G$1(r, n)
|
|
581
|
-
};
|
|
582
|
-
let { timeoutMs: i } = r.config;
|
|
583
|
-
return {
|
|
584
|
-
ok: false,
|
|
585
|
-
retryable: true,
|
|
586
|
-
cause: typeof i == `number` && i > 0 ? new t(`Request timed out after ${i}ms`, e.TIMEOUT_ERROR, {
|
|
587
|
-
context: {
|
|
588
|
-
...r.errorContext,
|
|
589
|
-
timeoutMs: i
|
|
590
|
-
},
|
|
591
|
-
originalError: n
|
|
592
|
-
}) : new t(`Request aborted by the runtime (${n.name}): ${n.message}`, e.NETWORK_ERROR, {
|
|
593
|
-
context: r.errorContext,
|
|
594
|
-
originalError: n
|
|
595
|
-
})
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
if (n instanceof TypeError) return {
|
|
599
|
-
ok: false,
|
|
600
|
-
retryable: true,
|
|
601
|
-
cause: typeof window < `u` && window.document !== void 0 ? new t(`Request failed: ${n.message} — in a browser this usually means a CORS misconfiguration on the server (or a network failure; the browser does not distinguish them)`, e.CORS_ERROR, {
|
|
602
|
-
context: r.errorContext,
|
|
603
|
-
originalError: n
|
|
604
|
-
}) : new t(`Network error: ${n.message}`, e.NETWORK_ERROR, {
|
|
605
|
-
context: r.errorContext,
|
|
606
|
-
originalError: n
|
|
607
|
-
})
|
|
608
|
-
};
|
|
609
|
-
if (n instanceof t) {
|
|
610
|
-
let t = n.statusCode;
|
|
611
|
-
return {
|
|
612
|
-
ok: false,
|
|
613
|
-
retryable: n.code === e.NETWORK_ERROR && t !== void 0 && t >= 200 && t < 300,
|
|
614
|
-
cause: n
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
return {
|
|
618
|
-
ok: false,
|
|
619
|
-
retryable: false,
|
|
620
|
-
cause: new t(n instanceof Error ? n.message : String(n), e.UNKNOWN_ERROR, {
|
|
621
|
-
context: r.errorContext,
|
|
622
|
-
originalError: n
|
|
623
|
-
})
|
|
624
|
-
};
|
|
625
|
-
}
|
|
626
|
-
async function he$1(n, r, a) {
|
|
627
|
-
let o = b$1(), s;
|
|
628
|
-
try {
|
|
629
|
-
s = JSON.stringify(r);
|
|
630
|
-
} catch (r) {
|
|
631
|
-
throw new t(`Request body is not JSON-serializable: ${r instanceof Error ? r.message : String(r)}`, e.INVALID_INPUT, {
|
|
632
|
-
context: {
|
|
633
|
-
endpoint: n,
|
|
634
|
-
requestId: o
|
|
635
|
-
},
|
|
636
|
-
originalError: r
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
let c = w$1(s), l = d(a.serverUrl, { blockedHosts: [] }), { maxResponseBytes: u } = a;
|
|
640
|
-
if (u !== void 0 && !(u >= 0)) throw new t(`maxResponseBytes must be a number of bytes, got ${u}`, e.INVALID_CONFIG, { context: { maxResponseBytes: u } });
|
|
641
|
-
let f = p(n, l), m = _$1(o, a), h = V$1(a.retry), g = h.attempts + 1;
|
|
642
|
-
if (a.debug) {
|
|
643
|
-
let e = (c / 1024).toFixed(2), t = c > 1e5 ? `⚠️` : `🚀`;
|
|
644
|
-
i().debug(`${t} Starting compute request [${o}]: ${n} (${e}KB)`);
|
|
645
|
-
}
|
|
646
|
-
let v = {
|
|
647
|
-
endpoint: n,
|
|
648
|
-
body: s,
|
|
649
|
-
requestSize: c,
|
|
650
|
-
fullUrl: f,
|
|
651
|
-
requestId: o,
|
|
652
|
-
headers: m,
|
|
653
|
-
config: a,
|
|
654
|
-
errorContext: {
|
|
655
|
-
serverUrl: l,
|
|
656
|
-
url: f,
|
|
657
|
-
endpoint: n,
|
|
658
|
-
requestId: o,
|
|
659
|
-
requestSize: c
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
for (let e = 0;; e++) {
|
|
663
|
-
let t = e >= h.attempts, n = await pe$1(v, h, e, t);
|
|
664
|
-
if (n.ok) return n.value;
|
|
665
|
-
if (t || !n.retryable) throw n.cause;
|
|
666
|
-
let r = n.delayMs ?? W$1(e, h);
|
|
667
|
-
a.debug && i().debug(`🔁 Request [${o}] retrying after ${r}ms (attempt ${e + 2}/${g}): ${n.cause.message}`);
|
|
668
|
-
try {
|
|
669
|
-
await fe$1(r, a.signal);
|
|
670
|
-
} catch {
|
|
671
|
-
throw G$1(v, n.cause);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
function ge$1(e) {
|
|
676
|
-
return typeof e == `object` && !(e instanceof Uint8Array) && typeof e.key == `string` && typeof e.load == `function`;
|
|
677
|
-
}
|
|
678
|
-
function _e$1(e) {
|
|
679
|
-
return typeof e == `string` && /^https?:\/\//i.test(e);
|
|
680
|
-
}
|
|
681
|
-
var K$1 = (e) => (e ?? ``).replace(/::/g, `/`).replace(/\\/g, `/`).split(`/`).map((e) => e.trim()).filter((e) => e !== ``);
|
|
682
|
-
var ve$1 = (e) => K$1(e.subFolder)[0] ?? ``;
|
|
683
|
-
var ye$1 = (e) => K$1(e.subFolder).slice(1).join(`/`);
|
|
684
|
-
var q$1 = (e) => {
|
|
685
|
-
let t = /* @__PURE__ */ new Map();
|
|
686
|
-
for (let n of e) {
|
|
687
|
-
let e = ve$1(n), r = t.get(e);
|
|
688
|
-
r ? r.push(n) : t.set(e, [n]);
|
|
689
|
-
}
|
|
690
|
-
return Array.from(t, ([e, t]) => ({
|
|
691
|
-
root: e,
|
|
692
|
-
files: t
|
|
693
|
-
}));
|
|
694
|
-
};
|
|
695
|
-
var be$1 = (e) => {
|
|
696
|
-
let t = e.replace(/[/\\:*?"<>|]/g, `_`).replace(/\s+/g, ` `).trim().replace(/^\.+/, ``);
|
|
697
|
-
return t === `` ? `files` : t;
|
|
698
|
-
};
|
|
699
|
-
var J$1 = async (e, t = null) => {
|
|
700
|
-
let n = xe$1(e);
|
|
701
|
-
if (t) {
|
|
702
|
-
let e = Array.isArray(t) ? t : [t];
|
|
703
|
-
n.push(...await Se$1(e));
|
|
704
|
-
}
|
|
705
|
-
let r = /* @__PURE__ */ new Set();
|
|
706
|
-
return n.map((e) => {
|
|
707
|
-
let t = $$1(e.path, r);
|
|
708
|
-
return r.add(t), t === e.path ? e : (i().warn(`Duplicate archive path "${e.path}" — storing as "${t}".`), {
|
|
709
|
-
...e,
|
|
710
|
-
path: t,
|
|
711
|
-
fileName: t.slice(t.lastIndexOf(`/`) + 1)
|
|
712
|
-
});
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
var Y$1 = async (n, r, i = null) => {
|
|
716
|
-
if (typeof document > `u` || typeof Blob > `u`) throw new t(`File download functionality is only available in browser environments. This function requires the DOM API (document, Blob).`, e.BROWSER_ONLY, { context: {
|
|
717
|
-
environment: typeof window < `u` ? `browser (SSR)` : `Node.js`,
|
|
718
|
-
documentAvailable: typeof document < `u`,
|
|
719
|
-
blobAvailable: typeof Blob < `u`
|
|
720
|
-
} });
|
|
721
|
-
try {
|
|
722
|
-
await Ce$1(await J$1(n, i), r);
|
|
723
|
-
} catch (n) {
|
|
724
|
-
throw n instanceof t ? n : new t(`Failed to download files from compute response`, e.INVALID_STATE, {
|
|
725
|
-
context: { originalError: n instanceof Error ? n.message : String(n) },
|
|
726
|
-
originalError: n
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
var X$1 = async (e, t, n = null) => {
|
|
731
|
-
let r = q$1(e);
|
|
732
|
-
if (r.length === 0) {
|
|
733
|
-
await Y$1([], t, n);
|
|
734
|
-
return;
|
|
735
|
-
}
|
|
736
|
-
let i = (r.find((e) => e.root === ``) ?? r[0]).root;
|
|
737
|
-
for (let { root: e, files: a } of r) await Y$1(e === `` ? a : a.map((e) => ({
|
|
738
|
-
...e,
|
|
739
|
-
subFolder: ye$1(e)
|
|
740
|
-
})), e === `` ? t : be$1(e), e === i ? n : null);
|
|
741
|
-
};
|
|
742
|
-
var Z$1 = (e) => K$1(e).filter((e) => e !== `.` && e !== `..` && !/^[a-zA-Z]:$/.test(e)).join(`/`);
|
|
743
|
-
var Q$1 = (e) => e === true || typeof e == `string` && e.trim().toLowerCase() === `true`;
|
|
744
|
-
var xe$1 = (e) => {
|
|
745
|
-
let t = [];
|
|
746
|
-
return e.forEach((e) => {
|
|
747
|
-
let n = c(e, `fileName`) ?? ``, r = c(e, `fileType`) ?? ``, a = Z$1(`${n}${r}`);
|
|
748
|
-
if (a === ``) {
|
|
749
|
-
i().warn(`Skipping file with unusable name "${n}${r}": no safe archive path remains after sanitization.`);
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
let o = c(e, `subFolder`), s = o ? Z$1(o) : ``, l = s === `` ? a : `${s}/${a}`, u = c(e, `data`);
|
|
753
|
-
if (typeof u != `string` || u === ``) {
|
|
754
|
-
i().warn(`Skipping file "${l}": item carries no usable data.`);
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
let d = c(e, `metadata`);
|
|
758
|
-
if (Q$1(c(e, `isBase64Encoded`))) try {
|
|
759
|
-
t.push({
|
|
760
|
-
fileName: a,
|
|
761
|
-
content: C$1(u),
|
|
762
|
-
path: l,
|
|
763
|
-
subFolder: s,
|
|
764
|
-
...d ? { metadata: d } : {}
|
|
765
|
-
});
|
|
766
|
-
} catch (e) {
|
|
767
|
-
i().warn(`Skipping file "${l}": base64 decode failed.`, e);
|
|
768
|
-
}
|
|
769
|
-
else t.push({
|
|
770
|
-
fileName: a,
|
|
771
|
-
content: u,
|
|
772
|
-
path: l,
|
|
773
|
-
subFolder: s,
|
|
774
|
-
...d ? { metadata: d } : {}
|
|
775
|
-
});
|
|
776
|
-
}), t;
|
|
777
|
-
};
|
|
778
|
-
var Se$1 = async (e) => (await Promise.all(e.map(async (e) => {
|
|
779
|
-
try {
|
|
780
|
-
let t = await fetch(e.filePath, { signal: AbortSignal.timeout(3e4) });
|
|
781
|
-
if (!t.ok) return i().warn(`Failed to fetch additional file from URL: ${e.filePath}`), null;
|
|
782
|
-
let n = await t.arrayBuffer(), r = Z$1(e.fileName);
|
|
783
|
-
if (r === ``) return i().warn(`Skipping fetched file with unusable name: ${e.fileName}`), null;
|
|
784
|
-
let a = e.subFolder ? Z$1(e.subFolder) : ``;
|
|
785
|
-
return {
|
|
786
|
-
fileName: r,
|
|
787
|
-
content: new Uint8Array(n),
|
|
788
|
-
path: a === `` ? r : `${a}/${r}`,
|
|
789
|
-
subFolder: a
|
|
790
|
-
};
|
|
791
|
-
} catch (t) {
|
|
792
|
-
return i().error(`Error fetching additional file from URL: ${e.filePath}`, t), null;
|
|
793
|
-
}
|
|
794
|
-
}))).filter((e) => e !== null);
|
|
795
|
-
async function Ce$1(e, t) {
|
|
796
|
-
let { zip: n, strToU8: r } = await import('./esm.js-Dzxc7OGH.js'), i = new Set(e.map((e) => e.path)), a = {};
|
|
797
|
-
for (let t of e) {
|
|
798
|
-
let e = t.path === `__proto__` ? $$1(t.path, i) : t.path;
|
|
799
|
-
i.add(e), a[e] = typeof t.content == `string` ? r(t.content) : t.content;
|
|
800
|
-
}
|
|
801
|
-
let o = await new Promise((e, t) => {
|
|
802
|
-
n(a, { level: 6 }, (n, r) => n ? t(n) : e(r));
|
|
803
|
-
});
|
|
804
|
-
we$1(new Blob([o], { type: `application/zip` }), `${t}.zip`);
|
|
805
|
-
}
|
|
806
|
-
function $$1(e, t) {
|
|
807
|
-
if (!t.has(e)) return e;
|
|
808
|
-
let n = e.lastIndexOf(`/`), r = e.lastIndexOf(`.`), i = r > n ? r : e.length, a = e.slice(0, i), o = e.slice(i);
|
|
809
|
-
for (let e = 2;; e++) {
|
|
810
|
-
let n = `${a}-${e}${o}`;
|
|
811
|
-
if (!t.has(n)) return n;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function we$1(e, t) {
|
|
815
|
-
let n = URL.createObjectURL(e), r = document.createElement(`a`);
|
|
816
|
-
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 1e4);
|
|
817
|
-
}
|
|
818
|
-
//#endregion
|
|
819
|
-
//#region ../compute/dist/grasshopper.js
|
|
820
|
-
var g = class e$1 {
|
|
821
|
-
serverUrl;
|
|
822
|
-
headers;
|
|
823
|
-
disposed = false;
|
|
824
|
-
activeMonitors = /* @__PURE__ */ new Set();
|
|
825
|
-
static DEFAULT_TIMEOUT_MS = 5e3;
|
|
826
|
-
static LIFECYCLE_TIMEOUT_MS = 6e4;
|
|
827
|
-
static MIN_MONITOR_INTERVAL_MS = 100;
|
|
828
|
-
static MAX_BODY_BYTES = 1 << 20;
|
|
829
|
-
constructor(e, t) {
|
|
830
|
-
this.serverUrl = d(e), this.headers = {
|
|
831
|
-
...g$1(typeof t == `string` ? { apiKey: t } : t ?? {}),
|
|
832
|
-
"Content-Type": `application/json`
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
fetchWithTimeout(t, n = {}, r = e$1.DEFAULT_TIMEOUT_MS) {
|
|
836
|
-
let i = {
|
|
837
|
-
...n,
|
|
838
|
-
headers: this.headers,
|
|
839
|
-
redirect: `manual`
|
|
840
|
-
};
|
|
841
|
-
return r > 0 && !i.signal && (i.signal = AbortSignal.timeout(r)), fetch(t, i);
|
|
842
|
-
}
|
|
843
|
-
async getText(t, n = {}, r = e$1.DEFAULT_TIMEOUT_MS) {
|
|
844
|
-
this.ensureNotDisposed();
|
|
845
|
-
let a = `${n.method ?? `GET`} ${t}`;
|
|
846
|
-
try {
|
|
847
|
-
let o = await this.fetchWithTimeout(`${this.serverUrl}${t}`, n, r);
|
|
848
|
-
if (!o.ok) return i().warn(`[ComputeServerStats] ${a} failed:`, o.status), await o.body?.cancel().catch(() => {}), null;
|
|
849
|
-
let { text: s, truncated: c } = await D$1(o, e$1.MAX_BODY_BYTES);
|
|
850
|
-
return c ? (i().warn(`[ComputeServerStats] ${a} answered with an oversized body`), null) : s;
|
|
851
|
-
} catch (e) {
|
|
852
|
-
return i().warn(`[ComputeServerStats] ${a} errored:`, e), null;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
async isServerOnline(t = e$1.DEFAULT_TIMEOUT_MS) {
|
|
856
|
-
return (await this.probeServer(t)).online;
|
|
857
|
-
}
|
|
858
|
-
async probeServer(t = e$1.DEFAULT_TIMEOUT_MS) {
|
|
859
|
-
this.ensureNotDisposed();
|
|
860
|
-
let n = `${this.serverUrl}/`;
|
|
861
|
-
try {
|
|
862
|
-
let e = await this.fetchWithTimeout(n, { method: `GET` }, t);
|
|
863
|
-
return await e.body?.cancel().catch(() => {}), {
|
|
864
|
-
online: e.ok || N$1(e),
|
|
865
|
-
status: e.status
|
|
866
|
-
};
|
|
867
|
-
} catch (e) {
|
|
868
|
-
return i().debug(`[ComputeServerStats] Fetch error:`, e), {
|
|
869
|
-
online: false,
|
|
870
|
-
error: e instanceof Error ? `${e.name}: ${e.message}` : String(e)
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
async getActiveChildren(t = {}) {
|
|
875
|
-
let { initialize: n = true } = t, r = n ? await this.getText(`/activechildren`, {}, e$1.LIFECYCLE_TIMEOUT_MS) : await this.getText(`/activechildren?initialize=false`);
|
|
876
|
-
if (r === null) return null;
|
|
877
|
-
let a = r.trim();
|
|
878
|
-
return /^\d+$/.test(a) ? parseInt(a, 10) : (i().warn(`[ComputeServerStats] /activechildren answered with a non-numeric body`), null);
|
|
879
|
-
}
|
|
880
|
-
async getVersion() {
|
|
881
|
-
let e = await this.getText(`/version`);
|
|
882
|
-
if (e === null) return null;
|
|
883
|
-
let t = _(e);
|
|
884
|
-
return t == null ? {
|
|
885
|
-
rhino: e,
|
|
886
|
-
compute: ``,
|
|
887
|
-
git_sha: null
|
|
888
|
-
} : {
|
|
889
|
-
rhino: t.rhino ?? ``,
|
|
890
|
-
compute: t.compute ?? ``,
|
|
891
|
-
git_sha: t.git_sha ?? null
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
async getInstalledPlugins(e = `gh`) {
|
|
895
|
-
let t = await this.getText(`/plugins/${e}/installed`), n = t === null ? void 0 : _(t);
|
|
896
|
-
return n && typeof n == `object` ? n : null;
|
|
897
|
-
}
|
|
898
|
-
async getServerStats() {
|
|
899
|
-
if (this.ensureNotDisposed(), !await this.isServerOnline()) return { isOnline: false };
|
|
900
|
-
let [e, t] = await Promise.all([this.getVersion(), this.getActiveChildren({ initialize: false })]);
|
|
901
|
-
return {
|
|
902
|
-
isOnline: true,
|
|
903
|
-
...e && { version: e },
|
|
904
|
-
...t !== null && { activeChildren: t }
|
|
905
|
-
};
|
|
906
|
-
}
|
|
907
|
-
async purgeCache() {
|
|
908
|
-
let e = await this.getText(`/cache/purge`, { method: `POST` }), t = (e === null ? void 0 : _(e))?.purged;
|
|
909
|
-
return typeof t == `number` ? t : null;
|
|
910
|
-
}
|
|
911
|
-
async purgeAllChildren() {
|
|
912
|
-
this.ensureNotDisposed();
|
|
913
|
-
let e = await this.getActiveChildren({ initialize: false });
|
|
914
|
-
if (e === null) return i().warn(`[ComputeServerStats] purgeAllChildren: could not read child count`), null;
|
|
915
|
-
if (e === 0) return {
|
|
916
|
-
totalPurged: 0,
|
|
917
|
-
calls: 0,
|
|
918
|
-
children: 0,
|
|
919
|
-
confident: true
|
|
920
|
-
};
|
|
921
|
-
let t = e * 2, n = 0;
|
|
922
|
-
for (let e = 0; e < t; e++) {
|
|
923
|
-
let e = await this.purgeCache();
|
|
924
|
-
e !== null && (n += e);
|
|
925
|
-
}
|
|
926
|
-
return {
|
|
927
|
-
totalPurged: n,
|
|
928
|
-
calls: t,
|
|
929
|
-
children: e,
|
|
930
|
-
confident: e === 1
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
async getServerTime() {
|
|
934
|
-
let e = await this.getText(`/servertime`);
|
|
935
|
-
if (e === null) return null;
|
|
936
|
-
let t = new Date(e.trim().replace(/^"|"$/g, ``));
|
|
937
|
-
return isNaN(t.getTime()) ? null : t;
|
|
938
|
-
}
|
|
939
|
-
async getIdleSpan() {
|
|
940
|
-
let e = await this.getText(`/idlespan`);
|
|
941
|
-
if (e === null) return null;
|
|
942
|
-
let t = parseFloat(e.trim());
|
|
943
|
-
return isNaN(t) ? null : t;
|
|
944
|
-
}
|
|
945
|
-
async launchChildren() {
|
|
946
|
-
return this.postJson(`/launch-children`);
|
|
947
|
-
}
|
|
948
|
-
async launchChild(e) {
|
|
949
|
-
let t = e === void 0 ? `/launch-child` : `/launch-child?port=${e}`;
|
|
950
|
-
return this.postJson(t);
|
|
951
|
-
}
|
|
952
|
-
async shutdownChildren(e) {
|
|
953
|
-
let t = e === void 0 ? `/shutdown-children` : `/shutdown-children?port=${e}`;
|
|
954
|
-
return this.postJson(t);
|
|
955
|
-
}
|
|
956
|
-
async recycleChildren(e) {
|
|
957
|
-
let t = e === void 0 ? `/recycle-children` : `/recycle-children?port=${e}`;
|
|
958
|
-
return this.postJson(t);
|
|
959
|
-
}
|
|
960
|
-
async postJson(t) {
|
|
961
|
-
let n = await this.getText(t, { method: `POST` }, e$1.LIFECYCLE_TIMEOUT_MS);
|
|
962
|
-
return n === null ? null : _(n) ?? null;
|
|
963
|
-
}
|
|
964
|
-
monitor(r, a = 5e3) {
|
|
965
|
-
if (this.ensureNotDisposed(), !Number.isFinite(a) || a < e$1.MIN_MONITOR_INTERVAL_MS) throw new t(`monitor() intervalMs must be a finite number >= ${e$1.MIN_MONITOR_INTERVAL_MS}ms, got ${a}. Sub-${e$1.MIN_MONITOR_INTERVAL_MS}ms polling would hot-loop the server.`, e.INVALID_CONFIG, { context: { intervalMs: a } });
|
|
966
|
-
let o = true, s = null;
|
|
967
|
-
i().info(`🔄 Starting server stats monitoring every ${a}ms`);
|
|
968
|
-
let c = async () => {
|
|
969
|
-
if (s = null, o && !this.disposed) {
|
|
970
|
-
try {
|
|
971
|
-
let e = await this.getServerStats();
|
|
972
|
-
if (!o || this.disposed) return;
|
|
973
|
-
try {
|
|
974
|
-
r(e);
|
|
975
|
-
} catch (e) {
|
|
976
|
-
i().error(`[ComputeServerStats] Monitor callback threw:`, e);
|
|
977
|
-
}
|
|
978
|
-
} catch (e) {
|
|
979
|
-
!o || this.disposed ? i().debug(`[ComputeServerStats] Monitor poll cancelled during shutdown:`, e) : i().error(`[ComputeServerStats] Failed to fetch stats during monitor:`, e);
|
|
980
|
-
}
|
|
981
|
-
o && !this.disposed && (s = setTimeout(() => void c(), a));
|
|
982
|
-
}
|
|
983
|
-
}, l = () => {
|
|
984
|
-
o = false, s !== null && (clearTimeout(s), s = null), this.activeMonitors.delete(l);
|
|
985
|
-
};
|
|
986
|
-
return this.activeMonitors.add(l), c(), l;
|
|
987
|
-
}
|
|
988
|
-
async dispose() {
|
|
989
|
-
if (!this.disposed) {
|
|
990
|
-
this.disposed = true;
|
|
991
|
-
for (let e of this.activeMonitors) e();
|
|
992
|
-
this.activeMonitors.clear();
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
ensureNotDisposed() {
|
|
996
|
-
if (this.disposed) throw new t(`ComputeServerStats has been disposed and cannot be used`, e.INVALID_STATE);
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
function _(e) {
|
|
1000
|
-
try {
|
|
1001
|
-
return JSON.parse(e);
|
|
1002
|
-
} catch {
|
|
1003
|
-
return;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
var v = /* @__PURE__ */ new Set();
|
|
1007
|
-
function ie() {
|
|
1008
|
-
if (typeof window > `u` || globalThis.process?.versions?.node != null) return false;
|
|
1009
|
-
let e = globalThis.navigator, t = typeof e?.userAgent == `string` ? e.userAgent : ``;
|
|
1010
|
-
return !/jsdom/i.test(t);
|
|
1011
|
-
}
|
|
1012
|
-
function y(e, t) {
|
|
1013
|
-
t || ie() && !v.has(e) && (v.add(e), i().warn(`Warning: ${e} is running on the client side. For better performance and security, consider running this on the server side.`));
|
|
1014
|
-
}
|
|
1015
|
-
var ae = { definition_not_cached: e.DEFINITION_NOT_CACHED };
|
|
1016
|
-
function oe(e) {
|
|
1017
|
-
return {
|
|
1018
|
-
...e,
|
|
1019
|
-
serverErrorCodes: {
|
|
1020
|
-
...ae,
|
|
1021
|
-
...e.serverErrorCodes
|
|
1022
|
-
}
|
|
1023
|
-
};
|
|
1024
|
-
}
|
|
1025
|
-
function se(e$2) {
|
|
1026
|
-
return e$2 instanceof t ? e$2.code === e.DEFINITION_NOT_CACHED || e$2.message.includes(`Unable to load grasshopper definition`) : false;
|
|
1027
|
-
}
|
|
1028
|
-
function ce(t, n) {
|
|
1029
|
-
if (!n) return;
|
|
1030
|
-
let r = c(t, `values`);
|
|
1031
|
-
if (!Array.isArray(r) || r.length === 0) return;
|
|
1032
|
-
let a = [];
|
|
1033
|
-
for (let t of r) {
|
|
1034
|
-
let n = c(t, `innerTree`);
|
|
1035
|
-
(!n || Object.keys(n).length === 0) && a.push(c(t, `paramName`) ?? `<unnamed>`);
|
|
1036
|
-
}
|
|
1037
|
-
if (a.length === 0) return;
|
|
1038
|
-
let o = a.length === r.length ? `all` : `${a.length}/${r.length}`;
|
|
1039
|
-
i().warn(`Solve returned empty output(s) (${o}): ${a.join(`, `)}. These parameters produced no data — check the definition's inputs and the branch feeding each.`);
|
|
1040
|
-
}
|
|
1041
|
-
async function le(e, t, n) {
|
|
1042
|
-
return y(`solveGrasshopperDefinition`, n.suppressBrowserWarning), (await de(e, t, n)).response;
|
|
1043
|
-
}
|
|
1044
|
-
async function ue(e, t, n, r) {
|
|
1045
|
-
if (y(`solveWithServerCacheKey`, r.suppressBrowserWarning), t !== null) try {
|
|
1046
|
-
return {
|
|
1047
|
-
...await pe({
|
|
1048
|
-
algo: null,
|
|
1049
|
-
pointer: t,
|
|
1050
|
-
values: e
|
|
1051
|
-
}, r),
|
|
1052
|
-
missed: !1
|
|
1053
|
-
};
|
|
1054
|
-
} catch (e) {
|
|
1055
|
-
if (!se(e)) throw e;
|
|
1056
|
-
}
|
|
1057
|
-
return {
|
|
1058
|
-
...await de(e, n, r),
|
|
1059
|
-
missed: true
|
|
1060
|
-
};
|
|
1061
|
-
}
|
|
1062
|
-
async function de(e, t, n) {
|
|
1063
|
-
return pe(b(await fe(t), e), n);
|
|
1064
|
-
}
|
|
1065
|
-
async function fe(e$3) {
|
|
1066
|
-
if (!ge$1(e$3)) return e$3;
|
|
1067
|
-
try {
|
|
1068
|
-
return await e$3.load();
|
|
1069
|
-
} catch (r) {
|
|
1070
|
-
throw new t(`Failed to load definition bytes for ref '${e$3.key}'`, e.INVALID_INPUT, {
|
|
1071
|
-
context: { definitionKey: e$3.key },
|
|
1072
|
-
originalError: r
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
async function pe(e, t) {
|
|
1077
|
-
d(t.serverUrl), me(e, t);
|
|
1078
|
-
let { maxResponseBytes: n } = t, r = await he$1(`grasshopper`, e, oe({
|
|
1079
|
-
...t,
|
|
1080
|
-
maxResponseBytes: n !== void 0 && e.algo ? n + e.algo.length : n
|
|
1081
|
-
})), { pointer: i, algo: a, ...o } = r, s = o, l = oe$1(r);
|
|
1082
|
-
if (l !== void 0) {
|
|
1083
|
-
let e = typeof a == `string` ? a.length : 0;
|
|
1084
|
-
j$1(s, Math.max(0, l - e));
|
|
1085
|
-
}
|
|
1086
|
-
return ce(s, t.debug), {
|
|
1087
|
-
response: s,
|
|
1088
|
-
cacheKey: typeof i == `string` ? i : null
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
function b(e, t) {
|
|
1092
|
-
let n = {
|
|
1093
|
-
algo: null,
|
|
1094
|
-
pointer: null,
|
|
1095
|
-
values: t
|
|
1096
|
-
};
|
|
1097
|
-
return e instanceof Uint8Array ? n.algo = T$1(e) : _e$1(e) ? n.pointer = e : n.algo = ne(e) ?? ee(e), n;
|
|
1098
|
-
}
|
|
1099
|
-
function me(e, t) {
|
|
1100
|
-
t.cachesolve != null && (e.cachesolve = t.cachesolve), t.cacheerroredsolves != null && (e.cacheerroredsolves = t.cacheerroredsolves), t.modelunits != null && (e.modelunits = t.modelunits), t.angletolerance != null && (e.angletolerance = t.angletolerance), t.absolutetolerance != null && (e.absolutetolerance = t.absolutetolerance), t.dataversion != null && (e.dataversion = t.dataversion), t.selvaevents != null && (e.selvaevents = t.selvaevents);
|
|
1101
|
-
}
|
|
1102
|
-
function x(e, t, n) {
|
|
1103
|
-
t === `__proto__` ? Object.defineProperty(e, t, {
|
|
1104
|
-
value: n,
|
|
1105
|
-
writable: true,
|
|
1106
|
-
enumerable: true,
|
|
1107
|
-
configurable: true
|
|
1108
|
-
}) : e[t] = n;
|
|
1109
|
-
}
|
|
1110
|
-
var S = /^\{(-?\d+(?:;-?\d+)*)?\}$/;
|
|
1111
|
-
function C(e) {
|
|
1112
|
-
if (typeof e != `object` || !e || Array.isArray(e)) return false;
|
|
1113
|
-
let t = Object.entries(e);
|
|
1114
|
-
return t.length > 0 && t.every(([e, t]) => S.test(e) && Array.isArray(t));
|
|
1115
|
-
}
|
|
1116
|
-
function w(e, t, n) {
|
|
1117
|
-
if (e == null) return e;
|
|
1118
|
-
if (Array.isArray(e)) {
|
|
1119
|
-
let n = e.map(t).filter((e) => e !== null);
|
|
1120
|
-
return n.length > 0 ? n : void 0;
|
|
1121
|
-
}
|
|
1122
|
-
let r = t(e);
|
|
1123
|
-
return r === null ? n ? void 0 : e : r;
|
|
1124
|
-
}
|
|
1125
|
-
var T = (e) => {
|
|
1126
|
-
if (typeof e == `number`) return Number.isFinite(e) ? e : null;
|
|
1127
|
-
if (typeof e == `string`) {
|
|
1128
|
-
let t = e.trim();
|
|
1129
|
-
if (t === `` || /^[+-]?0[xbo]/i.test(t)) return null;
|
|
1130
|
-
let n = Number(t);
|
|
1131
|
-
return Number.isFinite(n) ? n : null;
|
|
1132
|
-
}
|
|
1133
|
-
return null;
|
|
1134
|
-
};
|
|
1135
|
-
var E = (e) => {
|
|
1136
|
-
if (typeof e == `boolean`) return e;
|
|
1137
|
-
if (typeof e == `string`) {
|
|
1138
|
-
let t = e.trim().toLowerCase();
|
|
1139
|
-
if (t === `true`) return true;
|
|
1140
|
-
if (t === `false`) return false;
|
|
1141
|
-
}
|
|
1142
|
-
return null;
|
|
1143
|
-
};
|
|
1144
|
-
var he = (e) => typeof e == `string` ? e.length >= 2 && e.startsWith(`"`) && e.endsWith(`"`) ? e.slice(1, -1) : e.startsWith(`"`) ? e.slice(1) : e : null;
|
|
1145
|
-
var ge = (e) => {
|
|
1146
|
-
if (typeof e == `string`) {
|
|
1147
|
-
let t = e.trim();
|
|
1148
|
-
return t.startsWith(`"`) && t.endsWith(`"`) && (t = t.slice(1, -1).trim()), t;
|
|
1149
|
-
}
|
|
1150
|
-
return null;
|
|
1151
|
-
};
|
|
1152
|
-
function D(e) {
|
|
1153
|
-
return (t) => {
|
|
1154
|
-
if (typeof t == `object` && t) return t;
|
|
1155
|
-
if (typeof t == `string` && t.trim() !== ``) try {
|
|
1156
|
-
let n = JSON.parse(t);
|
|
1157
|
-
return typeof n == `object` && n ? n : (i().warn(`Parsed value for input ${e} is not an object`), null);
|
|
1158
|
-
} catch (n) {
|
|
1159
|
-
return i().warn(`Failed to parse object value "${t}" for input ${e}`, n), null;
|
|
1160
|
-
}
|
|
1161
|
-
return null;
|
|
1162
|
-
};
|
|
1163
|
-
}
|
|
1164
|
-
var _e = /* @__PURE__ */ new Set([
|
|
1165
|
-
`System.Double`,
|
|
1166
|
-
`System.Single`,
|
|
1167
|
-
`System.Decimal`,
|
|
1168
|
-
`System.Int32`,
|
|
1169
|
-
`System.Int64`
|
|
1170
|
-
]);
|
|
1171
|
-
var ve = /* @__PURE__ */ new Set([`System.Int32`, `System.Int64`]);
|
|
1172
|
-
function O(e$4, t) {
|
|
1173
|
-
return i().warn(t), {
|
|
1174
|
-
schema: {
|
|
1175
|
-
...e$4,
|
|
1176
|
-
default: null
|
|
1177
|
-
},
|
|
1178
|
-
warning: {
|
|
1179
|
-
code: e.MALFORMED_DEFAULT,
|
|
1180
|
-
message: t
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
}
|
|
1184
|
-
function ye(t, a) {
|
|
1185
|
-
if (typeof t.default != `object` || t.default === null || Array.isArray(t.default) || C(t.default)) return { schema: t };
|
|
1186
|
-
if (!l(t.default, `innerTree`)) return O(t, `Input "${a}" default had an unrecognized shape (no innerTree key); the default was dropped.`);
|
|
1187
|
-
let o = c(t.default, `innerTree`) ?? {};
|
|
1188
|
-
if (Object.keys(o).length === 0) return { schema: {
|
|
1189
|
-
...t,
|
|
1190
|
-
default: void 0
|
|
1191
|
-
} };
|
|
1192
|
-
if (t.treeAccess || t.atMost && t.atMost > 1) {
|
|
1193
|
-
let r = {}, s = [];
|
|
1194
|
-
for (let [n, i] of Object.entries(o)) {
|
|
1195
|
-
if (!Array.isArray(i)) return O(t, `Input "${a}" default had a non-array innerTree branch ("${n}"); the default was dropped.`);
|
|
1196
|
-
let o = [];
|
|
1197
|
-
for (let t of i) {
|
|
1198
|
-
let n = c(t, `data`), r = c(t, `type`);
|
|
1199
|
-
if (r && _e.has(r)) {
|
|
1200
|
-
if (typeof n == `string` && n.trim() === ``) continue;
|
|
1201
|
-
let e = T(n);
|
|
1202
|
-
if (e === null) {
|
|
1203
|
-
s.push(`"${String(n)}" (${r})`);
|
|
1204
|
-
continue;
|
|
1205
|
-
}
|
|
1206
|
-
o.push(ve.has(r) ? Math.round(e) : e);
|
|
1207
|
-
continue;
|
|
1208
|
-
}
|
|
1209
|
-
if (r === `System.Boolean`) {
|
|
1210
|
-
let e = E(n);
|
|
1211
|
-
if (e === null) {
|
|
1212
|
-
s.push(`"${String(n)}" (${r})`);
|
|
1213
|
-
continue;
|
|
1214
|
-
}
|
|
1215
|
-
o.push(e);
|
|
1216
|
-
continue;
|
|
1217
|
-
}
|
|
1218
|
-
if (typeof n == `string` && r?.startsWith(`Rhino.Geometry`)) {
|
|
1219
|
-
try {
|
|
1220
|
-
o.push(JSON.parse(n));
|
|
1221
|
-
} catch {
|
|
1222
|
-
o.push(n);
|
|
1223
|
-
}
|
|
1224
|
-
continue;
|
|
1225
|
-
}
|
|
1226
|
-
o.push(n);
|
|
1227
|
-
}
|
|
1228
|
-
x(r, n, o);
|
|
1229
|
-
}
|
|
1230
|
-
if (s.length > 0) {
|
|
1231
|
-
let e$5 = `Input "${a}" default contained ${s.length} tree value(s) that could not be parsed and were dropped: ${s.join(`, `)}.`;
|
|
1232
|
-
return i().warn(e$5), {
|
|
1233
|
-
schema: {
|
|
1234
|
-
...t,
|
|
1235
|
-
default: r
|
|
1236
|
-
},
|
|
1237
|
-
warning: {
|
|
1238
|
-
code: e.MALFORMED_DEFAULT,
|
|
1239
|
-
message: e$5
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
return { schema: {
|
|
1244
|
-
...t,
|
|
1245
|
-
default: r
|
|
1246
|
-
} };
|
|
1247
|
-
}
|
|
1248
|
-
let s = [];
|
|
1249
|
-
for (let t of Object.values(o)) if (Array.isArray(t)) for (let n of t) n && typeof n == `object` && l(n, `data`) && s.push(c(n, `data`));
|
|
1250
|
-
return { schema: {
|
|
1251
|
-
...t,
|
|
1252
|
-
default: s.length > 1 ? s : s[0]
|
|
1253
|
-
} };
|
|
1254
|
-
}
|
|
1255
|
-
function be(e, t) {
|
|
1256
|
-
let n = Number(e.toFixed(t));
|
|
1257
|
-
return Math.abs(e - n) < 1e-8 ? n : e;
|
|
1258
|
-
}
|
|
1259
|
-
function k(e) {
|
|
1260
|
-
if (!Number.isFinite(e)) return 0;
|
|
1261
|
-
let [t, n] = String(Math.abs(e)).split(`e`), r = n === void 0 ? Math.abs(e).toFixed(12).replace(/0+$/, ``).split(`.`)[1]?.length ?? 0 : (t.split(`.`)[1]?.length ?? 0) - Number(n);
|
|
1262
|
-
return Math.min(Math.max(r, 0), 12);
|
|
1263
|
-
}
|
|
1264
|
-
function xe(e) {
|
|
1265
|
-
if (!Number.isFinite(e) || e === 0) return .1;
|
|
1266
|
-
let t = k(e);
|
|
1267
|
-
return t === 0 ? Math.abs(e) >= 1 ? 1 : .1 : Number((10 ** -t).toFixed(t));
|
|
1268
|
-
}
|
|
1269
|
-
function A(e) {
|
|
1270
|
-
return typeof e.stepSize == `number` && Number.isFinite(e.stepSize) && e.stepSize > 0 ? e.stepSize : void 0;
|
|
1271
|
-
}
|
|
1272
|
-
var j = (e, t) => (e.atMost ?? 1) > 1 ? [t] : t;
|
|
1273
|
-
var M = (e) => A(e) ?? (e.paramType === `Integer` ? 1 : .1);
|
|
1274
|
-
var N = (e, t) => Array.isArray(e) ? e.map((e) => typeof e == `number` ? t(e) : e) : typeof e == `number` ? t(e) : e;
|
|
1275
|
-
function Se(e$6) {
|
|
1276
|
-
if (C(e$6.default)) return {
|
|
1277
|
-
default: e$6.default,
|
|
1278
|
-
stepSize: M(e$6)
|
|
1279
|
-
};
|
|
1280
|
-
if (typeof e$6.default == `string` && e$6.default.trim() !== `` && T(e$6.default) === null) throw new t(`Invalid numeric default "${e$6.default}" for input "${e$6.name || `unknown`}"`, e.VALIDATION_ERROR, { context: {
|
|
1281
|
-
inputName: e$6.name,
|
|
1282
|
-
default: e$6.default
|
|
1283
|
-
} });
|
|
1284
|
-
let r = w(e$6.default, T, true);
|
|
1285
|
-
if (e$6.paramType === `Integer`) return {
|
|
1286
|
-
default: N(r, Math.round),
|
|
1287
|
-
stepSize: M(e$6)
|
|
1288
|
-
};
|
|
1289
|
-
let i = Array.isArray(r) ? r[0] : r, a = [
|
|
1290
|
-
i,
|
|
1291
|
-
e$6.minimum,
|
|
1292
|
-
e$6.maximum
|
|
1293
|
-
].find((e) => typeof e == `number` && Number.isFinite(e) && e !== 0), o = A(e$6) ?? (a === void 0 ? .1 : xe(a)), s = k(o);
|
|
1294
|
-
if (s === 0 && typeof i == `number` && i !== 0 && Math.abs(i) < 1) {
|
|
1295
|
-
let e = Math.ceil(-Math.log10(Math.abs(i)));
|
|
1296
|
-
Number.isFinite(e) && e > 0 && (s = e);
|
|
1297
|
-
}
|
|
1298
|
-
return s = Math.min(Math.max(s, 0), 12), {
|
|
1299
|
-
default: N(r, (e) => be(e, s)),
|
|
1300
|
-
stepSize: o
|
|
1301
|
-
};
|
|
1302
|
-
}
|
|
1303
|
-
var P = {
|
|
1304
|
-
parse(e, t) {
|
|
1305
|
-
let { default: n, stepSize: r } = Se(e);
|
|
1306
|
-
return {
|
|
1307
|
-
...t,
|
|
1308
|
-
paramType: e.paramType,
|
|
1309
|
-
minimum: e.minimum,
|
|
1310
|
-
maximum: e.maximum,
|
|
1311
|
-
atLeast: e.atLeast,
|
|
1312
|
-
atMost: e.atMost,
|
|
1313
|
-
stepSize: r,
|
|
1314
|
-
default: n
|
|
1315
|
-
};
|
|
1316
|
-
},
|
|
1317
|
-
fallback(e, t) {
|
|
1318
|
-
let n = typeof e.minimum == `number` && Number.isFinite(e.minimum) && e.minimum > 0 ? e.minimum : 0;
|
|
1319
|
-
return {
|
|
1320
|
-
...t,
|
|
1321
|
-
paramType: e.paramType,
|
|
1322
|
-
minimum: e.minimum,
|
|
1323
|
-
maximum: e.maximum,
|
|
1324
|
-
atLeast: e.atLeast,
|
|
1325
|
-
atMost: e.atMost,
|
|
1326
|
-
stepSize: M(e),
|
|
1327
|
-
default: j(e, n)
|
|
1328
|
-
};
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
|
-
var Ce = {
|
|
1332
|
-
parse(e$7, r) {
|
|
1333
|
-
if (C(e$7.default)) return {
|
|
1334
|
-
...r,
|
|
1335
|
-
paramType: `Boolean`,
|
|
1336
|
-
default: e$7.default
|
|
1337
|
-
};
|
|
1338
|
-
let i = w(e$7.default, E, false);
|
|
1339
|
-
if (i != null && typeof i != `boolean` && !Array.isArray(i)) throw new t(`Invalid boolean default "${String(i)}" for input "${e$7.name || `unknown`}"`, e.VALIDATION_ERROR, { context: {
|
|
1340
|
-
inputName: e$7.name,
|
|
1341
|
-
default: e$7.default
|
|
1342
|
-
} });
|
|
1343
|
-
return {
|
|
1344
|
-
...r,
|
|
1345
|
-
paramType: `Boolean`,
|
|
1346
|
-
default: i
|
|
1347
|
-
};
|
|
1348
|
-
},
|
|
1349
|
-
fallback(e, t) {
|
|
1350
|
-
return {
|
|
1351
|
-
...t,
|
|
1352
|
-
paramType: `Boolean`,
|
|
1353
|
-
default: j(e, false)
|
|
1354
|
-
};
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
var we = { parse(e, t) {
|
|
1358
|
-
let n = w(e.default, he, false);
|
|
1359
|
-
return {
|
|
1360
|
-
...t,
|
|
1361
|
-
paramType: `Text`,
|
|
1362
|
-
default: n
|
|
1363
|
-
};
|
|
1364
|
-
} };
|
|
1365
|
-
var Te = {
|
|
1366
|
-
parse(e$8, r, a) {
|
|
1367
|
-
if (!e$8.values || typeof e$8.values != `object` || Object.keys(e$8.values).length === 0) {
|
|
1368
|
-
let r = e$8.nickname || `unnamed`;
|
|
1369
|
-
throw new t(`Input "${r}" has no values defined (expected ValueList)`, e.INVALID_INPUT, { context: {
|
|
1370
|
-
inputName: r,
|
|
1371
|
-
expectedType: `ValueList`
|
|
1372
|
-
} });
|
|
1373
|
-
}
|
|
1374
|
-
let o = e$8.default;
|
|
1375
|
-
if (e$8.default !== void 0 && e$8.default !== null) {
|
|
1376
|
-
if (typeof e$8.default == `object`) throw new t(`ValueList input "${e$8.nickname || `unnamed`}" default is not a string-able value`, e.VALIDATION_ERROR, { context: {
|
|
1377
|
-
inputName: e$8.name,
|
|
1378
|
-
default: e$8.default
|
|
1379
|
-
} });
|
|
1380
|
-
let r = String(e$8.default).toLowerCase(), s = Object.keys(e$8.values).find((e) => e.toLowerCase() === r);
|
|
1381
|
-
if (s !== void 0) o = s;
|
|
1382
|
-
else {
|
|
1383
|
-
let t = `ValueList input "${e$8.nickname || `unnamed`}" default value "${e$8.default}" is not in available values`;
|
|
1384
|
-
i().warn(t), a?.({
|
|
1385
|
-
code: e.VALIDATION_ERROR,
|
|
1386
|
-
message: t
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
return {
|
|
1391
|
-
...r,
|
|
1392
|
-
paramType: `ValueList`,
|
|
1393
|
-
values: e$8.values,
|
|
1394
|
-
default: o
|
|
1395
|
-
};
|
|
1396
|
-
},
|
|
1397
|
-
fallback(e, t) {
|
|
1398
|
-
return {
|
|
1399
|
-
...t,
|
|
1400
|
-
paramType: `ValueList`,
|
|
1401
|
-
values: e.values && typeof e.values == `object` ? e.values : {},
|
|
1402
|
-
default: void 0
|
|
1403
|
-
};
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
function F(e, t) {
|
|
1407
|
-
return {
|
|
1408
|
-
...t,
|
|
1409
|
-
paramType: `Geometry`,
|
|
1410
|
-
default: j(e, null)
|
|
1411
|
-
};
|
|
1412
|
-
}
|
|
1413
|
-
var I = /* @__PURE__ */ new Map([
|
|
1414
|
-
[`Number`, P],
|
|
1415
|
-
[`Integer`, P],
|
|
1416
|
-
[`Boolean`, Ce],
|
|
1417
|
-
[`Text`, we],
|
|
1418
|
-
[`ValueList`, Te],
|
|
1419
|
-
[`Geometry`, {
|
|
1420
|
-
parse(e, t) {
|
|
1421
|
-
let n = w(e.default, D(e.nickname || `unnamed`), true);
|
|
1422
|
-
return {
|
|
1423
|
-
...t,
|
|
1424
|
-
paramType: `Geometry`,
|
|
1425
|
-
default: n
|
|
1426
|
-
};
|
|
1427
|
-
},
|
|
1428
|
-
fallback: F
|
|
1429
|
-
}],
|
|
1430
|
-
[`File`, { parse(e, t) {
|
|
1431
|
-
let n = w(e.default, D(e.nickname || `unnamed`), true);
|
|
1432
|
-
return {
|
|
1433
|
-
...t,
|
|
1434
|
-
paramType: `File`,
|
|
1435
|
-
acceptedFormats: e.acceptedFormats,
|
|
1436
|
-
default: n
|
|
1437
|
-
};
|
|
1438
|
-
} }],
|
|
1439
|
-
[`Color`, { parse(e, t) {
|
|
1440
|
-
let n = w(e.default, ge, false);
|
|
1441
|
-
return {
|
|
1442
|
-
...t,
|
|
1443
|
-
paramType: `Color`,
|
|
1444
|
-
default: n
|
|
1445
|
-
};
|
|
1446
|
-
} }]
|
|
1447
|
-
]);
|
|
1448
|
-
var Ee = F;
|
|
1449
|
-
var De = new Map([...I.keys()].map((e) => [e.toLowerCase(), e]));
|
|
1450
|
-
function Oe(e) {
|
|
1451
|
-
return De.get(e?.toLowerCase()) ?? e;
|
|
1452
|
-
}
|
|
1453
|
-
function L(e$10) {
|
|
1454
|
-
let r = e$10.name || `unknown`, a = [], o = ({ code: t, message: n }) => {
|
|
1455
|
-
a.push({
|
|
1456
|
-
inputName: r,
|
|
1457
|
-
paramType: e$10.paramType,
|
|
1458
|
-
message: n,
|
|
1459
|
-
code: t
|
|
1460
|
-
});
|
|
1461
|
-
}, s = {
|
|
1462
|
-
description: e$10.description,
|
|
1463
|
-
name: e$10.name,
|
|
1464
|
-
nickname: e$10.nickname,
|
|
1465
|
-
treeAccess: e$10.treeAccess,
|
|
1466
|
-
groupName: e$10.groupName ?? void 0,
|
|
1467
|
-
id: e$10.id
|
|
1468
|
-
}, c = Oe(e$10.paramType), l = {
|
|
1469
|
-
...e$10,
|
|
1470
|
-
paramType: c
|
|
1471
|
-
};
|
|
1472
|
-
try {
|
|
1473
|
-
let { schema: e, warning: t } = ye(l, r);
|
|
1474
|
-
l = e, t && o(t);
|
|
1475
|
-
} catch (e$9) {
|
|
1476
|
-
l = {
|
|
1477
|
-
...l,
|
|
1478
|
-
default: null
|
|
1479
|
-
}, o({
|
|
1480
|
-
code: e.MALFORMED_DEFAULT,
|
|
1481
|
-
message: `Input "${r}" default could not be normalized and was dropped: ${e$9 instanceof Error ? e$9.message : String(e$9)}`
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
let u = I.get(c);
|
|
1485
|
-
try {
|
|
1486
|
-
if (!u) throw new t(`Unknown paramType: ${c}`, e.VALIDATION_ERROR, { context: {
|
|
1487
|
-
receivedParamType: c,
|
|
1488
|
-
paramName: e$10.name
|
|
1489
|
-
} });
|
|
1490
|
-
return {
|
|
1491
|
-
input: u.parse(l, s, o),
|
|
1492
|
-
errors: a
|
|
1493
|
-
};
|
|
1494
|
-
} catch (d) {
|
|
1495
|
-
if (!(d instanceof t)) throw new t(d instanceof Error ? d.message : String(d), e.VALIDATION_ERROR, {
|
|
1496
|
-
context: {
|
|
1497
|
-
paramName: e$10.name,
|
|
1498
|
-
paramType: c
|
|
1499
|
-
},
|
|
1500
|
-
originalError: d
|
|
1501
|
-
});
|
|
1502
|
-
return i().error(`Validation error for input ${r}:`, d.message), o(d), {
|
|
1503
|
-
input: (u?.fallback ?? Ee)(l, s),
|
|
1504
|
-
errors: a
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
function Ae(e) {
|
|
1509
|
-
let t = [], n = [];
|
|
1510
|
-
for (let r of e) {
|
|
1511
|
-
let { input: e, errors: i } = L(r);
|
|
1512
|
-
t.push(e), n.push(...i);
|
|
1513
|
-
}
|
|
1514
|
-
return {
|
|
1515
|
-
inputs: t,
|
|
1516
|
-
parseErrors: n
|
|
1517
|
-
};
|
|
1518
|
-
}
|
|
1519
|
-
function je(t) {
|
|
1520
|
-
let n = c(t, `stepSize`);
|
|
1521
|
-
return {
|
|
1522
|
-
id: c(t, `id`) ?? ``,
|
|
1523
|
-
name: c(t, `name`) ?? ``,
|
|
1524
|
-
nickname: c(t, `nickname`) ?? null,
|
|
1525
|
-
description: c(t, `description`) ?? ``,
|
|
1526
|
-
paramType: c(t, `paramType`) ?? ``,
|
|
1527
|
-
treeAccess: c(t, `treeAccess`) ?? false,
|
|
1528
|
-
minimum: c(t, `minimum`) ?? null,
|
|
1529
|
-
maximum: c(t, `maximum`) ?? null,
|
|
1530
|
-
atLeast: c(t, `atLeast`) ?? 1,
|
|
1531
|
-
atMost: c(t, `atMost`) ?? 1,
|
|
1532
|
-
stepSize: typeof n == `number` && Number.isFinite(n) ? n : void 0,
|
|
1533
|
-
default: c(t, `default`),
|
|
1534
|
-
values: c(t, `values`),
|
|
1535
|
-
acceptedFormats: c(t, `acceptedFormats`),
|
|
1536
|
-
groupName: c(t, `groupName`) ?? null
|
|
1537
|
-
};
|
|
1538
|
-
}
|
|
1539
|
-
function Me(t) {
|
|
1540
|
-
return {
|
|
1541
|
-
name: c(t, `name`) ?? ``,
|
|
1542
|
-
nickname: c(t, `nickname`) ?? null,
|
|
1543
|
-
paramType: c(t, `paramType`) ?? ``,
|
|
1544
|
-
id: c(t, `id`) ?? ``
|
|
1545
|
-
};
|
|
1546
|
-
}
|
|
1547
|
-
async function R(r, i) {
|
|
1548
|
-
y(`fetchDefinitionIO`, i.suppressBrowserWarning), d(i.serverUrl);
|
|
1549
|
-
let { algo: a, pointer: o } = b(r, []);
|
|
1550
|
-
if (!a && !o) throw new t(`Definition must resolve to either a URL pointer or base64 algo`, e.INVALID_INPUT);
|
|
1551
|
-
let s = await he$1(`io`, a ? { algo: a } : { pointer: o }, oe(i));
|
|
1552
|
-
if (!s || typeof s != `object`) throw new t(`Invalid IO response structure`, e.INVALID_INPUT, { context: { response: s } });
|
|
1553
|
-
let c$1 = z(c(s, `warnings`)), l = z(c(s, `errors`)), u = c(s, `inputs`), f = c(s, `outputs`);
|
|
1554
|
-
return {
|
|
1555
|
-
inputs: Array.isArray(u) ? u.map(je) : [],
|
|
1556
|
-
outputs: Array.isArray(f) ? f.map(Me) : [],
|
|
1557
|
-
...c$1 && { loadWarnings: c$1 },
|
|
1558
|
-
...l && { loadErrors: l }
|
|
1559
|
-
};
|
|
1560
|
-
}
|
|
1561
|
-
function z(e) {
|
|
1562
|
-
if (!Array.isArray(e)) return;
|
|
1563
|
-
let t = e.map(Ne).filter((e) => e !== void 0);
|
|
1564
|
-
return t.length > 0 ? t : void 0;
|
|
1565
|
-
}
|
|
1566
|
-
function Ne(t) {
|
|
1567
|
-
if (t == null) return;
|
|
1568
|
-
let n;
|
|
1569
|
-
if (typeof t == `string`) n = t;
|
|
1570
|
-
else if (typeof t == `object`) {
|
|
1571
|
-
let r = c(t, `message`);
|
|
1572
|
-
if (typeof r == `string` && r.trim().length > 0) n = r;
|
|
1573
|
-
else try {
|
|
1574
|
-
n = JSON.stringify(t) ?? String(t);
|
|
1575
|
-
} catch {
|
|
1576
|
-
n = String(t);
|
|
1577
|
-
}
|
|
1578
|
-
} else n = String(t);
|
|
1579
|
-
return n.trim().length > 0 ? n : void 0;
|
|
1580
|
-
}
|
|
1581
|
-
async function B(e, t) {
|
|
1582
|
-
let { inputs: n, outputs: r, loadWarnings: i, loadErrors: a } = await R(e, t), { inputs: o, parseErrors: s } = Ae(n);
|
|
1583
|
-
return {
|
|
1584
|
-
inputs: o,
|
|
1585
|
-
outputs: r,
|
|
1586
|
-
...s.length > 0 && { parseErrors: s },
|
|
1587
|
-
...i && { loadWarnings: i },
|
|
1588
|
-
...a && { loadErrors: a }
|
|
1589
|
-
};
|
|
1590
|
-
}
|
|
1591
|
-
var V = globalThis.process?.getBuiltinModule?.(`node:crypto`);
|
|
1592
|
-
function H(e) {
|
|
1593
|
-
if (V) {
|
|
1594
|
-
let t = V.createHash(`sha256`);
|
|
1595
|
-
return typeof e == `string` ? t.update(e, `utf16le`) : t.update(e), t.digest(`hex`);
|
|
1596
|
-
}
|
|
1597
|
-
return Fe(e);
|
|
1598
|
-
}
|
|
1599
|
-
var Pe = new Int32Array([
|
|
1600
|
-
1116352408,
|
|
1601
|
-
1899447441,
|
|
1602
|
-
3049323471,
|
|
1603
|
-
3921009573,
|
|
1604
|
-
961987163,
|
|
1605
|
-
1508970993,
|
|
1606
|
-
2453635748,
|
|
1607
|
-
2870763221,
|
|
1608
|
-
3624381080,
|
|
1609
|
-
310598401,
|
|
1610
|
-
607225278,
|
|
1611
|
-
1426881987,
|
|
1612
|
-
1925078388,
|
|
1613
|
-
2162078206,
|
|
1614
|
-
2614888103,
|
|
1615
|
-
3248222580,
|
|
1616
|
-
3835390401,
|
|
1617
|
-
4022224774,
|
|
1618
|
-
264347078,
|
|
1619
|
-
604807628,
|
|
1620
|
-
770255983,
|
|
1621
|
-
1249150122,
|
|
1622
|
-
1555081692,
|
|
1623
|
-
1996064986,
|
|
1624
|
-
2554220882,
|
|
1625
|
-
2821834349,
|
|
1626
|
-
2952996808,
|
|
1627
|
-
3210313671,
|
|
1628
|
-
3336571891,
|
|
1629
|
-
3584528711,
|
|
1630
|
-
113926993,
|
|
1631
|
-
338241895,
|
|
1632
|
-
666307205,
|
|
1633
|
-
773529912,
|
|
1634
|
-
1294757372,
|
|
1635
|
-
1396182291,
|
|
1636
|
-
1695183700,
|
|
1637
|
-
1986661051,
|
|
1638
|
-
2177026350,
|
|
1639
|
-
2456956037,
|
|
1640
|
-
2730485921,
|
|
1641
|
-
2820302411,
|
|
1642
|
-
3259730800,
|
|
1643
|
-
3345764771,
|
|
1644
|
-
3516065817,
|
|
1645
|
-
3600352804,
|
|
1646
|
-
4094571909,
|
|
1647
|
-
275423344,
|
|
1648
|
-
430227734,
|
|
1649
|
-
506948616,
|
|
1650
|
-
659060556,
|
|
1651
|
-
883997877,
|
|
1652
|
-
958139571,
|
|
1653
|
-
1322822218,
|
|
1654
|
-
1537002063,
|
|
1655
|
-
1747873779,
|
|
1656
|
-
1955562222,
|
|
1657
|
-
2024104815,
|
|
1658
|
-
2227730452,
|
|
1659
|
-
2361852424,
|
|
1660
|
-
2428436474,
|
|
1661
|
-
2756734187,
|
|
1662
|
-
3204031479,
|
|
1663
|
-
3329325298
|
|
1664
|
-
]);
|
|
1665
|
-
function Fe(e) {
|
|
1666
|
-
let t = new Ie();
|
|
1667
|
-
return typeof e == `string` ? t.updateString(e) : t.update(e), t.digestHex();
|
|
1668
|
-
}
|
|
1669
|
-
var Ie = class {
|
|
1670
|
-
h = new Int32Array([
|
|
1671
|
-
1779033703,
|
|
1672
|
-
3144134277,
|
|
1673
|
-
1013904242,
|
|
1674
|
-
2773480762,
|
|
1675
|
-
1359893119,
|
|
1676
|
-
2600822924,
|
|
1677
|
-
528734635,
|
|
1678
|
-
1541459225
|
|
1679
|
-
]);
|
|
1680
|
-
w = /* @__PURE__ */ new Int32Array(64);
|
|
1681
|
-
pending = /* @__PURE__ */ new Uint8Array(64);
|
|
1682
|
-
pendingLength = 0;
|
|
1683
|
-
totalBytes = 0;
|
|
1684
|
-
update(e) {
|
|
1685
|
-
this.totalBytes += e.length;
|
|
1686
|
-
let t = 0;
|
|
1687
|
-
if (this.pendingLength > 0) {
|
|
1688
|
-
let n = Math.min(64 - this.pendingLength, e.length);
|
|
1689
|
-
if (this.pending.set(e.subarray(0, n), this.pendingLength), this.pendingLength += n, t = n, this.pendingLength < 64) return;
|
|
1690
|
-
this.compressBytes(this.pending, 0), this.pendingLength = 0;
|
|
1691
|
-
}
|
|
1692
|
-
for (; t + 64 <= e.length; t += 64) this.compressBytes(e, t);
|
|
1693
|
-
this.pending.set(e.subarray(t), 0), this.pendingLength = e.length - t;
|
|
1694
|
-
}
|
|
1695
|
-
updateString(e) {
|
|
1696
|
-
let t = this.w, n = e.length - e.length % 32;
|
|
1697
|
-
for (let r = 0; r < n; r += 32) {
|
|
1698
|
-
for (let n = 0; n < 16; n++) {
|
|
1699
|
-
let i = e.charCodeAt(r + 2 * n), a = e.charCodeAt(r + 2 * n + 1);
|
|
1700
|
-
t[n] = (i & 255) << 24 | i >>> 8 << 16 | (a & 255) << 8 | a >>> 8;
|
|
1701
|
-
}
|
|
1702
|
-
this.compress();
|
|
1703
|
-
}
|
|
1704
|
-
this.totalBytes += n * 2;
|
|
1705
|
-
let r = new Uint8Array((e.length - n) * 2);
|
|
1706
|
-
for (let t = n, i = 0; t < e.length; t++) {
|
|
1707
|
-
let n = e.charCodeAt(t);
|
|
1708
|
-
r[i++] = n & 255, r[i++] = n >>> 8;
|
|
1709
|
-
}
|
|
1710
|
-
this.update(r);
|
|
1711
|
-
}
|
|
1712
|
-
digestHex() {
|
|
1713
|
-
let e = this.totalBytes * 8, t = new Uint8Array(this.pendingLength < 56 ? 64 : 128);
|
|
1714
|
-
t.set(this.pending.subarray(0, this.pendingLength)), t[this.pendingLength] = 128;
|
|
1715
|
-
let n = new DataView(t.buffer);
|
|
1716
|
-
n.setUint32(t.length - 8, Math.floor(e / 4294967296)), n.setUint32(t.length - 4, e >>> 0);
|
|
1717
|
-
for (let e = 0; e < t.length; e += 64) this.compressBytes(t, e);
|
|
1718
|
-
let r = ``;
|
|
1719
|
-
for (let e of this.h) r += (e >>> 0).toString(16).padStart(8, `0`);
|
|
1720
|
-
return r;
|
|
1721
|
-
}
|
|
1722
|
-
compressBytes(e, t) {
|
|
1723
|
-
let n = this.w;
|
|
1724
|
-
for (let r = 0; r < 16; r++) {
|
|
1725
|
-
let i = t + r * 4;
|
|
1726
|
-
n[r] = e[i] << 24 | e[i + 1] << 16 | e[i + 2] << 8 | e[i + 3];
|
|
1727
|
-
}
|
|
1728
|
-
this.compress();
|
|
1729
|
-
}
|
|
1730
|
-
compress() {
|
|
1731
|
-
let e = this.w;
|
|
1732
|
-
for (let t = 16; t < 64; t++) {
|
|
1733
|
-
let n = e[t - 15], r = e[t - 2], i = (n >>> 7 | n << 25) ^ (n >>> 18 | n << 14) ^ n >>> 3, a = (r >>> 17 | r << 15) ^ (r >>> 19 | r << 13) ^ r >>> 10;
|
|
1734
|
-
e[t] = e[t - 16] + i + e[t - 7] + a | 0;
|
|
1735
|
-
}
|
|
1736
|
-
let t = this.h, n = t[0], r = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7];
|
|
1737
|
-
for (let t = 0; t < 64; t++) {
|
|
1738
|
-
let u = (o >>> 6 | o << 26) ^ (o >>> 11 | o << 21) ^ (o >>> 25 | o << 7), d = o & s ^ ~o & c, f = l + u + d + Pe[t] + e[t] | 0, p = ((n >>> 2 | n << 30) ^ (n >>> 13 | n << 19) ^ (n >>> 22 | n << 10)) + (n & r ^ n & i ^ r & i) | 0;
|
|
1739
|
-
l = c, c = s, s = o, o = a + f | 0, a = i, i = r, r = n, n = f + p | 0;
|
|
1740
|
-
}
|
|
1741
|
-
t[0] = t[0] + n | 0, t[1] = t[1] + r | 0, t[2] = t[2] + i | 0, t[3] = t[3] + a | 0, t[4] = t[4] + o | 0, t[5] = t[5] + s | 0, t[6] = t[6] + c | 0, t[7] = t[7] + l | 0;
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
function U(e) {
|
|
1745
|
-
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
1746
|
-
if (e === null) return `null`;
|
|
1747
|
-
if (typeof e == `number`) return Number.isFinite(e) ? String(e) : `null`;
|
|
1748
|
-
if (typeof e == `string` || typeof e == `boolean`) return JSON.stringify(e);
|
|
1749
|
-
if (typeof e == `bigint`) return `${e}n`;
|
|
1750
|
-
if (typeof e != `object`) return `undefined`;
|
|
1751
|
-
if (e instanceof Uint8Array) return `{u8:${H(e)}}`;
|
|
1752
|
-
if (t.has(e)) return `[Circular]`;
|
|
1753
|
-
t.add(e);
|
|
1754
|
-
let r;
|
|
1755
|
-
if (Array.isArray(e)) {
|
|
1756
|
-
let t = [];
|
|
1757
|
-
for (let r = 0; r < e.length; r++) t.push(n(e[r]));
|
|
1758
|
-
r = `[${t.join(`,`)}]`;
|
|
1759
|
-
} else r = typeof e.toJSON == `function` ? n(e.toJSON()) : e instanceof Map ? `{map:[${[...e.entries()].map(([e, t]) => `[${n(e)},${n(t)}]`).sort().join(`,`)}]}` : e instanceof Set ? `{set:[${[...e.values()].map(n).sort().join(`,`)}]}` : `{${Object.keys(e).sort().map((t) => `${JSON.stringify(t)}:${n(e[t])}`).join(`,`)}}`;
|
|
1760
|
-
return t.delete(e), r;
|
|
1761
|
-
};
|
|
1762
|
-
return n(e);
|
|
1763
|
-
}
|
|
1764
|
-
function W(e, t) {
|
|
1765
|
-
return `${e}|t:${H(U(t))}`;
|
|
1766
|
-
}
|
|
1767
|
-
function G(e) {
|
|
1768
|
-
return ge$1(e) ? `r:${e.key}` : typeof e == `string` ? `s:${H(e)}` : `u8:${H(e)}`;
|
|
1769
|
-
}
|
|
1770
|
-
var K = /* @__PURE__ */ new WeakMap();
|
|
1771
|
-
function Re(e) {
|
|
1772
|
-
if (!(e instanceof Uint8Array)) return G(e);
|
|
1773
|
-
let t = K.get(e);
|
|
1774
|
-
return t === void 0 && (t = G(e), K.set(e, t)), t;
|
|
1775
|
-
}
|
|
1776
|
-
var ze = class {
|
|
1777
|
-
hashDefinition;
|
|
1778
|
-
dataTree;
|
|
1779
|
-
definitionMemo;
|
|
1780
|
-
keyMemo;
|
|
1781
|
-
constructor(e, t) {
|
|
1782
|
-
this.hashDefinition = e, this.dataTree = t;
|
|
1783
|
-
}
|
|
1784
|
-
get definitionHash() {
|
|
1785
|
-
return this.definitionMemo ??= this.hashDefinition();
|
|
1786
|
-
}
|
|
1787
|
-
get key() {
|
|
1788
|
-
return this.keyMemo ??= W(this.definitionHash, this.dataTree);
|
|
1789
|
-
}
|
|
1790
|
-
};
|
|
1791
|
-
var Be = class {
|
|
1792
|
-
items = [];
|
|
1793
|
-
head = 0;
|
|
1794
|
-
live = /* @__PURE__ */ new Set();
|
|
1795
|
-
get size() {
|
|
1796
|
-
return this.live.size;
|
|
1797
|
-
}
|
|
1798
|
-
push(e) {
|
|
1799
|
-
this.items.push(e), this.live.add(e);
|
|
1800
|
-
}
|
|
1801
|
-
remove(e) {
|
|
1802
|
-
this.live.delete(e) && this.compact();
|
|
1803
|
-
}
|
|
1804
|
-
shift() {
|
|
1805
|
-
for (; this.head < this.items.length;) {
|
|
1806
|
-
let e = this.items[this.head];
|
|
1807
|
-
if (this.items[this.head++] = void 0, e && this.live.delete(e)) return this.compact(), e;
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
compact() {
|
|
1811
|
-
if (this.live.size === 0) {
|
|
1812
|
-
this.items = [], this.head = 0;
|
|
1813
|
-
return;
|
|
1814
|
-
}
|
|
1815
|
-
let e = this.items.length - this.live.size;
|
|
1816
|
-
e <= 64 || e <= this.live.size || (this.items = this.items.filter((e) => e !== void 0 && this.live.has(e)), this.head = 0);
|
|
1817
|
-
}
|
|
1818
|
-
};
|
|
1819
|
-
function Ve(e) {
|
|
1820
|
-
try {
|
|
1821
|
-
return JSON.stringify(e)?.length ?? 0;
|
|
1822
|
-
} catch {
|
|
1823
|
-
return 0;
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
var He = class {
|
|
1827
|
-
executor;
|
|
1828
|
-
baseConfig;
|
|
1829
|
-
mode;
|
|
1830
|
-
maxConcurrent;
|
|
1831
|
-
maxQueueDepth;
|
|
1832
|
-
queueWaitMs;
|
|
1833
|
-
timeoutMs;
|
|
1834
|
-
retry;
|
|
1835
|
-
cacheEnabled;
|
|
1836
|
-
cacheMaxBytes;
|
|
1837
|
-
cacheTtl;
|
|
1838
|
-
cacheErroredSolves;
|
|
1839
|
-
cache = /* @__PURE__ */ new Map();
|
|
1840
|
-
cacheBytes = 0;
|
|
1841
|
-
cacheHits = 0;
|
|
1842
|
-
cacheMisses = 0;
|
|
1843
|
-
cacheEvictions = 0;
|
|
1844
|
-
reuseServerDefinitionCache;
|
|
1845
|
-
serverCacheKeys = /* @__PURE__ */ new Map();
|
|
1846
|
-
lastStringDefinition = null;
|
|
1847
|
-
onStart;
|
|
1848
|
-
onSettle;
|
|
1849
|
-
onSuperseded;
|
|
1850
|
-
subscribers = /* @__PURE__ */ new Set();
|
|
1851
|
-
inFlight = /* @__PURE__ */ new Set();
|
|
1852
|
-
pendingForLatestWins = null;
|
|
1853
|
-
fifo = new Be();
|
|
1854
|
-
_lastResult = null;
|
|
1855
|
-
_lastError = null;
|
|
1856
|
-
_lastDurationMs = null;
|
|
1857
|
-
solveSeq = 0;
|
|
1858
|
-
lastStateSeq = 0;
|
|
1859
|
-
disposed = false;
|
|
1860
|
-
constructor(e$11, r, i = {}) {
|
|
1861
|
-
if (this.executor = e$11, this.baseConfig = r, this.mode = i.mode ?? `latest-wins`, this.mode !== `latest-wins` && this.mode !== `queue`) throw new t(`Unknown scheduler mode '${String(this.mode)}'. For concurrent solves use { mode: 'queue', maxConcurrent: 4 }.`, e.INVALID_CONFIG, { context: { mode: this.mode } });
|
|
1862
|
-
this.maxConcurrent = Math.max(1, i.maxConcurrent ?? 1), this.maxQueueDepth = i.maxQueueDepth !== void 0 && i.maxQueueDepth > 0 ? Math.floor(i.maxQueueDepth) : void 0, this.queueWaitMs = i.queueWaitMs !== void 0 && i.queueWaitMs > 0 ? i.queueWaitMs : void 0, this.timeoutMs = i.timeoutMs, this.retry = i.retry;
|
|
1863
|
-
let a = i.cache, o = typeof a == `object` ? a : null;
|
|
1864
|
-
this.cacheMaxBytes = Math.max(0, o?.maxBytes ?? 0), this.cacheEnabled = this.cacheMaxBytes > 0, this.cacheTtl = o?.ttlMs ?? 0, this.cacheErroredSolves = o?.cacheErroredSolves ?? true, this.reuseServerDefinitionCache = i.reuseServerDefinitionCache ?? true, this.onStart = i.onStart, this.onSettle = i.onSettle, this.onSuperseded = i.onSuperseded;
|
|
1865
|
-
}
|
|
1866
|
-
get isSolving() {
|
|
1867
|
-
return this.inFlight.size > 0;
|
|
1868
|
-
}
|
|
1869
|
-
get hasPending() {
|
|
1870
|
-
return this.pendingForLatestWins !== null || this.fifo.size > 0;
|
|
1871
|
-
}
|
|
1872
|
-
get inFlightCount() {
|
|
1873
|
-
return this.inFlight.size;
|
|
1874
|
-
}
|
|
1875
|
-
get queueDepth() {
|
|
1876
|
-
return this.fifo.size + +!!this.pendingForLatestWins;
|
|
1877
|
-
}
|
|
1878
|
-
get lastResult() {
|
|
1879
|
-
return this._lastResult;
|
|
1880
|
-
}
|
|
1881
|
-
get lastError() {
|
|
1882
|
-
return this._lastError;
|
|
1883
|
-
}
|
|
1884
|
-
get lastDurationMs() {
|
|
1885
|
-
return this._lastDurationMs;
|
|
1886
|
-
}
|
|
1887
|
-
setMaxConcurrent(e) {
|
|
1888
|
-
let t = Math.max(1, Math.floor(e));
|
|
1889
|
-
if (t === this.maxConcurrent) return;
|
|
1890
|
-
let n = t > this.maxConcurrent;
|
|
1891
|
-
this.maxConcurrent = t, n && this.drainNext();
|
|
1892
|
-
}
|
|
1893
|
-
getMaxConcurrent() {
|
|
1894
|
-
return this.maxConcurrent;
|
|
1895
|
-
}
|
|
1896
|
-
subscribe(e) {
|
|
1897
|
-
return this.subscribers.add(e), () => this.subscribers.delete(e);
|
|
1898
|
-
}
|
|
1899
|
-
notify() {
|
|
1900
|
-
for (let e of this.subscribers) try {
|
|
1901
|
-
e();
|
|
1902
|
-
} catch (e) {
|
|
1903
|
-
i().error(`[SolveScheduler] subscriber threw:`, e);
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
solve(e, t, n) {
|
|
1907
|
-
return this.solveDetailed(e, t, n).then((e) => e.response);
|
|
1908
|
-
}
|
|
1909
|
-
solveDetailed(e$12, r, i) {
|
|
1910
|
-
if (this.disposed) return Promise.reject(new t(`SolveScheduler has been disposed and cannot be used`, e.INVALID_STATE));
|
|
1911
|
-
let a = new ze(() => this.hashDefinitionMemo(e$12), r), o = ``;
|
|
1912
|
-
if (this.cacheEnabled || this.onStart || this.onSettle || this.onSuperseded) try {
|
|
1913
|
-
o = a.key;
|
|
1914
|
-
} catch (e$13) {
|
|
1915
|
-
return Promise.reject(new t(`Solve input could not be hashed`, e.INVALID_INPUT, { originalError: e$13 }));
|
|
1916
|
-
}
|
|
1917
|
-
let s = ++this.solveSeq, c = {
|
|
1918
|
-
key: o,
|
|
1919
|
-
enqueuedAt: Date.now(),
|
|
1920
|
-
startedAt: null
|
|
1921
|
-
};
|
|
1922
|
-
if (i?.signal?.aborted) return Promise.reject(this.makeAbortError(c));
|
|
1923
|
-
let l = this.readCache(o);
|
|
1924
|
-
if (l) {
|
|
1925
|
-
this.mode === `latest-wins` && this.supersedeCurrent();
|
|
1926
|
-
let e = {
|
|
1927
|
-
status: `success`,
|
|
1928
|
-
response: l,
|
|
1929
|
-
durationMs: 0,
|
|
1930
|
-
fromCache: true
|
|
1931
|
-
};
|
|
1932
|
-
return this.writeLastState(s, {
|
|
1933
|
-
result: l,
|
|
1934
|
-
durationMs: 0
|
|
1935
|
-
}), this.runHook(this.onStart, c), this.runHook(this.onSettle, c, e), this.notify(), Promise.resolve({
|
|
1936
|
-
response: l,
|
|
1937
|
-
fromCache: true,
|
|
1938
|
-
durationMs: 0
|
|
1939
|
-
});
|
|
1940
|
-
}
|
|
1941
|
-
return new Promise((t, n) => {
|
|
1942
|
-
let o = {
|
|
1943
|
-
definition: e$12,
|
|
1944
|
-
dataTree: r,
|
|
1945
|
-
hashes: a,
|
|
1946
|
-
ctx: c,
|
|
1947
|
-
seq: s,
|
|
1948
|
-
resolve: t,
|
|
1949
|
-
reject: n,
|
|
1950
|
-
externalSignal: i?.signal,
|
|
1951
|
-
selvaevents: i?.selvaevents,
|
|
1952
|
-
onServerTiming: i?.onServerTiming
|
|
1953
|
-
};
|
|
1954
|
-
o.externalSignal && (o.queuedAbortHandler = () => this.abortQueuedItem(o), o.externalSignal.addEventListener(`abort`, o.queuedAbortHandler, { once: true })), this.enqueue(o);
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
writeLastState(e, t) {
|
|
1958
|
-
e < this.lastStateSeq || (this.lastStateSeq = e, `result` in t ? (this._lastResult = t.result, this._lastError = null) : this._lastError = t.error, this._lastDurationMs = t.durationMs);
|
|
1959
|
-
}
|
|
1960
|
-
supersedeCurrent() {
|
|
1961
|
-
this.pendingForLatestWins &&= (this.supersede(this.pendingForLatestWins), null);
|
|
1962
|
-
for (let e of this.inFlight) this.supersede(e), e.controller.abort();
|
|
1963
|
-
}
|
|
1964
|
-
dequeue(e) {
|
|
1965
|
-
this.pendingForLatestWins === e && (this.pendingForLatestWins = null), this.fifo.remove(e);
|
|
1966
|
-
}
|
|
1967
|
-
abortQueuedItem(e) {
|
|
1968
|
-
this.dequeue(e), this.fail(e, this.makeAbortError(e.ctx)), this.notify();
|
|
1969
|
-
}
|
|
1970
|
-
shedAsQueueFull(e$14) {
|
|
1971
|
-
let r = new t(`Solve queue is full; request rejected (backpressure)`, e.QUEUE_FULL, {
|
|
1972
|
-
statusCode: 503,
|
|
1973
|
-
context: {
|
|
1974
|
-
queueDepth: this.fifo.size,
|
|
1975
|
-
maxQueueDepth: this.maxQueueDepth
|
|
1976
|
-
}
|
|
1977
|
-
});
|
|
1978
|
-
this.fail(e$14, r), this.notify();
|
|
1979
|
-
}
|
|
1980
|
-
armQueueWaitTimer(e$15) {
|
|
1981
|
-
if (this.queueWaitMs === void 0) return;
|
|
1982
|
-
let r = this.queueWaitMs;
|
|
1983
|
-
e$15.queueWaitTimer = setTimeout(() => {
|
|
1984
|
-
if (e$15.settled) return;
|
|
1985
|
-
this.dequeue(e$15);
|
|
1986
|
-
let i = new t(`Solve waited longer than ${r}ms in queue; rejected (backpressure)`, e.QUEUE_TIMEOUT, {
|
|
1987
|
-
statusCode: 503,
|
|
1988
|
-
context: {
|
|
1989
|
-
waitedMs: Date.now() - e$15.ctx.enqueuedAt,
|
|
1990
|
-
queueWaitMs: r
|
|
1991
|
-
}
|
|
1992
|
-
});
|
|
1993
|
-
this.fail(e$15, i), this.notify();
|
|
1994
|
-
}, r);
|
|
1995
|
-
}
|
|
1996
|
-
clearQueueWaitTimer(e) {
|
|
1997
|
-
e.queueWaitTimer !== void 0 && (clearTimeout(e.queueWaitTimer), e.queueWaitTimer = void 0);
|
|
1998
|
-
}
|
|
1999
|
-
enqueue(e) {
|
|
2000
|
-
switch (this.mode) {
|
|
2001
|
-
case `latest-wins`:
|
|
2002
|
-
this.supersedeCurrent(), this.inFlight.size === 0 ? this.execute(e) : this.pendingForLatestWins = e;
|
|
2003
|
-
break;
|
|
2004
|
-
case `queue`: this.inFlight.size < this.maxConcurrent ? this.execute(e) : this.maxQueueDepth !== void 0 && this.fifo.size >= this.maxQueueDepth ? this.shedAsQueueFull(e) : (this.armQueueWaitTimer(e), this.fifo.push(e));
|
|
2005
|
-
}
|
|
2006
|
-
this.notify();
|
|
2007
|
-
}
|
|
2008
|
-
async execute(e) {
|
|
2009
|
-
let t = new AbortController(), n = e;
|
|
2010
|
-
n.controller = t, this.inFlight.add(n), e.ctx.startedAt = Date.now(), this.clearQueueWaitTimer(e), this.removeQueuedAbortHandler(e);
|
|
2011
|
-
let r = () => t.abort();
|
|
2012
|
-
e.externalSignal?.addEventListener(`abort`, r, { once: true }), this.runHook(this.onStart, e.ctx), this.notify();
|
|
2013
|
-
let i = performance.now();
|
|
2014
|
-
try {
|
|
2015
|
-
let n = {
|
|
2016
|
-
...this.baseConfig,
|
|
2017
|
-
signal: t.signal,
|
|
2018
|
-
...this.timeoutMs !== void 0 && { timeoutMs: this.timeoutMs },
|
|
2019
|
-
...this.retry !== void 0 && { retry: this.retry },
|
|
2020
|
-
...e.selvaevents !== void 0 && { selvaevents: e.selvaevents }
|
|
2021
|
-
}, r = e.onServerTiming;
|
|
2022
|
-
if (r) {
|
|
2023
|
-
let e = this.baseConfig.onServerTiming;
|
|
2024
|
-
n.onServerTiming = (t, n) => {
|
|
2025
|
-
try {
|
|
2026
|
-
e?.(t, n);
|
|
2027
|
-
} finally {
|
|
2028
|
-
r(t, n);
|
|
2029
|
-
}
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
let { response: a, definitionReuploaded: o } = await this.runExecutor(e, n), s = performance.now() - i;
|
|
2033
|
-
if (this.writeCache(e.ctx.key, a), !this.settleSuccess(e, {
|
|
2034
|
-
response: a,
|
|
2035
|
-
fromCache: !1,
|
|
2036
|
-
definitionReuploaded: o,
|
|
2037
|
-
durationMs: s
|
|
2038
|
-
})) return;
|
|
2039
|
-
this.writeLastState(e.seq, {
|
|
2040
|
-
result: a,
|
|
2041
|
-
durationMs: s
|
|
2042
|
-
}), this.runHook(this.onSettle, e.ctx, {
|
|
2043
|
-
status: `success`,
|
|
2044
|
-
response: a,
|
|
2045
|
-
durationMs: s,
|
|
2046
|
-
fromCache: !1,
|
|
2047
|
-
definitionReuploaded: o
|
|
2048
|
-
});
|
|
2049
|
-
} catch (t) {
|
|
2050
|
-
let r = performance.now() - i, a = this.normalizeExecutionError(t, n);
|
|
2051
|
-
this.writeLastState(e.seq, {
|
|
2052
|
-
error: a,
|
|
2053
|
-
durationMs: r
|
|
2054
|
-
}), this.fail(e, a, r);
|
|
2055
|
-
} finally {
|
|
2056
|
-
e.externalSignal?.removeEventListener(`abort`, r), this.inFlight.delete(n), this.drainNext(), this.notify();
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
async runExecutor(e, t) {
|
|
2060
|
-
let { definition: n, dataTree: r } = e;
|
|
2061
|
-
if (!this.reuseServerDefinitionCache || _e$1(n)) {
|
|
2062
|
-
let { response: e } = await this.executor(n, r, null, t);
|
|
2063
|
-
return { response: e };
|
|
2064
|
-
}
|
|
2065
|
-
let i = e.hashes.definitionHash, a = this.serverCacheKeys.get(i) ?? null, s = await this.executor(n, r, a, t);
|
|
2066
|
-
return this.serverCacheKeys.delete(i), s.cacheKey && (this.serverCacheKeys.set(i, s.cacheKey), this.serverCacheKeys.size > 100 && this.serverCacheKeys.delete(this.serverCacheKeys.keys().next().value)), {
|
|
2067
|
-
response: s.response,
|
|
2068
|
-
definitionReuploaded: s.missed
|
|
2069
|
-
};
|
|
2070
|
-
}
|
|
2071
|
-
hashDefinitionMemo(e) {
|
|
2072
|
-
return typeof e == `string` ? (this.lastStringDefinition?.value !== e && (this.lastStringDefinition = {
|
|
2073
|
-
value: e,
|
|
2074
|
-
hash: G(e)
|
|
2075
|
-
}), this.lastStringDefinition.hash) : Re(e);
|
|
2076
|
-
}
|
|
2077
|
-
drainNext() {
|
|
2078
|
-
if (!this.disposed) {
|
|
2079
|
-
if (this.mode === `latest-wins`) {
|
|
2080
|
-
if (this.pendingForLatestWins && this.inFlight.size === 0) {
|
|
2081
|
-
let e = this.pendingForLatestWins;
|
|
2082
|
-
this.pendingForLatestWins = null, this.execute(e);
|
|
2083
|
-
}
|
|
2084
|
-
return;
|
|
2085
|
-
}
|
|
2086
|
-
for (; this.fifo.size > 0 && this.inFlight.size < this.maxConcurrent;) this.execute(this.fifo.shift());
|
|
2087
|
-
}
|
|
2088
|
-
}
|
|
2089
|
-
supersede(e$16) {
|
|
2090
|
-
let r = new t(`Superseded by newer solve`, e.SUPERSEDED, { context: { enqueuedAt: e$16.ctx.enqueuedAt } });
|
|
2091
|
-
this.settleError(e$16, r) && this.runHook(this.onSuperseded, e$16.ctx);
|
|
2092
|
-
}
|
|
2093
|
-
makeAbortError(e$17) {
|
|
2094
|
-
return new t(`Request aborted by caller`, e.ABORTED, { context: { enqueuedAt: e$17.enqueuedAt } });
|
|
2095
|
-
}
|
|
2096
|
-
settleError(e, t) {
|
|
2097
|
-
return !e.settled && (e.settled = { error: t }, this.clearQueueWaitTimer(e), this.removeQueuedAbortHandler(e), e.reject(t), true);
|
|
2098
|
-
}
|
|
2099
|
-
fail(e, t, n = 0) {
|
|
2100
|
-
this.settleError(e, t) && this.runHook(this.onSettle, e.ctx, {
|
|
2101
|
-
status: `error`,
|
|
2102
|
-
error: t,
|
|
2103
|
-
durationMs: n
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
settleSuccess(e, t) {
|
|
2107
|
-
return !e.settled && (e.settled = { ok: true }, this.clearQueueWaitTimer(e), this.removeQueuedAbortHandler(e), e.resolve(t), true);
|
|
2108
|
-
}
|
|
2109
|
-
removeQueuedAbortHandler(e) {
|
|
2110
|
-
e.queuedAbortHandler && e.externalSignal && e.externalSignal.removeEventListener(`abort`, e.queuedAbortHandler), e.queuedAbortHandler = void 0;
|
|
2111
|
-
}
|
|
2112
|
-
normalizeExecutionError(e$18, r) {
|
|
2113
|
-
return r.settled && `error` in r.settled ? r.settled.error : e$18 instanceof t ? e$18 : e$18 instanceof Error && e$18.name === `AbortError` ? this.makeAbortError(r.ctx) : new t(e$18 instanceof Error ? e$18.message : String(e$18), e.UNKNOWN_ERROR, { originalError: e$18 });
|
|
2114
|
-
}
|
|
2115
|
-
cancelAll() {
|
|
2116
|
-
this.pendingForLatestWins &&= (this.fail(this.pendingForLatestWins, this.makeAbortError(this.pendingForLatestWins.ctx)), null);
|
|
2117
|
-
for (let e = this.fifo.shift(); e; e = this.fifo.shift()) this.fail(e, this.makeAbortError(e.ctx));
|
|
2118
|
-
for (let e of this.inFlight) {
|
|
2119
|
-
let t = e.ctx.startedAt ? Date.now() - e.ctx.startedAt : 0;
|
|
2120
|
-
this.fail(e, this.makeAbortError(e.ctx), t), e.controller.abort();
|
|
2121
|
-
}
|
|
2122
|
-
this.notify();
|
|
2123
|
-
}
|
|
2124
|
-
readCache(e) {
|
|
2125
|
-
if (!this.cacheEnabled) return null;
|
|
2126
|
-
let t = this.cache.get(e);
|
|
2127
|
-
return t ? this.cacheTtl > 0 && Date.now() - t.insertedAt > this.cacheTtl ? (this.dropCacheEntry(e), this.cacheMisses += 1, null) : (this.cache.delete(e), this.cache.set(e, t), this.cacheHits += 1, t.response) : (this.cacheMisses += 1, null);
|
|
2128
|
-
}
|
|
2129
|
-
writeCache(t, n) {
|
|
2130
|
-
if (!this.cacheEnabled) return;
|
|
2131
|
-
let r = c(n, `errors`);
|
|
2132
|
-
if (!this.cacheErroredSolves && Array.isArray(r) && r.length > 0) return;
|
|
2133
|
-
let i = oe$1(n) ?? Ve(n);
|
|
2134
|
-
if (!(i > this.cacheMaxBytes)) for (this.dropCacheEntry(t), this.cache.set(t, {
|
|
2135
|
-
response: n,
|
|
2136
|
-
insertedAt: Date.now(),
|
|
2137
|
-
sizeBytes: i
|
|
2138
|
-
}), this.cacheBytes += i; this.cacheBytes > this.cacheMaxBytes && this.cache.size > 0;) {
|
|
2139
|
-
let e = this.cache.keys().next().value;
|
|
2140
|
-
if (e === void 0) break;
|
|
2141
|
-
this.dropCacheEntry(e), this.cacheEvictions += 1;
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
dropCacheEntry(e) {
|
|
2145
|
-
let t = this.cache.get(e);
|
|
2146
|
-
t && (this.cache.delete(e), this.cacheBytes -= t.sizeBytes);
|
|
2147
|
-
}
|
|
2148
|
-
clearCache() {
|
|
2149
|
-
this.cache.clear(), this.cacheBytes = 0;
|
|
2150
|
-
}
|
|
2151
|
-
cacheStats() {
|
|
2152
|
-
return {
|
|
2153
|
-
entries: this.cache.size,
|
|
2154
|
-
bytes: this.cacheBytes,
|
|
2155
|
-
hits: this.cacheHits,
|
|
2156
|
-
misses: this.cacheMisses,
|
|
2157
|
-
evictions: this.cacheEvictions
|
|
2158
|
-
};
|
|
2159
|
-
}
|
|
2160
|
-
dispose() {
|
|
2161
|
-
this.disposed || (this.disposed = true, this.cancelAll(), this.subscribers.clear(), this.clearCache());
|
|
2162
|
-
}
|
|
2163
|
-
runHook(e, ...t) {
|
|
2164
|
-
if (e) try {
|
|
2165
|
-
e(...t);
|
|
2166
|
-
} catch (e) {
|
|
2167
|
-
i().error(`[SolveScheduler] hook threw:`, e);
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
|
-
};
|
|
2171
|
-
function Ue(e) {
|
|
2172
|
-
return ge$1(e) ? `ref:${e.key}` : typeof e == `string` && e.length < 200 ? e : `...content...`;
|
|
2173
|
-
}
|
|
2174
|
-
function We(t) {
|
|
2175
|
-
return Array.isArray(t) ? t.map((t) => {
|
|
2176
|
-
let n = 0, r = 0, i = c(t, `innerTree`);
|
|
2177
|
-
if (i && typeof i == `object`) {
|
|
2178
|
-
for (let e of Object.values(i)) if (Array.isArray(e)) {
|
|
2179
|
-
n += e.length;
|
|
2180
|
-
for (let t of e) {
|
|
2181
|
-
let e = t?.data;
|
|
2182
|
-
typeof e == `string` && (r += e.length);
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
return {
|
|
2187
|
-
param: c(t, `paramName`) ?? `<unnamed>`,
|
|
2188
|
-
items: n,
|
|
2189
|
-
bytes: r
|
|
2190
|
-
};
|
|
2191
|
-
}) : [];
|
|
2192
|
-
}
|
|
2193
|
-
var Ge = class r {
|
|
2194
|
-
config;
|
|
2195
|
-
serverStats;
|
|
2196
|
-
disposed = false;
|
|
2197
|
-
static CREATE_PROBE_TIMEOUT_MS = 2e3;
|
|
2198
|
-
constructor(e) {
|
|
2199
|
-
this.config = {
|
|
2200
|
-
...e,
|
|
2201
|
-
serverUrl: d(e.serverUrl),
|
|
2202
|
-
debug: e.debug ?? false
|
|
2203
|
-
}, this.serverStats = new g(this.config.serverUrl, this.config);
|
|
2204
|
-
}
|
|
2205
|
-
static async create(e$19, i = {}) {
|
|
2206
|
-
let a = new r(e$19), o = Math.max(1, (i.probe?.attempts ?? 2) + 1), s = i.probe?.baseDelayMs ?? 250, c = i.probe?.maxDelayMs ?? 1e3, l, u = null, d = 0;
|
|
2207
|
-
for (let e = 0; e < o; e++) {
|
|
2208
|
-
if (d = e + 1, l = await a.serverStats.probeServer(r.CREATE_PROBE_TIMEOUT_MS), l.online) return a;
|
|
2209
|
-
if (u = R$1(l), u && !u.retryable) break;
|
|
2210
|
-
if (e < o - 1) {
|
|
2211
|
-
let t = Math.min(s * 2 ** e, c);
|
|
2212
|
-
await new Promise((e) => setTimeout(e, t));
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
await a.dispose();
|
|
2216
|
-
let f = l?.status;
|
|
2217
|
-
throw new t(u ? `Rhino Compute server is not available. ${u.summary}` : `Rhino Compute server is not online`, e.NETWORK_ERROR, {
|
|
2218
|
-
...f !== void 0 && { statusCode: f },
|
|
2219
|
-
context: {
|
|
2220
|
-
serverUrl: a.config.serverUrl,
|
|
2221
|
-
attempts: d,
|
|
2222
|
-
maxAttempts: o,
|
|
2223
|
-
...u && {
|
|
2224
|
-
probeVerdict: u.verdict,
|
|
2225
|
-
probeRetryable: u.retryable
|
|
2226
|
-
},
|
|
2227
|
-
...f !== void 0 && { lastProbeStatus: f },
|
|
2228
|
-
...l?.error !== void 0 && { lastProbeError: l.error }
|
|
2229
|
-
}
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
getConfig() {
|
|
2233
|
-
return this.ensureNotDisposed(), { ...this.config };
|
|
2234
|
-
}
|
|
2235
|
-
async getIO(e) {
|
|
2236
|
-
return this.ensureNotDisposed(), B(e, this.config);
|
|
2237
|
-
}
|
|
2238
|
-
async getRawIO(e) {
|
|
2239
|
-
return this.ensureNotDisposed(), R(e, this.config);
|
|
2240
|
-
}
|
|
2241
|
-
async solve(r, a, o) {
|
|
2242
|
-
this.ensureNotDisposed();
|
|
2243
|
-
try {
|
|
2244
|
-
if (typeof r == `string` && !r.trim()) throw new t(`Definition URL/content is required`, e.INVALID_INPUT, { context: { receivedUrl: r } });
|
|
2245
|
-
if (r instanceof Uint8Array && r.length === 0) throw new t(`Definition content is empty`, e.INVALID_INPUT);
|
|
2246
|
-
if (ge$1(r) && !r.key.trim()) throw new t(`DefinitionRef key is empty`, e.INVALID_INPUT);
|
|
2247
|
-
let i = await le(a, r, {
|
|
2248
|
-
...this.config,
|
|
2249
|
-
...o?.signal !== void 0 && { signal: o.signal },
|
|
2250
|
-
...o?.timeoutMs !== void 0 && { timeoutMs: o.timeoutMs },
|
|
2251
|
-
...o?.retry !== void 0 && { retry: o.retry },
|
|
2252
|
-
...o?.selvaevents !== void 0 && { selvaevents: o.selvaevents }
|
|
2253
|
-
}), s = c(i, `errors`);
|
|
2254
|
-
if (Array.isArray(s) && s.length > 0) throw new t(s.map(String).join(`; `) || `Computation failed`, e.COMPUTATION_ERROR, { context: {
|
|
2255
|
-
definition: Ue(r),
|
|
2256
|
-
inputSummary: We(a),
|
|
2257
|
-
errors: s,
|
|
2258
|
-
warnings: c(i, `warnings`),
|
|
2259
|
-
values: i.values
|
|
2260
|
-
} });
|
|
2261
|
-
return i;
|
|
2262
|
-
} catch (e$20) {
|
|
2263
|
-
throw this.config.debug && i().error(`Compute failed:`, e$20), e$20 instanceof t ? e$20 : new t(e$20 instanceof Error ? e$20.message : String(e$20), e.COMPUTATION_ERROR, {
|
|
2264
|
-
context: {
|
|
2265
|
-
definition: Ue(r),
|
|
2266
|
-
inputSummary: We(a)
|
|
2267
|
-
},
|
|
2268
|
-
originalError: e$20
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
createScheduler(e) {
|
|
2273
|
-
return this.ensureNotDisposed(), new He((e, t, n, r) => ue(t, n, e, r), this.config, e);
|
|
2274
|
-
}
|
|
2275
|
-
async dispose() {
|
|
2276
|
-
this.disposed || (this.disposed = true, await this.serverStats.dispose());
|
|
2277
|
-
}
|
|
2278
|
-
ensureNotDisposed() {
|
|
2279
|
-
if (this.disposed) throw new t(`GrasshopperClient has been disposed and cannot be used`, e.INVALID_STATE);
|
|
2280
|
-
}
|
|
2281
|
-
};
|
|
2282
|
-
function qe(e, t) {
|
|
2283
|
-
return {
|
|
2284
|
-
__decodeError: true,
|
|
2285
|
-
type: e,
|
|
2286
|
-
raw: t
|
|
2287
|
-
};
|
|
2288
|
-
}
|
|
2289
|
-
function Je(e) {
|
|
2290
|
-
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
2291
|
-
if (!e || typeof e != `object` || t.has(e)) return;
|
|
2292
|
-
t.add(e);
|
|
2293
|
-
let r = e.delete;
|
|
2294
|
-
if (typeof r == `function`) {
|
|
2295
|
-
let t = e.isDeleted;
|
|
2296
|
-
(typeof t != `function` || !t.call(e)) && r.call(e);
|
|
2297
|
-
return;
|
|
2298
|
-
}
|
|
2299
|
-
if (Array.isArray(e)) {
|
|
2300
|
-
for (let t of e) n(t);
|
|
2301
|
-
return;
|
|
2302
|
-
}
|
|
2303
|
-
let i = Object.getPrototypeOf(e);
|
|
2304
|
-
if (i === Object.prototype || i === null) for (let t of Object.values(e)) n(t);
|
|
2305
|
-
};
|
|
2306
|
-
n(e);
|
|
2307
|
-
}
|
|
2308
|
-
var q = /* @__PURE__ */ new Map([[`Rhino.Geometry.Point3d`, (e, t) => {
|
|
2309
|
-
let n = t;
|
|
2310
|
-
return !n || typeof n.X != `number` ? null : new e.Point([
|
|
2311
|
-
n.X,
|
|
2312
|
-
n.Y,
|
|
2313
|
-
n.Z
|
|
2314
|
-
]);
|
|
2315
|
-
}], [`Rhino.Geometry.Line`, (e, t) => {
|
|
2316
|
-
let n = t;
|
|
2317
|
-
return !n || !n.From || !n.To ? null : new e.Line([
|
|
2318
|
-
n.From.X,
|
|
2319
|
-
n.From.Y,
|
|
2320
|
-
n.From.Z
|
|
2321
|
-
], [
|
|
2322
|
-
n.To.X,
|
|
2323
|
-
n.To.Y,
|
|
2324
|
-
n.To.Z
|
|
2325
|
-
]);
|
|
2326
|
-
}]]);
|
|
2327
|
-
function Ye(e) {
|
|
2328
|
-
if (q.has(e)) return q.get(e);
|
|
2329
|
-
for (let [t, n] of q) if (e.startsWith(t)) return n;
|
|
2330
|
-
}
|
|
2331
|
-
function Xe(e) {
|
|
2332
|
-
return !!(e && typeof e == `object` && typeof e.data == `string`);
|
|
2333
|
-
}
|
|
2334
|
-
function Ze(e, t, n) {
|
|
2335
|
-
let r = Ye(t), a = false;
|
|
2336
|
-
if (r) try {
|
|
2337
|
-
let t = r(n, e);
|
|
2338
|
-
if (t != null) return t;
|
|
2339
|
-
} catch (e) {
|
|
2340
|
-
i().warn(`Failed to decode Rhino type ${t}:`, e), a = true;
|
|
2341
|
-
}
|
|
2342
|
-
try {
|
|
2343
|
-
if (Xe(e)) return n.CommonObject.decode(e);
|
|
2344
|
-
} catch (n) {
|
|
2345
|
-
return i().warn(`Failed to decode ${t} with CommonObject:`, n), qe(t, e);
|
|
2346
|
-
}
|
|
2347
|
-
return a ? qe(t, e) : e;
|
|
2348
|
-
}
|
|
2349
|
-
var J = {
|
|
2350
|
-
STRING: `System.String`,
|
|
2351
|
-
INT: `System.Int32`,
|
|
2352
|
-
DOUBLE: `System.Double`,
|
|
2353
|
-
BOOL: `System.Boolean`
|
|
2354
|
-
};
|
|
2355
|
-
var Qe = `FileData`;
|
|
2356
|
-
function $e(e, t) {
|
|
2357
|
-
return e.includes(`WebDisplay`) || t && e !== J.STRING;
|
|
2358
|
-
}
|
|
2359
|
-
function et(e) {
|
|
2360
|
-
if (typeof e != `string`) return e;
|
|
2361
|
-
let t = e.trim();
|
|
2362
|
-
if (!(t.startsWith(`{`) || t.startsWith(`[`) || t.startsWith(`"`))) return e;
|
|
2363
|
-
try {
|
|
2364
|
-
let e = JSON.parse(t);
|
|
2365
|
-
if (typeof e == `string`) try {
|
|
2366
|
-
return JSON.parse(e);
|
|
2367
|
-
} catch {
|
|
2368
|
-
return e;
|
|
2369
|
-
}
|
|
2370
|
-
return e;
|
|
2371
|
-
} catch {
|
|
2372
|
-
return e;
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
function tt(e, t, n) {
|
|
2376
|
-
switch (t) {
|
|
2377
|
-
case J.STRING: return typeof e == `string` ? e.replace(/^"(.*)"$/, `$1`) : e;
|
|
2378
|
-
case J.INT: return Number.parseInt(String(e), 10);
|
|
2379
|
-
case J.DOUBLE: return Number.parseFloat(String(e));
|
|
2380
|
-
case J.BOOL: return String(e).toLowerCase() === `true`;
|
|
2381
|
-
default: return n && t.startsWith(`Rhino.Geometry.`) ? Ze(e, t, n) : e;
|
|
2382
|
-
}
|
|
2383
|
-
}
|
|
2384
|
-
function Y(e, t, n, r) {
|
|
2385
|
-
if (typeof e.data != `string`) return e.data;
|
|
2386
|
-
let i = n ? et(e.data) : e.data;
|
|
2387
|
-
return n && t.includes(Qe) ? nt(i) ?? i : tt(i, t, r);
|
|
2388
|
-
}
|
|
2389
|
-
function nt(t) {
|
|
2390
|
-
if (!t || typeof t != `object`) return null;
|
|
2391
|
-
let n = c(t, `fileName`), i = c(t, `fileType`), a = c(t, `subFolder`), o = c(t, `isBase64Encoded`);
|
|
2392
|
-
if (typeof n != `string` || typeof i != `string` || typeof a != `string` || !l(t, `data`) || typeof o != `boolean` && typeof o != `string`) return null;
|
|
2393
|
-
let s = c(t, `metadata`);
|
|
2394
|
-
return {
|
|
2395
|
-
fileName: n,
|
|
2396
|
-
fileType: i,
|
|
2397
|
-
data: c(t, `data`),
|
|
2398
|
-
isBase64Encoded: Q$1(o),
|
|
2399
|
-
subFolder: a,
|
|
2400
|
-
...s ? { metadata: s } : {}
|
|
2401
|
-
};
|
|
2402
|
-
}
|
|
2403
|
-
function X(t) {
|
|
2404
|
-
let n = c(t, `values`);
|
|
2405
|
-
return Array.isArray(n) ? n : [];
|
|
2406
|
-
}
|
|
2407
|
-
function Z(e) {
|
|
2408
|
-
return typeof e.type == `string` ? e.type : ``;
|
|
2409
|
-
}
|
|
2410
|
-
function Q(e, t) {
|
|
2411
|
-
if (e && typeof e == `object`) {
|
|
2412
|
-
for (let n of Object.values(e)) if (Array.isArray(n)) for (let e of n) e && typeof e == `object` && t(e);
|
|
2413
|
-
}
|
|
2414
|
-
}
|
|
2415
|
-
function rt(t, n = false, r = {}) {
|
|
2416
|
-
let { parseValues: i = true, rhino: a, stringOnly: o = false } = r, s = {}, c$2 = /* @__PURE__ */ new Set();
|
|
2417
|
-
for (let r of X(t)) {
|
|
2418
|
-
let t = c(r, `paramName`);
|
|
2419
|
-
Q(c(r, `innerTree`), (e) => {
|
|
2420
|
-
let r = Z(e);
|
|
2421
|
-
if ($e(r, o)) return;
|
|
2422
|
-
let l = n ? e.id : t;
|
|
2423
|
-
if (!l) return;
|
|
2424
|
-
let u = Y(e, r, i, a);
|
|
2425
|
-
Object.prototype.hasOwnProperty.call(s, l) ? c$2.has(l) ? s[l].push(u) : (s[l] = [s[l], u], c$2.add(l)) : x(s, l, u);
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
return {
|
|
2429
|
-
values: s,
|
|
2430
|
-
dispose: () => Je(s)
|
|
2431
|
-
};
|
|
2432
|
-
}
|
|
2433
|
-
function it(t) {
|
|
2434
|
-
let n = [];
|
|
2435
|
-
for (let r of X(t)) Q(c(r, `innerTree`), (e) => {
|
|
2436
|
-
if (!Z(e).includes(Qe)) return;
|
|
2437
|
-
let t = nt(et(e.data));
|
|
2438
|
-
t && n.push(t);
|
|
2439
|
-
});
|
|
2440
|
-
return n;
|
|
2441
|
-
}
|
|
2442
|
-
function at(t, n, r = {}) {
|
|
2443
|
-
let { parseValues: i = true, rhino: a, stringOnly: o = false } = r;
|
|
2444
|
-
for (let r of X(t)) {
|
|
2445
|
-
let t = c(r, `innerTree`), s = false;
|
|
2446
|
-
if (`byName` in n) {
|
|
2447
|
-
if (c(r, `paramName`) !== n.byName) continue;
|
|
2448
|
-
s = true;
|
|
2449
|
-
}
|
|
2450
|
-
let c$3 = [];
|
|
2451
|
-
if (Q(t, (e) => {
|
|
2452
|
-
if (`byId` in n) {
|
|
2453
|
-
if (e.id !== n.byId) return;
|
|
2454
|
-
s = true;
|
|
2455
|
-
}
|
|
2456
|
-
let t = Z(e);
|
|
2457
|
-
$e(t, o) || c$3.push(Y(e, t, i, a));
|
|
2458
|
-
}), s) return c$3.length === 0 ? void 0 : c$3.length === 1 ? c$3[0] : c$3;
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
var ot = class {
|
|
2462
|
-
response;
|
|
2463
|
-
constructor(e) {
|
|
2464
|
-
this.response = e;
|
|
2465
|
-
}
|
|
2466
|
-
getValues(e = false, t = {}) {
|
|
2467
|
-
return rt(this.response, e, t);
|
|
2468
|
-
}
|
|
2469
|
-
getValue(e, t) {
|
|
2470
|
-
return at(this.response, e, t);
|
|
2471
|
-
}
|
|
2472
|
-
async getAndDownloadFiles(e, t) {
|
|
2473
|
-
await Y$1(it(this.response), e, t);
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
function st(t) {
|
|
2477
|
-
return (Array.isArray(t) ? t : [t]).map((t) => ({
|
|
2478
|
-
schemas: c(t, `schemas`),
|
|
2479
|
-
error: c(t, `error`)
|
|
2480
|
-
}));
|
|
2481
|
-
}
|
|
2482
|
-
var ct = /* @__PURE__ */ new Set([
|
|
2483
|
-
`options`,
|
|
2484
|
-
`defaultOptions`,
|
|
2485
|
-
`values`
|
|
2486
|
-
]);
|
|
2487
|
-
var lt = (e) => e >= `A` && e <= `Z`;
|
|
2488
|
-
function ut(e) {
|
|
2489
|
-
if (e.length === 0 || !lt(e[0])) return e;
|
|
2490
|
-
let t = 0;
|
|
2491
|
-
for (; t < e.length && lt(e[t]);) t++;
|
|
2492
|
-
return t > 1 && t < e.length && t--, e.slice(0, t).toLowerCase() + e.slice(t);
|
|
2493
|
-
}
|
|
2494
|
-
function dt(e) {
|
|
2495
|
-
return $(e);
|
|
2496
|
-
}
|
|
2497
|
-
function $(e) {
|
|
2498
|
-
if (Array.isArray(e)) return e.map($);
|
|
2499
|
-
if (typeof e != `object` || !e) return e;
|
|
2500
|
-
let t = {};
|
|
2501
|
-
for (let [n, r] of Object.entries(e)) {
|
|
2502
|
-
let e = ut(n);
|
|
2503
|
-
x(t, e, ct.has(e) ? r : $(r));
|
|
2504
|
-
}
|
|
2505
|
-
return t;
|
|
2506
|
-
}
|
|
2507
|
-
var ft = class r {
|
|
2508
|
-
innerTree;
|
|
2509
|
-
paramName;
|
|
2510
|
-
constructor(e) {
|
|
2511
|
-
this.paramName = e, this.innerTree = {};
|
|
2512
|
-
}
|
|
2513
|
-
append(e, t) {
|
|
2514
|
-
let n = this.innerTree[r.formatPathString(e)] ??= [];
|
|
2515
|
-
for (let e of t) n.push({ data: r.serializeValue(e) });
|
|
2516
|
-
return this;
|
|
2517
|
-
}
|
|
2518
|
-
fromDataTreeDefault(e) {
|
|
2519
|
-
this.innerTree = {};
|
|
2520
|
-
for (let [t, n] of Object.entries(e)) {
|
|
2521
|
-
if (!Array.isArray(n)) continue;
|
|
2522
|
-
let e = r.parsePathString(t);
|
|
2523
|
-
this.append(e, n);
|
|
2524
|
-
}
|
|
2525
|
-
return this;
|
|
2526
|
-
}
|
|
2527
|
-
appendFlat(e) {
|
|
2528
|
-
let t = Array.isArray(e) ? e : [e];
|
|
2529
|
-
return this.append([0], t);
|
|
2530
|
-
}
|
|
2531
|
-
flatten() {
|
|
2532
|
-
let e = [];
|
|
2533
|
-
for (let t of Object.values(this.innerTree)) if (Array.isArray(t)) for (let n of t) e.push(r.deserializeValue(n.data));
|
|
2534
|
-
return e;
|
|
2535
|
-
}
|
|
2536
|
-
toComputeFormat() {
|
|
2537
|
-
return {
|
|
2538
|
-
ParamName: this.paramName,
|
|
2539
|
-
InnerTree: this.innerTree
|
|
2540
|
-
};
|
|
2541
|
-
}
|
|
2542
|
-
getParamName() {
|
|
2543
|
-
return this.paramName;
|
|
2544
|
-
}
|
|
2545
|
-
static fromInputParams(e) {
|
|
2546
|
-
return r.fromValues(e.map((e) => ({
|
|
2547
|
-
paramName: e.nickname || `unnamed`,
|
|
2548
|
-
paramType: e.paramType,
|
|
2549
|
-
value: e.default,
|
|
2550
|
-
...`minimum` in e && {
|
|
2551
|
-
minimum: e.minimum,
|
|
2552
|
-
maximum: e.maximum
|
|
2553
|
-
}
|
|
2554
|
-
})));
|
|
2555
|
-
}
|
|
2556
|
-
static fromValues(e) {
|
|
2557
|
-
let t = [];
|
|
2558
|
-
for (let n of e) {
|
|
2559
|
-
let e = new r(n.paramName), a = r.itemCoercer(n);
|
|
2560
|
-
for (let [t, o] of r.branchesOf(n.value)) {
|
|
2561
|
-
let r = [];
|
|
2562
|
-
for (let e of o) {
|
|
2563
|
-
if (e == null) continue;
|
|
2564
|
-
let t = a(e);
|
|
2565
|
-
t === null ? i().warn(`${n.paramName}: dropped an item that is not a valid ${n.paramType}`) : r.push(t);
|
|
2566
|
-
}
|
|
2567
|
-
r.length > 0 && e.append(t, r);
|
|
2568
|
-
}
|
|
2569
|
-
Object.keys(e.innerTree).length > 0 && t.push(e.toComputeFormat());
|
|
2570
|
-
}
|
|
2571
|
-
return t;
|
|
2572
|
-
}
|
|
2573
|
-
static branchesOf(e) {
|
|
2574
|
-
return r.hasValidValue(e) ? C(e) ? Object.entries(e).map(([e, t]) => [r.parsePathString(e), t]) : [[[0], Array.isArray(e) ? e : [e]]] : [];
|
|
2575
|
-
}
|
|
2576
|
-
static itemCoercer(e) {
|
|
2577
|
-
let { paramName: t, minimum: n, maximum: i } = e, a = e.paramType.toLowerCase();
|
|
2578
|
-
return a === `number` || a === `integer` ? (e) => {
|
|
2579
|
-
let o = T(e);
|
|
2580
|
-
if (o === null) return null;
|
|
2581
|
-
let s = a === `integer` ? Math.round(o) : o;
|
|
2582
|
-
return r.clampValue(s, n, i, t);
|
|
2583
|
-
} : a === `boolean` ? E : (e) => e;
|
|
2584
|
-
}
|
|
2585
|
-
static replaceTreeValue(e, t, n) {
|
|
2586
|
-
let i = r.buildFromValue(t, n).toComputeFormat(), a = e.slice(), o = a.findIndex((e) => r.paramNameOf(e) === t);
|
|
2587
|
-
return o === -1 ? a.push(i) : a[o] = i, a;
|
|
2588
|
-
}
|
|
2589
|
-
static buildFromValue(e, t) {
|
|
2590
|
-
let n = new r(e);
|
|
2591
|
-
return C(t) ? n.fromDataTreeDefault(t) : n.appendFlat(t), n;
|
|
2592
|
-
}
|
|
2593
|
-
static getTree(t, n) {
|
|
2594
|
-
let i = t.find((e) => r.paramNameOf(e) === n);
|
|
2595
|
-
if (!i) return null;
|
|
2596
|
-
let a = /* @__PURE__ */ new Map(), o = c(i, `InnerTree`);
|
|
2597
|
-
if (!o || typeof o != `object`) return a;
|
|
2598
|
-
for (let [e, t] of Object.entries(o)) Array.isArray(t) && a.set(e, t.map((e) => e?.data === void 0 ? null : r.deserializeValue(e.data)));
|
|
2599
|
-
return a;
|
|
2600
|
-
}
|
|
2601
|
-
static getTreeValue(e$21, i) {
|
|
2602
|
-
let a = r.getTree(e$21, i);
|
|
2603
|
-
if (!a || a.size === 0) return null;
|
|
2604
|
-
if (a.size > 1) throw new t(`"${i}" has ${a.size} branches; read it with TreeBuilder.getTree`, e.INVALID_INPUT, { context: {
|
|
2605
|
-
paramName: i,
|
|
2606
|
-
branchCount: a.size
|
|
2607
|
-
} });
|
|
2608
|
-
let [o] = a.values();
|
|
2609
|
-
return o.length === 0 ? null : o.length === 1 ? o[0] : o;
|
|
2610
|
-
}
|
|
2611
|
-
static paramNameOf(t) {
|
|
2612
|
-
return c(t, `ParamName`);
|
|
2613
|
-
}
|
|
2614
|
-
static parsePathString(e$22) {
|
|
2615
|
-
let r = e$22.match(S);
|
|
2616
|
-
if (!r) throw new t(`Invalid Grasshopper tree path: "${e$22}". Expected "{}", "{0}", or "{0;1;2}" (negative indices allowed, no empty segments).`, e.INVALID_INPUT, { context: { pathStr: e$22 } });
|
|
2617
|
-
return r[1] ? r[1].split(`;`).map(Number) : [];
|
|
2618
|
-
}
|
|
2619
|
-
static formatPathString(e) {
|
|
2620
|
-
return `{${e.join(`;`)}}`;
|
|
2621
|
-
}
|
|
2622
|
-
static serializeValue(e) {
|
|
2623
|
-
return typeof e == `boolean` || typeof e == `number` || typeof e == `string` ? e : typeof e == `object` && e ? JSON.stringify(e) : String(e);
|
|
2624
|
-
}
|
|
2625
|
-
static deserializeValue(e) {
|
|
2626
|
-
if (typeof e != `string`) return e;
|
|
2627
|
-
if (e.startsWith(`{`) || e.startsWith(`[`)) try {
|
|
2628
|
-
return JSON.parse(e);
|
|
2629
|
-
} catch {
|
|
2630
|
-
return e;
|
|
2631
|
-
}
|
|
2632
|
-
let t = Number(e);
|
|
2633
|
-
return Number.isFinite(t) && String(t) === e ? t : e === `true` || e !== `false` && e;
|
|
2634
|
-
}
|
|
2635
|
-
static hasValidValue(e) {
|
|
2636
|
-
return e == null ? false : typeof e == `string` || !(Array.isArray(e) && e.length === 0 || typeof e == `object` && !Array.isArray(e) && Object.keys(e).length === 0);
|
|
2637
|
-
}
|
|
2638
|
-
static clampValue(e, t, n, r) {
|
|
2639
|
-
let a = e;
|
|
2640
|
-
return t != null && a < t && (i().warn(`${r}: ${e} below min ${t}, clamping`), a = t), n != null && a > n && (i().warn(`${r}: ${e} above max ${n}, clamping`), a = n), a;
|
|
2641
|
-
}
|
|
2642
|
-
};
|
|
2643
|
-
|
|
2644
|
-
export { C$1 as C, Ge as G, K$1 as K, R$1 as R, U, X$1 as X, g as a, ot as b, dt as d, e, ft as f, ge$1 as g, o, st as s, t };
|
|
2645
|
-
//# sourceMappingURL=grasshopper.js-D7zLgb0m.js.map
|