@cimplify/sdk 0.108.0 → 0.110.2

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 (608) hide show
  1. package/LICENSE +21 -0
  2. package/dist/advanced.d.mts +4 -3
  3. package/dist/advanced.d.ts +4 -3
  4. package/dist/advanced.js +24 -24
  5. package/dist/advanced.mjs +5 -5
  6. package/dist/animation-4EXBXRVX.js +27 -0
  7. package/dist/animation-6DICNWUP.mjs +6 -0
  8. package/dist/audio-DhvyjqdA.d.mts +249 -0
  9. package/dist/audio-m0w8cnxq.d.ts +249 -0
  10. package/dist/avatars.d.mts +110 -0
  11. package/dist/avatars.d.ts +110 -0
  12. package/dist/avatars.js +82 -0
  13. package/dist/avatars.mjs +5 -0
  14. package/dist/backend-gUCzs5Kg.d.mts +3866 -0
  15. package/dist/backend-gUCzs5Kg.d.ts +3866 -0
  16. package/dist/{catalogue-B4eLL8Mi.d.ts → catalogue-CPTMyBUz.d.mts} +109 -221
  17. package/dist/catalogue-DzrTXP3v.d.mts +541 -0
  18. package/dist/catalogue-DzrTXP3v.d.ts +541 -0
  19. package/dist/{catalogue-OT89_Ifs.d.mts → catalogue-OTuS5zp-.d.ts} +109 -221
  20. package/dist/chunk-22BD3RHN.mjs +1809 -0
  21. package/dist/chunk-25T4JHEA.mjs +21 -0
  22. package/dist/chunk-2AQ237Y4.js +508 -0
  23. package/dist/chunk-2IC4H6OV.mjs +48 -0
  24. package/dist/chunk-2LHLG4OB.mjs +71 -0
  25. package/dist/chunk-2O2CG465.js +1709 -0
  26. package/dist/chunk-2Q4DTHXK.js +316 -0
  27. package/dist/chunk-2QTQ6BUH.mjs +46 -0
  28. package/dist/chunk-2UN4SFLR.mjs +100 -0
  29. package/dist/chunk-2V75I7K3.js +454 -0
  30. package/dist/chunk-2V7IL4HC.js +10 -0
  31. package/dist/chunk-34XBXUMW.js +296 -0
  32. package/dist/chunk-3C4C654I.js +71 -0
  33. package/dist/chunk-3DAD2LDF.mjs +72 -0
  34. package/dist/chunk-3GXH2NFD.mjs +4 -0
  35. package/dist/chunk-3O47ZFW3.js +961 -0
  36. package/dist/chunk-3OY3VYNF.mjs +11 -0
  37. package/dist/chunk-3S6WPBZL.js +2936 -0
  38. package/dist/chunk-3TUOUP5T.js +399 -0
  39. package/dist/chunk-3VEH23I5.mjs +1380 -0
  40. package/dist/chunk-3ZYSAW2T.mjs +263 -0
  41. package/dist/chunk-4ANVF274.js +103 -0
  42. package/dist/chunk-4C7I3ELN.js +388 -0
  43. package/dist/chunk-4DYKAYFO.mjs +8 -0
  44. package/dist/chunk-4ZDR72SG.js +329 -0
  45. package/dist/chunk-52YS45RR.js +1066 -0
  46. package/dist/chunk-5325XSCH.js +107 -0
  47. package/dist/chunk-5AD5X6AV.js +13 -0
  48. package/dist/chunk-5BYDGGWO.mjs +197 -0
  49. package/dist/chunk-5C3C7VDM.mjs +55 -0
  50. package/dist/chunk-5HFMY3D7.js +660 -0
  51. package/dist/chunk-5LH2QN3T.js +1862 -0
  52. package/dist/chunk-5PJEXSOW.js +44 -0
  53. package/dist/chunk-5SXDH3Y7.js +90 -0
  54. package/dist/chunk-5YFBGGCK.mjs +502 -0
  55. package/dist/chunk-5YWN6H5Q.mjs +133 -0
  56. package/dist/chunk-66QP3SMN.js +402 -0
  57. package/dist/chunk-6DAEZKIG.mjs +385 -0
  58. package/dist/chunk-6DATW7TB.mjs +420 -0
  59. package/dist/{chunk-JRGK3NXR.mjs → chunk-6ETDAU62.mjs} +72 -212
  60. package/dist/chunk-6H254EVP.mjs +178 -0
  61. package/dist/chunk-6PFNJPBJ.mjs +820 -0
  62. package/dist/chunk-6PJWXIFX.mjs +357 -0
  63. package/dist/chunk-6SWKWCMS.js +80 -0
  64. package/dist/chunk-6VVXXX7S.js +808 -0
  65. package/dist/chunk-6WUBSMTX.js +1403 -0
  66. package/dist/chunk-73SGZLAQ.mjs +35 -0
  67. package/dist/chunk-76L2V6KD.mjs +4 -0
  68. package/dist/chunk-7AAIAVAA.js +1531 -0
  69. package/dist/chunk-7ARSJPV3.mjs +93 -0
  70. package/dist/chunk-7BHW5GTC.mjs +1234 -0
  71. package/dist/chunk-7DQSDKDU.js +6 -0
  72. package/dist/chunk-7IQQQENP.mjs +401 -0
  73. package/dist/chunk-7KFTYENS.js +11357 -0
  74. package/dist/chunk-7SM6XSPZ.js +3171 -0
  75. package/dist/chunk-7SXOHAIR.mjs +28 -0
  76. package/dist/chunk-A2MAX6S4.js +90 -0
  77. package/dist/chunk-A33OORT7.mjs +1530 -0
  78. package/dist/{chunk-U6ACF76H.mjs → chunk-A36JRXXH.mjs} +1075 -1845
  79. package/dist/chunk-A7BU3BK4.js +52 -0
  80. package/dist/chunk-A7MQSN2V.mjs +77 -0
  81. package/dist/chunk-A7V4L2IT.mjs +416 -0
  82. package/dist/chunk-AABEK6XU.js +226 -0
  83. package/dist/chunk-AGV33FWC.mjs +5005 -0
  84. package/dist/chunk-AHNR3BXI.js +108 -0
  85. package/dist/chunk-AQ5RLBU2.mjs +286 -0
  86. package/dist/chunk-AQOE6WCG.js +1270 -0
  87. package/dist/chunk-ATAWRACV.mjs +62 -0
  88. package/dist/chunk-ATCURNUV.js +14 -0
  89. package/dist/chunk-AWPV33OO.js +6 -0
  90. package/dist/chunk-AYJPHKYV.js +337 -0
  91. package/dist/chunk-AZ5BGWHB.js +162 -0
  92. package/dist/chunk-AZAXD44P.js +1373 -0
  93. package/dist/chunk-BBGKQIJJ.mjs +406 -0
  94. package/dist/chunk-BP4JLSUA.js +1453 -0
  95. package/dist/{chunk-SUCE7FWA.mjs → chunk-BTUSVHIE.mjs} +539 -978
  96. package/dist/chunk-BU6OK542.mjs +818 -0
  97. package/dist/chunk-CVSRWM6W.js +418 -0
  98. package/dist/chunk-CYBMFMJD.mjs +247 -0
  99. package/dist/chunk-DDJLDOUX.mjs +217 -0
  100. package/dist/{chunk-V32BCG7M.js → chunk-DFZWHNRG.js} +75 -215
  101. package/dist/chunk-DJ2C7AVG.js +644 -0
  102. package/dist/chunk-DS2VU4WW.mjs +102 -0
  103. package/dist/chunk-DSAG7T5P.js +7290 -0
  104. package/dist/chunk-E2QPPH7I.js +327 -0
  105. package/dist/chunk-E65WCTIG.mjs +1187 -0
  106. package/dist/{chunk-33VCYWVL.mjs → chunk-E6QQKDNE.mjs} +30 -42
  107. package/dist/chunk-ECDK6QBF.mjs +981 -0
  108. package/dist/chunk-EIB4OWVQ.mjs +620 -0
  109. package/dist/chunk-EQUZYCGO.js +250 -0
  110. package/dist/chunk-F3UJ6ZRM.mjs +313 -0
  111. package/dist/chunk-F63N2ZTQ.js +7023 -0
  112. package/dist/chunk-F6XRYEM3.mjs +26 -0
  113. package/dist/chunk-FE6VCE4K.js +5030 -0
  114. package/dist/chunk-FLWD6GRR.js +1372 -0
  115. package/dist/chunk-FQBFWJBS.mjs +110 -0
  116. package/dist/chunk-FXVJ2HFU.js +26 -0
  117. package/dist/chunk-FZMQMQBW.js +312 -0
  118. package/dist/chunk-G3EEC44R.js +53 -0
  119. package/dist/{chunk-KG3WT4PR.mjs → chunk-GCKWKLZF.mjs} +73 -104
  120. package/dist/chunk-GCX7TY4D.mjs +6826 -0
  121. package/dist/chunk-GDB6TCSD.js +450 -0
  122. package/dist/chunk-GDCV4IWO.mjs +21 -0
  123. package/dist/chunk-GDZT5LZ5.js +170 -0
  124. package/dist/chunk-GHPUYD4I.mjs +213 -0
  125. package/dist/chunk-GHS6MIL6.mjs +1432 -0
  126. package/dist/chunk-GPS2THCL.mjs +11 -0
  127. package/dist/{chunk-EV2EVOYS.js → chunk-GTJWQAGU.js} +31 -42
  128. package/dist/chunk-GVTI6UJQ.mjs +130 -0
  129. package/dist/chunk-GXKI64OT.mjs +1138 -0
  130. package/dist/chunk-GYDYF2WX.js +275 -0
  131. package/dist/chunk-GYLP6UG4.mjs +705 -0
  132. package/dist/chunk-H3OQKK6X.js +1158 -0
  133. package/dist/chunk-H5DFSCJ6.js +40 -0
  134. package/dist/chunk-HAGEIC2L.mjs +186 -0
  135. package/dist/chunk-HAJ4JRFO.js +293 -0
  136. package/dist/chunk-HDR72GB6.js +188 -0
  137. package/dist/chunk-HF5HPS4T.mjs +40 -0
  138. package/dist/chunk-HK6LOFDS.js +218 -0
  139. package/dist/chunk-HMWYTXCY.mjs +143 -0
  140. package/dist/chunk-HPCSRCMA.js +89 -0
  141. package/dist/chunk-HSEO6TPU.js +247 -0
  142. package/dist/chunk-I5FOHCLH.js +132 -0
  143. package/dist/chunk-IDLW4NWA.mjs +85 -0
  144. package/dist/chunk-IIDZ5WUX.js +61 -0
  145. package/dist/chunk-IR74FJHU.js +2332 -0
  146. package/dist/chunk-IRVFYAKP.mjs +100 -0
  147. package/dist/{chunk-XBL3TMPC.mjs → chunk-IZDWAL53.mjs} +1795 -3287
  148. package/dist/chunk-J2KZXIU3.js +51 -0
  149. package/dist/chunk-J2U6PJSO.js +91 -0
  150. package/dist/chunk-J5AJNY2N.js +283 -0
  151. package/dist/chunk-J6KQZ4FO.mjs +821 -0
  152. package/dist/{chunk-OWW5GUSB.js → chunk-JGBCIKJV.js} +7 -6
  153. package/dist/chunk-JKGTBMU7.mjs +25 -0
  154. package/dist/chunk-JR3TNEQC.js +422 -0
  155. package/dist/chunk-JURRXY2J.mjs +29 -0
  156. package/dist/chunk-K3HW5I2A.mjs +317 -0
  157. package/dist/chunk-K46SMZ66.mjs +103 -0
  158. package/dist/chunk-K4UDGE3Z.mjs +6 -0
  159. package/dist/chunk-KDQOR4QQ.mjs +350 -0
  160. package/dist/chunk-KDTVOLHI.mjs +288 -0
  161. package/dist/chunk-KGHJH5KJ.mjs +35 -0
  162. package/dist/chunk-KIZOA5LX.mjs +140 -0
  163. package/dist/chunk-KK6HYVBI.mjs +242 -0
  164. package/dist/chunk-KMKWGXMK.js +856 -0
  165. package/dist/chunk-KPA6K5IB.js +80 -0
  166. package/dist/chunk-KU7O4IXU.mjs +260 -0
  167. package/dist/chunk-KVFNRJOR.mjs +11142 -0
  168. package/dist/chunk-KZJRSXHK.js +2432 -0
  169. package/dist/chunk-LHWPRUJL.js +79 -0
  170. package/dist/chunk-LIV3KXJG.mjs +369 -0
  171. package/dist/chunk-LKV4LACG.js +21 -0
  172. package/dist/chunk-LUY45X3U.mjs +263 -0
  173. package/dist/chunk-LYEZZEEF.mjs +17 -0
  174. package/dist/chunk-M5EXQZYY.mjs +1519 -0
  175. package/dist/chunk-ME6HGG4I.mjs +1338 -0
  176. package/dist/chunk-MEXP6DA6.js +31 -0
  177. package/dist/chunk-MG52AW3H.js +902 -0
  178. package/dist/chunk-MIPO6F72.js +334 -0
  179. package/dist/{chunk-5QW7CQBA.js → chunk-MKIJQL5Q.js} +211 -321
  180. package/dist/chunk-MN3YETVN.mjs +17 -0
  181. package/dist/chunk-MOBSBXVE.mjs +2391 -0
  182. package/dist/chunk-MOMOZEUM.mjs +88 -0
  183. package/dist/chunk-MRFUNRAP.js +62 -0
  184. package/dist/chunk-MTIHEW2M.js +433 -0
  185. package/dist/chunk-N4RGGDEL.mjs +73 -0
  186. package/dist/chunk-NH654HAT.js +10 -0
  187. package/dist/chunk-NHJUGZUR.mjs +253 -0
  188. package/dist/chunk-NMQT4HG3.mjs +757 -0
  189. package/dist/chunk-NPSYB6DC.mjs +906 -0
  190. package/dist/chunk-NW2GPMSO.js +857 -0
  191. package/dist/chunk-NXKQOQ6L.js +76 -0
  192. package/dist/chunk-NXLAZIJZ.js +309 -0
  193. package/dist/chunk-NYWNA5CF.js +148 -0
  194. package/dist/chunk-NZTKLY2W.js +1442 -0
  195. package/dist/chunk-O2ICABUD.js +36 -0
  196. package/dist/chunk-OIVVQQ22.js +862 -0
  197. package/dist/chunk-OKC2B4O3.mjs +312 -0
  198. package/dist/chunk-OLWFPDBK.js +2220 -0
  199. package/dist/chunk-OMTVH334.js +3779 -0
  200. package/dist/chunk-OQRVEM56.mjs +362 -0
  201. package/dist/chunk-OXMIBOD4.js +337 -0
  202. package/dist/chunk-PBL6YL5L.mjs +288 -0
  203. package/dist/chunk-PDOELNNQ.js +97 -0
  204. package/dist/chunk-PDQJY2GZ.js +136 -0
  205. package/dist/chunk-PKOZXD2Q.js +1274 -0
  206. package/dist/chunk-PPF2BYFL.mjs +2191 -0
  207. package/dist/chunk-PQTQKNKD.js +539 -0
  208. package/dist/chunk-PRSR4FAV.mjs +81 -0
  209. package/dist/chunk-PTRNO5UD.js +95 -0
  210. package/dist/chunk-Q2Y3VMKH.js +2000 -0
  211. package/dist/chunk-QCZOE65N.js +96 -0
  212. package/dist/chunk-QDYFLATW.mjs +52 -0
  213. package/dist/chunk-QQABGCMM.js +22 -0
  214. package/dist/chunk-QS6TRHMR.js +345 -0
  215. package/dist/chunk-R56P64LB.mjs +208 -0
  216. package/dist/chunk-RCQ2MPBV.js +428 -0
  217. package/dist/chunk-RFVRPYR2.mjs +856 -0
  218. package/dist/chunk-RKBLPGPV.js +11521 -0
  219. package/dist/chunk-RM2V4IND.mjs +327 -0
  220. package/dist/chunk-RQXN5A34.mjs +613 -0
  221. package/dist/chunk-RUVGVNOF.mjs +2687 -0
  222. package/dist/chunk-SAFJIGYB.mjs +165 -0
  223. package/dist/chunk-SKQFLBDD.js +263 -0
  224. package/dist/chunk-SMK6JU2F.mjs +2092 -0
  225. package/dist/{chunk-UVRPC2P7.js → chunk-SNNEOS5Z.js} +1984 -3476
  226. package/dist/chunk-SPCRQ6NO.mjs +1246 -0
  227. package/dist/chunk-SWX4SALA.mjs +19 -0
  228. package/dist/{chunk-JVODCGFP.mjs → chunk-SYEO2WV4.mjs} +128 -238
  229. package/dist/chunk-T2QQMX2N.js +10 -0
  230. package/dist/chunk-T3AFF3L7.mjs +57 -0
  231. package/dist/chunk-T6Z2EXYL.js +712 -0
  232. package/dist/chunk-T7LOXGYX.js +118 -0
  233. package/dist/chunk-TJCAE7RC.mjs +1315 -0
  234. package/dist/chunk-TJI3K6RP.js +137 -0
  235. package/dist/chunk-TL2SVO4P.mjs +55 -0
  236. package/dist/chunk-TM63CYGN.mjs +399 -0
  237. package/dist/chunk-TU5RYTYU.mjs +13 -0
  238. package/dist/chunk-TVJZ4GPS.js +1553 -0
  239. package/dist/chunk-TWM6DLYF.js +371 -0
  240. package/dist/chunk-U63OC4TQ.js +30 -0
  241. package/dist/{chunk-L5GKVQVJ.js → chunk-U6BVSJZ6.js} +25 -57
  242. package/dist/chunk-U6UVWEAK.mjs +792 -0
  243. package/dist/chunk-UCEPNO6N.mjs +11048 -0
  244. package/dist/{chunk-ANT574FD.js → chunk-UCR5HRYM.js} +74 -105
  245. package/dist/chunk-UG5BTOTF.mjs +334 -0
  246. package/dist/chunk-UGH37BQW.mjs +157 -0
  247. package/dist/chunk-V7ZRH3PY.mjs +271 -0
  248. package/dist/chunk-VBGHBL3E.mjs +1394 -0
  249. package/dist/chunk-VRBDAS5I.js +920 -0
  250. package/dist/chunk-VVE3Y76O.js +230 -0
  251. package/dist/chunk-W65JIRI4.mjs +1182 -0
  252. package/dist/chunk-WHYKAT7G.js +62 -0
  253. package/dist/{chunk-YOIVZ6OA.mjs → chunk-WIZRUIZB.mjs} +25 -57
  254. package/dist/chunk-WKWTDZS7.js +385 -0
  255. package/dist/chunk-WLMINRC4.mjs +78 -0
  256. package/dist/chunk-WOF3AD3J.js +22 -0
  257. package/dist/chunk-WWKMOA76.js +1262 -0
  258. package/dist/chunk-X5A5FOWW.js +615 -0
  259. package/dist/chunk-X6CN6KQF.mjs +192 -0
  260. package/dist/chunk-XD2PMH46.mjs +517 -0
  261. package/dist/chunk-XJA2NGTI.mjs +88 -0
  262. package/dist/chunk-XJIHN3BY.mjs +8 -0
  263. package/dist/chunk-XK6UDWJS.js +203 -0
  264. package/dist/chunk-XPG3N5CF.mjs +415 -0
  265. package/dist/chunk-XVZ2NKSU.mjs +74 -0
  266. package/dist/chunk-XYP45OLE.js +117 -0
  267. package/dist/chunk-XZSDGZX6.mjs +301 -0
  268. package/dist/chunk-Y2EMGN4T.mjs +120 -0
  269. package/dist/chunk-Y3XWP5XW.mjs +298 -0
  270. package/dist/chunk-Y4K22JL6.js +228 -0
  271. package/dist/chunk-Y65LXQGA.mjs +3164 -0
  272. package/dist/chunk-Y66WVMO5.mjs +87 -0
  273. package/dist/chunk-Y7JWLB25.mjs +7280 -0
  274. package/dist/chunk-YCDXAJKU.js +175 -0
  275. package/dist/chunk-YRDQCCIS.js +152 -0
  276. package/dist/chunk-YV52DGSA.js +111 -0
  277. package/dist/chunk-YXGZQPUD.js +94 -0
  278. package/dist/chunk-Z3A3AFVU.mjs +102 -0
  279. package/dist/chunk-ZCY6YKKP.mjs +475 -0
  280. package/dist/chunk-ZEQHXVU5.js +215 -0
  281. package/dist/chunk-ZF7JCXCI.js +284 -0
  282. package/dist/chunk-ZJBRUH6V.js +29 -0
  283. package/dist/chunk-ZMIL4ZOA.js +365 -0
  284. package/dist/chunk-ZR5ULMN2.mjs +337 -0
  285. package/dist/chunk-ZXREOYOW.js +87 -0
  286. package/dist/{client-BSP9U1O1.d.mts → client-CX_WR0-J.d.mts} +2 -2
  287. package/dist/client-Dytx_ZTC.d.ts +230 -0
  288. package/dist/{client-B878xeAP.d.ts → client-dqOhP9Nc.d.ts} +2 -2
  289. package/dist/client-hTKbCuhG.d.mts +230 -0
  290. package/dist/clock-B-UAjkKa.d.mts +5 -0
  291. package/dist/clock-B-UAjkKa.d.ts +5 -0
  292. package/dist/config-BlXQluJR.d.mts +36 -0
  293. package/dist/config-BlXQluJR.d.ts +36 -0
  294. package/dist/courier-Cnn-edJ4.d.ts +95 -0
  295. package/dist/courier-FmGfkvIN.d.mts +95 -0
  296. package/dist/crowd-DdHFbqKK.d.ts +186 -0
  297. package/dist/crowd-hOVSAmA3.d.mts +186 -0
  298. package/dist/danfo-BEBapFlX.d.mts +146 -0
  299. package/dist/danfo-UQ_PTIIx.d.ts +146 -0
  300. package/dist/{elements-Bty6Qs_N.d.mts → elements-DdsRig-2.d.mts} +1548 -257
  301. package/dist/{elements-Bty6Qs_N.d.ts → elements-DdsRig-2.d.ts} +1548 -257
  302. package/dist/engines/godot.d.mts +56 -0
  303. package/dist/engines/godot.d.ts +56 -0
  304. package/dist/engines/godot.js +28 -0
  305. package/dist/engines/godot.mjs +3 -0
  306. package/dist/engines/wasm.d.mts +11 -0
  307. package/dist/engines/wasm.d.ts +11 -0
  308. package/dist/engines/wasm.js +178 -0
  309. package/dist/engines/wasm.mjs +176 -0
  310. package/dist/fallback-CrG_lTFk.d.mts +270 -0
  311. package/dist/fallback-CrG_lTFk.d.ts +270 -0
  312. package/dist/fallback-KDB4Y2CE.mjs +6 -0
  313. package/dist/fallback-Y26TQENE.js +19 -0
  314. package/dist/features-CZB4rmcD.d.mts +118 -0
  315. package/dist/features-CZB4rmcD.d.ts +118 -0
  316. package/dist/fit-BWiE7rgA.d.mts +44 -0
  317. package/dist/fit-DK0oT7zO.d.ts +44 -0
  318. package/dist/five-a-side-Bv1AOUy3.d.mts +115 -0
  319. package/dist/five-a-side-EC51SJY1.d.ts +115 -0
  320. package/dist/fluid-ARr0qUIL.d.ts +939 -0
  321. package/dist/fluid-DLlEj2cs.d.mts +939 -0
  322. package/dist/game/conformance.d.mts +84 -0
  323. package/dist/game/conformance.d.ts +84 -0
  324. package/dist/game/conformance.js +1025 -0
  325. package/dist/game/conformance.mjs +994 -0
  326. package/dist/game/heap.d.mts +40 -0
  327. package/dist/game/heap.d.ts +40 -0
  328. package/dist/game/heap.js +48 -0
  329. package/dist/game/heap.mjs +7 -0
  330. package/dist/game/kit/canvas.d.mts +240 -0
  331. package/dist/game/kit/canvas.d.ts +240 -0
  332. package/dist/game/kit/canvas.js +3566 -0
  333. package/dist/game/kit/canvas.mjs +1039 -0
  334. package/dist/game/kit/courier.d.mts +17 -0
  335. package/dist/game/kit/courier.d.ts +17 -0
  336. package/dist/game/kit/courier.js +66 -0
  337. package/dist/game/kit/courier.mjs +49 -0
  338. package/dist/game/kit/danfo.d.mts +11 -0
  339. package/dist/game/kit/danfo.d.ts +11 -0
  340. package/dist/game/kit/danfo.js +109 -0
  341. package/dist/game/kit/danfo.mjs +44 -0
  342. package/dist/game/kit/engine.d.mts +29 -0
  343. package/dist/game/kit/engine.d.ts +29 -0
  344. package/dist/game/kit/engine.js +183 -0
  345. package/dist/game/kit/engine.mjs +30 -0
  346. package/dist/game/kit/five-a-side.d.mts +11 -0
  347. package/dist/game/kit/five-a-side.d.ts +11 -0
  348. package/dist/game/kit/five-a-side.js +86 -0
  349. package/dist/game/kit/five-a-side.mjs +41 -0
  350. package/dist/game/kit/frontier.d.mts +344 -0
  351. package/dist/game/kit/frontier.d.ts +344 -0
  352. package/dist/game/kit/frontier.js +435 -0
  353. package/dist/game/kit/frontier.mjs +14 -0
  354. package/dist/game/kit/genesis.d.mts +752 -0
  355. package/dist/game/kit/genesis.d.ts +752 -0
  356. package/dist/game/kit/genesis.js +380 -0
  357. package/dist/game/kit/genesis.mjs +15 -0
  358. package/dist/game/kit/ludo.d.mts +15 -0
  359. package/dist/game/kit/ludo.d.ts +15 -0
  360. package/dist/game/kit/ludo.js +87 -0
  361. package/dist/game/kit/ludo.mjs +42 -0
  362. package/dist/game/kit/runner.d.mts +12 -0
  363. package/dist/game/kit/runner.d.ts +12 -0
  364. package/dist/game/kit/runner.js +83 -0
  365. package/dist/game/kit/runner.mjs +46 -0
  366. package/dist/game/kit/shootout.d.mts +13 -0
  367. package/dist/game/kit/shootout.d.ts +13 -0
  368. package/dist/game/kit/shootout.js +122 -0
  369. package/dist/game/kit/shootout.mjs +57 -0
  370. package/dist/game/kit/slots.d.mts +392 -0
  371. package/dist/game/kit/slots.d.ts +392 -0
  372. package/dist/game/kit/slots.js +215 -0
  373. package/dist/game/kit/slots.mjs +6 -0
  374. package/dist/game/kit/tycoon.d.mts +16 -0
  375. package/dist/game/kit/tycoon.d.ts +16 -0
  376. package/dist/game/kit/tycoon.js +145 -0
  377. package/dist/game/kit/tycoon.mjs +44 -0
  378. package/dist/game/kit/word.d.mts +11 -0
  379. package/dist/game/kit/word.d.ts +11 -0
  380. package/dist/game/kit/word.js +78 -0
  381. package/dist/game/kit/word.mjs +41 -0
  382. package/dist/game/kit/worlds.d.mts +18 -0
  383. package/dist/game/kit/worlds.d.ts +18 -0
  384. package/dist/game/kit/worlds.js +74 -0
  385. package/dist/game/kit/worlds.mjs +49 -0
  386. package/dist/game/kit.d.mts +53 -0
  387. package/dist/game/kit.d.ts +53 -0
  388. package/dist/game/kit.js +2610 -0
  389. package/dist/game/kit.mjs +101 -0
  390. package/dist/game/prepared.d.mts +14 -0
  391. package/dist/game/prepared.d.ts +14 -0
  392. package/dist/game/prepared.js +81 -0
  393. package/dist/game/prepared.mjs +32 -0
  394. package/dist/game-Bx8onkhX.d.mts +1451 -0
  395. package/dist/game-fgQy2YIm.d.ts +1451 -0
  396. package/dist/game-theme-CBTw1b_d.d.mts +35 -0
  397. package/dist/game-theme-Dg-ict5A.d.ts +35 -0
  398. package/dist/game.d.mts +3546 -0
  399. package/dist/game.d.ts +3546 -0
  400. package/dist/game.js +4455 -0
  401. package/dist/game.mjs +50 -0
  402. package/dist/graphics-C6YjWYvP.d.ts +5 -0
  403. package/dist/graphics-Dk2yQnYN.d.mts +5 -0
  404. package/dist/guest-DrsA00XD.d.mts +732 -0
  405. package/dist/guest-wIdfoT05.d.ts +732 -0
  406. package/dist/hit-stop-BKkVwTq7.d.mts +43 -0
  407. package/dist/hit-stop-D-8pPYnM.d.ts +43 -0
  408. package/dist/hot-Crn9XpHJ.d.ts +29 -0
  409. package/dist/hot-DH3nOhQD.d.mts +29 -0
  410. package/dist/{index-CQStGb3B.d.mts → index-6gkHMGAq.d.mts} +2 -2
  411. package/dist/index-B8ybCKJI.d.ts +41 -0
  412. package/dist/{index-DJwXmoaP.d.ts → index-B98Xac8e.d.ts} +2 -2
  413. package/dist/{index-B7oA_1XI.d.ts → index-B_ByTtIT.d.ts} +2 -2
  414. package/dist/index-DHjNHb1c.d.mts +41 -0
  415. package/dist/{index-DhUSTAhT.d.mts → index-DbAN_VQE.d.mts} +2 -2
  416. package/dist/index.d.mts +134 -24
  417. package/dist/index.d.ts +134 -24
  418. package/dist/index.js +407 -248
  419. package/dist/index.mjs +184 -58
  420. package/dist/interactives-authoring.d.mts +231 -0
  421. package/dist/interactives-authoring.d.ts +231 -0
  422. package/dist/interactives-authoring.js +1743 -0
  423. package/dist/interactives-authoring.mjs +1704 -0
  424. package/dist/interactives-canvas.global.js +148 -0
  425. package/dist/interactives-guest.d.mts +20 -0
  426. package/dist/interactives-guest.d.ts +20 -0
  427. package/dist/interactives-guest.js +63 -0
  428. package/dist/interactives-guest.json +1 -0
  429. package/dist/interactives-guest.mjs +61 -0
  430. package/dist/interactives-jsc.global.js +9357 -0
  431. package/dist/interactives-meters.d.mts +93 -0
  432. package/dist/interactives-meters.d.ts +93 -0
  433. package/dist/interactives-meters.js +252 -0
  434. package/dist/interactives-meters.mjs +68 -0
  435. package/dist/interactives-production.d.mts +430 -0
  436. package/dist/interactives-production.d.ts +430 -0
  437. package/dist/interactives-production.js +1231 -0
  438. package/dist/interactives-production.mjs +1170 -0
  439. package/dist/interactives-record.d.mts +112 -0
  440. package/dist/interactives-record.d.ts +112 -0
  441. package/dist/interactives-record.js +302 -0
  442. package/dist/interactives-record.mjs +295 -0
  443. package/dist/interactives-runtime.d.mts +61 -0
  444. package/dist/interactives-runtime.d.ts +61 -0
  445. package/dist/interactives-runtime.js +442 -0
  446. package/dist/interactives-runtime.mjs +25 -0
  447. package/dist/interactives-studio-kernel.global.js +1 -0
  448. package/dist/interactives-studio.d.mts +806 -0
  449. package/dist/interactives-studio.d.ts +806 -0
  450. package/dist/interactives-studio.js +5741 -0
  451. package/dist/interactives-studio.mjs +5651 -0
  452. package/dist/interactives-tick.d.mts +90 -0
  453. package/dist/interactives-tick.d.ts +90 -0
  454. package/dist/interactives-tick.js +203 -0
  455. package/dist/interactives-tick.mjs +6 -0
  456. package/dist/interactives-web.d.mts +762 -0
  457. package/dist/interactives-web.d.ts +762 -0
  458. package/dist/interactives-web.js +5000 -0
  459. package/dist/interactives-web.mjs +4628 -0
  460. package/dist/interactives.d.mts +2430 -0
  461. package/dist/interactives.d.ts +2430 -0
  462. package/dist/interactives.js +5723 -0
  463. package/dist/interactives.mjs +4333 -0
  464. package/dist/juice-CoHxlpKA.d.ts +42 -0
  465. package/dist/juice-DQztFS43.d.mts +42 -0
  466. package/dist/launch-T2f4_Di4.d.mts +151 -0
  467. package/dist/launch-d6oreMzR.d.ts +151 -0
  468. package/dist/library-DXYaMFhi.d.mts +69 -0
  469. package/dist/library-DXYaMFhi.d.ts +69 -0
  470. package/dist/link-BUTqGmyi.d.mts +38 -0
  471. package/dist/link-BUTqGmyi.d.ts +38 -0
  472. package/dist/lint.js +104 -204
  473. package/dist/lint.mjs +103 -203
  474. package/dist/local-D8_I6UeL.d.mts +6967 -0
  475. package/dist/local-VZkqsCzR.d.ts +6967 -0
  476. package/dist/lockstep-BLf6dglI.d.mts +321 -0
  477. package/dist/lockstep-D50Ia0JW.d.ts +321 -0
  478. package/dist/ludo-B8ClkDqr.d.ts +205 -0
  479. package/dist/ludo-BOuohQ-M.d.mts +205 -0
  480. package/dist/mock/cli.mjs +200 -56
  481. package/dist/mock/library.js +200 -56
  482. package/dist/mock/library.mjs +200 -56
  483. package/dist/mock/msw.js +200 -56
  484. package/dist/mock/msw.mjs +200 -56
  485. package/dist/native-BodxSh03.d.mts +16 -0
  486. package/dist/native-DUHMT8gA.d.ts +16 -0
  487. package/dist/network-ZXLD7l1b.d.mts +19 -0
  488. package/dist/network-ZXLD7l1b.d.ts +19 -0
  489. package/dist/online-XeymeM9s.d.ts +381 -0
  490. package/dist/online-d7W_Al9a.d.mts +381 -0
  491. package/dist/params-DxFb5G_U.d.mts +155 -0
  492. package/dist/params-DxFb5G_U.d.ts +155 -0
  493. package/dist/play-BRRlfLhX.d.ts +940 -0
  494. package/dist/play-ClrMd_e8.d.mts +940 -0
  495. package/dist/policy-CCw8tXLm.d.mts +3078 -0
  496. package/dist/policy-CMqOSQIu.d.ts +3078 -0
  497. package/dist/ports-B_0v_P3A.d.mts +13 -0
  498. package/dist/ports-CGU_3e_0.d.ts +13 -0
  499. package/dist/prefetch-BHnicOQj.d.ts +117 -0
  500. package/dist/prefetch-CBXgYacv.d.mts +117 -0
  501. package/dist/{price-CSztR02F.d.mts → price-BOzexBww.d.mts} +1 -1
  502. package/dist/{price-C_vasx9A.d.ts → price-C1h9sPxE.d.ts} +1 -1
  503. package/dist/protocol-C8qbpUbT.d.mts +242 -0
  504. package/dist/protocol-C8qbpUbT.d.ts +242 -0
  505. package/dist/rapier-AZHT4YI7.js +7886 -0
  506. package/dist/rapier-ODEPCQA6.mjs +7792 -0
  507. package/dist/react.d.mts +157 -15
  508. package/dist/react.d.ts +157 -15
  509. package/dist/react.js +5564 -5904
  510. package/dist/react.mjs +5451 -5808
  511. package/dist/runner-CQcLL7By.d.ts +189 -0
  512. package/dist/runner-D46Yj-wE.d.mts +189 -0
  513. package/dist/runtime-BRWfkf_q.d.mts +51 -0
  514. package/dist/runtime-DyuBMkKM.d.ts +51 -0
  515. package/dist/scheduling-D2ajXpMC.d.ts +224 -0
  516. package/dist/scheduling-DSRbbaZb.d.mts +224 -0
  517. package/dist/schema-BrWxzKp6.d.mts +63 -0
  518. package/dist/schema-BrWxzKp6.d.ts +63 -0
  519. package/dist/server/evict.js +34 -37
  520. package/dist/server/evict.mjs +34 -37
  521. package/dist/server/tanstack.d.mts +49 -3
  522. package/dist/server/tanstack.d.ts +49 -3
  523. package/dist/server/tanstack.js +169 -117
  524. package/dist/server/tanstack.mjs +166 -118
  525. package/dist/{server-Dckg4Vdr.d.ts → server-D29IIuDV.d.ts} +136 -130
  526. package/dist/{server-B6dW7-Lj.d.mts → server-DQMWPnc8.d.mts} +136 -130
  527. package/dist/server.d.mts +45 -5
  528. package/dist/server.d.ts +45 -5
  529. package/dist/server.js +171 -227
  530. package/dist/server.mjs +165 -225
  531. package/dist/session-grant-CJ27DwrT.d.mts +19 -0
  532. package/dist/session-grant-CJ27DwrT.d.ts +19 -0
  533. package/dist/shootout-BJZeX6FG.d.ts +140 -0
  534. package/dist/shootout-tcZd1Rxt.d.mts +140 -0
  535. package/dist/state-replica-stMtdkVD.d.mts +42 -0
  536. package/dist/state-replica-stMtdkVD.d.ts +42 -0
  537. package/dist/studio-CowqWqez.d.mts +14 -0
  538. package/dist/studio-CowqWqez.d.ts +14 -0
  539. package/dist/styles.css +1 -1
  540. package/dist/template-AhCdB1kW.d.mts +190 -0
  541. package/dist/template-BkEGVTQj.d.ts +190 -0
  542. package/dist/terrain-BMxEc6Oc.d.ts +429 -0
  543. package/dist/terrain-C-XC1Oui.d.mts +429 -0
  544. package/dist/testing/msw.d.mts +28 -4
  545. package/dist/testing/msw.d.ts +28 -4
  546. package/dist/testing/msw.js +15 -21
  547. package/dist/testing/msw.mjs +15 -21
  548. package/dist/testing/suite.d.mts +6 -5
  549. package/dist/testing/suite.d.ts +6 -5
  550. package/dist/testing/suite.js +89 -124
  551. package/dist/testing/suite.mjs +81 -116
  552. package/dist/testing.d.mts +27 -1227
  553. package/dist/testing.d.ts +27 -1227
  554. package/dist/testing.js +127 -131
  555. package/dist/testing.mjs +19 -23
  556. package/dist/tick-transport-C8QEh8Uw.d.mts +50 -0
  557. package/dist/tick-transport-UjHY3xK1.d.ts +50 -0
  558. package/dist/timeline-protocol-hp6e8zFB.d.mts +47 -0
  559. package/dist/timeline-protocol-hp6e8zFB.d.ts +47 -0
  560. package/dist/tokens-DhanQRQS.d.mts +21 -0
  561. package/dist/tokens-K8yxwd6G.d.ts +21 -0
  562. package/dist/tree-C-Io2Hbx.d.mts +35 -0
  563. package/dist/tree-CP_qSW4H.d.ts +35 -0
  564. package/dist/tycoon-B5KHk2Xx.d.mts +255 -0
  565. package/dist/tycoon-hmHo-3HX.d.ts +255 -0
  566. package/dist/types-BQkxPwZP.d.mts +219 -0
  567. package/dist/types-D_f6UUxM.d.ts +219 -0
  568. package/dist/ui-DwHicuFv.d.mts +563 -0
  569. package/dist/ui-hi7S2YcH.d.ts +563 -0
  570. package/dist/{sign-in-DQlIdqsi.d.mts → url-52ndUruG.d.mts} +15 -1
  571. package/dist/{sign-in-DQlIdqsi.d.ts → url-52ndUruG.d.ts} +15 -1
  572. package/dist/utils.d.mts +3 -3
  573. package/dist/utils.d.ts +3 -3
  574. package/dist/utils.js +37 -37
  575. package/dist/utils.mjs +4 -4
  576. package/dist/vars-Dc_PrhBK.d.mts +511 -0
  577. package/dist/vars-Dc_PrhBK.d.ts +511 -0
  578. package/dist/vm-IUARFFAI.mjs +63 -0
  579. package/dist/vm-N7L6MGGH.js +65 -0
  580. package/dist/weave-delivery-CW-Kstut.d.mts +360 -0
  581. package/dist/weave-delivery-CW-Kstut.d.ts +360 -0
  582. package/dist/web-Dss74a7v.d.ts +883 -0
  583. package/dist/web-f9ZQPoyw.d.mts +883 -0
  584. package/dist/web-transport-C7MkBL0a.d.ts +19 -0
  585. package/dist/web-transport-aYEqXMd9.d.mts +19 -0
  586. package/dist/weight-CPGjsgjV.d.ts +92 -0
  587. package/dist/weight-tF1ODR1p.d.mts +92 -0
  588. package/dist/word-BcX9Jcmv.d.mts +70 -0
  589. package/dist/word-C7sVPLHm.d.ts +70 -0
  590. package/dist/world-PvILHDR1.d.ts +2285 -0
  591. package/dist/world-qekkXjJv.d.mts +2285 -0
  592. package/dist/worlds-Br2Pb0Cs.d.ts +109 -0
  593. package/dist/worlds-D5ydYr7d.d.mts +109 -0
  594. package/engines/c/cimplify.h +108 -0
  595. package/engines/c/cimplify.lib.js +11 -0
  596. package/engines/godot/addons/cimplify/cimplify.gd +97 -0
  597. package/engines/rust/interactives-ctx/Cargo.toml +9 -0
  598. package/engines/rust/interactives-ctx/src/lib.rs +189 -0
  599. package/package.json +189 -3
  600. package/vendor/rapier3d-compat/LICENSE +201 -0
  601. package/vendor/rapier3d-compat/PATCHES.md +61 -0
  602. package/dist/chunk-2P4KXFB6.js +0 -274
  603. package/dist/chunk-3G6RQLXK.mjs +0 -21
  604. package/dist/chunk-3V4DVXV3.mjs +0 -254
  605. package/dist/chunk-EDK3LNM6.js +0 -2436
  606. package/dist/chunk-F7J3HK27.js +0 -4549
  607. package/dist/chunk-U4MW6PYU.mjs +0 -23
  608. package/dist/chunk-XREIZ56K.js +0 -26
@@ -0,0 +1,2430 @@
1
+ import { C as Ctx, a9 as StatusLine, aa as SessionCompletion, L as LifecycleEvent, M as UiEvent, b as UiNode, H as HostSheetRequest, ab as SheetResult, S as SurfaceOptions, ac as GraphicsSurface, f as PlatformEngine, _ as RenderingProfile, $ as Persona, x as LocaleInfo, ad as GenerateSource, ae as Generated, af as AiContentKind, ag as GenerateRequest, ah as AiContentCalls, ai as AiContentRule, aj as CtxGenerate, ak as DEFAULT_RETRIES, al as DEFAULT_TIMEOUT_MS, am as GenerateOptions, an as GenerateReason, ao as GenerateScope, ap as MAX_TIMEOUT_MS, aq as MIN_TIMEOUT_MS, ar as PrefetchEntry, as as acceptContent, at as contentRequest, au as createGenerate, av as runContent, aw as ProgressiveCancelled, ax as ProgressiveFeed, h as ProgressiveListener, i as ProgressiveLoad } from './local-VZkqsCzR.js';
2
+ export { ay as AchievementId, az as AchievementList, aA as AchievementProgressRequest, aB as AchievementState, aC as AckFrame, aD as ActionName, aE as ActionReceipt, aF as ActionRef, aG as ActionStatus, aH as ActionSummary, aI as AdFormat, aJ as AddressRef, aK as Admission, aL as AgentAskRequest, aM as AgentBudget, aN as AgentEvent, aO as AgentRun, aP as AgentRunId, aQ as AgentRunRef, aR as AgentRunState, aS as AgentRunStatus, aT as AiAction, aU as AiActionName, aV as AiActionSetName, aW as AiAudience, aX as AiCharacterName, aY as AiChoiceName, aZ as AiContent, a_ as AiContentFallback, a$ as AiContentOutcome, b0 as AiContentPayment, b1 as AiContentPrefetchRequest, b2 as AiContentRequest, b3 as AiContentScope, b4 as AiConverseRequest, b5 as AiEvent, A as AiGenerateRequest, b6 as AiImageRequest, b7 as AiOutput, b8 as AiOutputSpec, b9 as AiPayerKind, ba as AiPrefetchReceipt, bb as AiPrefetchRequest, bc as AiPromptName, bd as AiResult, be as AiRetraction, bf as AiRoute, j as AiRun, bg as AiRunId, bh as AiRunRef, bi as AiRunState, bj as AiRunStatus, bk as AiSchemaName, bl as AiSlotName, bm as AiSlotValue, bn as AiSpeakRequest, bo as AiSpeechSource, bp as AiStyleName, bq as AiThreadForgotten, br as AiThreadKey, bs as AiThreadRef, bt as AiTranscribeRequest, bu as AiTranslateRequest, bv as AiUsage, bw as AnalyticsAccepted, bx as AnalyticsBatch, by as AnalyticsEvent, bz as AnalyticsEventName, bA as AnalyticsProperty, bB as AnalyticsValue, bC as ArcChallenge, bD as ArcChallengePage, bE as ArcChallengesQuery, bF as ArcEntryId, bG as ArcEntryKind, bH as ArcEntryReceipt, bI as ArcEntryRequest, bJ as ArcId, bK as ArcMilestone, bL as ArcProgress, bM as ArcRef, bN as ArcStatus, bO as ArgumentProblem, bP as Assignment, bQ as AudioBus, bR as AudioBusName, bS as AudioClip, bT as Availability, bU as AvailabilityQuery, bV as AvatarCast, bW as AvatarCharacter, bX as AvatarConsent, bY as AvatarConsentRequest, bZ as AvatarQuery, b_ as Balances, b$ as BalancesQuery, c0 as BindingName, c1 as BlobCommitRequest, c2 as BlobContentType, c3 as BlobDeleted, c4 as BlobDownload, c5 as BlobKey, c6 as BlobListRequest, c7 as BlobObject, c8 as BlobPage, c9 as BlobPutRequest, ca as BlobRef, cb as BlobScreening, cc as BlobUpload, cd as BlobVisibility, ce as BlockRequest, cf as BlockResult, cg as BookableSlot, ch as BookingRequest, ci as BotFill, cj as BoundCall, ck as BoundValue, cl as BusinessId, cm as CAMERA_LAYOUT, cn as CTX_CAPABILITIES, co as CTX_COMPATIBLE_FINGERPRINTS, cp as CTX_CONTRACT_FINGERPRINT, cq as CTX_CONTRACT_VERSION, cr as CTX_LIMITS, cs as CTX_MIN_SUPPORTED_CONTRACT_VERSION, ct as CacheApi, cu as CacheEntry, cv as CacheKey, cw as CacheKeyRequest, cx as CacheNamespace, cy as CacheNamespaceId, cz as CacheOpenRequest, cA as CacheScope, cB as CacheSetRequest, cC as CacheStored, cD as CameraConsent, cE as CameraConsentRequest, cF as CameraConsentStatus, cG as CameraFacing, cH as CameraGrantId, cI as CameraGrantRef, cJ as CameraPurpose, cK as CameraRig, cL as CameraView, cM as CameraViewLayer, cN as CameraViewPlacement, cO as CapabilityGrant, cP as CapacityTier, cQ as CapturedIdentity, cR as CartAddRequest, cS as CartId, cT as CartLine, cU as CartLineId, cV as CartQuery, cW as CartUpdateRequest, cX as CartView, cY as CatalogueSearch, cZ as CellKey, c_ as ChallengeId, c$ as ChallengeRequest, d0 as ChallengeResult, d1 as ChannelApi, d2 as ChannelClosed, d3 as ChannelDelivery, d4 as ChannelDestination, d5 as ChannelEvent, d6 as ChannelHandle, d7 as ChannelHeader, d8 as ChannelId, n as ChannelMessage, d9 as ChannelName, da as ChannelOrdering, db as ChannelRef, dc as ChannelStatus, dd as CheckpointId, de as ClipRecording, df as ClockReading, dg as ClockSource, dh as ColumnName, di as ColumnSpec, dj as ColumnType, dk as CommitStamp, dl as Comparison, dm as CompletionReceipt, dn as ComputeLimits, dp as ComputeRequest, dq as ComputeResult, a1 as ConsentKind, dr as Consistency, ds as ConsumeReceipt, dt as ConsumeRequest, du as ContentAudience, dv as ContentDigest, dw as ContentLevel, dx as ContentPurpose, dy as ContributionId, dz as ContributionKind, dA as ContributionReceipt, dB as ContributionStatus, dC as CounterAddRequest, dD as CounterApi, q as CounterFrame, dE as CounterHandle, dF as CounterId, dG as CounterKind, dH as CounterName, dI as CounterOpenRequest, dJ as CounterReadRequest, dK as CounterValue, dL as CreateRoomRequest, dM as CreateWorkerRequest, dN as CreateWorldRequest, dO as CtxAchievements, dP as CtxActions, dQ as CtxAds, dR as CtxAgent, dS as CtxAi, dT as CtxAnalytics, g as CtxAssets, k as CtxAudio, dU as CtxBlob, dV as CtxCamera, dW as CtxClock, dX as CtxCrypto, dY as CtxDb, dZ as CtxEconomy, Z as CtxError, d_ as CtxEvents, d$ as CtxFiles, e0 as CtxFlow, e1 as CtxGame, e2 as CtxGameServices, e3 as CtxGifts, c as CtxGraphics, e4 as CtxId, e5 as CtxIdentity, e6 as CtxInput, e7 as CtxLeaderboards, y as CtxLifecycle, e8 as CtxLocale, e9 as CtxMedia, ea as CtxModerate, eb as CtxNotify, z as CtxOperationName, ec as CtxOperations, ed as CtxProgram, ee as CtxProvider, ef as CtxPubsub, eg as CtxQueue, eh as CtxRandom, ei as CtxReport, B as CtxRequest, D as CtxResponse, ej as CtxSearch, ek as CtxSecrets, el as CtxServices, em as CtxSession, en as CtxSocial, eo as CtxTx, ep as CtxUi, eq as CtxWallet, er as CurrencyBalance, es as CurrencyClass, et as CurrencyCode, eu as CurrencyDescriptor, ev as CurrencyId, ew as Cursor, ex as DataClassification, ey as DataLineage, ez as DataScope, eA as DbDescription, eB as DbMigrateRequest, eC as DbQuery, eD as DbQueryRequest, eE as DbRows, eF as DbSchema, eG as DbValue, eH as DbWrite, eI as DecimalAmount, X as DeclaredAgeRange, eJ as DeliveryDestination, eK as DeliveryOption, eL as DeliveryOptionId, eM as DeliveryQuoteRequest, eN as DeliveryQuotes, eO as DenialReason, eP as DepartureReason, eQ as DisplayToken, eR as DownloadHandle, eS as Easing, eT as EconomyCatalogue, eU as EconomyRule, eV as EditRequest, eW as EditRequestId, eX as EditRequestReceipt, eY as EffectId, eZ as ElementKey, e_ as EmoteAccepted, e$ as EmoteId, f0 as EmoteRequest, E as EngineAttachOptions, a as EngineSurface, f1 as EnqueueRequest, f2 as EnterVenueRequest, f3 as Entitlements, f4 as EntryName, f5 as Epoch, f6 as EventEnvelope, f7 as EventSource, f8 as ExchangeId, f9 as ExchangeReceipt, fa as ExchangeRequest, fb as ExecutionLocation, fc as ExitVenueRequest, fd as ExternalInput, fe as FACE_LAYOUT, u as FRAME_CODES, ff as FRAME_FLAGS, fg as FRAME_LAYOUT, fh as FRAME_LIMITS, fi as FRAME_VERSION, F as FaceColours, fj as FaceTracker, Q as Family, fk as FastReadHeader, fl as FastReadMessage, t as FastReader, fm as FastValueHeader, p as FastValueMessage, fn as FeatureName, fo as FilePickOptions, fp as FlowCheckpointRequest, fq as FlowExpectation, fr as FlowId, fs as FlowRef, ft as FlowResultRequest, fu as FlowState, fv as FlowStatus, fw as FrameBufferPool, fx as FrameCode, fy as FrameFault, fz as FrameKindName, m as FrameListener, l as FramePublisher, fA as FriendsPage, fB as FriendsQuery, fC as GameFeel, O as GameLoop, fD as GeoPoint, fE as GestureId, fF as GiftEffectEvent, fG as GiftKindId, fH as GiftKindList, fI as GiftKindView, fJ as GiftKindsQuery, fK as GiftRecipient, fL as GiftSendResult, fM as GiftVenue, fN as GrantChanged, fO as GrantStatus, G as GraphicsApi, fP as GraphicsFeatures, fQ as HandoffEvent, fR as HandoffId, fS as HandoffResult, fT as HandoffStatus, fU as HapticKind, fV as HostCall, J as HostEvent, K as HostEventFamily, fW as HostEventOf, fX as HostRequest, Y as HostResponse, fY as HourCycle, fZ as IdentityCaptureCode, f_ as IdentityCaptureFailure, f$ as ImageSize, g0 as IncidentId, g1 as IndexName, g2 as IndexSpec, g3 as InputActionMap, g4 as InputActions, g5 as InputBinding, g6 as InstanceKey, g7 as IntegrationId, g8 as InteractiveCredit, g9 as InteractiveId, ga as InviteToken, gb as ItemDescriptor, gc as ItemHolding, gd as ItemId, ge as JobId, gf as JobRef, gg as JobState, gh as JobStatus, gi as JoinRoomRequest, gj as JoinWorldRequest, gk as KvApi, gl as KvCompareAndSetRequest, gm as KvCompareAndSetResult, gn as KvEntry, go as KvGetRequest, gp as KvKey, gq as KvKeyRequest, gr as KvListRequest, gs as KvNamespace, gt as KvNamespaceId, gu as KvOpenRequest, gv as KvPage, gw as KvRead, gx as KvSetRequest, gy as KvVersion, gz as LanguageTag, gA as LaunchContext, gB as LaunchSource, gC as LeaderboardEntry, gD as LeaderboardId, gE as LeaderboardPage, gF as LeaderboardQuery, gG as LeaderboardScope, gH as LeaderboardWindow, gI as LedgerEntryId, gJ as LedgerReceipt, gK as LedgerRequest, V as LifecycleState, gL as LimitKind, s as Listener, gM as LocalWorker, gN as LocalWorkerOptions, gO as LocationId, gP as LoopCallbacks, gQ as MAX_DATAGRAM_BYTES, gR as MeasurementSystem, gS as MediaId, gT as MediaPlayback, a4 as MediaRef, gU as MemberConnection, gV as MeterKind, gW as MetricKind, gX as MetricName, gY as MetricQuery, gZ as MetricSample, g_ as MetricSummary, g$ as MetricWindow, h0 as MilestoneId, h1 as MirrorPolicy, h2 as ModuleDigest, h3 as ModuleRef, h4 as Money, h5 as MoveInput, h6 as NearbyPage, h7 as NearbyQuery, h8 as NearbyVenue, h9 as NoArgumentCall, ha as NoArguments, hb as NotifyOptIn, hc as NotifyReceipt, hd as NotifyRequest, he as NotifyTopic, hf as OddsOutcome, hg as OddsRoll, hh as OfferId, hi as OpenChannelRequest, hj as OpenStoreRequest, hk as OperationId, hl as OptInRequest, hm as OptInState, hn as OrderDetail, ho as OrderId, hp as OrderLine, hq as OrderPage, hr as OrderProgress, hs as OrderRef, ht as OrderSummary, hu as OrdersQuery, hv as Outcome, hw as PackId, hx as PackRef, hy as PackedRgb, hz as PageRequest, hA as ParticipantId, hB as ParticleEmitter, hC as ParticleEmitterOptions, hD as PartsEvent, hE as PartsEvictionReason, hF as Payload, hG as PersonaList, hH as PersonaQuery, hI as PhysicsBodyDescriptor, hJ as PhysicsWorld, hK as PickedFile, hL as PlaceContribution, hM as PlaceDetail, hN as PlaceId, hO as PlacePage, hP as PlaceProvenance, hQ as PlaceRef, hR as PlaceSearch, hS as PlaceSummary, hT as PlacementId, hU as PlacementOutcome, hV as PlacementRequest, hW as PlacementStatus, hX as PlanarAxis, P as PlatformAudioDecoder, hY as PlatformEngineFunction, e as PlatformEngineRuntime, hZ as PlatformProfile, h_ as PlayOptions, h$ as PointerState, i0 as PostId, i1 as Predicate, i2 as PremiumHolding, i3 as PrepareActionRequest, i4 as PreparedAction, i5 as PreparedEngine, i6 as PresenceDeltaEntry, i7 as PresenceDeltaView, i8 as PresenceEntry, i9 as PresenceHeader, r as PresenceTickView, ia as PresenceVisibility, ib as PrizeId, ic as PrizesQuery, id as ProductDetail, ie as ProductId, ig as ProductPage, ih as ProductRef, ii as ProductSummary, w as ProgramInfo, ij as ProviderCallRequest, ik as ProviderEvent, il as ProviderEventId, im as ProviderOperationName, io as ProviderOutcome, ip as ProviderSubscribeRequest, iq as ProviderTopic, ir as PublishRequest, is as Published, it as PurchaseIntentId, iu as PurchaseIntentRef, iv as PurchaseIntentRequest, iw as PurchaseIntentStatus, ix as PurchaseIntentView, iy as QUANTISATION, iz as QueueName, iA as QueueRef, iB as QueueStats, iC as QuotaKind, iD as QuotaUsage, iE as RankLookup, iF as RankMember, iG as RankMemberQuery, iH as RankMode, iI as RankRangeQuery, iJ as RankUpdate, iK as RankWrite, iL as RankedEntry, iM as RankedPage, iN as RateLimitDecision, iO as RateLimitRequest, iP as ReadOptions, iQ as RegionCode, iR as RemixLineage, iS as RemoteWorkerRequest, iT as ReplayClass, iU as ReplayId, N as ReplayListener, a6 as ReplayMode, iV as ReplayRecording, iW as ReplayRules, iX as ReplayScoreRule, iY as ReplayVerdict, iZ as ReportId, a3 as ReportReason, i_ as ReportReceipt, i$ as ReportRequest, a2 as ReportTarget, a0 as RequestEnvelope, j0 as RequestId, j1 as RequestKey, j2 as ResourceKind, a5 as ResponseEnvelope, j3 as ResultId, j4 as ResultStatus, j5 as ResumeRequest, j6 as RetryPolicy, j7 as ReturnToken, j8 as Revision, j9 as RevisionId, ja as RevisionNotice, jb as RevocationReason, jc as RewardIntent, jd as RoomAccess, je as RoomApi, jf as RoomCommand, jg as RoomControlRequest, jh as RoomDeparture, ji as RoomEvent, jj as RoomHandle, jk as RoomHistory, jl as RoomHistoryRequest, jm as RoomId, jn as RoomInputHeader, o as RoomInputMessage, jo as RoomInviteRequest, jp as RoomInviteResult, jq as RoomMember, jr as RoomMode, js as RoomModel, jt as RoomMoveReceipt, ju as RoomMoveRequest, R as RoomRealtime, jv as RoomRef, jw as RoomResult, jx as RoomResultRequest, jy as RoomRetention, jz as RoomRole, jA as RoomState, jB as RoomStatus, jC as RoomTarget, jD as RowScope, jE as RuleId, jF as RuleKind, jG as SPEND_LIMITS, jH as SafeAreaInsets, jI as SaveSlots, jJ as Scene, jK as SceneManager, jL as ScheduleRequest, jM as SchemaName, jN as SchemaRef, jO as ScoreReceipt, jP as ScoreStatus, jQ as ScreenedContent, jR as ScreeningId, jS as ScreeningRef, jT as ScreeningRequest, jU as ScreeningResult, jV as ScreeningVerdict, jW as SearchDocument, jX as SearchDocumentId, jY as SearchHit, jZ as SearchIndexName, j_ as SearchIndexRequest, j$ as SearchIndexed, k0 as SearchQuery, k1 as SearchRemoveRequest, k2 as SearchRemoved, k3 as SearchResults, k4 as SecretHandle, k5 as SecretHandleGrant, k6 as SecretName, k7 as SecretRequest, k8 as SecretSignRequest, k9 as SecretSignature, ka as SeedGrant, kb as SeedRequest, kc as SeedScope, kd as SeededStream, ke as SelectedContext, kf as SelectedContextKind, kg as SendGiftRequest, kh as ServiceId, ki as SessionOutcome, kj as SessionToken, kk as ShareAudience, kl as ShareRequest, a8 as ShareResult, km as ShareTarget, kn as ShareToken, ko as SignatureAlgorithm, kp as SlotId, kq as SnapshotHoldMs, kr as SocialPostKind, ks as SocialPostRequest, a7 as SocialPostResult, kt as SortDirection, ku as SortKey, kv as SpawnTarget, kw as SpectatorPolicy, kx as SpendAllowance, ky as SpendGrant, kz as SpendLimit, kA as SpendReceiptId, kB as SpendRequest, kC as SpendResult, kD as SpendStatus, kE as SponsoredItem, kF as SponsoredItemId, kG as SponsoredItemList, kH as SponsoredItemsQuery, kI as SponsoredPrize, kJ as SponsoredPrizeList, kK as Standing, kL as StatementName, kM as StatusLineRequest, kN as StepResult, kO as StoreAccess, kP as StoreApi, kQ as StoreCheckpoint, kR as StoreCheckpointRequest, kS as StoreCommit, kT as StoreCommitRequest, kU as StoreEntry, kV as StoreEntryPage, kW as StoreEvent, kX as StoreGetRequest, kY as StoreHandle, kZ as StoreId, k_ as StoreKey, k$ as StoreListRequest, l0 as StoreMigrateRequest, l1 as StoreRestoreRequest, l2 as StoreSubscribeRequest, l3 as StoreSubscription, l4 as StoreWrite, l5 as SubmitScoreRequest, l6 as SubscriptionClosed, I as SubscriptionGrant, l7 as SubscriptionId, l8 as SubscriptionRef, l9 as SurfacePointer, la as SurfacePointerListener, lb as SurfacePointerPhase, lc as SurfaceSafeAreaListener, ld as SurfaceWheelListener, le as TableName, lf as TableSpec, lg as TaskApi, lh as TaskEvent, li as TaskId, lj as TaskRef, lk as TaskState, ll as TaskStatus, lm as TextDirection, ln as TickAdmission, T as TickEndpoints, lo as TimeZoneName, lp as TopicApi, lq as TopicMessage, lr as TopicName, ls as TopicRequest, lt as TopicSubscription, lu as TradeId, lv as TradeLeg, lw as TradeOffer, lx as TradeProposal, ly as TradeRef, lz as TradeSettlement, lA as TradeStatus, lB as TransactionCommit, lC as TransactionId, lD as TransactionRef, lE as TransactionStep, lF as TurnEngine, lG as TurnView, lH as TxAborted, lI as TxBeginRequest, lJ as TxCommitRequest, lK as TxHandle, lL as TxStageRequest, lM as TxStaged, lN as UiActionName, v as UiPresentation, lO as UiTrigger, lP as UniversalLink, lQ as UnixMillis, lR as UnlockId, U as Unsubscribe, lS as UploadHandle, lT as UserDecision, lU as VariantId, lV as VariantSummary, lW as VenueId, lX as VenueKind, lY as VenueSession, lZ as VisibilityRequest, l_ as VisibilityState, l$ as VoiceName, m0 as WalletOffer, m1 as WalletOffers, m2 as Weekday, m3 as WorkerApi, m4 as WorkerDelivery, m5 as WorkerEvent, m6 as WorkerHandle, m7 as WorkerId, m8 as WorkerLimits, m9 as WorkerMessage, ma as WorkerPlacement, mb as WorkerRef, mc as WorkerStatus, md as WorldAccess, me as WorldAdmin, mf as WorldApi, mg as WorldDeparture, mh as WorldEvent, mi as WorldGround, mj as WorldHandle, mk as WorldId, ml as WorldInstanceId, mm as WorldInvite, mn as WorldInviteRequest, mo as WorldLifecycle, mp as WorldLighting, mq as WorldList, mr as WorldListRequest, ms as WorldMember, mt as WorldMode, mu as WorldModerationRequest, mv as WorldPoint, mw as WorldRating, mx as WorldRef, my as WorldRole, mz as WorldRoleRequest, mA as WorldSanction, mB as WorldSession, mC as WorldSessionApi, mD as WorldSky, mE as WorldTemplate, mF as acknowledges, mG as compareStamps, mH as decodeAck, mI as decodeChannelFrame, mJ as decodeCounterAdd, mK as decodeCounterValue, mL as decodeFastRead, mM as decodeFastValue, mN as decodeMoveInput, mO as decodePresenceDelta, mP as decodePresenceTick, mQ as decodeRoomInputFrame, mR as dequantiseAxis, mS as dequantiseCellOffset, mT as dequantiseHeight, mU as dequantiseYaw, mV as encodeAck, mW as encodeCounterAdd, mX as encodeCounterValue, mY as encodeMoveInput, mZ as finishPresenceTick, m_ as frameLength, m$ as frameTag, n0 as peekFrameCode, n1 as quantiseAxis, n2 as quantiseCellOffset, n3 as quantiseHeight, n4 as quantiseYaw, n5 as readPresenceDeltaEntry, n6 as readPresenceEntry, n7 as stampChannelSender, n8 as writeChannelHeader, n9 as writeFastReadHeader, na as writeFastValueHeader, nb as writePresenceEntry, nc as writeRoomInputHeader } from './local-VZkqsCzR.js';
3
+ import { N as NetworkMemory } from './client-Dytx_ZTC.js';
4
+ export { C as ChannelSink, G as GAME_CHANNEL_RELIABLE_BASE, b as GAME_CHANNEL_SLOTS, I as InMemoryNetworkMemory, L as LocomotionMotion, M as Motion, c as MotionFactory, R as RoomClient, a as RoomClientOptions, d as RoomPhase, e as RoomPose, f as RoomPresence, g as RoomStats, S as StorageNetworkMemory, h as currentNetwork, l as locomotionMotion, p as previousSend, s as sendsOn } from './client-Dytx_ZTC.js';
5
+ import { R as RoomDialer, D as Dialed, B as Bytes, L as LinkHandler, a as Lane } from './link-BUTqGmyi.js';
6
+ export { P as Pace, b as RoomLink, c as Transport, T as TransportKind } from './link-BUTqGmyi.js';
7
+ export { M as MAX_STATE_FRAGMENTS, R as ROOM_STATE_SLOT, S as STATE_CHUNK_BYTES, a as STATE_FRAME_VERSION, b as STATE_HEADER_BYTES, c as StateListener, d as StatePredictor, e as StateReplicaStats, T as TickStateReplica } from './state-replica-stMtdkVD.js';
8
+ export { W as WebSocketDialer, a as WebTransportDialer } from './web-transport-C7MkBL0a.js';
9
+ export { LockstepLoopback, LockstepLoopbackOptions, TICK_COMMAND_AREA_BYTES, TICK_DEADLINE_MS, TICK_GUEST_HEAP_BYTES, TICK_MAX_COMMAND_PAYLOAD_BYTES, TICK_MAX_STATE_BYTES, TickLayout, TickSeed, TickSimulation, TickSimulationOptions, createTickRoomSimulation, tickLayout, tickSeededWords } from './interactives-tick.js';
10
+ import { T as TickRoomCtx } from './lockstep-D50Ia0JW.js';
11
+ export { L as LOCKSTEP_AXIS_LIMIT, a as LOCKSTEP_AXIS_X, b as LOCKSTEP_AXIS_Z, c as LOCKSTEP_BATCH_BYTES, d as LOCKSTEP_BUTTONS, e as LOCKSTEP_CONFIG_HEADER_BYTES, f as LOCKSTEP_CONFIG_MAX_WORDS, g as LOCKSTEP_CONFIG_TAG, h as LOCKSTEP_INPUT_ACTION, i as LOCKSTEP_INPUT_STRIDE, j as LOCKSTEP_MAX_SEATS, k as LOCKSTEP_PRESENT, l as LOCKSTEP_REFEREE_BYTES, m as LOCKSTEP_STORAGE_U64_HI, n as LOCKSTEP_STORAGE_U64_LO, o as LOCKSTEP_TABLE_ALIGN, p as LOCKSTEP_WINDOW, q as LockstepColumnType, r as LockstepKernel, s as LockstepKernelHost, t as LockstepLink, u as LockstepPhase, v as LockstepPhaseKind, w as LockstepRecord, x as LockstepRecordKind, y as LockstepRecordOut, z as LockstepRoomOptions, A as LockstepRules, B as LockstepRulesDefinition, C as LockstepSchema, D as LockstepSession, E as LockstepSessionOptions, F as LockstepStats, G as LockstepTable, H as LockstepTableOptions, I as LockstepWorld, J as TickRoom, K as TickRoomDefinition, M as TickRoomError, N as TickRoomErrorCode, O as TickState, P as TickStateSchema, Q as TickStateType, R as decodeLockstepRecord, S as defineLockstep, U as defineLockstepRoom, V as defineTickRoom, W as defineTickState, X as encodeLockstepConfig, Y as lockstepChecksum, Z as lockstepConfigHash, _ as lockstepKernel, $ as lockstepKernelHost, a0 as lockstepRefereeState, a1 as lockstepRefereeTick, a2 as lockstepTable, a3 as quantiseLockstepAxis, a4 as setLockstepKernelHost, a5 as unwrapTick16 } from './lockstep-D50Ia0JW.js';
12
+ import { S as ScriptEvaluator } from './fallback-CrG_lTFk.js';
13
+ import { U as UiElement, N as NumberOptions, G as GameUi, F as FontTable, C as CompiledStyle, b as UiStyles, c as UiProps, d as UiExclusion } from './ui-hi7S2YcH.js';
14
+ export { A as AccessibilityOptions, B as BREAKPOINT_LG, e as BREAKPOINT_SM, f as CompiledEntry, g as CompiledWords, h as GameUiError, i as GameUiListener, a as GameUiOptions, j as GameUiSink, P as PassthroughListener, R as RootOptions, S as STYLE_RECORD_REFERENCED, k as STYLE_RECORD_SAFE_EDGES, l as SlotFactory, m as StyleRecord, T as TextMeasurer, n as TransitionOptions, o as UiCondition, p as UiConditional, q as UiDynamicStyle, r as UiEnvironment, s as UiExact, t as UiMeasureStyle, u as UiStateName, v as UiStyleArg, w as UiStyleDefinition, x as UiStyleGradient, y as UiStyleInput, z as UiStyleProperty, D as UiStyleShadow, E as UiStyleSheet, H as UiStyleSheetOf, I as UiStyleValues, J as UiTextMeasureStyle, K as UiTextMetrics, L as UiTextOptions, W as WorldAnchorOptions, M as collectingSink, O as encodeStyleRecords, Q as props, V as styles } from './ui-hi7S2YcH.js';
15
+ import { U as UiClock } from './clock-B-UAjkKa.js';
16
+ export { a as UI_CLOCK_SECONDS, u as uiClock } from './clock-B-UAjkKa.js';
17
+ import { G as GameTheme } from './game-theme-Dg-ict5A.js';
18
+ export { D as DEFAULT_THEME, N as NineSlice, t as theme } from './game-theme-Dg-ict5A.js';
19
+ import { q as UiStyleError, h as UiStyle, b as UiColor, U as UiTheme, a as UiVarGroup } from './vars-Dc_PrhBK.js';
20
+ export { E as ExclusionRecord, G as GameUiEventView, N as NO_NODE, P as PatchWriter, S as StyleCache, T as TextComposition, r as UI_EVENT_BYTES, s as UI_EVENT_DX_OFFSET, t as UI_EVENT_DY_OFFSET, u as UI_EVENT_KIND_OFFSET, v as UI_EVENT_NODE_OFFSET, w as UI_EVENT_PHASE_OFFSET, x as UI_EVENT_POINTER_OFFSET, y as UI_EVENT_TIME_OFFSET, z as UI_EVENT_VALUE_OFFSET, A as UI_EVENT_X_OFFSET, B as UI_EVENT_Y_OFFSET, C as UI_EXCLUSION_HEADER_WORDS, D as UI_HEADER_BYTES, F as UI_MAGIC, H as UI_MAX_EXCLUSIONS, I as UI_RECORD_HEADER_WORDS, J as UI_SLOT_REFERENCE, K as UI_STYLE_REFERENCED, L as UI_STYLE_SAFE_EDGES, M as UI_TOKENS_REPLACE, O as UI_VERSION, Q as UiAction, f as UiAlign, R as UiAnchor, p as UiAnchorName, V as UiEasing, m as UiEasingName, W as UiEdges, X as UiEventKind, o as UiEventName, Y as UiExclusionShape, Z as UiFlag, _ as UiFocusFlag, $ as UiGradient, a0 as UiKind, i as UiKindName, d as UiLength, a1 as UiNumberFormat, c as UiNumberFormatName, a2 as UiOp, a3 as UiProp, a4 as UiRole, n as UiRoleName, a5 as UiShadow, a6 as UiSlot, a7 as UiTextOption, a8 as UiTrait, a9 as UiTransition, l as UiTransitionName, aa as UiUnit, e as UiVar, g as UiVarValue, ab as UiVectorData, ac as UiVectorDataKind, ad as UiVectorPlay, j as UiVectorPlayKind, k as UiVectorSeekKind, ae as WorldRootRecord, af as codePointOffset, ag as createTheme, ah as defineVars, ai as eventStride, aj as parseColor, ak as readEvent, al as textComposition, am as textEventCapacity, an as textEventPadding, ao as varId, ap as writeStyle, aq as writeTextEvent } from './vars-Dc_PrhBK.js';
21
+ import { A as ACTION_BASE, a as Action, C as CENTIDEGREES_PER_TURN, b as COMMAND_BYTES, c as COMMAND_OP_ID_BYTES, d as CommandPort, e as CommandWriter, D as DEFAULT_ANGLE_STEP_CENTIDEGREES, f as DEFAULT_GRID_MM, G as Ground, L as Lighting, g as Likeness, h as LocalWorld, i as LoopbackOptions, M as MAX_SELECT_IDS, j as MILLIMETRES_PER_METRE, k as MessageKind, l as MirroredResult, N as NOT_SENT, m as NO_BUILDER, n as Notice, O as OBJECT_RECORD_BYTES, P as POSITION, Q as QUATERNION_SCALE, R as ROTATION, S as SCALE, o as SCALE_UNIT_PERMILLE, p as SNAP_GRID, q as SNAP_SURFACE, r as Sanction, s as SelectMode, t as Sky, u as Status, T as TRANSFORM_BYTES, v as TRANSFORM_WORDS, V as Visibility, W as WORLD_CHANNEL_SLOT, w as WORLD_DEPTH_MM, x as WORLD_EXTENT_MM, y as WorldBuilder, z as WorldClockState, B as WorldConnection, E as WorldConnectionOptions, F as WorldMirror, H as WorldRoleCode, I as WorldSettings, J as connectWorld, K as encodeBare, U as encodeClock, X as encodeDuplicate, Y as encodeJoinCopy, Z as encodeModerate, _ as encodePlace, $ as encodeSelect, a0 as encodeSetTransform, a1 as encodeSettings, a2 as encodeTransformSelection, a3 as identityTransform, a4 as yawRotation } from './online-XeymeM9s.js';
22
+ import { D as Dialogue, I as Infer, S as Schema, O as ObjectOf, J as JsonSchema, A as ArrayOptions, a as JsonValue, N as NumberOptions$1, b as StringOptions, d as dialogueSchema, t } from './schema-BrWxzKp6.js';
23
+ import { n as PackageWeaveRef, o as WEAVE_BOUNDARY_MASK, p as WEAVE_CHILD_ENTRY_BYTES, q as WEAVE_HEAD_DOMAIN, r as WEAVE_LEAF_DECORATED, s as WEAVE_LEAF_ENTRY_BYTES, t as WEAVE_LEAF_TWINNED, u as WEAVE_MAX_HEIGHT, v as WEAVE_MAX_NODE_BYTES, w as WEAVE_MAX_NODE_ENTRIES, x as WEAVE_MIN_NODE_ENTRIES, y as WEAVE_NODE_HEADER_BYTES, z as WEAVE_NODE_MAGIC, A as WEAVE_NODE_ZONE, B as WEAVE_VERSION, F as WeaveChunk, H as WeaveHead, J as WeaveHeadChunk, L as WeaveHeadGroup, N as WeaveLeaf, O as WeaveLeafVisitor, Q as WeaveNodeSource, R as WeavePlan, T as WeaveRefusal, U as WeaveRoot, V as WeaveRuntimeTag, X as WeaveScheduled, Y as WeaveSession, Z as WeaveTree, W as WeaveTrust, _ as WeaveVerifyError, $ as WeaveWalk, a0 as WovenIndex, a1 as buildWeave, a2 as childDigestAt, a3 as chunkWeaveSource, a4 as deliverSchedule, a5 as leafAt, a6 as leafDigest, a7 as leafDigestAt, a8 as leafFlags, a9 as leafLength, aa as leafZone, ab as nodeMatches, ac as openWeaveHead, ad as openWeaveSession, ae as planWeave, af as storeWeaveSource, ag as unweaveIndex, ah as validWeaveRoot, ai as verifyChild, aj as verifyRoot, ak as walkWeave, al as weaveHeadMessage, am as weaveNodeCount, an as weaveNodeLevel, ao as weaveNodeValid, ap as weaveParts, aq as woven } from './weave-delivery-CW-Kstut.js';
24
+ export { D as DEFAULT_DISK_RESERVE_BYTES, d as DEFAULT_KEPT_BUDGET_BYTES, e as DEFAULT_PART_STORE_BUDGET_BYTES, f as DEFAULT_PART_ZONE, E as EvictionListener, g as EvictionReason, G as GamePart, I as InstallOptions, K as KEEP_REASONS, h as KeepReason, M as MemoryPartBackend, i as PartEviction, j as PartSession, P as PartStoreBackend, c as PartStoreDisk, b as PartStoreOptions, a as PartStoreSnapshot, k as PartStoreStats, l as PartVerifyError, S as SharedPartStore } from './weave-delivery-CW-Kstut.js';
25
+ export { T as TOKEN_NAMESPACE, a as TokenName, t as themeTokens, b as tokens } from './tokens-K8yxwd6G.js';
26
+ import './network-ZXLD7l1b.js';
27
+ import './library-DXYaMFhi.js';
28
+
29
+ declare const KEY_NAMES: readonly string[];
30
+ declare const STYLE_PROPERTY_NAMES: readonly string[];
31
+ declare const Condition: {
32
+ readonly pressed: 1;
33
+ readonly focus: number;
34
+ readonly disabled: number;
35
+ readonly landscape: number;
36
+ readonly portrait: number;
37
+ readonly safe: number;
38
+ readonly sm: number;
39
+ readonly lg: number;
40
+ };
41
+ declare function conditionPriority(mask: number): number;
42
+
43
+ declare const STYLE_BLOCK_MAGIC = 827937875;
44
+ declare const STYLE_BLOCK_VERSION = 1;
45
+ declare const VariantKind: {
46
+ readonly literal: 0;
47
+ readonly null: 1;
48
+ readonly referenced: 2;
49
+ };
50
+ declare const SLOT_REFERENCE = 2147483648;
51
+ type StyleErrorKind = "property" | "condition" | "value" | "class" | "dynamic";
52
+ declare class UiStyleCompileError extends UiStyleError {
53
+ readonly kind: StyleErrorKind;
54
+ readonly subject: string;
55
+ readonly suggestion: string | null;
56
+ constructor(message: string, kind: StyleErrorKind, subject: string, suggestion: string | null);
57
+ }
58
+ declare function compileStyle(definition: unknown): Uint32Array;
59
+ interface BlockVariant {
60
+ readonly key: number;
61
+ readonly mask: number;
62
+ readonly kind: number;
63
+ readonly unit: number;
64
+ readonly refs: number;
65
+ readonly payload: readonly number[];
66
+ }
67
+ declare function readBlock(words: ArrayLike<number>): BlockVariant[];
68
+
69
+ declare function tailwindVocabulary(): readonly string[];
70
+ declare function tailwindStyle(classes: string): Record<string, unknown>;
71
+ declare function compileClasses(classes: string): Uint32Array;
72
+
73
+ declare function suggest(input: string, candidates: Iterable<string>): string | null;
74
+
75
+ declare const Connecting: {
76
+ readonly Idle: 0;
77
+ readonly Pending: 1;
78
+ readonly Won: 2;
79
+ readonly Failed: 3;
80
+ };
81
+ type Connecting = (typeof Connecting)[keyof typeof Connecting];
82
+ declare const Settled: {
83
+ readonly Waiting: 0;
84
+ readonly Dialed: 1;
85
+ readonly Failed: 2;
86
+ };
87
+ type Settled = (typeof Settled)[keyof typeof Settled];
88
+ declare class Attempt implements LinkHandler {
89
+ readonly dialer: RoomDialer;
90
+ private readonly race;
91
+ settled: Settled;
92
+ dialed: Dialed | null;
93
+ constructor(dialer: RoomDialer, race: Connector);
94
+ start(request: Bytes): void;
95
+ frame(lane: Lane, bytes: Uint8Array): void;
96
+ closed(): void;
97
+ backpressure(failures: number, status: number): void;
98
+ private readonly done;
99
+ private readonly failed;
100
+ }
101
+ declare class Connector {
102
+ private readonly primary;
103
+ private readonly fallback;
104
+ private readonly memory;
105
+ private readonly network;
106
+ private sink;
107
+ private request;
108
+ private first;
109
+ private second;
110
+ private won;
111
+ private networkKey;
112
+ private startedAt;
113
+ private lastNow;
114
+ private state;
115
+ constructor(primary: RoomDialer | null, fallback: RoomDialer | null, memory: NetworkMemory, network: () => string);
116
+ get winner(): Dialed | null;
117
+ begin(request: Bytes, sink: LinkHandler, nowMs: number): void;
118
+ poll(nowMs: number): Connecting;
119
+ cancel(): void;
120
+ release(): Dialed | null;
121
+ forward(attempt: Attempt, lane: Lane, bytes: Uint8Array): void;
122
+ lost(attempt: Attempt): void;
123
+ backpressure(attempt: Attempt, failures: number, status: number): void;
124
+ settled(attempt: Attempt): void;
125
+ private launchFallback;
126
+ private exhausted;
127
+ private fail;
128
+ }
129
+
130
+ declare const JoinStatus: {
131
+ readonly Admitted: 0;
132
+ readonly Malformed: 1;
133
+ readonly Forged: 2;
134
+ readonly Expired: 3;
135
+ readonly UnknownResume: 4;
136
+ readonly Full: 5;
137
+ readonly Overloaded: 6;
138
+ readonly Unavailable: 7;
139
+ readonly Prewarmed: 8;
140
+ readonly Denied: 9;
141
+ };
142
+ type JoinStatus = (typeof JoinStatus)[keyof typeof JoinStatus];
143
+ interface JoinReply {
144
+ status: JoinStatus;
145
+ slot: number;
146
+ route: number;
147
+ readonly resume: Uint8Array;
148
+ simulationHz: number;
149
+ sendHz: number;
150
+ tick: number;
151
+ }
152
+ declare function blankReply(): JoinReply;
153
+ declare function ticketRequest(ticket: Uint8Array, version?: number): Bytes;
154
+ declare function resumeRequest(token: Uint8Array, version?: number): Bytes;
155
+ declare function decodeJoinReply(bytes: Uint8Array, out: JoinReply): boolean;
156
+
157
+ interface Body {
158
+ x: number;
159
+ z: number;
160
+ axisX: number;
161
+ axisZ: number;
162
+ buttons: number;
163
+ }
164
+ declare function perAxisUnit(unitsPerSecond: number, stepNs: number): number;
165
+ declare function isqrt(value: number): number;
166
+ declare function spawn(body: Body, slot: number): void;
167
+ declare function steer(body: Body, axisX: number, axisZ: number, buttons: number): void;
168
+ declare class Locomotion {
169
+ readonly substeps: number;
170
+ readonly stepNs: number;
171
+ readonly walk: number;
172
+ readonly sprint: number;
173
+ constructor(simulationHz: number, physicsHz: number);
174
+ step(body: Body): void;
175
+ }
176
+
177
+ interface PanelOptions {
178
+ readonly theme?: GameTheme;
179
+ readonly style?: UiStyle;
180
+ }
181
+ declare function panel(ui: GameUi, options?: PanelOptions): UiElement;
182
+ interface IconButtonOptions {
183
+ readonly icon: number;
184
+ readonly natural?: readonly [number, number];
185
+ readonly label?: string;
186
+ readonly size?: number;
187
+ readonly theme?: GameTheme;
188
+ readonly style?: UiStyle;
189
+ readonly onTap: () => void;
190
+ }
191
+ interface IconButton {
192
+ readonly root: UiElement;
193
+ setEnabled(enabled: boolean): void;
194
+ }
195
+ declare function iconButton(ui: GameUi, options: IconButtonOptions): IconButton;
196
+ interface ProgressBarOptions {
197
+ readonly value: number;
198
+ readonly max?: number;
199
+ readonly color?: UiColor;
200
+ readonly width?: number;
201
+ readonly height?: number;
202
+ readonly theme?: GameTheme;
203
+ readonly label?: string;
204
+ }
205
+ interface ProgressBar {
206
+ readonly root: UiElement;
207
+ readonly fill: UiElement;
208
+ set(value: number): void;
209
+ }
210
+ declare function progressBar(ui: GameUi, options: ProgressBarOptions): ProgressBar;
211
+ interface CurrencyCounterOptions {
212
+ readonly value: number;
213
+ readonly icon?: number;
214
+ readonly theme?: GameTheme;
215
+ readonly number?: NumberOptions;
216
+ readonly width?: number;
217
+ readonly label?: string;
218
+ }
219
+ interface CurrencyCounter {
220
+ readonly root: UiElement;
221
+ readonly amount: UiElement;
222
+ set(value: number): void;
223
+ animateTo(value: number, seconds: number): void;
224
+ update(clock: UiClock): void;
225
+ }
226
+ declare function currencyCounter(ui: GameUi, options: CurrencyCounterOptions): CurrencyCounter;
227
+ interface TabsOptions {
228
+ readonly labels: readonly string[];
229
+ readonly selected?: number;
230
+ readonly theme?: GameTheme;
231
+ readonly onChange: (index: number) => void;
232
+ }
233
+ interface Tabs {
234
+ readonly root: UiElement;
235
+ readonly tabs: readonly UiElement[];
236
+ select(index: number): void;
237
+ }
238
+ declare function tabs(ui: GameUi, options: TabsOptions): Tabs;
239
+ interface ItemCardOptions {
240
+ readonly icon: number;
241
+ readonly natural?: readonly [number, number];
242
+ readonly title: string;
243
+ readonly price?: number;
244
+ readonly currency_icon?: number;
245
+ readonly rarity?: UiColor;
246
+ readonly theme?: GameTheme;
247
+ readonly onTap?: () => void;
248
+ }
249
+ interface ItemCard {
250
+ readonly root: UiElement;
251
+ setTitle(title: string): void;
252
+ setPrice(price: number): void;
253
+ setSelected(selected: boolean): void;
254
+ }
255
+ declare function itemCard(ui: GameUi, options: ItemCardOptions): ItemCard;
256
+ interface Toast {
257
+ readonly root: UiElement;
258
+ show(text: string, seconds?: number): void;
259
+ update(clock: UiClock): void;
260
+ }
261
+ declare function toast(ui: GameUi, options?: {
262
+ readonly theme?: GameTheme;
263
+ }): Toast;
264
+ interface DialogueBoxOptions {
265
+ readonly theme?: GameTheme;
266
+ readonly portrait?: number;
267
+ readonly characters_per_second?: number;
268
+ readonly onNext?: () => void;
269
+ }
270
+ interface DialogueBox {
271
+ readonly root: UiElement;
272
+ say(speaker: string, line: string): void;
273
+ skip(): void;
274
+ update(clock: UiClock): void;
275
+ readonly finished: boolean;
276
+ }
277
+ declare function dialogueBox(ui: GameUi, options?: DialogueBoxOptions): DialogueBox;
278
+ interface WorldLabelOptions {
279
+ readonly text: string;
280
+ readonly position: readonly [number, number, number];
281
+ readonly health?: number;
282
+ readonly theme?: GameTheme;
283
+ readonly reference_distance?: number;
284
+ }
285
+ interface WorldLabel {
286
+ readonly root: UiElement;
287
+ move(x: number, y: number, z: number): void;
288
+ setText(text: string): void;
289
+ setHealth(ratio: number): void;
290
+ setOccluded(occluded: boolean): void;
291
+ }
292
+ declare function worldLabel(ui: GameUi, options: WorldLabelOptions): WorldLabel;
293
+
294
+ interface SimulatorHost {
295
+ render(tree: UiNode): void;
296
+ openSheet?(request: HostSheetRequest): Promise<SheetResult>;
297
+ toast(text: string): void;
298
+ acquireSurface?(options: SurfaceOptions): Promise<GraphicsSurface>;
299
+ engine?(): Promise<PlatformEngine>;
300
+ requestFrame?(callback: (time: number) => void): number;
301
+ cancelFrame?(handle: number): void;
302
+ }
303
+ interface SimulatorOptions {
304
+ readonly host: SimulatorHost;
305
+ readonly profile: RenderingProfile;
306
+ readonly interactiveId?: string;
307
+ readonly persona?: Persona;
308
+ readonly locale?: LocaleInfo;
309
+ readonly now?: () => number;
310
+ readonly seed?: number;
311
+ }
312
+ interface Simulator {
313
+ readonly ctx: Ctx;
314
+ readonly unsupported: ReadonlySet<string>;
315
+ readonly status: StatusLine;
316
+ readonly completions: readonly SessionCompletion[];
317
+ emit(event: LifecycleEvent): void;
318
+ dispatch(event: UiEvent): void;
319
+ dispose(): void;
320
+ }
321
+ declare class SimulatorUnsupportedError extends Error {
322
+ readonly member: string;
323
+ constructor(member: string);
324
+ }
325
+ declare const SIMULATOR_FIXED_STEP_MS: number;
326
+ declare function createSimulatorCtx(options: SimulatorOptions): Simulator;
327
+
328
+ declare const ENGINE_ABI_VERSION = 1882262861;
329
+ declare const ENGINE_ABI_DIGEST = 1886559909;
330
+ declare const ENGINE_EXPORT_PROTOTYPES: Readonly<Record<string, number>>;
331
+
332
+ declare const ENGINE_COMPATIBILITY_EXPORT_NAMES: readonly ["engine_export_prototype_of", "engine_abi_compatible"];
333
+ declare const ENGINE_FEATURE_NAMES: readonly ["particles", "raw_compute", "raw_render", "text", "pick", "post_shaders", "audio", "physics", "models", "images", "ai", "ui", "animation", "render_targets", "kernel_isa_1", "kernel_gpu_1", "kernel_isa_2", "fluid_1", "destruction_1", "chemistry_1", "genesis_1", "kernel_isa_3", "kernel_isa_4", "transforms_1", "scenery_1", "world_lazy_packs_1", "kernel_gather_1", "render_kernel_instances_1", "asset_reload_1", "kernel_scan_1", "texture_encode_1", "vector_1", "arena_commit_1", "vector_data_1", "compute_budget_1", "rollback_1", "inspector_1", "soft_body_1", "fluid_elastic_1", "render_feed_pose_1", "audio_lockstep_1", "audio_worklet_1", "kernel_mlp_1", "voxel_facet_1", "kernel_simd_1", "media_volume_1", "gpu_smoke_1", "reactive_fluid_1", "cloth_1", "script_shaders_1", "vector_world_1", "joints_6dof_1", "ragdoll_1", "shapes_compound_1", "rigid_coupling_1", "destruction_2", "ragdoll_policy_1", "kernel_query_rank_1", "kernel_moe_1"];
334
+ type EngineFeatureName = (typeof ENGINE_FEATURE_NAMES)[number];
335
+ interface EngineFeatureUse {
336
+ readonly types: readonly string[];
337
+ readonly property: string;
338
+ readonly values: readonly string[];
339
+ }
340
+ interface EngineFeature {
341
+ readonly exports: readonly string[];
342
+ readonly calls: readonly string[];
343
+ readonly web?: readonly string[];
344
+ readonly uses?: readonly EngineFeatureUse[];
345
+ }
346
+ declare function engineFeatureMember(call: string): string;
347
+ declare const ENGINE_FEATURES: Readonly<Record<EngineFeatureName, EngineFeature>>;
348
+ declare const ENGINE_ARENA_FEATURE: EngineFeatureName;
349
+ declare const ENGINE_ARENA_BASELINE_BYTES: number;
350
+ declare const ENGINE_ARENA_CHUNK_BYTES: number;
351
+ declare const ENGINE_ARENA_MAX_CEILING_BYTES: number;
352
+ declare const ENGINE_OPTIONAL_EXPORTS: ReadonlySet<string>;
353
+ interface EngineExportUse {
354
+ readonly name: string;
355
+ readonly prototype: number;
356
+ }
357
+ declare function engineExportsUsed(glue: readonly string[], engine: ReadonlyMap<string, number>): EngineExportUse[];
358
+ declare function unmetEngineExport(required: readonly EngineExportUse[], advertised: ReadonlyMap<string, number>): string | null;
359
+ declare function engineFeatureExports(feature: EngineFeature, web: boolean): readonly string[];
360
+ declare function unmetEngineFeature(required: readonly string[], available: readonly string[]): string | null;
361
+
362
+ declare const GATED_ENGINE_FEATURES: readonly ["physics", "models", "images"];
363
+ declare const TEXT_DICTIONARIES_ASSET = "runtime/text-dictionaries.bin";
364
+ declare const TEXT_DICTIONARIES_FILE = "text-dictionaries.bin";
365
+ type GatedEngineFeature = (typeof GATED_ENGINE_FEATURES)[number];
366
+ interface EngineCoreVariant {
367
+ readonly name: string;
368
+ readonly features: readonly GatedEngineFeature[];
369
+ readonly file: string;
370
+ readonly threaded?: boolean;
371
+ readonly scripts?: boolean;
372
+ readonly shaders?: boolean;
373
+ readonly gl?: boolean;
374
+ }
375
+ declare const ENGINE_CORE_GL_UNIT = "@cimplify/engine-core-gl";
376
+ declare const GL_CORE_GROUP = "gpu:webgl2";
377
+ declare const GL_CORE_PATH = "runtime/engine-core-gl.wasm";
378
+ declare const BASE_ENGINE_VARIANT: EngineCoreVariant;
379
+ declare const PHYSICS_ENGINE_VARIANT: EngineCoreVariant;
380
+ declare const CONTENT_ENGINE_VARIANT: EngineCoreVariant;
381
+ declare const FULL_ENGINE_VARIANT: EngineCoreVariant;
382
+ declare const THREADED_ENGINE_VARIANT: EngineCoreVariant;
383
+ declare const ENGINE_VARIANTS: readonly EngineCoreVariant[];
384
+ declare const THREADED_ENGINE_VARIANTS: readonly EngineCoreVariant[];
385
+ declare const SCRIPTS_ENGINE_VARIANT: EngineCoreVariant;
386
+ declare const SCRIPTS_ENGINE_VARIANTS: readonly EngineCoreVariant[];
387
+ declare const SCRIPTS_SHADERS_ENGINE_VARIANT: EngineCoreVariant;
388
+ declare const SCRIPTS_SHADERS_ENGINE_VARIANTS: readonly EngineCoreVariant[];
389
+ declare const GL_ENGINE_VARIANTS: readonly EngineCoreVariant[];
390
+ declare function isGlVariant(variant: EngineCoreVariant): boolean;
391
+ declare function glVariantOf(variant: EngineCoreVariant): EngineCoreVariant | null;
392
+ declare function webGpuVariantOf(variant: EngineCoreVariant): EngineCoreVariant;
393
+ declare const ENGINE_FEATURE_CARGO: Readonly<Record<string, readonly string[]>>;
394
+ declare function engineVariantFor(features: readonly string[], scripts?: boolean, shaders?: boolean): EngineCoreVariant;
395
+ declare function scriptsVariantOf(core: EngineCoreVariant): EngineCoreVariant;
396
+ declare function scriptsShadersVariantOf(core: EngineCoreVariant): EngineCoreVariant;
397
+ declare function isScriptsVariant(variant: EngineCoreVariant): boolean;
398
+ declare function isShadersVariant(variant: EngineCoreVariant): boolean;
399
+ declare function threadedVariantOf(core: EngineCoreVariant): EngineCoreVariant;
400
+ declare function isThreadedVariant(variant: EngineCoreVariant): boolean;
401
+
402
+ declare const ENGINE_AUDIO_UNIT = "@cimplify/engine-audio";
403
+ declare const AUDIO_WORKLET_GROUP = "audio:worklet";
404
+ declare const AUDIO_WORKLET_PATH = "runtime/engine-audio.wasm";
405
+ declare const AUDIO_WORKLET_FILE = "engine_audio_web.wasm";
406
+ declare const AUDIO_RELAY_EXPORT = "engine_audio_relay_create";
407
+
408
+ type ExceptionEncoding = "legacy" | "exnref";
409
+ declare const LUAU_VM_EXCEPTIONS: ExceptionEncoding;
410
+ type WasmValidator = (bytes: BufferSource) => boolean;
411
+ interface ExceptionSupport {
412
+ readonly legacy: boolean;
413
+ readonly exnref: boolean;
414
+ }
415
+ declare function exceptionSupport(validate?: WasmValidator | null): ExceptionSupport;
416
+
417
+ type LuauScriptsPath = "vm" | "fallback";
418
+ interface LuauScriptsOptions {
419
+ readonly seed?: number;
420
+ readonly memoryLimit?: number;
421
+ }
422
+ interface LuauScripts {
423
+ readonly path: LuauScriptsPath;
424
+ load(bytecode: Uint8Array): Promise<number>;
425
+ call(module: number, name: string, ...args: number[]): number;
426
+ frames(module: number, name: string, dt: number, count: number): bigint;
427
+ setBudget(budget: number): void;
428
+ budget(): number;
429
+ setClock(seconds: number, epoch: number): void;
430
+ digest(): bigint;
431
+ resetDigest(): void;
432
+ }
433
+ declare class LuauScriptError extends Error {
434
+ readonly budget: boolean;
435
+ constructor(message: string, budget?: boolean);
436
+ }
437
+
438
+ type ModuleCompiler = (response: Response) => Promise<WebAssembly.Module>;
439
+ declare class LuauVmModules {
440
+ private readonly compile;
441
+ private readonly compiled;
442
+ private started;
443
+ constructor(compile?: ModuleCompiler);
444
+ get compilations(): number;
445
+ has(address: string): boolean;
446
+ get(address: string): Promise<WebAssembly.Module> | null;
447
+ streamed(address: string, open: () => Promise<Response>): Promise<WebAssembly.Module>;
448
+ adopt(address: string, compiled: () => Promise<WebAssembly.Module>): Promise<WebAssembly.Module>;
449
+ private remember;
450
+ }
451
+ declare const luauVmModules: LuauVmModules;
452
+
453
+ declare const ENGINE_LUAU_UNIT = "@cimplify/engine-luau";
454
+ declare const LUAU_SCRIPTS_GROUP = "scripts:luau";
455
+ declare const LUAU_VM_PATH = "runtime/engine-luau.wasm";
456
+ declare const LUAU_VM_FILE = "engine_luau.wasm";
457
+ declare const ENGINE_CORE_SCRIPTS_UNIT = "@cimplify/engine-core-scripts";
458
+ declare const SCRIPTS_CORE_GROUP = "scripts:engine";
459
+ declare const SCRIPTS_CORE_PATH = "runtime/engine-core-scripts.wasm";
460
+ declare function luauVmRunsHere(): boolean;
461
+ interface OpenLuauScripts {
462
+ readonly vm: () => Promise<WebAssembly.Module>;
463
+ readonly options?: LuauScriptsOptions;
464
+ readonly support?: ExceptionSupport;
465
+ readonly evaluate?: ScriptEvaluator;
466
+ }
467
+ declare function openLuauScripts(request: OpenLuauScripts): Promise<LuauScripts>;
468
+
469
+ declare const UI_INSPECT_HOOK = "__cimplify_inspect";
470
+ declare const UI_CHECKS: readonly ["text_overflow", "tap_target", "contrast", "safe_area", "text_size"];
471
+ type UiCheckName = (typeof UI_CHECKS)[number];
472
+ declare const UI_EXEMPT_REASONS: {
473
+ readonly text_overflow: readonly ["intentional_clip", "marquee", "decorative"];
474
+ readonly tap_target: readonly ["expanded_hit_area", "dense_grid", "secondary_control", "decorative"];
475
+ readonly contrast: readonly ["decorative", "disabled", "logo", "inside_image"];
476
+ readonly safe_area: readonly ["full_bleed_background", "dismissible_overlay", "decorative"];
477
+ readonly text_size: readonly ["badge_counter", "legal_fine_print", "decorative"];
478
+ };
479
+ type UiExemptReason<C extends UiCheckName> = (typeof UI_EXEMPT_REASONS)[C][number];
480
+ interface UiInspectHook {
481
+ site(node: number, where: string, name: string | null): void;
482
+ exempt(node: number, check: string, reason: string): void;
483
+ scene(): string | null;
484
+ sceneApplied(name: string): void;
485
+ sceneEntered?(name: string): void;
486
+ }
487
+ declare function uiSite<E extends UiElement>(element: E, where: string, name?: string): E;
488
+ declare function exemptUi<E extends UiElement, C extends UiCheckName>(element: E, check: C, reason: UiExemptReason<C>): E;
489
+ declare function inspectScene(registered: (name: string) => boolean): string | null;
490
+ declare function inspectSceneSwitch(target: string, registered: (name: string) => boolean): string;
491
+ declare function inspectSceneEntered(name: string): void;
492
+
493
+ declare function registerFontTable(font: number, table: FontTable): void;
494
+ declare function fontTable(font: number): FontTable | undefined;
495
+
496
+ declare class BreakDictionaries {
497
+ readonly languages: number;
498
+ private readonly first;
499
+ private readonly last;
500
+ private readonly offset;
501
+ private readonly count;
502
+ private readonly root;
503
+ private readonly edges;
504
+ constructor(bytes: ArrayBuffer);
505
+ language(codepoint: number): number;
506
+ child(language: number, node: number, label: number): number;
507
+ contains(word: string): boolean;
508
+ rootOf(language: number): number;
509
+ firstOf(language: number): number;
510
+ lastOf(language: number): number;
511
+ }
512
+ declare function registerBreakDictionaries(bytes: ArrayBuffer | null): BreakDictionaries | null;
513
+ declare function breakDictionaries(): BreakDictionaries | null;
514
+
515
+ declare const KIT_NAMESPACE = "kit";
516
+ declare const UI_FONT_SET: readonly ["sans", "rounded", "condensed", "serif", "mono", "pixel"];
517
+ type UiFontName = (typeof UI_FONT_SET)[number] | (string & {});
518
+ declare const UI_DEFAULT_FONT = 0;
519
+ declare const UI_FONT_ROLES: readonly ["body", "display", "mono"];
520
+ type UiFontRole = (typeof UI_FONT_ROLES)[number];
521
+ interface KitMetrics {
522
+ readonly radius: number;
523
+ readonly radiusSmall: number;
524
+ readonly padding: number;
525
+ readonly gap: number;
526
+ readonly gapSmall: number;
527
+ readonly small: number;
528
+ readonly body: number;
529
+ readonly title: number;
530
+ readonly display: number;
531
+ readonly borderWidth: number;
532
+ readonly focusWidth: number;
533
+ readonly pressScale: number;
534
+ }
535
+ interface KitColors {
536
+ readonly surface: UiColor;
537
+ readonly raised: UiColor;
538
+ readonly border: UiColor;
539
+ readonly accent: UiColor;
540
+ readonly onAccent: UiColor;
541
+ readonly text: UiColor;
542
+ readonly muted: UiColor;
543
+ readonly track: UiColor;
544
+ readonly danger: UiColor;
545
+ readonly success: UiColor;
546
+ readonly gold: UiColor;
547
+ readonly focus: UiColor;
548
+ readonly scrim: UiColor;
549
+ readonly highlight: UiColor;
550
+ readonly shadow: UiColor;
551
+ readonly onDanger: UiColor;
552
+ readonly silver: UiColor;
553
+ readonly bronze: UiColor;
554
+ }
555
+ interface KitFonts {
556
+ readonly body: UiFontName;
557
+ readonly display: UiFontName;
558
+ readonly mono: UiFontName;
559
+ }
560
+ declare const kitVars: UiVarGroup<{
561
+ readonly focus: "#ffffffff";
562
+ readonly scrim: "#05070cb3";
563
+ readonly highlight: "#ffffff1f";
564
+ readonly shadow: "#0000008c";
565
+ readonly onDanger: "#ffffffff";
566
+ readonly silver: "#c7ccd6ff";
567
+ readonly bronze: "#cd7f32ff";
568
+ readonly radius: number;
569
+ readonly radiusSmall: number;
570
+ readonly padding: number;
571
+ readonly gap: number;
572
+ readonly gapSmall: number;
573
+ readonly small: number;
574
+ readonly body: number;
575
+ readonly title: number;
576
+ readonly display: number;
577
+ readonly borderWidth: number;
578
+ readonly focusWidth: number;
579
+ readonly pressScale: number;
580
+ }>;
581
+ declare const AI_MARK_NAMESPACE = "ai_mark";
582
+ interface AiMarkTheme {
583
+ readonly fill: UiColor;
584
+ readonly text: UiColor;
585
+ readonly fontSize: number;
586
+ readonly radius: number;
587
+ readonly paddingInline: number;
588
+ }
589
+ declare const DEFAULT_AI_MARK: AiMarkTheme;
590
+ declare const aiMarkVars: UiVarGroup<{
591
+ readonly fill: UiColor;
592
+ readonly text: UiColor;
593
+ readonly fontSize: number;
594
+ readonly radius: number;
595
+ readonly paddingInline: number;
596
+ }>;
597
+ declare function aiMarkTheme(overrides: Partial<AiMarkTheme>): UiTheme;
598
+ interface ThemePackDefinition {
599
+ readonly name: string;
600
+ readonly colors: KitColors;
601
+ readonly metrics?: Partial<KitMetrics>;
602
+ readonly fonts: KitFonts;
603
+ readonly motion?: number;
604
+ readonly aiMark?: Partial<AiMarkTheme>;
605
+ }
606
+ interface ThemePack {
607
+ readonly name: string;
608
+ readonly colors: KitColors;
609
+ readonly metrics: KitMetrics;
610
+ readonly fonts: KitFonts;
611
+ readonly game: GameTheme;
612
+ readonly theme: UiTheme;
613
+ }
614
+ declare function themePack(definition: ThemePackDefinition): ThemePack;
615
+ declare const NEON_ARCADE: ThemePack;
616
+ declare const COZY_PASTEL: ThemePack;
617
+ declare const SPORTS_BROADCAST: ThemePack;
618
+ declare const FANTASY_PARCHMENT: ThemePack;
619
+ declare const THEME_PACKS: readonly ThemePack[];
620
+ declare function kitFamily(ui: GameUi, role: UiFontRole): number;
621
+ declare function fontStyle(ui: GameUi, role: UiFontRole): CompiledStyle;
622
+ declare function registerUiFont(ui: GameUi, name: UiFontName, font: number, weight?: number): void;
623
+ declare function applyThemePack(ui: GameUi, pack: ThemePack): void;
624
+ declare function currentThemePack(ui: GameUi): ThemePack | null;
625
+
626
+ type UiLayoutKeys = {
627
+ margin?: unknown;
628
+ marginInline?: unknown;
629
+ marginBlock?: unknown;
630
+ marginTop?: unknown;
631
+ marginRight?: unknown;
632
+ marginBottom?: unknown;
633
+ marginLeft?: unknown;
634
+ width?: unknown;
635
+ minWidth?: unknown;
636
+ maxWidth?: unknown;
637
+ height?: unknown;
638
+ minHeight?: unknown;
639
+ maxHeight?: unknown;
640
+ grow?: unknown;
641
+ shrink?: unknown;
642
+ basis?: unknown;
643
+ alignSelf?: unknown;
644
+ position?: unknown;
645
+ inset?: unknown;
646
+ top?: unknown;
647
+ right?: unknown;
648
+ bottom?: unknown;
649
+ left?: unknown;
650
+ zIndex?: unknown;
651
+ };
652
+ type UiSurfaceKeys = {
653
+ fill?: unknown;
654
+ backgroundColor?: unknown;
655
+ borderColor?: unknown;
656
+ borderWidth?: unknown;
657
+ radius?: unknown;
658
+ borderRadius?: unknown;
659
+ shadow?: unknown;
660
+ gradient?: unknown;
661
+ opacity?: unknown;
662
+ };
663
+ type UiTextKeys = {
664
+ fontSize?: unknown;
665
+ fontWeight?: unknown;
666
+ textColor?: unknown;
667
+ color?: unknown;
668
+ letterSpacing?: unknown;
669
+ lineHeight?: unknown;
670
+ textAlign?: unknown;
671
+ };
672
+ type UiPaddingKeys = {
673
+ padding?: unknown;
674
+ paddingInline?: unknown;
675
+ paddingBlock?: unknown;
676
+ gap?: unknown;
677
+ };
678
+
679
+ declare const AI_MARK_SOURCES: readonly ["generated", "cached", "replicated"];
680
+ declare const AI_MARK_TEXT = "AI";
681
+ declare const AI_MARK_LABEL = "AI generated";
682
+ type AiMarkSource = GenerateSource | null | undefined;
683
+ declare function isAiGenerated(source: AiMarkSource): boolean;
684
+ type AiMarkStyle = UiStyles<UiSurfaceKeys & UiPaddingKeys & UiLayoutKeys>;
685
+ type AiMarkTextStyle = UiStyles<UiTextKeys>;
686
+ type GeneratedTextStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys & UiPaddingKeys>;
687
+ interface AiMarkOptions {
688
+ readonly text?: string;
689
+ readonly style?: AiMarkStyle;
690
+ readonly textStyle?: AiMarkTextStyle;
691
+ }
692
+ declare class AiMark {
693
+ readonly ui: GameUi;
694
+ readonly root: UiElement;
695
+ readonly text: UiElement;
696
+ private readonly states;
697
+ private on;
698
+ constructor(ui: GameUi, options?: AiMarkOptions);
699
+ get shown(): boolean;
700
+ show(source: AiMarkSource): boolean;
701
+ }
702
+ declare function aiMark(ui: GameUi, options?: AiMarkOptions): AiMark;
703
+ declare function aiLabel(text: string, marked: boolean): string;
704
+ interface GeneratedTextOptions {
705
+ readonly text?: string;
706
+ readonly source?: AiMarkSource;
707
+ readonly role?: UiFontRole;
708
+ readonly wrap?: boolean;
709
+ readonly style?: GeneratedTextStyle;
710
+ readonly textStyle?: UiStyles<UiTextKeys>;
711
+ readonly mark?: AiMarkOptions;
712
+ }
713
+ declare class GeneratedText {
714
+ readonly ui: GameUi;
715
+ readonly root: UiElement;
716
+ readonly text: UiElement;
717
+ readonly mark: AiMark;
718
+ private current;
719
+ private source;
720
+ private shown;
721
+ private readonly a11y;
722
+ constructor(ui: GameUi, options?: GeneratedTextOptions);
723
+ get value(): string;
724
+ get marked(): boolean;
725
+ set(text: string, source?: AiMarkSource): void;
726
+ show(result: Pick<Generated<string>, "value" | "source">): void;
727
+ }
728
+ declare function generatedText(ui: GameUi, options?: GeneratedTextOptions): GeneratedText;
729
+
730
+ type UiMove = "next" | "previous" | "up" | "down" | "left" | "right";
731
+ interface UiFocusTarget {
732
+ readonly root: UiElement;
733
+ readonly focusNode?: UiElement;
734
+ activate?(): void;
735
+ move?(move: UiMove): boolean;
736
+ focusChanged?(focused: boolean): void;
737
+ }
738
+ type UiFocusListener = (target: UiFocusTarget | null) => void;
739
+ declare class UiFocusScope {
740
+ readonly columns: number;
741
+ onBack: (() => boolean) | null;
742
+ readonly targets: UiFocusTarget[];
743
+ current: number;
744
+ constructor(columns?: number, onBack?: (() => boolean) | null);
745
+ add(target: UiFocusTarget): this;
746
+ remove(target: UiFocusTarget): this;
747
+ clear(): void;
748
+ }
749
+ declare function focusNodeOf(target: UiFocusTarget): UiElement;
750
+ declare class UiNavigator {
751
+ readonly base: UiFocusScope;
752
+ private readonly scopes;
753
+ private readonly listeners;
754
+ private shown;
755
+ constructor(base?: UiFocusScope);
756
+ get scope(): UiFocusScope;
757
+ get depth(): number;
758
+ get focused(): UiFocusTarget | null;
759
+ onChange(listener: UiFocusListener): () => void;
760
+ has(scope: UiFocusScope): boolean;
761
+ push(scope: UiFocusScope): void;
762
+ pop(scope?: UiFocusScope | null): void;
763
+ focus(target: UiFocusTarget): boolean;
764
+ move(move: UiMove): boolean;
765
+ activate(): boolean;
766
+ back(): boolean;
767
+ blur(): void;
768
+ private first;
769
+ private restore;
770
+ private show;
771
+ private set;
772
+ }
773
+
774
+ type CollectionStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys>;
775
+ interface InventoryGridOptions {
776
+ readonly columns: number;
777
+ readonly rows: number;
778
+ readonly cell?: number;
779
+ readonly gap?: number;
780
+ readonly label?: string;
781
+ readonly natural?: readonly [number, number];
782
+ readonly style?: CollectionStyle;
783
+ readonly scope?: UiFocusScope;
784
+ readonly onMove?: (from: number, to: number) => void;
785
+ readonly onSelect?: (index: number) => void;
786
+ }
787
+ declare class InventoryGrid implements UiFocusTarget {
788
+ readonly ui: GameUi;
789
+ readonly root: UiElement;
790
+ readonly cells: readonly UiElement[];
791
+ readonly icons: readonly UiElement[];
792
+ readonly counts: readonly UiElement[];
793
+ readonly ghost: UiElement;
794
+ readonly ghostIcon: UiElement;
795
+ readonly assets: Int32Array;
796
+ readonly amounts: Int32Array;
797
+ readonly names: string[];
798
+ readonly columns: number;
799
+ readonly rows: number;
800
+ onMove: ((from: number, to: number) => void) | null;
801
+ onSelect: ((index: number) => void) | null;
802
+ private readonly pitch;
803
+ private readonly size;
804
+ private readonly cellStates;
805
+ private readonly iconStates;
806
+ private readonly ghostStates;
807
+ private readonly countStates;
808
+ private readonly natural;
809
+ private readonly cellA11y;
810
+ private cursorAt;
811
+ private focused;
812
+ private source;
813
+ private hover;
814
+ private readonly travel;
815
+ private readonly cellColumn;
816
+ private readonly cellRow;
817
+ private held;
818
+ constructor(ui: GameUi, options: InventoryGridOptions);
819
+ get cursor(): number;
820
+ get dragging(): number;
821
+ setSlot(index: number, asset: number, count: number, name: string): void;
822
+ clearSlot(index: number): void;
823
+ swap(a: number, b: number): void;
824
+ select(index: number): void;
825
+ focusChanged(focused: boolean): void;
826
+ move(move: UiMove): boolean;
827
+ activate(): void;
828
+ cancel(): boolean;
829
+ private begin;
830
+ private drag;
831
+ private drop;
832
+ private pitchesIn;
833
+ private placeGhost;
834
+ private render;
835
+ private paint;
836
+ }
837
+ declare function inventoryGrid(ui: GameUi, options: InventoryGridOptions): InventoryGrid;
838
+ interface VirtualRow {
839
+ readonly root: UiElement;
840
+ }
841
+ interface VirtualListOptions<R extends VirtualRow> {
842
+ readonly count: number;
843
+ readonly rowHeight?: number;
844
+ readonly heightOf?: (index: number) => number;
845
+ readonly height?: number;
846
+ readonly width?: number;
847
+ readonly label?: string;
848
+ readonly style?: CollectionStyle;
849
+ readonly scope?: UiFocusScope;
850
+ create(ui: GameUi): R;
851
+ bind(row: R, index: number): void;
852
+ readonly onSelect?: (index: number) => void;
853
+ }
854
+ declare class VirtualList<R extends VirtualRow> implements UiFocusTarget {
855
+ readonly ui: GameUi;
856
+ private readonly options;
857
+ readonly root: UiElement;
858
+ readonly content: UiElement;
859
+ readonly slots: readonly UiElement[];
860
+ readonly rows: readonly R[];
861
+ readonly rowHeight: number;
862
+ readonly height: number;
863
+ onSelect: ((index: number) => void) | null;
864
+ private total;
865
+ private offsetY;
866
+ private cursorAt;
867
+ private focused;
868
+ private readonly bound;
869
+ private readonly flags;
870
+ private readonly states;
871
+ private readonly heightOf;
872
+ private offsets;
873
+ constructor(ui: GameUi, options: VirtualListOptions<R>);
874
+ get count(): number;
875
+ get offset(): number;
876
+ get cursor(): number;
877
+ get pool(): number;
878
+ get variable(): boolean;
879
+ rowTop(index: number): number;
880
+ rowSize(index: number): number;
881
+ get contentHeight(): number;
882
+ invalidateHeights(from?: number): void;
883
+ private measureRows;
884
+ private firstVisible;
885
+ setCount(count: number): void;
886
+ rebind(): void;
887
+ scrollTo(offset: number): void;
888
+ scrollToIndex(index: number): void;
889
+ focusChanged(focused: boolean): void;
890
+ move(move: UiMove): boolean;
891
+ activate(): void;
892
+ private choose;
893
+ private scrolled;
894
+ private maxOffset;
895
+ private extend;
896
+ private refresh;
897
+ }
898
+ declare function virtualList<R extends VirtualRow>(ui: GameUi, options: VirtualListOptions<R>): VirtualList<R>;
899
+ interface LeaderboardOptions {
900
+ readonly height?: number;
901
+ readonly rowHeight?: number;
902
+ readonly width?: number;
903
+ readonly label?: string;
904
+ readonly style?: CollectionStyle;
905
+ readonly scope?: UiFocusScope;
906
+ readonly onSelect?: (index: number) => void;
907
+ }
908
+ interface LeaderboardRow extends VirtualRow {
909
+ readonly rank: UiElement;
910
+ readonly name: UiElement;
911
+ readonly score: UiElement;
912
+ }
913
+ declare class Leaderboard {
914
+ readonly ui: GameUi;
915
+ readonly list: VirtualList<LeaderboardRow>;
916
+ private names;
917
+ private scores;
918
+ private me;
919
+ private readonly rowStates;
920
+ private readonly rankStates;
921
+ private readonly nameStates;
922
+ private readonly scoreStyle;
923
+ constructor(ui: GameUi, options?: LeaderboardOptions);
924
+ get root(): UiElement;
925
+ setEntries(names: readonly string[], scores: ArrayLike<number>, me?: number): void;
926
+ showMe(): void;
927
+ private bind;
928
+ }
929
+ declare function leaderboard(ui: GameUi, options?: LeaderboardOptions): Leaderboard;
930
+ interface ChatLogOptions {
931
+ readonly width?: number;
932
+ readonly height?: number;
933
+ readonly fontSize?: number;
934
+ readonly capacity?: number;
935
+ readonly label?: string;
936
+ readonly style?: CollectionStyle;
937
+ readonly scope?: UiFocusScope;
938
+ }
939
+ interface ChatLogRow extends VirtualRow {
940
+ readonly line: UiElement;
941
+ }
942
+ declare class ChatLog {
943
+ readonly ui: GameUi;
944
+ readonly list: VirtualList<ChatLogRow>;
945
+ readonly capacity: number;
946
+ private readonly lines;
947
+ private head;
948
+ private readonly lineWidth;
949
+ private readonly measured;
950
+ private readonly measureStyle;
951
+ constructor(ui: GameUi, options?: ChatLogOptions);
952
+ get root(): UiElement;
953
+ get count(): number;
954
+ line(index: number): string;
955
+ push(sender: string, message: string): void;
956
+ private heightOf;
957
+ }
958
+ declare function chatLog(ui: GameUi, options?: ChatLogOptions): ChatLog;
959
+
960
+ type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
961
+ type ButtonStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys & UiPaddingKeys>;
962
+ type ButtonLabelStyle = UiStyles<UiTextKeys>;
963
+ type ControlStyle = UiStyles<UiLayoutKeys>;
964
+ interface TextButtonOptions {
965
+ readonly label: string;
966
+ readonly variant?: ButtonVariant;
967
+ readonly icon?: number;
968
+ readonly natural?: readonly [number, number];
969
+ readonly disabled?: boolean;
970
+ readonly style?: ButtonStyle;
971
+ readonly labelStyle?: ButtonLabelStyle;
972
+ readonly scope?: UiFocusScope;
973
+ readonly onPress?: () => void;
974
+ }
975
+ declare class TextButton implements UiFocusTarget {
976
+ readonly ui: GameUi;
977
+ readonly root: UiElement;
978
+ readonly text: UiElement;
979
+ onPress: (() => void) | null;
980
+ private readonly a11y;
981
+ constructor(ui: GameUi, options: TextButtonOptions);
982
+ get disabled(): boolean;
983
+ setLabel(value: string): void;
984
+ setDisabled(disabled: boolean): void;
985
+ activate(): void;
986
+ }
987
+ declare function textButton(ui: GameUi, options: TextButtonOptions): TextButton;
988
+ interface ToggleOptions {
989
+ readonly label: string;
990
+ readonly value?: boolean;
991
+ readonly disabled?: boolean;
992
+ readonly style?: ControlStyle;
993
+ readonly scope?: UiFocusScope;
994
+ readonly onChange?: (value: boolean) => void;
995
+ }
996
+ declare class Toggle implements UiFocusTarget {
997
+ readonly root: UiElement;
998
+ readonly track: UiElement;
999
+ readonly knob: UiElement;
1000
+ onChange: ((value: boolean) => void) | null;
1001
+ private on;
1002
+ private readonly tracks;
1003
+ private readonly knobs;
1004
+ private readonly a11y;
1005
+ constructor(ui: GameUi, options: ToggleOptions);
1006
+ get value(): boolean;
1007
+ set(value: boolean, notify?: boolean): void;
1008
+ setDisabled(disabled: boolean): void;
1009
+ activate(): void;
1010
+ }
1011
+ declare function toggle(ui: GameUi, options: ToggleOptions): Toggle;
1012
+ interface SliderOptions {
1013
+ readonly label: string;
1014
+ readonly value?: number;
1015
+ readonly min?: number;
1016
+ readonly max?: number;
1017
+ readonly step?: number;
1018
+ readonly width?: number;
1019
+ readonly format?: (value: number) => string;
1020
+ readonly disabled?: boolean;
1021
+ readonly style?: ControlStyle;
1022
+ readonly scope?: UiFocusScope;
1023
+ readonly onChange?: (value: number) => void;
1024
+ }
1025
+ declare class Slider implements UiFocusTarget {
1026
+ readonly ui: GameUi;
1027
+ readonly root: UiElement;
1028
+ readonly rail: UiElement;
1029
+ readonly fill: UiElement;
1030
+ readonly thumb: UiElement;
1031
+ readonly readout: UiElement;
1032
+ readonly min: number;
1033
+ readonly max: number;
1034
+ readonly step: number;
1035
+ onChange: ((value: number) => void) | null;
1036
+ private index;
1037
+ private dragFrom;
1038
+ private readonly steps;
1039
+ private readonly travel;
1040
+ private readonly width;
1041
+ private readonly texts;
1042
+ private readonly a11y;
1043
+ constructor(ui: GameUi, options: SliderOptions);
1044
+ get value(): number;
1045
+ set(value: number, notify?: boolean): void;
1046
+ select(step: number, notify?: boolean): void;
1047
+ nudge(direction: number): void;
1048
+ setDisabled(disabled: boolean): void;
1049
+ move(move: UiMove): boolean;
1050
+ }
1051
+ declare function slider(ui: GameUi, options: SliderOptions): Slider;
1052
+ interface DropdownOptions {
1053
+ readonly label: string;
1054
+ readonly options: readonly string[];
1055
+ readonly selected?: number;
1056
+ readonly width?: number;
1057
+ readonly disabled?: boolean;
1058
+ readonly style?: ControlStyle;
1059
+ readonly scope?: UiFocusScope;
1060
+ readonly navigator?: UiNavigator;
1061
+ readonly onChange?: (index: number) => void;
1062
+ }
1063
+ declare class DropdownOption implements UiFocusTarget {
1064
+ private readonly owner;
1065
+ readonly index: number;
1066
+ readonly root: UiElement;
1067
+ readonly text: UiElement;
1068
+ private readonly a11y;
1069
+ constructor(ui: GameUi, owner: Dropdown, index: number, value: string);
1070
+ mark(selected: boolean): void;
1071
+ activate(): void;
1072
+ }
1073
+ declare class Dropdown implements UiFocusTarget {
1074
+ readonly options: DropdownOptions;
1075
+ readonly root: UiElement;
1076
+ readonly field: UiElement;
1077
+ readonly current: UiElement;
1078
+ readonly chevron: UiElement;
1079
+ readonly popup: UiElement;
1080
+ readonly items: readonly DropdownOption[];
1081
+ readonly scope: UiFocusScope;
1082
+ readonly optionProps: readonly [UiProps, UiProps];
1083
+ readonly optionText: readonly [UiProps, UiProps];
1084
+ onChange: ((index: number) => void) | null;
1085
+ private chosen;
1086
+ private shown;
1087
+ private readonly popups;
1088
+ private readonly chevrons;
1089
+ private readonly navigator;
1090
+ private readonly a11y;
1091
+ private readonly popupA11y;
1092
+ constructor(ui: GameUi, options: DropdownOptions);
1093
+ get focusNode(): UiElement;
1094
+ get selected(): number;
1095
+ get open(): boolean;
1096
+ choose(index: number, notify: boolean): void;
1097
+ activate(): void;
1098
+ show(): void;
1099
+ close(): void;
1100
+ setDisabled(disabled: boolean): void;
1101
+ move(move: UiMove): boolean;
1102
+ }
1103
+ declare function dropdown(ui: GameUi, options: DropdownOptions): Dropdown;
1104
+
1105
+ type HudStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys>;
1106
+ interface CountdownOptions {
1107
+ readonly seconds: number;
1108
+ readonly mode?: "down" | "up";
1109
+ readonly warnAt?: number;
1110
+ readonly label?: string;
1111
+ readonly style?: HudStyle;
1112
+ readonly autostart?: boolean;
1113
+ readonly onExpire?: () => void;
1114
+ }
1115
+ declare class Countdown {
1116
+ readonly ui: GameUi;
1117
+ readonly root: UiElement;
1118
+ readonly text: UiElement;
1119
+ onExpire: (() => void) | null;
1120
+ private readonly clock;
1121
+ private shown;
1122
+ private warned;
1123
+ private active;
1124
+ private readonly roots;
1125
+ private readonly texts;
1126
+ private readonly mode;
1127
+ private readonly warnAt;
1128
+ constructor(ui: GameUi, options: CountdownOptions);
1129
+ get remaining(): number;
1130
+ get running(): boolean;
1131
+ get warning(): boolean;
1132
+ start(seconds: number): void;
1133
+ pause(): void;
1134
+ resume(): void;
1135
+ add(seconds: number): void;
1136
+ update(frame: UiClock): void;
1137
+ private render;
1138
+ }
1139
+ declare function countdown(ui: GameUi, options: CountdownOptions): Countdown;
1140
+ type MarkerKind = "accent" | "danger" | "success" | "gold";
1141
+ declare const MAP_PAN_X = 0;
1142
+ declare const MAP_PAN_Y = 1;
1143
+ declare const MAP_HEADING = 2;
1144
+ interface MinimapOptions {
1145
+ readonly asset: number;
1146
+ readonly natural: readonly [number, number];
1147
+ readonly size?: number;
1148
+ readonly mapSize?: readonly [number, number];
1149
+ readonly shape?: "circle" | "square";
1150
+ readonly markers?: number;
1151
+ readonly compass?: boolean;
1152
+ readonly label?: string;
1153
+ readonly style?: HudStyle;
1154
+ }
1155
+ declare class Minimap {
1156
+ readonly ui: GameUi;
1157
+ readonly root: UiElement;
1158
+ readonly image: UiElement;
1159
+ readonly markers: readonly UiElement[];
1160
+ readonly needle: UiElement;
1161
+ readonly size: number;
1162
+ private readonly markerStates;
1163
+ private readonly hiddenMarker;
1164
+ readonly view: Float64Array<ArrayBuffer>;
1165
+ readonly points: Float64Array;
1166
+ private readonly kinds;
1167
+ private readonly shown;
1168
+ private readonly imageBase;
1169
+ constructor(ui: GameUi, options: MinimapOptions);
1170
+ setImage(asset: number, width: number, height: number): void;
1171
+ pan(x: number, y: number): void;
1172
+ heading(radians: number): void;
1173
+ marker(index: number, x: number, y: number, kind?: MarkerKind): void;
1174
+ setMarkerKind(index: number, kind: MarkerKind): void;
1175
+ hideMarker(index: number): void;
1176
+ apply(): void;
1177
+ private writePan;
1178
+ private writeHeading;
1179
+ private place;
1180
+ }
1181
+ declare function minimap(ui: GameUi, options: MinimapOptions): Minimap;
1182
+ interface RadialItem {
1183
+ readonly label: string;
1184
+ readonly icon?: number;
1185
+ readonly natural?: readonly [number, number];
1186
+ }
1187
+ interface RadialMenuOptions {
1188
+ readonly items: readonly RadialItem[];
1189
+ readonly radius?: number;
1190
+ readonly label?: string;
1191
+ readonly scope?: UiFocusScope;
1192
+ readonly deadZone?: number;
1193
+ readonly onSelect?: (index: number) => void;
1194
+ }
1195
+ declare class RadialMenu implements UiFocusTarget {
1196
+ readonly ui: GameUi;
1197
+ readonly root: UiElement;
1198
+ readonly items: readonly UiElement[];
1199
+ readonly center: UiElement;
1200
+ onSelect: ((index: number) => void) | null;
1201
+ private chosen;
1202
+ private shown;
1203
+ private readonly travel;
1204
+ private readonly itemStates;
1205
+ private readonly states;
1206
+ private readonly labels;
1207
+ private readonly a11y;
1208
+ private readonly deadZone;
1209
+ private readonly directions;
1210
+ constructor(ui: GameUi, options: RadialMenuOptions);
1211
+ get open(): boolean;
1212
+ get selected(): number;
1213
+ show(): void;
1214
+ hide(): void;
1215
+ point(dx: number, dy: number): void;
1216
+ private aim;
1217
+ select(index: number): void;
1218
+ confirm(): number;
1219
+ activate(): void;
1220
+ move(move: UiMove): boolean;
1221
+ }
1222
+ declare function radialMenu(ui: GameUi, options: RadialMenuOptions): RadialMenu;
1223
+ type DamageKind = "hit" | "crit" | "heal" | "miss";
1224
+ interface DamageNumbersOptions {
1225
+ readonly capacity?: number;
1226
+ readonly seconds?: number;
1227
+ readonly rise?: number;
1228
+ readonly z?: number;
1229
+ }
1230
+ declare class DamageNumbers {
1231
+ readonly ui: GameUi;
1232
+ readonly root: UiElement;
1233
+ readonly entries: readonly UiElement[];
1234
+ private readonly x;
1235
+ private readonly y;
1236
+ private readonly age;
1237
+ private readonly kind;
1238
+ private readonly states;
1239
+ private readonly hidden;
1240
+ private readonly config;
1241
+ private cursor;
1242
+ private live;
1243
+ constructor(ui: GameUi, options?: DamageNumbersOptions);
1244
+ get active(): number;
1245
+ spawn(value: number, x: number, y: number, kind?: DamageKind): void;
1246
+ update(frame: UiClock): void;
1247
+ clear(): void;
1248
+ }
1249
+ declare function damageNumbers(ui: GameUi, options?: DamageNumbersOptions): DamageNumbers;
1250
+ interface BadgeOptions {
1251
+ readonly host: UiElement;
1252
+ readonly count?: number;
1253
+ readonly max?: number;
1254
+ readonly dot?: boolean;
1255
+ readonly label?: string;
1256
+ }
1257
+ declare class Badge {
1258
+ readonly ui: GameUi;
1259
+ readonly root: UiElement;
1260
+ readonly text: UiElement;
1261
+ private current;
1262
+ private readonly clock;
1263
+ private readonly states;
1264
+ private readonly overflow;
1265
+ private readonly labels;
1266
+ private readonly max;
1267
+ private readonly dot;
1268
+ private readonly a11y;
1269
+ constructor(ui: GameUi, options: BadgeOptions);
1270
+ get count(): number;
1271
+ set(count: number): void;
1272
+ update(frame: UiClock): void;
1273
+ }
1274
+ declare function badge(ui: GameUi, options: BadgeOptions): Badge;
1275
+
1276
+ type ModalStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys & UiPaddingKeys>;
1277
+ interface ModalOptions {
1278
+ readonly title?: string;
1279
+ readonly dismissible?: boolean;
1280
+ readonly style?: ModalStyle;
1281
+ readonly columns?: number;
1282
+ }
1283
+ declare class Modal {
1284
+ readonly ui: GameUi;
1285
+ readonly layer: UiElement;
1286
+ readonly root: UiElement;
1287
+ readonly title: UiElement | null;
1288
+ readonly content: UiElement;
1289
+ readonly scope: UiFocusScope;
1290
+ dismissible: boolean;
1291
+ onClose: (() => void) | null;
1292
+ private readonly layers;
1293
+ private readonly cards;
1294
+ private readonly a11y;
1295
+ stack: ModalStack | null;
1296
+ constructor(ui: GameUi, options?: ModalOptions);
1297
+ add(target: UiFocusTarget): this;
1298
+ append(element: UiElement): this;
1299
+ get open(): boolean;
1300
+ shown(on: boolean, top: boolean): void;
1301
+ }
1302
+ declare function modal(ui: GameUi, options?: ModalOptions): Modal;
1303
+ interface ModalStackOptions {
1304
+ readonly navigator?: UiNavigator;
1305
+ readonly inert?: readonly UiElement[];
1306
+ readonly z?: number;
1307
+ }
1308
+ declare class ModalStack {
1309
+ readonly ui: GameUi;
1310
+ private readonly modals;
1311
+ private readonly navigator;
1312
+ private readonly inert;
1313
+ private readonly z;
1314
+ private readonly rooting;
1315
+ constructor(ui: GameUi, options?: ModalStackOptions);
1316
+ get depth(): number;
1317
+ get top(): Modal | null;
1318
+ contains(modal: Modal): boolean;
1319
+ push(modal: Modal): void;
1320
+ pop(): Modal | null;
1321
+ remove(modal: Modal): void;
1322
+ clear(): void;
1323
+ back(): boolean;
1324
+ }
1325
+ declare function modalStack(ui: GameUi, options?: ModalStackOptions): ModalStack;
1326
+ interface TooltipOptions {
1327
+ readonly target: UiElement;
1328
+ readonly text: string;
1329
+ readonly placement?: "above" | "below";
1330
+ readonly seconds?: number;
1331
+ readonly navigator?: UiNavigator;
1332
+ }
1333
+ declare class Tooltip {
1334
+ readonly ui: GameUi;
1335
+ readonly options: TooltipOptions;
1336
+ readonly root: UiElement;
1337
+ readonly bubble: UiElement;
1338
+ readonly text: UiElement;
1339
+ private readonly remaining;
1340
+ private pinned;
1341
+ private visible;
1342
+ private readonly states;
1343
+ constructor(ui: GameUi, options: TooltipOptions);
1344
+ get shown(): boolean;
1345
+ setText(value: string): void;
1346
+ show(): void;
1347
+ pin(): void;
1348
+ hide(): void;
1349
+ update(frame: UiClock): void;
1350
+ private reveal;
1351
+ }
1352
+ declare function tooltip(ui: GameUi, options: TooltipOptions): Tooltip;
1353
+
1354
+ type ParticleKind = "confetti" | "sparkle";
1355
+ interface UiParticlesOptions {
1356
+ readonly capacity?: number;
1357
+ readonly z?: number;
1358
+ readonly seed?: number;
1359
+ }
1360
+ declare class UiParticles {
1361
+ readonly ui: GameUi;
1362
+ readonly root: UiElement;
1363
+ readonly pieces: readonly UiElement[];
1364
+ private readonly data;
1365
+ private readonly kind;
1366
+ private readonly color;
1367
+ private readonly launchColors;
1368
+ private readonly states;
1369
+ private readonly dead;
1370
+ private cursor;
1371
+ private row;
1372
+ private live;
1373
+ constructor(ui: GameUi, options?: UiParticlesOptions);
1374
+ get active(): number;
1375
+ burst(kind: ParticleKind, x: number, y: number, count: number): void;
1376
+ update(frame: UiClock): void;
1377
+ clear(): void;
1378
+ private draw;
1379
+ }
1380
+ declare function uiParticles(ui: GameUi, options?: UiParticlesOptions): UiParticles;
1381
+
1382
+ interface PauseScreenOptions {
1383
+ readonly stack: ModalStack;
1384
+ readonly title?: string;
1385
+ readonly onResume?: () => void;
1386
+ readonly onSettings?: () => void;
1387
+ readonly onQuit?: () => void;
1388
+ }
1389
+ declare class PauseScreen {
1390
+ private readonly options;
1391
+ readonly modal: Modal;
1392
+ readonly resume: TextButton;
1393
+ readonly settings: TextButton;
1394
+ readonly quit: TextButton;
1395
+ constructor(ui: GameUi, options: PauseScreenOptions);
1396
+ get open(): boolean;
1397
+ show(): void;
1398
+ close(): void;
1399
+ }
1400
+ declare function pauseScreen(ui: GameUi, options: PauseScreenOptions): PauseScreen;
1401
+ interface SettingsValues {
1402
+ music: number;
1403
+ effects: number;
1404
+ haptics: boolean;
1405
+ quality: number;
1406
+ language: number;
1407
+ }
1408
+ type SettingsKey = keyof SettingsValues;
1409
+ interface SettingsScreenOptions {
1410
+ readonly stack: ModalStack;
1411
+ readonly navigator?: UiNavigator;
1412
+ readonly values?: Partial<SettingsValues>;
1413
+ readonly qualities?: readonly string[];
1414
+ readonly languages?: readonly string[];
1415
+ readonly onChange?: (values: Readonly<SettingsValues>, key: SettingsKey) => void;
1416
+ readonly onDone?: (values: Readonly<SettingsValues>) => void;
1417
+ }
1418
+ declare const DEFAULT_QUALITIES: readonly string[];
1419
+ declare const DEFAULT_LANGUAGES: readonly string[];
1420
+ declare class SettingsScreen {
1421
+ private readonly options;
1422
+ readonly modal: Modal;
1423
+ readonly music: Slider;
1424
+ readonly effects: Slider;
1425
+ readonly haptics: Toggle;
1426
+ readonly quality: Dropdown;
1427
+ readonly language: Dropdown;
1428
+ readonly done: TextButton;
1429
+ readonly values: SettingsValues;
1430
+ constructor(ui: GameUi, options: SettingsScreenOptions);
1431
+ get open(): boolean;
1432
+ show(): void;
1433
+ close(): void;
1434
+ }
1435
+ declare function settingsScreen(ui: GameUi, options: SettingsScreenOptions): SettingsScreen;
1436
+ interface ResultsScreenOptions {
1437
+ readonly stack: ModalStack;
1438
+ readonly particles?: UiParticles;
1439
+ readonly celebrateAt?: readonly [number, number];
1440
+ readonly rewards?: number;
1441
+ readonly natural?: readonly [number, number];
1442
+ readonly onRetry?: () => void;
1443
+ readonly onShare?: () => void;
1444
+ }
1445
+ interface ResultsData {
1446
+ readonly victory: boolean;
1447
+ readonly score: number;
1448
+ readonly stars: number;
1449
+ }
1450
+ declare class ResultsScreen {
1451
+ readonly ui: GameUi;
1452
+ private readonly options;
1453
+ readonly modal: Modal;
1454
+ readonly title: UiElement;
1455
+ readonly score: UiElement;
1456
+ readonly stars: readonly UiElement[];
1457
+ readonly rewards: readonly UiElement[];
1458
+ readonly rewardIcons: readonly UiElement[];
1459
+ readonly rewardAmounts: readonly UiElement[];
1460
+ readonly retry: TextButton;
1461
+ readonly share: TextButton;
1462
+ private readonly starStates;
1463
+ private readonly rewardStates;
1464
+ private readonly natural;
1465
+ private target;
1466
+ private shownScore;
1467
+ private earned;
1468
+ private revealed;
1469
+ private readonly clock;
1470
+ private readonly a11y;
1471
+ constructor(ui: GameUi, options: ResultsScreenOptions);
1472
+ get open(): boolean;
1473
+ get starsShown(): number;
1474
+ get scoreShown(): number;
1475
+ show(result: ResultsData): void;
1476
+ setReward(index: number, icon: number, amount: number): void;
1477
+ hideReward(index: number): void;
1478
+ close(): void;
1479
+ update(frame: UiClock): void;
1480
+ private at;
1481
+ }
1482
+ declare function resultsScreen(ui: GameUi, options: ResultsScreenOptions): ResultsScreen;
1483
+ interface LoadingScreenOptions {
1484
+ readonly title?: string;
1485
+ readonly tips?: readonly string[];
1486
+ readonly tipSeconds?: number;
1487
+ readonly z?: number;
1488
+ }
1489
+ declare class LoadingScreen {
1490
+ readonly ui: GameUi;
1491
+ readonly root: UiElement;
1492
+ readonly spinner: UiElement;
1493
+ readonly fill: UiElement;
1494
+ readonly percent: UiElement;
1495
+ readonly tip: UiElement;
1496
+ private readonly states;
1497
+ private readonly tips;
1498
+ private readonly clock;
1499
+ private tipIndex;
1500
+ private shownPercent;
1501
+ private visible;
1502
+ private readonly a11y;
1503
+ constructor(ui: GameUi, options?: LoadingScreenOptions);
1504
+ get shown(): boolean;
1505
+ show(): void;
1506
+ hide(): void;
1507
+ setProgress(ratio: number): void;
1508
+ setPercent(value: number): void;
1509
+ update(frame: UiClock): void;
1510
+ }
1511
+ declare function loadingScreen(ui: GameUi, options?: LoadingScreenOptions): LoadingScreen;
1512
+ interface TutorialHintOptions {
1513
+ readonly navigator?: UiNavigator;
1514
+ readonly z?: number;
1515
+ readonly onDone?: () => void;
1516
+ }
1517
+ declare class TutorialHint {
1518
+ readonly ui: GameUi;
1519
+ readonly root: UiElement;
1520
+ readonly bubble: UiElement;
1521
+ readonly text: UiElement;
1522
+ readonly dots: readonly UiElement[];
1523
+ readonly next: TextButton;
1524
+ readonly skip: TextButton;
1525
+ readonly arrow: UiElement;
1526
+ readonly scope: UiFocusScope;
1527
+ onDone: (() => void) | null;
1528
+ private steps;
1529
+ private step;
1530
+ private readonly at;
1531
+ private visible;
1532
+ private readonly states;
1533
+ private readonly dotStates;
1534
+ private readonly navigator;
1535
+ private readonly a11y;
1536
+ constructor(ui: GameUi, options?: TutorialHintOptions);
1537
+ get shown(): boolean;
1538
+ get index(): number;
1539
+ show(steps: readonly string[], x: number, y: number): void;
1540
+ advance(): void;
1541
+ hide(): void;
1542
+ update(frame: UiClock): void;
1543
+ private finish;
1544
+ private go;
1545
+ }
1546
+ declare function tutorialHint(ui: GameUi, options?: TutorialHintOptions): TutorialHint;
1547
+
1548
+ type TextBlockStyle = UiStyles<UiLayoutKeys & UiSurfaceKeys>;
1549
+ interface ChatPanelOptions {
1550
+ readonly lines?: number;
1551
+ readonly width?: number;
1552
+ readonly label?: string;
1553
+ readonly style?: TextBlockStyle;
1554
+ }
1555
+ declare class ChatPanel {
1556
+ readonly ui: GameUi;
1557
+ readonly root: UiElement;
1558
+ readonly rows: readonly UiElement[];
1559
+ readonly names: readonly UiElement[];
1560
+ readonly bodies: readonly UiElement[];
1561
+ private readonly senders;
1562
+ private readonly messages;
1563
+ private readonly colors;
1564
+ private readonly lineStates;
1565
+ private readonly nameStates;
1566
+ private readonly bodyStates;
1567
+ private head;
1568
+ private size;
1569
+ constructor(ui: GameUi, options?: ChatPanelOptions);
1570
+ get count(): number;
1571
+ push(sender: string, message: string, color?: number): void;
1572
+ system(message: string): void;
1573
+ clear(): void;
1574
+ private render;
1575
+ }
1576
+ declare function chatPanel(ui: GameUi, options?: ChatPanelOptions): ChatPanel;
1577
+ declare const RICH_COLORS: readonly ["text", "muted", "accent", "gold", "danger", "success"];
1578
+ type RichColor = (typeof RICH_COLORS)[number];
1579
+ declare class RichTextError extends Error {
1580
+ constructor(message: string);
1581
+ }
1582
+ interface RichTextOptions {
1583
+ readonly markup?: string;
1584
+ readonly spans?: number;
1585
+ readonly icons?: Readonly<Record<string, number>>;
1586
+ readonly natural?: readonly [number, number];
1587
+ readonly style?: TextBlockStyle;
1588
+ readonly source?: AiMarkSource;
1589
+ readonly mark?: AiMarkOptions;
1590
+ readonly flowAround?: readonly UiExclusion[];
1591
+ }
1592
+ declare class RichText {
1593
+ readonly ui: GameUi;
1594
+ readonly root: UiElement;
1595
+ readonly texts: readonly UiElement[];
1596
+ readonly images: readonly UiElement[];
1597
+ readonly mark: AiMark;
1598
+ private source;
1599
+ private readonly cache;
1600
+ private readonly textStates;
1601
+ private readonly hiddenText;
1602
+ private readonly iconStates;
1603
+ private readonly icons;
1604
+ private readonly natural;
1605
+ private shown;
1606
+ private current;
1607
+ private readonly a11y;
1608
+ constructor(ui: GameUi, options?: RichTextOptions);
1609
+ flowAround(exclusions: readonly UiExclusion[] | null): this;
1610
+ get marked(): boolean;
1611
+ get markup(): string;
1612
+ get spans(): number;
1613
+ show(result: Pick<Generated<string>, "value" | "source">): void;
1614
+ set(markup: string, source?: AiMarkSource): void;
1615
+ }
1616
+ declare function richText(ui: GameUi, options?: RichTextOptions): RichText;
1617
+
1618
+ declare const BOUNDS_MIN = 0;
1619
+ declare const BOUNDS_MAX = 3;
1620
+ declare const BOUNDS_WORDS = 6;
1621
+ declare function canonical(t: Float64Array): Float64Array;
1622
+ declare function bounds(t: ArrayLike<number>, offset: number, halfExtentsMm: ArrayLike<number>, halfOffset: number, out: Float64Array): Float64Array;
1623
+ declare function overlapsFootprint(a: ArrayLike<number>, b: ArrayLike<number>): boolean;
1624
+ declare function snappedToGrid(t: Float64Array, gridMm: number, angleStepCentidegrees: number): Float64Array;
1625
+ declare function snapHeightToGrid(t: Float64Array, gridMm: number): void;
1626
+ declare function movedAbout(t: ArrayLike<number>, pivotX: number, pivotY: number, pivotZ: number, dx: number, dy: number, dz: number, rotation: ArrayLike<number>, scalePermille: number, out: Float64Array): Float64Array;
1627
+ declare function withinWorld(t: ArrayLike<number>): boolean;
1628
+ declare function copyTransform(src: ArrayLike<number>, srcOffset: number, out: Float64Array, outOffset?: number): Float64Array;
1629
+
1630
+ declare const index$3_ACTION_BASE: typeof ACTION_BASE;
1631
+ declare const index$3_Action: typeof Action;
1632
+ declare const index$3_BOUNDS_MAX: typeof BOUNDS_MAX;
1633
+ declare const index$3_BOUNDS_MIN: typeof BOUNDS_MIN;
1634
+ declare const index$3_BOUNDS_WORDS: typeof BOUNDS_WORDS;
1635
+ declare const index$3_CENTIDEGREES_PER_TURN: typeof CENTIDEGREES_PER_TURN;
1636
+ declare const index$3_COMMAND_BYTES: typeof COMMAND_BYTES;
1637
+ declare const index$3_COMMAND_OP_ID_BYTES: typeof COMMAND_OP_ID_BYTES;
1638
+ declare const index$3_CommandPort: typeof CommandPort;
1639
+ declare const index$3_CommandWriter: typeof CommandWriter;
1640
+ declare const index$3_DEFAULT_ANGLE_STEP_CENTIDEGREES: typeof DEFAULT_ANGLE_STEP_CENTIDEGREES;
1641
+ declare const index$3_DEFAULT_GRID_MM: typeof DEFAULT_GRID_MM;
1642
+ declare const index$3_Ground: typeof Ground;
1643
+ declare const index$3_Lighting: typeof Lighting;
1644
+ declare const index$3_Likeness: typeof Likeness;
1645
+ declare const index$3_LocalWorld: typeof LocalWorld;
1646
+ declare const index$3_LoopbackOptions: typeof LoopbackOptions;
1647
+ declare const index$3_MAX_SELECT_IDS: typeof MAX_SELECT_IDS;
1648
+ declare const index$3_MILLIMETRES_PER_METRE: typeof MILLIMETRES_PER_METRE;
1649
+ declare const index$3_MessageKind: typeof MessageKind;
1650
+ declare const index$3_MirroredResult: typeof MirroredResult;
1651
+ declare const index$3_NOT_SENT: typeof NOT_SENT;
1652
+ declare const index$3_NO_BUILDER: typeof NO_BUILDER;
1653
+ declare const index$3_Notice: typeof Notice;
1654
+ declare const index$3_OBJECT_RECORD_BYTES: typeof OBJECT_RECORD_BYTES;
1655
+ declare const index$3_POSITION: typeof POSITION;
1656
+ declare const index$3_QUATERNION_SCALE: typeof QUATERNION_SCALE;
1657
+ declare const index$3_ROTATION: typeof ROTATION;
1658
+ declare const index$3_SCALE: typeof SCALE;
1659
+ declare const index$3_SCALE_UNIT_PERMILLE: typeof SCALE_UNIT_PERMILLE;
1660
+ declare const index$3_SNAP_GRID: typeof SNAP_GRID;
1661
+ declare const index$3_SNAP_SURFACE: typeof SNAP_SURFACE;
1662
+ declare const index$3_Sanction: typeof Sanction;
1663
+ declare const index$3_SelectMode: typeof SelectMode;
1664
+ declare const index$3_Sky: typeof Sky;
1665
+ declare const index$3_Status: typeof Status;
1666
+ declare const index$3_TRANSFORM_BYTES: typeof TRANSFORM_BYTES;
1667
+ declare const index$3_TRANSFORM_WORDS: typeof TRANSFORM_WORDS;
1668
+ declare const index$3_Visibility: typeof Visibility;
1669
+ declare const index$3_WORLD_CHANNEL_SLOT: typeof WORLD_CHANNEL_SLOT;
1670
+ declare const index$3_WORLD_DEPTH_MM: typeof WORLD_DEPTH_MM;
1671
+ declare const index$3_WORLD_EXTENT_MM: typeof WORLD_EXTENT_MM;
1672
+ declare const index$3_WorldBuilder: typeof WorldBuilder;
1673
+ declare const index$3_WorldClockState: typeof WorldClockState;
1674
+ declare const index$3_WorldConnection: typeof WorldConnection;
1675
+ declare const index$3_WorldConnectionOptions: typeof WorldConnectionOptions;
1676
+ declare const index$3_WorldMirror: typeof WorldMirror;
1677
+ declare const index$3_WorldRoleCode: typeof WorldRoleCode;
1678
+ declare const index$3_WorldSettings: typeof WorldSettings;
1679
+ declare const index$3_bounds: typeof bounds;
1680
+ declare const index$3_canonical: typeof canonical;
1681
+ declare const index$3_connectWorld: typeof connectWorld;
1682
+ declare const index$3_copyTransform: typeof copyTransform;
1683
+ declare const index$3_encodeBare: typeof encodeBare;
1684
+ declare const index$3_encodeClock: typeof encodeClock;
1685
+ declare const index$3_encodeDuplicate: typeof encodeDuplicate;
1686
+ declare const index$3_encodeJoinCopy: typeof encodeJoinCopy;
1687
+ declare const index$3_encodeModerate: typeof encodeModerate;
1688
+ declare const index$3_encodePlace: typeof encodePlace;
1689
+ declare const index$3_encodeSelect: typeof encodeSelect;
1690
+ declare const index$3_encodeSetTransform: typeof encodeSetTransform;
1691
+ declare const index$3_encodeSettings: typeof encodeSettings;
1692
+ declare const index$3_encodeTransformSelection: typeof encodeTransformSelection;
1693
+ declare const index$3_identityTransform: typeof identityTransform;
1694
+ declare const index$3_movedAbout: typeof movedAbout;
1695
+ declare const index$3_overlapsFootprint: typeof overlapsFootprint;
1696
+ declare const index$3_snapHeightToGrid: typeof snapHeightToGrid;
1697
+ declare const index$3_snappedToGrid: typeof snappedToGrid;
1698
+ declare const index$3_withinWorld: typeof withinWorld;
1699
+ declare const index$3_yawRotation: typeof yawRotation;
1700
+ declare namespace index$3 {
1701
+ export { index$3_ACTION_BASE as ACTION_BASE, index$3_Action as Action, index$3_BOUNDS_MAX as BOUNDS_MAX, index$3_BOUNDS_MIN as BOUNDS_MIN, index$3_BOUNDS_WORDS as BOUNDS_WORDS, index$3_CENTIDEGREES_PER_TURN as CENTIDEGREES_PER_TURN, index$3_COMMAND_BYTES as COMMAND_BYTES, index$3_COMMAND_OP_ID_BYTES as COMMAND_OP_ID_BYTES, index$3_CommandPort as CommandPort, index$3_CommandWriter as CommandWriter, index$3_DEFAULT_ANGLE_STEP_CENTIDEGREES as DEFAULT_ANGLE_STEP_CENTIDEGREES, index$3_DEFAULT_GRID_MM as DEFAULT_GRID_MM, index$3_Ground as Ground, index$3_Lighting as Lighting, index$3_Likeness as Likeness, index$3_LocalWorld as LocalWorld, index$3_LoopbackOptions as LoopbackOptions, index$3_MAX_SELECT_IDS as MAX_SELECT_IDS, index$3_MILLIMETRES_PER_METRE as MILLIMETRES_PER_METRE, index$3_MessageKind as MessageKind, index$3_MirroredResult as MirroredResult, index$3_NOT_SENT as NOT_SENT, index$3_NO_BUILDER as NO_BUILDER, index$3_Notice as Notice, index$3_OBJECT_RECORD_BYTES as OBJECT_RECORD_BYTES, index$3_POSITION as POSITION, index$3_QUATERNION_SCALE as QUATERNION_SCALE, index$3_ROTATION as ROTATION, index$3_SCALE as SCALE, index$3_SCALE_UNIT_PERMILLE as SCALE_UNIT_PERMILLE, index$3_SNAP_GRID as SNAP_GRID, index$3_SNAP_SURFACE as SNAP_SURFACE, index$3_Sanction as Sanction, index$3_SelectMode as SelectMode, index$3_Sky as Sky, index$3_Status as Status, index$3_TRANSFORM_BYTES as TRANSFORM_BYTES, index$3_TRANSFORM_WORDS as TRANSFORM_WORDS, index$3_Visibility as Visibility, index$3_WORLD_CHANNEL_SLOT as WORLD_CHANNEL_SLOT, index$3_WORLD_DEPTH_MM as WORLD_DEPTH_MM, index$3_WORLD_EXTENT_MM as WORLD_EXTENT_MM, index$3_WorldBuilder as WorldBuilder, index$3_WorldClockState as WorldClockState, index$3_WorldConnection as WorldConnection, index$3_WorldConnectionOptions as WorldConnectionOptions, index$3_WorldMirror as WorldMirror, index$3_WorldRoleCode as WorldRoleCode, index$3_WorldSettings as WorldSettings, index$3_bounds as bounds, index$3_canonical as canonical, index$3_connectWorld as connectWorld, index$3_copyTransform as copyTransform, index$3_encodeBare as encodeBare, index$3_encodeClock as encodeClock, index$3_encodeDuplicate as encodeDuplicate, index$3_encodeJoinCopy as encodeJoinCopy, index$3_encodeModerate as encodeModerate, index$3_encodePlace as encodePlace, index$3_encodeSelect as encodeSelect, index$3_encodeSetTransform as encodeSetTransform, index$3_encodeSettings as encodeSettings, index$3_encodeTransformSelection as encodeTransformSelection, index$3_identityTransform as identityTransform, index$3_movedAbout as movedAbout, index$3_overlapsFootprint as overlapsFootprint, index$3_snapHeightToGrid as snapHeightToGrid, index$3_snappedToGrid as snappedToGrid, index$3_withinWorld as withinWorld, index$3_yawRotation as yawRotation };
1702
+ }
1703
+
1704
+ declare const REPLICATION_GRACE_MS = 2000;
1705
+ interface RoomLink {
1706
+ readonly roomId: string;
1707
+ readonly authority: boolean;
1708
+ publish(message: Uint8Array): void;
1709
+ subscribe(listener: (message: Uint8Array) => void): () => void;
1710
+ }
1711
+ declare class RoomGenerateError extends Error {
1712
+ constructor(message: string);
1713
+ }
1714
+ interface RoomGenerate {
1715
+ generate<T>(kind: AiContentKind, key: string, request: GenerateRequest<T>): Promise<Generated<T>>;
1716
+ dialogue(key: string, request: GenerateRequest<Dialogue>): Promise<Generated<Dialogue>>;
1717
+ text(key: string, request: GenerateRequest<string>): Promise<Generated<string>>;
1718
+ item<T>(key: string, request: GenerateRequest<T>): Promise<Generated<T>>;
1719
+ quest<T>(key: string, request: GenerateRequest<T>): Promise<Generated<T>>;
1720
+ room<T>(key: string, request: GenerateRequest<T>): Promise<Generated<T>>;
1721
+ dispose(): void;
1722
+ }
1723
+ declare function createRoomGenerate(ai: AiContentCalls | null, link: RoomLink): RoomGenerate;
1724
+
1725
+ declare function roomRecipeSchema<const K extends readonly string[]>(kinds: K, grounds?: readonly string[]): Schema<ObjectOf<{
1726
+ readonly name: Schema<string>;
1727
+ readonly size: Schema<number[]>;
1728
+ readonly ground: Schema<string>;
1729
+ readonly style: Schema<string | undefined> & {
1730
+ readonly optional: true;
1731
+ };
1732
+ readonly points: Schema<ObjectOf<{
1733
+ readonly name: Schema<string>;
1734
+ readonly at: Schema<number[]>;
1735
+ }>[] | undefined> & {
1736
+ readonly optional: true;
1737
+ };
1738
+ readonly objects: Schema<ObjectOf<{
1739
+ readonly name: Schema<string>;
1740
+ readonly kind: Schema<K[number]>;
1741
+ readonly count: Schema<number>;
1742
+ readonly near: Schema<string | undefined> & {
1743
+ readonly optional: true;
1744
+ };
1745
+ readonly within: Schema<number | undefined> & {
1746
+ readonly optional: true;
1747
+ };
1748
+ readonly facing: Schema<string | undefined> & {
1749
+ readonly optional: true;
1750
+ };
1751
+ readonly along: Schema<string | undefined> & {
1752
+ readonly optional: true;
1753
+ };
1754
+ readonly on: Schema<string | undefined> & {
1755
+ readonly optional: true;
1756
+ };
1757
+ readonly clear: Schema<number | undefined> & {
1758
+ readonly optional: true;
1759
+ };
1760
+ readonly reachable_from: Schema<string | undefined> & {
1761
+ readonly optional: true;
1762
+ };
1763
+ }>[]>;
1764
+ }>>;
1765
+ type RoomRecipe = Infer<ReturnType<typeof roomRecipeSchema<readonly string[]>>>;
1766
+ interface SceneSpecLike {
1767
+ readonly area: {
1768
+ readonly size: readonly [number, number];
1769
+ readonly ground: string;
1770
+ readonly points: {
1771
+ readonly [name: string]: readonly [number, number];
1772
+ };
1773
+ };
1774
+ readonly objects: {
1775
+ readonly [name: string]: {
1776
+ readonly [field: string]: unknown;
1777
+ };
1778
+ };
1779
+ readonly style?: string;
1780
+ readonly seed: number;
1781
+ }
1782
+ declare function recipeToScene(recipe: RoomRecipe, seed: number): SceneSpecLike;
1783
+ interface SceneCompilerLike<W> {
1784
+ (name: string, spec: SceneSpecLike): {
1785
+ readonly wire: W | null;
1786
+ readonly diagnostics: readonly unknown[];
1787
+ };
1788
+ }
1789
+ interface SceneSolverLike<W, R> {
1790
+ solve(wire: W, seed?: number): R;
1791
+ }
1792
+ type SolvedRoom<R> = {
1793
+ readonly status: "solved";
1794
+ readonly result: R;
1795
+ readonly seed: number;
1796
+ } | {
1797
+ readonly status: "rejected";
1798
+ readonly diagnostics: readonly unknown[];
1799
+ };
1800
+ declare function solveRoom<W, R>(recipe: RoomRecipe, seed: number, compile: SceneCompilerLike<W>, solver: SceneSolverLike<W, R>): SolvedRoom<R>;
1801
+
1802
+ declare function validateValue(schema: JsonSchema, value: unknown, at?: string): string | null;
1803
+ declare function select(value: unknown, path: string): unknown[];
1804
+ declare function applyRules(rules: readonly AiContentRule[], value: unknown): string | null;
1805
+ declare const rule: {
1806
+ range: (path: string, min: number, max: number) => AiContentRule;
1807
+ total: (path: string, max: number) => AiContentRule;
1808
+ count: (path: string, min: number, max: number) => AiContentRule;
1809
+ oneOf: (path: string, values: readonly string[]) => AiContentRule;
1810
+ distinct: (path: string) => AiContentRule;
1811
+ };
1812
+
1813
+ declare const CONTENT_CHANNEL_SLOT: number;
1814
+ declare function tickContentAsk<T>(key: string, kind: AiContentKind, request: GenerateRequest<T>): Uint8Array;
1815
+ declare function requestTickContent<T>(ctx: TickRoomCtx, key: string, kind: AiContentKind, request: GenerateRequest<T>): boolean;
1816
+ declare function createTickContentLink(roomId: string, subscribe: (listener: (payload: Uint8Array) => void) => () => void): RoomLink;
1817
+
1818
+ declare const index$2_AiContentCalls: typeof AiContentCalls;
1819
+ declare const index$2_ArrayOptions: typeof ArrayOptions;
1820
+ declare const index$2_CONTENT_CHANNEL_SLOT: typeof CONTENT_CHANNEL_SLOT;
1821
+ declare const index$2_CtxGenerate: typeof CtxGenerate;
1822
+ declare const index$2_DEFAULT_RETRIES: typeof DEFAULT_RETRIES;
1823
+ declare const index$2_DEFAULT_TIMEOUT_MS: typeof DEFAULT_TIMEOUT_MS;
1824
+ declare const index$2_Dialogue: typeof Dialogue;
1825
+ declare const index$2_GenerateOptions: typeof GenerateOptions;
1826
+ declare const index$2_GenerateReason: typeof GenerateReason;
1827
+ declare const index$2_GenerateRequest: typeof GenerateRequest;
1828
+ declare const index$2_GenerateScope: typeof GenerateScope;
1829
+ declare const index$2_GenerateSource: typeof GenerateSource;
1830
+ declare const index$2_Generated: typeof Generated;
1831
+ declare const index$2_Infer: typeof Infer;
1832
+ declare const index$2_JsonSchema: typeof JsonSchema;
1833
+ declare const index$2_JsonValue: typeof JsonValue;
1834
+ declare const index$2_MAX_TIMEOUT_MS: typeof MAX_TIMEOUT_MS;
1835
+ declare const index$2_MIN_TIMEOUT_MS: typeof MIN_TIMEOUT_MS;
1836
+ declare const index$2_ObjectOf: typeof ObjectOf;
1837
+ declare const index$2_PrefetchEntry: typeof PrefetchEntry;
1838
+ declare const index$2_REPLICATION_GRACE_MS: typeof REPLICATION_GRACE_MS;
1839
+ type index$2_RoomGenerate = RoomGenerate;
1840
+ type index$2_RoomGenerateError = RoomGenerateError;
1841
+ declare const index$2_RoomGenerateError: typeof RoomGenerateError;
1842
+ type index$2_RoomLink = RoomLink;
1843
+ type index$2_RoomRecipe = RoomRecipe;
1844
+ type index$2_SceneCompilerLike<W> = SceneCompilerLike<W>;
1845
+ type index$2_SceneSolverLike<W, R> = SceneSolverLike<W, R>;
1846
+ type index$2_SceneSpecLike = SceneSpecLike;
1847
+ declare const index$2_Schema: typeof Schema;
1848
+ type index$2_SolvedRoom<R> = SolvedRoom<R>;
1849
+ declare const index$2_StringOptions: typeof StringOptions;
1850
+ declare const index$2_acceptContent: typeof acceptContent;
1851
+ declare const index$2_applyRules: typeof applyRules;
1852
+ declare const index$2_contentRequest: typeof contentRequest;
1853
+ declare const index$2_createGenerate: typeof createGenerate;
1854
+ declare const index$2_createRoomGenerate: typeof createRoomGenerate;
1855
+ declare const index$2_createTickContentLink: typeof createTickContentLink;
1856
+ declare const index$2_dialogueSchema: typeof dialogueSchema;
1857
+ declare const index$2_recipeToScene: typeof recipeToScene;
1858
+ declare const index$2_requestTickContent: typeof requestTickContent;
1859
+ declare const index$2_roomRecipeSchema: typeof roomRecipeSchema;
1860
+ declare const index$2_rule: typeof rule;
1861
+ declare const index$2_runContent: typeof runContent;
1862
+ declare const index$2_select: typeof select;
1863
+ declare const index$2_solveRoom: typeof solveRoom;
1864
+ declare const index$2_t: typeof t;
1865
+ declare const index$2_tickContentAsk: typeof tickContentAsk;
1866
+ declare const index$2_validateValue: typeof validateValue;
1867
+ declare namespace index$2 {
1868
+ export { index$2_AiContentCalls as AiContentCalls, index$2_ArrayOptions as ArrayOptions, index$2_CONTENT_CHANNEL_SLOT as CONTENT_CHANNEL_SLOT, index$2_CtxGenerate as CtxGenerate, index$2_DEFAULT_RETRIES as DEFAULT_RETRIES, index$2_DEFAULT_TIMEOUT_MS as DEFAULT_TIMEOUT_MS, index$2_Dialogue as Dialogue, index$2_GenerateOptions as GenerateOptions, index$2_GenerateReason as GenerateReason, index$2_GenerateRequest as GenerateRequest, index$2_GenerateScope as GenerateScope, index$2_GenerateSource as GenerateSource, index$2_Generated as Generated, index$2_Infer as Infer, index$2_JsonSchema as JsonSchema, index$2_JsonValue as JsonValue, index$2_MAX_TIMEOUT_MS as MAX_TIMEOUT_MS, index$2_MIN_TIMEOUT_MS as MIN_TIMEOUT_MS, NumberOptions$1 as NumberOptions, index$2_ObjectOf as ObjectOf, index$2_PrefetchEntry as PrefetchEntry, index$2_REPLICATION_GRACE_MS as REPLICATION_GRACE_MS, type index$2_RoomGenerate as RoomGenerate, index$2_RoomGenerateError as RoomGenerateError, type index$2_RoomLink as RoomLink, type index$2_RoomRecipe as RoomRecipe, type index$2_SceneCompilerLike as SceneCompilerLike, type index$2_SceneSolverLike as SceneSolverLike, type index$2_SceneSpecLike as SceneSpecLike, index$2_Schema as Schema, type index$2_SolvedRoom as SolvedRoom, index$2_StringOptions as StringOptions, index$2_acceptContent as acceptContent, index$2_applyRules as applyRules, index$2_contentRequest as contentRequest, index$2_createGenerate as createGenerate, index$2_createRoomGenerate as createRoomGenerate, index$2_createTickContentLink as createTickContentLink, index$2_dialogueSchema as dialogueSchema, index$2_recipeToScene as recipeToScene, index$2_requestTickContent as requestTickContent, index$2_roomRecipeSchema as roomRecipeSchema, index$2_rule as rule, index$2_runContent as runContent, index$2_select as select, index$2_solveRoom as solveRoom, index$2_t as t, index$2_tickContentAsk as tickContentAsk, index$2_validateValue as validateValue };
1869
+ }
1870
+
1871
+ declare const PART_MAGIC = 1414680643;
1872
+ declare const PART_VERSION = 1;
1873
+ declare const PART_HEADER_BYTES = 8;
1874
+ declare const MANIFEST_MAGIC = 1296126019;
1875
+ declare const MANIFEST_VERSION = 1;
1876
+ declare const MANIFEST_HEADER_BYTES = 24;
1877
+ declare const MANIFEST_PART_BYTES: number;
1878
+ declare const SEGMENT_BYTES$1 = 16;
1879
+ declare const MAX_MANIFEST_PARTS = 65535;
1880
+ declare const MAX_ASSET_BYTES: number;
1881
+ declare const PartKind: {
1882
+ readonly data: 0;
1883
+ readonly scene: 1;
1884
+ readonly mesh_index: 2;
1885
+ readonly mesh_vertex: 3;
1886
+ readonly skeleton: 4;
1887
+ readonly clip: 5;
1888
+ readonly texture: 6;
1889
+ readonly image: 7;
1890
+ readonly material: 8;
1891
+ readonly audio: 9;
1892
+ readonly shader: 10;
1893
+ readonly kernel: 11;
1894
+ readonly cell: 12;
1895
+ readonly font: 13;
1896
+ };
1897
+ type PartKindName = keyof typeof PartKind;
1898
+ type PartKindCode = (typeof PartKind)[PartKindName];
1899
+ declare function partKindName(code: number): PartKindName;
1900
+ declare const SegmentOp: {
1901
+ readonly literal: 0;
1902
+ readonly part: 1;
1903
+ readonly delta: 2;
1904
+ };
1905
+ type Segment = {
1906
+ readonly op: typeof SegmentOp.literal;
1907
+ readonly offset: number;
1908
+ readonly length: number;
1909
+ } | {
1910
+ readonly op: typeof SegmentOp.part;
1911
+ readonly part: number;
1912
+ readonly offset: number;
1913
+ readonly length: number;
1914
+ } | {
1915
+ readonly op: typeof SegmentOp.delta;
1916
+ readonly part: number;
1917
+ readonly offset: number;
1918
+ readonly length: number;
1919
+ readonly output: number;
1920
+ };
1921
+ interface PartRef {
1922
+ readonly digest: string;
1923
+ readonly kind: PartKindCode;
1924
+ readonly length: number;
1925
+ }
1926
+ interface AssetManifest {
1927
+ readonly kind: number;
1928
+ readonly length: number;
1929
+ readonly parts: readonly PartRef[];
1930
+ readonly segments: readonly Segment[];
1931
+ readonly literal: Uint8Array;
1932
+ }
1933
+ declare class PartFormatError extends Error {
1934
+ constructor(message: string);
1935
+ }
1936
+ declare function encodePart(kind: PartKindCode, body: Uint8Array): Uint8Array;
1937
+ interface DecodedPart {
1938
+ readonly kind: PartKindCode;
1939
+ readonly body: Uint8Array;
1940
+ }
1941
+ declare function decodePart(payload: Uint8Array): DecodedPart;
1942
+ declare function isManifest(payload: Uint8Array): boolean;
1943
+ declare function manifestBytes(manifest: AssetManifest): number;
1944
+ declare function encodeManifest(manifest: AssetManifest): Uint8Array;
1945
+ declare function decodeManifest(payload: Uint8Array): AssetManifest;
1946
+ declare function segmentOutput(segment: Segment): number;
1947
+
1948
+ declare const DeltaOp: {
1949
+ readonly copy: 0;
1950
+ readonly insert: 1;
1951
+ readonly table: 2;
1952
+ readonly map: 3;
1953
+ readonly fill: 4;
1954
+ };
1955
+ declare function applyDelta(base: Uint8Array, delta: Uint8Array, out: Uint8Array, at: number, length: number): void;
1956
+ declare function encodeDelta(base: Uint8Array, target: Uint8Array, limit?: number): Uint8Array | null;
1957
+
1958
+ type PartBodies = (index: number) => Uint8Array;
1959
+ declare function assembleInto(manifest: AssetManifest, body: PartBodies, out: Uint8Array, at?: number): void;
1960
+ declare function soleSpan(manifest: AssetManifest): {
1961
+ readonly part: number;
1962
+ readonly offset: number;
1963
+ } | null;
1964
+ declare function assemble(manifest: AssetManifest, body: PartBodies): Uint8Array;
1965
+
1966
+ interface Span {
1967
+ readonly start: number;
1968
+ readonly end: number;
1969
+ readonly kind: PartKindCode | null;
1970
+ }
1971
+ declare const MIN_PART_BYTES = 2048;
1972
+ declare const CDC_MIN_BYTES: number;
1973
+ declare const CDC_MAX_BYTES: number;
1974
+ declare function contentSpans(bytes: Uint8Array, start: number, end: number, kind: PartKindCode): Span[];
1975
+ declare function coalesce(input: readonly Span[], minPart?: number): Span[];
1976
+ declare function structuralSpans(bytes: Uint8Array): Span[] | null;
1977
+ declare function progressiveSpans(bytes: Uint8Array): {
1978
+ readonly base: Span[];
1979
+ readonly refine: Span[];
1980
+ } | null;
1981
+ declare function splitAsset(bytes: Uint8Array, minPart?: number): Span[] | null;
1982
+
1983
+ declare const DELTA_LIMIT = 0.5;
1984
+ type Seal = (payload: Uint8Array) => string;
1985
+ interface SealedPart {
1986
+ readonly digest: string;
1987
+ readonly kind: PartKindCode;
1988
+ readonly body: Uint8Array;
1989
+ readonly payload: Uint8Array;
1990
+ }
1991
+ interface DeltaUse {
1992
+ readonly base: string;
1993
+ readonly variantBytes: number;
1994
+ readonly deltaBytes: number;
1995
+ }
1996
+ interface BuiltAsset {
1997
+ readonly manifest: Uint8Array;
1998
+ readonly parts: readonly SealedPart[];
1999
+ readonly deltas: readonly DeltaUse[];
2000
+ readonly literalBytes: number;
2001
+ }
2002
+ interface BuildAssetOptions {
2003
+ readonly bases?: DeltaBases | null;
2004
+ readonly minPart?: number;
2005
+ }
2006
+ interface DeltaBases {
2007
+ has(digest: string): boolean;
2008
+ candidates(kind: PartKindCode, body: Uint8Array): SealedPart[];
2009
+ }
2010
+ declare function combinedBases(...sources: readonly DeltaBases[]): DeltaBases;
2011
+ declare class PartIndex implements DeltaBases {
2012
+ private readonly parts;
2013
+ private readonly digests;
2014
+ private readonly byAnchor;
2015
+ private readonly byLength;
2016
+ get size(): number;
2017
+ has(digest: string): boolean;
2018
+ add(part: SealedPart): void;
2019
+ candidates(kind: PartKindCode, body: Uint8Array): SealedPart[];
2020
+ }
2021
+ declare function sealPart(kind: PartKindCode, body: Uint8Array, seal: Seal): SealedPart;
2022
+ declare function buildAsset(bytes: Uint8Array, assetKind: number, seal: Seal, options?: BuildAssetOptions): BuiltAsset | null;
2023
+
2024
+ type index$1_AssetManifest = AssetManifest;
2025
+ type index$1_BuildAssetOptions = BuildAssetOptions;
2026
+ type index$1_BuiltAsset = BuiltAsset;
2027
+ declare const index$1_CDC_MAX_BYTES: typeof CDC_MAX_BYTES;
2028
+ declare const index$1_CDC_MIN_BYTES: typeof CDC_MIN_BYTES;
2029
+ declare const index$1_DELTA_LIMIT: typeof DELTA_LIMIT;
2030
+ type index$1_DecodedPart = DecodedPart;
2031
+ type index$1_DeltaBases = DeltaBases;
2032
+ declare const index$1_DeltaOp: typeof DeltaOp;
2033
+ type index$1_DeltaUse = DeltaUse;
2034
+ declare const index$1_MANIFEST_HEADER_BYTES: typeof MANIFEST_HEADER_BYTES;
2035
+ declare const index$1_MANIFEST_MAGIC: typeof MANIFEST_MAGIC;
2036
+ declare const index$1_MANIFEST_PART_BYTES: typeof MANIFEST_PART_BYTES;
2037
+ declare const index$1_MANIFEST_VERSION: typeof MANIFEST_VERSION;
2038
+ declare const index$1_MAX_ASSET_BYTES: typeof MAX_ASSET_BYTES;
2039
+ declare const index$1_MAX_MANIFEST_PARTS: typeof MAX_MANIFEST_PARTS;
2040
+ declare const index$1_MIN_PART_BYTES: typeof MIN_PART_BYTES;
2041
+ declare const index$1_PART_HEADER_BYTES: typeof PART_HEADER_BYTES;
2042
+ declare const index$1_PART_MAGIC: typeof PART_MAGIC;
2043
+ declare const index$1_PART_VERSION: typeof PART_VERSION;
2044
+ declare const index$1_PackageWeaveRef: typeof PackageWeaveRef;
2045
+ type index$1_PartBodies = PartBodies;
2046
+ type index$1_PartFormatError = PartFormatError;
2047
+ declare const index$1_PartFormatError: typeof PartFormatError;
2048
+ type index$1_PartIndex = PartIndex;
2049
+ declare const index$1_PartIndex: typeof PartIndex;
2050
+ declare const index$1_PartKind: typeof PartKind;
2051
+ type index$1_PartKindCode = PartKindCode;
2052
+ type index$1_PartKindName = PartKindName;
2053
+ type index$1_PartRef = PartRef;
2054
+ type index$1_Seal = Seal;
2055
+ type index$1_SealedPart = SealedPart;
2056
+ type index$1_Segment = Segment;
2057
+ declare const index$1_SegmentOp: typeof SegmentOp;
2058
+ type index$1_Span = Span;
2059
+ declare const index$1_WEAVE_BOUNDARY_MASK: typeof WEAVE_BOUNDARY_MASK;
2060
+ declare const index$1_WEAVE_CHILD_ENTRY_BYTES: typeof WEAVE_CHILD_ENTRY_BYTES;
2061
+ declare const index$1_WEAVE_HEAD_DOMAIN: typeof WEAVE_HEAD_DOMAIN;
2062
+ declare const index$1_WEAVE_LEAF_DECORATED: typeof WEAVE_LEAF_DECORATED;
2063
+ declare const index$1_WEAVE_LEAF_ENTRY_BYTES: typeof WEAVE_LEAF_ENTRY_BYTES;
2064
+ declare const index$1_WEAVE_LEAF_TWINNED: typeof WEAVE_LEAF_TWINNED;
2065
+ declare const index$1_WEAVE_MAX_HEIGHT: typeof WEAVE_MAX_HEIGHT;
2066
+ declare const index$1_WEAVE_MAX_NODE_BYTES: typeof WEAVE_MAX_NODE_BYTES;
2067
+ declare const index$1_WEAVE_MAX_NODE_ENTRIES: typeof WEAVE_MAX_NODE_ENTRIES;
2068
+ declare const index$1_WEAVE_MIN_NODE_ENTRIES: typeof WEAVE_MIN_NODE_ENTRIES;
2069
+ declare const index$1_WEAVE_NODE_HEADER_BYTES: typeof WEAVE_NODE_HEADER_BYTES;
2070
+ declare const index$1_WEAVE_NODE_MAGIC: typeof WEAVE_NODE_MAGIC;
2071
+ declare const index$1_WEAVE_NODE_ZONE: typeof WEAVE_NODE_ZONE;
2072
+ declare const index$1_WEAVE_VERSION: typeof WEAVE_VERSION;
2073
+ declare const index$1_WeaveChunk: typeof WeaveChunk;
2074
+ declare const index$1_WeaveHead: typeof WeaveHead;
2075
+ declare const index$1_WeaveHeadChunk: typeof WeaveHeadChunk;
2076
+ declare const index$1_WeaveHeadGroup: typeof WeaveHeadGroup;
2077
+ declare const index$1_WeaveLeaf: typeof WeaveLeaf;
2078
+ declare const index$1_WeaveLeafVisitor: typeof WeaveLeafVisitor;
2079
+ declare const index$1_WeaveNodeSource: typeof WeaveNodeSource;
2080
+ declare const index$1_WeavePlan: typeof WeavePlan;
2081
+ declare const index$1_WeaveRefusal: typeof WeaveRefusal;
2082
+ declare const index$1_WeaveRoot: typeof WeaveRoot;
2083
+ declare const index$1_WeaveRuntimeTag: typeof WeaveRuntimeTag;
2084
+ declare const index$1_WeaveScheduled: typeof WeaveScheduled;
2085
+ declare const index$1_WeaveSession: typeof WeaveSession;
2086
+ declare const index$1_WeaveTree: typeof WeaveTree;
2087
+ declare const index$1_WeaveTrust: typeof WeaveTrust;
2088
+ declare const index$1_WeaveVerifyError: typeof WeaveVerifyError;
2089
+ declare const index$1_WeaveWalk: typeof WeaveWalk;
2090
+ declare const index$1_WovenIndex: typeof WovenIndex;
2091
+ declare const index$1_applyDelta: typeof applyDelta;
2092
+ declare const index$1_assemble: typeof assemble;
2093
+ declare const index$1_assembleInto: typeof assembleInto;
2094
+ declare const index$1_buildAsset: typeof buildAsset;
2095
+ declare const index$1_buildWeave: typeof buildWeave;
2096
+ declare const index$1_childDigestAt: typeof childDigestAt;
2097
+ declare const index$1_chunkWeaveSource: typeof chunkWeaveSource;
2098
+ declare const index$1_coalesce: typeof coalesce;
2099
+ declare const index$1_combinedBases: typeof combinedBases;
2100
+ declare const index$1_contentSpans: typeof contentSpans;
2101
+ declare const index$1_decodeManifest: typeof decodeManifest;
2102
+ declare const index$1_decodePart: typeof decodePart;
2103
+ declare const index$1_deliverSchedule: typeof deliverSchedule;
2104
+ declare const index$1_encodeDelta: typeof encodeDelta;
2105
+ declare const index$1_encodeManifest: typeof encodeManifest;
2106
+ declare const index$1_encodePart: typeof encodePart;
2107
+ declare const index$1_isManifest: typeof isManifest;
2108
+ declare const index$1_leafAt: typeof leafAt;
2109
+ declare const index$1_leafDigest: typeof leafDigest;
2110
+ declare const index$1_leafDigestAt: typeof leafDigestAt;
2111
+ declare const index$1_leafFlags: typeof leafFlags;
2112
+ declare const index$1_leafLength: typeof leafLength;
2113
+ declare const index$1_leafZone: typeof leafZone;
2114
+ declare const index$1_manifestBytes: typeof manifestBytes;
2115
+ declare const index$1_nodeMatches: typeof nodeMatches;
2116
+ declare const index$1_openWeaveHead: typeof openWeaveHead;
2117
+ declare const index$1_openWeaveSession: typeof openWeaveSession;
2118
+ declare const index$1_partKindName: typeof partKindName;
2119
+ declare const index$1_planWeave: typeof planWeave;
2120
+ declare const index$1_progressiveSpans: typeof progressiveSpans;
2121
+ declare const index$1_sealPart: typeof sealPart;
2122
+ declare const index$1_segmentOutput: typeof segmentOutput;
2123
+ declare const index$1_soleSpan: typeof soleSpan;
2124
+ declare const index$1_splitAsset: typeof splitAsset;
2125
+ declare const index$1_storeWeaveSource: typeof storeWeaveSource;
2126
+ declare const index$1_structuralSpans: typeof structuralSpans;
2127
+ declare const index$1_unweaveIndex: typeof unweaveIndex;
2128
+ declare const index$1_validWeaveRoot: typeof validWeaveRoot;
2129
+ declare const index$1_verifyChild: typeof verifyChild;
2130
+ declare const index$1_verifyRoot: typeof verifyRoot;
2131
+ declare const index$1_walkWeave: typeof walkWeave;
2132
+ declare const index$1_weaveHeadMessage: typeof weaveHeadMessage;
2133
+ declare const index$1_weaveNodeCount: typeof weaveNodeCount;
2134
+ declare const index$1_weaveNodeLevel: typeof weaveNodeLevel;
2135
+ declare const index$1_weaveNodeValid: typeof weaveNodeValid;
2136
+ declare const index$1_weaveParts: typeof weaveParts;
2137
+ declare const index$1_woven: typeof woven;
2138
+ declare namespace index$1 {
2139
+ export { type index$1_AssetManifest as AssetManifest, type index$1_BuildAssetOptions as BuildAssetOptions, type index$1_BuiltAsset as BuiltAsset, index$1_CDC_MAX_BYTES as CDC_MAX_BYTES, index$1_CDC_MIN_BYTES as CDC_MIN_BYTES, index$1_DELTA_LIMIT as DELTA_LIMIT, type index$1_DecodedPart as DecodedPart, type index$1_DeltaBases as DeltaBases, index$1_DeltaOp as DeltaOp, type index$1_DeltaUse as DeltaUse, index$1_MANIFEST_HEADER_BYTES as MANIFEST_HEADER_BYTES, index$1_MANIFEST_MAGIC as MANIFEST_MAGIC, index$1_MANIFEST_PART_BYTES as MANIFEST_PART_BYTES, index$1_MANIFEST_VERSION as MANIFEST_VERSION, index$1_MAX_ASSET_BYTES as MAX_ASSET_BYTES, index$1_MAX_MANIFEST_PARTS as MAX_MANIFEST_PARTS, index$1_MIN_PART_BYTES as MIN_PART_BYTES, index$1_PART_HEADER_BYTES as PART_HEADER_BYTES, index$1_PART_MAGIC as PART_MAGIC, index$1_PART_VERSION as PART_VERSION, index$1_PackageWeaveRef as PackageWeaveRef, type index$1_PartBodies as PartBodies, index$1_PartFormatError as PartFormatError, index$1_PartIndex as PartIndex, index$1_PartKind as PartKind, type index$1_PartKindCode as PartKindCode, type index$1_PartKindName as PartKindName, type index$1_PartRef as PartRef, SEGMENT_BYTES$1 as SEGMENT_BYTES, type index$1_Seal as Seal, type index$1_SealedPart as SealedPart, type index$1_Segment as Segment, index$1_SegmentOp as SegmentOp, type index$1_Span as Span, index$1_WEAVE_BOUNDARY_MASK as WEAVE_BOUNDARY_MASK, index$1_WEAVE_CHILD_ENTRY_BYTES as WEAVE_CHILD_ENTRY_BYTES, index$1_WEAVE_HEAD_DOMAIN as WEAVE_HEAD_DOMAIN, index$1_WEAVE_LEAF_DECORATED as WEAVE_LEAF_DECORATED, index$1_WEAVE_LEAF_ENTRY_BYTES as WEAVE_LEAF_ENTRY_BYTES, index$1_WEAVE_LEAF_TWINNED as WEAVE_LEAF_TWINNED, index$1_WEAVE_MAX_HEIGHT as WEAVE_MAX_HEIGHT, index$1_WEAVE_MAX_NODE_BYTES as WEAVE_MAX_NODE_BYTES, index$1_WEAVE_MAX_NODE_ENTRIES as WEAVE_MAX_NODE_ENTRIES, index$1_WEAVE_MIN_NODE_ENTRIES as WEAVE_MIN_NODE_ENTRIES, index$1_WEAVE_NODE_HEADER_BYTES as WEAVE_NODE_HEADER_BYTES, index$1_WEAVE_NODE_MAGIC as WEAVE_NODE_MAGIC, index$1_WEAVE_NODE_ZONE as WEAVE_NODE_ZONE, index$1_WEAVE_VERSION as WEAVE_VERSION, index$1_WeaveChunk as WeaveChunk, index$1_WeaveHead as WeaveHead, index$1_WeaveHeadChunk as WeaveHeadChunk, index$1_WeaveHeadGroup as WeaveHeadGroup, index$1_WeaveLeaf as WeaveLeaf, index$1_WeaveLeafVisitor as WeaveLeafVisitor, index$1_WeaveNodeSource as WeaveNodeSource, index$1_WeavePlan as WeavePlan, index$1_WeaveRefusal as WeaveRefusal, index$1_WeaveRoot as WeaveRoot, index$1_WeaveRuntimeTag as WeaveRuntimeTag, index$1_WeaveScheduled as WeaveScheduled, index$1_WeaveSession as WeaveSession, index$1_WeaveTree as WeaveTree, index$1_WeaveTrust as WeaveTrust, index$1_WeaveVerifyError as WeaveVerifyError, index$1_WeaveWalk as WeaveWalk, index$1_WovenIndex as WovenIndex, index$1_applyDelta as applyDelta, index$1_assemble as assemble, index$1_assembleInto as assembleInto, index$1_buildAsset as buildAsset, index$1_buildWeave as buildWeave, index$1_childDigestAt as childDigestAt, index$1_chunkWeaveSource as chunkWeaveSource, index$1_coalesce as coalesce, index$1_combinedBases as combinedBases, index$1_contentSpans as contentSpans, index$1_decodeManifest as decodeManifest, index$1_decodePart as decodePart, index$1_deliverSchedule as deliverSchedule, index$1_encodeDelta as encodeDelta, index$1_encodeManifest as encodeManifest, index$1_encodePart as encodePart, index$1_isManifest as isManifest, index$1_leafAt as leafAt, index$1_leafDigest as leafDigest, index$1_leafDigestAt as leafDigestAt, index$1_leafFlags as leafFlags, index$1_leafLength as leafLength, index$1_leafZone as leafZone, index$1_manifestBytes as manifestBytes, index$1_nodeMatches as nodeMatches, index$1_openWeaveHead as openWeaveHead, index$1_openWeaveSession as openWeaveSession, index$1_partKindName as partKindName, index$1_planWeave as planWeave, index$1_progressiveSpans as progressiveSpans, index$1_sealPart as sealPart, index$1_segmentOutput as segmentOutput, index$1_soleSpan as soleSpan, index$1_splitAsset as splitAsset, index$1_storeWeaveSource as storeWeaveSource, index$1_structuralSpans as structuralSpans, index$1_unweaveIndex as unweaveIndex, index$1_validWeaveRoot as validWeaveRoot, index$1_verifyChild as verifyChild, index$1_verifyRoot as verifyRoot, index$1_walkWeave as walkWeave, index$1_weaveHeadMessage as weaveHeadMessage, index$1_weaveNodeCount as weaveNodeCount, index$1_weaveNodeLevel as weaveNodeLevel, index$1_weaveNodeValid as weaveNodeValid, index$1_weaveParts as weaveParts, index$1_woven as woven };
2140
+ }
2141
+
2142
+ declare const PROGRESSIVE_MAGIC = 1196576835;
2143
+ declare const PROGRESSIVE_VERSION = 1;
2144
+ declare const HEADER_BYTES = 32;
2145
+ declare const LEVEL_BYTES = 8;
2146
+ declare const UNIT_BYTES = 12;
2147
+ declare const SEGMENT_BYTES = 12;
2148
+ declare const PATCH_BYTES = 16;
2149
+ declare const PPM = 1000000;
2150
+ declare const MAX_PROGRESSIVE_BYTES = 2147483647;
2151
+ declare const MAX_PROGRESSIVE_DECODE_BYTES: number;
2152
+ declare const Header: {
2153
+ readonly magic: 0;
2154
+ readonly version: 4;
2155
+ readonly kind: 5;
2156
+ readonly levels: 6;
2157
+ readonly output: 8;
2158
+ readonly units: 12;
2159
+ readonly segments: 16;
2160
+ readonly patches: 20;
2161
+ readonly table: 24;
2162
+ readonly staging: 28;
2163
+ };
2164
+ declare const ProgressiveKind: {
2165
+ readonly opaque: 0;
2166
+ readonly texture: 1;
2167
+ readonly mesh: 2;
2168
+ readonly splat: 3;
2169
+ readonly audio: 4;
2170
+ readonly cells: 5;
2171
+ };
2172
+ type ProgressiveKindName = keyof typeof ProgressiveKind;
2173
+ type ProgressiveKindCode = (typeof ProgressiveKind)[ProgressiveKindName];
2174
+ declare function progressiveKindName(code: number): ProgressiveKindName;
2175
+ declare const SEGMENT_STAGED = 1;
2176
+ declare const PatchOp: {
2177
+ readonly write: 0;
2178
+ readonly staged: 1;
2179
+ readonly merge: 2;
2180
+ readonly unlift: 3;
2181
+ readonly length: 4;
2182
+ readonly fill: 5;
2183
+ };
2184
+ declare const FILL_BYTE_MAX = 255;
2185
+ type PatchOpCode = (typeof PatchOp)[keyof typeof PatchOp];
2186
+ declare const MERGE_PARAM_BYTES = 12;
2187
+ declare const UNLIFT_PARAM_BYTES = 12;
2188
+ declare const SAMPLE_BYTES = 2;
2189
+ declare class ProgressiveFormatError extends Error {
2190
+ constructor(message: string);
2191
+ }
2192
+ interface PlanSegment {
2193
+ readonly dest: number;
2194
+ readonly bytes: Uint8Array;
2195
+ readonly staged?: boolean;
2196
+ }
2197
+ interface PlanPatch {
2198
+ readonly op: PatchOpCode;
2199
+ readonly a: number;
2200
+ readonly b: number;
2201
+ readonly c: number;
2202
+ }
2203
+ interface PlanUnit {
2204
+ readonly segments: readonly PlanSegment[];
2205
+ readonly patches: readonly PlanPatch[];
2206
+ readonly quality: number;
2207
+ }
2208
+ interface ProgressivePlan {
2209
+ readonly kind: ProgressiveKindCode;
2210
+ readonly output: number;
2211
+ readonly levels: readonly (readonly PlanUnit[])[];
2212
+ readonly table: Uint8Array;
2213
+ }
2214
+ declare class TableWriter {
2215
+ private chunks;
2216
+ length: number;
2217
+ bytes(data: Uint8Array): number;
2218
+ words(...values: readonly number[]): number;
2219
+ finish(): Uint8Array;
2220
+ }
2221
+ declare function writePatch(table: TableWriter, dest: number, data: Uint8Array): PlanPatch;
2222
+ declare function headBytes(levels: number, units: number, segments: number, patches: number, table: number): number;
2223
+ declare class ProgressiveLayout {
2224
+ kind: ProgressiveKindCode;
2225
+ output: number;
2226
+ levels: number;
2227
+ units: number;
2228
+ segments: number;
2229
+ patches: number;
2230
+ table: number;
2231
+ staging: number;
2232
+ levelsAt: number;
2233
+ unitsAt: number;
2234
+ segmentsAt: number;
2235
+ patchesAt: number;
2236
+ tableAt: number;
2237
+ head: number;
2238
+ }
2239
+ declare function readLayout(view: DataView, into?: ProgressiveLayout): ProgressiveLayout;
2240
+ declare function checkLayout(view: DataView, l: ProgressiveLayout): void;
2241
+ declare function coarseKeys(count: number, step: number): number;
2242
+ declare function isCoarseKey(index: number, count: number, step: number): boolean;
2243
+ interface EncodedContainer {
2244
+ readonly bytes: Uint8Array;
2245
+ readonly head: number;
2246
+ readonly first: number;
2247
+ readonly levelEnds: readonly number[];
2248
+ readonly unitEnds: readonly number[];
2249
+ }
2250
+ declare function encodeContainer(plan: ProgressivePlan): EncodedContainer;
2251
+ interface ContainerBounds {
2252
+ readonly kind: ProgressiveKindCode;
2253
+ readonly head: number;
2254
+ readonly first: number;
2255
+ readonly unitEnds: readonly number[];
2256
+ }
2257
+ declare function containerBounds(bytes: Uint8Array): ContainerBounds | null;
2258
+ declare function isProgressive(bytes: Uint8Array): boolean;
2259
+
2260
+ declare class ProgressiveDecoder {
2261
+ private head;
2262
+ private headView;
2263
+ private headLength;
2264
+ private headNeeded;
2265
+ private readonly shape;
2266
+ private layout;
2267
+ private out;
2268
+ private outView;
2269
+ private view;
2270
+ private readonly views;
2271
+ private nextView;
2272
+ private staging;
2273
+ private stagingView;
2274
+ private segment;
2275
+ private segmentDone;
2276
+ private unit;
2277
+ private levelIndex;
2278
+ private consumed;
2279
+ private first;
2280
+ private full;
2281
+ private ppm;
2282
+ get ready(): boolean;
2283
+ get usable(): boolean;
2284
+ get done(): boolean;
2285
+ get kind(): ProgressiveKindCode | null;
2286
+ get output(): Uint8Array | null;
2287
+ get quality(): number;
2288
+ get level(): number;
2289
+ get levels(): number;
2290
+ get units(): number;
2291
+ get received(): number;
2292
+ get firstBytes(): number;
2293
+ get fullBytes(): number;
2294
+ get outputBytes(): number;
2295
+ levelEndBytes(level: number): number;
2296
+ reset(): void;
2297
+ push(src: Uint8Array, start?: number, end?: number): number;
2298
+ private viewOf;
2299
+ private ensureHead;
2300
+ private openHead;
2301
+ private settle;
2302
+ private apply;
2303
+ }
2304
+ declare function decodeProgressive(container: Uint8Array): Uint8Array;
2305
+
2306
+ type Inflate = (bytes: Uint8Array) => Uint8Array | null;
2307
+ type Compress = (bytes: Uint8Array) => Uint8Array;
2308
+ interface SplatPlanResult {
2309
+ readonly plan: ProgressivePlan;
2310
+ readonly source: Uint8Array;
2311
+ }
2312
+ declare function planSplat(bytes: Uint8Array, inflate: Inflate | null, compress: Compress | null): SplatPlanResult | null;
2313
+
2314
+ declare const MIN_PROGRESSIVE_BYTES: number;
2315
+ declare const DEFAULT_PROGRESSIVE_KINDS: ReadonlySet<ProgressiveKindName>;
2316
+ interface ProgressiveBuildOptions {
2317
+ readonly inflate?: Inflate | null;
2318
+ readonly compress?: Compress | null;
2319
+ readonly minBytes?: number;
2320
+ readonly kinds?: ReadonlySet<ProgressiveKindName>;
2321
+ }
2322
+ interface ProgressiveAsset {
2323
+ readonly kind: ProgressiveKindCode;
2324
+ readonly source: Uint8Array;
2325
+ readonly container: Uint8Array;
2326
+ readonly head: number;
2327
+ readonly first: number;
2328
+ readonly levelEnds: readonly number[];
2329
+ readonly unitEnds: readonly number[];
2330
+ readonly levelQuality: readonly number[];
2331
+ }
2332
+ declare function buildProgressive(input: Uint8Array, options?: ProgressiveBuildOptions): ProgressiveAsset | null;
2333
+
2334
+ interface MeshPlanResult {
2335
+ readonly plan: ProgressivePlan;
2336
+ readonly source: Uint8Array;
2337
+ }
2338
+ declare function planMesh(bytes: Uint8Array): MeshPlanResult | null;
2339
+
2340
+ interface KtxLayout {
2341
+ readonly start: number;
2342
+ readonly end: number;
2343
+ readonly width: number;
2344
+ readonly height: number;
2345
+ readonly depth: number;
2346
+ readonly levels: number;
2347
+ readonly offsets: readonly number[];
2348
+ }
2349
+ declare function readKtx2(bytes: Uint8Array, start?: number, end?: number): KtxLayout | null;
2350
+ declare function planTexture(bytes: Uint8Array): ProgressivePlan | null;
2351
+
2352
+ declare function planAudio(bytes: Uint8Array): ProgressivePlan | null;
2353
+
2354
+ declare function planCells(bytes: Uint8Array): ProgressivePlan | null;
2355
+
2356
+ interface LiftedBand {
2357
+ readonly low: Int16Array;
2358
+ readonly detail: Int16Array;
2359
+ }
2360
+ declare function liftForward(samples: Int16Array, frames: number, channels: number): LiftedBand;
2361
+
2362
+ type index_Compress = Compress;
2363
+ type index_ContainerBounds = ContainerBounds;
2364
+ declare const index_DEFAULT_PROGRESSIVE_KINDS: typeof DEFAULT_PROGRESSIVE_KINDS;
2365
+ type index_EncodedContainer = EncodedContainer;
2366
+ declare const index_FILL_BYTE_MAX: typeof FILL_BYTE_MAX;
2367
+ declare const index_HEADER_BYTES: typeof HEADER_BYTES;
2368
+ declare const index_Header: typeof Header;
2369
+ type index_Inflate = Inflate;
2370
+ declare const index_LEVEL_BYTES: typeof LEVEL_BYTES;
2371
+ declare const index_MAX_PROGRESSIVE_BYTES: typeof MAX_PROGRESSIVE_BYTES;
2372
+ declare const index_MAX_PROGRESSIVE_DECODE_BYTES: typeof MAX_PROGRESSIVE_DECODE_BYTES;
2373
+ declare const index_MERGE_PARAM_BYTES: typeof MERGE_PARAM_BYTES;
2374
+ declare const index_MIN_PROGRESSIVE_BYTES: typeof MIN_PROGRESSIVE_BYTES;
2375
+ declare const index_PATCH_BYTES: typeof PATCH_BYTES;
2376
+ declare const index_PPM: typeof PPM;
2377
+ declare const index_PROGRESSIVE_MAGIC: typeof PROGRESSIVE_MAGIC;
2378
+ declare const index_PROGRESSIVE_VERSION: typeof PROGRESSIVE_VERSION;
2379
+ declare const index_PatchOp: typeof PatchOp;
2380
+ type index_PatchOpCode = PatchOpCode;
2381
+ type index_PlanPatch = PlanPatch;
2382
+ type index_PlanSegment = PlanSegment;
2383
+ type index_PlanUnit = PlanUnit;
2384
+ type index_ProgressiveAsset = ProgressiveAsset;
2385
+ type index_ProgressiveBuildOptions = ProgressiveBuildOptions;
2386
+ declare const index_ProgressiveCancelled: typeof ProgressiveCancelled;
2387
+ type index_ProgressiveDecoder = ProgressiveDecoder;
2388
+ declare const index_ProgressiveDecoder: typeof ProgressiveDecoder;
2389
+ declare const index_ProgressiveFeed: typeof ProgressiveFeed;
2390
+ type index_ProgressiveFormatError = ProgressiveFormatError;
2391
+ declare const index_ProgressiveFormatError: typeof ProgressiveFormatError;
2392
+ declare const index_ProgressiveKind: typeof ProgressiveKind;
2393
+ type index_ProgressiveKindCode = ProgressiveKindCode;
2394
+ type index_ProgressiveKindName = ProgressiveKindName;
2395
+ type index_ProgressiveLayout = ProgressiveLayout;
2396
+ declare const index_ProgressiveLayout: typeof ProgressiveLayout;
2397
+ declare const index_ProgressiveListener: typeof ProgressiveListener;
2398
+ declare const index_ProgressiveLoad: typeof ProgressiveLoad;
2399
+ type index_ProgressivePlan = ProgressivePlan;
2400
+ declare const index_SAMPLE_BYTES: typeof SAMPLE_BYTES;
2401
+ declare const index_SEGMENT_BYTES: typeof SEGMENT_BYTES;
2402
+ declare const index_SEGMENT_STAGED: typeof SEGMENT_STAGED;
2403
+ type index_TableWriter = TableWriter;
2404
+ declare const index_TableWriter: typeof TableWriter;
2405
+ declare const index_UNIT_BYTES: typeof UNIT_BYTES;
2406
+ declare const index_UNLIFT_PARAM_BYTES: typeof UNLIFT_PARAM_BYTES;
2407
+ declare const index_buildProgressive: typeof buildProgressive;
2408
+ declare const index_checkLayout: typeof checkLayout;
2409
+ declare const index_coarseKeys: typeof coarseKeys;
2410
+ declare const index_containerBounds: typeof containerBounds;
2411
+ declare const index_decodeProgressive: typeof decodeProgressive;
2412
+ declare const index_encodeContainer: typeof encodeContainer;
2413
+ declare const index_headBytes: typeof headBytes;
2414
+ declare const index_isCoarseKey: typeof isCoarseKey;
2415
+ declare const index_isProgressive: typeof isProgressive;
2416
+ declare const index_liftForward: typeof liftForward;
2417
+ declare const index_planAudio: typeof planAudio;
2418
+ declare const index_planCells: typeof planCells;
2419
+ declare const index_planMesh: typeof planMesh;
2420
+ declare const index_planSplat: typeof planSplat;
2421
+ declare const index_planTexture: typeof planTexture;
2422
+ declare const index_progressiveKindName: typeof progressiveKindName;
2423
+ declare const index_readKtx2: typeof readKtx2;
2424
+ declare const index_readLayout: typeof readLayout;
2425
+ declare const index_writePatch: typeof writePatch;
2426
+ declare namespace index {
2427
+ export { type index_Compress as Compress, type index_ContainerBounds as ContainerBounds, index_DEFAULT_PROGRESSIVE_KINDS as DEFAULT_PROGRESSIVE_KINDS, type index_EncodedContainer as EncodedContainer, index_FILL_BYTE_MAX as FILL_BYTE_MAX, index_HEADER_BYTES as HEADER_BYTES, index_Header as Header, type index_Inflate as Inflate, index_LEVEL_BYTES as LEVEL_BYTES, index_MAX_PROGRESSIVE_BYTES as MAX_PROGRESSIVE_BYTES, index_MAX_PROGRESSIVE_DECODE_BYTES as MAX_PROGRESSIVE_DECODE_BYTES, index_MERGE_PARAM_BYTES as MERGE_PARAM_BYTES, index_MIN_PROGRESSIVE_BYTES as MIN_PROGRESSIVE_BYTES, index_PATCH_BYTES as PATCH_BYTES, index_PPM as PPM, index_PROGRESSIVE_MAGIC as PROGRESSIVE_MAGIC, index_PROGRESSIVE_VERSION as PROGRESSIVE_VERSION, index_PatchOp as PatchOp, type index_PatchOpCode as PatchOpCode, type index_PlanPatch as PlanPatch, type index_PlanSegment as PlanSegment, type index_PlanUnit as PlanUnit, type index_ProgressiveAsset as ProgressiveAsset, type index_ProgressiveBuildOptions as ProgressiveBuildOptions, index_ProgressiveCancelled as ProgressiveCancelled, index_ProgressiveDecoder as ProgressiveDecoder, index_ProgressiveFeed as ProgressiveFeed, index_ProgressiveFormatError as ProgressiveFormatError, index_ProgressiveKind as ProgressiveKind, type index_ProgressiveKindCode as ProgressiveKindCode, type index_ProgressiveKindName as ProgressiveKindName, index_ProgressiveLayout as ProgressiveLayout, index_ProgressiveListener as ProgressiveListener, index_ProgressiveLoad as ProgressiveLoad, type index_ProgressivePlan as ProgressivePlan, index_SAMPLE_BYTES as SAMPLE_BYTES, index_SEGMENT_BYTES as SEGMENT_BYTES, index_SEGMENT_STAGED as SEGMENT_STAGED, index_TableWriter as TableWriter, index_UNIT_BYTES as UNIT_BYTES, index_UNLIFT_PARAM_BYTES as UNLIFT_PARAM_BYTES, index_buildProgressive as buildProgressive, index_checkLayout as checkLayout, index_coarseKeys as coarseKeys, index_containerBounds as containerBounds, index_decodeProgressive as decodeProgressive, index_encodeContainer as encodeContainer, index_headBytes as headBytes, index_isCoarseKey as isCoarseKey, index_isProgressive as isProgressive, index_liftForward as liftForward, index_planAudio as planAudio, index_planCells as planCells, index_planMesh as planMesh, index_planSplat as planSplat, index_planTexture as planTexture, index_progressiveKindName as progressiveKindName, index_readKtx2 as readKtx2, index_readLayout as readLayout, index_writePatch as writePatch };
2428
+ }
2429
+
2430
+ export { AI_MARK_LABEL, AI_MARK_NAMESPACE, AI_MARK_SOURCES, AI_MARK_TEXT, AUDIO_RELAY_EXPORT, AUDIO_WORKLET_FILE, AUDIO_WORKLET_GROUP, AUDIO_WORKLET_PATH, AiContentKind, AiContentRule, AiMark, type AiMarkOptions, type AiMarkSource, type AiMarkStyle, type AiMarkTextStyle, type AiMarkTheme, BASE_ENGINE_VARIANT, Badge, type BadgeOptions, type BlockVariant, type Body, BreakDictionaries, type ButtonLabelStyle, type ButtonStyle, type ButtonVariant, CONTENT_ENGINE_VARIANT, COZY_PASTEL, ChatLog, type ChatLogOptions, type ChatLogRow, ChatPanel, type ChatPanelOptions, type CollectionStyle, CompiledStyle, Condition, Connecting, Connector, type ControlStyle, Countdown, type CountdownOptions, Ctx, CtxGenerate, type CurrencyCounter, type CurrencyCounterOptions, DEFAULT_AI_MARK, DEFAULT_LANGUAGES, DEFAULT_QUALITIES, type DamageKind, DamageNumbers, type DamageNumbersOptions, Dialed, type DialogueBox, type DialogueBoxOptions, Dropdown, type DropdownOptions, ENGINE_ABI_DIGEST, ENGINE_ABI_VERSION, ENGINE_ARENA_BASELINE_BYTES, ENGINE_ARENA_CHUNK_BYTES, ENGINE_ARENA_FEATURE, ENGINE_ARENA_MAX_CEILING_BYTES, ENGINE_AUDIO_UNIT, ENGINE_COMPATIBILITY_EXPORT_NAMES, ENGINE_CORE_GL_UNIT, ENGINE_CORE_SCRIPTS_UNIT, ENGINE_EXPORT_PROTOTYPES, ENGINE_FEATURES, ENGINE_FEATURE_CARGO, ENGINE_FEATURE_NAMES, ENGINE_LUAU_UNIT, ENGINE_OPTIONAL_EXPORTS, ENGINE_VARIANTS, type EngineCoreVariant, type EngineExportUse, type EngineFeature, type EngineFeatureName, type EngineFeatureUse, type ExceptionEncoding, type ExceptionSupport, FANTASY_PARCHMENT, FULL_ENGINE_VARIANT, FontTable, GATED_ENGINE_FEATURES, GL_CORE_GROUP, GL_CORE_PATH, GL_ENGINE_VARIANTS, GameTheme, GameUi, type GatedEngineFeature, GenerateRequest, Generated, GeneratedText, type GeneratedTextOptions, type GeneratedTextStyle, GraphicsSurface, HostSheetRequest, type HudStyle, type IconButton, type IconButtonOptions, InventoryGrid, type InventoryGridOptions, type ItemCard, type ItemCardOptions, type JoinReply, JoinStatus, KIT_NAMESPACE, type KitColors, type KitFonts, type KitMetrics, LUAU_SCRIPTS_GROUP, LUAU_VM_EXCEPTIONS, LUAU_VM_FILE, LUAU_VM_PATH, Lane, Leaderboard, type LeaderboardOptions, type LeaderboardRow, LifecycleEvent, LinkHandler, LoadingScreen, type LoadingScreenOptions, LocaleInfo, Locomotion, LuauScriptError, type LuauScripts, type LuauScriptsOptions, type LuauScriptsPath, LuauVmModules, MAP_HEADING, MAP_PAN_X, MAP_PAN_Y, type MarkerKind, Minimap, type MinimapOptions, Modal, type ModalOptions, ModalStack, type ModalStackOptions, type ModalStyle, NEON_ARCADE, NetworkMemory, NumberOptions, type OpenLuauScripts, PHYSICS_ENGINE_VARIANT, type PanelOptions, type ParticleKind, PauseScreen, type PauseScreenOptions, Persona, PlatformEngine, type ProgressBar, type ProgressBarOptions, RICH_COLORS, type RadialItem, RadialMenu, type RadialMenuOptions, RenderingProfile, type ResultsData, ResultsScreen, type ResultsScreenOptions, type RichColor, RichText, RichTextError, type RichTextOptions, RoomDialer, SCRIPTS_CORE_GROUP, SCRIPTS_CORE_PATH, SCRIPTS_ENGINE_VARIANT, SCRIPTS_ENGINE_VARIANTS, SCRIPTS_SHADERS_ENGINE_VARIANT, SCRIPTS_SHADERS_ENGINE_VARIANTS, SIMULATOR_FIXED_STEP_MS, SLOT_REFERENCE, SPORTS_BROADCAST, STYLE_BLOCK_MAGIC, STYLE_BLOCK_VERSION, KEY_NAMES as STYLE_KEYS, STYLE_PROPERTY_NAMES, SessionCompletion, type SettingsKey, SettingsScreen, type SettingsScreenOptions, type SettingsValues, SheetResult, type Simulator, type SimulatorHost, type SimulatorOptions, SimulatorUnsupportedError, Slider, type SliderOptions, StatusLine, type StyleErrorKind, SurfaceOptions, TEXT_DICTIONARIES_ASSET, TEXT_DICTIONARIES_FILE, THEME_PACKS, THREADED_ENGINE_VARIANT, THREADED_ENGINE_VARIANTS, type Tabs, type TabsOptions, type TextBlockStyle, TextButton, type TextButtonOptions, type ThemePack, type ThemePackDefinition, TickRoomCtx, type Toast, Toggle, type ToggleOptions, Tooltip, type TooltipOptions, TutorialHint, type TutorialHintOptions, UI_CHECKS, UI_DEFAULT_FONT, UI_EXEMPT_REASONS, UI_FONT_ROLES, UI_FONT_SET, UI_INSPECT_HOOK, type UiCheckName, UiClock, UiColor, UiElement, UiEvent, UiExclusion, type UiExemptReason, type UiFocusListener, UiFocusScope, type UiFocusTarget, type UiFontName, type UiFontRole, type UiInspectHook, type UiLayoutKeys, type UiMove, UiNavigator, UiNode, type UiPaddingKeys, UiParticles, type UiParticlesOptions, UiProps, UiStyle, UiStyleCompileError, UiStyleError, UiStyles, type UiSurfaceKeys, type UiTextKeys, UiTheme, UiVarGroup, VariantKind, VirtualList, type VirtualListOptions, type VirtualRow, type WorldLabel, type WorldLabelOptions, aiLabel, aiMark, aiMarkTheme, aiMarkVars, applyThemePack, badge, blankReply, breakDictionaries, chatLog, chatPanel, compileClasses, compileStyle, conditionPriority, countdown, createSimulatorCtx, currencyCounter, currentThemePack, damageNumbers, decodeJoinReply, dialogueBox, dropdown, engineExportsUsed, engineFeatureExports, engineFeatureMember, engineVariantFor, exceptionSupport, exemptUi, focusNodeOf, fontStyle, fontTable, generatedText, index$2 as generation, glVariantOf, iconButton, inspectScene, inspectSceneEntered, inspectSceneSwitch, inventoryGrid, isAiGenerated, isGlVariant, isScriptsVariant, isShadersVariant, isThreadedVariant, isqrt, itemCard, kitFamily, kitVars, leaderboard, loadingScreen, luauVmModules, luauVmRunsHere, minimap, modal, modalStack, openLuauScripts, panel, index$1 as parts, pauseScreen, perAxisUnit, progressBar, index as progressive, radialMenu, readBlock, registerBreakDictionaries, registerFontTable, registerUiFont, resultsScreen, resumeRequest, richText, scriptsShadersVariantOf, scriptsVariantOf, settingsScreen, slider, spawn, steer, suggest, tabs, tailwindStyle, tailwindVocabulary, textButton, themePack, threadedVariantOf, ticketRequest, toast, toggle, tooltip, tutorialHint, uiParticles, uiSite, unmetEngineExport, unmetEngineFeature, virtualList, webGpuVariantOf, worldLabel, index$3 as worlds };