@volter/game-editor 0.5.111 → 0.5.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/BUNDLED_NOTICES +22 -22
  2. package/catalog/entries/blender.json +2 -2
  3. package/catalog/entries/music.json +2 -2
  4. package/dist/.vite/manifest.json +2177 -2177
  5. package/dist/assets/{AssetBudgetPanel-bAupz88s.js → AssetBudgetPanel-YOmIrgrb.js} +3 -3
  6. package/dist/assets/{AudioViewer-CQ5i0sqh.js → AudioViewer-bTwqa-Sq.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-DYOf1iuv.js → CanvasBoardDocument-DH0GumqR.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-DdW-6-P6.js → CanvasSceneViewport-GSbXiEc2.js} +1 -1
  9. package/dist/assets/{ColorInput-BbZePcoW.js → ColorInput-CM13COOy.js} +1 -1
  10. package/dist/assets/{ColorPicker-ZCQfoKnw.js → ColorPicker-EVo4ngxp.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-DVK0IVd_.js → EntityModelDocument-BTYbMslU.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-CwIXIrF0.js → EnvironmentAssetDocument-CxncdHY1.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-D_qya3Ig.js → GameplaySessionTimeline-PDuA7cCk.js} +1 -1
  14. package/dist/assets/{ImageViewer-Cfs_40NV.js → ImageViewer-Dr9tOsGR.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-CmjfAk0I.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-99jBhhmk.js → JsonAssetDocument-95S-d0FJ.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-Dl5VGMB4.js → LiveModuleDocument-tqAYWVCZ.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-5ouR-h-W.js → LutAssetDocument-DOpqQnUe.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-0YP8CLjF.js → ModelAssetDocument-DrWymVJX.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-B6EVY_ZH.js → NonThreeAuthoringBootstrap-Gnetb5kf.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-B5IxZycD.js → Object3DDocumentToolbar-LEaER56N.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-CgifoYVE.js +2 -0
  23. package/dist/assets/{Object3DPreview-E81OnLKY.js → Object3DPreview-CI9SLEn2.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-CrgCBa3x.js → OnlineAssetDetail-C1_UGp0X.js} +1 -1
  25. package/dist/assets/{PlayBar-B60kaU1V.js → PlayBar-BqFW5mT2.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-MSQtJ_Z3.js → QuarksAssetDocument-B1-XXOIo.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-Dc5zCUT9.js → ReactCanvasControls-BF1bVCnc.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-B077HGww.js → RootSelectionOverlay-BF32ngZd.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-TpRIHvr1.js → ShaderAssetDocument-Dp1QXqID.js} +1 -1
  30. package/dist/assets/{ShadowEditor-DV3nK6mc.js → ShadowEditor-4Db4i5w5.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-Dawor1Iu.js → SourceAssetViewer-BmlLDth6.js} +1 -1
  32. package/dist/assets/{StageHost-DHOA7Fjl.js → StageHost-BQL5IEe5.js} +2 -2
  33. package/dist/assets/{StoryPreviewMount-CI_-6GSI.js → StoryPreviewMount-wz2HTXNK.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-DFc5NTeM.js → ThreeBoardDocument-DEAY51YS.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent-B9n7e1ah.js → ThreeIsolationSceneContent-BTsDcsEk.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-D9yRYXUH.js → ToolObject3DPreview-DwuMA8jQ.js} +1 -1
  37. package/dist/assets/{Toolbar-C2oWqmoE.js → Toolbar-D1TipTFF.js} +1 -1
  38. package/dist/assets/{TransientHint-Sxme-xvC.js → TransientHint-DzC7ZR7m.js} +1 -1
  39. package/dist/assets/{VideoViewer-Dkfz15uC.js → VideoViewer-Dh6AS4So.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-4R5nlQgL.js → ViewportShadingMenu-B3YlrMIP.js} +1 -1
  41. package/dist/assets/{active-ingest-CqL5EgXV.js → active-ingest-DyPN4pXx.js} +2 -2
  42. package/dist/assets/{animation-clock-Cmfj6SD6.js → animation-clock-Cgc__YFh.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-BOsyfXwP.js → animation-mixers.service-gxCtRrOy.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-CJEflb93.js → animation-timeline.utility-DB9Ux44B.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-Cq8duqsp.js → asset-budget-asset.menu-B00KTyex.js} +1 -1
  46. package/dist/assets/{asset-budget.action-5nHAtvW2.js → asset-budget.action-DBNBL_EX.js} +1 -1
  47. package/dist/assets/{asset-budget.document-CX5FvczQ.js → asset-budget.document-BdNi2KSS.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-BdGhNV4r.js → asset-budget.menu-B5ac_4XU.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-DaYfW31_.js → asset-editor-persistence-BB9WAcxO.js} +1 -1
  50. package/dist/assets/{asset-loaders-C399YlHO.js → asset-loaders-BIr1M5-7.js} +1 -1
  51. package/dist/assets/{asset-preview-j90MweIO.js → asset-preview-SYBnd0Vm.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-Dp9He34b.js → audio-unlock.service-DzxNWnKh.js} +1 -1
  53. package/dist/assets/{audio.utility-CyqJbM1O.js → audio.utility-B-NT_pSF.js} +1 -1
  54. package/dist/assets/autoplay.service-BOi_pnfg.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-CnWPdC1Q.js → babylon-authoring-adapter-ClEvING-.js} +1 -1
  56. package/dist/assets/{binding-resolver-BXphDCM5.js → binding-resolver-DrkSEcWH.js} +2 -2
  57. package/dist/assets/blender-emscripten-engine-CRz1C2s0.js +2 -0
  58. package/dist/assets/{blender-node-editor.document-CXx2qHR3.js → blender-node-editor.document-BLudqWaR.js} +1 -1
  59. package/dist/assets/{blender-properties-tab-D9Q053TO.js → blender-properties-tab-CgQrdCmF.js} +1 -1
  60. package/dist/assets/{blender-runtime-host-D_QBYZ7F.js → blender-runtime-host-DzGwnLBS.js} +1 -1
  61. package/dist/assets/{blender-runtime-skin-C-MmFKPY.js → blender-runtime-skin-C2nxKTQ1.js} +1 -1
  62. package/dist/assets/{blender-runtime.document-Byj95WvX.js → blender-runtime.document-DF4Kd_X3.js} +1 -1
  63. package/dist/assets/{blender-screenshot.menu-D-pdEuVU.js → blender-screenshot.menu-CgmIjtZz.js} +1 -1
  64. package/dist/assets/{blender-timeline.document-DcXWTjQl.js → blender-timeline.document-C4mTn6aP.js} +1 -1
  65. package/dist/assets/{blender-uv-editor.document-B901oH9E.js → blender-uv-editor.document-CJAzjOUQ.js} +1 -1
  66. package/dist/assets/{blender-version.status-DpBwE4R6.js → blender-version.status-D7gCX70i.js} +1 -1
  67. package/dist/assets/{blender-wali-engine-DRlkIoxZ.js → blender-wali-engine-BmVwcYs-.js} +1 -1
  68. package/dist/assets/{blender.command-ClcEtyho.js → blender.command-B6fKa6tA.js} +1 -1
  69. package/dist/assets/{board-guides-Bi0XcSub.js → board-guides-CxjOETvX.js} +1 -1
  70. package/dist/assets/{bridge.command-BtJkJBe1.js → bridge.command-a-jcQB8T.js} +3 -3
  71. package/dist/assets/{browserAll-Dp9DArp2.js → browserAll-BuXe7m07.js} +1 -1
  72. package/dist/assets/{build-player.document-C1VNd3YO.js → build-player.document-BD0PnuJ8.js} +1 -1
  73. package/dist/assets/{build-profiles.document-BC7F3qzN.js → build-profiles.document-CVkrs6H4.js} +1 -1
  74. package/dist/assets/{build-progress.status-CGFDtJ24.js → build-progress.status-FeI4UjwE.js} +1 -1
  75. package/dist/assets/{build-session-l8PbHJfy.js → build-session-DgvoUFRy.js} +1 -1
  76. package/dist/assets/{build.action-BHnM15O4.js → build.action-De0QZn5x.js} +1 -1
  77. package/dist/assets/{build.command-DTTVx3Wu.js → build.command-Etx4MsuF.js} +1 -1
  78. package/dist/assets/{build.header-C2S6ep41.js → build.header-CrYpkM9P.js} +1 -1
  79. package/dist/assets/{build.menu-e5l_Kb4b.js → build.menu-DblGKZpN.js} +1 -1
  80. package/dist/assets/{build.service-xT03i3nJ.js → build.service-CnNOfCLi.js} +1 -1
  81. package/dist/assets/{camera-D69U5X8F.js → camera-BfeEfKS0.js} +1 -1
  82. package/dist/assets/{camera-runtime.inspector-BdU6XbLE.js → camera-runtime.inspector-Cz9u-_ud.js} +1 -1
  83. package/dist/assets/{canvas-design-mount-CysxVENA.js → canvas-design-mount-Dw9d5RCT.js} +3 -3
  84. package/dist/assets/{canvas-entry-runtime-9fi2F1yV.js → canvas-entry-runtime-C2NiPlg5.js} +2 -2
  85. package/dist/assets/{canvas-preview-frames-Wb2Bog86.js → canvas-preview-frames-DgjyhrhI.js} +1 -1
  86. package/dist/assets/{canvas-story-capture.service-Btqzx6zj.js → canvas-story-capture.service-DJNBPJ5i.js} +2 -2
  87. package/dist/assets/{capability-coverage-D-0PxPrZ.js → capability-coverage-DR7JrSFb.js} +1 -1
  88. package/dist/assets/{collaboration-presence-CKyRGpSR.js → collaboration-presence-CANQ_L1j.js} +1 -1
  89. package/dist/assets/{collider-BZqWPfKu.js → collider-DfVDH8FN.js} +1 -1
  90. package/dist/assets/{component-board.service-HYyGjJmx.js → component-board.service-CeMs1Lk8.js} +2 -2
  91. package/dist/assets/{component-board.service-CJZjsXi4.js → component-board.service-DVoLrHrs.js} +2 -2
  92. package/dist/assets/{component-board.service-CvtkARCk.js → component-board.service-kbY79QZo.js} +2 -2
  93. package/dist/assets/{component-contracts.service-0C85dPhO.js → component-contracts.service-MNL4lwbm.js} +1 -1
  94. package/dist/assets/{component-instance-root-BKRR39Wd.js → component-instance-root-Cau6CbHE.js} +1 -1
  95. package/dist/assets/{component-verbs.command-BopukkQ4.js → component-verbs.command-qIVRD_Xw.js} +1 -1
  96. package/dist/assets/{component-verbs.service-B7WfghCI.js → component-verbs.service-B5JxoJav.js} +1 -1
  97. package/dist/assets/{config-DVIp_KbH.js → config-RCXzlzsa.js} +2 -2
  98. package/dist/assets/{configurations-BIy9skGW.js → configurations-IGbOtv8A.js} +1 -1
  99. package/dist/assets/{connection.status-kXEe2KXG.js → connection.status-ByfpCgpC.js} +1 -1
  100. package/dist/assets/{constraints.inspector-BjxPhIKb.js → constraints.inspector-uzln0fl-.js} +1 -1
  101. package/dist/assets/{content-bounds-DbuPrpc-.js → content-bounds-D-AXJalq.js} +1 -1
  102. package/dist/assets/{contract-system-adapters-ETU93T1B.js → contract-system-adapters-DFS6S5jR.js} +1 -1
  103. package/dist/assets/{coverage.service-BiNZeB5G.js → coverage.service-CVsV-Ujp.js} +1 -1
  104. package/dist/assets/{create-runtime-D1bZzRpc.js → create-runtime-SfhwBdX4.js} +1 -1
  105. package/dist/assets/{curve-Mw8uZ4II.js → curve-o1Gq54K5.js} +1 -1
  106. package/dist/assets/{data-asset-CNuXlcV3.js → data-asset-BHGaqife.js} +1 -1
  107. package/dist/assets/{data-ref-Dwai_Sjk.js → data-ref-BAsRympT.js} +1 -1
  108. package/dist/assets/{debug-bridge-BkGUUY7U.js → debug-bridge-CP_QGmkP.js} +1 -1
  109. package/dist/assets/{debug-registry-BnLWZePq.js → debug-registry-CKJW2aaQ.js} +1 -1
  110. package/dist/assets/{deferred-ingest-play-fhFUuU4a.js → deferred-ingest-play-NdjNkEVn.js} +2 -2
  111. package/dist/assets/{design-time-canvas-mount-Dvwz9h1v.js → design-time-canvas-mount-DkXsU3H1.js} +2 -2
  112. package/dist/assets/{design-time-layers-C13ZYvbJ.js → design-time-layers-BV3mP1Sf.js} +1 -1
  113. package/dist/assets/{design-time-mount.service-D36tnAbD.js → design-time-mount.service-BFusXbnS.js} +2 -2
  114. package/dist/assets/{design-time-mount.service-B1-e6BVR.js → design-time-mount.service-BrbX9-Z0.js} +2 -2
  115. package/dist/assets/{design-time-react-mount-BnS39JM3.js → design-time-react-mount-BYKVfWQS.js} +1 -1
  116. package/dist/assets/{document-preview-three-BOO6W0ea.js → document-preview-three-BOP4aWm7.js} +1 -1
  117. package/dist/assets/{dom-authoring-adapter-rcBbBeHf.js → dom-authoring-adapter-R0NT6Dgv.js} +1 -1
  118. package/dist/assets/{draco3d-D1lzBVDH.js → draco3d-B28c7B_w.js} +1 -1
  119. package/dist/assets/{edit-mode-audio.service-DlkY1-MJ.js → edit-mode-audio.service-D4hfjqDu.js} +1 -1
  120. package/dist/assets/{edit-mode-authoring-aQOcoK_S.js → edit-mode-authoring-FKyNiefy.js} +1 -1
  121. package/dist/assets/{edit-mode-networking.service-Augb6zRU.js → edit-mode-networking.service-BixjLG2r.js} +1 -1
  122. package/dist/assets/{editor-api-BZq-wfw9.js → editor-api-B8AYtjAH.js} +1 -1
  123. package/dist/assets/{editor-layers-cylPsVa_.js → editor-layers-L_zFs_uY.js} +1 -1
  124. package/dist/assets/{editor-shell-store-BbdX1Nk_.js → editor-shell-store-DOiPmqow.js} +1 -1
  125. package/dist/assets/{entity-object-6SA98e-d.js → entity-object-CvrkMcCz.js} +1 -1
  126. package/dist/assets/{extend-C7QwHAIX.js → extend-Kvra-g2p.js} +1 -1
  127. package/dist/assets/{fork-menu-IzUmklT-.js → fork-menu-BuRnpNg9.js} +1 -1
  128. package/dist/assets/{frame-debugger-store-DnnDRluY.js → frame-debugger-store-Bz-SsB7V.js} +1 -1
  129. package/dist/assets/{game-contract-seams-BNsMlazd.js → game-contract-seams-gtPhkpZH.js} +1 -1
  130. package/dist/assets/{game-css-scope-transform-88RxvxOt.js → game-css-scope-transform-BJ-6sqe3.js} +1 -1
  131. package/dist/assets/{game-document.service-DIr-ORkq.js → game-document.service-Dtsjp-QD.js} +1 -1
  132. package/dist/assets/{game-eval.command-CC7Uvoj2.js → game-eval.command-Bx_q6yCj.js} +1 -1
  133. package/dist/assets/{game-module-access-AhDZaDcg.js → game-module-access-C8FuQkAK.js} +1 -1
  134. package/dist/assets/{game-network-9it10cBz.js → game-network-BfrYV3Wu.js} +3 -3
  135. package/dist/assets/{gameplay-export-CUQR8Pfl.js → gameplay-export-CagiJo3l.js} +1 -1
  136. package/dist/assets/{gameplay-replay-CkkM7FGY.js → gameplay-replay-BGDvgIWD.js} +1 -1
  137. package/dist/assets/{gameplay.command-BDiztUu_.js → gameplay.command-C1gvtyuv.js} +1 -1
  138. package/dist/assets/{generation-jobs-0zZosJvW.js → generation-jobs-B3vV9DA5.js} +1 -1
  139. package/dist/assets/{generation.service-CiXYopxx.js → generation.service-CAQ3QEXE.js} +1 -1
  140. package/dist/assets/{generations-Bz4lh-Ex.js → generations-maNAZ6ie.js} +1 -1
  141. package/dist/assets/{generations.status-COcMSjup.js → generations.status-BHOoDM64.js} +1 -1
  142. package/dist/assets/{hierarchy-marks-Bu95zpZR.js → hierarchy-marks-BBOKHySh.js} +1 -1
  143. package/dist/assets/{hosted-asset-materialization-CPArQZDh.js → hosted-asset-materialization-1nbID23w.js} +1 -1
  144. package/dist/assets/{index-DoNxQyzZ.js → index-2-K3RgL5.js} +2 -2
  145. package/dist/assets/{index-DIXwqDKu.js → index-BNk1xsv9.js} +1 -1
  146. package/dist/assets/{index-D6AX1fN7.js → index-BUrCxsh5.js} +1 -1
  147. package/dist/assets/{index-10BuYjLq.js → index-CIQueasL.js} +1 -1
  148. package/dist/assets/{index-DUp7NK7m.js → index-CokH1Dgb.js} +1 -1
  149. package/dist/assets/{index-DWv69g4y.js → index-D7-TEN6k.js} +1 -1
  150. package/dist/assets/{index-f4TucW0A.js → index-DV2EMzou.js} +1 -1
  151. package/dist/assets/{index-C6arl-gg.js → index-DxZ4l0Lx.js} +7 -7
  152. package/dist/assets/{index-DrtlwuOm.js → index-y3CKXb3j.js} +1 -1
  153. package/dist/assets/{inference-diagnostics-KiAwx9GD.js → inference-diagnostics-5lf-ZIbs.js} +1 -1
  154. package/dist/assets/{ingest-boot-viewport-QyepDdQb.js → ingest-boot-viewport-D4jEOuoN.js} +1 -1
  155. package/dist/assets/{ingest-siblings-B8th8IFl.js → ingest-siblings-FkhDSlt8.js} +1 -1
  156. package/dist/assets/{ingest-source-persistence-6Y7txaZJ.js → ingest-source-persistence-Ci1cjdJ9.js} +1 -1
  157. package/dist/assets/{ingest.service-DwIN9437.js → ingest.service-DCcj8m5Y.js} +1 -1
  158. package/dist/assets/{inspect-BuzOAJBe.js → inspect-CR7QdMOn.js} +1 -1
  159. package/dist/assets/instances.command-BvUqb2mS.js +1 -0
  160. package/dist/assets/{json-history-resource-BYpHdKQG.js → json-history-resource-C5b3fL6s.js} +1 -1
  161. package/dist/assets/{layered-pick-DcR7BSdS.js → layered-pick-BxRnQHJy.js} +1 -1
  162. package/dist/assets/{light-BebXVC05.js → light-DCa8P1uY.js} +1 -1
  163. package/dist/assets/{live-project-verbs-ON5loZ1Q.js → live-project-verbs-De2cikPw.js} +1 -1
  164. package/dist/assets/{machine.document-aK8akRSr.js → machine.document-ZHRCTuWw.js} +1 -1
  165. package/dist/assets/{machines.finder--KUMe7ft.js → machines.finder-_EknWXAa.js} +1 -1
  166. package/dist/assets/{material-BsuLJWFa.js → material-CKTGcoVC.js} +1 -1
  167. package/dist/assets/{material-factory-DySAGpO5.js → material-factory-Dqmsa3qq.js} +1 -1
  168. package/dist/assets/{mesh-C584NDrF.js → mesh-D7E7Tpno.js} +1 -1
  169. package/dist/assets/{model-asset-sections.service-Ei80bTEx.js → model-asset-sections.service-BODa7-eZ.js} +1 -1
  170. package/dist/assets/{model-inspection-HHsUDRbr.js → model-inspection-C3HZSfTa.js} +1 -1
  171. package/dist/assets/{model-thumbnail-DyrMbiQX.js → model-thumbnail-DU5Hb25u.js} +1 -1
  172. package/dist/assets/{models.finder-CYRONBj0.js → models.finder-DGHllLJN.js} +1 -1
  173. package/dist/assets/{module-mode-DtokuzsC.js → module-mode-D94Fe5TK.js} +2 -2
  174. package/dist/assets/{mount-canvas-ingest-root-Dwq4QJe4.js → mount-canvas-ingest-root-C7z5voqs.js} +2 -2
  175. package/dist/assets/{mount-dom-ingest-root-DjZPHSeV.js → mount-dom-ingest-root-DQe5ADSt.js} +2 -2
  176. package/dist/assets/{mount-ingest-root-CmKiIL0n.js → mount-ingest-root-Cux7Vat0.js} +2 -2
  177. package/dist/assets/{mount-manifest-Cz2WbqCT.js → mount-manifest-DA9vvNwK.js} +1 -1
  178. package/dist/assets/{mount-three-ingest-root-BAhAR7Ue.js → mount-three-ingest-root-DdLSbSi_.js} +1 -1
  179. package/dist/assets/{mounted-authoring-BVEmt4Tv.js → mounted-authoring-CdPS27uW.js} +1 -1
  180. package/dist/assets/{mounted-story-viewport-source-BTYPhoe7.js → mounted-story-viewport-source-smY_3Xvs.js} +1 -1
  181. package/dist/assets/{native-debug-module-jcvJdzVp.js → native-debug-module-D3XVzf2G.js} +1 -1
  182. package/dist/assets/{navigation-Cct1xjoc.js → navigation-BL2K8g78.js} +1 -1
  183. package/dist/assets/{navmesh.menu-DtjJRJU5.js → navmesh.menu-yn3UhjtF.js} +1 -1
  184. package/dist/assets/{navmesh.service-CvnEsnqm.js → navmesh.service-Be0ucoLP.js} +1 -1
  185. package/dist/assets/network-observer.service-BS91UFhk.js +1 -0
  186. package/dist/assets/{network.utility-C5XP8XSy.js → network.utility-7WMTdKbC.js} +1 -1
  187. package/dist/assets/{object3d-document-session-registry-CTwGgyV5.js → object3d-document-session-registry-BOhbeWPh.js} +2 -2
  188. package/dist/assets/{oid-transform-DTEc887G.js → oid-transform-D1XfG014.js} +1 -1
  189. package/dist/assets/{particles-BLIrylrd.js → particles-Cry0sotq.js} +1 -1
  190. package/dist/assets/{pixi-authoring-adapter-BNCKxBIf.js → pixi-authoring-adapter-D4r0NNmF.js} +1 -1
  191. package/dist/assets/{pixi-live-write-target-lwYfIA9h.js → pixi-live-write-target-CBs8-AZJ.js} +1 -1
  192. package/dist/assets/{play.command-BPVhF7ll.js → play.command-Dr0f3V-I.js} +2 -2
  193. package/dist/assets/{presentation-12C2FWeB.js → presentation-DZPpkAZH.js} +1 -1
  194. package/dist/assets/{product-C8MuWNVK.js → product-Ds7m0MXl.js} +1 -1
  195. package/dist/assets/{profiler.action-BONmLa2c.js → profiler.action-hX-xAN1Q.js} +1 -1
  196. package/dist/assets/{profiler.menu-Bf0kLJgQ.js → profiler.menu-DII7IA6d.js} +1 -1
  197. package/dist/assets/{profiler.utility-B3cJtsqI.js → profiler.utility-BaEdm9wI.js} +1 -1
  198. package/dist/assets/{project-authoring-session-DYu6Vw61.js → project-authoring-session-0PLEfHVB.js} +2 -2
  199. package/dist/assets/{properties-bone-constraints.inspector-YyMKBmgV.js → properties-bone-constraints.inspector-bnTZA2Sx.js} +1 -1
  200. package/dist/assets/{properties-bone.inspector-BkReBT3S.js → properties-bone.inspector-Ba_BALxK.js} +1 -1
  201. package/dist/assets/{properties-collection.inspector-BovPD8v1.js → properties-collection.inspector-BB7SCk6k.js} +1 -1
  202. package/dist/assets/{properties-constraints.inspector-C1aJGigk.js → properties-constraints.inspector-QvPC5CKU.js} +1 -1
  203. package/dist/assets/{properties-data.inspector-uJwVw8dp.js → properties-data.inspector-C8DURz4h.js} +1 -1
  204. package/dist/assets/{properties-material.inspector-CKLvO3oB.js → properties-material.inspector-BevMJr27.js} +1 -1
  205. package/dist/assets/{properties-modifiers.inspector-w4pP0syM.js → properties-modifiers.inspector-Y5pMiksE.js} +1 -1
  206. package/dist/assets/{properties-object.inspector-BaDw-i8B.js → properties-object.inspector-CQ42THXn.js} +1 -1
  207. package/dist/assets/{properties-output.inspector-BkFTWPgm.js → properties-output.inspector-Bt_7itt6.js} +1 -1
  208. package/dist/assets/{properties-particles.inspector-CNGW6Syt.js → properties-particles.inspector-Bh8XwGWa.js} +1 -1
  209. package/dist/assets/{properties-physics.inspector-Dmj_2LXD.js → properties-physics.inspector-C9Kg9opR.js} +1 -1
  210. package/dist/assets/{properties-render.inspector-DXuF3hXo.js → properties-render.inspector-D0QyE0hB.js} +1 -1
  211. package/dist/assets/{properties-scene.inspector-zIOybkJm.js → properties-scene.inspector-1MvLgJS8.js} +1 -1
  212. package/dist/assets/{properties-texture.inspector-Cw7_kD_k.js → properties-texture.inspector-DEavbeV5.js} +1 -1
  213. package/dist/assets/{properties-view-layer.inspector-KTvg6jxp.js → properties-view-layer.inspector-CLgXfOvJ.js} +1 -1
  214. package/dist/assets/{properties-world.inspector-C2z6VkUL.js → properties-world.inspector-Czxm5_qb.js} +1 -1
  215. package/dist/assets/{r3f-design-session-H_re3CvL.js → r3f-design-session-Ds-Lh4CE.js} +2 -2
  216. package/dist/assets/{r3f-physics-binding-DscNNQbO.js → r3f-physics-binding-Ddy2AMqs.js} +1 -1
  217. package/dist/assets/{r3f-source-authoring-adapter-Szo1Cs_7.js → r3f-source-authoring-adapter-IyBCACL1.js} +1 -1
  218. package/dist/assets/{react-canvas-navigation-EwFdCgr9.js → react-canvas-navigation-DJjAqkef.js} +1 -1
  219. package/dist/assets/{react-inspector.service-DhSXnL44.js → react-inspector.service-CSk2kWPq.js} +1 -1
  220. package/dist/assets/{react-story-board-D5nEBzHW.js → react-story-board-Bcx-zIef.js} +1 -1
  221. package/dist/assets/{react-three-rapier.esm-BF6QF4Ai.js → react-three-rapier.esm-1NxU3dq9.js} +1 -1
  222. package/dist/assets/{react-world-authoring-adapter-CHxMN1Va.js → react-world-authoring-adapter-OePxORCc.js} +1 -1
  223. package/dist/assets/{realm-services-BLc5oNKC.js → realm-services-DpinxOxM.js} +1 -1
  224. package/dist/assets/{reflection-probe-capture.inspector-D6VniZvh.js → reflection-probe-capture.inspector-C_6oDrHo.js} +1 -1
  225. package/dist/assets/{registry-xhjJs815.js → registry-BS9FkzwE.js} +1 -1
  226. package/dist/assets/{relative-import-specifier-DrFdqAeb.js → relative-import-specifier-D6hnbTcT.js} +1 -1
  227. package/dist/assets/{render-env-BCPdsKA4.js → render-env-C1fESfcu.js} +1 -1
  228. package/dist/assets/{render-features--0TO8Kgf.js → render-features-DHKbJ7Fz.js} +1 -1
  229. package/dist/assets/{render-settings-DjQfSasM.js → render-settings-ClSYLEFT.js} +1 -1
  230. package/dist/assets/{resolve-three-Bcsgyhyp.js → resolve-three-Bbo0SWwc.js} +3 -3
  231. package/dist/assets/{root-seam-contract-RYd0OOes.js → root-seam-contract-XS-29MWj.js} +1 -1
  232. package/dist/assets/{run-selection-LhEBCVGi.js → run-selection-DLf4qvaj.js} +1 -1
  233. package/dist/assets/{scene-capture-BIRqPhuK.js → scene-capture-L3kI0vHP.js} +1 -1
  234. package/dist/assets/{scene-document.service-TfAugRy2.js → scene-document.service-BghK8Rt9.js} +2 -2
  235. package/dist/assets/{scene-framing-nKt2uw8d.js → scene-framing-BWych0aQ.js} +1 -1
  236. package/dist/assets/{seeded-random-DVNNXGgL.js → seeded-random-Ce4p3AkI.js} +1 -1
  237. package/dist/assets/{session-BfHWkUIf.js → session-CAnO1WpE.js} +16 -3
  238. package/dist/assets/{setup-renderer-EWFHz43d.js → setup-renderer-DxcHRzSg.js} +1 -1
  239. package/dist/assets/{source-object3d-authoring-adapter-BfZL6kIn.js → source-object3d-authoring-adapter-CUFQCDZj.js} +1 -1
  240. package/dist/assets/{source-persistence-backend-jPCITiRY.js → source-persistence-backend-BsZyLz63.js} +1 -1
  241. package/dist/assets/{stage-keyboard-CoHej2w7.js → stage-keyboard-Bfxkwdni.js} +1 -1
  242. package/dist/assets/{stage-overlay-set-Ca76l3Qx.js → stage-overlay-set-bbNN2SNO.js} +1 -1
  243. package/dist/assets/{stage-presence-markers-xPVn5wYi.js → stage-presence-markers-C8xYcF2L.js} +1 -1
  244. package/dist/assets/{stage-transform-tools-tv1GrWWx.js → stage-transform-tools-p5sisbub.js} +1 -1
  245. package/dist/assets/{standard-viewport-dressing-D3zf1lK5.js → standard-viewport-dressing-I7UKATya.js} +1 -1
  246. package/dist/assets/{state-watch.action-CcKlZ2UY.js → state-watch.action-CAqCjd3J.js} +1 -1
  247. package/dist/assets/{state-watch.menu-CfX0vVzK.js → state-watch.menu-DWN-p-a3.js} +1 -1
  248. package/dist/assets/{state-watch.utility-CAFS9E8i.js → state-watch.utility-CMGyVLnH.js} +1 -1
  249. package/dist/assets/{story-capture-CQDQ6ceq.js → story-capture-BGhtcQBF.js} +1 -1
  250. package/dist/assets/{story-documents-BsCz4cYg.js → story-documents-DaK12Qjv.js} +1 -1
  251. package/dist/assets/{story-documents.service-BiPDdw6-.js → story-documents.service-CMNLzj5f.js} +1 -1
  252. package/dist/assets/{story-documents.service-DNBQcU85.js → story-documents.service-fChFb24G.js} +1 -1
  253. package/dist/assets/{story-media-presence-D4r3ux6s.js → story-media-presence-2zp3uRLL.js} +1 -1
  254. package/dist/assets/{story-pixi-preview-BdrEc99w.js → story-pixi-preview-hxfq6ofD.js} +1 -1
  255. package/dist/assets/{story-presentation-R3d3k1LX.js → story-presentation-C_FXa1VN.js} +1 -1
  256. package/dist/assets/{story-three-preview-2eZhMyGq.js → story-three-preview-uQ3ADzPv.js} +2 -2
  257. package/dist/assets/{studio-environment-Bu8zJYfs.js → studio-environment-B1C4moYZ.js} +1 -1
  258. package/dist/assets/{surface-state-iqvzpdI3.js → surface-state-BZNvmNKu.js} +1 -1
  259. package/dist/assets/{syntactic-prop-specs-fghyi8Iv.js → syntactic-prop-specs-BA6l20Yy.js} +1 -1
  260. package/dist/assets/{team-playtest.service-jsLP6oYl.js → team-playtest.service-C5Vi2OJZ.js} +1 -1
  261. package/dist/assets/{three-authoring-adapter-DHzYD2um.js → three-authoring-adapter-BckRZAFC.js} +1 -1
  262. package/dist/assets/three-authoring.service-K1UPw3op.js +2 -0
  263. package/dist/assets/{three-ingest-runtime-DnLI0CbD.js → three-ingest-runtime-DZKrRIHE.js} +1 -1
  264. package/dist/assets/{three-integration-DllJ3ocV.js → three-integration-iaJQ46tu.js} +2 -2
  265. package/dist/assets/three-integration.service-DYpZ_rFP.js +1 -0
  266. package/dist/assets/{three-CUyDAz4o.js → three-oA8NOIIL.js} +1 -1
  267. package/dist/assets/{three-projection-core-Cr_G136G.js → three-projection-core-BDAHFfdE.js} +1 -1
  268. package/dist/assets/{three-state-Y0Lj3YRW.js → three-state-BV7x8kw3.js} +1 -1
  269. package/dist/assets/{three-story-capture.service-BwHJcDgw.js → three-story-capture.service-CaUSNiDk.js} +2 -2
  270. package/dist/assets/{three-story-model-BxXXVpjW.js → three-story-model-B6IgeeuY.js} +1 -1
  271. package/dist/assets/{three-viewport-presentation-C03geDOa.js → three-viewport-presentation-CKn-D0y1.js} +1 -1
  272. package/dist/assets/{transform-mode-request-CTyYhcR7.js → transform-mode-request-APlKqsfP.js} +1 -1
  273. package/dist/assets/{transport-strip-C5eYwwWc.js → transport-strip-C-sBBXum.js} +1 -1
  274. package/dist/assets/transport.header-CxVZN4ZW.js +1 -0
  275. package/dist/assets/{tuples-CWSKPWYu.js → tuples-vz7GNWYe.js} +1 -1
  276. package/dist/assets/{ui-board-document-DsPpTbRf.js → ui-board-document-C5xsL6QI.js} +2 -2
  277. package/dist/assets/{user-data-B0zGjFCx.js → user-data-BWhINAlG.js} +1 -1
  278. package/dist/assets/{utility-view-state--9kNEUqG.js → utility-view-state-DUssk2Y5.js} +1 -1
  279. package/dist/assets/{viewport-door-BYc5x1R6.js → viewport-door-D_nXAmUt.js} +1 -1
  280. package/dist/assets/{viewport-root-presentation-Do2ApQ2Z.js → viewport-root-presentation-DKZfgm-u.js} +1 -1
  281. package/dist/assets/{viewport-surface-status-7HsBeVul.js → viewport-surface-status-BK9OGt3f.js} +1 -1
  282. package/dist/assets/{webworkerAll-B4YS4ShL.js → webworkerAll-Du9ligfF.js} +1 -1
  283. package/dist/assets/worker-BXLmYZTK.js +2 -0
  284. package/dist/assets/{workspace-arrangement-fbEjJgLC.js → workspace-arrangement-BgwQc-qT.js} +1 -1
  285. package/dist/assets/{world-documents-Dfz5UHlQ.js → world-documents-DeHr136o.js} +1 -1
  286. package/dist/assets/{world-root-stage-binding-Yr9vCZgJ.js → world-root-stage-binding-BM10opvf.js} +1 -1
  287. package/dist/assets/{xstate-animation-binding-DVeg6K5M.js → xstate-animation-binding-B_oh3YqN.js} +1 -1
  288. package/dist/assets/{xstate-animation-meta-Ct8E8pwC.js → xstate-animation-meta-DJXYGNX1.js} +1 -1
  289. package/dist-node/cli.js +25 -27
  290. package/package.json +16 -16
  291. package/dist/assets/InspectorObjectPreview-CZGUVXl6.js +0 -1
  292. package/dist/assets/Object3DDocumentViewport-BCQBFvo8.js +0 -2
  293. package/dist/assets/autoplay.service-YRbIL-c1.js +0 -1
  294. package/dist/assets/blender-emscripten-engine-DrQ7iKAw.js +0 -2
  295. package/dist/assets/instances.command-CGjpGtsn.js +0 -1
  296. package/dist/assets/network-observer.service-QgI7uDnk.js +0 -1
  297. package/dist/assets/three-authoring.service-DGp-G2mb.js +0 -2
  298. package/dist/assets/three-integration.service-Cns0bkbp.js +0 -1
  299. package/dist/assets/transport.header-BdJfBfsH.js +0 -1
  300. package/dist/assets/worker-CIByxsbl.js +0 -2
@@ -1 +1 @@
1
- import{bA as nt,aN as st,al as ot,e4 as E,dV as U,a6 as at,e6 as rt,e5 as it}from"./index-C6arl-gg.js";import{hp as wt,hq as Rt,hr as Nt,aS as _t,dX as Ct,hs as Ft,ht as Ot,hu as kt,hv as Lt,hw as jt,hx as Bt,hy as Gt,eJ as Pt,hz as Ht,e_ as $t,hA as zt,hB as Wt,hC as Vt,hD as Kt,hE as Jt,dz as Ut,hF as qt,bQ as Yt,a7 as Qt,eq as Xt,bP as Zt,h1 as te,hG as ee,hH as ne,bv as se,hI as oe,hJ as ae,hK as re,eY as ie,fe as ce,hL as ue,ff as le,hM as de,d9 as pe,hN as fe,aM as he,df as me,hO as xe,hP as Ee,hQ as ge,dg as Se,f1 as Te,fz as be,bB as De,bC as Me,fN as ye,hR as Ae,hS as Ie,aT as ve,hT as we,hU as Re,aU as Ne,bH as _e,hV as Ce,db as Fe,de as Oe,eB as ke,hW as Le,hX as je,aL as Be,e$ as Ge,hY as Pe,hZ as He,gK as $e,h_ as ze,bw as We,h$ as Ve,i0 as Ke,es as Je,i1 as Ue,i2 as qe,i3 as Ye,i4 as Qe,i5 as Xe,eo as Ze,ep as tn,i6 as en,i7 as nn,i8 as sn,i9 as on,ev as an,ia as rn,ib as cn,ic as un,id as ln,ie as dn,a8 as pn,ig as fn,ih as hn,ii as mn,ij as xn,ik as En,il as gn,ew as Sn,im as Tn,io as bn,et as Dn,ip as Mn,iq as yn,ir as An,dA as In,is as vn,it as wn,iu as Rn,iv as Nn,iw as _n,ix as Cn,iy as Fn,eW as On,iz as kn,iA as Ln,iB as jn,iC as Bn,iD as Gn,iE as Pn,ex as Hn,iF as $n,iG as zn,iH as Wn,f0 as Vn,iI as Kn,iJ as Jn,iK as Un,iL as qn,dq as Yn,er as Qn,iM as Xn,iN as Zn,iO as ts,eu as es,iP as ns,aZ as ss,dW as os,iQ as as,iR as rs,iS as is,dp as cs}from"./index-C6arl-gg.js";import{C as ls}from"./ColorInput-BbZePcoW.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,D as xs,l as Es,F as gs,h as Ss,G as Ts,m as bs,Q as Ds,S as Ms,f as ys,n as As,T as Is,d as vs,c as ws,g as Rs,i as Ns,j as _s,b as Cs,p as Fs,e as Os,u as ks,o as Ls}from"./ShadowEditor-DV3nK6mc.js";import{a as Bs,C as Gs,h as Ps,p as Hs,t as $s}from"./ColorPicker-ZCQfoKnw.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 C(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 q(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),g=M(d,m,l),A=M(i,h,l),I=M(h,g,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),g=M(d,m,l),A=M(i,h,l),I=M(h,g,l),D=M(A,I,l),S=G(t);return S.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:g,p3:m}}),S}return t}function Y(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 F=34,Q=6,V=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]),g=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-F-Q,I=a-V-dt,D=n=>F+n*A,S=n=>V+(1-(n-g.min)/(g.max-g.min))*I,X=n=>Math.max(0,Math.min(1,(n-F)/A)),Z=n=>g.min+(1-(n-V)/I)*(g.max-g.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)} ${S(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)} ${S(f.function.p1)}, ${D(f.start+2*y/3)} ${S(f.function.p2)}, ${D(T)} ${S(f.function.p3)}`}return n},[t,g,a]),w=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:_,v:W}=P(y),L=u(i.current??t,_,W);i.current=L,H(L)},T=y=>{const{t:_,v:W}=P(y),L=u(i.current??t,_,W);i.current=null,w(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??E.accent,J=t.length,x=h[s],z=s>0&&s<J,O=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,R=O?{x:D(O.start+(v(t,s)-O.start)/3),y:S(O.function.p1)}:null,N=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:S(k.function.p2)}:null,et=[g.min,(g.min+g.max)/2,g.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:E.inputBg,border:`1px solid ${E.border}`,borderRadius:E.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&z&&!o&&(n.preventDefault(),w(Y(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(w(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:F,x2:j-Q,y1:S(n),y2:S(n),stroke:E.border,strokeWidth:.5}),p.jsx("text",{x:F-3,y:S(n)+2.5,fontSize:7,fill:E.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:E.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),x&&R&&p.jsxs("g",{children:[p.jsx("line",{x1:D(x.time),y1:S(x.value),x2:R.x,y2:R.y,stroke:E.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:R.x,cy:R.y,r:3,fill:E.surface,stroke:E.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>q(u,s,"out",T))})]}),x&&N&&p.jsxs("g",{children:[p.jsx("line",{x1:D(x.time),y1:S(x.value),x2:N.x,y2:N.y,stroke:E.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:N.x,cy:N.y,r:3,fill:E.surface,stroke:E.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>q(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:S(n.value),r:4,fill:u===s?E.accent:E.surface,stroke:u===s?E.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,_)=>C(T,u,y,_))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:E.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:x?Math.round(x.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{x&&H(C(t,s,n,x.value))},onChangeEnd:n=>{x&&w(C(t,s,n,x.value))}}),p.jsx(U,{label:"v",value:x?Math.round(x.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{x&&H(C(t,s,x.time,n))},onChangeEnd:n=>{x&&w(C(t,s,x.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!z||o===!0,"aria-label":"Delete curve key",title:z?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{w(Y(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{wt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,Rt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,Nt as CLASSIC_MATERIAL,_t as Checkbox,ls as ColorInput,Bs as ColorPicker,Gs as ColorSwatch,Ct as ColorSwatchInput,At as CurveEditor,Ft as DEFAULT_ICON_SET_ID,xs as DEFAULT_SHADOW,Es as DEFAULT_TEXT_SHADOW,Ot 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,zt as DropIndicator,Wt as EDITOR_CATEGORY_NAMES,Vt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,qt as EditorBadge,Yt 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,gs as FilterEditor,pe as FloatingToolbar,Ss as FontPicker,fe as GLASS_MATERIAL,Ts as GradientEditor,bs as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,xe as InteractiveEditScopeContext,Ee as JoinedField,ge as JoinedFieldSuffix,Mt as JsonInput,Se 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,Ds as QuarksGradientEditor,ve as RangeInput,we as ResizeHandle,Re as STAGE_WORD_MODES,Ms as ScrubbableInput,Ne as SectionHeader,_e as Select,ys as ShadowEditor,As as ShadowListEditor,Ce as Spacer,Fe as SplitButtonGroup,Oe as Stack,ke as StateSurface,E as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Is as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,ze as ToolbarGroup,We as Tooltip,Ve as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,qe as activeIconGlyph,Ye as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,vs as composeFilter,ws as composeGradient,Rs as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,Y as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,xn as fieldLabelStyle,it as fireChange,rt as fireEnd,En as focusFirstMenuItem,gn as focusRing,Sn 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,wn as groupLabelStyle,Ps as hexToRgb,Rn as iconSize,Nn as isEditorIconSetId,_n as isEditorMaterialId,Cn as isEditorThemeId,Ns as isUniformBorder,_s as isUniformRadius,Fn as lineHeight,On as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,C as moveKey,q as moveTangent,Hs as parseAlpha,Cs as parseFilterFunctions,Fs as parseGradient,Pn as parseNumericValue,Os as parseShadows,Hn as radius,$n as regionRowAltValue,zn as registerContributedIconSet,Wn as registerContributedMaterial,Vn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,qn as shadow,Yn 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,$s as toHex,ks as uniformBorder,Ls as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
1
+ import{bA as nt,aN as st,al as ot,e4 as E,dV as U,a6 as at,e6 as rt,e5 as it}from"./index-DxZ4l0Lx.js";import{hp as wt,hq as Rt,hr as Nt,aS as _t,dX as Ct,hs as Ft,ht as Ot,hu as kt,hv as Lt,hw as jt,hx as Bt,hy as Gt,eJ as Pt,hz as Ht,e_ as $t,hA as zt,hB as Wt,hC as Vt,hD as Kt,hE as Jt,dz as Ut,hF as qt,bQ as Yt,a7 as Qt,eq as Xt,bP as Zt,h1 as te,hG as ee,hH as ne,bv as se,hI as oe,hJ as ae,hK as re,eY as ie,fe as ce,hL as ue,ff as le,hM as de,d9 as pe,hN as fe,aM as he,df as me,hO as xe,hP as Ee,hQ as ge,dg as Se,f1 as Te,fz as be,bB as De,bC as Me,fN as ye,hR as Ae,hS as Ie,aT as ve,hT as we,hU as Re,aU as Ne,bH as _e,hV as Ce,db as Fe,de as Oe,eB as ke,hW as Le,hX as je,aL as Be,e$ as Ge,hY as Pe,hZ as He,gK as $e,h_ as ze,bw as We,h$ as Ve,i0 as Ke,es as Je,i1 as Ue,i2 as qe,i3 as Ye,i4 as Qe,i5 as Xe,eo as Ze,ep as tn,i6 as en,i7 as nn,i8 as sn,i9 as on,ev as an,ia as rn,ib as cn,ic as un,id as ln,ie as dn,a8 as pn,ig as fn,ih as hn,ii as mn,ij as xn,ik as En,il as gn,ew as Sn,im as Tn,io as bn,et as Dn,ip as Mn,iq as yn,ir as An,dA as In,is as vn,it as wn,iu as Rn,iv as Nn,iw as _n,ix as Cn,iy as Fn,eW as On,iz as kn,iA as Ln,iB as jn,iC as Bn,iD as Gn,iE as Pn,ex as Hn,iF as $n,iG as zn,iH as Wn,f0 as Vn,iI as Kn,iJ as Jn,iK as Un,iL as qn,dq as Yn,er as Qn,iM as Xn,iN as Zn,iO as ts,eu as es,iP as ns,aZ as ss,dW as os,iQ as as,iR as rs,iS as is,dp as cs}from"./index-DxZ4l0Lx.js";import{C as ls}from"./ColorInput-CM13COOy.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,D as xs,l as Es,F as gs,h as Ss,G as Ts,m as bs,Q as Ds,S as Ms,f as ys,n as As,T as Is,d as vs,c as ws,g as Rs,i as Ns,j as _s,b as Cs,p as Fs,e as Os,u as ks,o as Ls}from"./ShadowEditor-4Db4i5w5.js";import{a as Bs,C as Gs,h as Ps,p as Hs,t as $s}from"./ColorPicker-EVo4ngxp.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 C(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 q(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),g=M(d,m,l),A=M(i,h,l),I=M(h,g,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),g=M(d,m,l),A=M(i,h,l),I=M(h,g,l),D=M(A,I,l),S=G(t);return S.splice(r,1,{start:o,function:{p0:c,p1:i,p2:A,p3:D}},{start:e,function:{p0:D,p1:I,p2:g,p3:m}}),S}return t}function Y(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 F=34,Q=6,V=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]),g=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-F-Q,I=a-V-dt,D=n=>F+n*A,S=n=>V+(1-(n-g.min)/(g.max-g.min))*I,X=n=>Math.max(0,Math.min(1,(n-F)/A)),Z=n=>g.min+(1-(n-V)/I)*(g.max-g.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)} ${S(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)} ${S(f.function.p1)}, ${D(f.start+2*y/3)} ${S(f.function.p2)}, ${D(T)} ${S(f.function.p3)}`}return n},[t,g,a]),w=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:_,v:W}=P(y),L=u(i.current??t,_,W);i.current=L,H(L)},T=y=>{const{t:_,v:W}=P(y),L=u(i.current??t,_,W);i.current=null,w(L),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",T)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",T)},K=l??E.accent,J=t.length,x=h[s],z=s>0&&s<J,O=s<J?t[s]:void 0,k=s>0?t[s-1]:void 0,R=O?{x:D(O.start+(v(t,s)-O.start)/3),y:S(O.function.p1)}:null,N=k?{x:D(k.start+(v(t,s-1)-k.start)*2/3),y:S(k.function.p2)}:null,et=[g.min,(g.min+g.max)/2,g.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:E.inputBg,border:`1px solid ${E.border}`,borderRadius:E.radiusSmall,touchAction:"none",outline:"none"},tabIndex:0,role:"application","aria-label":"Curve editor",onKeyDown:n=>{(n.key==="Delete"||n.key==="Backspace")&&z&&!o&&(n.preventDefault(),w(Y(t,s)),d(Math.max(0,s-1)))},onDoubleClick:n=>{if(o)return;const{t:u}=P(n),f=ut(t,u);f!==t&&(w(f),d(f.findIndex(T=>Math.abs(T.start-u)<1e-6)))},children:[et.map(n=>p.jsxs("g",{children:[p.jsx("line",{x1:F,x2:j-Q,y1:S(n),y2:S(n),stroke:E.border,strokeWidth:.5}),p.jsx("text",{x:F-3,y:S(n)+2.5,fontSize:7,fill:E.textMuted,textAnchor:"end",children:pt(n)})]},n)),[0,.5,1].map(n=>p.jsx("text",{x:D(n),y:a-3,fontSize:7,fill:E.textMuted,textAnchor:"middle",children:n},n)),p.jsx("path",{d:tt,fill:"none",stroke:K,strokeWidth:1.5}),x&&R&&p.jsxs("g",{children:[p.jsx("line",{x1:D(x.time),y1:S(x.value),x2:R.x,y2:R.y,stroke:E.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-out`,cx:R.x,cy:R.y,r:3,fill:E.surface,stroke:E.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>q(u,s,"out",T))})]}),x&&N&&p.jsxs("g",{children:[p.jsx("line",{x1:D(x.time),y1:S(x.value),x2:N.x,y2:N.y,stroke:E.textMuted,strokeDasharray:"2 2",strokeWidth:.75}),p.jsx("circle",{"data-testid":`${c}-tangent-in`,cx:N.x,cy:N.y,r:3,fill:E.surface,stroke:E.textMuted,style:{cursor:o?"not-allowed":"ns-resize"},onPointerDown:n=>$(n,(u,f,T)=>q(u,s,"in",T))})]}),h.map((n,u)=>p.jsx("circle",{"data-testid":`${c}-key-${u}`,cx:D(n.time),cy:S(n.value),r:4,fill:u===s?E.accent:E.surface,stroke:u===s?E.onAccent:K,strokeWidth:1.25,style:{cursor:o?"not-allowed":"move"},onPointerDown:f=>{d(u),$(f,(T,y,_)=>C(T,u,y,_))}},u))]}),p.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center",marginTop:3},children:[p.jsxs("span",{style:{fontSize:9,color:E.textMuted,flex:"0 0 auto"},children:["Key ",s+1,"/",h.length]}),p.jsx(U,{label:"t",value:x?Math.round(x.time*1e3)/1e3:null,step:.05,testId:`${c}-key-time`,onChange:n=>{x&&H(C(t,s,n,x.value))},onChangeEnd:n=>{x&&w(C(t,s,n,x.value))}}),p.jsx(U,{label:"v",value:x?Math.round(x.value*1e3)/1e3:null,step:.05,testId:`${c}-key-value`,onChange:n=>{x&&H(C(t,s,x.time,n))},onChangeEnd:n=>{x&&w(C(t,s,x.time,n))}}),p.jsx(at,{type:"button",variant:"ghost",size:"compact","data-testid":`${c}-delete-key`,disabled:!z||o===!0,"aria-label":"Delete curve key",title:z?"Delete key":"Endpoint keys cannot be deleted",onClick:()=>{w(Y(t,s)),d(Math.max(0,s-1))},children:"×"})]})]})}export{wt as Actions,ps as AlignmentGrid,fs as AnchorPresets,nt as AnchoredMenu,Rt as AssetSlotPicker,hs as BorderEditor,ms as BorderRadiusEditor,at as Button,Nt as CLASSIC_MATERIAL,_t as Checkbox,ls as ColorInput,Bs as ColorPicker,Gs as ColorSwatch,Ct as ColorSwatchInput,At as CurveEditor,Ft as DEFAULT_ICON_SET_ID,xs as DEFAULT_SHADOW,Es as DEFAULT_TEXT_SHADOW,Ot 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,zt as DropIndicator,Wt as EDITOR_CATEGORY_NAMES,Vt as EDITOR_MATERIALS,Kt as EDITOR_MATERIAL_IDS,Jt as EDITOR_REGION_NAMES,Ut as EDITOR_THEME_CLASS,qt as EditorBadge,Yt 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,gs as FilterEditor,pe as FloatingToolbar,Ss as FontPicker,fe as GLASS_MATERIAL,Ts as GradientEditor,bs as GradientStopsTrack,Dt as HoverPreview,he as IconButton,me as Inline,xe as InteractiveEditScopeContext,Ee as JoinedField,ge as JoinedFieldSuffix,Mt as JsonInput,Se 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,Ds as QuarksGradientEditor,ve as RangeInput,we as ResizeHandle,Re as STAGE_WORD_MODES,Ms as ScrubbableInput,Ne as SectionHeader,_e as Select,ys as ShadowEditor,As as ShadowListEditor,Ce as Spacer,Fe as SplitButtonGroup,Oe as Stack,ke as StateSurface,E as THEME,Le as TONE_ERROR,je as TONE_WARNING,Be as Text,Ge as TextArea,st as TextInput,Is as TextShadowEditor,Pe as ThemeRootPortal,He as ToggleButton,$e as ToolbarDivider,ze as ToolbarGroup,We as Tooltip,Ve as TreeDisclosureIcon,Ke as Vec3Input,Je as accent,Ue as accentMuted,qe as activeIconGlyph,Ye as activeIconSetSnapshot,Qe as applyEditorTheme,Xe as areaEmbossValue,Ze as bg,tn as border,en as chromeSize,nn as clampRectToViewport,sn as composeEditorAppearance,vs as composeFilter,ws as composeGradient,Rs as composeShadows,on as controlSize,ct as curveKeys,lt as curveValueRange,an as danger,rn as dangerFaint,cn as dangerMuted,Y as deleteKey,un as dynamic,ln as dynamicBg,dn as editorIconSets,pn as editorIcons,fn as editorMaterials,hn as editorThemeVariables,mn as editorThemes,xn as fieldLabelStyle,it as fireChange,rt as fireEnd,En as focusFirstMenuItem,gn as focusRing,Sn 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,wn as groupLabelStyle,Ps as hexToRgb,Rn as iconSize,Nn as isEditorIconSetId,_n as isEditorMaterialId,Cn as isEditorThemeId,Ns as isUniformBorder,_s as isUniformRadius,Fn as lineHeight,On as lineHeightVar,kn as liquidGlassEditorTheme,Ln as liquidGlassLiteEditorTheme,jn as midnightHighContrastEditorTheme,Bn as motion,Gn as motionVar,C as moveKey,q as moveTangent,Hs as parseAlpha,Cs as parseFilterFunctions,Fs as parseGradient,Pn as parseNumericValue,Os as parseShadows,Hn as radius,$n as regionRowAltValue,zn as registerContributedIconSet,Wn as registerContributedMaterial,Vn as rowStyle,yt as sampleCurve,Kn as scrim,v as segmentEnd,Jn as selection,Un as setActiveIconSet,qn as shadow,Yn 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,$s as toHex,ks as uniformBorder,Ls as uniformRadius,os as useInteractiveEditScope,as as usesGlassMaterial,rs as warn,is as warnMuted,cs as zIndex};
@@ -1 +1 @@
1
- import{Z as a}from"./index-C6arl-gg.js";const r=new Set;function i(t,e,n){return JSON.stringify([t,e,n])}function d(t,e,n){const o=i(t,e,n);r.has(o)||(r.add(o),a.warn(`No declaration covers \`${e}\` in ${t}, so the editor GUESSED \`${n}\` from its text. Declare it (a typed prop on the component, a token value that states its own kind) and the editor reads the declaration instead of a heuristic.`,"inspector"))}export{d as w};
1
+ import{Z as a}from"./index-DxZ4l0Lx.js";const r=new Set;function i(t,e,n){return JSON.stringify([t,e,n])}function d(t,e,n){const o=i(t,e,n);r.has(o)||(r.add(o),a.warn(`No declaration covers \`${e}\` in ${t}, so the editor GUESSED \`${n}\` from its text. Declare it (a typed prop on the component, a token value that states its own kind) and the editor reads the declaration instead of a heuristic.`,"inspector"))}export{d as w};
@@ -1 +1 @@
1
- import{Z as r,L as d,d3 as a,aK as c,d4 as p,d5 as m,aQ as l}from"./index-C6arl-gg.js";import{h as u,f,a as I}from"./active-ingest-CqL5EgXV.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"./game-contract-seams-BNsMlazd.js";import"./capability-coverage-D-0PxPrZ.js";import"./ingest-source-persistence-6Y7txaZJ.js";import"./contract-system-adapters-ETU93T1B.js";function b(){const o=I();if(o){if(!u())throw new Error(`Ingest "${o.worldId}" mounted without the required pause capability; refusing to expose a running game in Edit — ${f()??"no lifecycle control was bound"}.`);r.log(`Ingest "${o.worldId}" is HELD — content time does not advance in Edit until ▶`,"ingest")}const e=l(),i=d()?.scenes.default,n=i?m(i):void 0,s=(n?e.find(t=>t.descriptor.id===n):void 0)??e.find(t=>t.descriptor.id===a)??e.find(t=>t.descriptor.id===c);s&&p(s.descriptor.id)}export{b as landIngestBootInEdit};
1
+ import{Z as r,L as d,d3 as a,aK as c,d4 as p,d5 as m,aQ as l}from"./index-DxZ4l0Lx.js";import{h as u,f,a as I}from"./active-ingest-DyPN4pXx.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"./game-contract-seams-gtPhkpZH.js";import"./capability-coverage-DR7JrSFb.js";import"./ingest-source-persistence-Ci1cjdJ9.js";import"./contract-system-adapters-DFS6S5jR.js";function b(){const o=I();if(o){if(!u())throw new Error(`Ingest "${o.worldId}" mounted without the required pause capability; refusing to expose a running game in Edit — ${f()??"no lifecycle control was bound"}.`);r.log(`Ingest "${o.worldId}" is HELD — content time does not advance in Edit until ▶`,"ingest")}const e=l(),i=d()?.scenes.default,n=i?m(i):void 0,s=(n?e.find(t=>t.descriptor.id===n):void 0)??e.find(t=>t.descriptor.id===a)??e.find(t=>t.descriptor.id===c);s&&p(s.descriptor.id)}export{b as landIngestBootInEdit};
@@ -1 +1 @@
1
- import{ag as y,Z as v,bX as b,bY as R,dw as S,dx as E,b_ as f}from"./index-C6arl-gg.js";import{w}from"./mounted-authoring-BVEmt4Tv.js";import{P as k}from"./pixi-authoring-adapter-BNCKxBIf.js";import{createLiveCanvasWriteTarget as A}from"./pixi-live-write-target-lwYfIA9h.js";import{resolveCanvasPixiForEditor as x}from"./canvas-entry-runtime-9fi2F1yV.js";import{C}from"./crash-null-boundary-v3a0uEgw.js";import{a as l}from"./json-history-resource-BYpHdKQG.js";import{a as I}from"./realm-services-BLc5oNKC.js";import{r as P}from"./react-root-BHA-cdrW.js";import{D as $}from"./dom-authoring-adapter-rcBbBeHf.js";import{w as D,R as M}from"./react-world-authoring-adapter-CHxMN1Va.js";import{createPhysics2DRegistry as j}from"./physics-registry-B2Jkp8e6.js";import{createPhysicsAdapter2D as z}from"./system-adapters-rIC8FSGP.js";import{s as B}from"./three-authoring-adapter-DHzYD2um.js";import{r as h}from"./index-nmcBqr7Y.js";import{r as F}from"./index-CtzuWnCS.js";import{a as O}from"./client-DNXj_opT.js";import{mountModuleRootRuntime as T}from"./module-mode-DtokuzsC.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./entity-object-6SA98e-d.js";import"./user-data-B0zGjFCx.js";import"./workspace-arrangement-fbEjJgLC.js";import"./three-contract-Dkt6PmWY.js";import"./index-DoNxQyzZ.js";import"./source-persistence-backend-jPCITiRY.js";import"./ingest-source-persistence-6Y7txaZJ.js";import"./component-instance-root-BKRR39Wd.js";import"./pixi-transform-channels-P4rvmusc.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./debug-registry-BnLWZePq.js";import"./three-ingest-runtime-DnLI0CbD.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./inspect-BuzOAJBe.js";import"./inference-diagnostics-KiAwx9GD.js";import"./board-guides-Bi0XcSub.js";import"./relative-import-specifier-DrFdqAeb.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./writer-tw6EcuVO.js";import"./three-projection-core-Cr_G136G.js";import"./editor-layers-cylPsVa_.js";import"./three-CUyDAz4o.js";import"./viewport-editor-controls-BYaAZ_Ku.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"./rapier-physics-adapter-CaZqWLu0.js";import"./r3f-physics-binding-DscNNQbO.js";import"./capability-coverage-D-0PxPrZ.js";import"./game-contract-seams-BNsMlazd.js";import"./binding-resolver-BXphDCM5.js";import"./native-debug-module-jcvJdzVp.js";import"./native-entry-surface-BE8LJNdu.js";import"./contract-system-adapters-ETU93T1B.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./index-bQE2NA0D.js";import"./relative-path-guard-GiM7Lsz8.js";function g(t,i,n){t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.zIndex=String(i.zOrder??0),t.style.pointerEvents=n}async function W(t,i,n,m){const r=await I(n,S()),a=await P(t,r),e=document.createElement("div");e.dataset.volterRootSurface="true",g(e,t,"none"),i.appendChild(e);const u=O.createRoot(e);let s=null;if(F.flushSync(()=>{u.render(h.createElement(C,{onCaught:c=>{s=c}},h.createElement(a)))}),s!==null)throw u.unmount(),e.remove(),s instanceof Error?s:new Error(String(s));let o;if(m)if(D(e).nodes.size>0){const p=E("An ingest sibling’s react layer");o=new M(e,m.shell,{...p?{writeBackend:p}:{}})}else o=new $(e,m,{journal:l(t.id)});return{worldId:t.id,...o?{authoring:o}:{},dispose(){u.unmount(),e.remove()}}}async function L(t,i,n,m,r){const a=document.createElement("div");g(a,i,"auto"),n.appendChild(a);try{const e=n.clientWidth||800,u=n.clientHeight||600,{session:s}=await T(t,i,m,a,e,u),o=s.game.roots[0],c=o.mounted.authoring;let p;if(r)if(c)p=w(c,r);else if(o.kind==="three")p=B(r,o.threeScene(),{frameControl:"host",journal:l(i.id)});else if(o.kind==="canvas")if(o.mounted.kind!=="canvas"||o.mounted.substrate.name!=="pixi")p=o.mounted.authoring??f(r.shell,`${i.id} (${o.mounted.kind==="canvas"?o.mounted.substrate.name:"unknown"} authoring unavailable)`);else{const d=z(o.physics2d??j());p=new k(o.canvasRoot(),r,{pixi:await x(),target:A({physics:d}),journal:l(i.id),surface:()=>a})}else p=f(r.shell,`${i.id} (no authoring surface)`);return{worldId:i.id,...p?{authoring:p}:{},setPaused(d){d?s.pause():s.resume()},dispose(){s.stop(),a.remove()}}}catch(e){throw a.remove(),e}}function N(t){throw new Error(`sibling world "${t.id}" (kind: ${t.surface}, adapter identity: "${t.adapter.identity}") has no known composite-sibling mount path — every currently-resolvable identity (three/canvas/dom/module) is routed above; this is reached only for a genuinely unroutable shape.`)}function H(t){return t.adapter.type==="module"||t.adapter.identity==="three"||t.adapter.identity==="canvas"?"scoped-runtime":t.adapter.identity==="dom"?"react-layer":null}async function J(t,i,n,m,r){switch(H(i)){case"scoped-runtime":return L(t,i,n,m,r);case"react-layer":return W(i,n,m,r);default:N(i)}}async function ae(t,i,n,m,r){const a=[];for(const e of y(t))if(e.id!==i)try{a.push(await J(t,e,n,m,r))}catch(u){v.error(`Composite sibling "${e.id}" failed to mount: ${u}`,"ingest"),b({worldId:e.id,kind:e.surface,identity:e.adapter.identity,message:R(u)})}return a}export{ae as mountIngestSiblings,H as siblingMountRoute};
1
+ import{ag as y,Z as v,bX as b,bY as R,dw as S,dx as E,b_ as f}from"./index-DxZ4l0Lx.js";import{w}from"./mounted-authoring-CdPS27uW.js";import{P as k}from"./pixi-authoring-adapter-D4r0NNmF.js";import{createLiveCanvasWriteTarget as A}from"./pixi-live-write-target-CBs8-AZJ.js";import{resolveCanvasPixiForEditor as x}from"./canvas-entry-runtime-C2NiPlg5.js";import{C}from"./crash-null-boundary-v3a0uEgw.js";import{a as l}from"./json-history-resource-C5b3fL6s.js";import{a as I}from"./realm-services-DpinxOxM.js";import{r as P}from"./react-root-BHA-cdrW.js";import{D as $}from"./dom-authoring-adapter-R0NT6Dgv.js";import{w as D,R as M}from"./react-world-authoring-adapter-OePxORCc.js";import{createPhysics2DRegistry as j}from"./physics-registry-B2Jkp8e6.js";import{createPhysicsAdapter2D as z}from"./system-adapters-rIC8FSGP.js";import{s as B}from"./three-authoring-adapter-BckRZAFC.js";import{r as h}from"./index-nmcBqr7Y.js";import{r as F}from"./index-CtzuWnCS.js";import{a as O}from"./client-DNXj_opT.js";import{mountModuleRootRuntime as T}from"./module-mode-D94Fe5TK.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./entity-object-CvrkMcCz.js";import"./user-data-BWhINAlG.js";import"./workspace-arrangement-BgwQc-qT.js";import"./three-contract-Dkt6PmWY.js";import"./index-2-K3RgL5.js";import"./source-persistence-backend-BsZyLz63.js";import"./ingest-source-persistence-Ci1cjdJ9.js";import"./component-instance-root-Cau6CbHE.js";import"./pixi-transform-channels-P4rvmusc.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./debug-registry-CKJW2aaQ.js";import"./three-ingest-runtime-DZKrRIHE.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./inspect-CR7QdMOn.js";import"./inference-diagnostics-5lf-ZIbs.js";import"./board-guides-CxjOETvX.js";import"./relative-import-specifier-D6hnbTcT.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./writer-tw6EcuVO.js";import"./three-projection-core-BDAHFfdE.js";import"./editor-layers-L_zFs_uY.js";import"./three-oA8NOIIL.js";import"./viewport-editor-controls-BYaAZ_Ku.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"./rapier-physics-adapter-CaZqWLu0.js";import"./r3f-physics-binding-Ddy2AMqs.js";import"./capability-coverage-DR7JrSFb.js";import"./game-contract-seams-gtPhkpZH.js";import"./binding-resolver-DrkSEcWH.js";import"./native-debug-module-D3XVzf2G.js";import"./native-entry-surface-BE8LJNdu.js";import"./contract-system-adapters-DFS6S5jR.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./index-bQE2NA0D.js";import"./relative-path-guard-GiM7Lsz8.js";function g(t,i,n){t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.zIndex=String(i.zOrder??0),t.style.pointerEvents=n}async function W(t,i,n,m){const r=await I(n,S()),a=await P(t,r),e=document.createElement("div");e.dataset.volterRootSurface="true",g(e,t,"none"),i.appendChild(e);const u=O.createRoot(e);let s=null;if(F.flushSync(()=>{u.render(h.createElement(C,{onCaught:c=>{s=c}},h.createElement(a)))}),s!==null)throw u.unmount(),e.remove(),s instanceof Error?s:new Error(String(s));let o;if(m)if(D(e).nodes.size>0){const p=E("An ingest sibling’s react layer");o=new M(e,m.shell,{...p?{writeBackend:p}:{}})}else o=new $(e,m,{journal:l(t.id)});return{worldId:t.id,...o?{authoring:o}:{},dispose(){u.unmount(),e.remove()}}}async function L(t,i,n,m,r){const a=document.createElement("div");g(a,i,"auto"),n.appendChild(a);try{const e=n.clientWidth||800,u=n.clientHeight||600,{session:s}=await T(t,i,m,a,e,u),o=s.game.roots[0],c=o.mounted.authoring;let p;if(r)if(c)p=w(c,r);else if(o.kind==="three")p=B(r,o.threeScene(),{frameControl:"host",journal:l(i.id)});else if(o.kind==="canvas")if(o.mounted.kind!=="canvas"||o.mounted.substrate.name!=="pixi")p=o.mounted.authoring??f(r.shell,`${i.id} (${o.mounted.kind==="canvas"?o.mounted.substrate.name:"unknown"} authoring unavailable)`);else{const d=z(o.physics2d??j());p=new k(o.canvasRoot(),r,{pixi:await x(),target:A({physics:d}),journal:l(i.id),surface:()=>a})}else p=f(r.shell,`${i.id} (no authoring surface)`);return{worldId:i.id,...p?{authoring:p}:{},setPaused(d){d?s.pause():s.resume()},dispose(){s.stop(),a.remove()}}}catch(e){throw a.remove(),e}}function N(t){throw new Error(`sibling world "${t.id}" (kind: ${t.surface}, adapter identity: "${t.adapter.identity}") has no known composite-sibling mount path — every currently-resolvable identity (three/canvas/dom/module) is routed above; this is reached only for a genuinely unroutable shape.`)}function H(t){return t.adapter.type==="module"||t.adapter.identity==="three"||t.adapter.identity==="canvas"?"scoped-runtime":t.adapter.identity==="dom"?"react-layer":null}async function J(t,i,n,m,r){switch(H(i)){case"scoped-runtime":return L(t,i,n,m,r);case"react-layer":return W(i,n,m,r);default:N(i)}}async function ae(t,i,n,m,r){const a=[];for(const e of y(t))if(e.id!==i)try{a.push(await J(t,e,n,m,r))}catch(u){v.error(`Composite sibling "${e.id}" failed to mount: ${u}`,"ingest"),b({worldId:e.id,kind:e.surface,identity:e.adapter.identity,message:R(u)})}return a}export{ae as mountIngestSiblings,H as siblingMountRoute};
@@ -1 +1 @@
1
- import{Z as m,eb as f,ec as g,b3 as S,ed as b,ee as w}from"./index-C6arl-gg.js";const $="volterRecordIndex";function R(i){const e=i?.userData;if(e===null||typeof e!="object")return null;const t=e[$];return typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}let d={state:"absent"},h=0;function j(i,e){const t=i;if(t===null||typeof t!="object")throw new Error(`the data writer "${e}" did not export a module object`);if(typeof t.dataFile!="string"||t.dataFile.length===0)throw new Error(`the data writer "${e}" exports no \`dataFile\` string — a writer must name the one project-relative file it edits`);if(typeof t.planDataEdit!="function")throw new Error(`the data writer "${e}" exports no \`planDataEdit\` function — that is the whole contract: (bytes, request) => {changed, bytes} | {changed, reason}`);return{dataFile:t.dataFile,...typeof t.canPlace=="function"?{canPlace:t.canPlace.bind(t)}:{},planDataEdit:t.planDataEdit.bind(t)}}function x(i){const e=++h;if(i===null){d={state:"absent"};return}d={state:"loading"},i.load().then(t=>{h===e&&(d={state:"ready",writer:j(t,i.specifier)})}).catch(t=>{h===e&&(d={state:"failed",reason:`this game's declared data writer (${i.specifier}) could not be loaded: ${t instanceof Error?t.message:String(t)}`})})}function k(){return d}function I(i){const e=d;if(e.state!=="ready"||!e.writer.canPlace)return null;const t=e.writer.canPlace(i);return t===!0?null:t}function _(i){const e=d;switch(e.state){case"ready":return{anchored:!0,kind:"data",file:e.writer.dataFile,record:i,display:`${e.writer.dataFile} record ${i}`};case"loading":return{anchored:!1,reason:`this object is record ${i} of its game's own level data; the game's data writer is still loading`};case"failed":return{anchored:!1,reason:`this object is record ${i}, but ${e.reason}`};default:return{anchored:!1,reason:`this object is record ${i} of its game's own level data, and this game declares no data writer (\`ingest.dataWriter\`) that could write that record back`}}}const u=new TextEncoder,E=new TextDecoder;let l=null,p=null;function D(){return l}async function y(i=fetch){return l||p||(p=(async()=>{try{const e=await i("/__ingest-source/ownership");if(!e.ok)throw new Error(`HTTP ${e.status}`);l=await e.json()}catch(e){l={writable:!1,reason:`the editor could not reach its dev server to check who owns this game's source (${e instanceof Error?e.message:String(e)})`,projectRoot:null}}return l})(),p)}function T(i){const e=async(r,s)=>{const n=await i(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),o=await n.json();if(!n.ok&&r.endsWith("/read"))throw new Error(`Reading ingested game source failed with HTTP ${n.status}: ${JSON.stringify(o)}`);return o},t=new Map,a=r=>{throw new Error(`The creation-site source backend has no "${r}" — an ingested game has no JSX oids; ingest edits are anchored by creation site.`)};return{historyIdentity:P,readSource:async r=>{const s=await e("/__ingest-source/read",{file:r}),n=s.encoding==="base64";return t.set(r,n?"base64":"utf8"),n?{...s,bytes:w(s.source)}:s},applySource:(r,s,n)=>e("/__ingest-source/apply",{file:r,source:typeof s=="string"?s:b(s),ifMatchSha:n,encoding:typeof s=="string"?t.get(r)??"utf8":"base64"}),writeStyle:()=>a("writeStyle"),removeStyle:()=>a("removeStyle"),writeStruct:()=>a("writeStruct")}}const P={};class N{backend;fetchImpl;history;live;liveResourceKey=null;unregisterLive=null;constructor(e){this.history=e.history,this.live=e.live,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.backend=T(this.fetchImpl),y(this.fetchImpl)}dispose(){this.unregisterLive?.(),this.unregisterLive=null}gate(e,t,a,r="instance"){if(!e.anchored)return{ok:!1,reason:e.reason};const s=e.kind==="data"?`held at ${e.display}`:`created at ${e.display}`;if(e.kind==="data"){const o=I(a);if(o)return{ok:!1,reason:`${s}, but ${o}`}}const n=l;return n?n.writable?e.kind==="source"&&t!==1&&r!=="creation-site"?{ok:!1,reason:t===0?`${s}, but nothing was recorded as constructed there — the editor cannot tell whether that line builds this object alone`:`${s}, but that creation site constructs ${t} objects; a per-object edit cannot be written there`}:f()?{ok:!0}:{ok:!1,reason:`${s}, but this game is playing — hold it to author, or the edit stays live-only`}:{ok:!1,reason:`${s}; ${n.reason??"this game’s source is not writable"}`}:{ok:!1,reason:`${s}; still checking who owns this game's source`}}canAttempt(e,t,a){return this.gate(e,t,a).ok}describe(e,t,a,r="instance"){const s=this.gate(e,t,a,r);return s.ok?`Persisting to ${e.display}.`:`Live-only edit — ${s.reason}.`}async inspect(e){const t=e.anchor;if(!t.anchored||t.kind!=="source")return{};if(e.properties.length===0)return{};try{return(await this.post("/__ingest-source/inspect",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},...e.surface?{surface:e.surface}:{},properties:e.properties})).properties??{}}catch{return{}}}async persist(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return this.persistData(e,t);const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},baseline:e.baseline,next:e.next});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the edit was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} at ${t.display}`});return s.applied?(await this.recordEdit(e,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource}),{persisted:!0,file:r.file,detail:`${e.property} → ${r.file}:${t.line}`}):{persisted:!1,reason:s.error??"the write was refused"}}async remove(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return{persisted:!1,reason:"a level-data record has no removable source statement — its property is the record's own field, not an authored override"};const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},remove:!0});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the removal was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} removed at ${t.display}`});if(!s.applied)return{persisted:!1,reason:s.error??"the removal was refused"};const n=g(this.backend,this.history,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource});return await this.history.recordAppliedTransaction({label:e.label,resources:[n.resource],scope:"project"},[n]),{persisted:!0,file:r.file,detail:`${e.property} dropped from ${r.file}:${t.line}`}}async persistData(e,t){const a=k();if(a.state!=="ready"){const c=_(t.record);return{persisted:!1,reason:c.anchored?"this game's data writer changed mid-gesture":c.reason}}const r=await this.post("/__ingest-source/read",{file:t.file});if(typeof r.source!="string"||!r.sha||!r.resourcePath)return{persisted:!1,reason:r.error??`this game's data file ${t.file} could not be read`};if(r.encoding!=="base64")return{persisted:!1,reason:`${t.file} came back as ${r.encoding??"utf8"} text, not bytes — a data writer edits binary game data, and writing text back through it would change the file`};let s;try{s=await a.writer.planDataEdit(w(r.source),{record:t.record,property:e.property,baseline:e.baseline,next:e.next})}catch(c){return{persisted:!1,reason:`this game's data writer refused: ${c instanceof Error?c.message:String(c)}`}}if(!s.changed)return{persisted:!1,reason:s.reason};const n=b(s.bytes),o=await this.post("/__ingest-source/apply",{file:t.file,source:n,encoding:"base64",ifMatchSha:r.sha,note:`${e.property} at ${t.display}`});return o.applied?(await this.recordEdit(e,{file:t.file,resourcePath:r.resourcePath,before:w(r.source),after:s.bytes}),{persisted:!0,file:t.file,detail:`${e.property} → ${t.display}`}):{persisted:!1,reason:o.error??"the write was refused"}}async recordEdit(e,t){const a=this.history,r=this.ensureLiveResource(),s=g(this.backend,a,t),n={objects:{[e.entityId]:{[e.property]:e.baseline}}},o={objects:{[e.entityId]:{[e.property]:e.next}}};await a.recordAppliedTransaction({label:e.label,resources:[s.resource,r],scope:"project"},[s,{resource:r,beforeBytes:u.encode(JSON.stringify(n)),afterBytes:u.encode(JSON.stringify(o)),contentType:"application/json"}])}async post(e,t){return await(await this.fetchImpl(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}ensureLiveResource(){if(this.liveResourceKey)return this.liveResourceKey;const e=this.history,t=e.registry.registerProject("overlay",".volter/ingest-live-objects","Ingested game objects"),a={descriptor:t,capture:async()=>{const r=u.encode(JSON.stringify({objects:{}}));return{revision:0,contentType:"application/json",bytes:r,sha256:await S(r)}},preflight:async()=>({ok:!0}),restore:async r=>{const s=JSON.parse(E.decode(e.snapshots.read(r).bytes));for(const[n,o]of Object.entries(s.objects))for(const[c,v]of Object.entries(o))this.live.apply(n,c,v)},estimateBytes:r=>r.byteLength};return this.unregisterLive=e.registerDriver(a),this.liveResourceKey=t.key,t.key}}function A(i,e){m.warn(`[ingest] ${i} stayed live-only — ${e}.`)}export{N as I,_ as a,k as b,R as d,D as i,y as l,A as r,x as s};
1
+ import{Z as m,eb as f,ec as g,b3 as S,ed as b,ee as w}from"./index-DxZ4l0Lx.js";const $="volterRecordIndex";function R(i){const e=i?.userData;if(e===null||typeof e!="object")return null;const t=e[$];return typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}let d={state:"absent"},h=0;function j(i,e){const t=i;if(t===null||typeof t!="object")throw new Error(`the data writer "${e}" did not export a module object`);if(typeof t.dataFile!="string"||t.dataFile.length===0)throw new Error(`the data writer "${e}" exports no \`dataFile\` string — a writer must name the one project-relative file it edits`);if(typeof t.planDataEdit!="function")throw new Error(`the data writer "${e}" exports no \`planDataEdit\` function — that is the whole contract: (bytes, request) => {changed, bytes} | {changed, reason}`);return{dataFile:t.dataFile,...typeof t.canPlace=="function"?{canPlace:t.canPlace.bind(t)}:{},planDataEdit:t.planDataEdit.bind(t)}}function x(i){const e=++h;if(i===null){d={state:"absent"};return}d={state:"loading"},i.load().then(t=>{h===e&&(d={state:"ready",writer:j(t,i.specifier)})}).catch(t=>{h===e&&(d={state:"failed",reason:`this game's declared data writer (${i.specifier}) could not be loaded: ${t instanceof Error?t.message:String(t)}`})})}function k(){return d}function I(i){const e=d;if(e.state!=="ready"||!e.writer.canPlace)return null;const t=e.writer.canPlace(i);return t===!0?null:t}function _(i){const e=d;switch(e.state){case"ready":return{anchored:!0,kind:"data",file:e.writer.dataFile,record:i,display:`${e.writer.dataFile} record ${i}`};case"loading":return{anchored:!1,reason:`this object is record ${i} of its game's own level data; the game's data writer is still loading`};case"failed":return{anchored:!1,reason:`this object is record ${i}, but ${e.reason}`};default:return{anchored:!1,reason:`this object is record ${i} of its game's own level data, and this game declares no data writer (\`ingest.dataWriter\`) that could write that record back`}}}const u=new TextEncoder,E=new TextDecoder;let l=null,p=null;function D(){return l}async function y(i=fetch){return l||p||(p=(async()=>{try{const e=await i("/__ingest-source/ownership");if(!e.ok)throw new Error(`HTTP ${e.status}`);l=await e.json()}catch(e){l={writable:!1,reason:`the editor could not reach its dev server to check who owns this game's source (${e instanceof Error?e.message:String(e)})`,projectRoot:null}}return l})(),p)}function T(i){const e=async(r,s)=>{const n=await i(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),o=await n.json();if(!n.ok&&r.endsWith("/read"))throw new Error(`Reading ingested game source failed with HTTP ${n.status}: ${JSON.stringify(o)}`);return o},t=new Map,a=r=>{throw new Error(`The creation-site source backend has no "${r}" — an ingested game has no JSX oids; ingest edits are anchored by creation site.`)};return{historyIdentity:P,readSource:async r=>{const s=await e("/__ingest-source/read",{file:r}),n=s.encoding==="base64";return t.set(r,n?"base64":"utf8"),n?{...s,bytes:w(s.source)}:s},applySource:(r,s,n)=>e("/__ingest-source/apply",{file:r,source:typeof s=="string"?s:b(s),ifMatchSha:n,encoding:typeof s=="string"?t.get(r)??"utf8":"base64"}),writeStyle:()=>a("writeStyle"),removeStyle:()=>a("removeStyle"),writeStruct:()=>a("writeStruct")}}const P={};class N{backend;fetchImpl;history;live;liveResourceKey=null;unregisterLive=null;constructor(e){this.history=e.history,this.live=e.live,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.backend=T(this.fetchImpl),y(this.fetchImpl)}dispose(){this.unregisterLive?.(),this.unregisterLive=null}gate(e,t,a,r="instance"){if(!e.anchored)return{ok:!1,reason:e.reason};const s=e.kind==="data"?`held at ${e.display}`:`created at ${e.display}`;if(e.kind==="data"){const o=I(a);if(o)return{ok:!1,reason:`${s}, but ${o}`}}const n=l;return n?n.writable?e.kind==="source"&&t!==1&&r!=="creation-site"?{ok:!1,reason:t===0?`${s}, but nothing was recorded as constructed there — the editor cannot tell whether that line builds this object alone`:`${s}, but that creation site constructs ${t} objects; a per-object edit cannot be written there`}:f()?{ok:!0}:{ok:!1,reason:`${s}, but this game is playing — hold it to author, or the edit stays live-only`}:{ok:!1,reason:`${s}; ${n.reason??"this game’s source is not writable"}`}:{ok:!1,reason:`${s}; still checking who owns this game's source`}}canAttempt(e,t,a){return this.gate(e,t,a).ok}describe(e,t,a,r="instance"){const s=this.gate(e,t,a,r);return s.ok?`Persisting to ${e.display}.`:`Live-only edit — ${s.reason}.`}async inspect(e){const t=e.anchor;if(!t.anchored||t.kind!=="source")return{};if(e.properties.length===0)return{};try{return(await this.post("/__ingest-source/inspect",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},...e.surface?{surface:e.surface}:{},properties:e.properties})).properties??{}}catch{return{}}}async persist(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return this.persistData(e,t);const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},baseline:e.baseline,next:e.next});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the edit was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} at ${t.display}`});return s.applied?(await this.recordEdit(e,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource}),{persisted:!0,file:r.file,detail:`${e.property} → ${r.file}:${t.line}`}):{persisted:!1,reason:s.error??"the write was refused"}}async remove(e){if(!f())return{persisted:!1,reason:"this game is playing — a play-time edit lives on the running object only"};const t=e.anchor;if(!t.anchored)return{persisted:!1,reason:t.reason};const a=await y(this.fetchImpl);if(!a.writable)return{persisted:!1,reason:a.reason??"this game’s source is not writable"};if(!this.history)return{persisted:!1,reason:"this session has no project history to record into"};if(t.kind==="data")return{persisted:!1,reason:"a level-data record has no removable source statement — its property is the record's own field, not an authored override"};const r=await this.post("/__ingest-source/prepare",{site:{file:t.file,line:t.line,col:t.col},instances:e.instances,...e.writeScope?{writeScope:e.writeScope}:{},property:e.property,...e.surface?{surface:e.surface}:{},remove:!0});if(!r.changed||!r.file||!r.resourcePath||r.prevSource===void 0||r.newSource===void 0||!r.prevSha)return{persisted:!1,reason:r.reason??"the removal was refused"};const s=await this.post("/__ingest-source/apply",{file:r.file,source:r.newSource,ifMatchSha:r.prevSha,note:`${e.property} removed at ${t.display}`});if(!s.applied)return{persisted:!1,reason:s.error??"the removal was refused"};const n=g(this.backend,this.history,{file:r.file,resourcePath:r.resourcePath,before:r.prevSource,after:r.newSource});return await this.history.recordAppliedTransaction({label:e.label,resources:[n.resource],scope:"project"},[n]),{persisted:!0,file:r.file,detail:`${e.property} dropped from ${r.file}:${t.line}`}}async persistData(e,t){const a=k();if(a.state!=="ready"){const c=_(t.record);return{persisted:!1,reason:c.anchored?"this game's data writer changed mid-gesture":c.reason}}const r=await this.post("/__ingest-source/read",{file:t.file});if(typeof r.source!="string"||!r.sha||!r.resourcePath)return{persisted:!1,reason:r.error??`this game's data file ${t.file} could not be read`};if(r.encoding!=="base64")return{persisted:!1,reason:`${t.file} came back as ${r.encoding??"utf8"} text, not bytes — a data writer edits binary game data, and writing text back through it would change the file`};let s;try{s=await a.writer.planDataEdit(w(r.source),{record:t.record,property:e.property,baseline:e.baseline,next:e.next})}catch(c){return{persisted:!1,reason:`this game's data writer refused: ${c instanceof Error?c.message:String(c)}`}}if(!s.changed)return{persisted:!1,reason:s.reason};const n=b(s.bytes),o=await this.post("/__ingest-source/apply",{file:t.file,source:n,encoding:"base64",ifMatchSha:r.sha,note:`${e.property} at ${t.display}`});return o.applied?(await this.recordEdit(e,{file:t.file,resourcePath:r.resourcePath,before:w(r.source),after:s.bytes}),{persisted:!0,file:t.file,detail:`${e.property} → ${t.display}`}):{persisted:!1,reason:o.error??"the write was refused"}}async recordEdit(e,t){const a=this.history,r=this.ensureLiveResource(),s=g(this.backend,a,t),n={objects:{[e.entityId]:{[e.property]:e.baseline}}},o={objects:{[e.entityId]:{[e.property]:e.next}}};await a.recordAppliedTransaction({label:e.label,resources:[s.resource,r],scope:"project"},[s,{resource:r,beforeBytes:u.encode(JSON.stringify(n)),afterBytes:u.encode(JSON.stringify(o)),contentType:"application/json"}])}async post(e,t){return await(await this.fetchImpl(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}ensureLiveResource(){if(this.liveResourceKey)return this.liveResourceKey;const e=this.history,t=e.registry.registerProject("overlay",".volter/ingest-live-objects","Ingested game objects"),a={descriptor:t,capture:async()=>{const r=u.encode(JSON.stringify({objects:{}}));return{revision:0,contentType:"application/json",bytes:r,sha256:await S(r)}},preflight:async()=>({ok:!0}),restore:async r=>{const s=JSON.parse(E.decode(e.snapshots.read(r).bytes));for(const[n,o]of Object.entries(s.objects))for(const[c,v]of Object.entries(o))this.live.apply(n,c,v)},estimateBytes:r=>r.byteLength};return this.unregisterLive=e.registerDriver(a),this.liveResourceKey=t.key,t.key}}function A(i,e){m.warn(`[ingest] ${i} stayed live-only — ${e}.`)}export{N as I,_ as a,k as b,R as d,D as i,y as l,A as r,x as s};
@@ -1 +1 @@
1
- import{ae as i,r as e,Z as p}from"./index-C6arl-gg.js";import{i as s,a as m}from"./registry-xhjJs815.js";import{a}from"./mount-ingest-root-CmKiIL0n.js";import{t as n}from"./three-state-Y0Lj3YRW.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"./active-ingest-CqL5EgXV.js";import"./game-contract-seams-BNsMlazd.js";import"./capability-coverage-D-0PxPrZ.js";import"./ingest-source-persistence-6Y7txaZJ.js";import"./contract-system-adapters-ETU93T1B.js";import"./editor-shell-store-BbdX1Nk_.js";import"./output-pass-HurwNl0G.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./Pass-D1MRT672.js";import"./editor-layers-cylPsVa_.js";import"./workspace-arrangement-fbEjJgLC.js";import"./user-data-B0zGjFCx.js";import"./entity-object-6SA98e-d.js";import"./three-contract-Dkt6PmWY.js";const z="workspace.service";function B(){const o=i({id:"in-tree-ingest-registry",owner:"@volter/editor-game/contributions/ingest.service.ts",modulePathFor:t=>m(t),importModule:async t=>await s(t)}),r=e().project.onReady(async()=>{const t=n();if(!t){p.error("Ingest auto-launch skipped: the editor shell store had not arrived at project ready.","ingest");return}await a(t)});return()=>{r(),o()}}export{z as point,B as start};
1
+ import{ae as i,r as e,Z as p}from"./index-DxZ4l0Lx.js";import{i as s,a as m}from"./registry-BS9FkzwE.js";import{a}from"./mount-ingest-root-Cux7Vat0.js";import{t as n}from"./three-state-BV7x8kw3.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"./active-ingest-DyPN4pXx.js";import"./game-contract-seams-gtPhkpZH.js";import"./capability-coverage-DR7JrSFb.js";import"./ingest-source-persistence-Ci1cjdJ9.js";import"./contract-system-adapters-DFS6S5jR.js";import"./editor-shell-store-DOiPmqow.js";import"./output-pass-HurwNl0G.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./Pass-D1MRT672.js";import"./editor-layers-L_zFs_uY.js";import"./workspace-arrangement-BgwQc-qT.js";import"./user-data-BWhINAlG.js";import"./entity-object-CvrkMcCz.js";import"./three-contract-Dkt6PmWY.js";const z="workspace.service";function B(){const o=i({id:"in-tree-ingest-registry",owner:"@volter/editor-game/contributions/ingest.service.ts",modulePathFor:t=>m(t),importModule:async t=>await s(t)}),r=e().project.onReady(async()=>{const t=n();if(!t){p.error("Ingest auto-launch skipped: the editor shell store had not arrived at project ready.","ingest");return}await a(t)});return()=>{r(),o()}}export{z as point,B as start};
@@ -1 +1 @@
1
- import{w as p}from"./inference-diagnostics-KiAwx9GD.js";const y="data-oid";function S(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function w(e){return e.replace(/-([a-z])/g,(n,t)=>t.toUpperCase())}function C(e,n){return e?e[n]:void 0}const R=e=>{const n=globalThis.window;if(n?.getComputedStyle)return n.getComputedStyle(e);const t=e.style;return{getPropertyValue:s=>String(C(t,w(s))??"")}};function L(e,n,t=R){return t(e).getPropertyValue(S(n))}function v(e){if(!e||typeof e!="object")return null;const n=Object.keys(e).find(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$"));return n?e[n]??null:null}function u(e){const n=v(e);if(!n?.return)return null;const t=n.return;return t.type&&typeof t.type=="function"?t:null}function $(e){const n=u(e);if(!n)return null;const t=n.type;return t.displayName||t.name||null}function _(e){const n=u(e);if(!n)return null;const t=n.memoizedProps?.[y];return typeof t=="string"?t:null}function P(e){const n=u(e);if(!n)return null;const t=n.memoizedProps;if(!t||typeof t!="object")return null;const s=new Set(["children","key","ref",y,"style","className"]),o={};for(const[r,i]of Object.entries(t))s.has(r)||(typeof i=="string"||typeof i=="number"||typeof i=="boolean")&&(o[r]=String(i));return Object.keys(o).length>0?o:null}function j(e){const n=_(e);if(!n)return null;const t=P(e);return t?{callSiteOid:n,props:t}:null}const f="__visual-edit-preview-styles";function m(e){const n=globalThis.CSSStyleRule;if(typeof n=="function")return e instanceof n;const t=e;return!!t&&typeof t.selectorText=="string"&&!!t.style}function W(e){const n={};for(let t=0;t<e.style.length;t++){const s=e.style[t];n[s]=e.style.getPropertyValue(s)}return n}function b(e,n){const t=globalThis.matchMedia,s=(o,r)=>{for(const i of Array.from(o)){if(m(i)){n(i,r);continue}const a=i;if(!a.cssRules)continue;const c=a.media?.mediaText;typeof c=="string"&&t&&!t(c).matches||typeof a.containerQuery=="string"||a.cssText?.trimStart().startsWith("@container")||s(a.cssRules,r)}};for(const o of e){const r=o.ownerNode;if(r?.id===f)continue;const i=r?.getAttribute?.("data-vite-dev-id")??null;if(i)try{s(o.cssRules,i)}catch{}}}function B(e,n=globalThis.document?.styleSheets??[]){let t=null;return b(n,(s,o)=>{s.selectorText.trim()===`.${e}`&&(t={sourceFile:o})}),t}function G(e=globalThis.document?.styleSheets??[]){const n=[];for(const t of e){const s=t.ownerNode;if(s?.id===f)continue;const o=s?.getAttribute?.("data-vite-dev-id")??null;if(!o)continue;(o.split("?")[0]??o).endsWith(".css")&&!n.includes(o)&&n.push(o)}return n}function z(e,n=globalThis.document?.styleSheets??[]){const t=[];return b(n,(s,o)=>{e.matches(s.selectorText)&&t.push({selectorText:s.selectorText,properties:W(s),sourceFile:o})}),t}function A(e=globalThis.document?.styleSheets??[]){const n=new Map,t=(s,o,r)=>{if(m(s)){const c=s.selectorText,d=r&&/(^|,)\s*:scope\s*($|,)/.test(c),T=/(^|,)\s*(:root|html)\s*($|,)/.test(c)&&!c.includes("[data-theme");if(!d&&!T)return;for(let l=0;l<s.style.length;l++){const h=s.style[l];h.startsWith("--")&&n.set(h,{sourceFile:o,selector:d?":root":c})}return}const i=s;if(!i.cssRules)return;const a=r||!!i.cssText?.trimStart().startsWith("@scope");for(const c of Array.from(i.cssRules))t(c,o,a)};for(const s of e){const o=s.ownerNode;if(o?.id===f)continue;const r=o?.getAttribute?.("data-vite-dev-id")??null;if(r)try{for(const i of Array.from(s.cssRules))t(i,r,!1)}catch{}}return n}function D(e=V()){if(!e)return[];const n=[],t=new Set;for(let o=0;o<e.length;o++){const r=e[o];if(!r.startsWith("--")||r.startsWith("--tw-")||r.startsWith("--fa-")||r.startsWith("--volter-")||r.startsWith("--vscode-")||r==="--chat-input-control-height"||r.startsWith("--dv-")||t.has(r))continue;t.add(r);const i=e.getPropertyValue(r).trim();i&&n.push({name:r,value:i,category:g(r,i)})}const s=A();for(const o of s.keys()){if(t.has(o)||o.startsWith("--tw-")||o.startsWith("--fa-")||o.startsWith("--volter-")||o.startsWith("--dv-")||o.startsWith("--vscode-")||o==="--chat-input-control-height")continue;t.add(o);const r=e.getPropertyValue(o).trim();r&&n.push({name:o,value:r,category:g(o,r)})}for(const o of n){const r=s.get(o.name);r&&(o.declaredIn=r)}return n}const x=/^(#[0-9a-f]{3,8}|rgba?\(|hsla?\(|oklch\()/i,N=/spacing|gap|margin|padding|radius|size|width|height/i,k=/color/i;function g(e,n){return x.test(n)?"color":k.test(e)?(p(":root",e,"color"),"color"):N.test(e)&&/^\d/.test(n)?(p(":root",e,"spacing"),"spacing"):"other"}function K(e){const n=[];for(const t of e){if(t.hasVisibleChildren||t.hasText||t.rect.width>=8&&t.rect.height>=8)continue;const s=Math.max(t.rect.width,40),o=Math.max(t.rect.height,24);n.push({oid:t.oid,displayName:t.displayName,rect:{x:t.rect.x-(s-t.rect.width)/2,y:t.rect.y-(o-t.rect.height)/2,width:s,height:o}})}return n}const E=new Set(["","transparent","rgba(0, 0, 0, 0)"]);function F(e){return E.has(e)}function U(e){for(const n of e)if(!F(n))return n;return"#fff"}const O=["Arial","Helvetica","Times New Roman","Georgia","Verdana","Courier New","Impact","Trebuchet MS","Palatino Linotype","Lucida Console","monospace","sans-serif","serif"];function I(e=[]){const n=new Set;for(const t of e)n.add(t.replace(/^["']|["']$/g,""));for(const t of O)n.add(t);return[...n].sort((t,s)=>t.localeCompare(s))}function H(){const e=globalThis,n=[],t=e.document?.fonts;if(t)for(const s of t)n.push(s.family);return I(n)}function V(){const e=globalThis,n=e.document?.documentElement;if(!(!n||!e.window?.getComputedStyle))return e.window.getComputedStyle(n)}export{z as a,R as b,D as c,$ as d,j as e,K as f,L as g,B as h,G as i,S as j,H as k,U as l};
1
+ import{w as p}from"./inference-diagnostics-5lf-ZIbs.js";const y="data-oid";function S(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function w(e){return e.replace(/-([a-z])/g,(n,t)=>t.toUpperCase())}function C(e,n){return e?e[n]:void 0}const R=e=>{const n=globalThis.window;if(n?.getComputedStyle)return n.getComputedStyle(e);const t=e.style;return{getPropertyValue:s=>String(C(t,w(s))??"")}};function L(e,n,t=R){return t(e).getPropertyValue(S(n))}function v(e){if(!e||typeof e!="object")return null;const n=Object.keys(e).find(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$"));return n?e[n]??null:null}function u(e){const n=v(e);if(!n?.return)return null;const t=n.return;return t.type&&typeof t.type=="function"?t:null}function $(e){const n=u(e);if(!n)return null;const t=n.type;return t.displayName||t.name||null}function _(e){const n=u(e);if(!n)return null;const t=n.memoizedProps?.[y];return typeof t=="string"?t:null}function P(e){const n=u(e);if(!n)return null;const t=n.memoizedProps;if(!t||typeof t!="object")return null;const s=new Set(["children","key","ref",y,"style","className"]),o={};for(const[r,i]of Object.entries(t))s.has(r)||(typeof i=="string"||typeof i=="number"||typeof i=="boolean")&&(o[r]=String(i));return Object.keys(o).length>0?o:null}function j(e){const n=_(e);if(!n)return null;const t=P(e);return t?{callSiteOid:n,props:t}:null}const f="__visual-edit-preview-styles";function m(e){const n=globalThis.CSSStyleRule;if(typeof n=="function")return e instanceof n;const t=e;return!!t&&typeof t.selectorText=="string"&&!!t.style}function W(e){const n={};for(let t=0;t<e.style.length;t++){const s=e.style[t];n[s]=e.style.getPropertyValue(s)}return n}function b(e,n){const t=globalThis.matchMedia,s=(o,r)=>{for(const i of Array.from(o)){if(m(i)){n(i,r);continue}const a=i;if(!a.cssRules)continue;const c=a.media?.mediaText;typeof c=="string"&&t&&!t(c).matches||typeof a.containerQuery=="string"||a.cssText?.trimStart().startsWith("@container")||s(a.cssRules,r)}};for(const o of e){const r=o.ownerNode;if(r?.id===f)continue;const i=r?.getAttribute?.("data-vite-dev-id")??null;if(i)try{s(o.cssRules,i)}catch{}}}function B(e,n=globalThis.document?.styleSheets??[]){let t=null;return b(n,(s,o)=>{s.selectorText.trim()===`.${e}`&&(t={sourceFile:o})}),t}function G(e=globalThis.document?.styleSheets??[]){const n=[];for(const t of e){const s=t.ownerNode;if(s?.id===f)continue;const o=s?.getAttribute?.("data-vite-dev-id")??null;if(!o)continue;(o.split("?")[0]??o).endsWith(".css")&&!n.includes(o)&&n.push(o)}return n}function z(e,n=globalThis.document?.styleSheets??[]){const t=[];return b(n,(s,o)=>{e.matches(s.selectorText)&&t.push({selectorText:s.selectorText,properties:W(s),sourceFile:o})}),t}function A(e=globalThis.document?.styleSheets??[]){const n=new Map,t=(s,o,r)=>{if(m(s)){const c=s.selectorText,d=r&&/(^|,)\s*:scope\s*($|,)/.test(c),T=/(^|,)\s*(:root|html)\s*($|,)/.test(c)&&!c.includes("[data-theme");if(!d&&!T)return;for(let l=0;l<s.style.length;l++){const h=s.style[l];h.startsWith("--")&&n.set(h,{sourceFile:o,selector:d?":root":c})}return}const i=s;if(!i.cssRules)return;const a=r||!!i.cssText?.trimStart().startsWith("@scope");for(const c of Array.from(i.cssRules))t(c,o,a)};for(const s of e){const o=s.ownerNode;if(o?.id===f)continue;const r=o?.getAttribute?.("data-vite-dev-id")??null;if(r)try{for(const i of Array.from(s.cssRules))t(i,r,!1)}catch{}}return n}function D(e=V()){if(!e)return[];const n=[],t=new Set;for(let o=0;o<e.length;o++){const r=e[o];if(!r.startsWith("--")||r.startsWith("--tw-")||r.startsWith("--fa-")||r.startsWith("--volter-")||r.startsWith("--vscode-")||r==="--chat-input-control-height"||r.startsWith("--dv-")||t.has(r))continue;t.add(r);const i=e.getPropertyValue(r).trim();i&&n.push({name:r,value:i,category:g(r,i)})}const s=A();for(const o of s.keys()){if(t.has(o)||o.startsWith("--tw-")||o.startsWith("--fa-")||o.startsWith("--volter-")||o.startsWith("--dv-")||o.startsWith("--vscode-")||o==="--chat-input-control-height")continue;t.add(o);const r=e.getPropertyValue(o).trim();r&&n.push({name:o,value:r,category:g(o,r)})}for(const o of n){const r=s.get(o.name);r&&(o.declaredIn=r)}return n}const x=/^(#[0-9a-f]{3,8}|rgba?\(|hsla?\(|oklch\()/i,N=/spacing|gap|margin|padding|radius|size|width|height/i,k=/color/i;function g(e,n){return x.test(n)?"color":k.test(e)?(p(":root",e,"color"),"color"):N.test(e)&&/^\d/.test(n)?(p(":root",e,"spacing"),"spacing"):"other"}function K(e){const n=[];for(const t of e){if(t.hasVisibleChildren||t.hasText||t.rect.width>=8&&t.rect.height>=8)continue;const s=Math.max(t.rect.width,40),o=Math.max(t.rect.height,24);n.push({oid:t.oid,displayName:t.displayName,rect:{x:t.rect.x-(s-t.rect.width)/2,y:t.rect.y-(o-t.rect.height)/2,width:s,height:o}})}return n}const E=new Set(["","transparent","rgba(0, 0, 0, 0)"]);function F(e){return E.has(e)}function U(e){for(const n of e)if(!F(n))return n;return"#fff"}const O=["Arial","Helvetica","Times New Roman","Georgia","Verdana","Courier New","Impact","Trebuchet MS","Palatino Linotype","Lucida Console","monospace","sans-serif","serif"];function I(e=[]){const n=new Set;for(const t of e)n.add(t.replace(/^["']|["']$/g,""));for(const t of O)n.add(t);return[...n].sort((t,s)=>t.localeCompare(s))}function H(){const e=globalThis,n=[],t=e.document?.fonts;if(t)for(const s of t)n.push(s.family);return I(n)}function V(){const e=globalThis,n=e.document?.documentElement;if(!(!n||!e.window?.getComputedStyle))return e.window.getComputedStyle(n)}export{z as a,R as b,D as c,$ as d,j as e,K as f,L as g,B as h,G as i,S as j,H as k,U as l};
@@ -0,0 +1 @@
1
+ import{ah as m}from"./index-DxZ4l0Lx.js";import{b as p,a as e,c as n,s}from"./game-network-BfrYV3Wu.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-D3XVzf2G.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-CKJW2aaQ.js";import"./contract-system-adapters-DFS6S5jR.js";import"./game-contract-seams-gtPhkpZH.js";import"./seeded-random-Ce4p3AkI.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-De2cikPw.js";import"./capability-coverage-DR7JrSFb.js";import"./edit-mode-authoring-FKyNiefy.js";import"./json-history-resource-C5b3fL6s.js";import"./binding-resolver-DrkSEcWH.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-DpinxOxM.js";import"./canvas-entry-runtime-C2NiPlg5.js";import"./three-ingest-runtime-DZKrRIHE.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-DyPN4pXx.js";import"./ingest-source-persistence-Ci1cjdJ9.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-DKZfgm-u.js";import"./mounted-authoring-CdPS27uW.js";import"./entity-object-CvrkMcCz.js";import"./user-data-BWhINAlG.js";import"./workspace-arrangement-BgwQc-qT.js";import"./three-contract-Dkt6PmWY.js";import"./three-oA8NOIIL.js";import"./editor-layers-L_zFs_uY.js";import"./component-instance-root-Cau6CbHE.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-BckRZAFC.js";import"./source-persistence-backend-BsZyLz63.js";import"./three-projection-core-BDAHFfdE.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-Ddy2AMqs.js";import"./deferred-ingest-play-NdjNkEVn.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-OePxORCc.js";import"./board-guides-CxjOETvX.js";import"./relative-import-specifier-D6hnbTcT.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-CR7QdMOn.js";import"./inference-diagnostics-5lf-ZIbs.js";import"./writer-tw6EcuVO.js";import"./three-state-BV7x8kw3.js";import"./editor-shell-store-DOiPmqow.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-D_nXAmUt.js";import"./game-surface-defaults-D8S4cRxi.js";const zt="workspace.command",a=()=>({ok:!1,error:"not in play mode — start play before using the debug seam"}),Bt={"set-instance-count":{derivedRefresh:"always",handle:o=>{if(!e())return a();const r=o.names;if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return r.length<1?{ok:!1,error:'set-instance-count "names" must have at least one entry.'}:(n(r),{ok:!0});const t=o.count;return typeof t!="number"||!Number.isFinite(t)||t<1?{ok:!1,error:`set-instance-count requires a whole "count" >= 1 (or a "names" array), got ${String(t)}.`}:(s(Math.floor(t)-1),{ok:!0})}},"list-instances":{derivedRefresh:"if-content-changed",handle:()=>({ok:!0,data:{instances:m(),named:p()}})}};export{Bt as commands,zt as point};
@@ -1 +1 @@
1
- import{e7 as u,e8 as y,b3 as n}from"./index-C6arl-gg.js";function g(){return{isDirty:()=>!1,save:async()=>{},destination:u}}const p=new TextEncoder,c=new TextDecoder,l="authoring";function w(t){return{session:l,id:t}}function N(t,e){return{session:`play-${t}`,id:e}}class S{constructor(e){if(this.options=e,e.scope==="project"){if(!e.location)throw new Error("A project JSON history resource needs a location.");this.descriptor=e.history.registry.registerProject(e.kind,e.location,e.displayName)}else{if(!e.subject)throw new Error("A session JSON history resource needs a subject.");this.descriptor=e.history.registry.registerSession(e.kind,e.subject.session,e.subject.id,e.displayName)}const i={descriptor:this.descriptor,capture:async()=>{const s=this.encode(e.capture());return{revision:this.revision,contentType:"application/json",bytes:s,sha256:await n(s)}},preflight:async s=>{const r=this.encode(e.capture()),o=await n(r);if(!this.recorded)return{ok:!0};if(o===s.sha256)return{ok:!0};if(e.conflictIdentity){const a=JSON.parse(c.decode(e.history.snapshots.read(s).bytes)),d=JSON.stringify(e.conflictIdentity(a)),h=JSON.stringify(e.conflictIdentity(e.capture()));if(d===h)return{ok:!0}}return{ok:!1,reason:"content-conflict",actualRevision:this.revision,actualSha256:o}},restore:async s=>{const r=e.history.snapshots.read(s).bytes;await e.restore(JSON.parse(c.decode(r))),this.revision++},estimateBytes:s=>s.byteLength};this.unregister=e.history.registerDriver(i)}descriptor;revision=0;unregister;disposed=!1;recorded=!1;record(e,i,s){return this.disposed?Promise.reject(new Error("JSON history resource is disposed.")):(this.options.history.assertCanRecordAppliedChange(),this.revision++,this.recorded=!0,this.options.history.recordAppliedTransaction({label:e,resources:[this.descriptor.key],scope:this.descriptor.scope,...this.descriptor.sessionId?{sessionId:this.descriptor.sessionId}:{}},[{resource:this.descriptor.key,beforeBytes:this.encode(i),afterBytes:this.encode(s),contentType:"application/json"}]).catch(async r=>{try{await this.options.restore(structuredClone(i)),this.revision++}catch(o){throw this.options.history.blockForCompensationFailure(e,[this.descriptor.key],{operationError:r,compensationError:o})}throw r instanceof y||this.options.history.reportAppliedChangeFailure(e,[this.descriptor.key],r),r}))}assertCanMutate(){if(this.disposed)throw new Error("JSON history resource is disposed.");this.options.history.assertCanRecordAppliedChange()}dispose(){this.disposed||(this.disposed=!0,this.unregister())}encode(e){return p.encode(JSON.stringify(e,null,2))}}export{S as J,w as a,g as c,N as p};
1
+ import{e7 as u,e8 as y,b3 as n}from"./index-DxZ4l0Lx.js";function g(){return{isDirty:()=>!1,save:async()=>{},destination:u}}const p=new TextEncoder,c=new TextDecoder,l="authoring";function w(t){return{session:l,id:t}}function N(t,e){return{session:`play-${t}`,id:e}}class S{constructor(e){if(this.options=e,e.scope==="project"){if(!e.location)throw new Error("A project JSON history resource needs a location.");this.descriptor=e.history.registry.registerProject(e.kind,e.location,e.displayName)}else{if(!e.subject)throw new Error("A session JSON history resource needs a subject.");this.descriptor=e.history.registry.registerSession(e.kind,e.subject.session,e.subject.id,e.displayName)}const i={descriptor:this.descriptor,capture:async()=>{const s=this.encode(e.capture());return{revision:this.revision,contentType:"application/json",bytes:s,sha256:await n(s)}},preflight:async s=>{const r=this.encode(e.capture()),o=await n(r);if(!this.recorded)return{ok:!0};if(o===s.sha256)return{ok:!0};if(e.conflictIdentity){const a=JSON.parse(c.decode(e.history.snapshots.read(s).bytes)),d=JSON.stringify(e.conflictIdentity(a)),h=JSON.stringify(e.conflictIdentity(e.capture()));if(d===h)return{ok:!0}}return{ok:!1,reason:"content-conflict",actualRevision:this.revision,actualSha256:o}},restore:async s=>{const r=e.history.snapshots.read(s).bytes;await e.restore(JSON.parse(c.decode(r))),this.revision++},estimateBytes:s=>s.byteLength};this.unregister=e.history.registerDriver(i)}descriptor;revision=0;unregister;disposed=!1;recorded=!1;record(e,i,s){return this.disposed?Promise.reject(new Error("JSON history resource is disposed.")):(this.options.history.assertCanRecordAppliedChange(),this.revision++,this.recorded=!0,this.options.history.recordAppliedTransaction({label:e,resources:[this.descriptor.key],scope:this.descriptor.scope,...this.descriptor.sessionId?{sessionId:this.descriptor.sessionId}:{}},[{resource:this.descriptor.key,beforeBytes:this.encode(i),afterBytes:this.encode(s),contentType:"application/json"}]).catch(async r=>{try{await this.options.restore(structuredClone(i)),this.revision++}catch(o){throw this.options.history.blockForCompensationFailure(e,[this.descriptor.key],{operationError:r,compensationError:o})}throw r instanceof y||this.options.history.reportAppliedChangeFailure(e,[this.descriptor.key],r),r}))}assertCanMutate(){if(this.disposed)throw new Error("JSON history resource is disposed.");this.options.history.assertCanRecordAppliedChange()}dispose(){this.disposed||(this.disposed=!0,this.unregister())}encode(e){return p.encode(JSON.stringify(e,null,2))}}export{S as J,w as a,g as c,N as p};
@@ -1 +1 @@
1
- import{stackOrder as C}from"./root-stacking-BEd9ZvxC.js";import{aD as O,aG as g,aH as y,aI as S,aJ as b,y as z,aK as E}from"./index-C6arl-gg.js";function m(d,o,r,c){const e=d.pickable?.pick(o,r)??null;return e?d.selection?.resolve?.(e,{intent:c,scopeId:b()})?.id??e:null}function D(d,o,r,c,e=!1){const a=d.pickable?.candidates?.(o,r,e?{includeLocked:e}:void 0)??[],s=[],l=new Set;for(const f of a){const i=d.selection?.resolve?.(f,{intent:c,scopeId:b()})?.id??f;l.has(i)||(l.add(i),s.push(i))}return s}function N(d,o,r,c={}){const e=c.intent??"normal",a=O(d);if(!(a instanceof g))return m(a,o,r,e);const s=a.childAdapters(),f=z()===E?[]:s.filter(n=>n.kind!=="three"),i=s.filter(n=>n.kind==="three"),h=f.map(n=>({id:n.worldId,zOrder:n.zOrder,worldId:n.worldId,adapter:n.adapter})),v=[...C(h).reverse(),...i];for(const{worldId:n,adapter:k}of v){if(y(n)||S(n))continue;const u=m(k,o,r,e);if(u)return u}return null}function P(d,o,r,c={}){const e=c.intent??"normal",a=c.includeLocked===!0,s=c.adapter??O(d);if(!(s instanceof g)){const t=D(s,o,r,e,a),p=m(s,o,r,e);return t.length>0?t:p?[p]:[]}const l=s.childAdapters(),i=z()===E?[]:l.filter(t=>t.kind!=="three"),h=l.filter(t=>t.kind==="three"),v=i.map(t=>({id:t.worldId,zOrder:t.zOrder,worldId:t.worldId,adapter:t.adapter})),n=[...C(v).reverse(),...h],k=[],u=new Set;for(const{worldId:t,adapter:p}of n){if(y(t)||S(t))continue;const w=D(p,o,r,e,a),A=m(p,o,r,e);for(const I of w.length>0?w:A?[A]:[])u.has(I)||(u.add(I),k.push(I))}return k}export{N as a,P as p};
1
+ import{stackOrder as C}from"./root-stacking-BEd9ZvxC.js";import{aD as O,aG as g,aH as y,aI as S,aJ as b,y as z,aK as E}from"./index-DxZ4l0Lx.js";function m(d,o,r,c){const e=d.pickable?.pick(o,r)??null;return e?d.selection?.resolve?.(e,{intent:c,scopeId:b()})?.id??e:null}function D(d,o,r,c,e=!1){const a=d.pickable?.candidates?.(o,r,e?{includeLocked:e}:void 0)??[],s=[],l=new Set;for(const f of a){const i=d.selection?.resolve?.(f,{intent:c,scopeId:b()})?.id??f;l.has(i)||(l.add(i),s.push(i))}return s}function N(d,o,r,c={}){const e=c.intent??"normal",a=O(d);if(!(a instanceof g))return m(a,o,r,e);const s=a.childAdapters(),f=z()===E?[]:s.filter(n=>n.kind!=="three"),i=s.filter(n=>n.kind==="three"),h=f.map(n=>({id:n.worldId,zOrder:n.zOrder,worldId:n.worldId,adapter:n.adapter})),v=[...C(h).reverse(),...i];for(const{worldId:n,adapter:k}of v){if(y(n)||S(n))continue;const u=m(k,o,r,e);if(u)return u}return null}function P(d,o,r,c={}){const e=c.intent??"normal",a=c.includeLocked===!0,s=c.adapter??O(d);if(!(s instanceof g)){const t=D(s,o,r,e,a),p=m(s,o,r,e);return t.length>0?t:p?[p]:[]}const l=s.childAdapters(),i=z()===E?[]:l.filter(t=>t.kind!=="three"),h=l.filter(t=>t.kind==="three"),v=i.map(t=>({id:t.worldId,zOrder:t.zOrder,worldId:t.worldId,adapter:t.adapter})),n=[...C(v).reverse(),...h],k=[],u=new Set;for(const{worldId:t,adapter:p}of n){if(y(t)||S(t))continue;const w=D(p,o,r,e,a),A=m(p,o,r,e);for(const I of w.length>0?w:A?[A]:[])u.has(I)||(u.add(I),k.push(I))}return k}export{N as a,P as p};
@@ -1 +1 @@
1
- import{u as o,c6 as e,w as i,c4 as a}from"./index-C6arl-gg.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 s=o({type:a(["directional","point","spot","hemisphere","area"]).describe("Light type"),color:i().optional().describe("Light color as CSS hex string"),intensity:e().optional().describe("Native Three.js light intensity. Point and spot lights use candela with inverse-square falloff (a value near 1 is candle-scale); area lights use nit; directional and hemisphere lights use Three.js scene-light intensity units."),groundColor:i().optional().describe("Ground color for hemisphere lights"),distance:e().optional().describe("Maximum range of the light. 0 = infinite (point/spot only)"),decay:e().nonnegative().optional().describe("Native Three.js distance-decay exponent for point/spot lights. Default 2 gives physically correct inverse-square falloff."),angle:e().optional().describe("Spotlight cone angle in radians (spot only)"),penumbra:e().optional().describe("Spotlight penumbra softness 0–1 (spot only)"),width:e().optional().describe("Area light width (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently."),height:e().optional().describe("Area light height (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently.")}),u=s.refine(t=>t.type!=="spot"||t.angle===void 0||t.angle>0,{message:"Spot light angle must be positive"}).describe("Light source configuration");export{u as LightDescriptorSchema};
1
+ import{u as o,c6 as e,w as i,c4 as a}from"./index-DxZ4l0Lx.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 s=o({type:a(["directional","point","spot","hemisphere","area"]).describe("Light type"),color:i().optional().describe("Light color as CSS hex string"),intensity:e().optional().describe("Native Three.js light intensity. Point and spot lights use candela with inverse-square falloff (a value near 1 is candle-scale); area lights use nit; directional and hemisphere lights use Three.js scene-light intensity units."),groundColor:i().optional().describe("Ground color for hemisphere lights"),distance:e().optional().describe("Maximum range of the light. 0 = infinite (point/spot only)"),decay:e().nonnegative().optional().describe("Native Three.js distance-decay exponent for point/spot lights. Default 2 gives physically correct inverse-square falloff."),angle:e().optional().describe("Spotlight cone angle in radians (spot only)"),penumbra:e().optional().describe("Spotlight penumbra softness 0–1 (spot only)"),width:e().optional().describe("Area light width (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently."),height:e().optional().describe("Area light height (area only). RectAreaLight has NO shadow support and only affects Standard/Physical materials — degrades loudly, not silently.")}),u=s.refine(t=>t.type!=="spot"||t.angle===void 0||t.angle>0,{message:"Spot light angle must be positive"}).describe("Light source configuration");export{u as LightDescriptorSchema};
@@ -1 +1 @@
1
- import{P as l,d as c}from"./capability-coverage-D-0PxPrZ.js";import{aC as a,a3 as u}from"./index-C6arl-gg.js";function d(e,t){return{slot:e,state:"unanswered",evidence:`nobody has read this project's own files yet, so ${e} is unmeasured — `+(t??"the editor has not asked its dev server for them")}}function p(e){return e.length>0&&e.every(t=>t.type==="ingest")}function h(e){const{scripts:t,roots:n}=e;return t===null||n===null?d("export",e.unavailable):t.includes("build")?{slot:"export",state:"present",evidence:`this project declares a \`build\` script, which is what the export path runs to emit the \`dist/\` it stages${p(n)?"; this ingest project ships the standalone bundle produced by its own build unchanged":""}`}:{slot:"export",state:"absent",evidence:e.hasPackageJson?"this project's package.json declares no `build` script, and the export path runs `npm run build` in the project and stages the `dist/` it emits":"this project has no package.json, so there is no `build` script for the export path to run",missing:"this project cannot produce a standalone build, so it runs NOWHERE but the editor — the dev-served standalone page refuses an unexported game outright",fix:"add the scaffold's `build` script (`build: tsc && vite build`), which is what the export path runs"}}function f(e){const t={export:h};return l.map(n=>t[n](e))}let r=null,i=null,o=null;function m(){r=null,i=null,o=null}async function b(e,t=fetch){return r&&o===e?r:(i&&o===e||(o=e,r=null,i=(async()=>{let n;try{const s=await t("/__editor/project-verbs");n=await u(s,"project-verbs did not answer")}catch(s){n={scripts:null,hasPackageJson:!1,dependencies:null,roots:null,unavailable:`the editor could not reach its dev server to read this project's own files (${s instanceof Error?s.message:String(s)})`}}return r=n,n})()),i)}function w(){const e=a();return e?(o===e.rootPath?r:null)?.dependencies??null:null}function g(){const e=a();if(!e)return null;b(e.rootPath);const t=o===e.rootPath?r:null;return{scripts:t?.scripts??null,hasPackageJson:t?.hasPackageJson??!1,roots:t?.roots??null,unavailable:t?.unavailable??(t?null:"the editor has not finished reading this project’s own files yet")}}function x(){const e=g();if(!e)return null;const t=a();return c({worldId:t?.config.name??"project",projectVerbs:f(e)})}export{x as a,g as b,m as i,w as p};
1
+ import{P as l,d as c}from"./capability-coverage-DR7JrSFb.js";import{aC as a,a3 as u}from"./index-DxZ4l0Lx.js";function d(e,t){return{slot:e,state:"unanswered",evidence:`nobody has read this project's own files yet, so ${e} is unmeasured — `+(t??"the editor has not asked its dev server for them")}}function p(e){return e.length>0&&e.every(t=>t.type==="ingest")}function h(e){const{scripts:t,roots:n}=e;return t===null||n===null?d("export",e.unavailable):t.includes("build")?{slot:"export",state:"present",evidence:`this project declares a \`build\` script, which is what the export path runs to emit the \`dist/\` it stages${p(n)?"; this ingest project ships the standalone bundle produced by its own build unchanged":""}`}:{slot:"export",state:"absent",evidence:e.hasPackageJson?"this project's package.json declares no `build` script, and the export path runs `npm run build` in the project and stages the `dist/` it emits":"this project has no package.json, so there is no `build` script for the export path to run",missing:"this project cannot produce a standalone build, so it runs NOWHERE but the editor — the dev-served standalone page refuses an unexported game outright",fix:"add the scaffold's `build` script (`build: tsc && vite build`), which is what the export path runs"}}function f(e){const t={export:h};return l.map(n=>t[n](e))}let r=null,i=null,o=null;function m(){r=null,i=null,o=null}async function b(e,t=fetch){return r&&o===e?r:(i&&o===e||(o=e,r=null,i=(async()=>{let n;try{const s=await t("/__editor/project-verbs");n=await u(s,"project-verbs did not answer")}catch(s){n={scripts:null,hasPackageJson:!1,dependencies:null,roots:null,unavailable:`the editor could not reach its dev server to read this project's own files (${s instanceof Error?s.message:String(s)})`}}return r=n,n})()),i)}function w(){const e=a();return e?(o===e.rootPath?r:null)?.dependencies??null:null}function g(){const e=a();if(!e)return null;b(e.rootPath);const t=o===e.rootPath?r:null;return{scripts:t?.scripts??null,hasPackageJson:t?.hasPackageJson??!1,roots:t?.roots??null,unavailable:t?.unavailable??(t?null:"the editor has not finished reading this project’s own files yet")}}function x(){const e=g();if(!e)return null;const t=a();return c({worldId:t?.config.name??"project",projectVerbs:f(e)})}export{x as a,g as b,m as i,w as p};