@volter/game-editor 0.5.76 → 0.5.77
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/BUNDLED_NOTICES +22 -22
- package/catalog/entries/blender.json +2 -2
- package/catalog/entries/music.json +2 -2
- package/dist/.vite/manifest.json +2147 -2147
- package/dist/assets/{AssetBudgetPanel-BjFkm62b.js → AssetBudgetPanel-Dwpm-iyO.js} +3 -3
- package/dist/assets/{AudioViewer-Biiq4G_i.js → AudioViewer-CN_WyuPP.js} +1 -1
- package/dist/assets/{CanvasBoardDocument-8cse1rhp.js → CanvasBoardDocument--eRnJA3d.js} +1 -1
- package/dist/assets/{CanvasSceneViewport-Dq6iUvIm.js → CanvasSceneViewport-BwwYOosQ.js} +1 -1
- package/dist/assets/{ColorInput-Bp3RDfPM.js → ColorInput-fP6gD8GQ.js} +1 -1
- package/dist/assets/{EntityModelDocument-dwAxknxP.js → EntityModelDocument--Mnf5gfu.js} +1 -1
- package/dist/assets/{EnvironmentAssetDocument-C0m_nD7y.js → EnvironmentAssetDocument-JioL9Pmv.js} +1 -1
- package/dist/assets/{GameplaySessionTimeline-i55Cf0Er.js → GameplaySessionTimeline-BRl0PIim.js} +1 -1
- package/dist/assets/{ImageViewer-D-hxhDh9.js → ImageViewer-ET4Bwjzp.js} +1 -1
- package/dist/assets/InspectorObjectPreview-BvYcwQTS.js +1 -0
- package/dist/assets/{JsonAssetDocument-Dp1d3BJo.js → JsonAssetDocument-CVkHqdUd.js} +1 -1
- package/dist/assets/{LiveModuleDocument-BeXLUEGs.js → LiveModuleDocument-DLwna0kt.js} +1 -1
- package/dist/assets/{LutAssetDocument-PyDKly_a.js → LutAssetDocument-BdG_i8hr.js} +1 -1
- package/dist/assets/{ModelAssetDocument-DnuWFSZG.js → ModelAssetDocument-DTxbDhA6.js} +1 -1
- package/dist/assets/{NonThreeAuthoringBootstrap-BNKBCS1x.js → NonThreeAuthoringBootstrap-BZ4A6rPs.js} +1 -1
- package/dist/assets/{Object3DDocumentToolbar-nKqgkz_2.js → Object3DDocumentToolbar-COuKq3sB.js} +1 -1
- package/dist/assets/Object3DDocumentViewport-DcX529Vg.js +2 -0
- package/dist/assets/{Object3DPreview-CJ3chhw7.js → Object3DPreview-D_1vkB4L.js} +1 -1
- package/dist/assets/{OnlineAssetDetail-BHQPuBUu.js → OnlineAssetDetail-DvKNu8aC.js} +1 -1
- package/dist/assets/{PlayBar-B5de5J5O.js → PlayBar-DknzqPEC.js} +1 -1
- package/dist/assets/{QuarksAssetDocument-BF4Hv9rw.js → QuarksAssetDocument-Dc5JDyxV.js} +1 -1
- package/dist/assets/{ReactCanvasControls-RN0LHjKr.js → ReactCanvasControls-DircULTK.js} +1 -1
- package/dist/assets/{RootSelectionOverlay-C5bcCIxc.js → RootSelectionOverlay-D--07KbL.js} +1 -1
- package/dist/assets/{ShaderAssetDocument-CcKYQmv3.js → ShaderAssetDocument-D05qJkAZ.js} +1 -1
- package/dist/assets/{ShadowEditor-Ce6Kl6kF.js → ShadowEditor-BQ_4yLgQ.js} +1 -1
- package/dist/assets/{SourceAssetViewer-Bs8cdFyl.js → SourceAssetViewer-ubsXVAPL.js} +1 -1
- package/dist/assets/{StageHost-CV5bxQKM.js → StageHost-eSViLdbz.js} +2 -2
- package/dist/assets/{StoryPreviewMount-DDa8sXQF.js → StoryPreviewMount-Befs2jpi.js} +1 -1
- package/dist/assets/{ThreeBoardDocument-t_tDS-j-.js → ThreeBoardDocument-5MeNfCGF.js} +2 -2
- package/dist/assets/{ThreeIsolationSceneContent-BVDqkEYw.js → ThreeIsolationSceneContent-B1xdrbgO.js} +1 -1
- package/dist/assets/{ToolObject3DPreview-BssDJtC2.js → ToolObject3DPreview-D3D8hMNA.js} +1 -1
- package/dist/assets/{Toolbar-D9hmQICZ.js → Toolbar-BTun9j-K.js} +1 -1
- package/dist/assets/{TransientHint-DQ2Gxaf4.js → TransientHint-BjG5QZ7w.js} +1 -1
- package/dist/assets/{VideoViewer-DrfwGQxe.js → VideoViewer-CbsogTc0.js} +1 -1
- package/dist/assets/{ViewportShadingMenu-C4OjRF1K.js → ViewportShadingMenu-DXfHXJZb.js} +1 -1
- package/dist/assets/{active-ingest-mDJkad7M.js → active-ingest-B0RHbDkD.js} +2 -2
- package/dist/assets/{animation-clock-DwsrmSMb.js → animation-clock-Dkfj-UNQ.js} +1 -1
- package/dist/assets/{animation-mixers.service-D21IugKS.js → animation-mixers.service-BTbinFit.js} +1 -1
- package/dist/assets/{animation-timeline.utility-gdrRRmQH.js → animation-timeline.utility-BKZvFUv7.js} +1 -1
- package/dist/assets/{asset-budget-asset.menu-DIkyrxiU.js → asset-budget-asset.menu-CPLl16u9.js} +1 -1
- package/dist/assets/{asset-budget.action-B6VSstet.js → asset-budget.action-BDDyOQkl.js} +1 -1
- package/dist/assets/{asset-budget.document-DK6jg3Xw.js → asset-budget.document-CX7bz50G.js} +1 -1
- package/dist/assets/{asset-budget.menu-W4DmiUOF.js → asset-budget.menu-5S1Zzll8.js} +1 -1
- package/dist/assets/{asset-editor-persistence-0u6_ZcxG.js → asset-editor-persistence-AKvUtcfg.js} +1 -1
- package/dist/assets/{asset-loaders-BV19C60O.js → asset-loaders-BoVVLGeW.js} +1 -1
- package/dist/assets/{asset-preview-C0yI3iVN.js → asset-preview-C-SzfMmZ.js} +1 -1
- package/dist/assets/{audio-unlock.service-D5vphmzG.js → audio-unlock.service-Cu-KaqcU.js} +1 -1
- package/dist/assets/{audio.utility-xFa5jESm.js → audio.utility-BdMr9Tg8.js} +1 -1
- package/dist/assets/autoplay.service-CclAhFII.js +1 -0
- package/dist/assets/{babylon-authoring-adapter-BR-XIVWA.js → babylon-authoring-adapter-qNNPjc8Z.js} +1 -1
- package/dist/assets/{binding-resolver-DYyowJkn.js → binding-resolver-CGsJLZOI.js} +2 -2
- package/dist/assets/{blender-node-editor.document-CHrcqrAP.js → blender-node-editor.document-BdR4Vvi3.js} +1 -1
- package/dist/assets/{blender-properties-tab-HcIWs40_.js → blender-properties-tab-CCNa2VxG.js} +1 -1
- package/dist/assets/{blender-runtime-host-D-b3myuC.js → blender-runtime-host-D_r3dBBg.js} +1 -1
- package/dist/assets/{blender-runtime-skin-3ceIx59C.js → blender-runtime-skin-CbrjFtVl.js} +1 -1
- package/dist/assets/{blender-runtime.document-hEe-HzEh.js → blender-runtime.document-BeQ1ylTU.js} +1 -1
- package/dist/assets/{blender-timeline.document-BYW3OSne.js → blender-timeline.document-BQ6r2Eit.js} +1 -1
- package/dist/assets/{blender-uv-editor.document-BoY-LnsG.js → blender-uv-editor.document-CP9yR9fd.js} +1 -1
- package/dist/assets/{blender-version.status-mhySAeON.js → blender-version.status-Bu35OikW.js} +1 -1
- package/dist/assets/{blender.command-F4H2z-9A.js → blender.command-ClhAHbhS.js} +1 -1
- package/dist/assets/{board-guides-DbRT0CEe.js → board-guides-DUTllrm6.js} +1 -1
- package/dist/assets/{bridge.command-DN82OxFy.js → bridge.command-CFCb73nA.js} +3 -3
- package/dist/assets/{browserAll-Cqos0jz8.js → browserAll-CcEbt8pP.js} +1 -1
- package/dist/assets/{build-player.document-Dw0pIiG7.js → build-player.document-CHNcytS3.js} +1 -1
- package/dist/assets/{build-profiles.document-BCHdqkro.js → build-profiles.document-CfftHZEt.js} +1 -1
- package/dist/assets/{build-progress.status-C2MxELWF.js → build-progress.status-Ba7TtK8C.js} +1 -1
- package/dist/assets/{build-session-Dz6L1yYX.js → build-session-BVAVoaAo.js} +1 -1
- package/dist/assets/{build.action-BeAwlnc4.js → build.action-C4v62OGp.js} +1 -1
- package/dist/assets/{build.command-Ber5hdxC.js → build.command-DiOf0gsd.js} +1 -1
- package/dist/assets/{build.header-Db3MkFbi.js → build.header-Cc9F3_tw.js} +1 -1
- package/dist/assets/{build.menu-gmrap1c5.js → build.menu-C6m7wAB0.js} +1 -1
- package/dist/assets/{build.service-yMR_xJue.js → build.service-BD9CuqZ1.js} +1 -1
- package/dist/assets/{camera-D8mpcjZ8.js → camera-QoF2qQn9.js} +1 -1
- package/dist/assets/{camera-runtime.inspector-9VUNHoi7.js → camera-runtime.inspector-BPmJd9CX.js} +1 -1
- package/dist/assets/{canvas-design-mount-D87Wp0ZF.js → canvas-design-mount-QoLQihbE.js} +3 -3
- package/dist/assets/{canvas-entry-runtime-CagodwVN.js → canvas-entry-runtime-cJsqLXEp.js} +2 -2
- package/dist/assets/{canvas-preview-frames-BcRr18uI.js → canvas-preview-frames-CxHRaajp.js} +1 -1
- package/dist/assets/{canvas-story-capture.service-1_rOvKS7.js → canvas-story-capture.service-DUSsBMnw.js} +2 -2
- package/dist/assets/{capability-coverage-DgC2RhRJ.js → capability-coverage-DiBzUjdM.js} +1 -1
- package/dist/assets/{collaboration-presence-DBHNcl_z.js → collaboration-presence-Bj9ev5mU.js} +1 -1
- package/dist/assets/{collider-DZiCBf-9.js → collider-CE-VI_rc.js} +1 -1
- package/dist/assets/{component-board.service-DjeaGp6q.js → component-board.service-Bi8VA3L0.js} +2 -2
- package/dist/assets/{component-board.service-Bgh7n9K7.js → component-board.service-CzROar7A.js} +2 -2
- package/dist/assets/{component-board.service-BhoXZiYw.js → component-board.service-Hbl9EZl9.js} +2 -2
- package/dist/assets/{component-contracts.service-gR_E-0BI.js → component-contracts.service-CCaAPGw2.js} +1 -1
- package/dist/assets/{component-instance-root-UahhIVd1.js → component-instance-root-BZXekKMG.js} +1 -1
- package/dist/assets/{component-verbs.command-DKhuFU9T.js → component-verbs.command-Db0sUk65.js} +1 -1
- package/dist/assets/{component-verbs.service-dX5b-jB0.js → component-verbs.service-DuEY_Ofq.js} +1 -1
- package/dist/assets/{config-BJ-W1piM.js → config-DApMxCjE.js} +2 -2
- package/dist/assets/{configurations-vOazo-km.js → configurations-B4fNBX4_.js} +1 -1
- package/dist/assets/{connection.status-OSyv5xrS.js → connection.status-D7URFwNX.js} +1 -1
- package/dist/assets/{constraints.inspector-BFv1pf4i.js → constraints.inspector-C-rz7qm2.js} +1 -1
- package/dist/assets/{content-bounds-CMk1llDT.js → content-bounds-IMXYkN3x.js} +1 -1
- package/dist/assets/{contract-system-adapters-DQkiwEeo.js → contract-system-adapters-DAgN02qJ.js} +1 -1
- package/dist/assets/{coverage.service-BlQSjwvW.js → coverage.service-BWYLFkJZ.js} +1 -1
- package/dist/assets/{create-runtime-DginHEVG.js → create-runtime-B4VUkWmh.js} +1 -1
- package/dist/assets/{curve-BRqZ3pkT.js → curve-nsmv7c1I.js} +1 -1
- package/dist/assets/{data-asset-BHl-WMH5.js → data-asset-BQCPKu13.js} +1 -1
- package/dist/assets/{data-ref-Deg6U-uB.js → data-ref-CeTcnM3h.js} +1 -1
- package/dist/assets/{debug-bridge-B-RNnYQh.js → debug-bridge-Cjo3HKqn.js} +1 -1
- package/dist/assets/{debug-registry-Bt57rVDa.js → debug-registry-D4XNZdHk.js} +1 -1
- package/dist/assets/{deferred-ingest-play-BTXd4idB.js → deferred-ingest-play-CrBHt1VV.js} +2 -2
- package/dist/assets/{design-time-canvas-mount-B8zgbaxT.js → design-time-canvas-mount-Dzu7gMRL.js} +2 -2
- package/dist/assets/{design-time-layers-CS6QlGFz.js → design-time-layers-BJZJy_6E.js} +1 -1
- package/dist/assets/{design-time-mount.service-BQnYPfl5.js → design-time-mount.service-BZMMh_B1.js} +2 -2
- package/dist/assets/{design-time-mount.service-atwTQBje.js → design-time-mount.service-Bzs3PQ3q.js} +2 -2
- package/dist/assets/{design-time-react-mount-Cx9MByrM.js → design-time-react-mount-C2ychNs2.js} +1 -1
- package/dist/assets/{document-preview-three-C7iFOvGJ.js → document-preview-three-BxNY0561.js} +1 -1
- package/dist/assets/{dom-authoring-adapter-Bd-tH6WO.js → dom-authoring-adapter-BZtIjxmP.js} +1 -1
- package/dist/assets/{draco3d-DOXqkx8U.js → draco3d-j0uDqveB.js} +1 -1
- package/dist/assets/{edit-mode-audio.service-Cbzqj9Jy.js → edit-mode-audio.service-cDUTJL37.js} +1 -1
- package/dist/assets/{edit-mode-authoring-DgXUzfvm.js → edit-mode-authoring-BGGW26LN.js} +1 -1
- package/dist/assets/{edit-mode-networking.service-BSPRDhil.js → edit-mode-networking.service-DBB67UkE.js} +1 -1
- package/dist/assets/{editor-api-CqotsaJD.js → editor-api-NUTZNRyn.js} +1 -1
- package/dist/assets/{editor-layers-hAcvLPMn.js → editor-layers-BpAhxn0P.js} +1 -1
- package/dist/assets/{editor-shell-store-DkNOWUFp.js → editor-shell-store-C04XLLU-.js} +1 -1
- package/dist/assets/{entity-object-DR7d2cxz.js → entity-object-DsAYI3gJ.js} +1 -1
- package/dist/assets/{extend-D86gXz81.js → extend-BvNGT6qQ.js} +1 -1
- package/dist/assets/{fork-menu-C3I645ug.js → fork-menu-B3qakgix.js} +1 -1
- package/dist/assets/{frame-debugger-store-VMdNVIQ5.js → frame-debugger-store-BQ7OaD2z.js} +1 -1
- package/dist/assets/{game-contract-seams-DiQ1tlKC.js → game-contract-seams-Kcb8YGio.js} +1 -1
- package/dist/assets/{game-css-scope-transform-CG13_2aB.js → game-css-scope-transform-CHdOIM_x.js} +1 -1
- package/dist/assets/{game-document.service-BRVDb71D.js → game-document.service-CAx5m7Ne.js} +1 -1
- package/dist/assets/{game-eval.command-C2MbVIbA.js → game-eval.command-CHg0bsCV.js} +1 -1
- package/dist/assets/{game-module-access-DtJAG_Jd.js → game-module-access-zqg58xYk.js} +1 -1
- package/dist/assets/{game-network-BkkoOr_U.js → game-network-C3D1ib_r.js} +3 -3
- package/dist/assets/{gameplay-export-B1J_8CZs.js → gameplay-export-DiUUF7OL.js} +1 -1
- package/dist/assets/{gameplay-replay-C7eBHV93.js → gameplay-replay-BOpWtguL.js} +1 -1
- package/dist/assets/{gameplay.command-tD6AQg5i.js → gameplay.command-eG5IvOZD.js} +1 -1
- package/dist/assets/{generation-jobs-Cuwdi3KY.js → generation-jobs-DCZm-7-c.js} +1 -1
- package/dist/assets/{generation.service-MiJpkT-M.js → generation.service-DcF_tuiA.js} +1 -1
- package/dist/assets/{generations-BO6t7knA.js → generations-Cij1e8K5.js} +1 -1
- package/dist/assets/{generations.status-Bz5FxF5L.js → generations.status-D6Xkxwnu.js} +1 -1
- package/dist/assets/{hierarchy-marks--TolmVW5.js → hierarchy-marks-MeNgbwiP.js} +1 -1
- package/dist/assets/{hosted-asset-materialization-BlIle4kF.js → hosted-asset-materialization-PWF6teYQ.js} +1 -1
- package/dist/assets/{index-wmo5yZwB.js → index-2B6cj0iP.js} +1 -1
- package/dist/assets/{index-CQ6JiiuQ.js → index-BFwx6NRh.js} +1 -1
- package/dist/assets/{index-BjdG8RNO.js → index-BV0Qqo83.js} +1 -1
- package/dist/assets/{index-BFKwWsNe.js → index-C2Ir9SpE.js} +1 -1
- package/dist/assets/{index-CRHTCgov.js → index-DvO8W-nn.js} +1 -1
- package/dist/assets/{index-CWR8N1pt.js → index-GOaZz_UJ.js} +7 -7
- package/dist/assets/{index-C1ihMnWo.js → index-GyJvVDDT.js} +1 -1
- package/dist/assets/{index-B778_TTn.js → index-i3_nCWlL.js} +2 -2
- package/dist/assets/{index-vCEuerlf.js → index-s_IF6Bxe.js} +1 -1
- package/dist/assets/{inference-diagnostics-GP--Nnde.js → inference-diagnostics-DH6OpJZI.js} +1 -1
- package/dist/assets/{ingest-boot-viewport-DaCKZ5dN.js → ingest-boot-viewport-BnE3u7YT.js} +1 -1
- package/dist/assets/{ingest-siblings-ZeIgNmQW.js → ingest-siblings-B_5SsNEz.js} +1 -1
- package/dist/assets/{ingest-source-persistence-DOhZMV-e.js → ingest-source-persistence-DM9T5S4m.js} +1 -1
- package/dist/assets/{ingest.service-DsHy_aP9.js → ingest.service-COWbKrQI.js} +1 -1
- package/dist/assets/{inspect-DYloFXZZ.js → inspect-CD61yjth.js} +1 -1
- package/dist/assets/instances.command-CxgGOKUm.js +1 -0
- package/dist/assets/{json-history-resource-DwQA9nJ3.js → json-history-resource-Cby5jKsw.js} +1 -1
- package/dist/assets/{layered-pick-Dntz2X63.js → layered-pick-B3AjYd-G.js} +1 -1
- package/dist/assets/{light-B6jvsaum.js → light-B7BXFfR-.js} +1 -1
- package/dist/assets/{live-project-verbs-CS-RzAOM.js → live-project-verbs-DR_q7RK-.js} +1 -1
- package/dist/assets/{machine.document-Cd2TMllI.js → machine.document-DPYrwmW6.js} +1 -1
- package/dist/assets/{machines.finder-CpruCp4e.js → machines.finder-CwpvHTlH.js} +1 -1
- package/dist/assets/{material-CgxQuNN9.js → material-XjlLI_f7.js} +1 -1
- package/dist/assets/{material-factory-M3dPwynz.js → material-factory-CsiepVqC.js} +1 -1
- package/dist/assets/{mesh-CWr_mbES.js → mesh-2zwQAuCC.js} +1 -1
- package/dist/assets/{model-asset-sections.service-Ca9mHoId.js → model-asset-sections.service-9-sm-NaU.js} +1 -1
- package/dist/assets/{model-inspection-tw_q6BVp.js → model-inspection-B0GymTL8.js} +1 -1
- package/dist/assets/{model-thumbnail-iK5a9are.js → model-thumbnail-C6xWKVgL.js} +1 -1
- package/dist/assets/{models.finder-mQOSiUkv.js → models.finder-4xaZ_CWd.js} +1 -1
- package/dist/assets/{module-mode-Dn2A9vZ8.js → module-mode-QCybxWRW.js} +2 -2
- package/dist/assets/{mount-canvas-ingest-root-Bz8WtGxO.js → mount-canvas-ingest-root-C4nQ82CG.js} +2 -2
- package/dist/assets/{mount-dom-ingest-root-BxHQUCK7.js → mount-dom-ingest-root-CyJlqUpj.js} +2 -2
- package/dist/assets/{mount-ingest-root-B5RoLjsS.js → mount-ingest-root-C8dDNkUg.js} +2 -2
- package/dist/assets/{mount-manifest-Br9sXxSh.js → mount-manifest-z3xK0qgx.js} +1 -1
- package/dist/assets/{mount-three-ingest-root-BlesdWgf.js → mount-three-ingest-root-CHZLDOUt.js} +1 -1
- package/dist/assets/{mounted-authoring-DxwkC5eG.js → mounted-authoring-CZw66UYV.js} +1 -1
- package/dist/assets/{mounted-story-viewport-source-DWO5iGCA.js → mounted-story-viewport-source-DP4yrSoT.js} +1 -1
- package/dist/assets/{native-debug-module-BzGNl0wd.js → native-debug-module-qMZlzFCw.js} +1 -1
- package/dist/assets/{navigation-CVaWWV0F.js → navigation-BneGZzZt.js} +1 -1
- package/dist/assets/{navmesh.menu-BI3X9HFW.js → navmesh.menu-Bh4FuG-U.js} +1 -1
- package/dist/assets/{navmesh.service-BLjwRhos.js → navmesh.service-BB71x7KW.js} +1 -1
- package/dist/assets/network-observer.service-BKOQ_E--.js +1 -0
- package/dist/assets/{network.utility-CwTm122D.js → network.utility-DBva0eo8.js} +1 -1
- package/dist/assets/{object3d-document-session-registry-B8HFpoFw.js → object3d-document-session-registry-q7c_gezv.js} +2 -2
- package/dist/assets/{oid-transform-CdVaNpRJ.js → oid-transform-tKqLhlWg.js} +1 -1
- package/dist/assets/{particles-DuhhAOtp.js → particles-gUgFtSRY.js} +1 -1
- package/dist/assets/{pixi-authoring-adapter-CV6L9eNi.js → pixi-authoring-adapter-Cd5O2LTH.js} +1 -1
- package/dist/assets/{pixi-live-write-target-C4I8dXDl.js → pixi-live-write-target-DHzgc22z.js} +1 -1
- package/dist/assets/{play.command-ClzQRct1.js → play.command-BxgvkWfL.js} +2 -2
- package/dist/assets/{presentation-DlVtoHMl.js → presentation-C5hzwpZR.js} +1 -1
- package/dist/assets/{product-CraiIl1J.js → product-CKGKSgsU.js} +1 -1
- package/dist/assets/{profiler.action-CwP9qESg.js → profiler.action-S08Up0JS.js} +1 -1
- package/dist/assets/{profiler.menu-CQlk1lY6.js → profiler.menu-Dy4i7lwO.js} +1 -1
- package/dist/assets/{profiler.utility-JyGxwO9P.js → profiler.utility-CC8CJLy8.js} +1 -1
- package/dist/assets/{project-authoring-session-dtUdDaEF.js → project-authoring-session-BXLqBDUm.js} +2 -2
- package/dist/assets/{properties-bone-constraints.inspector-BQTx6zCz.js → properties-bone-constraints.inspector-BX2GxZq2.js} +1 -1
- package/dist/assets/{properties-bone.inspector-OHB1Ftql.js → properties-bone.inspector-CCLVVUtG.js} +1 -1
- package/dist/assets/{properties-collection.inspector-Cxa7JWnP.js → properties-collection.inspector-CKbzSvCC.js} +1 -1
- package/dist/assets/{properties-constraints.inspector-han-PJPy.js → properties-constraints.inspector-DV1P6hUd.js} +1 -1
- package/dist/assets/{properties-data.inspector-BxoOhIg0.js → properties-data.inspector-BMaGtE_w.js} +1 -1
- package/dist/assets/{properties-material.inspector-Cv96LV30.js → properties-material.inspector-BtesjppG.js} +1 -1
- package/dist/assets/{properties-modifiers.inspector-C0epFMUS.js → properties-modifiers.inspector-MiHOsiuf.js} +1 -1
- package/dist/assets/{properties-object.inspector-BUXSTujy.js → properties-object.inspector-Ct8masbP.js} +1 -1
- package/dist/assets/{properties-output.inspector-GxdQIydV.js → properties-output.inspector-CVNr0tSt.js} +1 -1
- package/dist/assets/{properties-particles.inspector-BM6WWqWy.js → properties-particles.inspector-EMFa11PY.js} +1 -1
- package/dist/assets/{properties-physics.inspector-2x9sbFhN.js → properties-physics.inspector-CACxDEwm.js} +1 -1
- package/dist/assets/{properties-render.inspector-BcS8R6AN.js → properties-render.inspector-CtijIdsj.js} +1 -1
- package/dist/assets/{properties-scene.inspector-B1NjeWaL.js → properties-scene.inspector-oEdDyqg4.js} +1 -1
- package/dist/assets/{properties-texture.inspector-C22vj7XZ.js → properties-texture.inspector-C_gpMJPm.js} +1 -1
- package/dist/assets/{properties-view-layer.inspector-BpSr6tW3.js → properties-view-layer.inspector-iXXhbErN.js} +1 -1
- package/dist/assets/{properties-world.inspector-qGFtcwE6.js → properties-world.inspector-BTG_6enJ.js} +1 -1
- package/dist/assets/{r3f-design-session-sj0vggGh.js → r3f-design-session-BpFmOBy3.js} +2 -2
- package/dist/assets/{r3f-physics-binding-BYb1UWMK.js → r3f-physics-binding-Dc4KkqeK.js} +1 -1
- package/dist/assets/{r3f-source-authoring-adapter-C9WYtPIa.js → r3f-source-authoring-adapter-Bqqwlt5P.js} +1 -1
- package/dist/assets/{react-canvas-navigation-CuDrmDyL.js → react-canvas-navigation-CHqEpva-.js} +1 -1
- package/dist/assets/{react-inspector.service-BgV68KJk.js → react-inspector.service-BofSBcrA.js} +1 -1
- package/dist/assets/{react-story-board-ClnkbDTi.js → react-story-board-DA2YLI8m.js} +1 -1
- package/dist/assets/{react-three-rapier.esm-C-ciX4k0.js → react-three-rapier.esm-CQZa_73g.js} +1 -1
- package/dist/assets/{react-world-authoring-adapter-BDaxJTc0.js → react-world-authoring-adapter-4sStON8E.js} +1 -1
- package/dist/assets/{realm-services-Cw3sONfz.js → realm-services-DbZYHQSf.js} +1 -1
- package/dist/assets/{reflection-probe-capture.inspector-CNoJsSEi.js → reflection-probe-capture.inspector-DNvA6bnY.js} +1 -1
- package/dist/assets/{registry-a1gjDpWd.js → registry-DBlUxvdQ.js} +1 -1
- package/dist/assets/{relative-import-specifier-BndRUUAb.js → relative-import-specifier-B0yhWWcj.js} +1 -1
- package/dist/assets/{render-env-qYy53OAK.js → render-env-DdFrpGB_.js} +1 -1
- package/dist/assets/{render-features-B492w-Yf.js → render-features-B35P-in2.js} +1 -1
- package/dist/assets/{render-settings-BjcdKCfd.js → render-settings-C81L61oc.js} +1 -1
- package/dist/assets/{resolve-three-CszFCyl-.js → resolve-three-CM8Cg4vF.js} +3 -3
- package/dist/assets/{root-seam-contract-Bd-XAGBB.js → root-seam-contract-BUz-MUf1.js} +1 -1
- package/dist/assets/{run-selection-BpGDhn70.js → run-selection-BdiLPzVf.js} +1 -1
- package/dist/assets/{scene-capture-CAFYvzhb.js → scene-capture-Diz1G192.js} +1 -1
- package/dist/assets/{scene-document.service-DMgXwzwD.js → scene-document.service-DfXZsaKM.js} +2 -2
- package/dist/assets/{scene-framing-Cc0t4Ghk.js → scene-framing-B5dto0bO.js} +1 -1
- package/dist/assets/{seeded-random-CaqCbq6t.js → seeded-random-WDTtjPze.js} +1 -1
- package/dist/assets/{setup-renderer-CJwc7fKC.js → setup-renderer-D9SD_Wht.js} +1 -1
- package/dist/assets/{source-object3d-authoring-adapter-JfFg_SXG.js → source-object3d-authoring-adapter-D6uGhge2.js} +1 -1
- package/dist/assets/{source-persistence-backend-lDOQZAuY.js → source-persistence-backend-CxVBXGoQ.js} +1 -1
- package/dist/assets/{stage-keyboard-Cn3D4l1C.js → stage-keyboard-BPb1swaM.js} +1 -1
- package/dist/assets/{stage-overlay-set--uhDjwES.js → stage-overlay-set-DRa6xB93.js} +1 -1
- package/dist/assets/{stage-presence-markers-pGfG8Ga3.js → stage-presence-markers-CGxHoE5g.js} +1 -1
- package/dist/assets/{stage-transform-tools-C0s5SeLW.js → stage-transform-tools-CQuG66LW.js} +1 -1
- package/dist/assets/{standard-viewport-dressing-XRUmVcY2.js → standard-viewport-dressing-D4bfoK0I.js} +1 -1
- package/dist/assets/{state-watch.action-Df9RonGq.js → state-watch.action-DPVKmPwL.js} +1 -1
- package/dist/assets/{state-watch.menu-CPUcUe-D.js → state-watch.menu-DpISV21j.js} +1 -1
- package/dist/assets/{state-watch.utility-B8cagqBb.js → state-watch.utility-DwKoTnVp.js} +1 -1
- package/dist/assets/{story-capture-B2BjHSLc.js → story-capture-Bzwbk_mv.js} +1 -1
- package/dist/assets/{story-documents-SnoNBd2D.js → story-documents-De1zQ6Qz.js} +1 -1
- package/dist/assets/{story-documents.service-DBmRjRB0.js → story-documents.service-6eOlV6NP.js} +1 -1
- package/dist/assets/{story-documents.service-b-luEx4m.js → story-documents.service-8XTTuO7s.js} +1 -1
- package/dist/assets/{story-media-presence-BycZ_Z6D.js → story-media-presence-DpEeszWv.js} +1 -1
- package/dist/assets/{story-pixi-preview-B388EEvg.js → story-pixi-preview-BEyaPLy0.js} +1 -1
- package/dist/assets/{story-presentation-HlppZ46F.js → story-presentation-CjTxyaxs.js} +1 -1
- package/dist/assets/{story-three-preview-B-jMiM2k.js → story-three-preview-abAavxSh.js} +2 -2
- package/dist/assets/{studio-environment-C79giSrc.js → studio-environment-BiC6OVkT.js} +1 -1
- package/dist/assets/{surface-state-DKi9MDjb.js → surface-state-CUfqJeMb.js} +1 -1
- package/dist/assets/{syntactic-prop-specs-C3mL8uum.js → syntactic-prop-specs-DTioDasF.js} +1 -1
- package/dist/assets/{team-playtest.service-oLwYS-Hr.js → team-playtest.service-GRj4yKy4.js} +1 -1
- package/dist/assets/{three-fHebWwy_.js → three-CQcV_QdT.js} +1 -1
- package/dist/assets/{three-authoring-adapter-CRLQO6sr.js → three-authoring-adapter-D3qfWIRk.js} +1 -1
- package/dist/assets/three-authoring.service-C2oNRt7a.js +2 -0
- package/dist/assets/{three-ingest-runtime-s9ENzn3K.js → three-ingest-runtime-E3dJH9KF.js} +1 -1
- package/dist/assets/{three-integration-Cn9aysL2.js → three-integration-BjEyDiTB.js} +2 -2
- package/dist/assets/three-integration.service-n5uKl57k.js +1 -0
- package/dist/assets/{three-projection-core-DfVT5WpU.js → three-projection-core-CkmVzWhv.js} +1 -1
- package/dist/assets/{three-state-BlAc2cU5.js → three-state-CzjS3Z7g.js} +1 -1
- package/dist/assets/{three-story-capture.service-CTQwjZMC.js → three-story-capture.service-D-1pij9x.js} +2 -2
- package/dist/assets/{three-story-model-CHbWQcAh.js → three-story-model-B1sz0NKf.js} +1 -1
- package/dist/assets/{three-viewport-presentation-25xuss6W.js → three-viewport-presentation-OxBEdgIP.js} +1 -1
- package/dist/assets/{transform-mode-request-CissAw5x.js → transform-mode-request-DO67Jvcm.js} +1 -1
- package/dist/assets/{transport-strip-DFf-U2y-.js → transport-strip-D55r6FTk.js} +1 -1
- package/dist/assets/transport.header-hkELPlfF.js +1 -0
- package/dist/assets/{tuples-D29lpxvy.js → tuples-CJ18T3dX.js} +1 -1
- package/dist/assets/{ui-board-document-Byhp9wy1.js → ui-board-document-DEx342dp.js} +2 -2
- package/dist/assets/{user-data-DjFdlyHN.js → user-data-BDBZj06-.js} +1 -1
- package/dist/assets/{utility-view-state-BfTEKwyx.js → utility-view-state-B7prGtP-.js} +1 -1
- package/dist/assets/{viewport-door-Dh7IGceC.js → viewport-door-Slxb_SvE.js} +1 -1
- package/dist/assets/{viewport-root-presentation-CQ7jhPEd.js → viewport-root-presentation-B6vzusDX.js} +1 -1
- package/dist/assets/{viewport-surface-status-OCXNZYo7.js → viewport-surface-status-C4UZ_Uq4.js} +1 -1
- package/dist/assets/{webworkerAll-C7fvfaXh.js → webworkerAll-DO15AziI.js} +1 -1
- package/dist/assets/{workspace-arrangement-Dyq55Dxr.js → workspace-arrangement-BjHQJUoD.js} +1 -1
- package/dist/assets/{world-documents-VeT5j_jT.js → world-documents-CuBxaDZx.js} +1 -1
- package/dist/assets/{world-root-stage-binding-CfA3fpQN.js → world-root-stage-binding-Bn0b7XsL.js} +1 -1
- package/dist/assets/{xstate-animation-binding-D3afNlpg.js → xstate-animation-binding-I-GEhYkk.js} +1 -1
- package/dist/assets/{xstate-animation-meta-Bvk0pGex.js → xstate-animation-meta-Io__GNze.js} +1 -1
- package/dist-node/cli.js +17 -17
- package/package.json +17 -17
- package/template/package.json +1 -1
- package/dist/assets/InspectorObjectPreview-D7sPBP8Z.js +0 -1
- package/dist/assets/Object3DDocumentViewport-CkpRseZm.js +0 -2
- package/dist/assets/autoplay.service-7kddHqyX.js +0 -1
- package/dist/assets/instances.command-NnpPzefK.js +0 -1
- package/dist/assets/network-observer.service-b0aoJomO.js +0 -1
- package/dist/assets/three-authoring.service-ZppuT2yH.js +0 -2
- package/dist/assets/three-integration.service-BIdzYsdo.js +0 -1
- package/dist/assets/transport.header-DYRNEz0o.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as a}from"./index-
|
|
1
|
+
import{a5 as a}from"./index-GOaZz_UJ.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-C3D1ib_r.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-OZVqp6xS.js";import"./index-Da9JhEvW.js";import"./native-debug-module-qMZlzFCw.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-D4XNZdHk.js";import"./contract-system-adapters-DAgN02qJ.js";import"./game-contract-seams-Kcb8YGio.js";import"./seeded-random-WDTtjPze.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-bQE2NA0D.js";import"./live-project-verbs-DR_q7RK-.js";import"./capability-coverage-DiBzUjdM.js";import"./edit-mode-authoring-BGGW26LN.js";import"./json-history-resource-Cby5jKsw.js";import"./binding-resolver-CGsJLZOI.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-DbZYHQSf.js";import"./canvas-entry-runtime-cJsqLXEp.js";import"./three-ingest-runtime-E3dJH9KF.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./relative-path-guard-GiM7Lsz8.js";import"./react-root-BHA-cdrW.js";import"./editor-presentation-activity-CqJH4G9t.js";import"./active-ingest-B0RHbDkD.js";import"./ingest-source-persistence-DM9T5S4m.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-B6vzusDX.js";import"./mounted-authoring-CZw66UYV.js";import"./entity-object-DsAYI3gJ.js";import"./user-data-BDBZj06-.js";import"./workspace-arrangement-BjHQJUoD.js";import"./three-contract-Dkt6PmWY.js";import"./three-CQcV_QdT.js";import"./editor-layers-BpAhxn0P.js";import"./component-instance-root-BZXekKMG.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-D3qfWIRk.js";import"./source-persistence-backend-CxVBXGoQ.js";import"./three-projection-core-CkmVzWhv.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./r3f-physics-binding-Dc4KkqeK.js";import"./deferred-ingest-play-CrBHt1VV.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-4sStON8E.js";import"./board-guides-DUTllrm6.js";import"./relative-import-specifier-B0yhWWcj.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-CD61yjth.js";import"./inference-diagnostics-DH6OpJZI.js";import"./writer-tw6EcuVO.js";import"./three-state-CzjS3Z7g.js";import"./editor-shell-store-C04XLLU-.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-Slxb_SvE.js";import"./game-surface-defaults-D8S4cRxi.js";const Le="workspace.command",Ue={"list-gameplay-state":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{providers:e.providers()}}:p()?{ok:!0,data:{providers:[]}}:s()}},"inspect-gameplay-state":{derivedRefresh:"if-content-changed",handle:e=>{const t=a().debug;if(!t)return p()?{ok:!0,data:{state:null}}:s();const r=e.keys;try{const o={};if(r&&r.length>0)for(const i of r)o[i]=t.state(i);else Object.assign(o,t.stateAll());return{ok:!0,data:{state:o}}}catch(o){return n(o)}}},"list-debug-commands":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{commands:e.commands()}}:p()?{ok:!0,data:{commands:[]}}:s()}},"invoke-debug-command":{derivedRefresh:"always",handle:async e=>{const t=a().debug;if(!t)return p()?{ok:!1,error:`debug: no command registered under "${e.name}" — this game exposes no debug adapter`,data:{code:"DEBUG_COMMAND_NOT_REGISTERED",registered:[]}}:s();try{return{ok:!0,data:{result:await t.invoke(e.name,e.args??[])}}}catch(r){return n(r)}}},"inject-input":{derivedRefresh:"none",handle:e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before injecting input"};let r;try{r=t.getInputTarget(e.worldId)}catch(o){return n(o)}if(!r)return{ok:!1,error:"this play session has no input door: no root entry exports `debug.input`"};try{if(e.kind==="action"){const i=e.atTick;return typeof i=="number"?(r.scheduleActionAtTick(i,e.action,e.value),{ok:!0,data:{scheduled:!0,tick:i}}):{ok:!0,data:r.setVirtualAction(e.action,e.value)}}const o=e.sourceId;switch(e.kind){case"axis":r.injectAxis(o,e.value);break;case"vector2":r.injectVector2(o,e.value);break;case"pointerDelta":r.injectPointerDelta(o,e.value);break;case"pointerPosition":r.injectPointerPosition(o,e.value);break;default:return{ok:!1,error:`unknown injection kind "${e.kind}"`}}return{ok:!0,data:{delivered:!0}}}catch(o){return n(o)}}},"set-time-scale":{derivedRefresh:"none",handle:e=>{const t=m();return t?(t.loop.timeScale=e.timeScale,{ok:!0,data:{timeScale:t.loop.timeScale}}):{ok:!1,error:"not in play mode — start play before setting time-scale"}}},"set-seed":{derivedRefresh:"none",handle:e=>{const t=m();return t?t.determinismDeclared?t.random?(t.random.reseed(e.seed),{ok:!0,data:{seed:t.random.seed}}):{ok:!1,error:"this play session has no first-party ctx.random to reseed"}:{ok:!1,error:"this project's manifest does not declare determinism.seededRandom — play.seed.set has no documented contract to reseed against (D15)",data:{code:"DETERMINISM_NOT_DECLARED"}}:{ok:!1,error:"not in play mode — start play before setting the seed"}}},"run-ticks":{derivedRefresh:"none",handle:async e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before running ticks"};if(!t.runTicks)return{ok:!1,error:"this play session has no first-party Game to run ticks on",data:{code:"RUN_TICKS_UNAVAILABLE"}};try{const r=e.n,o=e.render;return t.runTicksSettled?await t.runTicksSettled(r,o?{render:o}:void 0):t.runTicks(r,o?{render:o}:void 0),{ok:!0}}catch(r){return n(r)}}}};export{Ue as commands,Le as point};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Y as l,Z as a,a6 as c}from"./index-
|
|
1
|
+
import{Y as l,Z as a,a6 as c}from"./index-GOaZz_UJ.js";const g={version:1,jobs:[]};let u=g,i=null,s=0,o=!1;const r=new Set;function w(e,n=null){u=e,i=n,s++;for(const d of r)d()}function J(){return u}function v(){return i}function E(){return s}function y(e){return r.add(e),()=>r.delete(e)}function p(e){return e.status==="queued"||e.status==="running"}function h(e){return!p(e)&&(!e.readAt||Date.parse(e.readAt)<Date.parse(e.updatedAt))}function b(e){return e.filter(h).length}async function t(){try{const e=await fetch("/__editor/generations");w(await l(e,"Generation activity request failed"))}catch(e){i=e instanceof Error?e.message:String(e),s++;for(const n of r)n()}}async function G(){if(!o){o=!0;try{const e=await fetch("/__editor/generations/reconcile",{method:"POST"});a(e,"Generation reconciliation failed"),await t()}finally{o=!1}}}async function _(e){const n=await c(e.poll.tool,e.poll.input);if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);return await t(),await f(e.id),n.data}async function S(e){if(!e.accept)throw new Error("This completed generation has no project asset to add.");const n=await c(e.accept.tool,e.accept.input,{confirm:!0});if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);await t(),await f(e.id)}async function f(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}/read`,{method:"POST"});a(n,"Mark generation read failed"),await t()}async function T(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}`,{method:"DELETE"});a(n,"Forget generation job failed"),await t()}function A(){t();const e=window.setInterval(()=>void t(),2e3);return()=>{window.clearInterval(e)}}export{b as a,p as b,S as c,v as d,h as e,T as f,J as g,A as h,_ as i,E as j,f as m,G as p,t as r,y as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jf as K,jg as Y,f9 as I,dq as D,g$ as E,jh as Q,ji as A,aM as X,a0 as p,h1 as H,fl as Z,jj as ee,jk as te,jl as b,jm as ne,jn as re,jo as ae,jp as oe,jq as se,jr as ie,cO as le,aK as h,hV as ce,ex as P,hG as R,dV as B,O as de,a1 as M,gc as ue,js as me,jt as ge,ju as pe,gY as ve,jv as fe,b6 as he,jw as xe,f3 as je,a7 as ye,f5 as Ce}from"./index-CWR8N1pt.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ne}from"./model-thumbnail-iK5a9are.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as _,f as q,i as Ee,b as z,p as Se,r as J,d as ke,e as Te,m as $e,h as we,j as Ae,a as be}from"./generation-jobs-Cuwdi3KY.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-C79giSrc.js";import"./user-data-DjFdlyHN.js";import"./workspace-arrangement-Dyq55Dxr.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function U(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function F(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function Oe(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function L(e){return(e.outputPaths??[]).map(n=>{const r=K.find(a=>n.startsWith(`${a}/`)),o=r?Y(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(Oe(n))??"file",url:o}})}function O(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function N(e){const n=De(e);if(n)return n;const r=L(e);if(r.length===0)return O(e.label,64);const o=r[0],a=Ie(o.path);return r.length>1?a?`${a} · ${r.length} files`:`${r.length} files`:Ge.test(o.name)?a?`${a}/${o.name}`:O(e.label,64):o.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function De(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,o=r.prompt;if(typeof o=="string"&&o.trim().length>0)return o.trim();for(const a of Object.values(r)){const l=W(a,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function Me(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function _e(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function qe(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const o=Math.floor(r/24);return o<7?`${o}d ago`:`${Math.floor(o/7)}w ago`}const S="generation:",ze="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:ze,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Ue,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Ue(){u.useSyncExternalStore(D,E),u.useSyncExternalStore(Q,A,A);const e=ee(),[n,r]=u.useState(""),o=n.trim().toLowerCase(),a=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>o?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(o)):!0),l=new Map;for(const i of a){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(p,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>H(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),a.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Fe({job:e,result:n,documentId:r,active:o}){u.useSyncExternalStore(D,E),u.useSyncExternalStore(te,b,b);const a=ne(e.poll.tool,e,n);if(!a)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=a.Component;return t.jsx(re,{file:a.file,children:t.jsx(l,{tool:a.tool,contributionId:a.id,client:ie(),surfaces:ae,account:se(),play:oe(),documentId:r,active:o,job:e,result:n})})}function Le({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),o=e.startsWith(S)?e.slice(S.length):e,a=r.find(d=>d.id===o),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,g]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),g(null);try{i(await Ee(d))}catch(C){g(C instanceof Error?C.message:String(C))}finally{m(!1)}};if(u.useEffect(()=>{a&&y(a)},[a?.id,a?.status]),!a)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const w=s??(j(a)==="save-failed"?`Could not save into the project: ${a.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":a.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[a.provider," · ",a.operation]}),t.jsx("h2",{className:"volter-tool-title",children:a.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(a)]," · ",Je(a.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(p,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(a),children:c?"Refreshing…":"Refresh"}),F(a,s)&&t.jsx(p,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),g(null),_(a).catch(d=>g(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),a.message&&t.jsx("div",{className:"volter-tool-status",children:a.message}),w&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:w}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Fe,{job:a,result:l,documentId:e,active:n})}),a.outputPaths&&a.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),a.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),U(a)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(p,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),q(a.id).then(()=>Z(e)).catch(d=>g(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const o=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(p,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:o}):o}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ne(e.url)?t.jsx(ge,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(M,{icon:e.kind==="model"?pe:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(p,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Ye({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",o=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...o?{icon:t.jsx(M,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Qe({job:e,busy:n,error:r,run:o}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[F(e,r)&&t.jsx(p,{size:"compact",variant:"primary",disabled:n,onClick:()=>o(()=>_(e)),children:n?"Saving…":"Retry save"}),t.jsx(p,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),U(e)&&t.jsx(p,{size:"compact",variant:"ghost",disabled:n,onClick:()=>o(()=>q(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:o}){const a=j(e),l=L(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const g=fe(he(s.name));if(g)return()=>xe(s.url,g)};return t.jsxs("article",{className:"volter-generation-card","data-state":a,"aria-busy":z(e),"aria-label":N(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Ye,{job:e,state:a}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:N(e),children:N(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":a,children:[$[a],a==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[Me(e.billing),_e(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",qe(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||a==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(a==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Qe,{job:e,busy:n,error:r,run:o})]})]})}function He(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[o,a]=u.useState({}),l=e.filter(z).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,g)=>{r(s),a(v=>{const f={...v};return delete f[s],f});try{await g()}catch(v){const f=v instanceof Error?v.message:String(v);a(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(p,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(p,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(p,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:o[s.id]??null,run:g=>void c(s.id,g)},s.id))})]})}const kt="workspace.service",Ze="generation";function et(){const e=be(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[we(),je({...ye.generations,order:15,Content:He,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ce({id:Ze,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const o=x().jobs.find(a=>a.id===r.id);return o?V(o):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
|
|
1
|
+
import{jf as K,jg as Y,f9 as I,dq as D,g$ as E,jh as Q,ji as A,aM as X,a0 as p,h1 as H,fl as Z,jj as ee,jk as te,jl as b,jm as ne,jn as re,jo as ae,jp as oe,jq as se,jr as ie,cO as le,aK as h,hV as ce,ex as P,hG as R,dV as B,O as de,a1 as M,gc as ue,js as me,jt as ge,ju as pe,gY as ve,jv as fe,b6 as he,jw as xe,f3 as je,a7 as ye,f5 as Ce}from"./index-GOaZz_UJ.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ne}from"./model-thumbnail-C6xWKVgL.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as _,f as q,i as Ee,b as z,p as Se,r as J,d as ke,e as Te,m as $e,h as we,j as Ae,a as be}from"./generation-jobs-DCZm-7-c.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-BiC6OVkT.js";import"./user-data-BDBZj06-.js";import"./workspace-arrangement-BjHQJUoD.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function U(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function F(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function Oe(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function L(e){return(e.outputPaths??[]).map(n=>{const r=K.find(a=>n.startsWith(`${a}/`)),o=r?Y(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(Oe(n))??"file",url:o}})}function O(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function N(e){const n=De(e);if(n)return n;const r=L(e);if(r.length===0)return O(e.label,64);const o=r[0],a=Ie(o.path);return r.length>1?a?`${a} · ${r.length} files`:`${r.length} files`:Ge.test(o.name)?a?`${a}/${o.name}`:O(e.label,64):o.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function De(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,o=r.prompt;if(typeof o=="string"&&o.trim().length>0)return o.trim();for(const a of Object.values(r)){const l=W(a,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function Me(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function _e(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function qe(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const o=Math.floor(r/24);return o<7?`${o}d ago`:`${Math.floor(o/7)}w ago`}const S="generation:",ze="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:ze,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Ue,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Ue(){u.useSyncExternalStore(D,E),u.useSyncExternalStore(Q,A,A);const e=ee(),[n,r]=u.useState(""),o=n.trim().toLowerCase(),a=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>o?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(o)):!0),l=new Map;for(const i of a){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(p,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>H(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),a.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Fe({job:e,result:n,documentId:r,active:o}){u.useSyncExternalStore(D,E),u.useSyncExternalStore(te,b,b);const a=ne(e.poll.tool,e,n);if(!a)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=a.Component;return t.jsx(re,{file:a.file,children:t.jsx(l,{tool:a.tool,contributionId:a.id,client:ie(),surfaces:ae,account:se(),play:oe(),documentId:r,active:o,job:e,result:n})})}function Le({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),o=e.startsWith(S)?e.slice(S.length):e,a=r.find(d=>d.id===o),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,g]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),g(null);try{i(await Ee(d))}catch(C){g(C instanceof Error?C.message:String(C))}finally{m(!1)}};if(u.useEffect(()=>{a&&y(a)},[a?.id,a?.status]),!a)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const w=s??(j(a)==="save-failed"?`Could not save into the project: ${a.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":a.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[a.provider," · ",a.operation]}),t.jsx("h2",{className:"volter-tool-title",children:a.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(a)]," · ",Je(a.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(p,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(a),children:c?"Refreshing…":"Refresh"}),F(a,s)&&t.jsx(p,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),g(null),_(a).catch(d=>g(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),a.message&&t.jsx("div",{className:"volter-tool-status",children:a.message}),w&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:w}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Fe,{job:a,result:l,documentId:e,active:n})}),a.outputPaths&&a.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),a.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),U(a)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(p,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),q(a.id).then(()=>Z(e)).catch(d=>g(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const o=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(p,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:o}):o}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ne(e.url)?t.jsx(ge,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(M,{icon:e.kind==="model"?pe:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(p,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Ye({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",o=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...o?{icon:t.jsx(M,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Qe({job:e,busy:n,error:r,run:o}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[F(e,r)&&t.jsx(p,{size:"compact",variant:"primary",disabled:n,onClick:()=>o(()=>_(e)),children:n?"Saving…":"Retry save"}),t.jsx(p,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),U(e)&&t.jsx(p,{size:"compact",variant:"ghost",disabled:n,onClick:()=>o(()=>q(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:o}){const a=j(e),l=L(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const g=fe(he(s.name));if(g)return()=>xe(s.url,g)};return t.jsxs("article",{className:"volter-generation-card","data-state":a,"aria-busy":z(e),"aria-label":N(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Ye,{job:e,state:a}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:N(e),children:N(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":a,children:[$[a],a==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[Me(e.billing),_e(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",qe(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||a==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(a==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Qe,{job:e,busy:n,error:r,run:o})]})]})}function He(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[o,a]=u.useState({}),l=e.filter(z).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,g)=>{r(s),a(v=>{const f={...v};return delete f[s],f});try{await g()}catch(v){const f=v instanceof Error?v.message:String(v);a(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(p,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(p,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(p,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:o[s.id]??null,run:g=>void c(s.id,g)},s.id))})]})}const kt="workspace.service",Ze="generation";function et(){const e=be(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[we(),je({...ye.generations,order:15,Content:He,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ce({id:Ze,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const o=x().jobs.find(a=>a.id===r.id);return o?V(o):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dY as p,t as o,w as n,bA as e,u as l,v as t,by as d,e0 as c}from"./index-
|
|
1
|
+
import{dY as p,t as o,w as n,bA as e,u as l,v as t,by as d,e0 as c}from"./index-GOaZz_UJ.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const u=d(["queued","running","succeeded","failed","cancelled"]),g=p("route",[o({route:n("mock")}).strict(),o({route:n("managed"),estimatedCredits:e().nonnegative().optional(),settledCredits:e().nonnegative().optional()}).strict(),o({route:n("byok"),currency:n("USD"),estimatedAmount:e().nonnegative().optional(),settledAmount:e().nonnegative().optional()}).strict()]),r=o({tool:t().min(1),input:c()}).strict(),v=o({id:t().min(1),provider:t().min(1),externalId:t().min(1),label:t().min(1),operation:t().min(1),mode:d(["mock","direct","managed"]),status:u,createdAt:t().datetime(),updatedAt:t().datetime(),progress:e().min(0).max(1).optional(),providerStatus:t().optional(),queuePosition:e().int().nonnegative().optional(),message:t().optional(),lastPolledAt:t().datetime().optional(),lastProviderChangeAt:t().datetime().optional(),pollError:t().optional(),pollErrorAt:t().datetime().optional(),pollFailureCount:e().int().nonnegative().optional(),nextPollAt:t().datetime().optional(),billing:g,poll:r,cancel:r.optional(),accept:r.optional(),acceptedAt:t().datetime().optional(),readAt:t().datetime().optional(),provenanceOperationId:t().optional(),outputPaths:l(t()).optional()}).strict(),x=o({version:n(1),jobs:l(v)}).strict();function y(m,s){if(m!=="managed")return{};const{estimatedCredits:i,settledCredits:a}=s;return i===void 0&&a===void 0?{}:{billing:{route:"managed",...i===void 0?{}:{estimatedCredits:i},...a===void 0?{}:{settledCredits:a}}}}export{g as GenerationBillingSchema,v as GenerationJobSchema,u as GenerationJobStatusSchema,x as GenerationJobsDocumentSchema,y as managedBilling};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a0 as r,r as a,a7 as i}from"./index-
|
|
1
|
+
import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a0 as r,r as a,a7 as i}from"./index-GOaZz_UJ.js";import{r as u}from"./index-nmcBqr7Y.js";import"./index-CtzuWnCS.js";import{s as c,g as o,a as p,b as m}from"./generation-jobs-DCZm-7-c.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";const I="workspace.status",$="Generations",C="left",T=24;function U(){const{jobs:e}=u.useSyncExternalStore(c,o,o),n=p(e),t=e.filter(m).length;return s.jsxs(r,{type:"button",variant:"ghost",size:"compact",className:"volter-status-action","data-testid":"status-generations","aria-label":`Generations, ${n} unseen, ${t} running`,title:`${n} unseen generation results, ${t} running — open Generations`,onClick:()=>a().workspace.showUtility(i.generations.id),children:["Generations · ",n,t>0?` · ${t} running`:""]})}export{C as align,U as default,T as order,I as point,$ as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as n}from"./workspace-arrangement-
|
|
1
|
+
import{g as n}from"./workspace-arrangement-BjHQJUoD.js";function r(t){const o=n(t,"volterComponentRoot");return typeof o=="string"&&o?o:void 0}function i(t){return n(t,"volterBuiltInternal")===!0}export{r as c,i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{kv as k,v as l,t as y,kw as P,u as b,b2 as T}from"./index-
|
|
1
|
+
import{kv as k,v as l,t as y,kw as P,u as b,b2 as T}from"./index-GOaZz_UJ.js";import{i as x}from"./relative-path-guard-GiM7Lsz8.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=".volter/assets.json",E=y({key:l().min(1),license:l().min(1).optional(),sourceHash:l().regex(/^sha256-[a-f0-9]{64}$/,'sourceHash must be "sha256-<64 hex>"').optional(),materializedAt:l().datetime()}).strict(),O=k(l().min(1),E);function z(e){if(!/^[a-f0-9]{64}$/.test(e))throw new Error(`Not a sha256 digest, refusing to record it as a sourceHash: ${e}`);return`sha256-${e}`}function m(e){const t=e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"");if(!t)throw new Error("An asset ledger path cannot be empty.");if(!x(t))throw new Error(`An asset ledger path cannot escape the project: ${e}`);return t}function _(e){return O.parse(e)}function D(e){if(e==null||e.trim()==="")return{};let t;try{t=JSON.parse(e)}catch(s){throw new Error(`${d} is not valid JSON: ${String(s)}`)}return _(t)}function I(e,t,s){const r=m(t),n=E.parse(s),a={...e,[r]:n},i={};for(const u of Object.keys(a).sort())i[u]=a[u];return i}function M(e){const t={};for(const s of Object.keys(e).sort())t[s]=e[s];return`${JSON.stringify(t,null,2)}
|
|
2
2
|
`}function U(e,t,s){const r=globalThis.navigator?.locks;return r?r.request(`volter:${e}:${P(t)}`,s):s()}const H=1e4,N=15;function j(){return globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random()}`}async function R(e,t,s={}){const r=s.staleAfterMs??H,n=s.retryDelayMs??N,a=s.now??Date.now,i=s.sleep??(o=>new Promise(c=>setTimeout(c,o))),u=s.token??j;for(;;){const o=JSON.stringify({at:a(),owner:s.owner??"unknown",token:u()});if(await e.createIfAbsent(o))try{return await t()}finally{await e.removeIfHeldBy(o)}const c=await e.read();if(c!==null){if(a()-B(c)>r){await e.removeIfHeldBy(c);continue}await i(n)}}}function B(e){try{const t=JSON.parse(e);return typeof t.at=="number"?t.at:0}catch{return 0}}function J(){const e=new Map;return(t,s)=>{const n=(e.get(t)??Promise.resolve()).then(s,s),a=n.then(()=>{},()=>{});return e.set(t,a),a.then(()=>{e.get(t)===a&&e.delete(t)}),n}}async function S(e){return await e.exists(d)?D(await e.read(d)):{}}async function F(e,t){await e.write(d,M(t))}const f=`${d}.lock`,C=J(),A=new WeakMap;let $=0;function K(e){const t=A.get(e);if(t!==void 0)return t;$+=1;const s=`${e.id}#${$}`;return A.set(e,s),s}async function W(e,t){const s={key:t.key,...t.license?{license:t.license}:{},...t.sourceSha256?{sourceHash:z(t.sourceSha256)}:{},materializedAt:t.materializedAt??new Date().toISOString()};await C(K(e),()=>R({createIfAbsent:r=>e.writeIfAbsent(f,r),read:async()=>await e.exists(f)?e.read(f):null,removeIfHeldBy:r=>U(e.id,f,async()=>{await e.exists(f)&&await e.read(f)===r&&await e.remove(f)})},async()=>{const r=await S(e);await F(e,I(r,m(t.destPath),s))},{owner:e.id}))}const G=y({key:l().regex(/^[^:]+:.+$/,'An asset key must be "source:id"'),dest:l().min(1),sha256:l().regex(/^[a-f0-9]{64}$/,"A pack entry must pin the sha256 of its bytes as 64 lowercase hex digits")}).strict(),Y=y({packs:k(l().min(1),b(G))}).strict();function q(e){return Y.parse(e)}function V(e){const t=[],s=new Map;for(const[r,n]of Object.entries(e.packs))for(const a of n){const i=s.get(a.dest);if(i!==void 0)throw new Error(`Two packs declare the same destination "${a.dest}": "${i}" and "${r}".`);s.set(a.dest,r),t.push({...a,pack:r})}return t}const w="asset-manifest.json",v="https://volter-asset-library.aaron-0ed.workers.dev";function L(e){return(e.baseUrl??v).replace(/\/+$/,"")}function Q(e){return e.signal?{signal:e.signal}:{}}async function X(e,t={}){const s=L(t),r=await fetch(`${s}/v1/assets/${encodeURIComponent(e)}`,Q(t));if(!r.ok)return null;const n=await r.json();return!n||typeof n!="object"||!Array.isArray(n.files)?null:n}function Z(e,t,s,r){return`${L(e?{baseUrl:e}:{})}/v1/assets/${encodeURIComponent(t)}/files/${s}`}async function he(e,t={}){const s=await ee(e),r={declared:s.length,materialized:[],alreadyPresent:[],failed:[]};if(s.length===0)return r;const n=await S(e);for(const a of s){if(t.signal?.aborted)break;if(n[m(a.dest)]&&await e.exists(a.dest)){r.alreadyPresent.push(a),t.onProgress?.(a,"already-present");continue}try{await te(e,a,t),r.materialized.push(a),t.onProgress?.(a,"materialized")}catch(i){r.failed.push({entry:a,reason:i instanceof Error?i.message:String(i)}),t.onProgress?.(a,"failed")}}return r}async function ee(e){if(!await e.exists(w))return[];const t=await e.read(w);let s;try{s=JSON.parse(t)}catch(r){throw new Error(`${w} is not valid JSON: ${r instanceof Error?r.message:String(r)}`)}return V(q(s))}async function te(e,t,s){const r=await se(t,s);await e.write(t.dest,r.bytes),await W(e,{destPath:t.dest,key:t.key,license:r.license,sourceSha256:t.sha256})}async function se(e,t={}){const s=e.key.indexOf(":");if(s<0)throw new Error(`Malformed asset key "${e.key}" (expected "source:id").`);const r=e.key.slice(0,s),n=e.key.slice(s+1);if(r!=="local")throw new Error(`Asset key "${e.key}": only the "local" (cloud-hosted) source can be materialized from the cloud worker.`);const a=t.baseUrl??v,i=t.signal?{baseUrl:a,signal:t.signal}:{baseUrl:a},u=await X(n,i);if(!u)throw new Error(`"${e.key}" is not hosted by the cloud asset library.`);const o=u.files[0];if(!o)throw new Error(`"${e.key}" has no files in the cloud library.`);if(o.dependencies.length>0)throw new Error(`"${e.key}" has ${o.dependencies.length} dependency file(s) — a pack entry names exactly one destination file.`);if(o.main.sha256!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: the cloud library reports sha256:${o.main.sha256} but ${w} pins sha256:${e.sha256}. Nothing was fetched or written; the pin is only re-cut by a reviewed change to the declaration.`);const c=Z(a,n,0),h=await fetch(c,t.signal?{signal:t.signal}:{});if(!h.ok)throw new Error(`${c} returned ${h.status} ${h.statusText}.`);const p=new Uint8Array(await h.arrayBuffer()),g=await T(p);if(g!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: ${c} delivered sha256:${g} but the declaration pins sha256:${e.sha256}. Nothing was written.`);return{bytes:p,license:u.license}}export{w as ASSET_MANIFEST_PATH,se as fetchVerifiedPackEntry,he as materializeDeclaredAssetPacks};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-
|
|
1
|
+
import{_ as Ie}from"./extends-CF3RwP-h.js";import{r as A,a as Vn}from"./index-nmcBqr7Y.js";import{a as Jy}from"./client-DNXj_opT.js";import{U as Id,S as No,W as Zx}from"./three.module-BLhyNg0e.js";import{u as ue,a as He,I as Jx,q as _d,G as vi,s as ir,J as e4,K as Hu,e as xi,o as Wn,v as Xr,F as t4,l as ev,k as S0,L as i4}from"./events-156d8d12.esm-CYeuVCYr.js";import{fo as W,aI as bi,fd as Be,d9 as ci,d5 as Bi,az as ql,da as wr,cm as we,dp as rt,cl as Ln,ez as Vu,fp as Ei,_ as qe,aV as Pn,cj as Ze,co as ze,bu as tv,au as Ir,dw as Ti,b0 as si,ed as Ns,cE as Xt,N as Ji,M as Ai,aM as nn,ex as xn,em as hi,B as Ar,fe as Ko,K as cr,bl as n4,f1 as Hr,cW as yi,e6 as Wu,cp as ta,bX as ul,aq as Qn,a$ as $i,bV as It,db as an,cZ as Rr,ey as iv,e$ as Xl,cg as Th,bh as jo,I as Kt,aP as wh,bg as s4,fx as Fi,c1 as ni,cN as C0,Z as r4,aY as o4,b5 as nv,am as a4,ca as ia,cb as l4,aZ as ks,eX as _r,Y as Yn,eW as cn,cv as bh,cs as T0,aT as sv,F as Zm,dk as Eu,dd as Jm,eC as c4,aE as u4,ev as rv,et as h4,j as f4,f7 as d4,l as m4,fq as g4,dq as p4,cV as A4,eq as ur,a3 as Yu,aa as ov,ff as Gi,c5 as w0,dI as eg,e8 as Ms,e2 as zo,bi as fi,e0 as y4,d$ as v4,dZ as E4,dY as x4,dS as I4,dP as _4,dN as S4,dM as C4,dE as T4,av,aw as Qo,H as w4,er as b4,eo as R4,d8 as Rh,bs as b0,bt as Sd,bA as Go,fA as D4,bW as Fs,dn as L4,ag as P4,V as lv,x as M4,y as B4,cr as k4,cq as cv,dv as uv,br as xu,fb as pn,du as Ku,aO as F4,c_ as hv,cR as O4,ao as fv,dx as Iu,fj as Wr,fw as ju,a9 as dv,an as U4,el as br,T as mv,ad as R0,fs as N4,ej as gv,aC as pv,aA as Av,fm as D0,R as yv,b4 as _u,E as z4,e5 as Fl,by as ou,P as Cd,es as vv,e3 as Ev,e9 as Q4,n as G4,ch as $4,cw as xv,cx as Iv,cP as H4,dg as V4,f6 as Su,c7 as Td,cc as W4,c3 as tg,eG as Y4,cu as K4,S as j4,d as q4,ee as Dh,i as X4,bI as Lh,cU as Z4,aS as J4,aW as eI}from"./three.core-3arARmh6.js";import{v as Ol,d as _v,C as tI,u as BM}from"./Gltf-GjdUJfpn.js";import{G as VF}from"./Gltf-GjdUJfpn.js";import{m as iI,t as nI}from"./BufferGeometryUtils-FJZNEiJN.js";import{OrthographicCamera as sI}from"./OrthographicCamera-QGDXU8-_.js";import{PerspectiveCamera as YF}from"./PerspectiveCamera-CzyDwUe8.js";import{E as na,M as rI}from"./OrbitControls-DqeA2OK1.js";import{O as jF}from"./OrbitControls-DqeA2OK1.js";import{_ as Sv}from"./index-GOaZz_UJ.js";import{g as oI}from"./_commonjsHelpers-D6-XlEtG.js";import{u as ds}from"./Fbo-BwAOPGSM.js";import{F as XF}from"./Fbo-BwAOPGSM.js";import{RoundedBox as JF,RoundedBoxGeometry as eO}from"./RoundedBox-DrJK5JOI.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-bQE2NA0D.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";const Ul=new W,L0=new W,aI=new W,ig=new Be;function lI(r,e,t){const i=Ul.setFromMatrixPosition(r.matrixWorld);i.project(e);const n=t.width/2,s=t.height/2;return[i.x*n+n,-(i.y*s)+s]}function cI(r,e){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=t.sub(i),s=e.getWorldDirection(aI);return n.angleTo(s)>Math.PI/2}function uI(r,e,t,i){const n=Ul.setFromMatrixPosition(r.matrixWorld),s=n.clone();s.project(e),ig.set(s.x,s.y),t.setFromCamera(ig,e);const o=t.intersectObjects(i,!0);if(o.length){const a=o[0].distance;return n.distanceTo(t.ray.origin)<a}return!0}function hI(r,e){if(e instanceof Bi)return e.zoom;if(e instanceof ci){const t=Ul.setFromMatrixPosition(r.matrixWorld),i=L0.setFromMatrixPosition(e.matrixWorld),n=e.fov*Math.PI/180,s=t.distanceTo(i);return 1/(2*Math.tan(n/2)*s)}else return 1}function fI(r,e,t){if(e instanceof ci||e instanceof Bi){const i=Ul.setFromMatrixPosition(r.matrixWorld),n=L0.setFromMatrixPosition(e.matrixWorld),s=i.distanceTo(n),o=(t[1]-t[0])/(e.far-e.near),a=t[1]-o*e.far;return Math.round(o*s+a)}}const wd=r=>Math.abs(r)<1e-10?0:r;function Cv(r,e,t=""){let i="matrix3d(";for(let n=0;n!==16;n++)i+=wd(e[n]*r.elements[n])+(n!==15?",":")");return t+i}const dI=(r=>e=>Cv(e,r))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),mI=(r=>(e,t)=>Cv(e,r(t),"translate(-50%,-50%)"))(r=>[1/r,1/r,1/r,1,-1/r,-1/r,-1/r,-1,1/r,1/r,1/r,1,1,1,1,1]);function gI(r){return r&&typeof r=="object"&&"current"in r}const qu=A.forwardRef(({children:r,eps:e=.001,style:t,className:i,prepend:n,center:s,fullscreen:o,portal:a,distanceFactor:l,sprite:c=!1,transform:u=!1,occlude:h,onOcclude:f,castShadow:d,receiveShadow:g,material:m,geometry:p,zIndexRange:E=[16777271,0],calculatePosition:v=lI,as:y="div",wrapperClass:x,pointerEvents:I="auto",..._},S)=>{const{gl:C,camera:w,scene:T,size:D,raycaster:b,events:R,viewport:P}=ue(),[O]=A.useState(()=>document.createElement(y)),Q=A.useRef(null),V=A.useRef(null),K=A.useRef(0),k=A.useRef([0,0]),G=A.useRef(null),M=A.useRef(null),H=a?.current||R.connected||C.domElement.parentNode,Y=A.useRef(null),N=A.useRef(!1),z=A.useMemo(()=>h&&h!=="blending"||Array.isArray(h)&&h.length&&gI(h[0]),[h]);A.useLayoutEffect(()=>{const ee=C.domElement;h&&h==="blending"?(ee.style.zIndex=`${Math.floor(E[0]/2)}`,ee.style.position="absolute",ee.style.pointerEvents="none"):(ee.style.zIndex=null,ee.style.position=null,ee.style.pointerEvents=null)},[h]),A.useLayoutEffect(()=>{if(V.current){const ee=Q.current=Jy.createRoot(O);if(T.updateMatrixWorld(),u)O.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const Z=v(V.current,w,D);O.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${Z[0]}px,${Z[1]}px,0);transform-origin:0 0;`}return H&&(n?H.prepend(O):H.appendChild(O)),()=>{H&&H.removeChild(O),ee.unmount()}}},[H,u]),A.useLayoutEffect(()=>{x&&(O.className=x)},[x]);const B=A.useMemo(()=>u?{position:"absolute",top:0,left:0,width:D.width,height:D.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:s?"translate3d(-50%,-50%,0)":"none",...o&&{top:-D.height/2,left:-D.width/2,width:D.width,height:D.height},...t},[t,s,o,D,u]),F=A.useMemo(()=>({position:"absolute",pointerEvents:I}),[I]);A.useLayoutEffect(()=>{if(N.current=!1,u){var ee;(ee=Q.current)==null||ee.render(A.createElement("div",{ref:G,style:B},A.createElement("div",{ref:M,style:F},A.createElement("div",{ref:S,className:i,style:t,children:r}))))}else{var Z;(Z=Q.current)==null||Z.render(A.createElement("div",{ref:S,style:B,className:i,children:r}))}});const U=A.useRef(!0);He(ee=>{if(V.current){w.updateMatrixWorld(),V.current.updateWorldMatrix(!0,!1);const Z=u?k.current:v(V.current,w,D);if(u||Math.abs(K.current-w.zoom)>e||Math.abs(k.current[0]-Z[0])>e||Math.abs(k.current[1]-Z[1])>e){const ne=cI(V.current,w);let ce=!1;z&&(Array.isArray(h)?ce=h.map(le=>le.current):h!=="blending"&&(ce=[T]));const me=U.current;if(ce){const le=uI(V.current,w,b,ce);U.current=le&&!ne}else U.current=!ne;me!==U.current&&(f?f(!U.current):O.style.display=U.current?"block":"none");const re=Math.floor(E[0]/2),te=h?z?[E[0],re]:[re-1,0]:E;if(O.style.zIndex=`${fI(V.current,w,te)}`,u){const[le,se]=[D.width/2,D.height/2],X=w.projectionMatrix.elements[5]*se,{isOrthographicCamera:j,top:oe,left:pe,bottom:_e,right:Ce}=w,ye=dI(w.matrixWorldInverse),Ne=j?`scale(${X})translate(${wd(-(Ce+pe)/2)}px,${wd((oe+_e)/2)}px)`:`translateZ(${X}px)`;let Te=V.current.matrixWorld;c&&(Te=w.matrixWorldInverse.clone().transpose().copyPosition(Te).scale(V.current.scale),Te.elements[3]=Te.elements[7]=Te.elements[11]=0,Te.elements[15]=1),O.style.width=D.width+"px",O.style.height=D.height+"px",O.style.perspective=j?"":`${X}px`,G.current&&M.current&&(G.current.style.transform=`${Ne}${ye}translate(${le}px,${se}px)`,M.current.style.transform=mI(Te,1/((l||10)/400)))}else{const le=l===void 0?1:hI(V.current,w)*l;O.style.transform=`translate3d(${Z[0]}px,${Z[1]}px,0) scale(${le})`}k.current=Z,K.current=w.zoom}}if(!z&&Y.current&&!N.current)if(u){if(G.current){const Z=G.current.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const{isOrthographicCamera:ne}=w;if(ne||p)_.scale&&(Array.isArray(_.scale)?_.scale instanceof W?Y.current.scale.copy(_.scale.clone().divideScalar(1)):Y.current.scale.set(1/_.scale[0],1/_.scale[1],1/_.scale[2]):Y.current.scale.setScalar(1/_.scale));else{const ce=(l||10)/400,me=Z.clientWidth*ce,re=Z.clientHeight*ce;Y.current.scale.set(me,re,1)}N.current=!0}}}else{const Z=O.children[0];if(Z!=null&&Z.clientWidth&&Z!=null&&Z.clientHeight){const ne=1/P.factor,ce=Z.clientWidth*ne,me=Z.clientHeight*ne;Y.current.scale.set(ce,me,1),N.current=!0}Y.current.lookAt(ee.camera.position)}});const J=A.useMemo(()=>({vertexShader:u?void 0:`
|
|
2
2
|
/*
|
|
3
3
|
This shader is from the THREE's SpriteMaterial.
|
|
4
4
|
We need to turn the backing plane into a Sprite
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cR as nt,aM as st,af as ot,eS as x,dy as U,a0 as at,ho as rt,hp as it}from"./index-CWR8N1pt.js";import{hq as Rt,hr as wt,hs as _t,aR as Nt,dA as Ft,ht as Ot,hu as Ct,hv as kt,hw as Lt,hx as jt,hy as Bt,hz as Gt,eF as Pt,hA as Ht,eX as $t,hB as Vt,hC as zt,hD as Wt,hE as Kt,hF as Jt,d8 as Ut,hG as Yt,dV as qt,a1 as Qt,em as Xt,cK as Zt,g_ as te,hH as ee,hI as ne,cO as se,hJ as oe,hK as ae,hL as re,eV as ie,fb as ce,hM as ue,fc as le,hN as de,cD as pe,hO as fe,aL as he,cM as me,hP as Ee,hQ as xe,hR as Se,cN as ge,e_ as Te,gi as be,cS as De,dj as Me,fH as ye,he as Ae,hS as Ie,aS as ve,hT as Re,hU as we,aT as _e,dh as Ne,hV as Fe,cG as Oe,cL as Ce,ex as ke,hW as Le,hX as je,aK as Be,eY as Ge,hY as Pe,hZ as He,gH as $e,h_ as Ve,cE as ze,h$ as We,i0 as Ke,eo as Je,i1 as Ue,i2 as Ye,i3 as qe,i4 as Qe,i5 as Xe,ek as Ze,el as tn,i6 as en,i7 as nn,i8 as sn,i9 as on,er as an,ia as rn,ib as cn,ic as un,id as ln,ie as dn,a2 as pn,ig as fn,ih as hn,ii as mn,ij as En,ik as xn,il as Sn,es as gn,im as Tn,io as bn,ep as Dn,ip as Mn,iq as yn,ir as An,d9 as In,is as vn,it as Rn,iu as wn,iv as _n,iw as Nn,ix as Fn,iy as On,eT as Cn,iz as kn,iA as Ln,iB as jn,iC as Bn,iD as Gn,iE as Pn,et as Hn,iF as $n,iG as Vn,iH as zn,eZ as Wn,iI as Kn,iJ as Jn,iK as Un,iL as Yn,c$ as qn,en as Qn,iM as Xn,iN as Zn,iO as ts,eq as es,iP as ns,aY as ss,dz as os,iQ as as,iR as rs,iS as is,c_ as cs}from"./index-CWR8N1pt.js";import{C as ls}from"./ColorInput-Bp3RDfPM.js";import{a as p}from"./jsx-runtime-DPjLkJKQ.js";import{r as b}from"./index-nmcBqr7Y.js";import{A as ps,k as fs,B as hs,a as ms,l as Es,C as xs,D as Ss,m as gs,F as Ts,h as bs,G as Ds,n as Ms,Q as ys,S as As,f as Is,o as vs,T as Rs,d as ws,c as _s,g as Ns,i as Fs,j as Os,b as Cs,p as ks,e as Ls,u as js,q as Bs}from"./ShadowEditor-Ce6Kl6kF.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";function Dt({preview:t,children:e,...r}){const[o,a]=b.useState(!1),l=b.useRef(null),c=b.useId(),s=()=>a(!1),d=i=>{l.current=i,a(!0)};let m=e;if(b.isValidElement(e)){const i=[e.props["aria-describedby"],o?c:null].filter(Boolean).join(" ");m=b.cloneElement(e,i?{"aria-describedby":i}:{})}return p.jsxs("span",{className:"volter-tooltip-anchor",onMouseEnter:i=>d(i.currentTarget),onMouseLeave:s,onFocusCapture:i=>d(i.currentTarget),onBlurCapture:i=>{i.currentTarget.contains(i.relatedTarget)||s()},onKeyDown:i=>{i.key!=="Escape"||!o||(i.preventDefault(),i.stopPropagation(),s())},children:[m,o&&l.current&&p.jsx(nt,{...r,anchorRef:l,id:c,role:"tooltip",autoFocusFirst:!1,onDismiss:s,children:t})]})}function Mt({value:t,onCommit:e,style:r,disabled:o=!1}){const a=t===void 0?"":JSON.stringify(t),[l,c]=b.useState(a),[s,d]=b.useState(!1),m=b.useRef(!1);b.useEffect(()=>{c(a),d(!1)},[a]);const i=()=>{if(m.current){m.current=!1;return}if(l===a){d(!1);return}let h;try{h=JSON.parse(l)}catch{d(!0);return}d(!1),e(h)};return p.jsxs("div",{children:[p.jsx(st,{"data-testid":"json-input","aria-invalid":s||void 0,"data-tone":s?"danger":void 0,disabled:o,value:l,onChange:h=>{c(h.target.value),s&&d(!1)},onBlur:i,onKeyDown:h=>{h.key==="Enter"?i():h.key==="Escape"&&(m.current=!0,c(a),d(!1),h.target.blur())},style:r,title:s?"Not valid JSON — nothing written. Fix the JSON or press Escape to revert.":void 0}),s&&p.jsx("div",{"data-testid":"json-input-error",style:{fontSize:"var(--volter-font-sm)",color:ot.semantic.danger,marginTop:2},children:"Not valid JSON — nothing written. Fix the JSON or press Escape to revert."})]})}function v(t,e){return e+1<t.length?t[e+1].start:1}function ct(t){const e=t.map(o=>({time:o.start,value:o.function.p0})),r=t[t.length-1];return r&&e.push({time:1,value:r.function.p3}),e}function G(t){return t.map(e=>({start:e.start,function:{...e.function}}))}const B=.01;function F(t,e,r,o){const a=G(t),l=a.length;if(e<0||e>l)return a;if(e<l){const c=a[e],s=o-c.function.p0;if(c.function.p0=o,c.function.p1+=s,e>0){const d=a[e-1],m=o-d.function.p3;d.function.p3=o,d.function.p2+=m;const i=d.start+B,h=v(a,e)-B;c.start=Math.min(h,Math.max(i,r))}}else{const c=a[l-1],s=o-c.function.p3;c.function.p3=o,c.function.p2+=s}return a}function Y(t,e,r,o){const a=G(t);return r==="out"&&e<a.length?a[e].function.p1=o:r==="in"&&e>0&&e<=a.length&&(a[e-1].function.p2=o),a}function M(t,e,r){return t+(e-t)*r}function yt(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e>=o&&e<=a){const l=a>o?(e-o)/(a-o):0,{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l);return M(A,I,l)}}return 0}function ut(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e<=o+B||e>=a-B||e<o||e>a)continue;const l=(e-o)/(a-o),{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l),D=M(A,I,l),g=G(t);return g.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:S,p3:m}}),g}return t}function q(t,e){if(e<=0||e>=t.length)return t;const r=t[e-1],o=t[e],a=o.start-r.start,l=v(t,e)-o.start,c=a+l;if(c<=0)return t;const s=r.function,d=o.function,m={start:r.start,function:{p0:s.p0,p1:s.p0+(s.p1-s.p0)*(a>0?c/a:1),p2:d.p3+(d.p2-d.p3)*(l>0?c/l:1),p3:d.p3}},i=G(t);return i.splice(e-1,2,m),i}function lt(t){let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;for(const o of t)for(const a of[o.function.p0,o.function.p1,o.function.p2,o.function.p3])a<e&&(e=a),a>r&&(r=a);return!Number.isFinite(e)||!Number.isFinite(r)?{min:0,max:1}:{min:e,max:r}}const O=34,Q=6,W=6,dt=14,j=260;function pt(t){return Math.abs(t)>=100?t.toFixed(0):Math.abs(t)>=1?String(Math.round(t*100)/100):String(Math.round(t*1e3)/1e3)}function At({value:t,onChange:e,onChangeEnd:r,disabled:o,height:a=90,color:l,testId:c="curve-editor"}){const[s,d]=b.useState(0),m=b.useRef(null),i=b.useRef(null),h=b.useMemo(()=>ct(t),[t]),S=b.useMemo(()=>{const{min:n,max:u}=lt(t);if(u-n<1e-6)return{min:n-1,max:u+1};const f=(u-n)*.1;return{min:n-f,max:u+f}},[t]),A=j-O-Q,I=a-W-dt,D=n=>O+n*A,g=n=>W+(1-(n-S.min)/(S.max-S.min))*I,X=n=>Math.max(0,Math.min(1,(n-O)/A)),Z=n=>S.min+(1-(n-W)/I)*(S.max-S.min),P=n=>{const u=m.current?.getBoundingClientRect();if(!u)return{t:0,v:0};const f=(n.clientX-u.left)/u.width*j,T=(n.clientY-u.top)/u.height*a;return{t:X(f),v:Z(T)}},tt=b.useMemo(()=>{if(t.length===0)return"";let n=`M ${D(t[0].start)} ${g(t[0].function.p0)}`;for(let u=0;u<t.length;u++){const f=t[u],T=v(t,u),y=T-f.start;n+=` C ${D(f.start+y/3)} ${g(f.function.p1)}, ${D(f.start+2*y/3)} ${g(f.function.p2)}, ${D(T)} ${g(f.function.p3)}`}return n},[t,S,a]),R=n=>rt({onChange:e,onChangeEnd:r},n),H=n=>it({onChange:e},n),$=(n,u)=>{if(o)return;n.preventDefault(),n.stopPropagation(),i.current=t;const f=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=L,H(L)},T=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=null,R(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??x.accent,J=t.length,E=h[s],V=s>0&&s<J,C=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,w=C?{x:D(C.start+(v(t,s)-C.start)/3),y:g(C.function.p1)}:null,_=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:g(k.function.p2)}:null,et=[S.min,(S.min+S.max)/2,S.max];return p.jsxs("div",{"data-testid":c,children:[p.jsxs("svg",{ref:m,"data-testid":`${c}-plot`,viewBox:`0 0 ${j} ${a}`,style:{width:"100%",height:a,display:"block",background:x.inputBg,border:`1px solid ${x.border}`,borderRadius:x.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&V&&!o&&(n.preventDefault(),R(q(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(R(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:O,x2:j-Q,y1:g(n),y2:g(n),stroke:x.border,strokeWidth:.5}),p.jsx("text",{x:O-3,y:g(n)+2.5,fontSize:7,fill:x.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:x.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),E&&w&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:w.x,y2:w.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:w.x,cy:w.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"out",T))})]}),E&&_&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:_.x,y2:_.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:_.x,cy:_.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:g(n.value),r:4,fill:u===s?x.accent:x.surface,stroke:u===s?x.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,N)=>F(T,u,y,N))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:x.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:E?Math.round(E.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{E&&H(F(t,s,n,E.value))},onChangeEnd:n=>{E&&R(F(t,s,n,E.value))}}),p.jsx(U,{label:"v",value:E?Math.round(E.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{E&&H(F(t,s,E.time,n))},onChangeEnd:n=>{E&&R(F(t,s,E.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!V||o===!0,"aria-label":"Delete curve key",title:V?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{R(q(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{Rt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,wt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,_t as CLASSIC_MATERIAL,Nt as Checkbox,ls as ColorInput,Es as ColorPicker,xs as ColorSwatch,Ft as ColorSwatchInput,At as CurveEditor,Ot as DEFAULT_ICON_SET_ID,Ss as DEFAULT_SHADOW,gs as DEFAULT_TEXT_SHADOW,Ct as Dialog,kt as DialogBody,Lt as DialogField,jt as DialogFieldLabel,Bt as DialogFooter,Gt as DialogHeader,Pt as DisclosureIcon,Ht as Divider,$t as DraftTextInput,Vt as DropIndicator,zt as EDITOR_CATEGORY_NAMES,Wt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,Yt as EditorBadge,qt as EditorBanner,Qt as EditorIcon,Xt as EditorListButton,Zt as EditorPopover,te as EditorSurface,ee as EditorTab,ne as EditorTabList,se as EditorToolbar,oe as EditorTree,ae as EditorTreeRow,re as FONT,ie as FONT_MONO,ce as FieldGroup,ue as FieldLabel,le as FieldRow,de as FileInput,Ts as FilterEditor,pe as FloatingToolbar,bs as FontPicker,fe as GLASS_MATERIAL,Ds as GradientEditor,Ms as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,Ee as InteractiveEditScopeContext,xe as JoinedField,Se as JoinedFieldSuffix,Mt as JsonInput,ge as Keycap,Te as LABEL_COL_WIDTH,be as Menu,De as MenuItem,Me as MenuSeparator,ye as MenuSubmenu,Ae as MenuTrigger,U as NumberInput,Ie as Panel,ys as QuarksGradientEditor,ve as RangeInput,Re as ResizeHandle,we as STAGE_WORD_MODES,As as ScrubbableInput,_e as SectionHeader,Ne as Select,Is as ShadowEditor,vs as ShadowListEditor,Fe as Spacer,Oe as SplitButtonGroup,Ce as Stack,ke as StateSurface,x as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Rs as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,Ve as ToolbarGroup,ze as Tooltip,We as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,Ye as activeIconGlyph,qe as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,ws as composeFilter,_s as composeGradient,Ns as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,q as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,En as fieldLabelStyle,it as fireChange,rt as fireEnd,xn as focusFirstMenuItem,Sn as focusRing,gn as fontMono,Tn as fontSans,bn as fontSize,Dn as fontSizeVar,Mn as fontWeight,yn as glassDarkEditorTheme,An as glassDarkLiteEditorTheme,In as graphiteDarkEditorTheme,vn as graphiteNeutralEditorTheme,Rn as groupLabelStyle,wn as iconSize,_n as isEditorIconSetId,Nn as isEditorMaterialId,Fn as isEditorThemeId,Fs as isUniformBorder,Os as isUniformRadius,On as lineHeight,Cn as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,F as moveKey,Y as moveTangent,Cs as parseFilterFunctions,ks as parseGradient,Pn as parseNumericValue,Ls as parseShadows,Hn as radius,$n as regionRowAltValue,Vn as registerContributedIconSet,zn as registerContributedMaterial,Wn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,Yn as shadow,qn as space,Qn as spaceVar,ut as splitAt,Xn as strokeWidth,Zn as subscribeEditorMaterials,ts as subscribeIconSets,es as success,ns as successMuted,ss as text,ot as themeVars,js as uniformBorder,Bs as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
|
|
1
|
+
import{cR as nt,aM as st,af as ot,eS as x,dy as U,a0 as at,ho as rt,hp as it}from"./index-GOaZz_UJ.js";import{hq as Rt,hr as wt,hs as _t,aR as Nt,dA as Ft,ht as Ot,hu as Ct,hv as kt,hw as Lt,hx as jt,hy as Bt,hz as Gt,eF as Pt,hA as Ht,eX as $t,hB as Vt,hC as zt,hD as Wt,hE as Kt,hF as Jt,d8 as Ut,hG as Yt,dV as qt,a1 as Qt,em as Xt,cK as Zt,g_ as te,hH as ee,hI as ne,cO as se,hJ as oe,hK as ae,hL as re,eV as ie,fb as ce,hM as ue,fc as le,hN as de,cD as pe,hO as fe,aL as he,cM as me,hP as Ee,hQ as xe,hR as Se,cN as ge,e_ as Te,gi as be,cS as De,dj as Me,fH as ye,he as Ae,hS as Ie,aS as ve,hT as Re,hU as we,aT as _e,dh as Ne,hV as Fe,cG as Oe,cL as Ce,ex as ke,hW as Le,hX as je,aK as Be,eY as Ge,hY as Pe,hZ as He,gH as $e,h_ as Ve,cE as ze,h$ as We,i0 as Ke,eo as Je,i1 as Ue,i2 as Ye,i3 as qe,i4 as Qe,i5 as Xe,ek as Ze,el as tn,i6 as en,i7 as nn,i8 as sn,i9 as on,er as an,ia as rn,ib as cn,ic as un,id as ln,ie as dn,a2 as pn,ig as fn,ih as hn,ii as mn,ij as En,ik as xn,il as Sn,es as gn,im as Tn,io as bn,ep as Dn,ip as Mn,iq as yn,ir as An,d9 as In,is as vn,it as Rn,iu as wn,iv as _n,iw as Nn,ix as Fn,iy as On,eT as Cn,iz as kn,iA as Ln,iB as jn,iC as Bn,iD as Gn,iE as Pn,et as Hn,iF as $n,iG as Vn,iH as zn,eZ as Wn,iI as Kn,iJ as Jn,iK as Un,iL as Yn,c$ as qn,en as Qn,iM as Xn,iN as Zn,iO as ts,eq as es,iP as ns,aY as ss,dz as os,iQ as as,iR as rs,iS as is,c_ as cs}from"./index-GOaZz_UJ.js";import{C as ls}from"./ColorInput-fP6gD8GQ.js";import{a as p}from"./jsx-runtime-DPjLkJKQ.js";import{r as b}from"./index-nmcBqr7Y.js";import{A as ps,k as fs,B as hs,a as ms,l as Es,C as xs,D as Ss,m as gs,F as Ts,h as bs,G as Ds,n as Ms,Q as ys,S as As,f as Is,o as vs,T as Rs,d as ws,c as _s,g as Ns,i as Fs,j as Os,b as Cs,p as ks,e as Ls,u as js,q as Bs}from"./ShadowEditor-BQ_4yLgQ.js";import"./index-CtzuWnCS.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";function Dt({preview:t,children:e,...r}){const[o,a]=b.useState(!1),l=b.useRef(null),c=b.useId(),s=()=>a(!1),d=i=>{l.current=i,a(!0)};let m=e;if(b.isValidElement(e)){const i=[e.props["aria-describedby"],o?c:null].filter(Boolean).join(" ");m=b.cloneElement(e,i?{"aria-describedby":i}:{})}return p.jsxs("span",{className:"volter-tooltip-anchor",onMouseEnter:i=>d(i.currentTarget),onMouseLeave:s,onFocusCapture:i=>d(i.currentTarget),onBlurCapture:i=>{i.currentTarget.contains(i.relatedTarget)||s()},onKeyDown:i=>{i.key!=="Escape"||!o||(i.preventDefault(),i.stopPropagation(),s())},children:[m,o&&l.current&&p.jsx(nt,{...r,anchorRef:l,id:c,role:"tooltip",autoFocusFirst:!1,onDismiss:s,children:t})]})}function Mt({value:t,onCommit:e,style:r,disabled:o=!1}){const a=t===void 0?"":JSON.stringify(t),[l,c]=b.useState(a),[s,d]=b.useState(!1),m=b.useRef(!1);b.useEffect(()=>{c(a),d(!1)},[a]);const i=()=>{if(m.current){m.current=!1;return}if(l===a){d(!1);return}let h;try{h=JSON.parse(l)}catch{d(!0);return}d(!1),e(h)};return p.jsxs("div",{children:[p.jsx(st,{"data-testid":"json-input","aria-invalid":s||void 0,"data-tone":s?"danger":void 0,disabled:o,value:l,onChange:h=>{c(h.target.value),s&&d(!1)},onBlur:i,onKeyDown:h=>{h.key==="Enter"?i():h.key==="Escape"&&(m.current=!0,c(a),d(!1),h.target.blur())},style:r,title:s?"Not valid JSON — nothing written. Fix the JSON or press Escape to revert.":void 0}),s&&p.jsx("div",{"data-testid":"json-input-error",style:{fontSize:"var(--volter-font-sm)",color:ot.semantic.danger,marginTop:2},children:"Not valid JSON — nothing written. Fix the JSON or press Escape to revert."})]})}function v(t,e){return e+1<t.length?t[e+1].start:1}function ct(t){const e=t.map(o=>({time:o.start,value:o.function.p0})),r=t[t.length-1];return r&&e.push({time:1,value:r.function.p3}),e}function G(t){return t.map(e=>({start:e.start,function:{...e.function}}))}const B=.01;function F(t,e,r,o){const a=G(t),l=a.length;if(e<0||e>l)return a;if(e<l){const c=a[e],s=o-c.function.p0;if(c.function.p0=o,c.function.p1+=s,e>0){const d=a[e-1],m=o-d.function.p3;d.function.p3=o,d.function.p2+=m;const i=d.start+B,h=v(a,e)-B;c.start=Math.min(h,Math.max(i,r))}}else{const c=a[l-1],s=o-c.function.p3;c.function.p3=o,c.function.p2+=s}return a}function Y(t,e,r,o){const a=G(t);return r==="out"&&e<a.length?a[e].function.p1=o:r==="in"&&e>0&&e<=a.length&&(a[e-1].function.p2=o),a}function M(t,e,r){return t+(e-t)*r}function yt(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e>=o&&e<=a){const l=a>o?(e-o)/(a-o):0,{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l);return M(A,I,l)}}return 0}function ut(t,e){for(let r=0;r<t.length;r++){const o=t[r].start,a=v(t,r);if(e<=o+B||e>=a-B||e<o||e>a)continue;const l=(e-o)/(a-o),{p0:c,p1:s,p2:d,p3:m}=t[r].function,i=M(c,s,l),h=M(s,d,l),S=M(d,m,l),A=M(i,h,l),I=M(h,S,l),D=M(A,I,l),g=G(t);return g.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:S,p3:m}}),g}return t}function q(t,e){if(e<=0||e>=t.length)return t;const r=t[e-1],o=t[e],a=o.start-r.start,l=v(t,e)-o.start,c=a+l;if(c<=0)return t;const s=r.function,d=o.function,m={start:r.start,function:{p0:s.p0,p1:s.p0+(s.p1-s.p0)*(a>0?c/a:1),p2:d.p3+(d.p2-d.p3)*(l>0?c/l:1),p3:d.p3}},i=G(t);return i.splice(e-1,2,m),i}function lt(t){let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;for(const o of t)for(const a of[o.function.p0,o.function.p1,o.function.p2,o.function.p3])a<e&&(e=a),a>r&&(r=a);return!Number.isFinite(e)||!Number.isFinite(r)?{min:0,max:1}:{min:e,max:r}}const O=34,Q=6,W=6,dt=14,j=260;function pt(t){return Math.abs(t)>=100?t.toFixed(0):Math.abs(t)>=1?String(Math.round(t*100)/100):String(Math.round(t*1e3)/1e3)}function At({value:t,onChange:e,onChangeEnd:r,disabled:o,height:a=90,color:l,testId:c="curve-editor"}){const[s,d]=b.useState(0),m=b.useRef(null),i=b.useRef(null),h=b.useMemo(()=>ct(t),[t]),S=b.useMemo(()=>{const{min:n,max:u}=lt(t);if(u-n<1e-6)return{min:n-1,max:u+1};const f=(u-n)*.1;return{min:n-f,max:u+f}},[t]),A=j-O-Q,I=a-W-dt,D=n=>O+n*A,g=n=>W+(1-(n-S.min)/(S.max-S.min))*I,X=n=>Math.max(0,Math.min(1,(n-O)/A)),Z=n=>S.min+(1-(n-W)/I)*(S.max-S.min),P=n=>{const u=m.current?.getBoundingClientRect();if(!u)return{t:0,v:0};const f=(n.clientX-u.left)/u.width*j,T=(n.clientY-u.top)/u.height*a;return{t:X(f),v:Z(T)}},tt=b.useMemo(()=>{if(t.length===0)return"";let n=`M ${D(t[0].start)} ${g(t[0].function.p0)}`;for(let u=0;u<t.length;u++){const f=t[u],T=v(t,u),y=T-f.start;n+=` C ${D(f.start+y/3)} ${g(f.function.p1)}, ${D(f.start+2*y/3)} ${g(f.function.p2)}, ${D(T)} ${g(f.function.p3)}`}return n},[t,S,a]),R=n=>rt({onChange:e,onChangeEnd:r},n),H=n=>it({onChange:e},n),$=(n,u)=>{if(o)return;n.preventDefault(),n.stopPropagation(),i.current=t;const f=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=L,H(L)},T=y=>{const{t:N,v:z}=P(y),L=u(i.current??t,N,z);i.current=null,R(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??x.accent,J=t.length,E=h[s],V=s>0&&s<J,C=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,w=C?{x:D(C.start+(v(t,s)-C.start)/3),y:g(C.function.p1)}:null,_=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:g(k.function.p2)}:null,et=[S.min,(S.min+S.max)/2,S.max];return p.jsxs("div",{"data-testid":c,children:[p.jsxs("svg",{ref:m,"data-testid":`${c}-plot`,viewBox:`0 0 ${j} ${a}`,style:{width:"100%",height:a,display:"block",background:x.inputBg,border:`1px solid ${x.border}`,borderRadius:x.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&V&&!o&&(n.preventDefault(),R(q(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(R(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:O,x2:j-Q,y1:g(n),y2:g(n),stroke:x.border,strokeWidth:.5}),p.jsx("text",{x:O-3,y:g(n)+2.5,fontSize:7,fill:x.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:x.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),E&&w&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:w.x,y2:w.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:w.x,cy:w.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"out",T))})]}),E&&_&&p.jsxs("g",{children:[p.jsx("line",{x1:D(E.time),y1:g(E.value),x2:_.x,y2:_.y,stroke:x.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:_.x,cy:_.y,r:3,fill:x.surface,stroke:x.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>Y(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:g(n.value),r:4,fill:u===s?x.accent:x.surface,stroke:u===s?x.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,N)=>F(T,u,y,N))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:x.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:E?Math.round(E.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{E&&H(F(t,s,n,E.value))},onChangeEnd:n=>{E&&R(F(t,s,n,E.value))}}),p.jsx(U,{label:"v",value:E?Math.round(E.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{E&&H(F(t,s,E.time,n))},onChangeEnd:n=>{E&&R(F(t,s,E.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!V||o===!0,"aria-label":"Delete curve key",title:V?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{R(q(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{Rt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,wt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,_t as CLASSIC_MATERIAL,Nt as Checkbox,ls as ColorInput,Es as ColorPicker,xs as ColorSwatch,Ft as ColorSwatchInput,At as CurveEditor,Ot as DEFAULT_ICON_SET_ID,Ss as DEFAULT_SHADOW,gs as DEFAULT_TEXT_SHADOW,Ct as Dialog,kt as DialogBody,Lt as DialogField,jt as DialogFieldLabel,Bt as DialogFooter,Gt as DialogHeader,Pt as DisclosureIcon,Ht as Divider,$t as DraftTextInput,Vt as DropIndicator,zt as EDITOR_CATEGORY_NAMES,Wt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,Yt as EditorBadge,qt as EditorBanner,Qt as EditorIcon,Xt as EditorListButton,Zt as EditorPopover,te as EditorSurface,ee as EditorTab,ne as EditorTabList,se as EditorToolbar,oe as EditorTree,ae as EditorTreeRow,re as FONT,ie as FONT_MONO,ce as FieldGroup,ue as FieldLabel,le as FieldRow,de as FileInput,Ts as FilterEditor,pe as FloatingToolbar,bs as FontPicker,fe as GLASS_MATERIAL,Ds as GradientEditor,Ms as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,Ee as InteractiveEditScopeContext,xe as JoinedField,Se as JoinedFieldSuffix,Mt as JsonInput,ge as Keycap,Te as LABEL_COL_WIDTH,be as Menu,De as MenuItem,Me as MenuSeparator,ye as MenuSubmenu,Ae as MenuTrigger,U as NumberInput,Ie as Panel,ys as QuarksGradientEditor,ve as RangeInput,Re as ResizeHandle,we as STAGE_WORD_MODES,As as ScrubbableInput,_e as SectionHeader,Ne as Select,Is as ShadowEditor,vs as ShadowListEditor,Fe as Spacer,Oe as SplitButtonGroup,Ce as Stack,ke as StateSurface,x as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Rs as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,Ve as ToolbarGroup,ze as Tooltip,We as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,Ye as activeIconGlyph,qe as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,ws as composeFilter,_s as composeGradient,Ns as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,q as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,En as fieldLabelStyle,it as fireChange,rt as fireEnd,xn as focusFirstMenuItem,Sn as focusRing,gn as fontMono,Tn as fontSans,bn as fontSize,Dn as fontSizeVar,Mn as fontWeight,yn as glassDarkEditorTheme,An as glassDarkLiteEditorTheme,In as graphiteDarkEditorTheme,vn as graphiteNeutralEditorTheme,Rn as groupLabelStyle,wn as iconSize,_n as isEditorIconSetId,Nn as isEditorMaterialId,Fn as isEditorThemeId,Fs as isUniformBorder,Os as isUniformRadius,On as lineHeight,Cn as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,F as moveKey,Y as moveTangent,Cs as parseFilterFunctions,ks as parseGradient,Pn as parseNumericValue,Ls as parseShadows,Hn as radius,$n as regionRowAltValue,Vn as registerContributedIconSet,zn as registerContributedMaterial,Wn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,Yn as shadow,qn as space,Qn as spaceVar,ut as splitAt,Xn as strokeWidth,Zn as subscribeEditorMaterials,ts as subscribeIconSets,es as success,ns as successMuted,ss as text,ot as themeVars,js as uniformBorder,Bs as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
|