@forgeax/view 0.2.1-beta-20260924075842

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 (585) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +742 -0
  3. package/dist/modules/backend.mjs +54 -0
  4. package/dist/modules/backend.mjs.map +7 -0
  5. package/dist/modules/browser.mjs +180 -0
  6. package/dist/modules/browser.mjs.map +7 -0
  7. package/dist/modules/carrier-contract.mjs +38 -0
  8. package/dist/modules/carrier-contract.mjs.map +7 -0
  9. package/dist/modules/carrier.mjs +13 -0
  10. package/dist/modules/carrier.mjs.map +7 -0
  11. package/dist/modules/chunks/chunk-2ASWB6IX.mjs +225 -0
  12. package/dist/modules/chunks/chunk-2ASWB6IX.mjs.map +7 -0
  13. package/dist/modules/chunks/chunk-2IJKOG2F.mjs +801 -0
  14. package/dist/modules/chunks/chunk-2IJKOG2F.mjs.map +7 -0
  15. package/dist/modules/chunks/chunk-2K3BBJ5S.mjs +9 -0
  16. package/dist/modules/chunks/chunk-2K3BBJ5S.mjs.map +7 -0
  17. package/dist/modules/chunks/chunk-32GD5LL6.mjs +482 -0
  18. package/dist/modules/chunks/chunk-32GD5LL6.mjs.map +7 -0
  19. package/dist/modules/chunks/chunk-3B4KFAEC.mjs +10 -0
  20. package/dist/modules/chunks/chunk-3B4KFAEC.mjs.map +7 -0
  21. package/dist/modules/chunks/chunk-46O5WX43.mjs +25 -0
  22. package/dist/modules/chunks/chunk-46O5WX43.mjs.map +7 -0
  23. package/dist/modules/chunks/chunk-47J5JXAB.mjs +237 -0
  24. package/dist/modules/chunks/chunk-47J5JXAB.mjs.map +7 -0
  25. package/dist/modules/chunks/chunk-4BXQOUDQ.mjs +17 -0
  26. package/dist/modules/chunks/chunk-4BXQOUDQ.mjs.map +7 -0
  27. package/dist/modules/chunks/chunk-4GQWYU2V.mjs +126 -0
  28. package/dist/modules/chunks/chunk-4GQWYU2V.mjs.map +7 -0
  29. package/dist/modules/chunks/chunk-4N5X2PRQ.mjs +48 -0
  30. package/dist/modules/chunks/chunk-4N5X2PRQ.mjs.map +7 -0
  31. package/dist/modules/chunks/chunk-4WXD2KYX.mjs +56 -0
  32. package/dist/modules/chunks/chunk-4WXD2KYX.mjs.map +7 -0
  33. package/dist/modules/chunks/chunk-6ZWWVAZK.mjs +468 -0
  34. package/dist/modules/chunks/chunk-6ZWWVAZK.mjs.map +7 -0
  35. package/dist/modules/chunks/chunk-73UZNRHN.mjs +296 -0
  36. package/dist/modules/chunks/chunk-73UZNRHN.mjs.map +7 -0
  37. package/dist/modules/chunks/chunk-7ITLCRND.mjs +10 -0
  38. package/dist/modules/chunks/chunk-7ITLCRND.mjs.map +7 -0
  39. package/dist/modules/chunks/chunk-7TGVWKH7.mjs +59 -0
  40. package/dist/modules/chunks/chunk-7TGVWKH7.mjs.map +7 -0
  41. package/dist/modules/chunks/chunk-7URFF53W.mjs +42 -0
  42. package/dist/modules/chunks/chunk-7URFF53W.mjs.map +7 -0
  43. package/dist/modules/chunks/chunk-7YSDRIFN.mjs +14 -0
  44. package/dist/modules/chunks/chunk-7YSDRIFN.mjs.map +7 -0
  45. package/dist/modules/chunks/chunk-AAFVCQPK.mjs +52 -0
  46. package/dist/modules/chunks/chunk-AAFVCQPK.mjs.map +7 -0
  47. package/dist/modules/chunks/chunk-AEK7ZESQ.mjs +18 -0
  48. package/dist/modules/chunks/chunk-AEK7ZESQ.mjs.map +7 -0
  49. package/dist/modules/chunks/chunk-AL6ZWIEU.mjs +42 -0
  50. package/dist/modules/chunks/chunk-AL6ZWIEU.mjs.map +7 -0
  51. package/dist/modules/chunks/chunk-ALT7XVMQ.mjs +73 -0
  52. package/dist/modules/chunks/chunk-ALT7XVMQ.mjs.map +7 -0
  53. package/dist/modules/chunks/chunk-ASI2HBE6.mjs +116 -0
  54. package/dist/modules/chunks/chunk-ASI2HBE6.mjs.map +7 -0
  55. package/dist/modules/chunks/chunk-ATWGCH7I.mjs +174 -0
  56. package/dist/modules/chunks/chunk-ATWGCH7I.mjs.map +7 -0
  57. package/dist/modules/chunks/chunk-C45U6IIY.mjs +692 -0
  58. package/dist/modules/chunks/chunk-C45U6IIY.mjs.map +7 -0
  59. package/dist/modules/chunks/chunk-C7R3YRA7.mjs +98 -0
  60. package/dist/modules/chunks/chunk-C7R3YRA7.mjs.map +7 -0
  61. package/dist/modules/chunks/chunk-CRMICXKN.mjs +87 -0
  62. package/dist/modules/chunks/chunk-CRMICXKN.mjs.map +7 -0
  63. package/dist/modules/chunks/chunk-CUH2G6UF.mjs +81 -0
  64. package/dist/modules/chunks/chunk-CUH2G6UF.mjs.map +7 -0
  65. package/dist/modules/chunks/chunk-D7GWRZLL.mjs +77 -0
  66. package/dist/modules/chunks/chunk-D7GWRZLL.mjs.map +7 -0
  67. package/dist/modules/chunks/chunk-DBWUIBE3.mjs +10 -0
  68. package/dist/modules/chunks/chunk-DBWUIBE3.mjs.map +7 -0
  69. package/dist/modules/chunks/chunk-DQWVWWUU.mjs +77 -0
  70. package/dist/modules/chunks/chunk-DQWVWWUU.mjs.map +7 -0
  71. package/dist/modules/chunks/chunk-DZZ2WFEU.mjs +122 -0
  72. package/dist/modules/chunks/chunk-DZZ2WFEU.mjs.map +7 -0
  73. package/dist/modules/chunks/chunk-E4UIAN26.mjs +58 -0
  74. package/dist/modules/chunks/chunk-E4UIAN26.mjs.map +7 -0
  75. package/dist/modules/chunks/chunk-EJGBVKFE.mjs +77 -0
  76. package/dist/modules/chunks/chunk-EJGBVKFE.mjs.map +7 -0
  77. package/dist/modules/chunks/chunk-EPSTTHWV.mjs +173 -0
  78. package/dist/modules/chunks/chunk-EPSTTHWV.mjs.map +7 -0
  79. package/dist/modules/chunks/chunk-ER7T6QJ3.mjs +64 -0
  80. package/dist/modules/chunks/chunk-ER7T6QJ3.mjs.map +7 -0
  81. package/dist/modules/chunks/chunk-FD4BAJ6K.mjs +389 -0
  82. package/dist/modules/chunks/chunk-FD4BAJ6K.mjs.map +7 -0
  83. package/dist/modules/chunks/chunk-FJM6WWIY.mjs +80 -0
  84. package/dist/modules/chunks/chunk-FJM6WWIY.mjs.map +7 -0
  85. package/dist/modules/chunks/chunk-FKCQYDLX.mjs +162 -0
  86. package/dist/modules/chunks/chunk-FKCQYDLX.mjs.map +7 -0
  87. package/dist/modules/chunks/chunk-FLGC65SR.mjs +10 -0
  88. package/dist/modules/chunks/chunk-FLGC65SR.mjs.map +7 -0
  89. package/dist/modules/chunks/chunk-FMCACPX5.mjs +289 -0
  90. package/dist/modules/chunks/chunk-FMCACPX5.mjs.map +7 -0
  91. package/dist/modules/chunks/chunk-FOBRLUQV.mjs +51 -0
  92. package/dist/modules/chunks/chunk-FOBRLUQV.mjs.map +7 -0
  93. package/dist/modules/chunks/chunk-FV3DSKZB.mjs +33 -0
  94. package/dist/modules/chunks/chunk-FV3DSKZB.mjs.map +7 -0
  95. package/dist/modules/chunks/chunk-G7BAFAGO.mjs +98 -0
  96. package/dist/modules/chunks/chunk-G7BAFAGO.mjs.map +7 -0
  97. package/dist/modules/chunks/chunk-GQBZMCTK.mjs +145 -0
  98. package/dist/modules/chunks/chunk-GQBZMCTK.mjs.map +7 -0
  99. package/dist/modules/chunks/chunk-GYWIY7AL.mjs +131 -0
  100. package/dist/modules/chunks/chunk-GYWIY7AL.mjs.map +7 -0
  101. package/dist/modules/chunks/chunk-H3KNBALD.mjs +256 -0
  102. package/dist/modules/chunks/chunk-H3KNBALD.mjs.map +7 -0
  103. package/dist/modules/chunks/chunk-H3M22JDL.mjs +144 -0
  104. package/dist/modules/chunks/chunk-H3M22JDL.mjs.map +7 -0
  105. package/dist/modules/chunks/chunk-HES3DNTM.mjs +40 -0
  106. package/dist/modules/chunks/chunk-HES3DNTM.mjs.map +7 -0
  107. package/dist/modules/chunks/chunk-I5BFP7SS.mjs +2392 -0
  108. package/dist/modules/chunks/chunk-I5BFP7SS.mjs.map +7 -0
  109. package/dist/modules/chunks/chunk-IGRMZYRD.mjs +15 -0
  110. package/dist/modules/chunks/chunk-IGRMZYRD.mjs.map +7 -0
  111. package/dist/modules/chunks/chunk-IKNGC766.mjs +321 -0
  112. package/dist/modules/chunks/chunk-IKNGC766.mjs.map +7 -0
  113. package/dist/modules/chunks/chunk-IVHNYKZB.mjs +35 -0
  114. package/dist/modules/chunks/chunk-IVHNYKZB.mjs.map +7 -0
  115. package/dist/modules/chunks/chunk-JHOURMYW.mjs +101 -0
  116. package/dist/modules/chunks/chunk-JHOURMYW.mjs.map +7 -0
  117. package/dist/modules/chunks/chunk-JURXMRFA.mjs +282 -0
  118. package/dist/modules/chunks/chunk-JURXMRFA.mjs.map +7 -0
  119. package/dist/modules/chunks/chunk-JWZIREC3.mjs +18 -0
  120. package/dist/modules/chunks/chunk-JWZIREC3.mjs.map +7 -0
  121. package/dist/modules/chunks/chunk-KHRTIZ56.mjs +1400 -0
  122. package/dist/modules/chunks/chunk-KHRTIZ56.mjs.map +7 -0
  123. package/dist/modules/chunks/chunk-KLJZZ23J.mjs +102 -0
  124. package/dist/modules/chunks/chunk-KLJZZ23J.mjs.map +7 -0
  125. package/dist/modules/chunks/chunk-KNBAYU5I.mjs +49 -0
  126. package/dist/modules/chunks/chunk-KNBAYU5I.mjs.map +7 -0
  127. package/dist/modules/chunks/chunk-KSZNCFU4.mjs +125 -0
  128. package/dist/modules/chunks/chunk-KSZNCFU4.mjs.map +7 -0
  129. package/dist/modules/chunks/chunk-L45W6KM6.mjs +158 -0
  130. package/dist/modules/chunks/chunk-L45W6KM6.mjs.map +7 -0
  131. package/dist/modules/chunks/chunk-LERMYZRC.mjs +239 -0
  132. package/dist/modules/chunks/chunk-LERMYZRC.mjs.map +7 -0
  133. package/dist/modules/chunks/chunk-LKJCXYSJ.mjs +91 -0
  134. package/dist/modules/chunks/chunk-LKJCXYSJ.mjs.map +7 -0
  135. package/dist/modules/chunks/chunk-MBS3EICT.mjs +25 -0
  136. package/dist/modules/chunks/chunk-MBS3EICT.mjs.map +7 -0
  137. package/dist/modules/chunks/chunk-MUOQZPVH.mjs +609 -0
  138. package/dist/modules/chunks/chunk-MUOQZPVH.mjs.map +7 -0
  139. package/dist/modules/chunks/chunk-MVEPGFSB.mjs +1 -0
  140. package/dist/modules/chunks/chunk-MVEPGFSB.mjs.map +7 -0
  141. package/dist/modules/chunks/chunk-NBJKLWJ5.mjs +42 -0
  142. package/dist/modules/chunks/chunk-NBJKLWJ5.mjs.map +7 -0
  143. package/dist/modules/chunks/chunk-NBLGKTEM.mjs +86 -0
  144. package/dist/modules/chunks/chunk-NBLGKTEM.mjs.map +7 -0
  145. package/dist/modules/chunks/chunk-NI7CS3I2.mjs +110 -0
  146. package/dist/modules/chunks/chunk-NI7CS3I2.mjs.map +7 -0
  147. package/dist/modules/chunks/chunk-NJH2OJFC.mjs +2113 -0
  148. package/dist/modules/chunks/chunk-NJH2OJFC.mjs.map +7 -0
  149. package/dist/modules/chunks/chunk-OBK4LIJB.mjs +20 -0
  150. package/dist/modules/chunks/chunk-OBK4LIJB.mjs.map +7 -0
  151. package/dist/modules/chunks/chunk-PEUT3FW7.mjs +1 -0
  152. package/dist/modules/chunks/chunk-PEUT3FW7.mjs.map +7 -0
  153. package/dist/modules/chunks/chunk-PRZOWPDN.mjs +66 -0
  154. package/dist/modules/chunks/chunk-PRZOWPDN.mjs.map +7 -0
  155. package/dist/modules/chunks/chunk-Q4RXBGQS.mjs +55 -0
  156. package/dist/modules/chunks/chunk-Q4RXBGQS.mjs.map +7 -0
  157. package/dist/modules/chunks/chunk-QBHBKOIL.mjs +55 -0
  158. package/dist/modules/chunks/chunk-QBHBKOIL.mjs.map +7 -0
  159. package/dist/modules/chunks/chunk-QD6CCRMG.mjs +20 -0
  160. package/dist/modules/chunks/chunk-QD6CCRMG.mjs.map +7 -0
  161. package/dist/modules/chunks/chunk-QF4V23GW.mjs +39 -0
  162. package/dist/modules/chunks/chunk-QF4V23GW.mjs.map +7 -0
  163. package/dist/modules/chunks/chunk-QK6W7MJO.mjs +42 -0
  164. package/dist/modules/chunks/chunk-QK6W7MJO.mjs.map +7 -0
  165. package/dist/modules/chunks/chunk-QL7V6DK7.mjs +34 -0
  166. package/dist/modules/chunks/chunk-QL7V6DK7.mjs.map +7 -0
  167. package/dist/modules/chunks/chunk-QLBQQKRI.mjs +25 -0
  168. package/dist/modules/chunks/chunk-QLBQQKRI.mjs.map +7 -0
  169. package/dist/modules/chunks/chunk-QLZQGZDC.mjs +418 -0
  170. package/dist/modules/chunks/chunk-QLZQGZDC.mjs.map +7 -0
  171. package/dist/modules/chunks/chunk-QSKQZGK7.mjs +1625 -0
  172. package/dist/modules/chunks/chunk-QSKQZGK7.mjs.map +7 -0
  173. package/dist/modules/chunks/chunk-QURKBAG4.mjs +25 -0
  174. package/dist/modules/chunks/chunk-QURKBAG4.mjs.map +7 -0
  175. package/dist/modules/chunks/chunk-R274XBEH.mjs +53 -0
  176. package/dist/modules/chunks/chunk-R274XBEH.mjs.map +7 -0
  177. package/dist/modules/chunks/chunk-R4I4JEY5.mjs +77 -0
  178. package/dist/modules/chunks/chunk-R4I4JEY5.mjs.map +7 -0
  179. package/dist/modules/chunks/chunk-RR6L6VVR.mjs +9 -0
  180. package/dist/modules/chunks/chunk-RR6L6VVR.mjs.map +7 -0
  181. package/dist/modules/chunks/chunk-RXF7SBBZ.mjs +125 -0
  182. package/dist/modules/chunks/chunk-RXF7SBBZ.mjs.map +7 -0
  183. package/dist/modules/chunks/chunk-SR66S6EJ.mjs +138 -0
  184. package/dist/modules/chunks/chunk-SR66S6EJ.mjs.map +7 -0
  185. package/dist/modules/chunks/chunk-SSQMQJ52.mjs +27 -0
  186. package/dist/modules/chunks/chunk-SSQMQJ52.mjs.map +7 -0
  187. package/dist/modules/chunks/chunk-TP26TASL.mjs +20 -0
  188. package/dist/modules/chunks/chunk-TP26TASL.mjs.map +7 -0
  189. package/dist/modules/chunks/chunk-TSAEK5P3.mjs +50 -0
  190. package/dist/modules/chunks/chunk-TSAEK5P3.mjs.map +7 -0
  191. package/dist/modules/chunks/chunk-UAY27HT3.mjs +68 -0
  192. package/dist/modules/chunks/chunk-UAY27HT3.mjs.map +7 -0
  193. package/dist/modules/chunks/chunk-UDLIWGWS.mjs +103 -0
  194. package/dist/modules/chunks/chunk-UDLIWGWS.mjs.map +7 -0
  195. package/dist/modules/chunks/chunk-UDVQHPWV.mjs +89 -0
  196. package/dist/modules/chunks/chunk-UDVQHPWV.mjs.map +7 -0
  197. package/dist/modules/chunks/chunk-UM23W3G7.mjs +237 -0
  198. package/dist/modules/chunks/chunk-UM23W3G7.mjs.map +7 -0
  199. package/dist/modules/chunks/chunk-VDZJWEAA.mjs +214 -0
  200. package/dist/modules/chunks/chunk-VDZJWEAA.mjs.map +7 -0
  201. package/dist/modules/chunks/chunk-VIGOJWSO.mjs +42 -0
  202. package/dist/modules/chunks/chunk-VIGOJWSO.mjs.map +7 -0
  203. package/dist/modules/chunks/chunk-VY3S5BWI.mjs +284 -0
  204. package/dist/modules/chunks/chunk-VY3S5BWI.mjs.map +7 -0
  205. package/dist/modules/chunks/chunk-VZXGRZYU.mjs +47 -0
  206. package/dist/modules/chunks/chunk-VZXGRZYU.mjs.map +7 -0
  207. package/dist/modules/chunks/chunk-W5DMQZB5.mjs +42 -0
  208. package/dist/modules/chunks/chunk-W5DMQZB5.mjs.map +7 -0
  209. package/dist/modules/chunks/chunk-WOMHSTVZ.mjs +918 -0
  210. package/dist/modules/chunks/chunk-WOMHSTVZ.mjs.map +7 -0
  211. package/dist/modules/chunks/chunk-XFQT7XCG.mjs +42 -0
  212. package/dist/modules/chunks/chunk-XFQT7XCG.mjs.map +7 -0
  213. package/dist/modules/chunks/chunk-XJZEVRYX.mjs +98 -0
  214. package/dist/modules/chunks/chunk-XJZEVRYX.mjs.map +7 -0
  215. package/dist/modules/chunks/chunk-XUYFV23R.mjs +317 -0
  216. package/dist/modules/chunks/chunk-XUYFV23R.mjs.map +7 -0
  217. package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs +58 -0
  218. package/dist/modules/chunks/chunk-Y5HXCPPQ.mjs.map +7 -0
  219. package/dist/modules/chunks/chunk-YTHGRKGI.mjs +147 -0
  220. package/dist/modules/chunks/chunk-YTHGRKGI.mjs.map +7 -0
  221. package/dist/modules/chunks/chunk-YVQSDKAO.mjs +341 -0
  222. package/dist/modules/chunks/chunk-YVQSDKAO.mjs.map +7 -0
  223. package/dist/modules/chunks/chunk-YYXQDUVT.mjs +123 -0
  224. package/dist/modules/chunks/chunk-YYXQDUVT.mjs.map +7 -0
  225. package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs +142 -0
  226. package/dist/modules/chunks/chunk-ZFXZ2NUI.mjs.map +7 -0
  227. package/dist/modules/chunks/chunk-ZLNWF4ET.mjs +9 -0
  228. package/dist/modules/chunks/chunk-ZLNWF4ET.mjs.map +7 -0
  229. package/dist/modules/chunks/chunk-ZLU5QW2O.mjs +9 -0
  230. package/dist/modules/chunks/chunk-ZLU5QW2O.mjs.map +7 -0
  231. package/dist/modules/chunks/chunk-ZNZPYE2V.mjs +28 -0
  232. package/dist/modules/chunks/chunk-ZNZPYE2V.mjs.map +7 -0
  233. package/dist/modules/chunks/core-564N45MO.mjs +7480 -0
  234. package/dist/modules/chunks/core-564N45MO.mjs.map +7 -0
  235. package/dist/modules/chunks/css-BKH4SVJG.mjs +8 -0
  236. package/dist/modules/chunks/css-BKH4SVJG.mjs.map +7 -0
  237. package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs +3241 -0
  238. package/dist/modules/chunks/engine-javascript-PDVIGNGR.mjs.map +7 -0
  239. package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs +8 -0
  240. package/dist/modules/chunks/github-dark-default-6HVTHEWF.mjs.map +7 -0
  241. package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs +8 -0
  242. package/dist/modules/chunks/github-light-default-LAXRA6XL.mjs.map +7 -0
  243. package/dist/modules/chunks/glsl-UC3YWUD2.mjs +18 -0
  244. package/dist/modules/chunks/glsl-UC3YWUD2.mjs.map +7 -0
  245. package/dist/modules/chunks/html-FRVIUV63.mjs +19 -0
  246. package/dist/modules/chunks/html-FRVIUV63.mjs.map +7 -0
  247. package/dist/modules/chunks/javascript-LN3OC7S2.mjs +8 -0
  248. package/dist/modules/chunks/javascript-LN3OC7S2.mjs.map +7 -0
  249. package/dist/modules/chunks/json-5CUGWTOP.mjs +11 -0
  250. package/dist/modules/chunks/json-5CUGWTOP.mjs.map +7 -0
  251. package/dist/modules/chunks/json5-YZQI5VNO.mjs +11 -0
  252. package/dist/modules/chunks/json5-YZQI5VNO.mjs.map +7 -0
  253. package/dist/modules/chunks/jsonc-SWID6VOZ.mjs +11 -0
  254. package/dist/modules/chunks/jsonc-SWID6VOZ.mjs.map +7 -0
  255. package/dist/modules/chunks/jsx-A7RDCLJO.mjs +11 -0
  256. package/dist/modules/chunks/jsx-A7RDCLJO.mjs.map +7 -0
  257. package/dist/modules/chunks/markdown-QTCU5KP5.mjs +11 -0
  258. package/dist/modules/chunks/markdown-QTCU5KP5.mjs.map +7 -0
  259. package/dist/modules/chunks/python-LAZONBIB.mjs +11 -0
  260. package/dist/modules/chunks/python-LAZONBIB.mjs.map +7 -0
  261. package/dist/modules/chunks/rust-XWTPJFJO.mjs +11 -0
  262. package/dist/modules/chunks/rust-XWTPJFJO.mjs.map +7 -0
  263. package/dist/modules/chunks/scss-CFXRHUUW.mjs +15 -0
  264. package/dist/modules/chunks/scss-CFXRHUUW.mjs.map +7 -0
  265. package/dist/modules/chunks/shellscript-OHO3LCVU.mjs +11 -0
  266. package/dist/modules/chunks/shellscript-OHO3LCVU.mjs.map +7 -0
  267. package/dist/modules/chunks/toml-IOHFZJ5B.mjs +11 -0
  268. package/dist/modules/chunks/toml-IOHFZJ5B.mjs.map +7 -0
  269. package/dist/modules/chunks/tsx-2E6WNX2E.mjs +11 -0
  270. package/dist/modules/chunks/tsx-2E6WNX2E.mjs.map +7 -0
  271. package/dist/modules/chunks/typescript-PBKAS54P.mjs +11 -0
  272. package/dist/modules/chunks/typescript-PBKAS54P.mjs.map +7 -0
  273. package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs +11 -0
  274. package/dist/modules/chunks/wgsl-PS6QPRLZ.mjs.map +7 -0
  275. package/dist/modules/chunks/xml-JECR2ACB.mjs +18 -0
  276. package/dist/modules/chunks/xml-JECR2ACB.mjs.map +7 -0
  277. package/dist/modules/chunks/yaml-P2SV4LOE.mjs +11 -0
  278. package/dist/modules/chunks/yaml-P2SV4LOE.mjs.map +7 -0
  279. package/dist/modules/cli-contributions.mjs +32 -0
  280. package/dist/modules/cli-contributions.mjs.map +7 -0
  281. package/dist/modules/cli.mjs +14 -0
  282. package/dist/modules/cli.mjs.map +7 -0
  283. package/dist/modules/command-executor.mjs +65 -0
  284. package/dist/modules/command-executor.mjs.map +7 -0
  285. package/dist/modules/commands.mjs +10 -0
  286. package/dist/modules/commands.mjs.map +7 -0
  287. package/dist/modules/embedded.mjs +18608 -0
  288. package/dist/modules/embedded.mjs.map +7 -0
  289. package/dist/modules/extension-bridge.mjs +18 -0
  290. package/dist/modules/extension-bridge.mjs.map +7 -0
  291. package/dist/modules/frontend-root.mjs +61 -0
  292. package/dist/modules/frontend-root.mjs.map +7 -0
  293. package/dist/modules/index.mjs +784 -0
  294. package/dist/modules/index.mjs.map +7 -0
  295. package/dist/modules/page.mjs +45 -0
  296. package/dist/modules/page.mjs.map +7 -0
  297. package/dist/modules/pages/scene.mjs +18 -0
  298. package/dist/modules/pages/scene.mjs.map +7 -0
  299. package/dist/modules/plugin.mjs +56 -0
  300. package/dist/modules/plugin.mjs.map +7 -0
  301. package/dist/modules/plugins/asset/frontend.mjs +23 -0
  302. package/dist/modules/plugins/asset/frontend.mjs.map +7 -0
  303. package/dist/modules/plugins/asset/i18n.mjs +15 -0
  304. package/dist/modules/plugins/asset/i18n.mjs.map +7 -0
  305. package/dist/modules/plugins/asset/identity.mjs +42 -0
  306. package/dist/modules/plugins/asset/identity.mjs.map +7 -0
  307. package/dist/modules/plugins/asset/schema.mjs +10 -0
  308. package/dist/modules/plugins/asset/schema.mjs.map +7 -0
  309. package/dist/modules/plugins/asset/ui.mjs +16 -0
  310. package/dist/modules/plugins/asset/ui.mjs.map +7 -0
  311. package/dist/modules/plugins/content-browser/frontend.mjs +17 -0
  312. package/dist/modules/plugins/content-browser/frontend.mjs.map +7 -0
  313. package/dist/modules/plugins/content-browser/i18n.mjs +15 -0
  314. package/dist/modules/plugins/content-browser/i18n.mjs.map +7 -0
  315. package/dist/modules/plugins/content-browser/identity.mjs +22 -0
  316. package/dist/modules/plugins/content-browser/identity.mjs.map +7 -0
  317. package/dist/modules/plugins/content-browser/schema.mjs +12 -0
  318. package/dist/modules/plugins/content-browser/schema.mjs.map +7 -0
  319. package/dist/modules/plugins/content-browser/ui.mjs +15 -0
  320. package/dist/modules/plugins/content-browser/ui.mjs.map +7 -0
  321. package/dist/modules/plugins/display/api.mjs +10 -0
  322. package/dist/modules/plugins/display/api.mjs.map +7 -0
  323. package/dist/modules/plugins/display/backend.mjs +16 -0
  324. package/dist/modules/plugins/display/backend.mjs.map +7 -0
  325. package/dist/modules/plugins/display/carrier-contract.mjs +38 -0
  326. package/dist/modules/plugins/display/carrier-contract.mjs.map +7 -0
  327. package/dist/modules/plugins/display/carrier.mjs +13 -0
  328. package/dist/modules/plugins/display/carrier.mjs.map +7 -0
  329. package/dist/modules/plugins/display/effects.mjs +8 -0
  330. package/dist/modules/plugins/display/effects.mjs.map +7 -0
  331. package/dist/modules/plugins/display/frontend.mjs +14 -0
  332. package/dist/modules/plugins/display/frontend.mjs.map +7 -0
  333. package/dist/modules/plugins/display/i18n.mjs +58 -0
  334. package/dist/modules/plugins/display/i18n.mjs.map +7 -0
  335. package/dist/modules/plugins/display/identity.mjs +30 -0
  336. package/dist/modules/plugins/display/identity.mjs.map +7 -0
  337. package/dist/modules/plugins/display/page-broker.mjs +12 -0
  338. package/dist/modules/plugins/display/page-broker.mjs.map +7 -0
  339. package/dist/modules/plugins/display/schema.mjs +40 -0
  340. package/dist/modules/plugins/display/schema.mjs.map +7 -0
  341. package/dist/modules/plugins/display/ui.mjs +9 -0
  342. package/dist/modules/plugins/display/ui.mjs.map +7 -0
  343. package/dist/modules/plugins/inspector/frontend.mjs +17 -0
  344. package/dist/modules/plugins/inspector/frontend.mjs.map +7 -0
  345. package/dist/modules/plugins/inspector/i18n.mjs +15 -0
  346. package/dist/modules/plugins/inspector/i18n.mjs.map +7 -0
  347. package/dist/modules/plugins/inspector/identity.mjs +22 -0
  348. package/dist/modules/plugins/inspector/identity.mjs.map +7 -0
  349. package/dist/modules/plugins/inspector/schema.mjs +12 -0
  350. package/dist/modules/plugins/inspector/schema.mjs.map +7 -0
  351. package/dist/modules/plugins/inspector/ui.mjs +16 -0
  352. package/dist/modules/plugins/inspector/ui.mjs.map +7 -0
  353. package/dist/modules/plugins/material/frontend.mjs +25 -0
  354. package/dist/modules/plugins/material/frontend.mjs.map +7 -0
  355. package/dist/modules/plugins/material/i18n.mjs +15 -0
  356. package/dist/modules/plugins/material/i18n.mjs.map +7 -0
  357. package/dist/modules/plugins/material/identity.mjs +60 -0
  358. package/dist/modules/plugins/material/identity.mjs.map +7 -0
  359. package/dist/modules/plugins/material/schema.mjs +47 -0
  360. package/dist/modules/plugins/material/schema.mjs.map +7 -0
  361. package/dist/modules/plugins/material/ui.mjs +28 -0
  362. package/dist/modules/plugins/material/ui.mjs.map +7 -0
  363. package/dist/modules/plugins/mesh/frontend.mjs +23 -0
  364. package/dist/modules/plugins/mesh/frontend.mjs.map +7 -0
  365. package/dist/modules/plugins/mesh/i18n.mjs +15 -0
  366. package/dist/modules/plugins/mesh/i18n.mjs.map +7 -0
  367. package/dist/modules/plugins/mesh/identity.mjs +54 -0
  368. package/dist/modules/plugins/mesh/identity.mjs.map +7 -0
  369. package/dist/modules/plugins/mesh/schema.mjs +10 -0
  370. package/dist/modules/plugins/mesh/schema.mjs.map +7 -0
  371. package/dist/modules/plugins/mesh/ui.mjs +26 -0
  372. package/dist/modules/plugins/mesh/ui.mjs.map +7 -0
  373. package/dist/modules/plugins/plugins/api.mjs +11 -0
  374. package/dist/modules/plugins/plugins/api.mjs.map +7 -0
  375. package/dist/modules/plugins/plugins/backend.mjs +21 -0
  376. package/dist/modules/plugins/plugins/backend.mjs.map +7 -0
  377. package/dist/modules/plugins/plugins/cli.mjs +12 -0
  378. package/dist/modules/plugins/plugins/cli.mjs.map +7 -0
  379. package/dist/modules/plugins/plugins/frontend.mjs +17 -0
  380. package/dist/modules/plugins/plugins/frontend.mjs.map +7 -0
  381. package/dist/modules/plugins/plugins/i18n.mjs +15 -0
  382. package/dist/modules/plugins/plugins/i18n.mjs.map +7 -0
  383. package/dist/modules/plugins/plugins/identity.mjs +26 -0
  384. package/dist/modules/plugins/plugins/identity.mjs.map +7 -0
  385. package/dist/modules/plugins/plugins/runtime.mjs +50 -0
  386. package/dist/modules/plugins/plugins/runtime.mjs.map +7 -0
  387. package/dist/modules/plugins/plugins/schema.mjs +12 -0
  388. package/dist/modules/plugins/plugins/schema.mjs.map +7 -0
  389. package/dist/modules/plugins/plugins/ui/panel.mjs +14 -0
  390. package/dist/modules/plugins/plugins/ui/panel.mjs.map +7 -0
  391. package/dist/modules/plugins/plugins/ui.mjs +15 -0
  392. package/dist/modules/plugins/plugins/ui.mjs.map +7 -0
  393. package/dist/modules/plugins/scene/frontend.mjs +18 -0
  394. package/dist/modules/plugins/scene/frontend.mjs.map +7 -0
  395. package/dist/modules/plugins/scene/identity.mjs +14 -0
  396. package/dist/modules/plugins/scene/identity.mjs.map +7 -0
  397. package/dist/modules/plugins/scene-tree/frontend.mjs +17 -0
  398. package/dist/modules/plugins/scene-tree/frontend.mjs.map +7 -0
  399. package/dist/modules/plugins/scene-tree/i18n.mjs +15 -0
  400. package/dist/modules/plugins/scene-tree/i18n.mjs.map +7 -0
  401. package/dist/modules/plugins/scene-tree/identity.mjs +22 -0
  402. package/dist/modules/plugins/scene-tree/identity.mjs.map +7 -0
  403. package/dist/modules/plugins/scene-tree/schema.mjs +12 -0
  404. package/dist/modules/plugins/scene-tree/schema.mjs.map +7 -0
  405. package/dist/modules/plugins/scene-tree/ui.mjs +16 -0
  406. package/dist/modules/plugins/scene-tree/ui.mjs.map +7 -0
  407. package/dist/modules/plugins/texture/frontend.mjs +23 -0
  408. package/dist/modules/plugins/texture/frontend.mjs.map +7 -0
  409. package/dist/modules/plugins/texture/i18n.mjs +15 -0
  410. package/dist/modules/plugins/texture/i18n.mjs.map +7 -0
  411. package/dist/modules/plugins/texture/identity.mjs +54 -0
  412. package/dist/modules/plugins/texture/identity.mjs.map +7 -0
  413. package/dist/modules/plugins/texture/schema.mjs +10 -0
  414. package/dist/modules/plugins/texture/schema.mjs.map +7 -0
  415. package/dist/modules/plugins/texture/ui.mjs +26 -0
  416. package/dist/modules/plugins/texture/ui.mjs.map +7 -0
  417. package/dist/modules/plugins/viewport/frontend.mjs +27 -0
  418. package/dist/modules/plugins/viewport/frontend.mjs.map +7 -0
  419. package/dist/modules/plugins/viewport/identity.mjs +28 -0
  420. package/dist/modules/plugins/viewport/identity.mjs.map +7 -0
  421. package/dist/modules/plugins/viewport/presentation-identity.mjs +10 -0
  422. package/dist/modules/plugins/viewport/presentation-identity.mjs.map +7 -0
  423. package/dist/modules/plugins/viewport/presentation.mjs +18 -0
  424. package/dist/modules/plugins/viewport/presentation.mjs.map +7 -0
  425. package/dist/modules/plugins/viewport/schema.mjs +18 -0
  426. package/dist/modules/plugins/viewport/schema.mjs.map +7 -0
  427. package/dist/modules/plugins/viewport/workspace-shell.mjs +29 -0
  428. package/dist/modules/plugins/viewport/workspace-shell.mjs.map +7 -0
  429. package/dist/modules/shell/contract.mjs +10 -0
  430. package/dist/modules/shell/contract.mjs.map +7 -0
  431. package/dist/modules/shell/frontend.mjs +14 -0
  432. package/dist/modules/shell/frontend.mjs.map +7 -0
  433. package/dist/modules/shell/layout-zones.mjs +20 -0
  434. package/dist/modules/shell/layout-zones.mjs.map +7 -0
  435. package/dist/modules/start-cli.mjs +57 -0
  436. package/dist/modules/start-cli.mjs.map +7 -0
  437. package/dist/modules/start.mjs +18 -0
  438. package/dist/modules/start.mjs.map +7 -0
  439. package/dist/modules/viewer/catalog/backend.mjs +47 -0
  440. package/dist/modules/viewer/catalog/backend.mjs.map +7 -0
  441. package/dist/modules/viewer/catalog/frontend.mjs +55 -0
  442. package/dist/modules/viewer/catalog/frontend.mjs.map +7 -0
  443. package/dist/modules/viewer/catalog/shared.mjs +43 -0
  444. package/dist/modules/viewer/catalog/shared.mjs.map +7 -0
  445. package/dist/modules/viewer/catalog.mjs +85 -0
  446. package/dist/modules/viewer/catalog.mjs.map +7 -0
  447. package/dist/modules/viewer/cli.mjs +23 -0
  448. package/dist/modules/viewer/cli.mjs.map +7 -0
  449. package/dist/modules/viewer-host/frontend.mjs +65 -0
  450. package/dist/modules/viewer-host/frontend.mjs.map +7 -0
  451. package/dist/modules/viewer-host/page-registry.mjs +27 -0
  452. package/dist/modules/viewer-host/page-registry.mjs.map +7 -0
  453. package/dist/modules/viewer-host/slot-registry.mjs +8 -0
  454. package/dist/modules/viewer-host/slot-registry.mjs.map +7 -0
  455. package/dist/modules/viewer-host.mjs +43 -0
  456. package/dist/modules/viewer-host.mjs.map +7 -0
  457. package/dist/modules/viewer.mjs +85 -0
  458. package/dist/modules/viewer.mjs.map +7 -0
  459. package/dist/modules/workspace/adopt-surface.mjs +16 -0
  460. package/dist/modules/workspace/adopt-surface.mjs.map +7 -0
  461. package/dist/modules/workspace/api.mjs +8 -0
  462. package/dist/modules/workspace/api.mjs.map +7 -0
  463. package/dist/modules/workspace/backend.mjs +23 -0
  464. package/dist/modules/workspace/backend.mjs.map +7 -0
  465. package/dist/modules/workspace/broker.mjs +16 -0
  466. package/dist/modules/workspace/broker.mjs.map +7 -0
  467. package/dist/modules/workspace/cli.mjs +9 -0
  468. package/dist/modules/workspace/cli.mjs.map +7 -0
  469. package/dist/modules/workspace/client.mjs +15 -0
  470. package/dist/modules/workspace/client.mjs.map +7 -0
  471. package/dist/modules/workspace/command-error.mjs +16 -0
  472. package/dist/modules/workspace/command-error.mjs.map +7 -0
  473. package/dist/modules/workspace/contract.mjs +71 -0
  474. package/dist/modules/workspace/contract.mjs.map +7 -0
  475. package/dist/modules/workspace/demo-client.mjs +127 -0
  476. package/dist/modules/workspace/demo-client.mjs.map +7 -0
  477. package/dist/modules/workspace/engine-adapter.mjs +16 -0
  478. package/dist/modules/workspace/engine-adapter.mjs.map +7 -0
  479. package/dist/modules/workspace/engine-presentation.mjs +10 -0
  480. package/dist/modules/workspace/engine-presentation.mjs.map +7 -0
  481. package/dist/modules/workspace/extension-bridge.mjs +18 -0
  482. package/dist/modules/workspace/extension-bridge.mjs.map +7 -0
  483. package/dist/modules/workspace/frontend-plugin.mjs +18 -0
  484. package/dist/modules/workspace/frontend-plugin.mjs.map +7 -0
  485. package/dist/modules/workspace/frontend.mjs +29 -0
  486. package/dist/modules/workspace/frontend.mjs.map +7 -0
  487. package/dist/modules/workspace/id.mjs +8 -0
  488. package/dist/modules/workspace/id.mjs.map +7 -0
  489. package/dist/modules/workspace/inspection-presentation.mjs +12 -0
  490. package/dist/modules/workspace/inspection-presentation.mjs.map +7 -0
  491. package/dist/modules/workspace/locale-bridge.mjs +14 -0
  492. package/dist/modules/workspace/locale-bridge.mjs.map +7 -0
  493. package/dist/modules/workspace/page-title.mjs +13 -0
  494. package/dist/modules/workspace/page-title.mjs.map +7 -0
  495. package/dist/modules/workspace/presentation.mjs +18 -0
  496. package/dist/modules/workspace/presentation.mjs.map +7 -0
  497. package/dist/modules/workspace/preview-surface.mjs +17 -0
  498. package/dist/modules/workspace/preview-surface.mjs.map +7 -0
  499. package/dist/modules/workspace/project-session.mjs +18 -0
  500. package/dist/modules/workspace/project-session.mjs.map +7 -0
  501. package/dist/modules/workspace/render-resize-sync.mjs +12 -0
  502. package/dist/modules/workspace/render-resize-sync.mjs.map +7 -0
  503. package/dist/modules/workspace/resident.mjs +16 -0
  504. package/dist/modules/workspace/resident.mjs.map +7 -0
  505. package/dist/modules/workspace/resource-open.mjs +34 -0
  506. package/dist/modules/workspace/resource-open.mjs.map +7 -0
  507. package/dist/modules/workspace/resource-page.mjs +27 -0
  508. package/dist/modules/workspace/resource-page.mjs.map +7 -0
  509. package/dist/modules/workspace/tool-runtime.mjs +14 -0
  510. package/dist/modules/workspace/tool-runtime.mjs.map +7 -0
  511. package/dist/modules/workspace/view-trace.mjs +60 -0
  512. package/dist/modules/workspace/view-trace.mjs.map +7 -0
  513. package/dist/modules/workspace/workspace-client-connection.mjs +22 -0
  514. package/dist/modules/workspace/workspace-client-connection.mjs.map +7 -0
  515. package/dist/modules/workspace/workspace-recovery.mjs +35 -0
  516. package/dist/modules/workspace/workspace-recovery.mjs.map +7 -0
  517. package/dist/modules/workspace/workspace-state.mjs +12 -0
  518. package/dist/modules/workspace/workspace-state.mjs.map +7 -0
  519. package/dist/modules/workspace-frontend.mjs +17 -0
  520. package/dist/modules/workspace-frontend.mjs.map +7 -0
  521. package/dist/viewer/assets/chunk-CilyBKbf.js +1 -0
  522. package/dist/viewer/assets/core-DSQma37-.js +13 -0
  523. package/dist/viewer/assets/core-DSQma37-.js.map +1 -0
  524. package/dist/viewer/assets/css-Bq1BXecw.js +2 -0
  525. package/dist/viewer/assets/css-Bq1BXecw.js.map +1 -0
  526. package/dist/viewer/assets/css-CWQWazmX.js +1 -0
  527. package/dist/viewer/assets/embedded-D4ZDx--W.js +2 -0
  528. package/dist/viewer/assets/embedded-D4ZDx--W.js.map +1 -0
  529. package/dist/viewer/assets/engine-javascript-BvokIV9O.js +142 -0
  530. package/dist/viewer/assets/engine-javascript-BvokIV9O.js.map +1 -0
  531. package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js +2 -0
  532. package/dist/viewer/assets/github-dark-default-DaDlj-WZ.js.map +1 -0
  533. package/dist/viewer/assets/github-light-default-BqhWxAZd.js +2 -0
  534. package/dist/viewer/assets/github-light-default-BqhWxAZd.js.map +1 -0
  535. package/dist/viewer/assets/glsl-BJgVnv11.js +2 -0
  536. package/dist/viewer/assets/glsl-BJgVnv11.js.map +1 -0
  537. package/dist/viewer/assets/html-AaaHGGyt.js +2 -0
  538. package/dist/viewer/assets/html-AaaHGGyt.js.map +1 -0
  539. package/dist/viewer/assets/javascript-BX9W64FE.js +1 -0
  540. package/dist/viewer/assets/javascript-DQODvD07.js +2 -0
  541. package/dist/viewer/assets/javascript-DQODvD07.js.map +1 -0
  542. package/dist/viewer/assets/json-CpcIDpT7.js +2 -0
  543. package/dist/viewer/assets/json-CpcIDpT7.js.map +1 -0
  544. package/dist/viewer/assets/json5-Czq4A7dk.js +2 -0
  545. package/dist/viewer/assets/json5-Czq4A7dk.js.map +1 -0
  546. package/dist/viewer/assets/jsonc-BXDfCMmu.js +2 -0
  547. package/dist/viewer/assets/jsonc-BXDfCMmu.js.map +1 -0
  548. package/dist/viewer/assets/jsx-DAWscEnf.js +2 -0
  549. package/dist/viewer/assets/jsx-DAWscEnf.js.map +1 -0
  550. package/dist/viewer/assets/main-C-2CHTN_.js +15 -0
  551. package/dist/viewer/assets/main-C-2CHTN_.js.map +1 -0
  552. package/dist/viewer/assets/markdown-Cx1FMNw-.js +2 -0
  553. package/dist/viewer/assets/markdown-Cx1FMNw-.js.map +1 -0
  554. package/dist/viewer/assets/panels-entry-Ddhfjgf0.js +46 -0
  555. package/dist/viewer/assets/panels-entry-Ddhfjgf0.js.map +1 -0
  556. package/dist/viewer/assets/python-CYPKjWV9.js +2 -0
  557. package/dist/viewer/assets/python-CYPKjWV9.js.map +1 -0
  558. package/dist/viewer/assets/rust-0e5cNx_V.js +2 -0
  559. package/dist/viewer/assets/rust-0e5cNx_V.js.map +1 -0
  560. package/dist/viewer/assets/scss-B-aKzLbT.js +2 -0
  561. package/dist/viewer/assets/scss-B-aKzLbT.js.map +1 -0
  562. package/dist/viewer/assets/shellscript-CpXD-pSm.js +2 -0
  563. package/dist/viewer/assets/shellscript-CpXD-pSm.js.map +1 -0
  564. package/dist/viewer/assets/style-ClttNKZk.css +2 -0
  565. package/dist/viewer/assets/styles-BXozhwiU.js +11 -0
  566. package/dist/viewer/assets/styles-BXozhwiU.js.map +1 -0
  567. package/dist/viewer/assets/toml-GmchYTXa.js +2 -0
  568. package/dist/viewer/assets/toml-GmchYTXa.js.map +1 -0
  569. package/dist/viewer/assets/tsx-Crj1Bi53.js +2 -0
  570. package/dist/viewer/assets/tsx-Crj1Bi53.js.map +1 -0
  571. package/dist/viewer/assets/typescript-xi0cSHCO.js +2 -0
  572. package/dist/viewer/assets/typescript-xi0cSHCO.js.map +1 -0
  573. package/dist/viewer/assets/wgsl-BoEPRo9U.js +2 -0
  574. package/dist/viewer/assets/wgsl-BoEPRo9U.js.map +1 -0
  575. package/dist/viewer/assets/xml-B8JqQrMD.js +2 -0
  576. package/dist/viewer/assets/xml-B8JqQrMD.js.map +1 -0
  577. package/dist/viewer/assets/yaml-DsIB85X9.js +2 -0
  578. package/dist/viewer/assets/yaml-DsIB85X9.js.map +1 -0
  579. package/dist/viewer/index.html +15 -0
  580. package/dist/viewer/panels.js +1 -0
  581. package/host.pack.json +13 -0
  582. package/package.json +174 -0
  583. package/skills/forgeax-view-cli/SKILL.md +74 -0
  584. package/skills/forgeax-view-start/SKILL.md +202 -0
  585. package/skills/forgeax-view-start/scripts/start-view.mjs +202 -0
@@ -0,0 +1,918 @@
1
+ import {
2
+ getLocale,
3
+ subscribeLocale,
4
+ t
5
+ } from "./chunk-ATWGCH7I.mjs";
6
+ import {
7
+ SCENE_TREE_ACTIONS
8
+ } from "./chunk-R274XBEH.mjs";
9
+ import {
10
+ Checkbox,
11
+ EmptyState,
12
+ FloatingMenu,
13
+ IconButton,
14
+ OverlayRootProvider,
15
+ PanelHeader,
16
+ SearchField,
17
+ Toolbar,
18
+ useOverlayRoot,
19
+ useWorkspaceClientConnected
20
+ } from "./chunk-NJH2OJFC.mjs";
21
+ import {
22
+ createWorkspaceObservation,
23
+ createWorkspaceStateReader
24
+ } from "./chunk-FJM6WWIY.mjs";
25
+ import {
26
+ VIEW_WORKSPACE_TAB_ID,
27
+ jsonUnchanged
28
+ } from "./chunk-32GD5LL6.mjs";
29
+
30
+ // packages/view-plugin-scene-tree/src/ui/mount.tsx
31
+ import { createRoot } from "react-dom/client";
32
+
33
+ // packages/view-plugin-scene-tree/src/ui/SceneTreePanel.tsx
34
+ import {
35
+ Box,
36
+ Braces,
37
+ Camera,
38
+ ChevronDown,
39
+ ChevronRight,
40
+ CircleUserRound,
41
+ Crosshair,
42
+ Filter,
43
+ Folder,
44
+ Layers,
45
+ Lightbulb,
46
+ Maximize2,
47
+ Minimize2,
48
+ Settings,
49
+ X
50
+ } from "lucide-react";
51
+ import {
52
+ useCallback as useCallback2,
53
+ useEffect,
54
+ useMemo,
55
+ useRef,
56
+ useState,
57
+ useSyncExternalStore as useSyncExternalStore2
58
+ } from "react";
59
+ import { createPortal } from "react-dom";
60
+
61
+ // packages/view-plugin-scene-tree/src/i18n/useTranslation.ts
62
+ import { useCallback, useSyncExternalStore } from "react";
63
+ function useTranslation() {
64
+ const locale = useSyncExternalStore(subscribeLocale, getLocale, getLocale);
65
+ const t2 = useCallback(
66
+ (key, vars) => t(key, vars),
67
+ [locale]
68
+ );
69
+ return { t: t2, locale };
70
+ }
71
+
72
+ // packages/view-plugin-scene-tree/src/hierarchy-filters.mjs
73
+ var CATEGORY_RULES = [
74
+ { test: /Camera/, category: "camera" },
75
+ { test: /Light/, category: "light" },
76
+ { test: /Character|Controller/, category: "character" },
77
+ { test: /PlayerStart/, category: "start" },
78
+ { test: /Spawner/, category: "spawner" },
79
+ { test: /Mesh/, category: "mesh" }
80
+ ];
81
+ function categoryRank(category) {
82
+ const index = CATEGORY_RULES.findIndex((rule) => rule.category === category);
83
+ return index === -1 ? CATEGORY_RULES.length : index;
84
+ }
85
+ function hierarchyTypeCategory(id) {
86
+ if (id === "group") return "group";
87
+ if (id === "entity") return "entity";
88
+ for (const rule of CATEGORY_RULES) {
89
+ if (rule.test.test(id)) return rule.category;
90
+ }
91
+ return "generic";
92
+ }
93
+ function compareComponentFilterIds(a, b) {
94
+ const ra = categoryRank(hierarchyTypeCategory(a));
95
+ const rb = categoryRank(hierarchyTypeCategory(b));
96
+ return ra - rb || a.localeCompare(b);
97
+ }
98
+ function entityMatchesSceneTreeFilters(componentNames, activeFilters) {
99
+ if (activeFilters.size === 0) return true;
100
+ return componentNames.some((name) => activeFilters.has(name));
101
+ }
102
+ function buildSceneTreeFilterOptions(schemaNames, counts = /* @__PURE__ */ new Map()) {
103
+ const seen = /* @__PURE__ */ new Set();
104
+ const options = [];
105
+ for (const name of schemaNames) {
106
+ const id = String(name);
107
+ if (!id || seen.has(id)) continue;
108
+ seen.add(id);
109
+ const count = counts.get(id);
110
+ options.push({
111
+ id,
112
+ ...count === void 0 ? {} : { count }
113
+ });
114
+ }
115
+ options.sort((left, right) => compareComponentFilterIds(left.id, right.id));
116
+ return options;
117
+ }
118
+
119
+ // packages/view-plugin-scene-tree/src/hierarchy.mjs
120
+ function projectEntityRows(result) {
121
+ if (!result || typeof result !== "object") return [];
122
+ const nodes = result.nodes;
123
+ if (!Array.isArray(nodes)) return [];
124
+ const rows = [];
125
+ const seen = /* @__PURE__ */ new Set();
126
+ const flat = nodes.filter((node) => node && typeof node === "object");
127
+ const byId = new Map(flat.map((node) => [String(node.entityId), node]));
128
+ const children = /* @__PURE__ */ new Map();
129
+ for (const node of flat) {
130
+ if (node.parentId && byId.has(node.parentId)) {
131
+ const siblings = children.get(node.parentId) ?? [];
132
+ siblings.push(node);
133
+ children.set(node.parentId, siblings);
134
+ }
135
+ }
136
+ const visit = (root) => {
137
+ const stack = [{ node: root, depth: 0 }];
138
+ while (stack.length) {
139
+ const { node, depth } = stack.pop();
140
+ const id = String(node.entityId ?? "");
141
+ if (!id || seen.has(id)) continue;
142
+ seen.add(id);
143
+ const descendants = children.get(id) ?? [];
144
+ const componentNames = Array.isArray(node.componentNames) ? node.componentNames.filter((name) => typeof name === "string") : [];
145
+ const typeKey = componentNames.includes("Camera") ? "camera" : componentNames.includes("DirectionalLight") ? "directionalLight" : componentNames.includes("MeshFilter") ? "mesh" : "entity";
146
+ rows.push({
147
+ id,
148
+ componentNames,
149
+ name: String(node.name ?? (node.entity === void 0 ? id : `Entity ${node.entity}`)),
150
+ typeKey,
151
+ depth,
152
+ kind: "entity",
153
+ ...descendants.length ? { hasChildren: true, expanded: depth < 1 } : {}
154
+ });
155
+ for (let i = descendants.length - 1; i >= 0; i--) stack.push({ node: descendants[i], depth: depth + 1 });
156
+ }
157
+ };
158
+ for (const node of flat) if (!node.parentId || !byId.has(node.parentId)) visit(node);
159
+ for (const node of flat) visit(node);
160
+ return rows;
161
+ }
162
+ function sceneTreeComponentFilters(rows) {
163
+ const counts = /* @__PURE__ */ new Map();
164
+ for (const row of rows) for (const name of row.componentNames ?? []) counts.set(name, (counts.get(name) ?? 0) + 1);
165
+ return buildSceneTreeFilterOptions([...counts.keys()], counts);
166
+ }
167
+ var HIERARCHY_SCENE_FOLDER_ID = "hierarchy:scene-root";
168
+ function isSceneRootRow(row) {
169
+ return row?.id === HIERARCHY_SCENE_FOLDER_ID;
170
+ }
171
+ function wrapWithVirtualSceneRoot(rows) {
172
+ if (rows.some(isSceneRootRow)) return rows.map((row) => isSceneRootRow(row) ? { ...row, virtual: true } : row);
173
+ return [
174
+ {
175
+ id: HIERARCHY_SCENE_FOLDER_ID,
176
+ name: "Scene",
177
+ typeKey: "folder",
178
+ depth: 0,
179
+ kind: "folder",
180
+ virtual: true,
181
+ hasChildren: rows.length > 0,
182
+ expanded: true
183
+ },
184
+ ...rows.map((row) => ({ ...row, depth: row.depth + 1 }))
185
+ ];
186
+ }
187
+ function normalizeSceneTreeRows(result) {
188
+ return wrapWithVirtualSceneRoot(projectEntityRows(result));
189
+ }
190
+
191
+ // packages/view-plugin-scene-tree/src/ui/mockHierarchy.ts
192
+ var MOCK_HIERARCHY_ROWS = [
193
+ { id: HIERARCHY_SCENE_FOLDER_ID, name: "Scene", typeKey: "folder", depth: 0, kind: "folder", virtual: true, hasChildren: true, expanded: true },
194
+ { id: "ground", name: "Ground", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 1, kind: "entity" },
195
+ { id: "tree-trunk", name: "TreeTrunk", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 1, kind: "entity" },
196
+ { id: "red-box", name: "RedBox", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 1, kind: "entity" },
197
+ { id: "blue-ball", name: "BlueBall", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 1, kind: "entity" },
198
+ { id: "sun", name: "Sun", typeKey: "directionalLight", componentNames: ["DirectionalLight", "Transform"], depth: 1, kind: "entity" },
199
+ { id: "skybox", name: "Skybox", typeKey: "sky", componentNames: ["SkyLight", "Transform"], depth: 1, kind: "entity" },
200
+ { id: "player", name: "Player", typeKey: "mesh", componentNames: ["CharacterController", "MeshRenderer", "Transform"], depth: 1, kind: "entity" },
201
+ { id: "props", name: "Props", depth: 1, kind: "folder", hasChildren: true, expanded: true },
202
+ { id: "crate-a", name: "Crate_A", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 2, kind: "entity" },
203
+ { id: "crate-b", name: "Crate_B", typeKey: "mesh", componentNames: ["MeshRenderer", "Transform"], depth: 2, kind: "entity" }
204
+ ];
205
+
206
+ // packages/view-plugin-scene-tree/src/ui/SceneTreePanel.tsx
207
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
208
+ var HIERARCHY_ROWS = MOCK_HIERARCHY_ROWS.map((row) => ({ ...row }));
209
+ function rowComponentNames(row) {
210
+ if (Array.isArray(row.componentNames) && row.componentNames.length > 0) {
211
+ return row.componentNames;
212
+ }
213
+ return row.typeKey ? [String(row.typeKey)] : [];
214
+ }
215
+ function rowType(row) {
216
+ if (isSceneRootRow(row)) return "scene";
217
+ if (row.kind === "folder") return "group";
218
+ const primary = rowComponentNames(row).find((name) => name !== "Transform") ?? row.typeKey;
219
+ if (!primary) return "mesh";
220
+ return hierarchyTypeCategory(String(primary));
221
+ }
222
+ function filterOptionIcon(id) {
223
+ switch (hierarchyTypeCategory(id)) {
224
+ case "camera":
225
+ return /* @__PURE__ */ jsx(Camera, { size: 14 });
226
+ case "light":
227
+ return /* @__PURE__ */ jsx(Lightbulb, { size: 14 });
228
+ case "character":
229
+ return /* @__PURE__ */ jsx(CircleUserRound, { size: 14 });
230
+ case "group":
231
+ return /* @__PURE__ */ jsx(Layers, { size: 14 });
232
+ default:
233
+ return /* @__PURE__ */ jsx(Box, { size: 14 });
234
+ }
235
+ }
236
+ function RowIcon({ row }) {
237
+ if (isSceneRootRow(row)) return /* @__PURE__ */ jsx(Folder, { size: 15 });
238
+ if (row.kind === "folder") return /* @__PURE__ */ jsx(Layers, { size: 15 });
239
+ if (row.typeKey === "directionalLight") return /* @__PURE__ */ jsx(Lightbulb, { size: 15 });
240
+ if (row.typeKey === "camera") return /* @__PURE__ */ jsx(Camera, { size: 15 });
241
+ if (row.name === "Player") return /* @__PURE__ */ jsx(CircleUserRound, { size: 15 });
242
+ return /* @__PURE__ */ jsx(Box, { size: 15 });
243
+ }
244
+ function HierarchyContextMenu({ state, close }) {
245
+ const overlayRoot = useOverlayRoot();
246
+ const [submenu, setSubmenu] = useState(null);
247
+ useEffect(() => {
248
+ const dismiss = () => close();
249
+ const escape = (event) => event.key === "Escape" && close();
250
+ window.addEventListener("pointerdown", dismiss);
251
+ window.addEventListener("keydown", escape);
252
+ return () => {
253
+ window.removeEventListener("pointerdown", dismiss);
254
+ window.removeEventListener("keydown", escape);
255
+ };
256
+ }, [close]);
257
+ const renderItems = (items, nested = false) => /* @__PURE__ */ jsx("div", { className: nested ? "hier-context-submenu" : "hier-context-menu", children: items.map((item, index) => {
258
+ if (item.kind === "separator") return /* @__PURE__ */ jsx("i", { className: "hier-context-separator" }, `sep-${index}`);
259
+ if (item.kind === "title") return /* @__PURE__ */ jsxs("div", { className: "hier-context-title", children: [
260
+ item.icon,
261
+ item.label
262
+ ] }, `title-${index}`);
263
+ return /* @__PURE__ */ jsxs("div", { className: "hier-context-item-wrap", onPointerEnter: () => item.children && setSubmenu(item.id), children: [
264
+ /* @__PURE__ */ jsxs(
265
+ "button",
266
+ {
267
+ type: "button",
268
+ role: "menuitem",
269
+ "data-operation": item.id,
270
+ "data-danger": item.danger || void 0,
271
+ "data-forge": item.forge || void 0,
272
+ disabled: item.disabled,
273
+ onClick: () => {
274
+ if (item.children) {
275
+ setSubmenu(submenu === item.id ? null : item.id);
276
+ return;
277
+ }
278
+ item.action?.();
279
+ close();
280
+ },
281
+ children: [
282
+ /* @__PURE__ */ jsx("span", { className: "hier-context-icon", children: item.icon }),
283
+ /* @__PURE__ */ jsx("span", { children: item.label }),
284
+ item.shortcut ? /* @__PURE__ */ jsx("kbd", { children: item.shortcut }) : null,
285
+ item.children ? /* @__PURE__ */ jsx(ChevronRight, { size: 12 }) : null
286
+ ]
287
+ }
288
+ ),
289
+ item.children && submenu === item.id ? renderItems(item.children, true) : null
290
+ ] }, item.id);
291
+ }) });
292
+ return createPortal(
293
+ /* @__PURE__ */ jsx(
294
+ "div",
295
+ {
296
+ className: "hier-context-position",
297
+ "data-action": SCENE_TREE_ACTIONS.showContextMenu,
298
+ role: "menu",
299
+ style: {
300
+ left: Math.max(8, Math.min(state.x, window.innerWidth - 260)),
301
+ top: Math.max(8, Math.min(state.y, window.innerHeight - 420))
302
+ },
303
+ onPointerDown: (event) => event.stopPropagation(),
304
+ onContextMenu: (event) => event.preventDefault(),
305
+ children: renderItems(state.items)
306
+ }
307
+ ),
308
+ overlayRoot ?? document.body
309
+ );
310
+ }
311
+ function highlighted(value, query) {
312
+ const index = value.toLowerCase().indexOf(query.toLowerCase());
313
+ if (!query || index < 0) return value;
314
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
315
+ value.slice(0, index),
316
+ /* @__PURE__ */ jsx("mark", { className: "hl", children: value.slice(index, index + query.length) }),
317
+ value.slice(index + query.length)
318
+ ] });
319
+ }
320
+ function SceneTreePanel(props) {
321
+ if (props.demo) return /* @__PURE__ */ jsx(SceneTreeDemoPanel, { client: props.client });
322
+ if (!props.client) {
323
+ return /* @__PURE__ */ jsx(
324
+ EmptyState,
325
+ {
326
+ title: "Scene hierarchy unavailable",
327
+ description: "Connect to the View workspace API to load the Engine scene tree."
328
+ }
329
+ );
330
+ }
331
+ return /* @__PURE__ */ jsx(SceneTreeLivePanel, { client: props.client });
332
+ }
333
+ function useEngineSceneRows(client, workspace, connected, reader) {
334
+ const [projection, setProjection] = useState(null);
335
+ const [pageCount, setPageCount] = useState(1);
336
+ const target = workspace?.preview?.target;
337
+ const projectId = workspace?.project?.id;
338
+ const key = `${target?.targetId}:${target?.generation}`;
339
+ const current = projection?.key === key ? projection : null;
340
+ const rows = current?.rows ?? [];
341
+ useEffect(() => {
342
+ setPageCount(1);
343
+ }, [target?.targetId, target?.generation]);
344
+ useEffect(() => {
345
+ if (!connected || !target?.targetId || !projectId) {
346
+ if (!connected) return;
347
+ setProjection(null);
348
+ return;
349
+ }
350
+ const observation = createWorkspaceObservation(reader, (current2) => current2?.project?.id === projectId && current2?.preview?.target?.targetId === target.targetId && current2?.preview?.target?.generation === target.generation);
351
+ const { signal } = observation;
352
+ let timer;
353
+ const refresh = async () => {
354
+ if (signal.aborted) return;
355
+ let retryDelay = 500;
356
+ try {
357
+ const binding = {
358
+ tabId: VIEW_WORKSPACE_TAB_ID,
359
+ projectId,
360
+ targetId: target.targetId,
361
+ targetGeneration: target.generation,
362
+ signal
363
+ };
364
+ const result = await client.getSceneTree({ ...binding, limit: 1e3 });
365
+ if (signal.aborted) return;
366
+ const nodes = [...result.nodes ?? []];
367
+ let nextOffset = result.nextOffset;
368
+ for (let page = 1; page < pageCount && nextOffset !== null && nextOffset !== void 0; page++) {
369
+ const next = await client.getSceneTree({ ...binding, offset: nextOffset, revision: result.revision, limit: 1e3 });
370
+ if (signal.aborted) return;
371
+ nodes.push(...next.nodes);
372
+ nextOffset = next.nextOffset;
373
+ }
374
+ if (signal.aborted) return;
375
+ setProjection((current2) => {
376
+ const next = { key, rows: normalizeSceneTreeRows({ ...result, nodes }), hasMore: nextOffset !== null && nextOffset !== void 0, failed: false };
377
+ if (current2?.key === next.key && current2.failed === next.failed && current2.hasMore === next.hasMore && jsonUnchanged(current2.rows, next.rows)) return current2;
378
+ return next;
379
+ });
380
+ } catch {
381
+ if (signal.aborted) return;
382
+ setProjection((current2) => {
383
+ if (current2?.key === key && current2.failed && !current2.hasMore && current2.rows.length === 0) return current2;
384
+ return { key, rows: [], hasMore: false, failed: true };
385
+ });
386
+ retryDelay = 1500;
387
+ }
388
+ if (!signal.aborted) {
389
+ timer = setTimeout(refresh, retryDelay);
390
+ }
391
+ };
392
+ void refresh();
393
+ return () => {
394
+ observation.dispose();
395
+ clearTimeout(timer);
396
+ };
397
+ }, [client, connected, projectId, target?.targetId, target?.generation, pageCount, key, reader, workspace]);
398
+ return { rows, filterOptions: sceneTreeComponentFilters(rows), failed: current?.failed ?? false, hasMore: current?.hasMore ?? false, loadMore: () => setPageCount((value) => value + 1) };
399
+ }
400
+ function SceneTreeLivePanel({ client }) {
401
+ const { t: t2 } = useTranslation();
402
+ const reader = useMemo(() => createWorkspaceStateReader(client), [client]);
403
+ const workspace = useSyncExternalStore2(
404
+ reader.subscribe,
405
+ () => reader.getSnapshot(),
406
+ () => reader.getSnapshot()
407
+ );
408
+ const connected = useWorkspaceClientConnected(client);
409
+ const { rows, filterOptions, failed, hasMore, loadMore } = useEngineSceneRows(client, workspace, connected, reader);
410
+ if (!workspace?.preview?.target?.targetId) {
411
+ return /* @__PURE__ */ jsx(
412
+ EmptyState,
413
+ {
414
+ title: t2("sceneTree.unavailable"),
415
+ description: "Open a scene preview from the Content Browser to load the Engine hierarchy."
416
+ }
417
+ );
418
+ }
419
+ if (failed) {
420
+ return /* @__PURE__ */ jsx(
421
+ EmptyState,
422
+ {
423
+ title: t2("sceneTree.unavailable"),
424
+ description: t2("sceneTree.loadErrorDescription")
425
+ }
426
+ );
427
+ }
428
+ if (rows.length === 0) return /* @__PURE__ */ jsx(EmptyState, { title: "Loading hierarchy", description: "Reading the selected Engine target." });
429
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
430
+ hasMore && /* @__PURE__ */ jsxs("button", { type: "button", onClick: loadMore, children: [
431
+ "Showing ",
432
+ Math.max(0, rows.length - 1),
433
+ " entities. Load more"
434
+ ] }),
435
+ /* @__PURE__ */ jsx(
436
+ SceneTreeDemoPanel,
437
+ {
438
+ client,
439
+ rows,
440
+ filterOptions
441
+ },
442
+ `${workspace.preview?.target?.targetId}:${workspace.preview?.target?.generation}`
443
+ )
444
+ ] });
445
+ }
446
+ function SceneTreeDemoPanel({
447
+ client,
448
+ rows: rowsOverride,
449
+ filterOptions: filterOptionsOverride = []
450
+ }) {
451
+ const { t: t2 } = useTranslation();
452
+ const reader = useMemo(() => createWorkspaceStateReader(client), [client]);
453
+ const workspace = useSyncExternalStore2(
454
+ reader.subscribe,
455
+ () => reader.getSnapshot(),
456
+ () => reader.getSnapshot()
457
+ );
458
+ const externalEntityId = workspace?.sceneSelection?.primary?.entityId ?? null;
459
+ const sceneIdentity = workspace?.preview?.asset?.guid ?? workspace?.preview?.target?.targetId ?? null;
460
+ const rows = rowsOverride ?? HIERARCHY_ROWS;
461
+ const rowLabel = useCallback2(
462
+ (row) => isSceneRootRow(row) ? t2("sceneTree.sceneRoot") : row.name,
463
+ [t2]
464
+ );
465
+ const typeLabelFor = useCallback2(
466
+ (row) => {
467
+ if (row.kind === "folder") return t2("sceneTree.types.folder");
468
+ if (row.typeKey) {
469
+ const key = `sceneTree.types.${row.typeKey}`;
470
+ const label = t2(key);
471
+ return label === key ? t2("sceneTree.types.entity") : label;
472
+ }
473
+ return "";
474
+ },
475
+ [t2]
476
+ );
477
+ const filterOptions = filterOptionsOverride;
478
+ const componentTypeLabel = useCallback2((id) => {
479
+ const key = `sceneTree.types.${id}`;
480
+ const label = t2(key);
481
+ return label === key ? id : label;
482
+ }, [t2]);
483
+ const resolvedFilterOptions = useMemo(
484
+ () => filterOptions.map((option) => ({
485
+ ...option,
486
+ label: option.label ?? componentTypeLabel(option.id)
487
+ })),
488
+ [componentTypeLabel, filterOptions]
489
+ );
490
+ const [query, setQuery] = useState("");
491
+ const [filters, setFilters] = useState(/* @__PURE__ */ new Set());
492
+ const [expanded, setExpanded] = useState(() => new Set(
493
+ rows.filter((row) => row.expanded || isSceneRootRow(row)).map((row) => row.id)
494
+ ));
495
+ const [columns, setColumns] = useState({ type: true, id: false });
496
+ const [headerMenu, setHeaderMenu] = useState(null);
497
+ const [headerMenuAnchor, setHeaderMenuAnchor] = useState(null);
498
+ const filterButtonRef = useRef(null);
499
+ const settingsButtonRef = useRef(null);
500
+ const [contextMenu, setContextMenu] = useState(null);
501
+ const [selected, setSelected] = useState(/* @__PURE__ */ new Set());
502
+ const [anchor, setAnchor] = useState(null);
503
+ useEffect(() => {
504
+ setExpanded((current) => {
505
+ if (current.has(HIERARCHY_SCENE_FOLDER_ID)) return current;
506
+ const next = new Set(current);
507
+ next.add(HIERARCHY_SCENE_FOLDER_ID);
508
+ return next;
509
+ });
510
+ }, [sceneIdentity]);
511
+ useEffect(() => {
512
+ if (externalEntityId && rows.some((row) => row.id === externalEntityId)) {
513
+ setSelected(/* @__PURE__ */ new Set([externalEntityId]));
514
+ setAnchor(externalEntityId);
515
+ }
516
+ }, [externalEntityId, rows]);
517
+ useEffect(() => {
518
+ const allowed = new Set(resolvedFilterOptions.map((option) => option.id));
519
+ setFilters((current) => {
520
+ if (current.size === 0) return current;
521
+ const next = new Set([...current].filter((id) => allowed.has(id)));
522
+ return next.size === current.size ? current : next;
523
+ });
524
+ }, [resolvedFilterOptions]);
525
+ const publishSceneSelection = (row) => {
526
+ if (row.kind !== "entity" || !client?.selectSceneEntity) return;
527
+ const target = workspace?.preview?.target;
528
+ if (!target?.targetId) return;
529
+ void client.selectSceneEntity(row.id, {
530
+ label: row.name,
531
+ tabId: VIEW_WORKSPACE_TAB_ID,
532
+ targetId: target.targetId,
533
+ targetGeneration: target.generation
534
+ }).catch(() => {
535
+ });
536
+ };
537
+ const visibleRows = useMemo(() => {
538
+ const text = query.trim().toLowerCase();
539
+ const filtering = text.length > 0 || filters.size > 0;
540
+ if (filtering) {
541
+ return rows.filter((row) => {
542
+ const names = rowComponentNames(row);
543
+ const typeText = typeLabelFor(row).toLowerCase();
544
+ const componentText = names.join(" ").toLowerCase();
545
+ const textMatch = !text || rowLabel(row).toLowerCase().includes(text) || typeText.includes(text) || componentText.includes(text);
546
+ const typeMatch = entityMatchesSceneTreeFilters(names, filters);
547
+ return !isSceneRootRow(row) && textMatch && typeMatch;
548
+ }).map((row) => ({ ...row, depth: 0 }));
549
+ }
550
+ const collapsedDepths = [];
551
+ return rows.filter((row) => {
552
+ while (collapsedDepths.length && collapsedDepths.at(-1) >= row.depth) collapsedDepths.pop();
553
+ const hiddenByParent = collapsedDepths.length > 0;
554
+ if (row.hasChildren && !expanded.has(row.id)) collapsedDepths.push(row.depth);
555
+ return !hiddenByParent;
556
+ });
557
+ }, [expanded, filters, query, rowLabel, rows, typeLabelFor]);
558
+ const selectRow = (row, event) => {
559
+ if (row.kind === "folder") {
560
+ setExpanded((current) => {
561
+ const next2 = new Set(current);
562
+ if (next2.has(row.id)) next2.delete(row.id);
563
+ else next2.add(row.id);
564
+ return next2;
565
+ });
566
+ return;
567
+ }
568
+ const ordered = visibleRows.filter((entry) => entry.kind === "entity").map((entry) => entry.id);
569
+ let next;
570
+ if (event.shiftKey && anchor) {
571
+ const from = ordered.indexOf(anchor);
572
+ const to = ordered.indexOf(row.id);
573
+ next = new Set(ordered.slice(Math.min(from, to), Math.max(from, to) + 1));
574
+ } else if (event.ctrlKey || event.metaKey) {
575
+ next = new Set(selected);
576
+ if (next.has(row.id)) next.delete(row.id);
577
+ else next.add(row.id);
578
+ setAnchor(row.id);
579
+ } else {
580
+ next = /* @__PURE__ */ new Set([row.id]);
581
+ setAnchor(row.id);
582
+ }
583
+ setSelected(next);
584
+ publishSceneSelection(row);
585
+ };
586
+ const showContext = (event, items) => {
587
+ event.preventDefault();
588
+ event.stopPropagation();
589
+ setHeaderMenu(null);
590
+ setContextMenu({ x: event.clientX, y: event.clientY, items });
591
+ };
592
+ const blankMenu = useCallback2(() => [
593
+ { kind: "title", label: t2("sceneTree.readOnlyTitle") },
594
+ { kind: "item", id: "clear-filter", label: t2("sceneTree.menu.clearSearchAndFilters"), icon: /* @__PURE__ */ jsx(X, { size: 14 }), disabled: !query && filters.size === 0, action: () => {
595
+ setQuery("");
596
+ setFilters(/* @__PURE__ */ new Set());
597
+ } },
598
+ { kind: "item", id: "focus", label: t2("sceneTree.menu.focusSelection"), icon: /* @__PURE__ */ jsx(Crosshair, { size: 14 }), shortcut: "F", disabled: selected.size === 0, action: () => {
599
+ } }
600
+ ], [filters.size, query, selected.size, t2]);
601
+ const rowMenu = useCallback2((row) => [
602
+ { kind: "title", label: rowLabel(row), icon: /* @__PURE__ */ jsx(RowIcon, { row }) },
603
+ { kind: "item", id: "copy-json", label: t2("sceneTree.menu.copyJson"), icon: /* @__PURE__ */ jsx(Braces, { size: 14 }), action: () => void navigator.clipboard?.writeText(JSON.stringify(row, null, 2)) },
604
+ { kind: "item", id: "focus", label: t2("sceneTree.menu.focusInViewport"), icon: /* @__PURE__ */ jsx(Crosshair, { size: 14 }), shortcut: "F", disabled: !workspace?.preview || isSceneRootRow(row), action: () => {
605
+ const target = workspace?.preview?.target;
606
+ if (target) void client?.call("entity.focus", { entityId: row.id, targetId: target.targetId, targetGeneration: target.generation });
607
+ } }
608
+ ], [rowLabel, t2, client, workspace?.preview]);
609
+ useEffect(() => {
610
+ if (!headerMenu) setHeaderMenuAnchor(null);
611
+ }, [headerMenu]);
612
+ const openHeaderMenu = (kind) => {
613
+ if (headerMenu === kind) {
614
+ setHeaderMenu(null);
615
+ return;
616
+ }
617
+ const ref = kind === "filter" ? filterButtonRef : settingsButtonRef;
618
+ const rect = ref.current?.getBoundingClientRect();
619
+ if (rect) setHeaderMenuAnchor(rect);
620
+ setHeaderMenu(kind);
621
+ };
622
+ const toggleTypeFilter = (filterId) => {
623
+ setFilters((current) => {
624
+ const next = new Set(current);
625
+ if (next.has(filterId)) next.delete(filterId);
626
+ else next.add(filterId);
627
+ return next;
628
+ });
629
+ };
630
+ return /* @__PURE__ */ jsxs(
631
+ "div",
632
+ {
633
+ className: "panel outliner-panel",
634
+ "data-testid": "panel-hierarchy",
635
+ "data-view-readonly": "true",
636
+ role: "tree",
637
+ tabIndex: 0,
638
+ onKeyDown: (event) => {
639
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "a") {
640
+ event.preventDefault();
641
+ setSelected(new Set(rows.filter((row) => row.kind === "entity").map((row) => row.id)));
642
+ }
643
+ },
644
+ children: [
645
+ /* @__PURE__ */ jsx(
646
+ PanelHeader,
647
+ {
648
+ className: "fx-hier-toolbar",
649
+ "data-testid": "hier-toolbar",
650
+ start: /* @__PURE__ */ jsx(Toolbar, { children: /* @__PURE__ */ jsx(
651
+ IconButton,
652
+ {
653
+ ref: filterButtonRef,
654
+ className: filters.size ? "active" : void 0,
655
+ label: t2("sceneTree.filterByType"),
656
+ icon: /* @__PURE__ */ jsx(Filter, { size: 14 }),
657
+ size: "compact",
658
+ onClick: () => openHeaderMenu("filter")
659
+ }
660
+ ) }),
661
+ center: /* @__PURE__ */ jsx(
662
+ SearchField,
663
+ {
664
+ className: "fx-hier-search",
665
+ "data-testid": "hier-search",
666
+ "data-action": SCENE_TREE_ACTIONS.search,
667
+ value: query,
668
+ onChange: (event) => setQuery(event.target.value),
669
+ onClear: () => setQuery(""),
670
+ placeholder: t2("sceneTree.searchPlaceholder"),
671
+ label: t2("sceneTree.searchLabel")
672
+ }
673
+ ),
674
+ end: /* @__PURE__ */ jsx(Toolbar, { children: /* @__PURE__ */ jsx(
675
+ IconButton,
676
+ {
677
+ ref: settingsButtonRef,
678
+ label: t2("sceneTree.displaySettings"),
679
+ icon: /* @__PURE__ */ jsx(Settings, { size: 14 }),
680
+ size: "compact",
681
+ onClick: () => openHeaderMenu("settings")
682
+ }
683
+ ) })
684
+ }
685
+ ),
686
+ /* @__PURE__ */ jsxs("div", { className: "ol-colhead", "data-testid": "hier-colhead", children: [
687
+ /* @__PURE__ */ jsx("span", { className: "ch-caret", "aria-hidden": true }),
688
+ /* @__PURE__ */ jsx("span", { className: "ch-name sortable", children: t2("sceneTree.columnName") }),
689
+ columns.type ? /* @__PURE__ */ jsx("span", { className: "ch-type sortable col-type", children: t2("sceneTree.columnType") }) : null,
690
+ columns.id ? /* @__PURE__ */ jsx("span", { className: "ch-id sortable col-id", children: t2("sceneTree.columnId") }) : null
691
+ ] }),
692
+ /* @__PURE__ */ jsx(
693
+ "div",
694
+ {
695
+ className: "ol-body",
696
+ "data-testid": "hier-root-dropzone",
697
+ onClick: (event) => {
698
+ if (event.target === event.currentTarget) setSelected(/* @__PURE__ */ new Set());
699
+ },
700
+ onContextMenu: (event) => {
701
+ if (!event.target.closest(".tn")) showContext(event, blankMenu());
702
+ },
703
+ children: visibleRows.length === 0 ? /* @__PURE__ */ jsx(
704
+ EmptyState,
705
+ {
706
+ className: "hier-no-match",
707
+ title: t2("sceneTree.noMatchTitle"),
708
+ description: t2("sceneTree.noMatchDescription")
709
+ }
710
+ ) : visibleRows.map((row) => {
711
+ const isSelected = selected.has(row.id);
712
+ const isHidden = row.hidden === true;
713
+ const isExpanded = expanded.has(row.id);
714
+ return /* @__PURE__ */ jsxs(
715
+ "div",
716
+ {
717
+ className: `tn k-${rowType(row)}${isSelected ? " sel" : ""}${isHidden ? " dim" : ""}`,
718
+ "data-testid": isSceneRootRow(row) ? "hier-row-scene-folder" : `hier-row-${row.id}`,
719
+ "data-action": SCENE_TREE_ACTIONS.select,
720
+ style: { paddingLeft: `calc(var(--fx-ref-space-8) + ${row.depth} * var(--hier-indent-step, calc(var(--fx-ref-space-12) + var(--fx-ref-space-2))))` },
721
+ role: "treeitem",
722
+ "aria-selected": isSelected,
723
+ tabIndex: isSelected ? 0 : -1,
724
+ onClick: (event) => selectRow(row, event),
725
+ onContextMenu: (event) => {
726
+ if (!selected.has(row.id)) {
727
+ setSelected(/* @__PURE__ */ new Set([row.id]));
728
+ if (row.kind === "entity") publishSceneSelection(row);
729
+ }
730
+ showContext(event, isSceneRootRow(row) ? blankMenu() : rowMenu(row));
731
+ },
732
+ children: [
733
+ /* @__PURE__ */ jsx(
734
+ "button",
735
+ {
736
+ type: "button",
737
+ className: "caret",
738
+ "data-action": SCENE_TREE_ACTIONS.toggleExpanded,
739
+ disabled: !row.hasChildren,
740
+ tabIndex: -1,
741
+ onClick: (event) => {
742
+ event.stopPropagation();
743
+ if (!row.hasChildren) return;
744
+ setExpanded((current) => {
745
+ const next = new Set(current);
746
+ if (next.has(row.id)) next.delete(row.id);
747
+ else next.add(row.id);
748
+ return next;
749
+ });
750
+ },
751
+ children: row.hasChildren ? isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 12 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 12 }) : null
752
+ }
753
+ ),
754
+ /* @__PURE__ */ jsx("span", { className: "ico", children: /* @__PURE__ */ jsx(RowIcon, { row }) }),
755
+ /* @__PURE__ */ jsx("span", { className: "name-cell", children: /* @__PURE__ */ jsx("span", { className: "nm", children: highlighted(rowLabel(row), query) }) }),
756
+ columns.type ? /* @__PURE__ */ jsx("span", { className: "cell type col-type", children: /* @__PURE__ */ jsx("span", { className: "kind", children: typeLabelFor(row) }) }) : null,
757
+ columns.id ? /* @__PURE__ */ jsx("span", { className: "cell id col-id", children: isSceneRootRow(row) ? "" : `#${row.id}` }) : null
758
+ ]
759
+ },
760
+ row.id
761
+ );
762
+ })
763
+ }
764
+ ),
765
+ /* @__PURE__ */ jsx(
766
+ FloatingMenu,
767
+ {
768
+ open: Boolean(headerMenuAnchor && headerMenu === "filter"),
769
+ anchorRect: headerMenuAnchor,
770
+ onClose: () => setHeaderMenu(null),
771
+ ignorePointerWithin: [filterButtonRef],
772
+ className: "hier-filter-menu",
773
+ containerProps: { onPointerDown: (event) => event.stopPropagation() },
774
+ children: /* @__PURE__ */ jsxs("div", { className: "hier-filter-menu-body", children: [
775
+ /* @__PURE__ */ jsx("div", { className: "hier-filter-section", children: t2("sceneTree.filterByType") }),
776
+ resolvedFilterOptions.map((filter) => {
777
+ const active = filters.has(filter.id);
778
+ return /* @__PURE__ */ jsxs(
779
+ "button",
780
+ {
781
+ type: "button",
782
+ className: "hier-filter-option",
783
+ "data-active": active ? "true" : "false",
784
+ onClick: () => toggleTypeFilter(filter.id),
785
+ children: [
786
+ /* @__PURE__ */ jsx(
787
+ Checkbox,
788
+ {
789
+ checked: active,
790
+ onChange: () => toggleTypeFilter(filter.id),
791
+ tabIndex: -1,
792
+ hideLabel: true,
793
+ label: filter.label,
794
+ className: "hier-filter-check"
795
+ }
796
+ ),
797
+ /* @__PURE__ */ jsx("span", { className: "hier-filter-option-icon", "aria-hidden": true, children: filterOptionIcon(filter.id) }),
798
+ filter.label
799
+ ]
800
+ },
801
+ filter.id
802
+ );
803
+ }),
804
+ /* @__PURE__ */ jsx("div", { className: "hier-filter-separator" }),
805
+ /* @__PURE__ */ jsx(
806
+ "button",
807
+ {
808
+ type: "button",
809
+ className: "hier-filter-option hier-filter-clear",
810
+ disabled: filters.size === 0,
811
+ onClick: () => setFilters(/* @__PURE__ */ new Set()),
812
+ children: t2("sceneTree.clearFilters")
813
+ }
814
+ )
815
+ ] })
816
+ }
817
+ ),
818
+ /* @__PURE__ */ jsx(
819
+ FloatingMenu,
820
+ {
821
+ open: Boolean(headerMenuAnchor && headerMenu === "settings"),
822
+ anchorRect: headerMenuAnchor,
823
+ onClose: () => setHeaderMenu(null),
824
+ ignorePointerWithin: [settingsButtonRef],
825
+ className: "hier-filter-menu",
826
+ containerProps: { onPointerDown: (event) => event.stopPropagation() },
827
+ children: /* @__PURE__ */ jsxs("div", { className: "hier-filter-menu-body hierarchy-header-menu-settings", children: [
828
+ /* @__PURE__ */ jsx("div", { className: "hier-filter-section", children: t2("sceneTree.columns") }),
829
+ ["type", "id"].map((column) => {
830
+ const label = column === "type" ? t2("sceneTree.columnType") : t2("sceneTree.columnId");
831
+ const checked = columns[column];
832
+ const toggle = () => setColumns((current) => ({ ...current, [column]: !current[column] }));
833
+ return /* @__PURE__ */ jsxs(
834
+ "button",
835
+ {
836
+ type: "button",
837
+ className: "hier-filter-option",
838
+ "data-action": SCENE_TREE_ACTIONS.toggleColumn,
839
+ "data-active": checked ? "true" : "false",
840
+ onClick: toggle,
841
+ children: [
842
+ /* @__PURE__ */ jsx(
843
+ Checkbox,
844
+ {
845
+ checked,
846
+ onChange: toggle,
847
+ tabIndex: -1,
848
+ hideLabel: true,
849
+ label,
850
+ className: "hier-filter-check"
851
+ }
852
+ ),
853
+ label
854
+ ]
855
+ },
856
+ column
857
+ );
858
+ }),
859
+ /* @__PURE__ */ jsx("div", { className: "hier-filter-separator" }),
860
+ /* @__PURE__ */ jsxs(
861
+ "button",
862
+ {
863
+ type: "button",
864
+ className: "hier-filter-option hier-filter-action",
865
+ "data-action": SCENE_TREE_ACTIONS.expandAll,
866
+ onClick: () => setExpanded(new Set(rows.filter((row) => row.hasChildren).map((row) => row.id))),
867
+ children: [
868
+ /* @__PURE__ */ jsx(Maximize2, { size: 14, className: "hier-filter-option-icon" }),
869
+ t2("sceneTree.expandAll")
870
+ ]
871
+ }
872
+ ),
873
+ /* @__PURE__ */ jsxs(
874
+ "button",
875
+ {
876
+ type: "button",
877
+ className: "hier-filter-option hier-filter-action",
878
+ "data-action": SCENE_TREE_ACTIONS.collapseAll,
879
+ onClick: () => setExpanded(new Set(rows.filter(isSceneRootRow).map((row) => row.id))),
880
+ children: [
881
+ /* @__PURE__ */ jsx(Minimize2, { size: 14, className: "hier-filter-option-icon" }),
882
+ t2("sceneTree.collapseAll")
883
+ ]
884
+ }
885
+ )
886
+ ] })
887
+ }
888
+ ),
889
+ contextMenu ? /* @__PURE__ */ jsx(HierarchyContextMenu, { state: contextMenu, close: () => setContextMenu(null) }) : null
890
+ ]
891
+ }
892
+ );
893
+ }
894
+
895
+ // packages/view-plugin-scene-tree/src/ui/scene-tree.css
896
+ var css = '/* packages/view-plugin-scene-tree/src/ui/scene-tree.css */\n.outliner-panel {\n --hier-w-caret: calc(var(--fx-ref-space-12) + var(--fx-ref-space-2));\n --hier-w-type: calc(var(--fx-ref-space-48) + var(--fx-ref-space-16) + var(--fx-ref-space-4));\n --hier-w-id: calc(var(--fx-ref-space-48) + var(--fx-ref-space-24));\n --hier-indent-step: calc(var(--fx-ref-space-12) + var(--fx-ref-space-2));\n display: flex;\n flex-direction: column;\n container-type: inline-size;\n width: 100%;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n position: relative;\n background: var(--fx-color-surface-sidebar);\n color: var(--fx-color-text-primary);\n font: var(--fx-type-compact-font-weight) var(--fx-type-compact-font-size) / var(--fx-type-compact-line-height) var(--fx-type-compact-font-family);\n}\n.outliner-panel * {\n box-sizing: border-box;\n}\n.outliner-panel button,\n.outliner-panel input {\n font: inherit;\n}\n.fx-hier-toolbar {\n flex: 0 0 auto;\n gap: var(--fx-ref-space-6);\n padding: var(--fx-ref-space-6) var(--fx-ref-space-8);\n background: var(--fx-color-surface-sidebar);\n}\n.fx-hier-toolbar > .fx-panel-header__slot:nth-child(2) {\n flex: 1;\n}\n.fx-hier-search {\n flex: 1;\n width: 100%;\n min-width: 0;\n}\n.fx-hier-search .fx-input {\n height: var(--fx-component-control-height-compact);\n}\n.outliner-panel .fx-button--icon.active {\n border-color: var(--fx-color-brand-accent);\n background: var(--fx-color-brand-soft);\n color: var(--fx-color-brand-text);\n}\n.hier-filter-menu-body {\n min-width: 220px;\n padding: var(--fx-ref-space-4);\n border: var(--fx-border-width) solid var(--fx-color-border-default);\n border-radius: var(--fx-radius-popover);\n background: var(--fx-color-surface-raised);\n box-shadow: var(--fx-shadow-floating);\n}\n.hier-filter-section {\n padding: var(--fx-ref-space-6) var(--fx-ref-space-8) var(--fx-ref-space-4);\n color: var(--fx-color-text-muted);\n font-size: var(--fx-type-caption-font-size);\n font-weight: var(--fx-ref-font-weight-600);\n letter-spacing: var(--fx-type-caption-letter-spacing);\n text-transform: uppercase;\n}\n.hier-filter-separator {\n height: var(--fx-border-width);\n margin: var(--fx-ref-space-4) 0;\n background: var(--fx-color-border-subtle);\n}\n.hier-filter-option {\n display: flex;\n align-items: center;\n gap: var(--fx-ref-space-8);\n width: 100%;\n min-height: var(--fx-component-editor-row-height);\n padding: var(--fx-ref-space-4) var(--fx-ref-space-8);\n border: 0;\n border-radius: var(--fx-radius-control);\n background: transparent;\n color: var(--fx-color-text-secondary);\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.hier-filter-option:hover:not(:disabled) {\n background: var(--fx-color-surface-hover);\n color: var(--fx-color-text-primary);\n}\n.hier-filter-option:disabled {\n color: var(--fx-color-text-disabled);\n cursor: default;\n}\n.hier-filter-option-icon {\n display: grid;\n flex: 0 0 14px;\n place-items: center;\n width: 14px;\n color: var(--fx-color-text-muted);\n}\n.hier-filter-check {\n flex: 0 0 var(--fx-component-choice-size);\n pointer-events: none;\n}\n.hier-filter-check.fx-choice {\n align-items: center;\n gap: 0;\n min-height: 0;\n margin: 0;\n}\n.hier-filter-check .fx-choice__text {\n display: none;\n}\n.hier-filter-clear {\n justify-content: flex-start;\n color: var(--fx-color-text-muted);\n}\n.ol-colhead {\n display: flex;\n align-items: center;\n min-height: var(--fx-component-editor-row-height);\n padding: var(--fx-ref-space-4) var(--fx-ref-space-8);\n border-bottom: var(--fx-border-width) solid var(--fx-color-border-subtle);\n color: var(--fx-color-text-muted);\n font: var(--fx-type-caption-font-weight) var(--fx-type-caption-font-size) / var(--fx-type-caption-line-height) var(--fx-type-code-font-family);\n letter-spacing: var(--fx-type-caption-letter-spacing);\n text-transform: uppercase;\n}\n.ch-caret {\n width: var(--hier-w-caret);\n flex: 0 0 auto;\n}\n.ch-name {\n flex: 1;\n min-width: var(--fx-ref-space-16);\n}\n.ch-type {\n width: var(--hier-w-type);\n flex: 0 0 auto;\n}\n.ch-id {\n width: var(--hier-w-id);\n flex: 0 0 auto;\n}\n.ol-body {\n flex: 1;\n min-height: 0;\n overflow: auto;\n padding: var(--fx-ref-space-4) 0 var(--fx-ref-space-8);\n}\n.tn {\n display: flex;\n align-items: center;\n min-height: var(--fx-component-editor-row-height);\n padding-right: var(--fx-ref-space-8);\n border: 0;\n border-left: var(--fx-border-focus-width) solid transparent;\n color: var(--fx-color-text-secondary);\n white-space: nowrap;\n cursor: default;\n user-select: none;\n}\n.tn:hover {\n background: var(--fx-color-surface-hover);\n color: var(--fx-color-text-primary);\n}\n.tn.sel {\n border-left-color: var(--fx-color-selection-indicator);\n background: var(--fx-color-selection-bg);\n color: var(--fx-color-selection-fg);\n}\n.tn.dim {\n opacity: 0.45;\n}\n.tn .caret {\n display: grid;\n place-items: center;\n width: var(--hier-w-caret);\n height: var(--fx-ref-space-16);\n flex: 0 0 auto;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--fx-color-text-muted);\n}\n.tn .caret:disabled {\n opacity: 0;\n pointer-events: none;\n}\n.tn .ico {\n display: grid;\n place-items: center;\n width: calc(var(--fx-ref-space-16) + var(--fx-ref-space-2));\n flex: 0 0 auto;\n color: var(--fx-color-text-muted);\n}\n.tn .name-cell {\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 0;\n gap: var(--fx-ref-space-4);\n overflow: hidden;\n}\n.tn .nm {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.tn.k-folder .nm,\n.tn.k-grp .nm {\n color: var(--fx-color-text-muted);\n}\n.tn .cell {\n overflow: hidden;\n color: var(--fx-color-text-muted);\n font: var(--fx-type-caption-font-weight) var(--fx-type-caption-font-size) / var(--fx-type-caption-line-height) var(--fx-type-code-font-family);\n text-overflow: ellipsis;\n}\n.tn .cell.type {\n width: var(--hier-w-type);\n}\n.tn .cell.id {\n width: var(--hier-w-id);\n}\n.tn .kind {\n color: var(--fx-color-text-secondary);\n}\n.tn.k-light .ico {\n color: var(--fx-color-status-warning-fg);\n}\n.tn.k-camera .ico {\n color: var(--fx-color-status-info-fg);\n}\n.tn.k-character .ico {\n color: var(--fx-color-brand-text);\n}\n.tn.k-scene .ico,\n.tn.k-group .ico,\n.tn.k-folder .ico {\n color: var(--fx-color-text-muted);\n}\n.tn.pdim {\n opacity: 0.68;\n}\n.tn.drop-inside {\n background: var(--fx-color-brand-soft);\n outline: var(--fx-border-width) solid var(--fx-color-brand-accent);\n outline-offset: calc(-1 * var(--fx-border-width));\n}\n.tn.drop-before::before,\n.tn.drop-after::after {\n content: "";\n position: absolute;\n z-index: var(--fx-layer-sticky);\n right: var(--fx-ref-space-4);\n left: var(--fx-ref-space-4);\n height: var(--fx-ref-space-2);\n background: var(--fx-color-brand-accent);\n box-shadow: var(--fx-shadow-subtle);\n}\n.tn {\n position: relative;\n}\n.tn.drop-before::before {\n top: calc(-1 * var(--fx-border-width));\n}\n.tn.drop-after::after {\n bottom: calc(-1 * var(--fx-border-width));\n}\n.hier-inline-rename {\n width: 100%;\n min-width: 0;\n height: var(--fx-component-control-height-compact);\n padding: var(--fx-ref-space-2) var(--fx-ref-space-4);\n border: var(--fx-border-width) solid var(--fx-color-border-focus);\n border-radius: var(--fx-ref-radius-4);\n outline: 0;\n background: var(--fx-color-surface-inset);\n color: var(--fx-color-text-primary);\n}\n.hier-no-match {\n padding: var(--fx-ref-space-8) var(--fx-ref-space-12);\n}\n.outliner-panel .hl {\n border-radius: var(--fx-ref-radius-4);\n background: var(--fx-color-brand-soft);\n color: var(--fx-color-text-primary);\n}\n.outliner-panel .muted {\n color: var(--fx-color-text-muted);\n}\n@container (max-width: 195px) {\n .outliner-panel .col-type {\n display: none;\n }\n}\n@container (max-width: 280px) {\n .outliner-panel .col-id {\n display: none;\n }\n}\n.hier-context-position {\n position: fixed;\n z-index: var(--fx-layer-tooltip);\n color: var(--fx-color-text-secondary);\n font: var(--fx-type-ui-font-weight) var(--fx-type-ui-font-size) / var(--fx-type-ui-line-height) var(--fx-type-ui-font-family);\n}\n.hier-context-menu,\n.hier-context-submenu {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: var(--fx-component-menu-min-width);\n max-height: calc(100vh - var(--fx-ref-space-16));\n padding: var(--fx-ref-space-6);\n overflow: visible;\n border: var(--fx-border-width) solid var(--fx-color-border-default);\n border-radius: var(--fx-radius-popover);\n background: var(--fx-color-surface-raised);\n box-shadow: var(--fx-shadow-floating);\n}\n.hier-context-submenu {\n position: absolute;\n top: calc(-1 * var(--fx-ref-space-6));\n left: calc(100% - var(--fx-ref-space-2));\n min-width: var(--fx-component-panel-config-min-width);\n}\n.hier-context-title {\n display: flex;\n align-items: center;\n gap: var(--fx-ref-space-6);\n padding: var(--fx-ref-space-6) var(--fx-ref-space-8);\n color: var(--fx-color-text-muted);\n font: var(--fx-type-caption-font-weight) var(--fx-type-caption-font-size) / var(--fx-type-caption-line-height) var(--fx-type-code-font-family);\n}\n.hier-context-item-wrap {\n position: relative;\n}\n.hier-context-item-wrap > button {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--fx-ref-space-8);\n width: 100%;\n min-height: var(--fx-component-menu-row-height);\n padding: var(--fx-ref-space-6) var(--fx-ref-space-8);\n border: 0;\n border-radius: var(--fx-radius-control);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.hier-context-item-wrap > button:hover:not(:disabled) {\n background: var(--fx-color-surface-hover);\n color: var(--fx-color-text-primary);\n}\n.hier-context-item-wrap > button:disabled {\n opacity: 0.38;\n cursor: default;\n}\n.hier-context-item-wrap > button[data-danger=true] {\n color: var(--fx-color-status-error-fg);\n}\n.hier-context-item-wrap > button[data-forge=true] .hier-context-icon {\n color: var(--fx-color-brand-text);\n}\n.hier-context-icon {\n display: grid;\n place-items: center;\n width: var(--fx-component-control-icon-size);\n flex: 0 0 var(--fx-component-control-icon-size);\n color: var(--fx-color-text-muted);\n}\n.hier-context-item-wrap > button > span:nth-child(2) {\n flex: 1;\n}\n.hier-context-item-wrap kbd {\n color: var(--fx-color-text-muted);\n font: var(--fx-type-caption-font-weight) var(--fx-type-caption-font-size) / var(--fx-type-caption-line-height) var(--fx-type-code-font-family);\n}\n.hier-context-separator {\n display: block;\n height: var(--fx-border-width);\n margin: var(--fx-ref-space-6);\n background: var(--fx-color-border-subtle);\n}\n';
897
+ if (typeof document !== "undefined" && !document.querySelector('style[data-forgeax-css="L2RhdGEvaG9tZS9nYWhvdWxpYW8vYWN0aW9ucy1ydW5uZXIvX3dvcmsvZm9yZ2VheC12aWV3L2ZvcmdlYXgtdmlldy9wYWNrYWdlcy92aWV3LXBsdWdpbi1zY2VuZS10cmVlL3NyYy91aS9zY2VuZS10cmVlLmNzcw"]')) {
898
+ const style = document.createElement("style");
899
+ style.dataset.forgeaxCss = "L2RhdGEvaG9tZS9nYWhvdWxpYW8vYWN0aW9ucy1ydW5uZXIvX3dvcmsvZm9yZ2VheC12aWV3L2ZvcmdlYXgtdmlldy9wYWNrYWdlcy92aWV3LXBsdWdpbi1zY2VuZS10cmVlL3NyYy91aS9zY2VuZS10cmVlLmNzcw";
900
+ style.textContent = css;
901
+ document.head.append(style);
902
+ }
903
+
904
+ // packages/view-plugin-scene-tree/src/ui/mount.tsx
905
+ import { jsx as jsx2 } from "react/jsx-runtime";
906
+ async function mountSceneTreePanel(props) {
907
+ if (!props.mountElement) throw new TypeError("mountSceneTreePanel requires mountElement");
908
+ const root = createRoot(props.mountElement);
909
+ root.render(
910
+ /* @__PURE__ */ jsx2(OverlayRootProvider, { root: props.overlayRoot ?? props.mountElement, children: /* @__PURE__ */ jsx2(SceneTreePanel, { client: props.client, demo: props.demo }) })
911
+ );
912
+ return async () => root.unmount();
913
+ }
914
+
915
+ export {
916
+ mountSceneTreePanel
917
+ };
918
+ //# sourceMappingURL=chunk-WOMHSTVZ.mjs.map